/* ══════════════════════════════════════════════════════════════
   CHEF HICHAM — Blackframe Cinematic adapté
   Fond #0A0A0A · accent safran (Tampon Artisanal) · 0px radius
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0A0A0A;
  --surface: #171717;
  --surface-2: #111111;
  --text: #F7F8FA;
  --muted: #B7BDC8;
  --muted-dim: #8a90a0;
  --accent: #D0611A;          /* safran — Tampon Artisanal */
  --accent-bright: #E8822F;
  --clay: #5C3312;            /* brun argile */
  --line: #2b2b2b;            /* séparateur fin */
  --line-soft: #1c1c1c;
  --font-display: 'Switzer', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --wrap: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
strong { color: var(--text); font-weight: 600; }

::selection { background: var(--accent); color: #000; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: #000; padding: 10px 18px;
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ── Typographie section ─────────────────────────────── */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 400; line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 20px;
}
.section-note { color: var(--muted); max-width: 60ch; margin-bottom: clamp(32px, 5vw, 64px); }

.link-underline {
  display: inline-block; margin-top: 22px; padding-bottom: 6px;
  color: var(--text); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--accent);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link-underline:hover { color: var(--accent-bright); border-color: var(--accent-bright); }

/* ── Navbar ──────────────────────────────────────────── */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 10, 10, .85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line-soft);
}
.navbar-inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-word { font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500;
  transition: color .2s var(--ease); min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border-bottom: 1px solid var(--accent); padding-bottom: 4px;
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: #0c0b0a; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 72% 30%, rgba(208, 97, 26, .22), transparent 70%),
    radial-gradient(40% 35% at 20% 80%, rgba(92, 51, 18, .30), transparent 70%),
    linear-gradient(180deg, rgba(14,13,12,.55) 0%, rgba(10,10,10,.30) 45%, rgba(10,10,10,.78) 100%);
}
.hero-stamp {
  position: absolute; right: -6%; top: 8%; width: min(58vw, 640px);
  opacity: .17; filter: saturate(1.1);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(10,10,10,.55) 0%, rgba(10,10,10,.05) 28%,
    rgba(10,10,10,.05) 60%, rgba(10,10,10,.88) 100%);
}
.hero-content {
  width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  padding-bottom: clamp(90px, 12vh, 140px);
}
.hero-kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 15vw, 11rem);
  font-weight: 400; line-height: .94; letter-spacing: -.035em;
  margin-bottom: 28px;
}
.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.7; max-width: 52ch; }
.hero-side {
  position: absolute; right: var(--pad); bottom: clamp(90px, 12vh, 140px);
  writing-mode: vertical-rl; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-dim);
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--muted); text-decoration: none; font-size: 20px;
  border: 1px solid var(--line); border-radius: 0;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ── Stats ───────────────────────────────────────────── */
.stats { padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: var(--surface); padding: 28px 26px 30px; border: 0; border-radius: 0; }
.stat-dots { display: flex; gap: 7px; margin-bottom: 20px; }
.stat-dots span { width: 7px; height: 7px; border-radius: 0; background: #3d3d3d; }
.stat-dots span.on { background: var(--accent); }
.stat-num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 500;
  letter-spacing: -.02em; line-height: 1; margin-bottom: 10px;
}
.stat-unit { font-size: 1.4rem; color: var(--muted); }
.stat-label { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.stat-body { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ── Interlude ───────────────────────────────────────── */
.interlude {
  min-height: 52vh; display: grid; place-items: center; text-align: center;
  background: #000; padding: 80px var(--pad);
}
.interlude-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.6rem); letter-spacing: -.02em; max-width: 20ch;
}

/* ── Placeholders médias ─────────────────────────────── */
.media-ph {
  position: relative; overflow: hidden; border-radius: 0;
  background: linear-gradient(160deg, #161513 0%, #0d0c0b 70%);
  border: 1px solid var(--line-soft);
  aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.media-ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, transparent 24%, transparent 72%, rgba(10,10,10,.65) 100%);
}
.media-ph img { width: 92px; opacity: .34; filter: saturate(1.05); position: relative; z-index: 1; }
.media-ph.sm { aspect-ratio: 16 / 10; }
.media-ph.sm img { width: 64px; }
.media-ph.tall { aspect-ratio: 3 / 4; height: 100%; min-height: 420px; }
.media-ph.tall img { width: 120px; }
.media-ph.fill { aspect-ratio: auto; width: 100%; height: 100%; }
.media-tag {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: var(--font-display); font-size: 13px; letter-spacing: .18em; color: var(--accent-bright);
}
.media-ph.video .play {
  position: relative; z-index: 2; width: 58px; height: 58px; display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent-bright); font-size: 18px; padding-left: 4px;
}

