/* =========================================
   1. RESET & BASES (Ta technique robuste)
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

html {
    overflow-x: hidden; 
    width: 100%;
    scroll-behavior: smooth;
}

body {
    /* Typographie de la Maquette */
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    
    /* Gestion du Header Fixe (Ta méthode) */
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px; /* Ajusté à la hauteur réelle du header de la maquette */
 
    /* Création d'un effet "Vignette" (plus sombre sur les bords, lumineux au centre) */
    background-image: radial-gradient(circle at center, #FAF8F5 0%, #f9f9f9 100%);
    
    /* C'est subtil, mais ça donne du volume à la page */
    min-height: 100vh;
}


/* Titres par défaut : Police Sérif et Couleur Bordeaux */
h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: #A4161A; /* BORDEAUX (Couleur Principale) */
    font-weight: 700;
    letter-spacing: -0.5px; /* Légèrement resserré pour le style */
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. HEADER (DESIGN DOMAINE & PREMIUM)
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    
    /* Le fond passe en Bordeaux pour l'ambiance Vin */
    background-color: #A4161A; 
    
    /* TOUCHE LUXE : Une ligne dorée en bas du menu */
    border-bottom: 1px solid #C5A065;
    
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre plus marquée */
    
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   MODIFICATION DU LOGO (Image + Texte)
   ========================================= */

/* 1. Le Conteneur global du Logo */
header .logo {
    /* On garde les réglages de police pour le texte */
    font-family: 'Merriweather', serif;
    font-weight: bold;
    font-size: 1.3rem; /* J'ai réduit un tout petit peu pour que ça rentre bien */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

/* 2. Le lien qui contient l'image ET le texte */
header .logo a {
    display: flex;         /* C'est ça qui met l'image à gauche du texte */


    align-items: center;   /* Ça centre l'image et le texte verticalement */
    gap: 15px;             /* L'espace entre ton image et "Denis LAROCHE..." */
    text-decoration: none; /* On enlève le soulignement moche du lien */
    color: inherit;        /* Le texte reste blanc */
    transition: opacity 0.3s ease;
}

header .logo a:hover {
    opacity: 0.8; /* Petit effet sympa au survol du logo */
}

/* 3. L'image du logo elle-même */
header .logo img {
    height: 105px;        /* IMPORTANT : Ton header fait 70px, donc 50px c'est parfait */
    width: auto;         /* Garde les proportions de l'image */
    object-fit: contain; /* Empêche l'image d'être écrasée */
}

/* La liste des liens */
nav ul {
    display: flex;
    gap: 15px; /* Espace un peu plus serré entre les liens */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Les liens (Accueil, Ferme...) */
nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    font-size: 0.85rem; /* Texte un peu plus petit et fin */
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    
    /* Style bouton menu */
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Interaction : Survol et Page Active */
nav a:hover, 
nav a.active {
    /* Le texte devient Doré */
    color: #C5A065; 
    /* Le fond devient légèrement noir pour le contraste */
    background-color: rgba(0, 0, 0, 0.2); 
}

/* =========================================
   3. HERO (Ton calcul + Style Maquette)
   ========================================= */
/* ========================
   SECTION HERO (Accueil)
   ======================== */
.hero {
    /* MODIFICATION : On enlève le calcul rigide */
    width: 100%;
    
    /* MAGIQUE : La section prend toute la place restante dans le Main */
    flex: 1;       
    
    /* On garde une hauteur minimum pour que ce soit joli même si vide */
    min-height: 60vh; 

    position: relative;
    
    /* CORRECTION ICI : "../img/" au lieu de "/assets/img/" */
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../img/photoferme.png');
    background-size: cover;
    background-position: center;
    
    /* Centrage du texte */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: #f1f1f1;
    font-weight: 600;
        
    /* C'EST ICI LA CLÉ : on pousse tout ce qui est en dessous */
    margin-bottom: 20px;
}  

/* Bouton style Maquette (Marron) */
.btn-cta {
    background-color: #A4161A; /* Marron terre / Bordeaux */
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 25px;
    transition: transform 0.3s, background 0.3s;
}

.btn-cta:hover {
    background-color: #641220;
    transform: translateY(-2px);
}

/* =========================================
   4. LAYOUT & GRILLES (STRUCTURE DOMAINE)
   ========================================= */

main {
    width: 100%;
    flex: 1; /* Le main prend tout l'espace entre header et footer */
    padding: 0;
    margin: 0;
    
    /* Fond crème pour réchauffer l'ambiance */
    background-color: #FAF8F5; 
    
    display: flex; 
    flex-direction: column; 
}

/* Le conteneur principal centré */
.container {
    max-width: 1200px;
    margin: 0 auto;
    
    /* PADDING IMPORTANT : 
       130px en haut = pour ne pas être caché par le Header Fixe + de l'air 
       40px en bas = espace avant le footer */
    padding: 50px 20px 60px; 
}

/* --- TITRE DE PAGE (H1) --- */
.page-title {
    text-align: center;
    font-family: 'Merriweather', serif; /* Police "Vin" */
    font-size: 2.8rem;
    color: #A4161A; /* Bordeaux */
    margin-bottom: 60px; /* Plus d'espace sous le titre */
    position: relative;
    font-weight: 700;
}

/* La ligne dorée sous le grand titre */
.page-title::after {
    content: "";
    display: block;
    width: 80px;      /* Longueur du trait */
    height: 3px;      /* Épaisseur */
    background-color: #C5A065; /* Or */
    margin: 20px auto 0; /* Centré */
}

/* --- GRILLE PRÉSENTATION (Histoire, Ferme...) --- */
.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% image / 50% texte */
    gap: 60px; /* Grand écartement pour l'élégance */
    align-items: center; /* Centré verticalement */
}

/* Images dans la présentation */
.presentation-grid img {
    width: 100%;
    height: auto;
    border-radius: 2px; /* Coins presque carrés = plus classe */
    
    /* Effet Design : Ombre décalée dorée/beige */
    box-shadow: 15px 15px 0px rgba(197, 160, 101, 0.2); 
    
    transition: transform 0.3s ease;
}

.presentation-grid img:hover {
    transform: scale(1.01); /* Micro-zoom au survol */
}

/* --- CONTENU TEXTE --- */
/* Les paragraphes */
.presentation-content p {
    font-size: 1.05rem;
    line-height: 1.8; /* Texte aéré pour la lecture */
    color: #555;
    margin-bottom: 20px;
    text-align: justify; /* Fait "bloc de texte" propre */
}

/* Les sous-titres (H3) dans le texte */
.presentation-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: #A4161A; /* Bordeaux */
    margin-top: 30px;
    margin-bottom: 15px;
    
    /* Petite ligne dorée verticale à gauche du titre */
    border-left: 4px solid #C5A065; 
    padding-left: 15px;
}

