/* Styles généraux */
:root {
    --primary-color: #D4AF37; /* Changé de #007acc (bleu) à #D4AF37 (or) */
    --secondary-color: #8B7500; /* Couleur secondaire ajustée pour être une teinte d'or plus foncée */
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-color: #ffffff;
    --border-color: #ddd;
    --accent-color: #C5A82B; /* Accent également ajusté pour être une teinte d'or plus vive */
    --warning-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    background: var(--background-color);
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

button, .button, .cta-button {
    cursor: pointer;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.icon {
    width: 24px;
    height: 24px;
}

/* En-tête */
header {
    display: flex;
    justify-content: space-between; /* Au lieu de center, pour avoir le logo à gauche */
    align-items: center;
    padding: 0px 50px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.logo-container {
    margin-right: 0px; /* Ajouter une marge à droite du logo */
    width: 500px;
    padding: 0px;
}

.logo-container img {
    width: 100%;
    height: auto;
}

#logo {
    height: 120px; /* Garder la même hauteur */
    width: auto;
}

nav {
    flex: 1; /* La navigation prend l'espace restant */
}

nav ul {
    display: flex;
    justify-content: flex-end; /* Alignement des liens à droite */
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

nav a.active,
nav a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 122, 204, 0.05);
}

#user-menu {
    position: relative;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#user-name {
    font-weight: bold;
}

#user-name a {
    text-decoration: none;
    color: inherit;
    transition: text-decoration 0.3s;
}

#user-name a:hover {
    text-decoration: underline;
}

#logout-button {
    margin-left: 10px;
    font-size: 0.85em;
    color: var(--warning-color);
    font-size: 0.9em;
}

/* Section héros */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    text-align: center;
    padding: 120px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 30px;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button.highlight {
    background-color: var(--accent-color);
}

.cta-button.highlight:hover {
    background-color: #218838;
}

/* Sections */
section {
    padding: 80px 20px;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Fonctionnalités */
.features {
    background-color: var(--light-color);
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.feature {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 30px;
    text-align: center;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* À propos */
.about {
    background-color: #f0f0f0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
}

/* Témoignages */
.testimonials {
    background-color: var(--light-color);
    text-align: center;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 30px;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.quote::before, .quote::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Pied de page */
footer {
    background-color: #333;
    color: var(--light-color);
    padding: 60px 20px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: var(--light-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page de boutique */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.product-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 10px 0;
}

.add-to-cart {
    background-color: var(--accent-color);
    color: var(--light-color);
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

.add-to-cart:hover {
    background-color: #218838;
    color: var(--light-color);
}

/* Formulaires */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-button {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 30px;
    width: 100%;
    font-size: 1rem;
    margin-top: 20px;
}

.form-button:hover {
    background-color: #0062a3;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f5f5f5;
    color: var(--text-color);
    font-weight: 600;
}

tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Adaptation des éléments spécifiques qui utilisaient l'ancienne couleur */
.dev-info {
    color: var(--primary-color);
    font-weight: bold;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 15px !important;
}

#total-ht, #tva, #total-ttc {
    font-weight: bold;
    color: var(--primary-color);
}

.client-address-main {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    border-left: 3px solid var(--secondary-color);
}

.client-address-main p {
    margin: 3px 0;
}

/* Styles pour le menu admin déroulant */
.admin-links {
    position: relative;
}

.admin-dropdown {
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-color);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
}

.admin-menu a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.admin-menu a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.admin-links:hover .admin-menu {
    display: block;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: 80%;
    max-width: 600px;
    position: relative;
}

.image-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.image-modal-close:hover {
    color: var(--primary-color);
}

/* Ajustement de la taille des images dans le panier */
.cart-item-image {
    width: 200px;  /* Augmentation de la largeur */
    height: 200px; /* Augmentation de la hauteur */
    object-fit: contain;
    margin-right: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: zoom-in; /* Curseur indiquant la possibilité de zoom */
    transition: transform 0.2s;
}

.cart-item-image:hover {
    transform: scale(1.05);
}

/* Style du modal de zoom */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.zoomed-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    background-color: white;
    padding: 10px;
    border-radius: 4px;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 5px 0;
    }
    
    .features-container, .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-section {
        min-width: 100%;
    }
}
