/* ==========================================================
   Fat & Furious Diner – feuille de style
   1. Variables   2. Base   3. Chargement   4. Navigation
   5. Hero   6. Bandeau   7. Menu   8. Infos   9. Pied de page
   10. Animations   11. Mobile et accessibilité
   ========================================================== */

/* 1. VARIABLES ------------------------------------------- */
:root {
  --bg: #0B0720;        /* bleu nuit */
  --panel: #140B33;
  --neon: #19E3FF;      /* cyan */
  --pink: #FF2E93;
  --text: #F5F1FF;
  --line: #ffffff26;    /* filets fins */
  --edge: clamp(10px, 2vw, 22px);   /* bandes damier sur les côtés */
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --f-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-script: "Pacifico", cursive;
  --f-body: "Barlow", system-ui, sans-serif;
}

/* 2. BASE ------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
body::before, body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--edge);
  z-index: 5;
  pointer-events: none;
  background: repeating-conic-gradient(#fff 0 25%, #0000 0 50%) 0 0 / calc(var(--edge) * 2) calc(var(--edge) * 2);
}
body::before { left: 0; }
body::after { right: 0; }
::selection { background: var(--pink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

a { color: var(--neon); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 calc(var(--edge) + 22px); }

/* Petite étiquette au-dessus des titres de section */
.eyebrow { display: block; margin-bottom: 14px; color: var(--pink); font: 600 17px var(--f-title); letter-spacing: 4px; text-transform: uppercase; }
.title { margin: 0 0 56px; max-width: 14ch; font: 700 clamp(46px, 7.5vw, 84px)/.98 var(--f-title); letter-spacing: 1px; text-transform: uppercase; text-wrap: balance; }

/* Bouton "autocollant" : ombre pleine décalée */
.btn {
  display: inline-block;
  margin: 6px 12px 6px 0;
  padding: 13px 28px;
  background: var(--pink);
  color: var(--bg);
  border: 2px solid var(--pink);
  border-radius: 3px;
  font: 700 19px/1.2 var(--f-title);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--neon);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--neon); }
.btn--ghost { background: none; color: var(--text); border-color: var(--text); box-shadow: 4px 4px 0 var(--pink); }
.btn--ghost:hover { box-shadow: 1px 1px 0 var(--pink); }

.checker { height: 16px; background: repeating-conic-gradient(#fff 0 25%, var(--bg) 0 50%) 0 0 / 32px 32px; }

/* 3. CHARGEMENT : le rideau monte quand c'est prêt ------- */
#loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: transform .9s cubic-bezier(.7, 0, .2, 1), visibility 0s .9s;
}
.js #loader { display: flex; }
#loader.is-off { transform: translateY(-100%); visibility: hidden; }
#loader img { width: min(220px, 56vw); animation: neon-on 1.4s steps(1) both; }
.loader-count { font: 600 20px var(--f-title); letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.loader-bar { display: block; width: min(220px, 56vw); height: 2px; background: #fff3; }
.loader-bar b { display: block; height: 100%; background: var(--pink); transform: scaleX(0); transform-origin: left; }

/* 4. NAVIGATION ------------------------------------------ */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0); border-bottom: 1px solid transparent; transition: transform .4s var(--ease), background .3s, border-color .3s; }
.scrolled .site-nav { background: #0B0720f2; border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-logo { display: block; height: 50px; width: auto; }
.nav-hidden .site-nav { transform: translateY(-100%); }   /* posé par effects.js */

/* Bouton de navigation : mot "Menu" + deux barres (devient une croix) */
.menu-btn { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; background: var(--bg); border: 2px solid var(--text); border-radius: 3px; color: var(--text); font: 700 18px var(--f-title); letter-spacing: 3px; text-transform: uppercase; cursor: pointer; transition: border-color .2s, color .2s; }
.menu-btn:hover { border-color: var(--neon); color: var(--neon); }
.menu-btn em { font-style: normal; }
.bars { display: grid; gap: 6px; }
.bars span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-open .bars span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .bars span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Tiroir : glisse depuis la droite, liens qui arrivent un à un */
.drawer { position: fixed; inset: 0; z-index: 9; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 24px) calc(var(--edge) + 28px) 40px; background: var(--bg); visibility: hidden; transform: translateX(100%); transition: transform .5s var(--ease), visibility .5s; }
.drawer-links { margin: 0 0 18px; padding: 0; list-style: none; }
.drawer-links li { opacity: 0; transform: translateX(40px); transition: opacity .5s, transform .5s var(--ease); }
.drawer-links a { display: block; padding: 4px 0; color: var(--text); font: 700 clamp(46px, 9vw, 84px)/1.05 var(--f-title); letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: padding-left .3s var(--ease), color .2s; }
.drawer-links a:hover { padding-left: 16px; color: var(--neon); }
.drawer-info { margin: 0; font-size: 15px; opacity: .7; }
.menu-open { overflow: hidden; }
.menu-open .drawer { visibility: visible; transform: none; }
.menu-open .drawer-links li { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * .07s); }
.menu-open .site-nav { transform: none; background: var(--bg); }

