/* ==========================================================
   Les Sublimes — GAEC du Point Sublime
   Palette : vert sauge / brun chaud (ferme) + crème, vanille, fruits rouges (gourmandise)
   ========================================================== */
:root {
    --sauge: #8da07a;
    --sauge-fonce: #4f6340;
    --brun: #6b4529;
    --brun-clair: #a2724a;
    --creme: #fbf6ec;
    --vanille: #f4e4b9;
    --fruit: #b0344c;
    --encre: #2d2a24;
    --rayon: 18px;
    --ombre: 0 10px 30px rgba(79, 99, 64, .14);
    --police-titre: 'Playfair Display', Georgia, serif;
    --police-texte: 'Lato', system-ui, sans-serif;
}
body.noel { --accent: #a3262f; --accent-2: #1f5a3c; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--police-texte); color: var(--encre); background: var(--creme); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--sauge-fonce); }
h1, h2, h3 { font-family: var(--police-titre); line-height: 1.2; color: var(--brun); margin: 0 0 .6em; }
.container { width: min(1100px, 100% - 2rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- En-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
    padding: .5rem 1.2rem; transition: background .3s, box-shadow .3s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251, 246, 236, .96); box-shadow: 0 2px 14px rgba(0,0,0,.08); opacity: 0; transition: opacity .3s; }
.site-header.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { border-radius: 50%; background: #fff; }
.brand-text { font-family: var(--police-titre); font-size: 1.25rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.site-header.scrolled .brand-text { color: var(--brun); text-shadow: none; }
.nav-principal { display: flex; gap: 1.4rem; }
.nav-principal a { text-decoration: none; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.site-header.scrolled .nav-principal a { color: var(--sauge-fonce); text-shadow: none; }
.nav-noel { color: #ffd7d7 !important; }
.site-header.scrolled .nav-noel { color: var(--accent, var(--fruit)) !important; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; margin: 5px 0; background: #fff; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.site-header.scrolled .nav-toggle span { background: var(--brun); box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,26,18,.55), rgba(30,26,18,.35) 50%, rgba(30,26,18,.65)); }
.hero-contenu { position: relative; padding: 6rem 1rem 5rem; max-width: 820px; }
.hero-logo { margin: 0 auto 1.2rem; width: clamp(150px, 26vw, 230px); height: auto; border-radius: 50%; background: #fff; box-shadow: 0 8px 40px rgba(0,0,0,.4);
    animation: apparition 1.6s ease-out both; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 3.2rem); text-shadow: 0 2px 14px rgba(0,0,0,.55); animation: apparition 1.6s .4s ease-out both; }
.hero h1 em { color: var(--vanille); }
@media (forced-colors: active) { .btn, .puce { border: 2px solid ButtonText; } }
.hero-sous { font-size: 1.15rem; text-shadow: 0 1px 8px rgba(0,0,0,.6); animation: apparition 1.6s .7s ease-out both; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; animation: apparition 1.6s 1s ease-out both; }
@keyframes apparition { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.scroll-indicator { position: absolute; bottom: 1.4rem; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid #fff; border-radius: 14px; }
.scroll-indicator span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: defile 1.8s infinite; }
@keyframes defile { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }

.btn { display: inline-block; padding: .85rem 1.7rem; border-radius: 999px; background: var(--fruit); color: #fff; font-weight: 700; text-decoration: none;
    border: 2px solid var(--fruit); transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: #a8334b; }
.btn-ghost { background: transparent; border-color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.18); }

/* ---------- Sections ---------- */
.page-section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-titre { text-align: center; max-width: 700px; margin: 0 auto 2.6rem; }
.surtitre { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; color: var(--sauge-fonce); margin: 0 0 .5rem; }
.vide { text-align: center; opacity: .7; }

/* Cartes produit (glaces & bûches) : visuel généreux, teinte propre à chaque parfum (--accent) */
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1.8rem; }
.grille-cartes--buches { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 420px)); justify-content: center; }
.carte { --accent: #8da07a; --accent-rgb: 141,160,122; position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 26px; overflow: hidden;
    box-shadow: 0 8px 26px rgba(var(--accent-rgb), .22), 0 2px 6px rgba(0,0,0,.05); transition: transform .3s, box-shadow .3s; }
.carte:hover, .carte:focus-within { transform: translateY(-8px); box-shadow: 0 22px 46px rgba(var(--accent-rgb), .34), 0 2px 6px rgba(0,0,0,.06); }
.carte-media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; display: grid; place-items: center;
    background: radial-gradient(circle at 50% 38%, #fff 0%, rgba(var(--accent-rgb), .20) 100%); }
.carte--buche .carte-media { aspect-ratio: 4 / 3; }
.carte-media > img { display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.carte-media--logo > img { width: 86%; height: 86%; object-fit: contain; background: transparent; mix-blend-mode: multiply; }
.carte-media--photo > img { width: 100%; height: 100%; object-fit: cover; }
.carte-media--photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(transparent, rgba(var(--accent-rgb), .35)); pointer-events: none; }
.carte:hover .carte-media > img { transform: scale(1.07) rotate(-2deg); }
.carte-media .placeholder { width: 60%; height: 60%; opacity: .35; object-fit: contain; mix-blend-mode: normal; }
.carte-ruban { position: absolute; top: 1.5rem; left: -3rem; transform: rotate(-35deg); width: 12rem; text-align: center; padding: .3rem 0 .3rem 1.2rem; white-space: nowrap; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.carte-logo { position: absolute; right: .8rem; bottom: .8rem; z-index: 2; width: 68px; height: 68px; padding: 3px; border: 3px solid #fff; border-radius: 50%; background: #fff; cursor: zoom-in; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.carte-logo { overflow: hidden; }
.carte-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.carte-corps { padding: 1.1rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.carte-corps h3 { margin-bottom: .25em; font-size: 1.6rem; color: var(--brun); }
.carte-corps h3::after { content: ""; display: block; width: 44px; height: 4px; margin-top: .45rem; border-radius: 2px; background: var(--accent); }
.carte-corps p { margin: 0 0 .6em; font-size: .97rem; }
.carte-parfums { color: var(--fruit); font-weight: 700; }
.carte-parts { font-size: .9rem !important; font-weight: 700; }
.carte-pied { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding-top: .8rem; }
.carte-prix { display: inline-block; padding: .3rem .95rem; border-radius: 999px; background: rgba(var(--accent-rgb), .16); font-family: var(--police-titre); font-size: 1.3rem; font-weight: 700; color: var(--brun); }
.carte-cta { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--sauge-fonce); text-decoration: none; border-bottom: 2px solid rgba(var(--accent-rgb), .6); }
.carte-cta:hover { border-bottom-color: var(--accent); color: var(--brun); }
.carte--buche .carte-cta { margin-left: 0; padding: .5rem 1.2rem; border: 0; border-radius: 999px; background: var(--accent); color: #fff; }
.carte--buche .carte-cta:hover { background: #82191f; color: #fff; }
.carte--buche { box-shadow: 0 10px 30px rgba(163,38,47,.22); border: 2px solid #f0d9a0; }
.cta-section { text-align: center; margin: 3rem 0 0; }
@media (max-width: 560px) {
    .grille-cartes--glaces { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .grille-cartes--glaces .carte { border-radius: 20px; }
    .grille-cartes--glaces .carte-corps { padding: .8rem .8rem 1rem; }
    .grille-cartes--glaces .carte-corps h3 { font-size: 1.2rem; }
    .grille-cartes--glaces .carte-pied { flex-direction: column; align-items: stretch; gap: .5rem; }
    .grille-cartes--glaces .carte-cta { margin: 0; justify-content: center; font-size: .9rem; padding: 0 .6rem; border: 2px solid rgba(var(--accent-rgb), .7); border-radius: 999px; background: rgba(var(--accent-rgb), .12); }
    .grille-cartes--glaces .carte-prix { align-self: flex-start; }
    .grille-cartes--glaces .carte-prix { font-size: 1.05rem; padding: .2rem .7rem; }
}

.grille-tarifs { max-width: 480px; margin: 3rem auto 0; background: var(--vanille); border-radius: var(--rayon); padding: 1.6rem 1.8rem; }
.grille-tarifs h3 { text-align: center; }
.grille-tarifs ul { list-style: none; margin: 0; padding: 0; }
.grille-tarifs li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed rgba(107,69,41,.35); }
.grille-tarifs li:last-child { border: 0; }
.grille-tarifs .note { text-align: center; font-size: .85rem; margin: 1rem 0 0; opacity: .8; }

/* Noël */
.section-noel { background: linear-gradient(180deg, #fff3ee, #f6e1da); position: relative; overflow: hidden; }
.section-noel h2 { color: var(--accent, var(--fruit)); }
.section-noel .surtitre { color: var(--accent-2, var(--sauge-fonce)); }
.commande-noel { text-align: center; margin-top: 2.2rem; font-weight: 700; }
.flocons { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.flocon { position: absolute; top: -20px; color: #fff; text-shadow: 0 0 4px rgba(120,150,180,.8); animation: neige linear infinite; opacity: .85; }
@keyframes neige { to { transform: translate3d(var(--derive, 30px), 105vh, 0) rotate(360deg); } }

/* ---------- Notre histoire ---------- */
.section-histoire { position: relative; background: linear-gradient(180deg, var(--creme), #f1ead6 60%, var(--creme)); overflow: hidden; }
.section-histoire .container { position: relative; z-index: 1; }
.citation { margin: 0 auto 3.5rem; max-width: 820px; text-align: center; font-family: var(--police-titre); font-size: clamp(1.7rem, 4.6vw, 3rem); line-height: 1.25; color: var(--brun); position: relative; padding: 0 1rem; }
.citation::before { content: "“"; display: block; font-size: 5rem; line-height: .6; color: var(--sauge); opacity: .6; }
.citation em { color: var(--fruit); font-style: italic; }
.citation footer { margin-top: 1rem; font-family: var(--police-texte); font-size: 1rem; color: var(--sauge-fonce); letter-spacing: .04em; }
.histoire-grille { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.portrait { position: sticky; top: 96px; margin: 0; }
.portrait-cadre { border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 3 / 4; border: 6px solid #fff; box-shadow: 0 18px 40px rgba(79,99,64,.28); background: var(--vanille); }
.portrait-cadre img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.portrait figcaption { text-align: center; margin-top: 1rem; font-size: .95rem; color: var(--sauge-fonce); }
.portrait figcaption span { display: block; font-family: var(--police-titre); font-style: italic; font-size: 1.6rem; color: var(--brun); }
.chapitres { list-style: none; margin: 0; padding: 0 0 0 2.2rem; position: relative; counter-reset: ch; }
.chapitres::before { content: ""; position: absolute; left: 0; top: .6rem; bottom: .6rem; border-left: 3px dashed var(--sauge); }
.chapitre { position: relative; background: #fff; border-radius: var(--rayon); padding: 1.5rem 1.6rem 1.4rem; margin-bottom: 1.6rem; box-shadow: var(--ombre); }
.chapitre::before { content: ""; position: absolute; left: -2.2rem; top: 1.8rem; width: 16px; height: 16px; margin-left: -7px; border-radius: 50%; background: var(--fruit); border: 3px solid var(--creme); }
.chapitre:nth-child(even) { background: #fbf2d8; }
.chapitre-num { position: absolute; right: 1.2rem; top: .4rem; font-family: var(--police-titre); font-size: 3.4rem; font-weight: 700; color: var(--sauge); opacity: .28; line-height: 1; }
.chapitre h3 { font-size: 1.3rem; margin-right: 3.5rem; }
.chapitre p { margin: 0; }
.chapitre:first-child p::first-letter { float: left; font-family: var(--police-titre); font-size: 3.2rem; line-height: .85; padding: .25rem .5rem 0 0; color: var(--fruit); }
.pastilles { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; padding: 0; margin: 3rem 0; }
.pastilles li { background: var(--sauge-fonce); color: #fff; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.polaroids { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.2rem); padding: 1rem 1rem 0; }
.polaroids figure { margin: 0; background: #fff; padding: .7rem .7rem 1rem; box-shadow: 0 10px 26px rgba(0,0,0,.18); transition: transform .3s; }
.polaroids figure:nth-child(1) { transform: rotate(-3deg); } .polaroids figure:nth-child(2) { transform: rotate(2deg) translateY(14px); } .polaroids figure:nth-child(3) { transform: rotate(-2deg); }
.polaroids figure:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.polaroids img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.polaroids figcaption { text-align: center; font-family: var(--police-titre); font-style: italic; padding-top: .7rem; color: var(--brun); }
.invitation { max-width: 680px; margin: 3.5rem auto 0; text-align: center; font-family: var(--police-titre); font-size: 1.35rem; color: var(--sauge-fonce); font-style: italic; }

/* ---------- Où nous retrouver ---------- */
.bandeau-rdv { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; align-items: center; padding: .9rem 1rem; background: var(--fruit); color: #fff; text-decoration: none; text-align: center; }
.bandeau-rdv:hover { background: #a8334b; }
.bandeau-pastille { background: #fff; color: #8e2038; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .7rem; border-radius: 999px; }
.bandeau-lien { text-decoration: underline; }
.section-retrouver { background: #fff; }
.retrouver-grille { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.6rem; align-items: start; }
.bloc-ferme, .bloc-agenda { background: var(--creme); border-radius: var(--rayon); padding: 1.6rem; box-shadow: var(--ombre); }
.bloc-ferme { background: var(--sauge-fonce); color: #fff; }
.bloc-ferme h3 { color: #fff; }
.bloc-ferme .adresse { font-size: 1.1rem; font-weight: 700; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px dashed rgba(107,69,41,.35); }
.agenda li:last-child { border: 0; }
.agenda-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 14px; background: var(--fruit); color: #fff; line-height: 1.05; }
.agenda-date b { font-family: var(--police-titre); font-size: 1.7rem; } .agenda-date i { font-style: normal; font-size: .75rem; text-transform: uppercase; }
.agenda-date--rec { background: var(--sauge-fonce); }
.agenda-texte { display: flex; flex-direction: column; font-size: .95rem; }
.agenda-texte strong { font-family: var(--police-titre); font-size: 1.15rem; color: var(--brun); }
.agenda-carte { white-space: nowrap; font-weight: 700; }
.partenaires { margin-top: 3rem; }
.partenaires h3 { text-align: center; }
.partenaires-grille { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.partenaire { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.2rem; border-radius: var(--rayon); background: var(--vanille); }
.partenaire strong { font-family: var(--police-titre); font-size: 1.1rem; color: var(--brun); }
.puce { align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--sauge-fonce); color: #fff; padding: .15rem .6rem; border-radius: 999px; }
.devenir { text-align: center; margin-top: 1.6rem; font-weight: 700; }

/* ---------- Contact ---------- */
.section-contact { background: var(--sauge-fonce); color: #fff; }
.section-contact h2, .section-contact .surtitre { color: #fff; }
.section-contact a { color: #fff; }
.contact-grille { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
.accroche { font-size: 1.15rem; }
.infos { list-style: none; margin: 1.6rem 0 0; padding: 1.2rem 1.4rem; background: rgba(255,255,255,.13); border-radius: var(--rayon); }
.infos li { padding: .35rem 0; }
.contact-carte { background: #fff; color: var(--encre); border-radius: var(--rayon); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.form-contact label, .form-contact .champ > label { display: block; font-weight: 700; margin-bottom: .3rem; }
.form-contact input:not([type=checkbox]), .form-contact select, .form-contact textarea { width: 100%; padding: .75rem .85rem; min-height: 46px; font: inherit; color: var(--encre); background: #fff; border: 2px solid #b9b19c; border-radius: 10px; }
.form-contact textarea { resize: vertical; }
.champ { margin-bottom: 1rem; }
.champ--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.champ--2 > div[hidden], [data-pour][hidden] { display: none; }
.case { display: flex !important; gap: .7rem; align-items: flex-start; font-weight: 400 !important; }
.case input { width: 24px; height: 24px; flex: none; margin-top: .1rem; accent-color: var(--sauge-fonce); }
.erreur { display: block; color: #a01f36; font-weight: 700; margin-top: .3rem; }
[aria-invalid=true] { border-color: #a01f36 !important; }
.aide { font-size: .88rem; color: #5c5648; margin: .4rem 0 0; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alerte { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 700; }
.alerte--err { background: #fbe3e7; color: #7a1328; border: 2px solid #a01f36; }
.alerte--ok { background: #e3f1d9; color: #1f4a12; border: 2px solid #4f6340; margin: 0; }
.btn-clair { background: #fff; color: var(--sauge-fonce); border-color: #fff; }
.btn-clair:hover { background: var(--vanille); }
.form-contact .btn { cursor: pointer; font: inherit; font-weight: 700; }

/* ---------- Accessibilité ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #1b4fd8; outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .section-contact :focus-visible, .bloc-ferme :focus-visible, .bandeau-rdv:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #1b4fd8; }
.video-pause { position: absolute; left: 1rem; bottom: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.45); color: #fff; font-size: 1.1rem; cursor: pointer; z-index: 2; }
.carte-logo { display: block; }
.btn, .nav-principal a, .agenda-carte, .footer-links a { min-height: 44px; }
.nav-principal a { display: inline-flex; align-items: center; }
.footer-links a { display: inline-flex; align-items: center; }

/* Pied de page */
.site-footer { background: var(--brun); color: #f3e9dc; text-align: center; padding: 2.5rem 0; font-size: .92rem; }
.footer-logo { margin: 0 auto .6rem; background: #fff; border-radius: 50%; }
.footer-tag { font-family: var(--police-titre); font-style: italic; font-size: 1.1rem; margin: 0 0 1rem; }
.footer-links { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.site-footer a { color: #f3e9dc; }
.version-site { opacity: .55; margin-left: .5rem; }

.texte-legal { padding-top: 7rem; max-width: 760px; }

/* Lightbox logo */
.dialogue-logo { border: 0; border-radius: var(--rayon); padding: 1.2rem; max-width: min(92vw, 520px); text-align: center; }
.dialogue-logo::backdrop { background: rgba(30,26,18,.7); }
.dialogue-logo img { max-height: 70vh; margin: 0 auto; }
.dialogue-logo p { margin: .6rem 0 0; font-family: var(--police-titre); }
.fermer { position: absolute; right: .5rem; top: .3rem; font-size: 2rem; line-height: 1; background: none; border: 0; cursor: pointer; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Tablette / mobile ---------- */
@media (max-width: 1020px) {
    .nav-toggle { display: block; position: relative; z-index: 120; }
    .nav-principal { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); height: 100vh; height: 100dvh; overflow-y: auto; flex-direction: column; padding: 5.5rem 1.6rem; gap: .6rem;
        background: #fbf6ec; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; box-shadow: -8px 0 30px rgba(0,0,0,.2); z-index: 110; }
    .nav-principal.ouvert { transform: none; visibility: visible; }
    .nav-principal a, .site-header.scrolled .nav-principal a { color: var(--sauge-fonce); text-shadow: none; font-size: 1.15rem; }
    .nav-noel, .site-header.scrolled .nav-noel { color: var(--accent, var(--fruit)) !important; }
    .site-header.menu-ouvert .nav-toggle span { background: var(--brun); box-shadow: none; }
}
@media (max-width: 860px) {
    .histoire-grille, .retrouver-grille, .contact-grille { grid-template-columns: 1fr; }
    .portrait { position: static; max-width: 340px; margin: 0 auto; }
    .chapitres { padding-left: 1.8rem; }
    .polaroids { grid-template-columns: 1fr 1fr; }
    .polaroids figure:nth-child(3) { grid-column: 1 / -1; max-width: 55%; margin: 0 auto; }
}
@media (max-width: 560px) {
    .champ--2 { grid-template-columns: 1fr; }
    .agenda li { grid-template-columns: 56px 1fr; }
    .agenda-date { width: 56px; height: 56px; }
    .agenda-carte { grid-column: 2; }
    .polaroids { grid-template-columns: 1fr; }
    .polaroids figure:nth-child(3) { max-width: none; }
    .citation::before { font-size: 3.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .hero video { display: none; }
    .hero { background: url('../img/hero-poster.jpg') center / cover; }
}

/* Menu ouvert : la page derrière ne défile pas, fond assombri */
body.menu-ouvert { overflow: hidden; }
body.menu-ouvert::after { content: ""; position: fixed; inset: 0; background: rgba(30,26,18,.55); z-index: 90; }
.nav-principal a { border-radius: 10px; }
@media (max-width: 1020px) { .nav-principal a { padding: .5rem .8rem; width: 100%; } .nav-principal a:hover { background: #efe7d2; } }

/* ---------- Sections bien distinctes (fond propre + vague de séparation) ---------- */
:root { --fond-glaces: #fffaf0; --fond-confiture: #f7e2b4; --fond-noel: #fbe3dc; --fond-engagements: #fffaf0; --fond-pros: #e6eddb; --fond-histoire: #f3e6bf; --fond-retrouver: #dfe8d1; --fond-contact: #4f6340; }
.page-section { position: relative; }
.vague { position: absolute; top: -3px; left: 0; width: 100%; height: 44px; display: block; color: var(--prec, transparent); pointer-events: none; z-index: 2; }
@media (min-width: 700px) { .vague { height: 54px; } }
@media (min-width: 1100px) { .vague { height: 64px; } }
.vague path { fill: currentColor; }
#glaces { background: var(--fond-glaces) radial-gradient(circle at 1px 1px, rgba(141,160,122,.22) 1.5px, transparent 0) 0 0 / 26px 26px; }
.section-confiture { background: var(--fond-confiture); --prec: var(--fond-glaces); }
.section-noel { background: var(--fond-noel); --prec: var(--fond-glaces); }
.section-confiture + .section-noel { --prec: var(--fond-confiture); }
.section-engagements { background: var(--fond-engagements); --prec: var(--fond-glaces); }
.section-confiture + .section-engagements { --prec: var(--fond-confiture); }
.section-noel + .section-engagements { --prec: var(--fond-noel); }
.section-pros { background: var(--fond-pros); --prec: var(--fond-engagements); }
.section-histoire { background: radial-gradient(circle 360px at 0% 22%, rgba(141,160,122,.30), transparent 70%), radial-gradient(circle 340px at 100% 88%, rgba(176,52,76,.12), transparent 70%), var(--fond-histoire); --prec: var(--fond-pros); }
.section-retrouver { background: var(--fond-retrouver); --prec: var(--fond-histoire); }
.section-contact { background: var(--fond-contact); --prec: var(--fond-retrouver); }
.section-retrouver .bloc-agenda { background: #fff; }
.section-retrouver .partenaire { background: #fff; }
.section-retrouver .partenaires h3 { color: var(--sauge-fonce); }
.section-histoire .section-titre h2, .section-retrouver .section-titre h2 { position: relative; display: inline-block; }
.section-titre h2::after { content: ""; display: block; width: 72px; height: 5px; margin: .6rem auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--sauge), var(--fruit)); }
.section-contact .section-titre h2::after, .contact-intro h2::after { display: none; }
.sticky-fix { }

/* ---------- Histoire : 4 étapes ludiques ---------- */
.chapitres { --c1: #4f6340; --c2: #b0344c; --c3: #9a6510; --c4: #6b4529; padding-left: 4.2rem; }
.chapitres::before { left: 1.45rem; border-left: 4px dotted rgba(79,99,64,.45); top: 0; bottom: 0; }
.chevre-marcheuse { position: absolute; left: .55rem; top: 0; width: 2rem; z-index: 3; font-size: 1.7rem; line-height: 1; transition: top .15s linear; pointer-events: none; }
.chevre-marcheuse span { display: block; animation: trotte .7s ease-in-out infinite alternate; filter: drop-shadow(0 3px 2px rgba(0,0,0,.25)); }
@keyframes trotte { from { transform: rotate(-8deg) translateY(0); } to { transform: rotate(8deg) translateY(-3px); } }
.chapitre { --couleur: var(--c1); display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.5rem 1.5rem 1.4rem 1.5rem; background: #fff; border-radius: 22px; border: 3px solid var(--couleur);
    box-shadow: 6px 6px 0 var(--couleur); margin-bottom: 2.2rem; transition: transform .25s, box-shadow .25s; cursor: default; }
.chapitre--2 { --couleur: var(--c2); } .chapitre--3 { --couleur: var(--c3); } .chapitre--4 { --couleur: var(--c4); }
.chapitre::before { display: none; }
.chapitre:nth-child(even), .chapitre:nth-child(n) { background: #fff; }
.chapitre:hover, .chapitre:focus-within { transform: translate(-3px, -4px) rotate(-.6deg); box-shadow: 10px 10px 0 var(--couleur); }
.chapitre--2:hover { transform: translate(-3px, -4px) rotate(.6deg); }
.chapitre-badge { position: absolute; left: -4.2rem; top: 1rem; width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--couleur); color: #fff;
    border: 4px solid var(--fond-histoire); box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.chapitre-badge b { position: absolute; bottom: -.7rem; right: -.5rem; background: #fff; color: var(--couleur); border: 2px solid var(--couleur); border-radius: 999px; padding: 0 .4rem; font-size: .75rem; font-family: var(--police-titre); }
.chapitre-icone { font-size: 1.6rem; display: block; transition: transform .3s; }
.chapitre:hover .chapitre-icone { animation: rebond .6s ease; }
@keyframes rebond { 0%,100% { transform: none; } 30% { transform: translateY(-8px) scale(1.25) rotate(-12deg); } 60% { transform: translateY(0) rotate(10deg); } }
.chapitre-num { display: none; }
.chapitre-corps h3 { color: var(--couleur); margin-right: 0; font-size: 1.35rem; }
.chapitre-corps p { margin: 0; }
/* Entrée alternée et animée */
.chapitre.reveal { transform: translateX(50px) rotate(1.5deg); }
.chapitre--2.reveal, .chapitre--4.reveal { transform: translateX(50px) rotate(-1.5deg); }
.chapitre.reveal.visible { transform: none; }
.chapitre.reveal.visible:hover { transform: translate(-3px, -4px) rotate(-.6deg); }
.chapitre-icone { animation: pop .6s .3s both; }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.3); } to { transform: none; } }
@media (max-width: 860px) {
    .chapitres { padding-left: 3.6rem; }
    .chapitres::before { left: 1.2rem; }
    .chevre-marcheuse { left: .35rem; }
    .chapitre-badge { left: -3.7rem; width: 3rem; height: 3rem; }
    .chapitre { flex-direction: column; gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .chevre-marcheuse span, .chapitre-icone { animation: none !important; }
    .chapitre.reveal { transform: none !important; }
}

/* Ingrédients repliables sur les cartes */
.carte-ingredients { margin: .2rem 0 .8rem; font-size: .92rem; border-top: 1px dashed rgba(107,69,41,.35); padding-top: .5rem; }
.carte-ingredients summary { cursor: pointer; font-weight: 700; color: var(--sauge-fonce); min-height: 32px; display: flex; align-items: center; }
.carte-ingredients p { margin: .3rem 0 0 !important; font-size: .9rem !important; }
.carte-poids { opacity: .8; }


/* ---------- v1.4.0 : tarifs, confitures de lait, engagements, professionnels ---------- */
.glaces-bientot { text-align: center; margin: 2rem 0 0; font-size: 1.05rem; }
.grille-tarifs h4 { margin: 1.2rem 0 .4rem; font-size: 1.05rem; color: var(--brun); }
.grille-tarifs h4:first-of-type { margin-top: .4rem; }
.grille-tarifs small { font-weight: 400; font-size: .75em; opacity: .8; }
.grille-tarifs--pros { margin: 0; max-width: none; background: #fff; }

.section-confiture h2 { color: #7a4a1c; }
.section-confiture .surtitre { color: #9a6510; }
.grille-cartes--confitures { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.carte--confiture .carte-media { aspect-ratio: 4 / 3; }
.carte-pot { font-size: clamp(3.5rem, 9vw, 5rem); line-height: 1; filter: drop-shadow(0 6px 6px rgba(0,0,0,.18)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.carte:hover .carte-pot { transform: scale(1.12) rotate(-6deg); }
.carte--confiture .carte-cta { margin-left: 0; padding: .5rem 1.2rem; border: 0; border-radius: 999px; background: var(--accent); color: #fff; }
.carte--confiture .carte-cta:hover { filter: brightness(.88); color: #fff; }
.confiture-idees { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; padding: 0; margin: 2.2rem 0 0; font-weight: 700; color: #7a4a1c; }
@media (max-width: 560px) { .grille-cartes--confitures { grid-template-columns: 1fr 1fr; gap: 1rem; } .carte--confiture .carte-corps { padding: .8rem .8rem 1rem; } .carte--confiture .carte-corps h3 { font-size: 1.15rem; } .carte--confiture .carte-pied { flex-direction: column; align-items: stretch; } .carte--confiture .carte-cta { justify-content: center; } }

.noel-infos { text-align: center; max-width: 640px; margin: 2rem auto 0; }

.engagements { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; gap: 1.2rem; }
.engagements li { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border-radius: var(--rayon); padding: 1.2rem 1.4rem; box-shadow: var(--ombre); }
.engagements li > span { flex: none; font-size: 2rem; line-height: 1.2; }
.engagements h3 { margin: 0 0 .3em; font-size: 1.25rem; }
.engagements p { margin: 0; }
.marque-pays { text-align: center; margin: 2rem 0 0; font-weight: 700; color: var(--sauge-fonce); }

.pros-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.8rem; max-width: 900px; margin: 0 auto; align-items: start; }
.pros-atouts { background: #fff; border-radius: var(--rayon); padding: 1.6rem 1.8rem; box-shadow: var(--ombre); }
.pros-atouts h3 { text-align: center; }
.pros-atouts ul { list-style: none; margin: 0; padding: 0; }
.pros-atouts li { padding: .5rem 0; border-bottom: 1px dashed rgba(107,69,41,.35); }
.pros-atouts li:last-child { border: 0; }
.btn-contour { border-color: var(--sauge-fonce); }
.section-pros .cta-section { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.pros-tel { text-align: center; margin: 1.6rem 0 0; font-weight: 700; }

/* ---------- Noël : modèle « nature » validé par le GAEC (v1.6.0) ---------- */
:root { --fond-noel: #f6efe2; --noel-vert: #1f4d2b; --noel-rouge: #9e1f2a; --noel-brun: #4a2a14; --noel-or: #c99a3e; }
.section-noel { background: var(--fond-noel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); overflow: hidden; }
.section-noel h2 { color: var(--noel-brun); }
.section-noel .surtitre { color: var(--noel-vert); font-weight: 700; letter-spacing: .12em; }
.noel-entete { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.4rem; max-width: 940px; margin: 0 auto 2.4rem; }
.noel-logo { width: 96px; height: 96px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(74,42,20,.2); }
.noel-entete h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.05; margin: .2rem 0 .5rem; }
.noel-message { margin: 0; max-width: 520px; }
.noel-prix { margin: 0; width: 150px; height: 150px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.05;
    background: radial-gradient(circle at 35% 30%, #f4d99a, var(--noel-or) 70%, #a5782a); color: var(--noel-brun); box-shadow: 0 8px 20px rgba(74,42,20,.3); transform: rotate(-4deg); }
.noel-prix strong { font-family: var(--police-titre); font-size: 1.9rem; }
.noel-prix span { font-size: .85rem; font-weight: 700; margin-bottom: .25rem; }
@media (max-width: 700px) {
    .noel-entete { grid-template-columns: 1fr auto; text-align: left; gap: 1rem; }
    .noel-logo { display: none; }
    .noel-prix { width: 118px; height: 118px; } .noel-prix strong { font-size: 1.45rem; } .noel-prix span { font-size: .72rem; }
}
/* Cartes : photo sur fond blanc, bûches côte à côte, vacherin en grand dessous */
.grille-cartes--buches { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1.6rem; max-width: 940px; margin: 0 auto; }
.carte--buche { border: 1px solid #e7dcc6; border-radius: 14px; box-shadow: 0 8px 24px rgba(74,42,20,.12); }
.carte--buche .carte-media { background: #fff; }
.carte--buche .carte-media--photo::after { display: none; }
.carte--buche:hover .carte-media > img { transform: scale(1.04); }
.carte--buche .carte-corps h3 { color: var(--noel-brun); font-size: 1.45rem; }
.carte--buche .carte-corps h3::after { background: var(--noel-rouge); width: 36px; height: 3px; }
.carte--buche .carte-parfums { color: var(--noel-vert); }
.carte--buche .carte-ruban { background: var(--noel-vert); }
.carte--buche .carte-cta { background: var(--noel-rouge); }
.carte--vedette { border: 2px solid var(--noel-or); }
.carte--vedette .carte-ruban { background: linear-gradient(90deg, #7d1520, var(--noel-rouge), #7d1520); color: #ffe7b0; }
@media (min-width: 760px) {
    .grille-cartes--buches .carte--vedette { grid-column: 1 / -1; flex-direction: row; }
    .carte--vedette .carte-media { flex: 0 0 56%; aspect-ratio: 4 / 3; }
    .carte--vedette .carte-corps { justify-content: center; padding: 1.6rem 2rem; }
    .carte--vedette .carte-corps h3 { font-size: 1.9rem; }
}
.noel-atouts-ligne { text-align: center; font-family: var(--police-titre); font-size: 1.3rem; color: var(--noel-vert); margin: 2.2rem 0 .2rem; }
.noel-atouts-ligne span { color: var(--noel-rouge); margin: 0 .5rem; }
.noel-slogan { text-align: center; font-family: var(--police-titre); font-style: italic; font-size: 1.2rem; color: var(--noel-brun); margin: 0 0 1.8rem; }
.noel-reserver { max-width: 780px; margin: 0 auto; padding: 1.6rem 1.4rem 1.4rem; text-align: center; background: rgba(255,255,255,.55);
    border: 2px solid var(--noel-vert); outline: 1px solid var(--noel-vert); outline-offset: 5px; border-radius: 6px; }
.noel-reserver h3 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: var(--noel-rouge); margin: 0 0 .5rem; }
.noel-reserver h3 span { color: var(--noel-vert); }
.noel-bandeau { display: inline-block; margin: 0 0 .9rem; padding: .3rem 1.2rem; background: var(--noel-rouge); color: #fff; font-size: .95rem;
    clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 50%); }
.noel-tels { font-size: clamp(1.4rem, 3.8vw, 2rem); font-weight: 700; margin: 0 0 .4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .8rem; }
.noel-tels a { color: var(--encre); text-decoration: none; white-space: nowrap; }
.noel-tels span { color: var(--noel-vert); }
.noel-contacts, .noel-reserver .noel-infos { font-size: .92rem; margin: .2rem auto; }
.noel-contacts a { color: var(--noel-vert); }
.noel-reserver .btn { margin-top: .9rem; }
.noel-modeles { text-align: center; font-size: .82rem; font-style: italic; opacity: .7; margin: 1.4rem 0 0; }
.btn-noel { background: var(--noel-rouge); border-color: var(--noel-rouge); }
.btn-noel:hover { background: #7d1520; }

/* Décor « nature » (mode Noël) : sapin, pignes, houx, oranges séchées */
.page-section > .container { position: relative; z-index: 2; }
.deco-noel { position: absolute; z-index: 1; pointer-events: none; user-select: none; width: clamp(130px, 22vw, 300px); height: auto; }
.deco-noel--hg { top: 1.2rem; left: 0; }
.deco-noel--hd { top: 1.2rem; right: 0; transform: scaleX(-1); }
.deco-noel--bd { bottom: 0; right: 0; }
.deco-noel--bg { bottom: 0; left: 0; transform: scaleX(-1); }
.deco-noel--petit-bg { bottom: 1rem; left: 1rem; width: clamp(60px, 8vw, 110px); transform: rotate(-18deg); }
.deco-noel--petit-hd { top: 3.4rem; right: 1.2rem; width: clamp(80px, 10vw, 150px); transform: rotate(12deg); }
.deco-noel--pied { position: static; display: block; margin: 0 auto .6rem; width: min(320px, 70%); }
@media (max-width: 700px) { .deco-noel:not(.deco-noel--pied) { width: 110px; opacity: .85; } .deco-noel--petit-bg, .deco-noel--petit-hd { width: 64px; } }
@media (min-width: 760px) { .grille-cartes--buches { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .section-noel .noel-entete { margin-top: 3.2rem; } .section-noel .deco-noel--hg, .section-noel .deco-noel--hd { width: 96px; } }
