/* La Cantine de Zan · maquette « Premier modèle » (valeurs reprises de l'export Claude Design) */

:root {
  --noir: #121212;
  --ardoise: #2E3033;
  --creme: #EFEDE8;
  --gris: #55595D;
  --filet: #D9D6CF;
  --vert: #3F6B4A;
  --rouge: #A93A2E;
  --blanc: #FFFFFF;
  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --sortie: cubic-bezier(.16, 1, .3, 1);
  --ressort: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--noir);
  font-family: var(--sans);
  color: var(--ardoise);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
main { background: var(--blanc); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ardoise); }
a:hover { color: var(--noir); }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--noir); outline-offset: 3px; }
.entete :focus-visible, .heros :focus-visible, .bar :focus-visible, .pied :focus-visible { outline-color: var(--blanc); }

.conteneur { max-width: 1240px; margin: 0 auto; padding: 120px 5%; }
.pile { display: flex; flex-direction: column; gap: 56px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.2;
  border-radius: 999px; border: 1.5px solid transparent; padding: 15px 27px;
  transition: transform .5s var(--ressort), background-color .3s ease, color .3s ease,
              border-color .3s ease, box-shadow .4s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
.btn--blanc { background: var(--blanc); color: var(--noir); }
.btn--blanc:hover { background: var(--creme); color: var(--noir); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); }
.btn--contour-clair { color: var(--blanc); border-color: var(--blanc); }
.btn--contour-clair:hover { background: var(--blanc); color: var(--noir); }
.btn--noir { background: var(--noir); color: var(--blanc); }
.btn--noir:hover { background: var(--ardoise); color: var(--blanc); box-shadow: 0 14px 30px -14px rgba(18, 18, 18, .65); }
.btn--contour-sombre { color: var(--noir); border-color: var(--noir); }
.btn--contour-sombre:hover { background: var(--noir); color: var(--blanc); }
.btn--nav { font-size: 15px; padding: 10.5px 20.5px; letter-spacing: .04em; }
.btn--petit { padding: 12.5px 22.5px; }