/* =========================================
   GRILLE PRODUITS (DESIGN VIGNE & PREMIUM)
   Palette : Bordeaux #641220 | Or #C5A065
   ========================================= */

.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    justify-content: center; 
    gap: 40px;
    margin-bottom: 80px;
    max-width: 1400px; 
    margin-left: auto;
    margin-right: auto;
}

/* --- LA CARTE --- */
.card {
    background: white;
    border-radius: 4px; /* Coins plus carrés = plus "Luxe" */
    overflow: hidden;
    
    /* Bordure très subtile */
    border: 1px solid #e0dcd5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
    
    display: flex;
    flex-direction: column; 
    transition: all 0.4s ease;
}

/* Au survol : Effet Prestige */
.card:hover {
    transform: translateY(-5px); 
    /* L'ombre devient légèrement bordeaux */
    box-shadow: 0 20px 40px rgba(100, 18, 32, 0.12); 
    /* La bordure devient dorée */
    border-color: #C5A065; 
}

/* --- ZONE IMAGE --- */
.card img {
    width: 100%;
    height: 280px; 
    object-fit: contain;
    padding: 25px;
    
    /* Fond crème très léger pour réchauffer l'image */
    background-color: #FCFBF8; 
    border-bottom: 1px solid #f0eeeb;

    /* Fusion du fond blanc de l'image JPG */
    mix-blend-mode: multiply; 
    filter: none; 
    transition: transform 0.6s ease;
}

.card:hover img {
    transform: scale(1.05); /* Zoom doux */
}

/* --- CONTENU TEXTE --- */
.card-body {
    padding: 30px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; 
    background-color: white;
}

/* Titre Produit */
.card-body h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    color: #641220; /* TITRE EN BORDEAUX */
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

/* Petit séparateur doré sous le titre (Détail Chic) */
.card-body h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: #C5A065; /* Ligne Or */
    margin: 10px auto 15px;
}

/* Description */
.card-body p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-style: italic;
    font-family: 'Merriweather', serif; /* On garde le serif pour le côté "Terroir" */
}

/* Prix */
.card-price {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a; /* Prix en noir/gris foncé pour la lisibilité */
    margin-bottom: 25px;
}

/* --- BOUTON MODERNISÉ (Style Bordeaux) --- */
.btn-card {
    display: block; 
    width: 100%;
    padding: 14px 0;
    
    background-color: #A4161A; /* FOND BORDEAUX */
    color: white;
    
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 2px; /* Rectangulaire légèrement adouci */
    text-decoration: none; /* Enlève le soulignement si c'est un lien <a> */
    transition: all 0.3s ease;
}

.btn-card:hover {
    background-color: #4a0b15; /* Bordeaux plus sombre */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 18, 32, 0.2);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.section-spacing {
    margin-top: 80px;
}

.text-center {
    text-align: center;
    margin-bottom: 20px;
}

/* Formulaire Compact */
.form-compact {
    max-width: 600px;
    margin: 0 auto;
}

.form-compact input,
.form-compact textarea {
    width: 100%;
    margin-bottom: 15px;
}

