/* ============================================================
   Domaine de la Roche — Styles publics
   Palette : gris ardoise, vert vigne, lie-de-vin, pierre chaude
   Typo : Fraunces (display) + Inter (texte)
   Signature : motif de strates de pierre (terroir argilo-siliceux)
   ============================================================ */

/* Polices hébergées sur le site (et non chez Google : aucune donnée de visiteur transmise).
   Fraunces et Inter, licence SIL Open Font License (assets/fonts/OFL-*.txt). */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/fraunces-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --roche-foncee: #3E4348;
    --roche-claire: #E9E6DF;
    --vert-nature: #586A39;
    --fond-clair: #FDFCF9;
    --texte: #333333;
    --lie-de-vin: #6B2737;
    --lie-de-vin-clair: #8B3A4A;
    --pierre-chaude: #C9BBA0;
    --erreur: #B23A3A;
    --succes: #4C6B3F;

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --ombre-douce: 0 4px 18px rgba(62, 67, 72, 0.08);
    --ombre-marquee: 0 14px 34px rgba(62, 67, 72, 0.16);
    --rayon: 6px;
    --transition-douce: 0.35s cubic-bezier(.22,.61,.36,1);
    --ease-douce: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
    font-family: var(--font-body);
    background-color: var(--fond-clair);
    color: var(--texte);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--roche-foncee);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

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

/* Accessibilité : focus clavier toujours visible */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--lie-de-vin);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- EYEBROW / LABEL (esprit étiquette de vin) ---------- */
.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lie-de-vin);
    display: inline-block;
    margin-bottom: 0.7rem;
}

/* ---------- NAVIGATION ---------- */
#main-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(62, 67, 72, 0.93);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#main-header.scrolled { background-color: rgba(62, 67, 72, 0.98); box-shadow: 0 6px 22px rgba(0,0,0,0.16); }

nav { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; position: relative; }

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fond-clair);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    line-height: 1.2;
}
.nav-logo-wrap {
    display: inline-flex;
    background: var(--fond-clair);
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.nav-logo-wrap img { width: 58px; height: auto; display: block; }
.logo-texte { display: flex; flex-direction: column; }
.logo-eyebrow {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pierre-chaude);
}

/* Centré indépendamment de la largeur du logo et du panier (qui ne font pas la même largeur,
   donc un simple justify-content:space-between ne suffit pas à centrer visuellement le menu). */