/* ---------- En-tête ---------- */
.entete {
  background: var(--noir); color: var(--blanc);
  padding: 16px 5%;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; z-index: 2;
}
.marque { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--blanc); }
.marque:hover { color: var(--blanc); }
.marque__logo { width: 52px; height: 52px; transition: rotate .7s var(--ressort); }
.marque:hover .marque__logo { rotate: -16deg; }
.marque__nom { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.nav__lien { position: relative; color: var(--blanc); text-decoration: none; padding: 12px 0; }
.nav__lien:hover { color: var(--blanc); }
.nav__lien::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--sortie);
}
.nav__lien:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Héros ---------- */
.heros {
  position: relative; min-height: 640px; display: flex; align-items: flex-end;
  background-color: var(--noir); overflow: hidden; isolation: isolate;
}
.heros__fond {
  position: absolute; left: 0; right: 0; top: -10%; bottom: -10%; z-index: -2;
  background: url(img/salle.jpg) center / cover no-repeat;
}
.heros__voile { position: absolute; inset: 0; z-index: -1; background: rgba(18, 18, 18, .62); }
.heros__contenu {
  position: relative; width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 120px 5% 88px; color: var(--blanc);
  display: flex; flex-direction: column; gap: 24px;
}
.heros__sur { font-size: 14px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.heros__titre {
  font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7vw, 104px);
  line-height: .98; letter-spacing: -.01em; max-width: 900px;
}
.heros__texte { font-size: 19px; line-height: 1.6; max-width: 560px; color: var(--creme); }
.heros__boutons { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.heros__boutons .btn--blanc { padding: 16px 28px; border: 0; }

.tricolore { display: flex; }
.tricolore span { width: 28px; height: 4px; display: block; }
.tricolore span:nth-child(1) { background: var(--vert); }
.tricolore span:nth-child(2) { background: var(--blanc); }
.tricolore span:nth-child(3) { background: var(--rouge); }

/* Mots dans un masque : le mot monte depuis sous sa ligne */
.m {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .1em .08em .16em 0; margin: -.1em -.08em -.16em 0;
}
.m > span { display: inline-block; }

/* ---------- Bandeau infos ---------- */
.bandeau { background: var(--ardoise); color: var(--blanc); }
.bandeau__in {
  max-width: 1240px; margin: 0 auto; padding: 28px 5%;
  display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; font-size: 15px;
}
.bandeau__item { display: flex; align-items: center; gap: 12px; }
.bandeau__item svg { flex: none; }

/* ---------- Textes communs ---------- */
.sur { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.sur--vert { color: var(--vert); }
.sur--rouge { color: var(--rouge); }
.sur--creme { color: var(--creme); }
.titre { font-family: var(--serif); font-weight: 500; }
.titre--m { font-size: clamp(36px, 4vw, 56px); line-height: 1.05; color: var(--noir); }
.titre--l { font-size: clamp(40px, 5vw, 72px); line-height: 1; color: var(--noir); }
.tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tete__titre { display: flex; flex-direction: column; gap: 16px; }
.tete__texte { font-size: 16px; line-height: 1.6; color: var(--gris); max-width: 420px; }

/* ---------- L'esprit ---------- */
.esprit { background: var(--blanc); }
.esprit__in { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.esprit__logo { flex: 1 1 360px; display: flex; justify-content: center; }
.esprit__logo img { width: 100%; max-width: 300px; }
.esprit__texte { flex: 2 1 480px; display: flex; flex-direction: column; gap: 22px; }
.esprit__para { font-size: 18px; line-height: 1.7; color: var(--gris); max-width: 620px; }
.pastilles { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.pastille { font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; background: var(--creme); color: var(--ardoise); }

/* ---------- La carte ---------- */
.carte { background: var(--creme); }
.carte__grille { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.ardoise {
  flex: 1 1 340px; background: var(--ardoise); color: var(--blanc); border-radius: 6px; padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
}
.ardoise__titre { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 36px; line-height: 1.1; }
.ardoise__lignes { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.5; }
.ardoise__ligne { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255, 255, 255, .18); padding-bottom: 14px; }
.ardoise__ligne:last-child { border-bottom: 0; padding-bottom: 0; }
.prix { font-weight: 600; white-space: nowrap; }
.ardoise__pied { margin-top: auto; font-size: 14px; color: var(--creme); }
.menu {
  flex: 2 1 560px; background: var(--blanc); border-radius: 6px; padding: 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 48px;
}
.menu__groupe { display: flex; flex-direction: column; gap: 18px; }
.menu__groupe--bas { justify-content: flex-end; align-items: flex-start; }
.menu__groupe--bas .btn { padding: 12.5px 22.5px; }
.menu__titre {
  font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--noir);
  padding-bottom: 12px; border-bottom: 2px solid var(--noir);
}
.plat { display: flex; flex-direction: column; gap: 4px; }
.plat__ligne { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--noir); }
.plat__ligne span:last-child { white-space: nowrap; }
.plat__desc { font-size: 15px; color: var(--gris); }

/* ---------- Le bar ---------- */
.bar { background: var(--noir); color: var(--blanc); }
.bar .titre--l { color: var(--blanc); }
.bar__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.verre {
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .4s ease, background-color .4s ease, translate .6s var(--ressort);
}
.verre:hover { border-color: rgba(255, 255, 255, .5); background-color: rgba(255, 255, 255, .03); translate: 0 -4px; }
.verre__titre { font-family: var(--serif); font-weight: 500; font-size: 28px; }
.verre__ligne { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.verre__ligne span:last-child { white-space: nowrap; }

/* ---------- Infos pratiques ---------- */
.infos { background: var(--blanc); }
.infos__in { display: flex; flex-wrap: wrap; gap: 56px; }
.infos__texte { flex: 1 1 380px; display: flex; flex-direction: column; gap: 28px; }
.horaires { display: flex; flex-direction: column; font-size: 16px; }
.horaires__ligne { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--filet); color: var(--gris); }
.horaires__jour { font-weight: 600; color: var(--noir); }
.infos__boutons { display: flex; flex-wrap: wrap; gap: 14px; }
.infos__boutons .btn--noir { padding: 16px 28px; border: 0; }
.plan {
  flex: 1 1 420px; min-height: 380px; background: var(--creme); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  color: var(--gris); font-size: 15px; text-align: center; padding: 24px;
}

/* ---------- Pied de page ---------- */
.pied { background: var(--noir); color: var(--creme); }
.pied__in { padding: 64px 5% 40px; display: flex; flex-direction: column; gap: 40px; }
.pied__haut { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.pied__marque { display: flex; align-items: center; gap: 18px; }
.pied__marque img { width: 72px; height: 72px; }
.pied__nom { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pied__titre { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--blanc); }
.reseaux { display: flex; gap: 12px; }
.reseau {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3);
  display: flex; align-items: center; justify-content: center; color: var(--blanc);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, translate .5s var(--ressort);
}
.reseau:hover { background: var(--blanc); color: var(--noir); border-color: var(--blanc); translate: 0 -3px; }
.pied__bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 24px;
}

/* ---------- Téléphone ---------- */
@media (max-width: 720px) {
  .conteneur { padding-top: 88px; padding-bottom: 88px; }
  .pile { gap: 44px; }
  .nav { gap: 4px 20px; }
  .heros { min-height: 600px; }
  .heros__contenu { padding-top: 96px; padding-bottom: 64px; }
  .heros__texte { font-size: 17px; }
  .ardoise, .menu { padding: 28px; }
  .verre { padding: 26px; }
  .plan { min-height: 300px; }
}
@media (max-width: 480px) {
  .entete { gap: 10px; }
  .nav { width: 100%; font-size: 14px; gap: 2px 14px; }
  .btn--nav { font-size: 14px; padding: 9.5px 17.5px; margin-left: auto; }
}
@media (max-width: 400px) {
  .marque__logo { width: 44px; height: 44px; }
  .marque__nom { font-size: 20px; }
  /* « Réserver » mène au même endroit : la barre tient sur une ligne */
  .nav__lien[href="#infos"] { display: none; }
}

/* =========================================================
   Animations
   Entrée du héros en CSS seul (rien à attendre du JS) ;
   apparitions au défilement sous .js (posée en tête de page,
   retirée si site.js ne démarre pas).
   ========================================================= */
@keyframes zan-fond { from { opacity: 0; scale: 1.14; } }
@keyframes zan-monte { from { transform: translateY(108%); } }
@keyframes zan-leve { from { opacity: 0; transform: translateY(22px); } }
@keyframes zan-trace { from { transform: scaleX(0); } }
@keyframes zan-pose { from { opacity: 0; rotate: -140deg; scale: .55; } }
@keyframes zan-descend { from { opacity: 0; transform: translateY(-10px); } }
@keyframes zan-tombe { 0% { opacity: 0; transform: translateY(-34px); } 60% { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  /* En-tête */
  .marque__logo { animation: zan-pose 1.3s var(--sortie) .1s backwards; }
  .marque__nom { animation: zan-leve .9s var(--sortie) .35s backwards; }
  .nav > * { animation: zan-descend .8s var(--sortie) backwards; }
  .nav > :nth-child(1) { animation-delay: .4s; }
  .nav > :nth-child(2) { animation-delay: .47s; }
  .nav > :nth-child(3) { animation-delay: .54s; }
  .nav > :nth-child(4) { animation-delay: .61s; }

  /* Héros */
  .heros__fond { animation: zan-fond 2.2s var(--sortie) backwards; }
  .tricolore--heros span { transform-origin: left; animation: zan-trace .6s var(--sortie) backwards; }
  .tricolore--heros span:nth-child(1) { animation-delay: .45s; }
  .tricolore--heros span:nth-child(2) { animation-delay: .6s; }
  .tricolore--heros span:nth-child(3) { animation-delay: .75s; }
  .heros__sur { animation: zan-leve 1s var(--sortie) .55s backwards; }
  .heros__titre .m > span { animation: zan-monte 1.2s var(--sortie) backwards; }
  .heros__titre .m:nth-child(1) > span { animation-delay: .6s; }
  .heros__titre .m:nth-child(2) > span { animation-delay: .67s; }
  .heros__titre .m:nth-child(3) > span { animation-delay: .74s; }
  .heros__titre .m:nth-child(4) > span { animation-delay: .81s; }
  .heros__titre .m:nth-child(5) > span { animation-delay: .88s; }
  .heros__titre .m:nth-child(6) > span { animation-delay: .95s; }
  .heros__titre .m:nth-child(7) > span { animation-delay: 1.04s; }
  .heros__texte { animation: zan-leve 1.1s var(--sortie) 1.05s backwards; }
  .heros__boutons > * { animation: zan-leve 1s var(--sortie) backwards; }
  .heros__boutons > :nth-child(1) { animation-delay: 1.15s; }
  .heros__boutons > :nth-child(2) { animation-delay: 1.23s; }

  /* Apparitions au défilement */
  .js [data-reveal] {
    opacity: 0; transform: translate3d(0, 44px, 0);
    transition: opacity 1s var(--sortie), transform 1.2s var(--sortie);
    transition-delay: calc(var(--d, 0) * 110ms);
  }
  .js [data-reveal].in { opacity: 1; transform: none; }

  /* Le logo de « L'esprit » se pose comme une assiette */
  .js [data-reveal="assiette"] { transform: scale(.82) rotate(-24deg); transition-duration: 1.1s, 1.6s; }

  /* Tricolore du bar : les trois traits se tracent l'un après l'autre */
  .js [data-reveal="trait"] { opacity: 1; transform: none; }
  .js [data-reveal="trait"] span { transform: scaleX(0); transform-origin: left; transition: transform .6s var(--sortie); }
  .js [data-reveal="trait"] span:nth-child(2) { transition-delay: .15s; }
  .js [data-reveal="trait"] span:nth-child(3) { transition-delay: .3s; }
  .js [data-reveal="trait"].in span { transform: none; }

  /* Plan : le bloc monte, puis l'épingle tombe */
  .js [data-reveal="plan"] { transform: translate3d(0, 44px, 0) scale(.97); }
  .js [data-reveal="plan"].in .plan__epingle { animation: zan-tombe 1s var(--ressort) .45s backwards; }

  /* Titres découpés en mots par site.js : seuls les mots bougent */
  .js [data-reveal="mots"] { opacity: 1; transform: none; }
  .js [data-split].pret .m > span { transform: translateY(108%); transition: transform 1.1s var(--sortie); transition-delay: calc(var(--i, 0) * 60ms); }
  .js [data-split].pret.in .m > span { transform: none; }
}