.btn-submit {
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

/* =========================================
   PAGE CONTACT (DESIGN CORRIGÉ)
   ========================================= */

/* Structure principale : Grille 2 colonnes */
.contact-layout {
    display: grid;
    /* Sur grand écran : Infos (35%) - Formulaire (65%) */
    grid-template-columns: 1fr 2fr; 
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

/* =========================================
   COLONNE GAUCHE : INFOS & MAP (DESIGN DOMAINE)
   ========================================= */

.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Espace entre les boîtes */
}

/* --- LA BOÎTE D'INFO (Adresse, Tel...) --- */
.info-box {
    background: white;
    padding: 30px; /* Un peu plus d'espace */
    border-radius: 4px; /* Coins plus carrés */
    
    /* Ombre douce */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    
    /* La barre décorative devient BORDEAUX */
    border-left: 5px solid #641220; 
    
    /* Petite bordure fine sur le reste pour la propreté */
    border-top: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Titre de la boîte (Adresse, Horaires...) */
.info-box h3 {
    margin-bottom: 20px;
    color: #641220; /* BORDEAUX */
    font-family: 'Merriweather', serif; /* Police Titre */
    font-size: 1.3rem;
    
    /* Ligne de séparation Dorée */
    border-bottom: 2px solid #C5A065; 
    padding-bottom: 10px;
    display: inline-block; /* La ligne s'arrête à la fin du texte */
    width: 100%;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95rem;
    display: flex; /* Utile si tu ajoutes des icônes plus tard */
    align-items: center;
}

/* Les liens (Email, Tel) */
.info-box a {
    color: #641220; /* BORDEAUX */
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.info-box a:hover {
    color: #C5A065; /* Devient DORÉ au survol */
    text-decoration: underline;
}

/* --- LA CARTE GOOGLE MAPS --- */
.map-container {
    border-radius: 4px; /* Coins harmonisés */
    overflow: hidden;
    
    /* Ombre et petite bordure pour encadrer la carte */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #ddd; 
    
    height: 300px; /* Un peu plus grand pour la lisibilité */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* Petit filtre pour que la carte soit moins "flashy" (Optionnel) */
    filter: saturate(0.8); 
}



/* Contact de la page contact.html */

/* =========================================
   FORMULAIRE CONTACT (Page contact.html)
   Classe : .contact-form-wrapper
   ========================================= */

/* --- LE CADRE PRINCIPAL --- */
.contact-form-wrapper {
    background: white;
    padding: 50px; /* Plus d'espace intérieur */
    border-radius: 4px; /* Coins plus carrés = plus chic */
    
    /* Ombre douce + petite bordure fine bordeaux pâle */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(100, 18, 32, 0.1);
    
    /* La touche luxe : ligne bordeaux en haut */
    border-top: 2px solid #641220; 
}

/* --- LE TITRE --- */
.contact-form-wrapper h3 {
    margin-bottom: 30px;
    color: #A4161A; /* BORDEAUX */
    text-align: center;
    font-family: 'Merriweather', serif; /* Police titre */
    font-size: 1.8rem;
}

/* Petit trait doré sous le titre */
.contact-form-wrapper h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #C5A065; /* OR */
    margin: 15px auto 0;
}

/* --- LE CONTENEUR FLEX --- */
.contact-form-wrapper form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px; /* Espace aéré entre les champs */
}

/* --- LES ÉTIQUETTES (LABELS) --- */
.contact-form-wrapper label {
    font-weight: 700;
    color: #444;
    font-size: 0.85rem;
    
    /* Style "Étiquette de vin" */
    text-transform: uppercase; 
    letter-spacing: 1px;
    
    margin-bottom: -10px; /* Rapproche l'étiquette du champ */
}

/* --- LES CHAMPS DE SAISIE --- */
.contact-form-wrapper input, 
.contact-form-wrapper textarea {
    width: 100%;
    padding: 15px; /* Confort de frappe idéal */
    
    border: 1px solid #ddd;
    border-radius: 2px; /* Rectangulaire élégant */
    background-color: #fcfcfc; /* Fond très légèrement grisé */
    
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* --- EFFET QUAND ON CLIQUE DANS UNE CASE (FOCUS) --- */
.contact-form-wrapper input:focus, 
.contact-form-wrapper textarea:focus {
    /* C'EST ICI QUE J'AI ENLEVÉ LE VERT */
    border-color: #641220; /* Bordure BORDEAUX */
    background-color: white;
    outline: none;
    
    /* Petit halo lumineux bordeaux */
    box-shadow: 0 0 0 1px rgba(100, 18, 32, 0.2); 
}

/* --- LE BOUTON ENVOYER --- */
.contact-form-wrapper button {
    margin-top: 20px;
    background-color: #A4161A; /* FOND BORDEAUX */
    color: white;
    
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase; /* Texte en majuscules */
    letter-spacing: 1px;
    
    padding: 15px;
    border: none;
    border-radius: 2px; /* Bouton rectangulaire */
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

/* Survol du bouton */
.contact-form-wrapper button:hover {
    background-color: #4a0b15; /* Bordeaux plus sombre */
    transform: translateY(-2px); /* Petit effet de levier */
    box-shadow: 0 5px 15px rgba(100, 18, 32, 0.2);
}

/* Contact de la page produits.html */

/* --- LE CONTENEUR PRINCIPAL --- */
.contact-section {
    /* Fond Crème pour casser le blanc et apporter de la chaleur */
    background-color: #FAF8F5; 
    
    /* Bordure fine dorée ou bordeaux très discret */
    border: 1px solid rgba(100, 18, 32, 0.1);
    
    max-width: 550px;
    margin: 60px auto 60px; /* Marges aérées */
    padding: 40px 50px;
    
    /* Ombre portée plus diffuse et élégante */
    box-shadow: 0 15px 35px rgba(100, 18, 32, 0.08);
    
    border-radius: 4px; /* Coins moins ronds = plus sérieux/luxe */
    position: relative; /* Pour d'éventuels éléments déco */
}

/* --- TITRES --- */
.contact-section h2,
.contact-section h3 {
    font-family: 'Merriweather', serif; /* Police "Vin" */
    color: #A4161A; /* Le fameux Bordeaux */
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

/* Petit trait séparateur sous le titre (Touche Chic) */
.contact-section h2::after,
.contact-section h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #C5A065; /* Touche Dorée */
    margin: 15px auto 30px;
}

/* --- FORMULAIRE --- */
.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Plus d'espace entre les champs */
}

.contact-section label {
    font-weight: 700;
    color: #444;
    font-size: 0.85rem;
    text-transform: uppercase; /* Plus moderne */
    letter-spacing: 1px;
    margin-bottom: -10px;
}

/* --- CHAMPS DE SAISIE (INPUTS) --- */
.contact-section input, 
.contact-section textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #fff; /* Fond blanc sur le fond crème */
    
    /* On enlève la bordure grise moche, on met une bordure subtile */
    border: 1px solid #e0dcd5; 
    border-radius: 2px;
    
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Effet au clic dans le champ */
.contact-section input:focus, 
.contact-section textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: #A4161A; /* Le champ devient Bordeaux */
    box-shadow: 0 0 0 1px rgba(100, 18, 32, 0.2);
}

/* --- BOUTON D'ACTION --- */
.contact-section button {
    background-color: #A4161A; /* Fond Bordeaux */
    color: #fff;
    
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    
    padding: 15px 40px;
    border: none;
    border-radius: 2px; /* Rectangulaire chic */
    cursor: pointer;
    
    margin-top: 20px;
    align-self: center; /* Centré */
    transition: all 0.4s ease;
    min-width: 200px;
}

/* Survol du bouton */
.contact-section button:hover {
    background-color: #4a0b15; /* Bordeaux encore plus sombre */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 18, 32, 0.3);
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    /* Un bordeaux très sombre pour "ancrer" le bas de page */
    background-color: #A4161A; 
    color: white;
    
    /* Le rappel de la ligne dorée (Symétrie avec le Header) */
    border-top: 1px solid #C5A065;
    
    text-align: center;
    padding: 15px 20px; /* Un peu plus d'espace */
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.5px;
    
    margin-top: auto; /* Pousse le footer tout en bas */
}

/* Style du texte dans le footer */
footer p {
    margin: 0;
    opacity: 0.9;
}

/* Style du lien "Mentions Légales" dans le footer */
footer a {
    color: #C5A065; /* Doré */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    margin-left: 10px;
}

footer a:hover {
    color: white; /* Devient blanc au survol */
    text-decoration: underline;
}

/* =========================================
   7. RESPONSIVE (MOBILE & TABLETTE)
   ========================================= */
@media (max-width: 850px) {
    
    /* --- HEADER & NAVIGATION --- */
    header {
        /* LA CLÉ DU SUCCÈS EST ICI : */
        position: relative; /* On "détache" le header, il ne flotte plus */
        flex-direction: column; /* Logo en haut, menu en bas */
        height: auto; 
        padding: 15px 0;
    }
    
    body {
        /* Comme le header n'est plus flottant, il prend sa place physique.
           Donc on n'a plus besoin de pousser le body artificiellement. */
        padding-top: 0; 
    }

    nav ul {
        flex-wrap: wrap; /* Si ça ne rentre pas, ça passe à la ligne */
        justify-content: center; /* Tout centré */
        margin-top: 15px;
        padding-left: 0; /* Petit nettoyage */
        gap: 10px;
    }
    
    /* Petite optimisation pour les boutons du menu sur mobile */
    nav a {
        display: inline-block;
        margin: 2px;
        font-size: 0.8rem; /* Un tout petit peu plus petit pour que ça rentre */
    }

    /* --- HERO (ACCUEIL) --- */
    .hero h1 { 
        font-size: 1.8rem; /* Ajusté pour éviter les titres énormes */
    }

    /* --- GRILLES GÉNÉRALES --- */
    .presentation-grid, 
    .infos-grid,
    .produits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* --- SPÉCIFIQUE CONTACT --- */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 0; /* Plus besoin de marge énorme */
    }

    .contact-infos {
        width: 100%;
        text-align: center; /* Plus joli sur mobile */
    }

    .contact-form-wrapper {
        padding: 20px; 
    }

    .map-container {
        height: 250px; /* Carte un peu plus haute pour être utilisable au doigt */
    }
}

