/* =============================================================
   AKANEMI — Restaurant japonais halal, Colmar
   Site de démonstration · Alsakode
   -------------------------------------------------------------
   Feuille PARTAGÉE par les deux pages. Ce qui n'appartient qu'à
   une page vit dans sa propre feuille :
     accueil.css → index.html      carte.css → carte.html

   01. Tokens        05. En-têtes de section   09. Barre d'action mobile
   02. Base          06. Photos                10. Motion
   03. Boutons       07. Révélation
   04. En-tête       08. Pied de page
   ============================================================= */

/* ---------- 00. Police ---------- */
/* Hébergée avec le site, et non chez Google Fonts : aucune requête ne part
   vers un tiers. Seul le sous-ensemble LATIN est servi (~10 Ko par
   graisse) : la carte est en français, les milliers de glyphes japonais de
   la police n'y serviraient à rien. */
@font-face { font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/zen-kaku-gothic-new-300-latin.woff2') format('woff2'); }
@font-face { font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/zen-kaku-gothic-new-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/zen-kaku-gothic-new-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/zen-kaku-gothic-new-700-latin.woff2') format('woff2'); }

/* ---------- 01. Tokens ---------- */
:root {
  color-scheme: dark;

  --noir:     #08070A;
  --noir-2:   #0C0D13;
  --noir-3:   #10121A;
  --noir-4:   #161823;
  --pill:     #141B2C;
  --pill-h:   #1B2438;

  --rouge:      #E3182C;
  --rouge-vif:  #FF2F3D;
  --rouge-pale: #FF6670;
  --vert:       #2ECC71;
  --vert-pale:  #7FE3A8;
  --or:         #F5B83D;

  --txt:   #F2F0EC;
  --txt-2: rgba(242, 240, 236, .70);
  /* .55 et non .44 : à .44 ce ton tombait sous le seuil AA (3,9:1) ;
     à .55 il mesure 5,6:1 tout en restant en retrait de --txt-2. */
  --txt-3: rgba(242, 240, 236, .55);
  --line:  rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --line-3: rgba(255, 255, 255, .2);

  --font: 'Zen Kaku Gothic New', 'Hiragino Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --nav-h: 76px;
  --wrap:  1240px;
  --pad:   clamp(1.125rem, .6rem + 2.2vw, 2.5rem);
  --sec:   clamp(4rem, 8vw, 7.5rem);

  --r:     14px;
  --r-lg:  22px;
  --r-pill: 100px;
  --ease:  cubic-bezier(.4, 0, .18, 1);
}

@media (max-width: 900px) { :root { --nav-h: 64px; } }

/* ---------- 02. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + var(--bandeau-demo-h, 0px));
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--txt);
  background: var(--noir);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
ul[role="list"], ol[role="list"] { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--rouge-vif);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Lisible par un lecteur d'écran, invisible à l'œil. */
.sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  z-index: 200; padding: .75rem 1.5rem; border-radius: 0 0 10px 10px;
  background: var(--rouge); color: #fff; font-weight: 700;
}
.skip:focus { top: 0; }

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

/* ---------- 03. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .85rem 1.6rem;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: inherit; font-size: .875rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn--red {
  background: var(--rouge); color: #fff;
  box-shadow: 0 6px 22px rgba(227, 24, 44, .34);
}
.btn--red:hover { background: var(--rouge-vif); box-shadow: 0 8px 34px rgba(255, 47, 61, .5); transform: translateY(-2px); }
.btn--red:active { transform: translateY(0); }

/* Le bouton secondaire ne doit JAMAIS concurrencer le rouge : contour clair,
   fond vitré. L'œil lit d'abord « Réserver », puis « Voir la carte ». */
.btn--ghost {
  background: rgba(255, 255, 255, .06); color: var(--txt);
  border-color: var(--line-3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }

.btn--lg { min-height: 56px; padding: 1rem 2.2rem; font-size: .9375rem; letter-spacing: .08em; }
.btn--block { width: 100%; }

.btn__ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.link {
  display: inline-block; margin-top: .9rem;
  color: var(--rouge-pale); font-weight: 700; font-size: .9375rem;
  border-bottom: 1px solid rgba(255, 102, 112, .4); padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link:hover { color: #fff; border-color: #fff; }

/* ---------- 04. En-tête ---------- */
.nav {
  position: fixed; inset: var(--bandeau-demo-h, 0px) 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: linear-gradient(180deg, rgba(6, 5, 8, .75), rgba(6, 5, 8, 0));
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
/* Transparente sur la photo du héro, opaque dès qu'on défile : la photo
   respire à l'arrivée, le texte reste lisible ensuite. */
.nav.is-stuck {
  background: rgba(6, 5, 8, .94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav__in {
  max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 2rem;
}

.brand { margin-right: auto; line-height: 1.15; }
.brand__name {
  display: block;
  font-size: 1.3rem; font-weight: 400;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--rouge-vif);
  text-shadow: 0 0 22px rgba(255, 47, 61, .45);
}
.brand__sub {
  display: block; margin-top: 1px;
  font-size: .625rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--txt-3);
}

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  position: relative;
  font-size: .9375rem; font-weight: 500; color: var(--txt);
  padding: .35rem 0;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--rouge-vif);
  transform: scaleX(0); transform-origin: center;
  transition: transform .24s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--rouge-pale); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }

.nav__cta { flex: none; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: rgba(6, 5, 8, .4); border: 1px solid var(--line-2); border-radius: 10px;
  cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--txt); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: calc(var(--nav-h) + var(--bandeau-demo-h, 0px)) 0 auto 0; z-index: 99;
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1rem var(--pad) 1.75rem;
  background: rgba(6, 5, 8, .98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.drawer[hidden] { display: none; }
.drawer a:not(.btn) { padding: .8rem .25rem; font-size: 1.0625rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 1rem; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger { display: flex; }
  .nav__in { gap: .75rem; }
}
/* Sous 560 px le CTA quitte l'en-tête : il est déjà dans la barre d'action
   du bas, à portée de pouce, et dans le tiroir. */
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .brand__name { font-size: 1.05rem; letter-spacing: .3em; }
}

/* ---------- 05. En-têtes de section ---------- */
.sec { padding: var(--sec) var(--pad); }
.sec__in { max-width: var(--wrap); margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--rouge-pale);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.sec__t {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 500; letter-spacing: .01em;
  text-wrap: balance;
}
.sec__lead { margin-top: 1rem; max-width: 56ch; color: var(--txt-2); font-size: 1.0625rem; }

.sec__head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec__head--c { text-align: center; }
.sec__head--c .sec__lead { margin-inline: auto; }
.sec__head--c .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- 06. Photos ---------- */
/* Toutes les photos sont des placeholders Unsplash, servies recadrées par
   leur CDN (`fit=crop&w=…&h=…`). Pour passer aux photos du client, il
   suffit de remplacer `src` : le cadre, lui, est tenu par le CSS
   (`aspect-ratio` + `object-fit`), une photo mal cadrée ne casse rien.
   Le fond sombre est visible pendant le chargement, jamais un trou blanc. */
.ph {
  background: linear-gradient(160deg, #191B24, #0A0B11 72%);
  object-fit: cover;
}

/* ---------- 07. Révélation au défilement ---------- */
/* L'état de départ est posé par le SCRIPT (classe `js-reveal`) et jamais
   écrit en dur ici : sans JavaScript rien n'est masqué, la page reste lisible. */
/* `html` en préfixe : les cartes déclarent leur propre `transition` (pour
   le survol), qui écraserait sinon celle-ci et rendrait le fondu instantané.
   Le script retire la classe une fois l'entrée jouée : le survol retrouve
   alors sa transition, sans le retard de rangée. */
html .js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--retard, 0ms);
}
html .js-reveal.est-vu { opacity: 1; transform: none; }

/* ---------- 08. Pied de page ---------- */
.foot {
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad) 0;
  border-top: 1px solid var(--line);
  background: #050408;
}
.foot__in {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; gap: 2.5rem 2rem;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
}
@media (max-width: 960px) { .foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__in { grid-template-columns: 1fr; } }

