/* Maison Dufour — « vitrine du soir » : le noir de la façade et de l'enseigne, la crème chantilly, le rouge griotte des bûches. */
@font-face { font-family: 'Prata'; src: url(../fonts/prata.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url(../fonts/lexend.woff2) format('woff2'); font-weight: 300 600; font-display: swap; }
:root {
  --noir: #141312; --noir-2: #222020; --creme: #FBF6EE; --creme-2: #F1E8DA;
  --griotte: #A3172C; --griotte-d: #82111F; --choco: #5B3B2C; --or: #D9B57A;
  --encre: #1B1918; --encre-2: #5D5752; --line: #E3D8C7;
  --f-d: 'Prata', 'Didot', Georgia, serif; --f-t: 'Lexend', -apple-system, system-ui, sans-serif;
  --gut: 16px; --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 700px) { :root { --gut: 32px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 300 1.05rem/1.6 var(--f-t); -webkit-font-smoothing: antialiased; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
b, strong { font-weight: 500; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-d); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; } button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--gut), 1160px); margin-inline: auto; }
.kicker { font: 500 .74rem/1 var(--f-t); letter-spacing: .24em; text-transform: uppercase; color: var(--griotte); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 2px; border: 0; font: 500 .98rem var(--f-t); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .2s; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--griotte); color: #fff; } @media (hover: hover) and (pointer: fine) { .btn-main:hover { background: var(--griotte-d); } }
.btn-creme { background: var(--creme); color: var(--noir); }
.btn-line { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.btn-full { width: 100%; } .btn-sm { min-height: 44px; padding: 0 16px; font-size: .92rem; }

.top { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gut) 10px; color: #fff; transition: background-color .3s, color .3s; }
.top.solid { background: rgba(20, 19, 18, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.logo { margin-right: auto; text-decoration: none; display: grid; line-height: 1; }
.logo b { font: 400 1.35rem var(--f-d); font-weight: 400; }
.logo small { font: 400 .62rem var(--f-t); letter-spacing: .26em; text-transform: uppercase; opacity: .75; margin-top: 5px; }
.nav { display: none; gap: 26px; } .nav a { text-decoration: none; font-size: .92rem; } @media (min-width: 900px) { .nav { display: flex; } }

/* Héros : la vitrine des bûches */
.hero { position: relative; min-height: 100svh; background: var(--noir); color: #fff; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media { bottom: 34%; } .hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
@media (min-width: 900px) { .hero-media { bottom: 0; } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,19,18,.5) 0%, rgba(20,19,18,0) 18%, rgba(20,19,18,.55) 40%, rgba(20,19,18,.93) 58%, var(--noir) 100%); }
.hero-copy { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
.hero .kicker { color: var(--or); }
.hero h1 { font-size: clamp(2.6rem, 11.5vw, 6rem); margin-top: 12px; }
.hero h1 em { font-style: italic; color: var(--or); }
.hero .lead { margin-top: 12px; color: rgba(255,255,255,.82); max-width: 34ch; }
.hero .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.compte { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 14px; font-size: .92rem; color: rgba(255,255,255,.8); }
.compte b { font: 400 2rem/1 var(--f-d); color: #fff; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .hero-copy { padding-bottom: 70px; } }

/* La carte des bûches */
.buches { background: var(--noir); color: #fff; padding: 64px 0 72px; }
.buches .kicker { color: var(--or); }
.buches h2, .anniv h2, .maison h2, .commande h2, .infos h2 { font-size: clamp(2.2rem, 8.5vw, 3.8rem); margin-top: 10px; }
.buches .intro { color: rgba(255,255,255,.72); margin-top: 12px; max-width: 46ch; }
.vitrine { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px var(--gut) 6px; margin: 0 calc(-1 * var(--gut)); scrollbar-width: none; overscroll-behavior-x: contain; }
.vitrine::-webkit-scrollbar { display: none; }
.buche { scroll-snap-align: center; margin: 0; background: var(--noir-2); border-radius: 4px; overflow: hidden; display: grid; }
.buche .ph { aspect-ratio: 4 / 5; overflow: hidden; }
.buche img, .buche video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
@media (hover: hover) and (pointer: fine) { .buche:hover img { transform: scale(1.05); } }
.buche figcaption { padding: 16px; display: grid; gap: 10px; }
.buche h3 { font-size: 1.5rem; }
.buche p { color: rgba(255,255,255,.66); font-size: .93rem; }
.buche .btn { justify-self: start; }
@media (min-width: 700px) { .vitrine { grid-auto-columns: 42%; } }
@media (min-width: 1100px) { .vitrine { grid-auto-columns: calc((100% - 42px) / 4); overflow: visible; margin: 0; padding-inline: 0; } }

/* Anniversaire : l'inscription se pose sur le gâteau */
.anniv { padding: 72px 0; }
.anniv-grid { display: grid; gap: 26px; align-items: center; }
.gateau { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(20,19,18,.45); max-width: 520px; width: 100%; justify-self: center; }
.gateau img { width: 100%; height: 100%; object-fit: cover; }
.inscr { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); width: 54%; text-align: center; font: italic 400 clamp(1.3rem, 6vw, 2.2rem)/1.05 var(--f-d); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25), 0 0 16px rgba(91,59,44,.65); pointer-events: none; }
.anniv .intro { color: var(--encre-2); margin-top: 12px; max-width: 44ch; }
@media (min-width: 900px) { .anniv-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Depuis 1987 */
.maison { background: var(--creme-2); padding: 64px 0; }
.maison-grid { display: grid; gap: 24px; }
.maison img { border-radius: 4px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.maison p { color: var(--encre-2); margin-top: 12px; max-width: 48ch; }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.chiffres div { border-top: 1px solid var(--encre); padding-top: 10px; }
.chiffres b { display: block; font: 400 clamp(1.8rem, 7vw, 2.6rem)/1 var(--f-d); }
.chiffres span { font-size: .85rem; color: var(--encre-2); }
@media (min-width: 900px) { .maison-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; } }

/* Commander */
.commande { padding: 72px 0 80px; }
.carte { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px; margin-top: 26px; }
.switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--encre); }
.switch button { min-height: 48px; border: 0; background: transparent; cursor: pointer; font-weight: 400; }
.switch button[aria-selected='true'] { background: var(--encre); color: #fff; }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field > label, .field > .lbl { font-weight: 500; font-size: .93rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; border-radius: 2px; border: 1px solid var(--line); background: var(--creme); padding: 12px 14px; font: 300 16px var(--f-t); color: var(--encre); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--griotte); background: #fff; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--creme); border-radius: 2px; cursor: pointer; }
.choix button[aria-checked='true'] { background: var(--griotte); border-color: var(--griotte); color: #fff; }
.duo { display: grid; gap: 0 14px; } @media (min-width: 640px) { .duo { grid-template-columns: 1fr 1fr; } }
.err { color: var(--griotte-d); font-size: .9rem; } .err:empty { display: none; }
.form-ok { margin-top: 16px; background: #EDF4EE; color: #1F5B36; padding: 14px 16px; font-weight: 400; }
.hp { position: absolute; left: -9999px; }
.note-prix { margin-top: 12px; font-size: .88rem; color: var(--encre-2); }
@media (min-width: 900px) { .commande-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; } .commande-grid .carte { margin-top: 0; } .commande-side { position: sticky; top: 100px; } }
.commande-side img { margin-top: 22px; border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.infos { background: var(--noir); color: #fff; padding: 64px 0 40px; }
.infos .kicker { color: var(--or); }
.infos-grid { display: grid; gap: 22px; margin-top: 22px; }
.horaires { width: 100%; border-collapse: collapse; } .horaires td { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); } .horaires td:last-child { text-align: right; }
.horaires tr.auj td { color: var(--or); }
.adr { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 900px) { .infos-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.avis { margin-top: 30px; font: italic 400 clamp(1.3rem, 5vw, 1.9rem)/1.3 var(--f-d); max-width: 30ch; color: var(--creme-2); }
.avis + p { margin-top: 8px; font-size: .9rem; color: rgba(255,255,255,.6); }

.barre { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(20,19,18,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; grid-template-columns: auto 1fr; gap: 8px; transform: translateY(110%); transition: transform .4s var(--ease); }
.barre.on { transform: none; } .barre .btn-line { color: #fff; }
@media (min-width: 900px) { .barre { display: none; } }
footer { background: var(--noir); color: rgba(255,255,255,.6); padding: 10px 0 calc(96px + env(safe-area-inset-bottom, 0px)); font-size: .88rem; border-top: 1px solid rgba(255,255,255,.1); }
footer .wrap { display: grid; gap: 8px; padding-top: 24px; } footer a { color: #fff; } footer b { font: 400 1.25rem var(--f-d); color: #fff; }
.legal { padding: 110px 0 60px; } .legal h1 { font-size: 2.3rem; } .legal h2 { font-size: 1.3rem; margin-top: 26px; } .legal p { margin-top: 10px; color: var(--encre-2); max-width: 70ch; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Revue héros 21/11 : lisibilité du titre (voile renforcé + ombre douce) */
.hero::after { background: linear-gradient(180deg, rgba(20,19,18,.55) 0%, rgba(20,19,18,.1) 14%, rgba(20,19,18,.6) 28%, rgba(20,19,18,.88) 42%, rgba(20,19,18,.96) 56%, var(--noir) 100%); }
.hero .kicker, .hero h1, .hero .lead { text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.45); }
@media (min-width: 900px) {
  .hero::after { background:
    linear-gradient(180deg, rgba(20,19,18,.6) 0%, rgba(20,19,18,0) 16%),
    linear-gradient(90deg, rgba(20,19,18,.92) 0%, rgba(20,19,18,.82) 44%, rgba(20,19,18,.35) 70%, rgba(20,19,18,.12) 100%),
    linear-gradient(180deg, rgba(20,19,18,0) 55%, rgba(20,19,18,.7) 100%); }
}
@media (min-width: 900px) { .hero h1 { font-size: clamp(3.4rem, 5.4vw, 5rem); } }