/* =========================================
   BOUTONS DE FILTRE (STYLE VIGNE)
   ========================================= */

.categories-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px; /* Un peu plus d'espace avec les produits */
    flex-wrap: wrap; 
}

/* Le style du bouton (Au repos) */
.btn-cat {
    background-color: transparent;
    
    /* Bordure fine Bordeaux */
    border: 1px solid #641220; 
    color: #A4161A;
    
    padding: 12px 30px; /* Un peu plus large */
    font-size: 0.9rem;
    font-weight: 600;
    
    /* Style Typo "Premium" */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Open Sans', sans-serif;
    
    cursor: pointer;
    border-radius: 2px; /* Rectangulaire légèrement adouci */
    transition: all 0.3s ease;
}

/* Au survol (Hover) */
.btn-cat:hover {
    background-color: rgba(100, 18, 32, 0.05); /* Fond rouge très pâle */
    transform: translateY(-2px);
    border-color: #641220;
}

/* Quand le bouton est SÉLECTIONNÉ (Active) */
.btn-cat:focus, 
.btn-cat.active {
    background-color: #A4161A; /* Fond Bordeaux Plein */
    color: white;
    outline: none;
    
    /* Petite ombre portée bordeaux */
    box-shadow: 0 5px 15px rgba(100, 18, 32, 0.2);
    
    /* Petit détail luxe : bordure dorée */
    border-color: #641220; 
    border-bottom: 3px solid #C5A065; /* Soulignement Or */
}

/* =========================================
   PAGE GALERIE 
   ========================================= */

/* La Grille */
.galerie-grid {
    display: grid;
    /* Création automatique de colonnes (min 300px de large) */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; /* Espace entre les photos */
}

/* La Carte Photo (Le cadre) */
.photo-card {
    position: relative; /* Nécessaire pour positionner le texte par-dessus */
    overflow: hidden;   /* Pour que l'image ne dépasse pas quand elle zoome */
    border-radius: 4px;
    height: 300px;      /* Hauteur fixe pour que tout soit aligné */
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(100, 18, 32, 0.1); /* Bordure Bordeaux très pâle */
}

/* L'Image */
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit tout le cadre sans être déformée */
    transition: transform 0.5s ease; /* Animation fluide */
}

/* Effet Zoom au survol */
.photo-card:hover img {
    transform: scale(1.1); /* Zoom à 110% */
}

/* Le texte par-dessus (Légende) - Caché par défaut */
.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(100, 18, 32, 0.9), transparent); /* Dégradé Bordeaux */
    padding: 20px;
    color: white;
    opacity: 0; /* Invisible au départ */
    transform: translateY(20px); /* Légèrement descendu */
    transition: all 0.3s ease;
}

/* Apparition du texte au survol */
.photo-card:hover .photo-caption {
    opacity: 1; /* Devient visible */
    transform: translateY(0); /* Remonte à sa place */
}

.photo-caption h3 {
    color: #FFFFFF; /* Titre Blanc */
    font-size: 1.2rem;
    margin: 0;
    font-family: 'Merriweather', serif;
}