.nav-links {
    list-style: none; display: flex; gap: 28px; flex-wrap: wrap;
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.nav-links a {
    font-family: var(--font-body);
    color: var(--fond-clair);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%; height: 2px;
    bottom: 0; left: 0;
    background-color: var(--lie-de-vin-clair);
    transition: width var(--transition-douce);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.panier-lien {
    color: var(--fond-clair);
    text-decoration: none;
    position: relative;
    font-size: 1.3rem;
    transition: transform var(--transition-douce);
}
.panier-lien:hover { transform: scale(1.08); }
.panier-badge {
    position: absolute;
    top: -8px; right: -12px;
    background: var(--lie-de-vin);
    color: #fff;
    font-size: 0.7rem;
    font-family: var(--font-body);
    padding: 1px 6px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

/* Bouton hamburger : masqué par défaut, affiché seulement quand le menu bascule en dropdown mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px; height: 34px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block; width: 100%; height: 2px;
    background: var(--fond-clair); border-radius: 2px;
    transition: transform var(--transition-douce), opacity var(--transition-douce);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
    background-color: #14181c;
    background-image: linear-gradient(180deg, rgba(20,24,28,.55) 0%, rgba(20,24,28,.62) 55%, rgba(20,24,28,.82) 100%), url('../images/en-tete.avif');
    background-position: center 35%;
    background-size: cover;
    background-repeat: no-repeat;
    /* Hauteur minimale seulement : le bandeau s'agrandit si le logo + le texte ne tiennent pas */
    min-height: clamp(440px, 68vh, 620px);
    display: flex; justify-content: center; align-items: center;
    text-align: center;
    color: #fff;
    /* Le haut est réservé au menu fixe, pour que le logo ne passe pas dessous */
    padding: 90px 5% 1.5rem;
    position: relative;
}
.hero-content { max-width: 720px; }
.hero-logo-wrap {
    display: inline-block;
    margin: 0 auto 1.3rem;
    opacity: 0;
    animation: leverDeRideau 0.6s var(--ease-douce) 0.05s forwards;
}
.hero-logo-wrap img { width: min(300px, 75vw); height: auto; display: block; }
/* Accroche puis logo, empilés et centrés au-dessus du titre, sur toutes les pages */
.hero-entete {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.8rem; margin-bottom: 1rem;
}
@media (max-width: 600px) {
    .hero-entete .hero-logo-wrap img { width: 200px; }
}
.hero-entete .hero-logo-wrap, .hero-entete .eyebrow { margin: 0; }
.hero-content .eyebrow { color: var(--pierre-chaude); }
.hero-content h1 {
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    margin-bottom: 1.1rem;
    opacity: 0;
    animation: leverDeRideau 0.6s var(--ease-douce) 0.1s forwards;
}
.hero-content p {
    max-width: 620px; margin: 0 auto 2rem; font-size: 1.15rem;
    opacity: 0;
    animation: leverDeRideau 0.6s var(--ease-douce) 0.2s forwards;
}
.hero-content .eyebrow { opacity: 0; animation: leverDeRideau 0.5s var(--ease-douce) 0s forwards; }
.hero-content .btn { opacity: 0; animation: leverDeRideau 0.6s var(--ease-douce) 0.3s forwards; }

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

/* Filet de sécurité : si les polices/animations tardent, le texte reste lisible dès le départ */
.hero-content h1, .hero-content p, .hero-content .eyebrow, .hero-content .btn, .hero-logo-wrap {
    animation-fill-mode: both;
}

/* ---------- SEPARATEUR DECORATIF (signature) ---------- */
.strata-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    margin-top: -1px;
    padding: 0 6%;
}
.divider-trait { flex: 1 1 auto; max-width: 360px; height: 1px; }
.divider-trait-gauche { background: linear-gradient(90deg, transparent, var(--pierre-chaude) 88%); }
.divider-trait-droite { background: linear-gradient(90deg, var(--pierre-chaude) 12%, transparent); }
.divider-motif { flex: 0 0 auto; margin: 0 16px; }
.divider-motif-contour { fill: var(--fond-clair); stroke: var(--lie-de-vin); stroke-width: 1.3; }
.divider-motif-coeur { fill: var(--vert-nature); opacity: 0.6; }

/* ---------- BOUTONS ---------- */
.btn {
    display: inline-block;
    background: var(--lie-de-vin);
    color: #fff;
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: var(--rayon);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-douce), box-shadow var(--transition-douce), background var(--transition-douce);
    box-shadow: var(--ombre-douce);
}
.btn:hover { transform: translateY(-3px); background: var(--lie-de-vin-clair); box-shadow: var(--ombre-marquee); }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--fond-clair);
    color: var(--fond-clair);
    box-shadow: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-secondaire { background: var(--roche-foncee); }
