/* Fuoco — maquette La Batisse. Polices libres (OFL) auto-hébergées, aucune requête externe. */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --terre: #8A3216;      /* brique, fond principal */
  --terre-2: #74280F;
  --safran: #F4B23A;     /* accent, titres sur brique */
  --farine: #F7EAD0;     /* crème */
  --charbon: #1E110A;
  --tomate: #D8401F;
  --basilic: #3E6B35;
  --display: "Bricolage", "Arial Black", sans-serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --r: 22px;
  --pad: clamp(16px, 4vw, 48px);
  --grain: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--terre); color: var(--farine); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid var(--safran); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--safran); color: var(--charbon); padding: 12px 18px; border-radius: 999px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--safran); margin: 0 0 16px; }
.big { font-size: clamp(56px, 11vw, 176px); }

/* Boutons */
.pill, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--safran); color: var(--charbon); font: 700 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: transform .2s, background-color .2s, color .2s; }
.pill:hover, .btn:hover { transform: translateY(-2px); background: var(--farine); }
.pill--ghost { background: transparent; color: var(--safran); box-shadow: inset 0 0 0 2px var(--safran); }
.pill--ghost:hover { background: var(--safran); color: var(--charbon); }
.btn { min-height: 56px; padding: 0 32px; font-size: 15px; }
.btn--dark { background: var(--charbon); color: var(--farine); }
.btn--dark:hover { background: var(--tomate); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px var(--pad); transition: background-color .3s; }
.nav.is-scrolled { background: color-mix(in srgb, var(--terre-2) 88%, transparent); backdrop-filter: blur(10px); }
.nav__left, .nav__right { display: flex; gap: 8px; }
.nav__right { justify-content: flex-end; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--safran); text-decoration: none; font: 800 28px/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.logo svg { width: 26px; height: 32px; }