.photo-caption p {
    font-size: 0.9rem;
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* =========================================
   PAGE ADMINISTRATION (TABLEAUX & ACTIONS)
   ========================================= */

/* --- BLOC PRINCIPAL DE L'ADMIN --- */
/* On encadre chaque section (produits, messages) dans une boîte blanche */
.admin-section {
    background: white;
    padding: 30px;
    border-radius: 4px; /* Coins légèrement carrés "Premium" */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Ombre douce */
    border: 1px solid rgba(100, 18, 32, 0.1); /* Bordure fine */
    margin-bottom: 50px; /* Espace entre le tableau produits et messages */
}

/* Titres des sections (H2) */
.admin-section h2 {
    font-family: 'Merriweather', serif;
    color: #A4161A; /* Bordeaux */
    border-bottom: 2px solid #C5A065; /* Soulignement Or */
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

/* --- LE TABLEAU (Design Pro) --- */
.admin-table {
    width: 100%;
    border-collapse: collapse; /* Colle les bordures entre elles */
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
}

/* L'en-tête du tableau (La barre bordeaux) */
.admin-table th {
    background-color: #A4161A; /* FOND BORDEAUX */
    color: white;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

/* Les cellules du tableau */
.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #eee; /* Ligne grise entre chaque produit */
    vertical-align: middle; /* Centre le contenu en hauteur */
    color: #444;
}

/* Effet zébré : une ligne sur deux est grisée pour la lecture */
.admin-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* Effet au survol d'une ligne */
.admin-table tr:hover {
    background-color: #fff9f9; /* Très léger rouge pâle */
}

/* --- LES PETITS BADGES (Catégories) --- */
.badge {
    background-color: #eee;
    color: #555;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* --- LES BOUTONS D'ACTION (Modifier / Supprimer) --- */
.btn-action {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 5px;
    margin-bottom: 5px; /* Au cas où ça passe à la ligne sur mobile */
}

/* Bouton Modifier (Doré/Moutarde) */
.btn-edit {
    background-color: #C5A065; 
    color: white;
}
.btn-edit:hover {
    background-color: #b08d55;
}

/* Bouton Supprimer (Rouge foncé) */
.btn-delete {
    background-color: #A4161A;
    color: white;
}
.btn-delete:hover {
    background-color: #800e19;
}

/* --- RESPONSIVE (Pour mobile) --- */
/* Si l'écran est petit, on permet au tableau de défiler horizontalement */
@media (max-width: 768px) {
    .admin-section {
        padding: 15px;
        overflow-x: auto; /* Scroll horizontal */
    }
    
    .admin-table {
        min-width: 600px; /* Force la largeur pour ne pas écraser le texte */
    }
}

/* ========================
   PAGE LOGIN (CONNEXION)
   ======================== */

/* Pour centrer la boîte verticalement et horizontalement */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh; /* Prend de la hauteur pour centrer */
}

/* Ajustement spécifique pour la boîte de connexion */
.login-box {
    width: 100%;
    max-width: 400px;
    border-top: 5px solid #641220; /* La petite barre bordeaux */
}

.login-box h3 {
    margin-top: 0;
}

/* Le message d'erreur rouge */
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

/* Le lien retour */
.back-link {
    text-align: center; 
    display: block; 
    margin-top: 15px; 
    text-decoration: none; 
    color: #666;
    font-size: 0.9em;
}
.back-link:hover {
    color: #A4161A;
    text-decoration: underline;
}

/* ========================
   MISE EN PAGE ADMIN (OUTILS)
   ======================== */

/* Aligner Titre Dashboard et Déconnexion */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Style du bouton Déconnexion (Gris) */
.btn-logout {
    border-color: #666;
    color: #666;
    font-size: 0.8rem;
    padding: 8px 15px;
}
.btn-logout:hover {
    background-color: #666;
    color: white;
}

.welcome-msg {
    margin-bottom: 30px;
    font-style: italic;
    color: #555;
}

/* Aligner "Vos Produits" et "+ Nouveau Produit" */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Pour le mobile */
    gap: 15px;
}

/* Ajustement du bouton Ajouter */
.btn-add {
    width: auto; /* Pour qu'il ne prenne pas toute la largeur */
    padding: 10px 20px;
    background-color: #28a745; /* Vert pour "Ajouter" (Optionnel, sinon garde bordeaux) */
}
.btn-add:hover {
    background-color: #218838;
}

/* Image miniature dans le tableau */
.product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Empêcher les boutons d'actions de passer à la ligne */
.col-actions {
    white-space: nowrap;
}

/* =========================================
   PAGE DÉTAIL PRODUIT
   ========================================= */

/* 1. LA STRUCTURE (GRILLE) */
.product-detail-wrapper {
    display: grid;
    /* Création de 2 colonnes : 45% pour l'image, 55% pour le texte */
    grid-template-columns: 0.8fr 1.2fr; 
    gap: 50px; /* Espace entre l'image et le texte */
    align-items: start; /* Aligner en haut */
    margin-top: 40px;
    margin-bottom: 80px;
}

/* 2. LA COLONNE IMAGE (GAUCHE) */
.product-image-container {
    background-color: white;
    padding: 20px;
    border: 1px solid #e0dcd5; /* Bordure grise légère */
    border-radius: 8px; /* Coins arrondis */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Ombre douce */
    text-align: center;
}

.product-image-container img {
    max-height: 500px; /* Limite la hauteur */
    width: auto;
    max-width: 100%;
    object-fit: contain; /* L'image ne sera pas déformée */
}

/* 3. LA COLONNE INFOS (DROITE) */
.product-info-container {
    padding-top: 10px;
}

/* Le Badge Catégorie (Jus de Fruits) */
.badge-cat {
    display: inline-block;
    background-color: #A4161A; /* Bordeaux */
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Le Titre du produit */
.product-info-container h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: #A4161A; /* Bordeaux */
    
    /* MODIFICATION ICI :
       Le premier chiffre (-10px) est la marge du HAUT.
       Le négatif fait remonter le titre vers le badge.
       Tu peux tester -15px ou -20px si tu veux le coller encore plus. */
    margin: -55px 0 10px 0; 
    
    line-height: 1.2;
}

/* Le Prix */
.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    font-family: 'Merriweather', serif;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* Ligne de séparation fine */
}

.unit {
    font-size: 1rem;
    color: #777;
    font-weight: normal;
}

/* La Description */
.description-text {
    font-size: 1.05rem;
    line-height: 1.8; /* Texte aéré */
    color: #555;
    margin-bottom: 30px;
    text-align: justify;
}

/* 4. LA FICHE TECHNIQUE (CADRE BEIGE) */
.tech-specs {
    list-style: none; /* Enlève les points noirs moches */
    padding: 25px;
    background-color: #fdfbf7; /* Fond beige très clair (Premium) */
    border-left: 4px solid #C5A065; /* Barre dorée sur le côté */
    border-radius: 4px;
    margin-bottom: 30px;
}

.tech-specs li {
    margin-bottom: 12px;
    color: #444;
    font-size: 0.95rem;
    display: flex;
    align-items: center; /* Aligne l'icône et le texte */
}

/* Style des icônes dans la liste */
.tech-specs i {
    color: #A4161A; /* Icônes en bordeaux */
    width: 30px; /* Espace fixe pour aligner le texte */
    font-size: 1.1rem;
    text-align: center;
    margin-right: 10px;
}

.tech-specs strong {
    color: #222;
    margin-right: 5px;
}

/* 5. LE BOUTON RÉSERVER */
.btn-card {
    display: inline-block;
    background-color: #A4161A;
    color: white;
    padding: 15px 35px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(164, 22, 26, 0.2);
}

