/* ============================================================
   MADEMOISELLE BOBÙN — la descente du bol
   ============================================================ */

:root {
  --noir: #0B0805;
  --noir2: #151009;
  --ivoire: #F4EDE0;
  --flamme: #3D8BFF;
  --caramel: #E8912D;
  --kraft: #8C5A2E;
  --menthe: #86B27A;
  --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; }

html { scroll-behavior: auto; }

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: 800;
  font-size: 1rem;
  letter-spacing: .01em;
}

.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; }

/* ============ HERO ============ */

#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

#hero-canvas,
#finale-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

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

.hero-copy 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);
  max-width: 34em;
}

.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;
  z-index: 2;
}

.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; }
}

/* ============ TIMELINE ============ */

#timeline {
  position: relative;
  background: linear-gradient(var(--noir) 0%, var(--noir2) 8%, var(--noir2) 92%, var(--noir) 100%);
}

#noodle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#noodle-base {
  stroke: var(--ivoire);
  stroke-opacity: .13;
  stroke-width: 2.5;
  stroke-linecap: round;
}

#noodle-progress {
  stroke: var(--ivoire);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(232, 145, 45, .85));
}

#noodle-dots circle {
  fill: var(--noir2);
  stroke: rgba(244, 237, 224, .25);
  stroke-width: 1.5;
  r: 5;
  transition: fill .4s, stroke .4s, filter .4s;
}

#noodle-dots circle.active {
  fill: var(--caramel);
  stroke: var(--caramel);
  filter: drop-shadow(0 0 8px rgba(232, 145, 45, .9));
}

.timeline-intro {
  position: relative;
  z-index: 2;
  padding: 22vh 6vw 10vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.timeline-intro h2 {
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  font-weight: 800;
}

/* --- Bol sticky --- */

#bowl-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(18% - min(7.5vw, 105px));
  width: min(15vw, 210px);
  z-index: 10;
  pointer-events: none;
}

#bowl-stick {
  position: sticky;
  top: calc(50vh - min(7.5vw, 105px));
  width: min(15vw, 210px);
  height: min(15vw, 210px);
}

#bowl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65), 0 6px 18px rgba(0, 0, 0, .5);
  background: var(--noir2);
}

.bowl-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(.94);
  transition: opacity .5s cubic-bezier(.34, 1.56, .64, 1), transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.bowl-img.on { opacity: 1; transform: scale(1); }

#bowl-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(232, 145, 45, .85);
  box-shadow: 0 0 18px rgba(232, 145, 45, .35);
}

#burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  overflow: visible;
}

.spark {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: var(--caramel);
  box-shadow: 0 0 8px rgba(232, 145, 45, .8);
}

/* --- Stations --- */

.station {
  position: relative;
  z-index: 2;
  min-height: 165vh;
  display: grid;
  grid-template-columns: 24% 44% 32%;
  align-items: start;
  padding-right: 4vw;
}

.st-media {
  grid-column: 2;
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 10px 30px rgba(0, 0, 0, .45);
  background: var(--noir2);
  margin-top: 30vh;
}

.st-media canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.st-text {
  grid-column: 3;
  justify-self: end;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 30em;
  padding-top: 76vh;
  padding-left: 1vw;
}

.st-text h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
}

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

/* ============ FINALE ============ */

#finale {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#cta-panel {
  position: absolute;
  left: 50%;
  bottom: 7vh;
  transform: translateX(-50%);
  z-index: 3;
  border-radius: 22px;
  padding: clamp(24px, 3.4vw, 44px) clamp(26px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  width: min(720px, 92vw);
  max-width: min(720px, 92vw);
  opacity: 0;
  visibility: hidden;
}

#cta-panel h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.cta-desc {
  font-weight: 300;
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(244, 237, 224, .85);
}

.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-family: var(--sans);
  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;
  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: 800;
}

.choix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
  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: 800; }

.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: var(--menthe); }

.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;
}

/* ============ CINEMA LAYERS ============ */

#tint,
#vignette,
#grain,
#ambient,
#steam {
  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); }
}

#steam {
  z-index: 70;
  opacity: 0;
  background:
    radial-gradient(60% 45% at 30% 88%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(55% 50% at 72% 96%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(80% 60% at 50% 105%, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, 0) 78%);
  filter: blur(18px);
}

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

@media (max-width: 820px) {

  #bowl-rail {
    left: 18px;
    width: min(28vw, 130px);
  }

  #bowl-stick {
    top: 14vh;
    width: min(28vw, 130px);
    height: min(28vw, 130px);
  }

  #noodle-dots { display: none; }

  .station {
    grid-template-columns: 1fr;
    padding: 0 5vw;
    min-height: 150vh;
  }

  .st-media {
    grid-column: 1;
    top: 34vh;
    transform: none;
    margin-top: 32vh;
  }

  .st-text {
    grid-column: 1;
    justify-self: start;
    text-align: left;
    padding-top: 24vh;
    max-width: none;
    padding-left: 0;
  }

  .timeline-intro { padding-top: 30vh; }

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

  #cta-panel { bottom: 4vh; }

}

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

@media (prefers-reduced-motion: reduce) {

  .flame-core,
  .flame-halo,
  .hero-scrollhint span,
  #grain,
  .mote { animation: none; }

  #noodle-progress { display: none; }

  #steam { display: none; }

  .bowl-img { transition: none; }

  .hero-scrollhint { display: none; }

  html { scroll-behavior: auto; }
}

/* 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); }
