/* ============================================================
   MADEMOISELLE BOBÙN — /bobunbeef
   Une vidéo continue, scrubée au scroll sur un canvas fixe.
   ============================================================ */

:root {
  --noir: #0B0805;
  --ivoire: #F4EDE0;
  --flamme: #3D8BFF;
  --caramel: #E8912D;
  --kraft: #8C5A2E;
  --glass-bg: rgba(11, 8, 5, .42);
  --glass-border: rgba(244, 237, 224, .14);
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Be Vietnam Pro', sans-serif;
}

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

body {
  background: var(--noir);
  color: var(--ivoire);
  font-family: var(--sans);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; height: 100vh; }

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--caramel);
  text-transform: uppercase;
}

.caramel { color: var(--caramel); }

/* ============ LOADER ============ */

#loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.flame { position: relative; width: 46px; height: 64px; }

.flame-core {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 44px;
  background: linear-gradient(to top, #9CC4FF 0%, var(--flamme) 45%, rgba(61, 139, 255, 0) 100%);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: flicker .32s ease-in-out infinite alternate;
}

.flame-halo {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 46px;
  height: 64px;
  background: radial-gradient(ellipse at 50% 80%, rgba(61, 139, 255, .5) 0%, rgba(61, 139, 255, 0) 65%);
  transform: translateX(-50%);
  animation: flicker .47s ease-in-out infinite alternate-reverse;
}

@keyframes flicker {
  from { transform: translateX(-50%) scaleY(1) scaleX(1); opacity: .92; }
  to   { transform: translateX(-52%) scaleY(1.12) scaleX(.92); opacity: 1; }
}

.loader-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .22em;
  color: rgba(244, 237, 224, .7);
}

.loader-bar {
  width: min(240px, 60vw);
  height: 2px;
  background: rgba(244, 237, 224, .12);
  border-radius: 2px;
  overflow: hidden;
}

#loader-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--flamme), var(--caramel));
  transition: width .25s ease-out;
}

/* ============ NAV ============ */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(18px, 4vw, 48px);
  mix-blend-mode: difference;
  color: #fff;
}

.nav-brand { font-weight: 900; font-size: 1rem; }

.nav-pill {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  transition: background .25s, color .25s;
}

.nav-pill:hover { background: #fff; color: #000; }

/* ============ FILM ============ */

#film {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

#film-video {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#scrolltrack { height: 700vh; }

/* ============ CALQUES UI ============ */

#ui { position: fixed; inset: 0; z-index: 5; pointer-events: none; }

.ui-layer {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
}

.ui-layer.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease, visibility 0s;
  pointer-events: auto;
}

/* hero */

#ui-hero {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 0 6vw;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .55);
}

#ui-hero h1 {
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.02em;
}

.hero-sub {
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(244, 237, 224, .88);
}

.hero-scrollhint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(244, 237, 224, .4);
  border-radius: 12px;
}

.hero-scrollhint span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--caramel);
  animation: scrollhint 1.6s ease-in-out infinite;
}

@keyframes scrollhint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* glass cards */

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 44px) clamp(30px, 3.8vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: min(580px, 90vw);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

.glass-card h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
  font-weight: 900;
  line-height: 1.12;
}

.card-desc {
  font-weight: 300;
  font-size: .98rem;
  line-height: 1.65;
  color: rgba(244, 237, 224, .82);
}

.card-right { right: clamp(20px, 6vw, 90px); top: 50%; }
.card-right.ui-layer { transform: translate(0, calc(-50% + 24px)); }
.card-right.ui-layer.show { transform: translate(0, -50%); }

.card-left { left: clamp(20px, 6vw, 90px); top: 50%; }
.card-left.ui-layer { transform: translate(0, calc(-50% + 24px)); }
.card-left.ui-layer.show { transform: translate(0, -50%); }

/* CTA */

#ui-cta {
  left: 50%;
  bottom: 7vh;
  align-items: center;
  text-align: center;
  width: min(720px, 92vw);
  max-width: min(720px, 92vw);
}

#ui-cta.ui-layer { transform: translate(-50%, 24px); }
#ui-cta.ui-layer.show { transform: translate(-50%, 0); }

#ui-cta h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}

/* boutons de plateformes (logos) */

.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .25s, filter .25s;
}

.btn-brand:hover { transform: translateY(-2px); filter: brightness(1.12); }

.btn-uber {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  gap: 5px;
}

.btn-uber .eats { color: #06C167; }

.btn-deliveroo {
  background: #00CCBC;
  color: #fff;
  font-weight: 800;
  letter-spacing: .01em;
}

.btn-wa { background: #25D366; color: #fff; }

.btn-wa svg { width: 18px; height: 18px; fill: #fff; flex: none; }

/* ============ FOOTER ============ */

#footer {
  position: relative;
  z-index: 6;
  background: var(--noir);
  padding: 12vh 6vw 5vh;
  border-top: 1px solid rgba(244, 237, 224, .08);
}

.choix-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 7vh;
}

.choix-head h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
}

.choix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto 6vh;
}

.choix-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .3s, transform .3s;
}

.choix-card:hover { border-color: rgba(232, 145, 45, .5); transform: translateY(-4px); }

.choix-card h3 { font-size: 1.4rem; font-weight: 900; }

.choix-card p:not(.eyebrow) {
  font-weight: 300;
  font-size: .92rem;
  line-height: 1.6;
  color: rgba(244, 237, 224, .78);
}