.btn-card:hover {
    background-color: #800e19; /* Plus sombre au survol */
    transform: translateY(-2px); /* Petit effet de levier */
    color: white;
}

/* 6. RESPONSIVE (MOBILE) */
@media (max-width: 850px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 30px;
    }
    
    .product-image-container {
        margin-bottom: 20px;
    }
    
    .product-info-container h1 {
        font-size: 2rem;
    }
}

/* =========================================
   AJOUTS POUR DÉTAIL PRODUIT (BIO & NAV)
   ========================================= */

/* 1. L'EN-TÊTE FLEXIBLE (Pour mettre le badge à gauche et le logo à droite) */
.product-meta-header {
    display: flex;
    justify-content: space-between; /* Espace max entre les éléments */
    align-items: flex-start;        /* Aligne en haut */
    margin-bottom: 0px;
    width: 100%;
}

/* On annule la marge du bas du badge UNIQUEMENT quand il est dans l'en-tête */
.product-meta-header .badge-cat {
    margin-bottom: 0; 
}

/* 2. LE LOGO BIO */
.bio-logo {
    width: 170px;       /* Taille du logo */
    height: auto;
    object-fit: contain;
    margin-left: 10px;
}

/* 3. LE TEXTE VERT (Type : Agriculture Biologique) */
.text-bio-green {
    color: #28a745;    /* Vert */
    font-weight: 700;  /* Gras */
}

/* 4. NAVIGATION RETOUR & ERREURS (Si pas déjà fait) */
.product-error-container {
    padding: 100px 20px;
    text-align: center;
}

.back-nav {
    margin-top: 30px;
    margin-bottom: 20px;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.back-link:hover {
    color: #A4161A; /* Ta couleur bordeaux au survol */
}

/* =========================================
   8. FORMULAIRE DE RÉSERVATION (Détail Produit)
   ========================================= */

/* Le cadre principal (Design Domaine) */
.order-form-container {
    background: white;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(100, 18, 32, 0.1);
    border-top: 3px solid #641220; /* Rappel bordeaux */
    margin-top: 50px;
}

.order-form-container h3 {
    font-family: 'Merriweather', serif;
    color: #A4161A;
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

/* Ligne dorée sous le titre (Ta signature) */
.order-form-container h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background-color: #C5A065;
    margin: 10px auto 20px;
}

.form-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-style: italic;
}

/* Alignement Prénom / Nom côte à côte */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 700;
    color: #444;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Style des champs (Inspiré de ta page contact) */
.form-group input, 
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    background-color: #fcfcfc;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #A4161A;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 1px rgba(100, 18, 32, 0.1);
}

/* Taille spécifique pour la quantité */
.input-qty {
    max-width: 100px;
}

/* Le bouton d'envoi (Design Bordeaux) */
.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #A4161A;
    color: white;
    border: none;
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #641220;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(164, 22, 26, 0.2);
}

/* Style des alertes de succès/erreur */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Responsive Mobile */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================
   POP-UP VÉRIFICATION AGE (MODERNE)
   ========================================= */

/* L'arrière-plan sombre et flouté */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 20, 20, 0.95); /* Très sombre */
    backdrop-filter: blur(5px); /* Effet flou moderne */
    z-index: 99999; /* Au-dessus de TOUT le reste */
    
    display: flex; /* Pour centrer la boîte */
    justify-content: center;
    align-items: center;
    
    /* Animation d'apparition */
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* La boîte centrale */
.modal-content {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 15px; /* Coins bien arrondis */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); /* Ombre profonde */
    font-family: 'Open Sans', sans-serif;
    
    /* Animation de montée */
    animation: slideUp 0.5s ease-out;
}

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