/* ── Services (mosaïque asymétrique) ─────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.service-card { display: flex; flex-direction: column; }
.service-card:nth-child(1) { grid-column: span 7; }
.service-card:nth-child(2) { grid-column: span 5; }
.service-card:nth-child(3) { grid-column: span 5; }
.service-card:nth-child(4) { grid-column: span 7; }
.service-card h3 {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 500;
  letter-spacing: -.01em; margin: 22px 0 10px;
}
.service-card p { color: var(--muted); font-size: 15.5px; max-width: 46ch; }

/* ── Menus (grille éditoriale) ───────────────────────── */
.menus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 16px; }
.menu-card h3 {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  margin: 18px 0 8px; letter-spacing: -.01em;
}
.menu-card p { color: var(--muted); font-size: 14.5px; }
.menu-meta {
  margin-top: 12px !important; font-size: 12.5px !important; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-bright) !important;
}
.menu-card-cta {
  border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column;
  background: var(--surface-2);
}
.menu-card-cta h3 { margin-top: 0; }
@media (min-width: 1024px) {
  .menus-grid > :nth-child(3n+2) { transform: translateY(28px); }
}

/* ── Galerie (mosaïque) ──────────────────────────────── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px; gap: 16px; grid-auto-flow: dense;
}
.g-tile .media-ph { height: 100%; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ── Recettes & vidéos ───────────────────────────────── */
.videos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 16px; }
.video-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; margin: 14px 0 6px; }

/* ── Avis ────────────────────────────────────────────── */
.testimonials { max-width: 860px; }
.t-track { display: grid; }
.t-slide { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.t-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.t-stars { color: var(--accent-bright); letter-spacing: .3em; font-size: 15px; margin-bottom: 18px; }
.t-slide blockquote {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400; line-height: 1.35; letter-spacing: -.01em; margin-bottom: 18px;
}
.t-slide figcaption { color: var(--muted); font-size: 14px; letter-spacing: .06em; }
.t-controls { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.t-btn {
  width: 48px; height: 48px; background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 0; cursor: pointer; font-size: 16px;
  display: grid; place-items: center; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.t-btn:hover { border-color: var(--accent); color: var(--accent-bright); }
.t-pos { color: var(--muted-dim); font-size: 13px; letter-spacing: .14em; margin-left: 8px; }

/* ── À propos ────────────────────────────────────────── */
.apropos-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.apropos-text p { color: var(--muted); margin-bottom: 18px; font-size: 16.5px; max-width: 58ch; }

/* ── Contact ─────────────────────────────────────────── */
.contact { border-top: 1px solid var(--line-soft); background: #080808; }
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.field { margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; color: var(--text); font: inherit; font-size: 16px;
  padding: 10px 2px; transition: border-color .2s var(--ease);
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form-note { min-height: 24px; color: var(--accent-bright); font-size: 14px; margin-bottom: 14px; }
.btn-light {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--text); color: #000; border: 0; border-radius: 0;
  min-height: 52px; padding: 8px 34px; font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: background .2s var(--ease);
}
.btn-light:hover { background: var(--accent-bright); }
.contact-alt h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin-bottom: 12px; }
.contact-alt p { color: var(--muted); margin-bottom: 22px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 0; color: var(--text);
  text-decoration: none; min-height: 52px; padding: 8px 26px; margin: 0 12px 12px 0;
  font-weight: 500; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }
.contact-zone { margin-top: 18px !important; font-size: 14px; color: var(--muted-dim) !important; letter-spacing: .06em; }

/* ── Footer ──────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line-soft); padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 60px; }
.footer-brand { display: flex; gap: 18px; align-items: center; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; opacity: .9; }
.footer-brand p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 8px 0; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-social p { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dim); margin-bottom: 14px; }
.soc {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line); color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .05em; margin-right: 10px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.soc:hover { border-color: var(--accent); color: var(--accent-bright); }
.footer-word {
  font-family: var(--font-display); font-weight: 600; white-space: nowrap;
  font-size: clamp(4.5rem, 17.5vw, 17rem); line-height: .85; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px #33363d;
  transform: translateY(18%); user-select: none; text-align: center;
}
.footer-legal { text-align: center; color: var(--muted-dim); font-size: 12.5px; padding: 26px var(--pad) 30px; border-top: 1px solid var(--line-soft); }

/* ── Révélation au scroll ────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1023px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(n) { grid-column: span 6; }
  .menus-grid { grid-template-columns: repeat(2, 1fr); }
  .menus-grid > :nth-child(3n+2) { transform: none; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .apropos-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-side { display: none; }
}
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; background: rgba(10,10,10,.97);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--pad) 24px;
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .service-card:nth-child(n) { grid-column: span 12; }
  .menus-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .videos-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stamp { width: 92vw; right: -30%; top: 4%; }
}

/* ── Mouvement réduit ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Photos réelles (intégration 07/10/2026) ─────────── */
.media-ph.has-photo { display: block; padding: 0; }
.media-ph.has-photo img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 1; filter: none; position: static;
}
.media-ph.has-photo::after {
  background: linear-gradient(180deg, rgba(10,10,10,.32) 0%, transparent 30%, transparent 68%, rgba(10,10,10,.58) 100%);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.t-title {
  display: block; font-weight: 600; font-size: .62em;
  letter-spacing: .02em; color: var(--accent-bright); margin-bottom: .5em;
}
