:root {
    --vert-logo: #a3c644;
    --rouge-logo: #b21f24;
    --blanc: #ffffff;
    --noir-soft: #1d1d1b;
    --gris-fond: #fcfcf9;
    --font-titre: 'Playfair Display', serif;
    --font-texte: 'Poppins', sans-serif;
    --or-elegance: #c5a47e;
    --border-grey: #e0e0e0;
}

* { 
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
}

body {
    font-family: var(--font-texte);
    color: var(--noir-soft);
    line-height: 1.6;
    /* La ligne background-color a disparu */
    background-color: var(--gris-fond);
    scroll-behavior: smooth;
}

/* --- HEADER DYNAMIQUE --- */
.main-header { 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1); 
    transition: all 0.4s ease-in-out;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.main-header.scrolled .nav-logo {
    height: 70px;
}

.top-nav { 
    background-color: var(--vert-logo); 
    padding: 10px 5%;
    transition: padding 0.4s ease;
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo { 
    height: 120px; 
    display: block; 
    transition: height 0.4s ease;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Panier */
.cart-btn {
    color: white;
    font-size: 1.4rem;
    position: relative;
    text-decoration: none;
    transition: 0.3s;
}

.cart-btn:hover {
    transform: scale(1.1);
    color: var(--rouge-logo);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--rouge-logo);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

.nav-btn { 
    background: var(--rouge-logo); 
    color: white; 
    padding: 8px 20px; 
    border-radius: 5px;
    text-decoration: none; 
    font-weight: 600; 
    font-size: 16px; 
    transition: 0.3s; 
    text-transform: uppercase;
}

.nav-btn:hover { 
    background: white; 
    color: var(--rouge-logo);
}

.menu-nav { 
    background-color: var(--blanc); 
    padding: 15px 0; 
    border-bottom: 1px solid #eee; 
    transition: padding 0.4s ease;
}

.menu-links { 
    display: flex; 
    justify-content: center; 
    list-style: none;
}

.menu-links li { 
    margin: 0 25px;
}

.menu-links li a { 
    text-decoration: none;
    color: var(--rouge-logo); 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 14px; 
    letter-spacing: 1px;
    transition: 0.3s;
}

.menu-links li a:hover { 
    color: var(--vert-logo);
}

/* --- ANIMATION DE FOND (FRUITS) --- */
.background-animation {
    position: fixed; /* Reste fixe quand on scrolle */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Se place derrière le texte */
    pointer-events: none; /* Permet de cliquer à travers */
    
    /* Assure-toi que l'image est bien dans le dossier images */
    background-image: url('images/fruitap.png'); 
    background-color: var(--gris-fond);
    background-repeat: repeat; /* Répète l'image partout */
    background-size: 300px; /* Taille des fruits (change ce chiffre pour grossir/rétrécir) */
    opacity: 0.15; /* Transparence : 0.05 est très discret, 0.1 se voit plus */
    
    /* L'animation : 60s pour faire un tour complet (très lent) */
    animation: defilementFruits 10s linear infinite;
}

/* Le moteur de l'animation */
@keyframes defilementFruits {
    from {
        background-position: 0 0;
    }
    to {
        /* Ce chiffre (300px) DOIT être le même que background-size au dessus */
        background-position: 0 300px; 
    }
}

/* --- HERO SLIDER --- */
.hero-slider { 
    position: relative; 
    width: 100%;
    height: 70vh; 
    min-height: 400px; 
    overflow: hidden; 
    background: #000;
}

.slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; /* Plein écran sur ordinateur */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease; 
}

.slide.active { 
    opacity: 1;
}

/* --- SECTIONS GÉNÉRALES --- */
.container { 
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
}

.about-section {
    padding: 80px 0;
    background: var(--gris-fond); /* Remettre var(--gris-fond) */
}

.section-title { 
    text-align: center; 
    margin-bottom: 60px; 
}

.section-title h2 { 
    font-family: var(--font-titre);
    font-size: 3rem; 
    color: var(--noir-soft); 
}

.divider { 
    height: 3px;
    width: 70px; 
    background: var(--vert-logo); 
    margin: 20px auto;
}

.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px;
}

.service-card { 
    text-align: center; 
    padding: 40px 20px; 
    border: 1px solid var(--border-grey); 
    transition: 0.3s;
}