/* En-tête Bordeaux */
.modal-header {
    background: linear-gradient(135deg, #A4161A 0%, #640d10 100%);
    padding: 30px 20px;
    color: white;
    text-align: center;
}

.icon-wrapper {
    font-size: 2.5rem;
    color: #C5A065; /* Or */
    margin-bottom: 10px;
}

.modal-header h2 {
    margin: 0;
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white; /* Important */
    border: none; /* On enlève le trait qu'il y avait avant */
}

.subtitle {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Corps du formulaire */
.modal-body {
    padding: 30px;
    text-align: center;
}

.welcome-text {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* --- CHAMPS DE SAISIE STYLISÉS --- */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #A4161A; /* Icône bordeaux */
}

.modal-body input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Espace à gauche pour l'icône */
    border: 2px solid #eee;
    border-radius: 50px; /* Champ arrondi "Pill" */
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
    text-align: left; /* Texte normal, pas centré */
}

.modal-body input:focus {
    border-color: #C5A065; /* Or au focus */
}

/* --- BOUTON ENTRER --- */
.btn-enter {
    width: 100%;
    padding: 15px;
    background-color: #A4161A;
    color: white;
    border: none;
    border-radius: 50px; /* Bouton arrondi */
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-enter:hover {
    background-color: #800e12;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(164, 22, 26, 0.3);
}

/* --- FOOTER & ERREURS --- */
.error-text {
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: none; /* Caché par défaut */
}

.divider {
    height: 1px;
    background-color: #eee;
    margin: 25px 0 15px;
}

.legal-text {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

/* Classe utilitaire JS */
.hidden {
    display: none !important;
}

/* =========================================
   PANIER "ANTI-VIDE" - PLUS RICHE ET PRO
   ========================================= */

/* 1. Fond de section plus marqué pour casser le blanc */
.cart-section {
    background-color: #FAF8F5; /* Un gris plus soutenu pour le contraste */
    padding: 60px 0;
    min-height: 80vh;
}

.cart-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   STYLE PANIER PREMIUM - ÉDITION FINALE
   ========================================= */

/* --- 1. Amélioration Globale (Moins de blanc "nu") --- */
.cart-section {
    background-color: #FAF8F5; /* Fond légèrement teinté pour faire ressortir les blocs */
    padding: 60px 20px;
}

.cart-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

/* --- 2. Partie Gauche : Le Tableau des produits --- */
.cart-left {
    flex: 2;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eef0f2;
}

.cart-left h2 {
    font-family: 'Merriweather', serif;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #A4161A; /* Soulignement bordeaux */
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse; /* On resserre pour éviter le vide inutile */
    margin-bottom: 30px;
}

.cart-table thead th {
    background: #f8fafc;
    padding: 15px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #94a3b8;
    text-align: left;
    border-bottom: 2px solid #f1f5f9;
}

/* --- FIX IMAGE GÉANTE & ALIGNEMENT --- */
.product-info {
    display: flex !important;
    align-items: center !important; /* Image et texte sur la même ligne */
    gap: 20px;
    padding: 15px 0;
}

.cart-img {
    width: 90px !important;  /* TAILLE FIXE POUR ÉVITER LE MODE POSTER */
    height: 90px !important;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    flex-shrink: 0;
}

.product-info span {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #34495e;
    font-size: 1.05rem;
}

/* Style des cellules de prix et quantité */
.cart-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.item-total-price {
    font-weight: 700;
    color: #c0392b;
}

/* --- PANIER VIDE CENTRÉ --- */
.empty-cart {
    text-align: center; /* Centre tout le contenu */
    padding: 50px 20px;
    background: #fdfdfd;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
}

.btn-cta-panier {
    display: inline-block; /* Permet le centrage */
    background-color: #A4161A;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

/* --- BLOC TOTAL VERSION "FACTURE" (Plus de bouton) --- */
.cart-total-display {
    margin-top: 20px;
    padding: 30px 0; /* On enlève le padding interne pour l'aligner au bord */
    border-top: 2px solid #eee; /* Une ligne fine pour séparer des produits */
    display: flex;
    justify-content: flex-end; /* On pousse tout à droite */
    align-items: baseline;    /* Aligne le texte sur la même ligne */
    gap: 15px;
    background: transparent;   /* ON ENLÈVE LE ROUGE DE FOND */
}

.cart-total-display span:first-child {
    font-size: 1.1rem;
    color: #7f8c8d; /* Gris pour le libellé */
    font-style: italic;
}

.big-price {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 2.2rem; /* Le prix est bien gros et lisible */
    color: #A4161A;    /* On garde le rouge uniquement pour le chiffre */
    letter-spacing: -1px;
}
/* --- 3. Partie Droite : Le Formulaire (Vert Bio) --- */
.cart-right {
    flex: 1;
    min-width: 350px;
    position: sticky;
    top: 20px;
}

.order-form-box {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-top: 6px solid #A4161A; /* Rappel Vert Bio */
}

.form-group input, .form-group textarea {
    background-color: #f8fafc; /* Champs légèrement grisés pour le relief */
    border: 2px solid #f1f5f9;
}

.form-group input:focus {
    border-color: #27ae60;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

/* Bouton d'envoi dégradé "Denis Laroche" */
.btn-cta.full-width {
    background: linear-gradient(to right, #c0392b, #A4161A);
    color: white;
    border: none;
    padding: 18px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cta.full-width:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(192, 57, 43, 0.3);
}

/* --- EN-TÊTE DE PAGE PROFESSIONNEL --- */
.page-header {
    text-align: center;
    padding: 20px 20px;
    
    /* Ta nouvelle couleur : Douce, chaleureuse et pro */
    background-color: #FAF8F5; 
    
    /* On utilise une bordure un peu plus "chaude" pour s'accorder au beige */
    border-bottom: 2px solid #e8e4e1;
    position: relative;
}

/* La petite ligne décorative bordeaux pour la signature */
.page-header::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #A4161A; 
    margin: 25px auto 0;
    border-radius: 2px;
}

.page-header h1 {
    color: #2c3e50; /* Un gris-bleu très foncé pour le contraste */
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    margin: 0;
    font-weight: 800;
}

.page-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-top: 15px;
    font-style: italic; /* Un peu de finesse pour Denis */
}

.content-wrapper h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    color: #A4161A;
}

/* --- AMÉLIORATIONS DE DETAIL PRODUIT POUR PANIER --- */

/* Alerte de succès panier */
.alert-panier-succes {
    background: #eafaf1; 
    border-left: 5px solid #27ae60; 
    padding: 15px; 
    margin-bottom: 20px; 
    border-radius: 8px; 
    color: #27ae60;
}

/* Lien vers le panier dans l'alerte */
.link-voir-panier {
    color: #27ae60; 
    text-decoration: underline; 
    font-weight: bold; 
    margin-top: 10px; 
    display: inline-block;
}

/* Champ quantité */
.form-group-qty {
    margin-bottom: 20px;
}
.form-group-qty label {
    display: block; 
    font-weight: 600; 
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #444;
}
.input-qty-style {
    width: 80px; 
    padding: 10px; 
    border: 2px solid #eee; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    text-align: center;
    transition: border-color 0.3s;
}
.input-qty-style:focus {
    border-color: #A4161A;
    outline: none;
}

/* Bouton Bordeaux Panier */
.btn-panier-vert {
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    width: 100%; 
    padding: 15px; 
    background: #A4161A; /* Ton rouge bordeaux */
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 1.1rem; 
    transition: background 0.3s, transform 0.2s;
}

.btn-panier-vert:hover {
    background: #641220; /* Bordeaux plus sombre pour le survol */
    transform: translateY(-2px);
}

/* Texte d'info sous le bouton */
.secure-text-info {
    margin-top: 15px; 
    font-size: 0.85rem; 
    color: #7f8c8d; 
    text-align: center;
}


/* Texte de la ferme */

:root {
    --book-width: 450px;
    --book-height: 580px; /* Un peu plus haut pour les images */
    --paper-color: #f5f2e9;
    --cover-color: #3e4d1d;
}

.book-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    perspective: 2000px;
    background: #f0f0f0;
    padding: 20px;
}

.book {
    position: relative;
    width: var(--book-width);
    height: var(--book-height);
    transform-style: preserve-3d;
}

.leaf {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: left;
    transition: transform 0.8s ease-in-out; /* Animation un peu plus rapide */
    cursor: pointer;
}

.page-front, .page-back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 35px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: inset 5px 0 15px rgba(0,0,0,0.1);
    border-radius: 0 5px 5px 0;
    background: var(--paper-color);
    overflow: hidden; /* Empêche les bugs de scroll pendant la rotation */
}

.page-back {
    transform: rotateY(180deg);
    background: #e8e4d8;
}

/* Style pour les images sous les textes */
.page-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid rgba(0,0,0,0.1);
}