.btn-secondaire:hover { background: #2c3033; }

/* ---------- SECTIONS GENERIQUES ---------- */
/* padding horizontal en % de la largeur du body (pas de la section elle-même, qui peut être
   bridée par un max-width comme sur merci.php) : sur un écran ultrawide, 8% du viewport devient
   énorme et peut manger presque toute la largeur d'une section étroite (box-sizing: border-box),
   d'où le clamp() qui plafonne ce padding. */
section { padding: 6rem clamp(1.5rem, 8%, 6rem); }
.bg-roche-claire { background: var(--roche-claire); }
.section-titre { text-align: center; margin-bottom: 3.5rem; }
.section-titre h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 0.7rem; }
.section-titre p { color: #666; max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

.bloc-domaine { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center; max-width: 980px; margin: 0 auto; }
.bloc-domaine img { width: 100%; border-radius: var(--rayon); box-shadow: var(--ombre-marquee); object-fit: cover; aspect-ratio: 4/5; }
.bloc-domaine p { font-size: 1.05rem; }
@media (max-width: 760px) { .bloc-domaine { grid-template-columns: 1fr; } .bloc-domaine img { aspect-ratio: 3/2; } }

/* Section « Le vigneron et son équipe » : 2 photos côte à côte (une seule : centrée) */
.photos-equipe { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 900px; margin: 2.5rem auto 0; }
.photos-equipe--une { grid-template-columns: minmax(0, 440px); justify-content: center; }
.photos-equipe figure { margin: 0; }
.photos-equipe img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--rayon); box-shadow: var(--ombre-marquee); }
.photos-equipe figcaption { margin-top: 0.8rem; text-align: center; font-size: 0.95rem; color: #555; }
@media (max-width: 600px) { .photos-equipe { grid-template-columns: 1fr; } }

/* Reveal au scroll — apparitions orchestrées, pas dispersées */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--transition-douce), transform .8s var(--transition-douce); }
.reveal.active { opacity: 1; transform: translateY(0); }
.grille-produits.reveal-groupe .carte-produit,
.grille-evenements.reveal-groupe .carte-evenement {
    opacity: 0; transform: translateY(24px);
    transition: opacity .7s var(--transition-douce), transform .7s var(--transition-douce);
}
.grille-produits.reveal-groupe.active .carte-produit,
.grille-evenements.reveal-groupe.active .carte-evenement {
    opacity: 1; transform: translateY(0);
}
.grille-produits.reveal-groupe.active .carte-produit:nth-child(1) { transition-delay: 0.05s; }
.grille-produits.reveal-groupe.active .carte-produit:nth-child(2) { transition-delay: 0.12s; }
.grille-produits.reveal-groupe.active .carte-produit:nth-child(3) { transition-delay: 0.19s; }
.grille-produits.reveal-groupe.active .carte-produit:nth-child(4) { transition-delay: 0.26s; }
.grille-produits.reveal-groupe.active .carte-produit:nth-child(5) { transition-delay: 0.33s; }
.grille-produits.reveal-groupe.active .carte-produit:nth-child(6) { transition-delay: 0.40s; }
.grille-evenements.reveal-groupe.active .carte-evenement:nth-child(1) { transition-delay: 0.05s; }
.grille-evenements.reveal-groupe.active .carte-evenement:nth-child(2) { transition-delay: 0.12s; }
.grille-evenements.reveal-groupe.active .carte-evenement:nth-child(3) { transition-delay: 0.19s; }

/* ---------- GRILLE PRODUITS (BOUTIQUE) ---------- */
.filtres-categories {
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
    margin-bottom: 3.5rem;
}
.filtres-categories a {
    text-decoration: none;
    padding: 0.55rem 1.4rem;
    border: 1.5px solid var(--roche-foncee);
    border-radius: 999px;
    color: var(--roche-foncee);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition-douce);
}
.filtres-categories a.active, .filtres-categories a:hover {
    background: var(--roche-foncee);
    color: #fff;
}

.grille-produits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 280px));
    justify-content: center;
    gap: 2.2rem;
}
/* Cartes plus petites pour la sélection "Nos cuvées phares" sur l'accueil : peu de cartes (3),
   pas besoin qu'elles s'étirent sur toute la largeur de la section comme dans la boutique. */
.grille-produits--accueil {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

.carte-produit {
    background: #fff;
    border-radius: var(--rayon);
    overflow: hidden;
    box-shadow: var(--ombre-douce);
    transition: transform var(--transition-douce), box-shadow var(--transition-douce);
    display: flex; flex-direction: column;
    position: relative;
}
.carte-produit:hover { transform: translateY(-7px); box-shadow: var(--ombre-marquee); }
.carte-produit .image-wrap { overflow: hidden; display: block; }
.carte-produit .image-wrap img { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: var(--fond-clair); transition: transform 0.6s var(--transition-douce); }
.carte-produit:hover .image-wrap img { transform: scale(1.04); }
.carte-produit .badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--lie-de-vin); color: #fff;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
    padding: 4px 11px; border-radius: 999px;
}
/* Badge Guide Hachette (image, une par vin) : posé sur la photo, bords arrondis */
.badge-hachette {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 92px; aspect-ratio: 1; object-fit: cover;
    border-radius: 14%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.28);
    transition: transform var(--transition-douce);
}
.carte-produit:hover .badge-hachette { transform: rotate(-6deg) scale(1.05); }
.fiche-produit-visuel { position: relative; width: fit-content; margin: 0 auto; }
.fiche-produit-visuel .photo-vin { max-width: 100%; max-height: 720px; width: auto; margin: 0 auto; cursor: zoom-in; }
.fiche-produit-visuel .badge-hachette { width: 120px; top: 16px; right: 16px; }
@media (max-width: 480px) { .carte-produit .badge-hachette { width: 78px; } }
.carte-produit .contenu { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.carte-produit h3 { font-size: 1.2rem; }
.carte-produit .cepage { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--vert-nature); }
.carte-produit .description {
    font-size: 0.92rem; color: #555; margin-bottom: auto;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.carte-produit .bas-carte {
    display: flex; justify-content: space-between; align-items: center; margin-top: 0.7rem;
}
.carte-produit .prix { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--lie-de-vin); }
.stock-epuise { color: var(--erreur); font-size: 0.85rem; font-weight: bold; }
.logo-vi { height: 60px; width: auto; aspect-ratio: auto; object-fit: contain; }
.carte-produit .logo-vi { height: 60px; width: auto; aspect-ratio: auto; object-fit: contain; margin-top: 0.2rem; align-self: flex-start; }
.fiche-produit .logo-vi { height: 80px; width: auto; aspect-ratio: auto; object-fit: contain; margin: 0.8rem 0; }