.foot__brand {
  font-size: 1.25rem; letter-spacing: .38em; text-transform: uppercase;
  color: var(--rouge-vif);
}
.foot__pitch { margin-top: .75rem; max-width: 32ch; font-size: .9375rem; color: var(--txt-2); }

.foot__t {
  margin-bottom: 1rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--txt);
}
.foot__list { display: grid; gap: .55rem; font-size: .9375rem; color: var(--txt-2); }
.foot__list a { transition: color .2s var(--ease); }
.foot__list a:hover { color: var(--rouge-pale); }

.socials { display: flex; gap: .6rem; margin-top: 1.5rem; }
.socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--txt-2);
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { color: #fff; background: var(--rouge); border-color: var(--rouge); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.foot__bottom {
  max-width: var(--wrap); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem;
  font-size: .8125rem; color: var(--txt-3);
}
.foot__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot__legal a, .foot__demo a { color: var(--txt-2); transition: color .2s var(--ease); }
.foot__legal a:hover, .foot__demo a:hover { color: var(--rouge-pale); }
.foot__demo a { border-bottom: 1px solid var(--line-2); }

/* ---------- 09. Barre d'action mobile ---------- */
/* Appeler, s'y rendre, réserver : les trois gestes qu'on fait depuis un
   téléphone, toujours à portée de pouce. `env(safe-area-inset-bottom)`
   évite que les boutons passent sous la barre de gestes des iPhone. */
.abar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none;
  padding: .55rem var(--pad) calc(.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 7, 10, .94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-2);
}
.abar__in { display: flex; gap: .5rem; max-width: 560px; margin: 0 auto; }

.abar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  min-height: 48px;
  padding: .4rem .3rem;
  border-radius: 10px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--txt-2);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.abar a:hover, .abar a:active { background: var(--pill); color: var(--txt); }
.abar__ico {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.abar a.abar--cta { flex: 1.4; background: var(--rouge); color: #fff; }
.abar a.abar--cta:hover, .abar a.abar--cta:active { background: var(--rouge-vif); }

@media (max-width: 820px) {
  .abar { display: block; }
  /* Hauteur MESURÉE par le script (--abar-h) : elle suit la taille de police
     du visiteur. 72px n'est que le repli sans JavaScript. */
  body.a-abar { padding-bottom: calc(var(--abar-h, 72px) + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 10. Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  html .js-reveal { opacity: 1; transform: none; transition: none; }
}