.accent-ivoire { color: rgba(244, 237, 224, .75); }
.accent-menthe { color: #86B27A; }

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.foot-infos {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  line-height: 2.1;
  color: rgba(244, 237, 224, .45);
  text-align: center;
  margin-top: 7vh;
  padding: 0 4vw;
}

.foot-infos a:hover { color: var(--caramel); }

.foot-base {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  color: rgba(244, 237, 224, .4);
  text-align: center;
  margin-top: 3vh;
}

/* ============ CALQUES CINÉMA ============ */

#tint, #vignette, #grain, #ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#tint { z-index: 60; mix-blend-mode: soft-light; background: #3D8BFF; }

#vignette {
  z-index: 61;
  background: radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(0, 0, 0, .5) 100%);
}

#grain {
  z-index: 62;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-jitter .42s steps(3) infinite;
}

@keyframes grain-jitter {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-4%, 3%); }
  66%  { transform: translate(3%, -4%); }
  100% { transform: translate(0, 0); }
}

#ambient { z-index: 59; overflow: hidden; }

.mote {
  position: absolute;
  top: -3vh;
  border-radius: 50%;
  background: var(--caramel);
  animation: mote-fall linear infinite;
}

@keyframes mote-fall {
  from { transform: translateY(-4vh) translateX(0); }
  50%  { transform: translateY(50vh) translateX(14px); }
  to   { transform: translateY(106vh) translateX(-8px); }
}

/* ============ MODE FLAT (reduced-motion / fallback vidéo) ============ */

body.flat #film,
body.flat #scrolltrack,
body.flat #grain,
body.flat #ambient { display: none; }

body.flat #tint { display: none; }

body.flat #film-video {
  display: block;
  position: absolute;
  z-index: 0;
}

body.flat #ui {
  position: static;
  pointer-events: auto;
}

body.flat .ui-layer {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
  pointer-events: auto;
}

body.flat #ui-hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  inset: auto;
}

body.flat #ui-hero > * { position: relative; z-index: 2; }

body.flat #ui-hero > #film-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.flat #ui-hero::after {
  /* voile pour la lisibilité du titre sur la vidéo */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 55%, rgba(11, 8, 5, .28) 0%, rgba(11, 8, 5, .62) 100%);
}

body.flat .glass-card {
  margin: 10vh auto;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
}

body.flat .card-right.ui-layer,
body.flat .card-left.ui-layer,
body.flat #ui-cta.ui-layer { transform: none; }

body.flat .hero-scrollhint { display: none; }

/* ============ MOBILE ≤ 820px ============ */

@media (max-width: 820px) {
  .card-right, .card-left {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 9vh;
    width: 88vw;
    max-width: 88vw;
  }
  .card-right.ui-layer, .card-left.ui-layer { transform: translate(-50%, 24px); }
  .card-right.ui-layer.show, .card-left.ui-layer.show { transform: translate(-50%, 0); }

  #ui-cta { bottom: 4vh; }


  .choix-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  .flame-core, .flame-halo, .hero-scrollhint span, #grain, .mote { animation: none; }
}

/* très petits écrans : nav compacte */
@media (max-width: 400px) {
  .nav-brand { font-size: .82rem; }
  .nav-pill { font-size: .58rem; padding: 8px 12px; }
}

/* vidéos des cartes Trois bols */
.choix-media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 6px;
  background: #000;
}

.choix-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ NAV logo + marque 2 lignes ============ */

.nav-brand { display: inline-flex; align-items: center; gap: 12px; }

.nav-logo { height: 46px; width: 46px; object-fit: contain; display: block; }

.nav-name { font-weight: 800; font-size: .92rem; line-height: 1.12; letter-spacing: .01em; }

/* ============ Titres clairs ============ */

h1, h2, h3 { color: var(--ivoire); }

h1 { color: #fff; }

.bambou { color: #86B27A; }

/* ============ Animations de bord d'écran désactivées ============ */

#ambient { display: none; }

#grain { animation: none; }

/* ============ Cartes avis plateformes ============ */

.ratings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: 6vh auto 0;
  max-width: 760px;
}

.rating-card {
  flex: 1 1 240px;
  max-width: 350px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.rating-logo { font-weight: 800; font-size: 1.25rem; color: #fff; }
.rl-uber .eats { color: #06C167; margin-left: 5px; }
.rl-deliveroo { color: #00CCBC; }

.rating-note {
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--caramel);
  font-variant-numeric: tabular-nums;
}

.rating-txt {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  color: rgba(244, 237, 224, .6);
  text-transform: uppercase;
}

/* ============ Aussi à la carte ============ */

.carte-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 9vh 0 5vh;
}

.carte-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }

.carte-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}

.carte-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .3s, transform .3s;
}

.carte-card:hover { border-color: rgba(232, 145, 45, .5); transform: translateY(-4px); }

.carte-card h3 { font-size: 1.3rem; font-weight: 800; }

.carte-card p {
  font-weight: 300;
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(244, 237, 224, .78);
}

.back-home-row { display: flex; justify-content: center; margin-top: 6vh; }

.btn-back {
  border: 1px solid rgba(244, 237, 224, .35);
  color: var(--ivoire);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  font-weight: 500;
}

.btn-back:hover { border-color: var(--caramel); color: var(--caramel); }

@media (max-width: 820px) {
  .carte-grid { grid-template-columns: 1fr; }
  .nav-logo { height: 38px; width: 38px; }
}

.carte-lien {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .14em;
  color: var(--caramel);
  margin-top: 8px;
}

/* Bánh Mì : produit à venir */
.carte-soon .choix-media { position: relative; }

.carte-soon .choix-media video { filter: saturate(.55) brightness(.8); }

.soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .14em;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(11, 8, 5, .78);
  border: 1px solid rgba(232, 145, 45, .55);
  color: var(--caramel);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.carte-soon h3 { color: rgba(244, 237, 224, .75); }