.leaf.flipped {
    transform: rotateY(-180deg);
}

/* Reliure */
.page-front::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 25px;
    background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
}


/* AJOUTE CE BLOC si tu veux changer spécifiquement le grand titre H2 */
.cover-front h2 {
    /* CHANGER ICI pour le titre principal */
    color: white;
    /* Si tu veux aussi changer la couleur de la ligne sous le titre */
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
}

.cover-front { background: var(--cover-color) !important; color: white; }
.presentation-content h3 { color: #3e4d1d; border-bottom: 1px solid #dcd7c9; padding-bottom: 5px; margin-bottom: 10px; }
.presentation-content p { font-size: 0.9rem; line-height: 1.4; text-align: justify; }

/* Numéro de page */
.page-number {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.8rem;
    color: #999;
}

/* =========================================
   RESPONSIVE LIVRE - MOBILE & TABLETTE
   ========================================= */

/* TABLETTE (max 1024px) */
@media (max-width: 1024px) {
    :root {
        --book-width: 380px;
        --book-height: 500px;
    }
    .book-container {
        min-height: 80vh;
        padding: 30px 15px;
    }
    .page-front, .page-back {
        padding: 25px;
    }
    .page-img {
        max-height: 170px;
    }
}

/* MOBILE (max 768px) : On désactive le livre 3D → une page à la fois */
@media (max-width: 768px) {
    .book-container {
        perspective: none;
        background: #f0f0f0;
        padding: 20px 15px;
        min-height: unset;
        flex-direction: column;
        align-items: center;
    }
    .book {
        width: 100%;
        max-width: 400px;
        height: auto;
        transform-style: flat;
        position: relative;
    }
    .leaf {
        position: relative;
        width: 100%;
        height: auto;
        transform: none !important;
        transition: none;
        cursor: default;
        display: none;
    }
    .leaf.mobile-active {
        display: block;
    }
    .page-front, .page-back {
        position: relative;
        transform: none !important;
        backface-visibility: visible;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border-radius: 8px;
        height: auto;
        min-height: 380px;
        padding: 20px 15px;
        display: none;
    }
    .leaf.mobile-active .page-front           { display: block; }
    .leaf.mobile-active.show-back .page-front { display: none;  }
    .leaf.mobile-active.show-back .page-back  { display: block; }
    .cover-front h2               { font-size: 1.3rem; }
    .cover-front p,
    .cover-front small            { font-size: 0.85rem; }
    .presentation-content h3      { font-size: 1rem; margin-bottom: 8px; }
    .presentation-content p       { font-size: 0.78rem; line-height: 1.35; }
    .page-img                     { max-height: 130px; margin-top: 10px; }
    .page-number                  { font-size: 0.7rem; bottom: 10px; right: 10px; }

    .mobile-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
        width: 100%;
        max-width: 400px;
    }
    .mobile-nav button {
        background: #3e4d1d;
        color: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 2.2rem;
        line-height: 1;
        cursor: pointer;
        transition: background 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .mobile-nav button:hover    { background: #2c3815; }
    .mobile-nav button:disabled { background: #ccc; cursor: not-allowed; }
    .mobile-nav .page-indicator {
        font-size: 0.85rem;
        color: #888;
        text-align: center;
        flex: 1;
    }
}

/* TRÈS PETIT MOBILE (max 480px) */
@media (max-width: 480px) {
    .book-container {
        padding: 15px 10px;
    }
    .book {
        max-width: calc(100vw - 30px);
    }
    .page-front, .page-back {
        padding: 18px 14px;
        min-height: 340px;
    }
    .presentation-content h3 { font-size: 0.95rem; }
    .presentation-content p  { font-size: 0.75rem; line-height: 1.3; }
    .page-img                { max-height: 110px; }
    .cover-front small {
        display: block;
        margin-top: 15px;
        font-size: 0.8rem;
        animation: pulse 1.5s infinite;
    }
    @keyframes pulse {
        0%, 100% { opacity: 0.5; }
        50%       { opacity: 1;   }
    }
}

/* Navigation mobile cachée sur desktop */
@media (min-width: 769px) {
    .mobile-nav { display: none; }
}


/* =========================================
   RESPONSIVE PANIER - MOBILE & TABLETTE
   ========================================= */

/* TABLETTE (max 1024px) */
@media (max-width: 1024px) {
    .cart-container {
        gap: 25px;
    }

    .cart-right {
        min-width: 280px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* MOBILE (max 768px) */
@media (max-width: 768px) {

    /* --- LAYOUT : On empile gauche/droite --- */
    .cart-container {
        flex-direction: column;
        padding: 0 15px;
    }

    .cart-right {
        min-width: unset;
        width: 100%;
        position: static; /* Plus de sticky sur mobile */
    }

    .cart-left {
        padding: 20px 15px;
    }

    /* --- EN-TÊTE --- */
    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    /* --- TABLEAU PRODUITS --- */
    /* On cache les colonnes "Prix unitaire" et "Qté" pour gagner de la place */
    .cart-table thead th:nth-child(2),
    .cart-table thead th:nth-child(3),
    .cart-table tbody td:nth-child(2),
    .cart-table tbody td:nth-child(3) {
        display: none;
    }

    /* Image plus petite sur mobile */
    .cart-img {
        width: 60px !important;
        height: 60px !important;
    }

    .product-info {
        gap: 12px;
    }

    .product-info span {
        font-size: 0.9rem;
    }

    .cart-table td {
        padding: 10px 8px;
    }

    /* --- TOTAL --- */
    .cart-total-display {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }

    .big-price {
        font-size: 1.8rem;
    }

    /* --- FORMULAIRE --- */
    .order-form-box {
        padding: 25px 20px;
    }
}

/* TRÈS PETIT MOBILE (max 480px) */
@media (max-width: 480px) {

    .cart-section {
        padding: 30px 0;
    }

    .page-header {
        padding: 25px 15px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .cart-left h2 {
        font-size: 1.1rem;
    }

    .cart-img {
        width: 50px !important;
        height: 50px !important;
    }

    .big-price {
        font-size: 1.5rem;
    }

    .btn-cta.full-width {
        padding: 15px;
        font-size: 0.95rem;
    }
}