/* 5. HERO ------------------------------------------------ */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; overflow: hidden; }
.hero-media { position: absolute; inset: -8% 0; }
.hero-video { position: absolute; top: 0; left: 22%; width: 78%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #0B0720ee 0%, #0B0720b0 40%, #0B072020 100%), linear-gradient(0deg, #0B0720 0%, transparent 32%), linear-gradient(180deg, #0B0720cc 0%, transparent 22%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 40px; }

.status { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-weight: 500; }
.open-sign { display: inline-block; padding: 2px 16px; border: 3px solid var(--pink); border-radius: 5px; color: var(--pink); font: 700 22px/1.3 var(--f-title); letter-spacing: 5px; text-shadow: 0 0 10px var(--pink); box-shadow: 0 0 12px #FF2E9355, inset 0 0 10px #FF2E9333; animation: sign-flicker 6s infinite; }
.open-sign.is-closed { color: #8d86ad; border-color: #8d86ad; text-shadow: none; box-shadow: none; animation: none; }

/* Titre façon néon en écriture cursive (le seul vrai effet lumineux du site) */
.hero-title { margin: 0 0 22px; font: 400 clamp(54px, 10vw, 120px)/1.1 var(--f-script); color: #fff; text-shadow: 0 0 4px #fff, 0 0 16px var(--neon), 0 0 38px var(--neon); }
.hero-title .line { display: block; }
.js .hero-title .line { opacity: 0; transform: translateY(30px); }
.ready .hero-title .line { animation: rise 1s var(--ease) .35s forwards; }
.ready .hero-title .line:nth-child(2) { animation-delay: .5s; }
.hero-text { max-width: 500px; margin: 0 0 28px; font-size: 19px; }

.hero-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; padding-top: 16px; padding-bottom: 20px; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; opacity: .75; }
.hero-foot::before { content: ""; position: absolute; top: 0; left: calc(var(--edge) + 22px); right: calc(var(--edge) + 22px); border-top: 1px solid var(--line); }
.scroll-cue::after { content: ""; display: inline-block; width: 1px; height: 22px; margin-left: 12px; vertical-align: middle; background: var(--text); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
.hero .checker { position: relative; z-index: 2; }

/* 6. BANDEAU : grands mots en contour qui défilent ------- */
.marquee { overflow: hidden; white-space: nowrap; padding: 26px 0; border-bottom: 1px solid var(--line); }
.marquee div { display: inline-block; font: 700 clamp(64px, 11vw, 140px)/1 var(--f-title); letter-spacing: 2px; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px var(--text); animation: ticker 45s linear infinite; }

/* 7. MENU : même esprit que la carte papier -------------- */
section { padding: 120px 0; }
#menu { background: var(--panel); }
.group { margin-bottom: 80px; }
.banner { display: table; margin: 0 auto 36px; padding: 6px 36px; border: 3px solid var(--neon); border-radius: 5px; color: #fff; font: 700 clamp(30px, 5vw, 42px)/1.2 var(--f-title); letter-spacing: 4px; text-transform: uppercase; text-shadow: 0 0 10px var(--neon); box-shadow: 0 0 14px #19E3FF44; }
.items { columns: 2 380px; column-gap: 72px; }
.item { break-inside: avoid; padding: 14px 0; }
.item-row { display: flex; align-items: baseline; gap: 10px; font: 700 23px/1.2 var(--f-title); letter-spacing: 1px; text-transform: uppercase; }
.item-row > span:first-child { transition: color .2s; }
.item:hover .item-row > span:first-child { color: var(--neon); }
.dots { flex: 1; border-bottom: 2px dotted #ffffff4d; transform: translateY(-4px); }
.price { color: var(--neon); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item small { display: block; margin-top: 3px; font-size: 15px; line-height: 1.5; opacity: .78; }
.kids { max-width: 540px; margin: 48px auto 0; padding: 24px 28px; text-align: center; border: 3px solid var(--pink); border-radius: 5px; }
.kids h4 { margin: 0 0 10px; color: var(--pink); font: 700 30px/1 var(--f-title); letter-spacing: 3px; text-transform: uppercase; }
.kids p { margin: 0; }
.kids-price { display: inline-block; margin-top: 14px; padding: 2px 16px; background: var(--pink); color: var(--bg); font: 700 22px var(--f-title); letter-spacing: 1px; }
.menu-note { margin: 0; text-align: center; font-size: 14px; opacity: .65; }

/* 8. INFOS ----------------------------------------------- */
.infos-grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 80px; align-items: center; }
.polaroid { margin: 0; padding: 14px 14px 10px; background: #fff; color: #222; transform: rotate(-3deg); box-shadow: 0 24px 50px #000a; }
.polaroid img { display: block; width: 100%; }
.polaroid figcaption { padding: 10px 0 2px; text-align: center; font: 400 22px var(--f-script); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 0 0 24px; border-top: 1px solid var(--line); }
.facts > div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--pink); font: 700 20px var(--f-title); letter-spacing: 3px; text-transform: uppercase; }
.facts dd { margin: 0; }
.walkin { margin: 0 0 20px; font-weight: 500; }

/* Réseaux sociaux : pastille avec le logo + le nom du compte */
.socials { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 26px 0 0; padding: 0; list-style: none; }
.socials a { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; text-decoration: none; }
.ico { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--neon); border-radius: 50%; color: var(--neon); transition: background .2s, color .2s; }
.socials a:hover .ico { background: var(--neon); color: var(--bg); }
.socials--col { flex-direction: column; gap: 12px; margin-top: 4px; }

/* 9. PIED DE PAGE ---------------------------------------- */
footer { padding: 72px 0 28px; border-top: 1px solid var(--line); font-size: 16px; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.3fr; gap: 40px; align-items: start; }
.foot-logo { width: 150px; }
footer h4 { margin: 0 0 8px; color: var(--pink); font: 700 19px var(--f-title); letter-spacing: 3px; text-transform: uppercase; }
.copy { margin: 56px 0 0; text-align: center; font-size: 14px; opacity: .6; }

/* 10. ANIMATIONS ----------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s, transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .item { opacity: 0; transform: translateY(14px); }
.group.is-visible .item { animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes neon-on { 0%, 18%, 22%, 60% { opacity: .15; } 20%, 24%, 62%, 100% { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes sign-flicker { 0%, 92%, 96%, 100% { opacity: 1; } 94%, 98% { opacity: .55; } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* 11. MOBILE ET ACCESSIBILITÉ ---------------------------- */
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-logo { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  section { padding: 84px 0; }
  .hero-video { left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-shade { background: linear-gradient(0deg, #0B0720 10%, #0B0720d0 55%, #0B072060 100%), linear-gradient(180deg, #0B0720cc 0%, transparent 20%); }
  .hero-foot { font-size: 12px; letter-spacing: 2px; }
  .infos-grid { grid-template-columns: 1fr; gap: 56px; }
  .polaroid { max-width: 300px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .item, .js .hero-title .line { opacity: 1; transform: none; }
}