/* ---------- FICHE PRODUIT ---------- */
.fiche-produit {
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.5rem;
    align-items: start;
}
.fiche-produit .photo-vin { border-radius: var(--rayon); box-shadow: var(--ombre-marquee); }
.fiche-produit h1 { margin-bottom: 0.5rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.fiche-produit .prix-grand { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--lie-de-vin); margin: 1.1rem 0 0.2rem; }
.fiche-produit .prix-unite { font-family: var(--font-body); font-size: 0.95rem; font-weight: 400; color: #777; }
.fiche-produit .prix-carton { color: #555; margin-bottom: 1.1rem; }
.fiche-produit .prix-carton strong { color: var(--lie-de-vin); }
.qte-unite { color: #777; font-size: 0.95rem; }
/* Appellation, sous le cépage (fiche produit et cartes) */
.appellation { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--lie-de-vin); }
.fiche-produit .appellation { font-size: 0.95rem; margin-top: 0.2rem; }
.carte-produit .prix small { font-family: var(--font-body); font-size: 0.72rem; font-weight: 400; color: #888; }
.nb-cartons { font-size: 0.82rem; color: #777; white-space: nowrap; }
.fiche-meta { display: flex; gap: 1rem; margin-top: 0.6rem; }
.fiche-meta span {
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--roche-foncee); background: var(--roche-claire); padding: 3px 10px; border-radius: 999px;
}
.fiche-bloc { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--roche-claire); }
.fiche-bloc h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--roche-foncee); }
.fiche-bloc p { color: #555; font-size: 0.95rem; }
.form-quantite { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0; }
.form-quantite button {
    width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 1.1rem;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.form-quantite input {
    width: 70px; padding: 0.6rem; text-align: center;
    border: 1.5px solid #ddd; border-radius: var(--rayon); font-family: var(--font-body); font-size: 1rem;
}
@media (max-width: 760px) {
    .fiche-produit { grid-template-columns: 1fr; }
    .fiche-produit-visuel .photo-vin { max-width: 100%; max-height: 420px; }
}

/* ---------- PANIER ---------- */
.tableau-panier { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.tableau-panier th, .tableau-panier td {
    padding: 1.1rem 0.6rem; border-bottom: 1px solid var(--roche-claire); text-align: left;
}
.tableau-panier th { font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: #888; }
.tableau-panier img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.ligne-produit-panier { display: flex; align-items: center; gap: 1rem; }
.tableau-panier input[type="number"] { width: 60px; padding: 0.4rem; text-align: center; border: 1.5px solid #ddd; border-radius: 4px; }
.lien-supprimer { color: var(--erreur); text-decoration: none; font-size: 0.85rem; }
.recap-total { text-align: right; font-family: var(--font-display); font-size: 1.5rem; margin: 1.5rem 0; color: var(--roche-foncee); }
.panier-vide { text-align: center; padding: 5rem 0; }

/* En dessous de 760px, le tableau du panier devient une pile de cartes : une ligne à 5 colonnes
   (dont un champ quantité et un bouton) ne peut pas rester lisible en scroll horizontal sur mobile. */
@media (max-width: 760px) {
    .tableau-panier, .tableau-panier tbody, .tableau-panier tr, .tableau-panier td { display: block; width: 100%; }
    .tableau-panier thead { display: none; }
    .tableau-panier tr {
        background: #fff;
        border: 1px solid var(--roche-claire);
        border-radius: var(--rayon);
        margin-bottom: 1rem;
        overflow: hidden;
    }
    .tableau-panier td {
        padding: 0.7rem 1rem;
        border-bottom: 1px solid var(--roche-claire);
    }
    .tableau-panier tr td:last-child { border-bottom: none; }
    .tableau-panier td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #999;
        margin-bottom: 0.35rem;
    }
}

/* ---------- GRILLES DE FORMULAIRE (contact / commande) : 2 colonnes desktop, empilées sous 760px ---------- */
.grille-formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grille-formulaire--commande { grid-template-columns: 1.3fr 1fr; align-items: start; }
@media (max-width: 760px) {
    .grille-formulaire { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- FORMULAIRES (contact / commande) ---------- */
.champ { margin-bottom: 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
.champ label { font-size: 0.88rem; font-weight: 600; color: var(--roche-foncee); }
.champ input, .champ textarea, .champ select {
    padding: 0.8rem; border: 1.5px solid #ddd; border-radius: var(--rayon); font-size: 1rem; font-family: var(--font-body);
    transition: border-color var(--transition-douce);
}
.champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--lie-de-vin); outline: none; }
.champ-options { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.champ-options label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 400; color: var(--texte); cursor: pointer; }
.champ-options input[type="radio"], .champ-options input[type="checkbox"] { width: auto; accent-color: var(--lie-de-vin); }
/* Page commande : champs côte à côte, case de consentement, récapitulatif avec frais de port */
.champs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 480px) { .champs-duo { grid-template-columns: 1fr; } }
.case-consentement { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.4rem 0 1.6rem; font-size: 0.9rem; color: #555; cursor: pointer; }
.case-consentement input { width: auto; margin-top: 0.2rem; accent-color: var(--lie-de-vin); flex-shrink: 0; }
.case-consentement + .case-consentement { margin-top: -0.9rem; }
.case-consentement a { color: var(--lie-de-vin); }
.recap-ligne { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; font-size: 0.95rem; }
.recap-ligne em { font-size: 0.85rem; color: #777; text-align: right; }
.recap-ligne--total { font-size: 1.2rem; font-weight: bold; margin-top: 0.8rem; }
.recap-ligne s { color: #999; font-size: 0.88rem; margin-right: 0.15rem; }
.recap-remise { display: inline-block; background: var(--vert-nature); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-left: 0.2rem; }
.recap-livraison { margin-top: 1.2rem; font-size: 0.85rem; color: #555; line-height: 1.5; }
.panier-livraison { text-align: right; font-size: 0.9rem; color: #555; margin: -0.8rem 0 1.5rem; }
.panier-livraison strong { color: var(--vert-nature); }

/* Carte « Nous situer » (page Contact), sous les coordonnées */
.bloc-carte { margin-top: 2.2rem; }
.bloc-carte h3 { margin-bottom: 0.9rem; }
.bloc-carte .carte {
    height: 300px; border-radius: var(--rayon); box-shadow: var(--ombre-douce);
    position: relative; z-index: 0; isolation: isolate; /* garde la carte sous le menu fixe */
}
.lieux-proches { list-style: none; margin: 1rem 0 1.3rem; padding: 0; }
.lieux-proches li { padding: 0.45rem 0 0.45rem 1.3rem; position: relative; font-size: 0.92rem; line-height: 1.4; }
.lieux-proches li::before { content: ''; position: absolute; left: 0.1rem; top: 0.82rem; width: 10px; height: 10px; border-radius: 50%; background: var(--vert-nature); }
.lieux-proches strong { color: var(--roche-foncee); font-weight: 600; }
.lieux-proches span { color: #666; white-space: nowrap; }
.marqueur-carte span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--vert-nature); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.marqueur-carte--domaine span { background: var(--lie-de-vin); }
/* Sélecteurs doublés : leaflet.css est chargé après cette feuille et imposerait sinon son blanc */
.leaflet-tooltip.etiquette-domaine { background: var(--lie-de-vin); color: #fff; border: none; font-weight: 600; font-size: 0.78rem; padding: 3px 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.leaflet-tooltip-top.etiquette-domaine::before { border-top-color: var(--lie-de-vin); }
@media (max-width: 760px) { .bloc-carte .carte { height: 260px; } }

/* Visionneuse : image agrandie en plein écran (photo du vin, photos d'événements) */
.visionneuse {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center;
    padding: 4vh 4vw; background: rgba(15, 17, 19, 0.92); cursor: zoom-out;
}
.visionneuse[hidden] { display: none; }
.visionneuse img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--rayon); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.visionneuse-fermer {
    position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
    border: none; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff;
    font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.visionneuse-fermer:hover, .visionneuse-fermer:focus-visible { background: rgba(255,255,255,0.3); }
body.visionneuse-ouverte { overflow: hidden; }

/* Bandeau cookies, en bas de l'écran tant que le visiteur n'a pas choisi */
.bandeau-cookies {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1100;
    max-width: 760px; margin: 0 auto; padding: 1rem 1.3rem;
    display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap;
    background: #fff; color: var(--texte); border-radius: var(--rayon); box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    font-size: 0.9rem;
}
.bandeau-cookies[hidden] { display: none; }
.bandeau-cookies p { flex: 1 1 320px; margin: 0; }
.bandeau-cookies a { color: var(--lie-de-vin); }
.bandeau-cookies-boutons { display: flex; gap: 0.6rem; }
.bandeau-cookies .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.message-succes { background: #eaf1e6; color: var(--succes); padding: 1rem 1.3rem; border-radius: var(--rayon); margin-bottom: 1.5rem; }
.message-erreur { background: #f7e6e6; color: var(--erreur); padding: 1rem 1.3rem; border-radius: var(--rayon); margin-bottom: 1.5rem; }

/* ---------- RECAP VIREMENT (page merci.php) ---------- */
.recap-virement { width: 100%; }
.recap-virement .ligne-info {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem;
    padding: 0.7rem 0; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.recap-virement .ligne-info:last-child { border-bottom: none; }
.recap-virement .ligne-info .etiquette { color: #666; flex: 0 0 auto; }
.recap-virement .ligne-info .valeur { font-weight: 600; text-align: right; }
.recap-virement .ligne-info.montant .valeur { color: var(--lie-de-vin); font-size: 1.2rem; }

/* ---------- EVENEMENTS ---------- */
.grille-evenements { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 2.2rem; }
.carte-evenement { background: #fff; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-douce); transition: transform var(--transition-douce), box-shadow var(--transition-douce); }
.carte-evenement:hover { transform: translateY(-5px); box-shadow: var(--ombre-marquee); }
/* Photo d'événement : entière (affiche ou photo, tout format) sur un fond flouté tiré d'elle-même */
.visuel-evenement { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--roche-foncee); }
.visuel-evenement-fond {
    position: absolute; inset: -24px;
    background-size: cover; background-position: center;
    filter: blur(18px) brightness(0.65) saturate(1.1);
}
.visuel-evenement img { position: relative; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.carte-evenement .contenu { padding: 1.4rem; }
.carte-evenement .date-event { color: var(--lie-de-vin); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: 0.4rem; }

/* ---------- VERIFICATION DE L'AGE ---------- */
.age-gate {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(rgba(20,24,28,.75), rgba(20,24,28,.85)), url('../images/en-tete.avif') center/cover no-repeat;
    padding: 2rem;
}
.age-gate-card .nav-logo-wrap { background: none; padding: 0; }
.age-gate-card {
    background: var(--fond-clair);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    max-width: 480px;
    text-align: center;
    box-shadow: var(--ombre-marquee);
}
.age-gate-card h1 { font-size: 1.6rem; margin-bottom: 1rem; }
.age-gate-boutons { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.8rem; }

/* ---------- PAGES LEGALES ---------- */
.contenu-legal { max-width: 760px; margin: 0 auto; }
.contenu-legal h2 { margin: 2rem 0 0.8rem; font-size: 1.3rem; }
.contenu-legal p, .contenu-legal li { color: #555; margin-bottom: 0.8rem; }
.contenu-legal ul { padding-left: 1.3rem; }
.contenu-legal a { color: var(--lie-de-vin); }
.contenu-legal .maj-legale { font-size: 0.88rem; color: #888; margin-top: -0.4rem; }
/* Textes imposés par la loi (garantie de conformité, formulaire de rétractation) */
.encadre-legal { background: #fff; border: 1px solid var(--roche-claire); border-left: 4px solid var(--lie-de-vin); border-radius: var(--rayon); padding: 1.1rem 1.3rem; margin: 1rem 0 1.4rem; }
.encadre-legal p { font-size: 0.93rem; }
.encadre-legal p:last-child { margin-bottom: 0; }
/* Tableau des traitements de données : défile horizontalement sur petit écran */
.tableau-legal { overflow-x: auto; margin: 1rem 0 1.2rem; }
.tableau-legal table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.9rem; }
.tableau-legal th, .tableau-legal td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--roche-claire); color: #555; }
.tableau-legal th { background: var(--roche-claire); color: var(--roche-foncee); font-weight: 600; }
@media (max-width: 640px) {
    /* Sur mobile, chaque ligne du tableau devient une fiche, chaque cellule gardant son intitulé */
    .tableau-legal table { min-width: 0; }
    .tableau-legal thead { display: none; }
    .tableau-legal tr, .tableau-legal td { display: block; }
    .tableau-legal tr { background: #fff; border: 1px solid var(--roche-claire); border-radius: var(--rayon); margin-bottom: 0.9rem; padding: 0.3rem 0; }
    .tableau-legal td { border-bottom: none; padding: 0.35rem 0.9rem; }
    .tableau-legal td::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 600; color: var(--roche-foncee); text-transform: uppercase; letter-spacing: 0.04em; }
}

/* ---------- FOOTER ---------- */
footer { background: var(--roche-foncee); color: var(--roche-claire); padding: 3.5rem 8% 1.8rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.2rem; }
.footer-logo-wrap { margin-bottom: 0.8rem; }
.footer-logo-wrap img { width: 150px; }
.footer-col h4 {
    font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--pierre-chaude); margin-bottom: 0.9rem;
}
.footer-col p { margin-bottom: 0.4rem; font-size: 0.92rem; }
.footer-liens { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-liens a { color: var(--roche-claire); text-decoration: none; transition: color var(--transition-douce); font-size: 0.92rem; }
.footer-liens a:hover { color: var(--pierre-chaude); }
.footer-badge { display: flex; align-items: center; gap: 0.7rem; margin-top: 1rem; }
.footer-badge-logo { width: 40px; height: auto; border-radius: 3px; flex-shrink: 0; }
.footer-badge p { margin: 0; font-size: 0.82rem; opacity: 0.8; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 0.9rem; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--roche-claire); text-decoration: none; transition: background var(--transition-douce);
}
.footer-social a:hover { background: var(--lie-de-vin); }
.footer-bas {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem; opacity: 0.75;
}
.footer-bas-liens { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-bas-liens a { color: var(--roche-claire); text-decoration: none; }
.footer-bas-liens a:hover { color: var(--pierre-chaude); }

@media (max-width: 760px) {
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    section { padding: 4rem 6%; }
    .hero { min-height: 78vh; }

    /* Compense le header fixe pour les pages qui ne commencent pas par un hero (panier, commande...) :
       le hero, lui, doit continuer à passer sous le header, c'est l'effet recherché à cette hauteur. */
    main { padding-top: 90px; }
    main > .hero:first-child { margin-top: -90px; }
}

/* Menu mobile/tablette : bascule en dropdown sous le header dès que la nav en ligne serait trop à
   l'étroit. Avant, les liens s'empilaient sur plusieurs lignes dans le header (position fixe), qui
   devenait alors assez haut pour recouvrir le logo et le début du titre du hero. */
@media (max-width: 860px) {
    nav { flex-wrap: wrap; }
    .nav-toggle { display: flex; order: 3; }
    .panier-lien { order: 2; }
    .logo { order: 1; }
    .nav-links {
        position: static; left: auto; top: auto; transform: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-douce);
    }
    .nav-links.ouvert { max-height: 400px; }
    .nav-links a { display: block; padding: 0.75rem 0.5rem; text-align: center; }
}

/* Sur téléphone, le texte "Domaine de la Roche" à côté du logo est trop large pour cohabiter avec
   le panier et le bouton hamburger sur la même ligne : on ne garde que l'icône. */
@media (max-width: 480px) {
    .logo-texte { display: none; }
    .nav-logo-wrap img { width: 44px; }
}