.service-card:hover { 
    border-color: var(--vert-logo);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transform: translateY(-5px);
}

.icon-box { 
    font-size: 3rem; 
    color: var(--vert-logo); 
    margin-bottom: 20px;
}

/* À Propos */
.about-section { 
    padding: 80px 0; 
    /* Remplacez "background: var(--gris-fond);" par ceci : */
    background: rgba(252, 252, 249, 0.92);
}

.about-container { 
    display: flex; 
    align-items: center; 
    gap: 60px;
}

.about-image { 
    flex: 1;
    position: relative; 
}

.about-image img { 
    width: 100%; 
    border-radius: 4px; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.experience-badge { 
    position: absolute; 
    bottom: -20px; 
    right: -20px; 
    background: var(--vert-logo); 
    color: white; 
    padding: 15px 25px;
    font-weight: 700; 
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.about-text { 
    flex: 1;
}

.uptitle { 
    color: var(--or-elegance); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 600;
    font-size: 0.9rem;
}

.about-text h2 { 
    font-family: var(--font-titre); 
    font-size: 3rem; 
    margin: 10px 0 20px 0; 
    line-height: 1.2;
}

.about-features { 
    display: flex;
    gap: 30px; 
    margin: 25px 0;
}

.feature-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 600; 
    color: var(--vert-logo);
}

.btn-line { 
    display: inline-block; 
    margin-top: 20px; 
    color: var(--noir-soft); 
    text-decoration: underline; 
    font-weight: 600; 
    text-transform: uppercase;
}

/* Galerie */
.gallery-preview {
    padding: 80px 0;
    background: white; /* Remettre white */
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px;
}

.gallery-item { 
    height: 250px; 
    overflow: hidden; 
    border-radius: 8px;
}

.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { 
    transform: scale(1.1); 
}

/* --- SECTION CONTACT --- */
.contact-section {
    padding: 80px 0;
    background: var(--gris-fond); /* Remettre var(--gris-fond) */
}

.contact-card { 
    display: flex; 
    background: white; 
    border-radius: 15px; 
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05); 
    min-height: 450px;
}

.contact-info, .contact-map, .contact-photo {
    flex: 1;
    min-width: 0;
}

.contact-info { 
    padding: 50px; 
}

.contact-info h3 { 
    font-family: var(--font-titre); 
    font-size: 2.5rem;
    margin-bottom: 30px; 
}

.contact-info p { 
    margin-bottom: 15px; 
    font-size: 1.1rem;
}

.contact-info i { 
    color: var(--rouge-logo); 
    width: 25px; 
}

.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-links { 
    margin-top: 30px;
}

.social-links a { 
    font-size: 1.5rem; 
    margin-right: 20px; 
    color: var(--noir-soft);
    transition: 0.3s;
}

.social-links a:hover { 
    color: var(--vert-logo); 
}

/* --- POPUP (MODAL) --- */
.modal-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.7); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 2000;
}

.modal-overlay.active { 
    display: flex;
}

.modal-content {
    background: white; 
    padding: 40px; 
    border-radius: 20px;
    text-align: center;
    max-width: 500px; 
    position: relative;
    animation: slideUp 0.4s ease;
}

.modal-icon { 
    font-size: 4rem; 
    color: var(--vert-logo);
    margin-bottom: 20px; 
}

.close-modal { 
    position: absolute; 
    top: 15px; 
    right: 20px;
    font-size: 2rem; 
    border: none; 
    background: none;
    cursor: pointer; 
}

.badge-coming { 
    display: inline-block; 
    background: var(--or-elegance); 
    color: white; 
    padding: 5px 15px;
    border-radius: 50px;
    margin: 15px 0; 
    font-weight: 600; 
}
.contact-map iframe {
    border: none;
}

@keyframes slideUp { 
    from { transform: translateY(50px); opacity: 0;} 
    to { transform: translateY(0); opacity: 1;} 
}

/* Footer */
footer { 
    background: var(--noir-soft); 
    color: white; 
    padding: 30px; 
    text-align: center;
}