/* Scène : accueil + savoir-faire */
.scene { position: relative; background: url("img/texture-brique.webp") center / cover, var(--terre); overflow: clip; }
.hero { position: relative; min-height: 100svh; padding: 120px var(--pad) 40px; text-align: center; }
.dots { border: 0; border-top: 4px dotted color-mix(in srgb, var(--safran) 70%, transparent); margin: 0; }
.hero__title { font-size: clamp(64px, 17.5vw, 300px); color: var(--safran); padding: 2px 0 6px; white-space: nowrap; }
.hero__sub { font: 800 clamp(24px, 4vw, 56px)/1 var(--display); text-transform: uppercase; color: var(--farine); margin: 20px 0 0; letter-spacing: -.01em; }
.hero__foot { position: absolute; left: var(--pad); bottom: 40px; max-width: 290px; text-align: left; font-size: 14px; font-weight: 500; z-index: 3; }
.hero__foot p { margin: 0 0 16px; }
.tex { background: url("img/texture-safran.webp") center / cover; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Sans JavaScript : la pizza en image fixe, les étapes les unes sous les autres */
.scene__stage { position: relative; width: min(70vw, 620px); margin: -8vw auto 0; }
.scene__canvas { display: none; }
.scene__fallback { width: 100%; height: auto; }
.story__steps { list-style: none; margin: 0 auto; padding: 48px var(--pad) 96px; max-width: 1320px; display: grid; gap: 64px; }
.step__num { font: 700 14px/1 var(--display); letter-spacing: .1em; color: var(--safran); }
.step h2 { font-size: clamp(44px, 6.5vw, 104px); margin: 16px 0 20px; }
.step p { max-width: 420px; margin: 0; font-size: 18px; }

/* Avec JavaScript : scène épinglée, séquence d'images au défilement */
.scene.is-live { height: 100vh; height: 100svh; }
.scene.is-live .hero { position: absolute; inset: 0; }
.scene.is-live .scene__stage { position: absolute; z-index: 2; left: 50%; top: 50%; width: min(88vh, 70vw); aspect-ratio: 1; margin: 0; pointer-events: none; }
.scene.is-live .scene__canvas { display: block; width: 100%; height: 100%; }
.scene.is-live .scene__fallback { display: none; }
.scene.is-live .story__steps { position: absolute; inset: 0; padding: 0 var(--pad); display: grid; align-items: center; }
.scene.is-live .step { grid-area: 1 / 1; max-width: 48%; }
.scene.is-live .step h2 { font-size: clamp(40px, 5.2vw, 88px); }

/* Carte */
.carte { background: var(--grain), var(--farine); color: var(--charbon); padding: clamp(120px, 16vw, 220px) 0 clamp(72px, 10vw, 140px); }
.carte__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.carte .big { color: var(--terre); }
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--terre) 12%, transparent); }
.tabs button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--terre); font: 700 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--terre); color: var(--farine); }
.menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 64px; }
.menu li { padding: 24px 0; border-top: 2px solid color-mix(in srgb, var(--charbon) 14%, transparent); }
.menu__line { display: flex; align-items: baseline; gap: 12px; }
.menu h3 { font-size: clamp(24px, 2.4vw, 32px); }
.lead { flex: 1; border-bottom: 3px dotted color-mix(in srgb, var(--terre) 45%, transparent); transform: translateY(-6px); }
.price { font: 800 clamp(22px, 2.2vw, 30px)/1 var(--display); color: var(--terre); }
.menu p { margin: 10px 0 0; color: #5A3B2C; max-width: 46ch; }
.tag { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--safran); font: 700 11px/1.4 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.tag--veg { background: #CFE0C3; color: #24401F; }
.tag--hot { background: var(--tomate); color: var(--farine); }
.carte__note { margin: 40px 0 0; font-size: 14px; color: #6B4A3A; }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; padding: 12px; background: var(--charbon); }
.galerie figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.galerie figcaption { position: absolute; left: 20px; bottom: 16px; font: 800 clamp(28px, 4vw, 56px)/1 var(--display); text-transform: uppercase; color: var(--farine); text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.g1 { grid-column: span 7; aspect-ratio: 4 / 3; }
.g2 { grid-column: span 5; }
.g3 { grid-column: span 12; aspect-ratio: 21 / 8; }

/* Maison */
.maison { background: var(--charbon); padding: clamp(96px, 12vw, 180px) 0 0; overflow: hidden; }
.maison__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.maison .big { color: var(--safran); font-size: clamp(52px, 7.5vw, 124px); }
.maison__text p { font-size: clamp(18px, 1.6vw, 22px); margin: 0 0 20px; color: #E9D9BC; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 0; }
.stats div { border-top: 3px dotted var(--safran); padding-top: 16px; }
.stats dt { font-size: 13px; color: #BFA98C; }
.stats dd { margin: 8px 0 0; font: 800 clamp(44px, 5vw, 72px)/1 var(--display); color: var(--farine); }
.maison__img { width: calc(100% - 24px); margin: clamp(64px, 8vw, 120px) auto 12px; border-radius: var(--r); aspect-ratio: 21 / 9; object-fit: cover; }

/* Avis */
.avis { background: var(--grain), var(--safran); color: var(--charbon); padding: clamp(96px, 12vw, 160px) 0; }
.avis .big { color: var(--terre); }
.avis__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.avis blockquote { margin: 0; padding: 28px; border-radius: var(--r); background: var(--farine); box-shadow: 0 18px 40px -20px rgba(80, 30, 5, .5); }
.avis blockquote:nth-child(1) { transform: rotate(-2deg); }
.avis blockquote:nth-child(2) { transform: rotate(1.5deg) translateY(24px); }
.avis blockquote:nth-child(3) { transform: rotate(-1deg); }
.stars { margin: 0 0 12px; color: var(--tomate); letter-spacing: .1em; }
.avis blockquote p:not(.stars) { font: 700 clamp(20px, 1.8vw, 24px)/1.25 var(--display); margin: 0 0 16px; }
.avis footer { font-size: 14px; color: #6B4A3A; }
.avis__note { margin: 64px 0 0; font-size: 13px; color: #6B3A1A; }

/* Infos */
.infos { background: url("img/texture-brique-sombre.webp") center / cover, var(--terre); padding: clamp(96px, 12vw, 160px) 0; }
.infos .big { color: var(--safran); margin-bottom: 48px; }
.bento { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.card { border-radius: var(--r); padding: 32px; }
.card h3 { font-size: 28px; margin-bottom: 20px; }
.card p { margin: 0 0 20px; }
.card--dark { grid-row: span 2; background: var(--charbon); }
.card--dark h3 { color: var(--safran); }
.card--sun { background: var(--safran); color: var(--charbon); }
.card--cream { background: var(--farine); color: var(--charbon); }
.card--line { grid-column: span 2; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--safran) 60%, transparent); display: flex; align-items: center; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 16px 0; border-top: 1px solid rgba(247, 234, 208, .15); }
th { font-weight: 600; color: #D9C4A3; padding-right: 16px; }
td { font: 700 20px/1.3 var(--display); }
.phone { font: 800 clamp(30px, 3vw, 42px)/1 var(--display); text-decoration: none; }
.phone:hover { color: var(--terre); }
.services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.services li { padding: 10px 18px; border-radius: 999px; background: color-mix(in srgb, var(--farine) 12%, transparent); font: 700 14px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; }

/* Pied de page */
.foot { background: var(--charbon); padding-bottom: 104px; overflow: hidden; }
.marquee { background: var(--safran); color: var(--charbon); padding: 14px 0; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: defile 28s linear infinite; }
.marquee span { font: 800 28px/1 var(--display); text-transform: uppercase; white-space: nowrap; padding-right: 8px; }
@keyframes defile { to { transform: translateX(-50%); } }
.foot__word { margin: 0; text-align: center; font: 800 clamp(120px, 30vw, 480px)/.8 var(--display); text-transform: uppercase; letter-spacing: -.04em; color: var(--safran); padding: 48px 0 32px; }
.foot__bar { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13px; color: #BFA98C; }

/* Boutons flottants */
.float { position: fixed; right: var(--pad); bottom: 24px; z-index: 40; display: flex; gap: 8px; }
.round { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--safran); color: var(--charbon); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); transition: transform .2s; }
.round:hover { transform: scale(1.08); }
.round svg { width: 24px; height: 24px; }

/* Mobile */
@media (max-width: 860px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav__left, .nav__right .pill--ghost { display: none; }
  .logo { order: -1; }
  .hero { padding-top: 100px; }
  .hero__title { white-space: normal; font-size: clamp(64px, 24vw, 160px); }
  .hero__foot { left: 0; right: 0; max-width: none; text-align: center; padding: 0 var(--pad); }
  .hero__foot p { display: none; }
  .scene__stage { width: 92vw; }
  .scene.is-live .scene__stage { width: 92vw; }
  .scene.is-live .story__steps { align-items: end; padding-bottom: 12vh; }
  .scene.is-live .step { max-width: none; }
  .step h2 { font-size: clamp(40px, 12vw, 64px); }
  .menu, .maison__grid, .avis__grid, .stats { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 0 8px; }
  .avis blockquote { transform: none !important; }
  .g1, .g2, .g3 { grid-column: span 12; aspect-ratio: 4 / 3; }
  .bento { grid-template-columns: 1fr; }
  .card--dark, .card--line { grid-row: auto; grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* ==========================================================================
   V2 — montée en gamme (skills : redesign, Impeccable, Emil Kowalski, Taste)
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);     /* sortie rapide, arrivée douce */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}
html { scroll-padding-top: 88px; scrollbar-color: var(--safran) var(--charbon); caret-color: var(--safran); }
::selection { background: var(--safran); color: var(--charbon); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--charbon); }
::-webkit-scrollbar-thumb { background: var(--terre); border-radius: 10px; border: 2px solid var(--charbon); }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--safran); outline-offset: 4px; border-radius: 4px; }

/* Grain photographique fixe sur toute la page */
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; background: var(--grain); opacity: .45; mix-blend-mode: overlay; }

/* Navigation : liens texte, un seul bouton plein */
.lien { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--farine); text-decoration: none; font: 600 14px/1 var(--display); letter-spacing: .02em; }
.lien::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 2px; background: var(--safran); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.lien:hover::after, .lien:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.lien--tel { color: var(--safran); font-variant-numeric: tabular-nums; }
.pill, .btn, .round, .tabs button { transition: transform .2s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out); }
.pill:hover, .btn:hover { transform: translateY(-1px); }
.pill:active, .btn:active, .round:active, .tabs button:active { transform: scale(.97); }

/* Héros : texte d'accroche plus lisible */
.hero__foot { max-width: 320px; }
.hero__foot p { font-size: 15px; line-height: 1.5; color: #F2DFC0; }

/* Progression des étapes : un rail plutôt que des numéros */
.story__rail { display: none; }
.scene.is-live .story__rail { display: block; position: absolute; z-index: 3; left: calc(var(--pad) + 2px); top: 28%; bottom: 28%; width: 2px; background: color-mix(in srgb, var(--farine) 18%, transparent); }
.scene.is-live .story__rail span { position: absolute; inset: 0; background: var(--safran); transform-origin: top; transform: scaleY(0); }
.scene.is-live .story__steps { padding-left: calc(var(--pad) + 40px); }

/* Titres de section : présence sans excès */
.big { font-size: clamp(48px, 7vw, 112px); letter-spacing: -.035em; }

/* Carte : étiquettes carrées et sobres */
.tag { border-radius: 3px; padding: 3px 8px; font-size: 10.5px; letter-spacing: .1em; background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: var(--terre); }
.tag--veg { background: transparent; color: #3E6B35; }
.tag--hot { background: transparent; color: var(--tomate); }
.menu li { transition: background-color .3s var(--ease-out); }
.menu__line h3 { transition: color .3s var(--ease-out); }
.menu li:hover .menu__line h3 { color: var(--terre); }
.price { font-variant-numeric: tabular-nums; }

/* Maison : faits en phrases, pas en compteurs */
.faits { list-style: none; margin: 40px 0 0; padding: 0; }
.faits li { padding: 18px 0; border-top: 1px solid rgba(247, 234, 208, .14); font-size: clamp(18px, 1.6vw, 22px); color: #CDB795; }
.faits strong { font: 800 clamp(26px, 2.6vw, 36px)/1 var(--display); color: var(--farine); margin-right: 8px; letter-spacing: -.02em; }

/* Avis : une grande citation qui change seule */
.citations { margin-top: 48px; display: grid; }
.citation { margin: 0 0 40px; max-width: 22ch; }
.citation blockquote { margin: 0; }
.citation p { margin: 0; font: 800 clamp(34px, 4.6vw, 72px)/1.02 var(--display); letter-spacing: -.03em; color: var(--charbon); }
.citation figcaption { margin-top: 24px; font-size: 15px; color: #6B3A1A; }
.citations.is-live .citation { grid-area: 1 / 1; margin: 0; }
.avis__note { margin-top: 48px; }

/* Plein écran mobile fiable */
.scene.is-live { height: 100dvh; }
.hero { min-height: 100dvh; }
.menu[hidden] { display: none; }
.avis .citation blockquote { background: none; box-shadow: none; transform: none; padding: 0; border-radius: 0; }
.avis .citation blockquote p { font: 800 clamp(34px, 4.6vw, 72px)/1.02 var(--display); letter-spacing: -.03em; color: var(--charbon); margin: 0; }
.citation { max-width: none; }
.avis .citation blockquote p { max-width: 19ch; }
.scene.is-live .story__rail { opacity: 0; }
@media (max-width: 860px) {
  .lien--tel { display: none; }
  .scene.is-live .story__rail { display: none; }
  .scene.is-live .story__steps { padding-left: var(--pad); }
}