/* --- RESPONSIVE OPTIMISÉ --- */
@media (max-width: 992px) {
    .contact-card { 
        flex-direction: column;
    }
    .contact-map, .contact-photo {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .nav-container { 
        flex-direction: column;
        gap: 15px;
    }
    .nav-logo {
        height: 80px;
    }
    .nav-right {
        gap: 25px;
    }
    .menu-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .menu-links li {
        margin: 5px 10px;
    }
    
    .about-container { 
        flex-direction: column;
    }
    .section-title h2, .about-text h2 {
        font-size: 2.2rem;
    }
    .gallery-grid { 
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- DÉFINITION DES IMAGES (VERSION ORDI) --- */
.slide-1 { background-image: url('images/carrouselle1.png'); }
.slide-2 { background-image: url('images/presentation3.png'); }
.slide-3 { background-image: url('images/presentation%20k1.png'); }

/* --- OPTIMISATION MOBILE FINALE --- */
@media (max-width: 768px) {
    .hero-slider {
        /* --- CORRECTION MAGIC --- */
        /* On ne force plus une hauteur en %, on force une PROPORTION. */
        width: 100%;
        height: auto; 
        aspect-ratio: 9/16; /* Force le format "Story" (portrait standard) */
        max-height: 90vh; /* Sécurité : pour ne jamais dépasser la taille de l'écran */
    }
    
    .slide {
        background-size: cover !important;
        background-position: center top !important; /* On aligne en HAUT pour privilégier le texte "Cap Sud" */
    }

    /* Tes images mobiles */
    .slide-1 { background-image: url('images/mobile1.png'); } 
    .slide-2 { background-image: url('images/mobile2.png'); }
    .slide-3 { background-image: url('images/mobile3.png'); }
}
/* --- CORRECTION SPÉCIALE TABLETTE (MODE PANORAMIQUE) --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slider {
        width: 100%;
        height: auto !important; 
        min-height: 0 !important;
        
        /* MODIFICATION ICI : On passe à un ratio 2.5/1.
           C'est beaucoup plus "plat" que le 16/9.
           La boîte étant moins haute, l'image n'a plus besoin de zoomer
           pour remplir la hauteur -> On voit donc tout le texte. */
        aspect-ratio: 2.5/1 !important; 
    }
    
    .slide {
        background-size: cover !important;
        /* On centre pour que le texte soit bien au milieu */
        background-position: center center !important;
    }

    /* On force toujours les images larges de l'ordinateur */
    .slide-1 { background-image: url('images/carrouselle1.png') !important; }
    .slide-2 { background-image: url('images/presentation3.png') !important; }
    .slide-3 { background-image: url('images/presentation%20k1.png') !important; }
}
/* --- FOOTER & MENTIONS LÉGALES --- */
.legal-links {
    margin: 15px 0;
    font-size: 0.85rem;
}
footer {
    background: var(--noir-soft); /* Rend le fond noir */
    color: white;                 /* Rend le texte blanc */
    padding: 30px;
    text-align: center;           /* Centre tout le contenu */
}

.legal-links a {
    color: #bbbbbb; /* Gris clair */
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--vert-logo); /* Devient vert au survol */
}

.legal-links span {
    margin: 0 10px;
    color: #555;
}

/* --- SIGNATURE DÉVELOPPEUR --- */
.signature-dev {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dev-logo {
    width: 25px; /* Taille discrète */
    height: 25px;
    border-radius: 50%; /* Rend l'image ronde (optionnel) */
    filter: grayscale(100%); /* Logo en noir et blanc */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.signature-dev a:hover .dev-logo {
    filter: grayscale(0%); /* Revient en couleur */
    opacity: 1;
    transform: scale(1.1);
}
/* --- NOUVEAUX STYLES POUR LES HORAIRES --- */
.horaires-container {
    display: flex;
    align-items: flex-start; /* Aligne l'icône en haut */
    gap: 15px; /* Espace entre l'icône et le texte */
    margin-bottom: 15px;
    font-size: 1.1rem; /* Même taille que le reste du texte */
}

.horaires-container i {
    color: var(--rouge-logo);
    margin-top: 6px; /* Petit ajustement pour aligner l'icône avec la 1ère ligne */
    width: 25px; /* Garde la même largeur que les autres icônes */
}

.horaires-table {
    border-collapse: collapse;
}

.horaires-table td {
    padding-bottom: 5px; /* Espace entre chaque ligne d'heure */
    vertical-align: top;
}

.horaires-table td:first-child {
    padding-right: 15px; /* Espace entre "Jours" et "Heures" */
    white-space: nowrap; /* Empêche les jours de se couper */
}