/* RFE Bot — V2
   Mise en page : canvas 3D fixe derrière tout le site ; récit en 4 chapitres épinglés
   pendant le scroll (bulle -> messages -> conversation -> fiche) ; puis sections sobres
   sur fond océan profond. Thème sombre unique, assumé. */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --deep: #061B27;
  --ocean: #0B3A53;
  --ocean-2: #0E4866;
  --piment: #E63946;
  --piment-btn: #D12F3D;
  --piment-hi: #FF5A66;
  --ink: #EEF3F6;
  --muted: #A3B8C5;
  --faint: #6F8B9B;
  --line: rgba(163, 184, 197, .18);
  --panel: rgba(11, 58, 83, .38);
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step-2: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.3rem + 3.4vw, 4rem);
  --wrap: 74rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--deep); }
body { margin: 0; color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  background: radial-gradient(120% 80% at 80% 0%, #0E4866 0%, rgba(14, 72, 102, 0) 55%), var(--deep); background-attachment: fixed; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.012em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--piment-hi); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--deep); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.accent { color: var(--piment-hi); }

/* Canvas 3D */
#scene, #scene-resto { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; display: none; transition: opacity .2s linear; }
html.webgl #scene { display: block; }
html.rwebgl #scene-resto { display: block; }
html[data-mode="pro"] #scene-resto { visibility: hidden; }
.page { position: relative; z-index: 1; overflow-x: clip; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 50px; padding: .75em 1.35em; border-radius: 999px; font: 600 1rem/1.2 var(--font-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--piment-btn); color: #fff; box-shadow: 0 10px 30px -10px rgba(230, 57, 70, .7); }
.btn-primary:hover { background: #E03443; box-shadow: 0 14px 34px -10px rgba(230, 57, 70, .85); }
.btn-ghost { background: rgba(238, 243, 246, .04); color: var(--ink); border-color: rgba(238, 243, 246, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: .55em 1.05em; font-size: .95rem; }

/* En-tête */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); transition: background-color .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(6, 27, 39, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a.navlink { text-decoration: none; font-weight: 500; color: var(--muted); font-size: .97rem; }
.nav a.navlink:hover { color: var(--ink); }
@media (max-width: 820px) { .nav a.navlink { display: none; } .brand img { height: 27px; } }

/* Récit épinglé (mode 3D) */
.story { position: relative; }
.chapter { padding-block: 120px 80px; }
.chapter .wrap { display: grid; }
.chapter-text { max-width: 34rem; display: grid; gap: 18px; }
html.js:not(.static) .chapter-text { text-shadow: 0 2px 28px rgba(6, 27, 39, .9), 0 0 2px rgba(6, 27, 39, .6); }
.eyebrow { font: 600 .8rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--piment-hi); }
.chapter h1 { font-size: var(--step-3); }
.chapter h2 { font-size: var(--step-2); }
.chapter .lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 0; padding: 0; list-style: none; font-size: .95rem; color: var(--muted); }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--piment); flex: none; }
.hero-static { display: none; }
.scroll-hint { display: none; }

html.js:not(.static) .story { height: 460vh; }
html.js:not(.static) .story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.js:not(.static) .chapter { position: absolute; inset: 0; padding: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; will-change: opacity, transform; }
html.js:not(.static) .chapter[data-chapter^="0,"] { opacity: 1; visibility: visible; }
html.js:not(.static) .chapter .wrap { width: 100%; }
html.js:not(.static) .scroll-hint { display: flex; position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); flex-direction: column; align-items: center; gap: 8px; color: var(--faint); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.scroll-hint span { width: 1px; height: 38px; background: linear-gradient(var(--muted), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 759px) {
  html.js:not(.static) .chapter { align-items: flex-start; padding-top: calc(86px + env(safe-area-inset-top, 0px)); }
  html.js:not(.static) .chapter-hero { align-items: flex-end; padding-top: 0; padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
  html.js:not(.static) .chapter-hero .proof, html.js:not(.static) .scroll-hint { display: none; }
  html.js:not(.static) .chapter:not(.chapter-hero) .chapter-text { background: linear-gradient(180deg, rgba(6, 27, 39, .92) 0%, rgba(6, 27, 39, .75) 70%, rgba(6, 27, 39, 0) 100%); margin-inline: -20px; padding: 6px 20px 34px; }
  .chapter .lead { font-size: 1.05rem; }
  .chapter h1 { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
}
/* Sans WebGL / mouvement réduit : récit en sections empilées */
html:not(.js) .hero-static, html.static .hero-static { display: block; width: min(240px, 50vw); margin-bottom: 8px; }
html:not(.js) .chapter-hero, html.static .chapter-hero { padding-top: 140px; }

/* Sections */
.section { padding-block: clamp(70px, 10vw, 130px); position: relative; }
.section-head { max-width: 42rem; display: grid; gap: 14px; margin-bottom: clamp(30px, 4vw, 50px); }
.section-head h2 { font-size: var(--step-2); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { font: 600 .78rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--piment-hi); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feature { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.feature:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.feature h3 { font-size: 1.02rem; font-weight: 500; letter-spacing: 0; }
.feature p { color: var(--muted); }
.feature .ico { width: 28px; height: 28px; color: var(--piment-hi); }
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature:not(:nth-child(3n+1)) { padding: 24px 22px 26px 0; border-left: 0; }
  .feature:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature:nth-child(2n), .feature:not(:nth-child(3n+1)) { padding: 22px 0 24px; border-left: 0; }
}

/* Démo : téléphone + fiche */
.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
@media (max-width: 880px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }
.phone { width: 100%; max-width: 360px; justify-self: center; background: #02111A; border-radius: 36px; padding: 10px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
.phone-screen { background: #E9EEF1; border-radius: 28px; overflow: hidden; color: #0D1E28; font-size: .93rem; line-height: 1.4; }
.phone-head { display: flex; align-items: center; gap: 10px; background: #fff; padding: 14px 16px; border-bottom: 1px solid #D9E2E7; }
.phone-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--piment); color: #fff; display: grid; place-items: center; font: 700 .78rem/1 var(--font-display); flex: none; }
.phone-name { font-weight: 600; }
.phone-sub { font-size: .78rem; color: #5E7380; }
.phone-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 18px; }
.msg { max-width: 82%; padding: 8px 11px 6px; border-radius: 12px; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.msg time { display: block; text-align: right; font-size: .7rem; color: #6B7F8B; margin-top: 2px; }
.msg.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.msg.out { background: #FDE3E5; align-self: flex-end; border-top-right-radius: 4px; }
.msg-tag { font-size: .66rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #A3202C; display: block; margin-bottom: 2px; }
.caption { margin-top: 14px; font-size: .85rem; color: var(--faint); text-align: center; }
.demo-col { display: grid; justify-items: center; min-width: 0; }

.sheet { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-top: 28px; }
.sheet-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.sheet-bar b { color: var(--ink); font-weight: 600; }
.sheet-tabs { display: flex; gap: 4px; margin-left: auto; }
.sheet-tabs span { padding: 2px 8px; border-radius: 6px; font-size: .78rem; }
.sheet-tabs span.on { background: rgba(238, 243, 246, .1); color: var(--ink); }
.sheet-scroll { overflow-x: auto; }
.sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; min-width: 400px; }
.sheet th, .sheet td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.sheet td.num { text-align: right; }
.sheet tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.pill.yes { background: rgba(74, 222, 128, .14); color: #7EE2A2; }
.pill.no { background: rgba(230, 57, 70, .2); color: #FF8A93; }
.sheet tr.changed td { background: rgba(230, 57, 70, .12); }
.sheet-note { padding: 12px 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.sheet-note strong { color: var(--ink); }

/* Edison : assistant vocal */
.edison { --lvl: 0; }
.edison-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(36px, 6vw, 90px); align-items: center; }
@media (max-width: 880px) { .edison-grid { grid-template-columns: minmax(0, 1fr); } }
.edison-text { display: grid; gap: 18px; max-width: 34rem; }
.edison-text h2 { font-size: var(--step-2); }
.edison-lead { color: var(--muted); font-size: 1.1rem; }
.edison-points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.edison-points li { display: flex; gap: 12px; align-items: baseline; color: var(--ink); }
.edison-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: #6FD3FF; box-shadow: 0 0 10px 2px rgba(111, 211, 255, .55); transform: translateY(-1px); }
.edison-card { position: relative; display: grid; justify-items: center; text-align: center; padding: clamp(30px, 4vw, 44px) clamp(22px, 3vw, 36px) 28px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 72, 102, .42), rgba(6, 27, 39, .62)); border: 1px solid rgba(163, 184, 197, .2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
.edison-card::before { content: ""; position: absolute; left: 50%; top: -120px; width: 460px; height: 460px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(62, 106, 239, .38), rgba(62, 106, 239, 0) 62%); }
.edison-card > * { position: relative; }
.edison-stage { position: relative; width: 190px; height: 190px; display: grid; place-items: center; margin-bottom: 14px; }
.edison-orb { width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #CFEAFF 0%, #7FB0FF 18%, #3E6AEF 48%, #2645B8 78%, #1A2F85 100%);
  box-shadow: 0 0 0 6px rgba(62, 106, 239, .22), 0 0 60px rgba(62, 106, 239, .5), inset 0 -12px 30px rgba(10, 20, 70, .45);
  animation: edison-breathe 3.2s ease-in-out infinite; transform: scale(calc(1 + var(--lvl) * .3)); transition: transform .08s linear, filter .3s ease; }
@keyframes edison-breathe { 0%, 100% { box-shadow: 0 0 0 6px rgba(62, 106, 239, .22), 0 0 50px rgba(62, 106, 239, .4), inset 0 -12px 30px rgba(10, 20, 70, .45); }
  50% { box-shadow: 0 0 0 12px rgba(62, 106, 239, .12), 0 0 85px rgba(62, 106, 239, .6), inset 0 -12px 30px rgba(10, 20, 70, .45); } }
.edison-ring { position: absolute; inset: 31px; border-radius: 50%; border: 1px solid rgba(127, 176, 255, .45); opacity: 0; animation: edison-wave 3.6s ease-out infinite; }
.edison-ring.r2 { animation-delay: 1.2s; } .edison-ring.r3 { animation-delay: 2.4s; }
@keyframes edison-wave { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(1.55); opacity: 0; } }
.edison.is-connecting .edison-ring { animation-duration: 1.4s; }
.edison.is-live .edison-orb { animation: none; box-shadow: 0 0 0 calc(6px + var(--lvl) * 16px) rgba(62, 106, 239, .2), 0 0 calc(60px + var(--lvl) * 80px) rgba(62, 106, 239, calc(.5 + var(--lvl) * .4)), inset 0 -12px 30px rgba(10, 20, 70, .45); }
.edison.is-live .edison-ring { animation-duration: 1.8s; border-color: rgba(127, 176, 255, .7); }
.edison.is-talking .edison-orb { filter: brightness(1.15) saturate(1.1); }
.edison-name { font: 700 40px/1.1 var(--font-display); letter-spacing: -.5px; margin-bottom: 8px; }
.edison-sub { font-size: 17px; color: #b8c4e0; margin-bottom: 24px; }
.edison-consigne { font-size: 15px; color: #d6deef; line-height: 1.6; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 14px 16px; }
.edison-btn { margin-top: 24px; min-width: 230px; color: #fff; background: linear-gradient(135deg, #4A76F5, #2E55D9); box-shadow: 0 14px 34px -12px rgba(62, 106, 239, .9); }
.edison-btn:hover { box-shadow: 0 18px 40px -12px rgba(62, 106, 239, 1); }
.edison-btn:disabled { opacity: .75; cursor: progress; transform: none; }
.edison.is-live .edison-btn { background: var(--piment-btn); box-shadow: 0 14px 34px -12px rgba(230, 57, 70, .85); }
.edison-status { min-height: 1.5em; margin-top: 14px; font-size: .95rem; color: #b8c4e0; }
.edison-signature { margin-top: 10px; font-size: 13px; color: #7f8db0; }
.edison-note { margin-top: 6px; font-size: .76rem; color: var(--faint); }
.edison-note a { color: inherit; }

/* Apparition au défilement */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .edison-card.reveal { transition-delay: .12s; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 12px; align-content: start; min-width: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); font: 700 1.6rem/1 var(--font-display); color: var(--piment-hi); }
.steps h3 { font-size: 1.05rem; font-weight: 500; letter-spacing: 0; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Qui est derrière */
.founder { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 760px) { .founder { grid-template-columns: minmax(0, 1fr); } }
.founder-photo { width: min(300px, 72vw); aspect-ratio: 1; border-radius: 50%; position: relative; padding: 8px; background: conic-gradient(from 210deg, var(--piment), rgba(230, 57, 70, .15) 35%, rgba(79, 134, 166, .5) 70%, var(--piment)); box-shadow: 0 30px 70px -30px rgba(230, 57, 70, .55); }
.founder-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--deep); }
.founder-text { display: grid; gap: 16px; max-width: 38rem; }
.founder-text h2 { font-size: var(--step-2); }
.founder-text p { color: var(--muted); font-size: 1.08rem; }
.founder-sign { color: var(--ink); font-weight: 600; }

/* Pour qui */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(238, 243, 246, .04); font-weight: 500; }

/* FAQ */
.faq { max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 500 1.4rem/1 var(--font-display); color: var(--piment-hi); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 42em; }
.faq a { color: var(--ink); }

/* Appel final */
.final { text-align: left; }
.final-box { border-radius: 28px; padding: clamp(32px, 6vw, 72px); background: radial-gradient(120% 140% at 100% 0%, rgba(230, 57, 70, .28), rgba(230, 57, 70, 0) 55%), linear-gradient(160deg, #0E4866, #082C40); border: 1px solid var(--line); display: grid; gap: 18px; }
.final-box h2 { font-size: var(--step-3); max-width: 14ch; }
.final-box p { color: var(--muted); max-width: 36em; font-size: 1.1rem; }

/* Pied de page */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-block: 40px 34px; font-size: .95rem; color: var(--muted); background: rgba(6, 27, 39, .7); }
.site-footer .wrap { display: grid; gap: 20px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-top img { height: 28px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--ink); }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { color: var(--faint); font-size: .85rem; }

/* Pages légales */
.legal { padding-block: 120px 80px; position: relative; z-index: 1; }
.legal .wrap { max-width: 50rem; }
.legal h1 { font-size: var(--step-2); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; font-size: .95rem; }
.legal h2 { font-size: 1.1rem; margin: 38px 0 12px; font-weight: 500; }
.legal p + p { margin-top: 10px; }
.legal p, .legal li { color: #D3DEE5; }
.legal ul { padding-left: 1.2em; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal dl { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .legal dd { margin-bottom: 10px; } }
.todo { background: #FFE58A; color: #3A2A00; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.back { display: inline-flex; gap: 6px; margin-bottom: 24px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }

/* Assistant IA du site (interface maison) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-launcher { --cl-bg: rgba(11, 58, 83, .94); position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 11px; padding: 6px 20px 6px 6px; border-radius: 999px; border: 1px solid rgba(238, 243, 246, .16); background: var(--cl-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font: 600 .98rem/1 var(--font-body); cursor: pointer; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s ease; }
.chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -14px rgba(0, 0, 0, .75); }
.cl-ava, .cp-ava { position: relative; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.cl-ava { width: 44px; height: 44px; box-shadow: 0 0 0 2px var(--piment); }
.cl-ava img { width: 36px; height: 36px; border-radius: 50%; }
.cl-ava::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--piment); animation: cl-ping 2.6s ease-out infinite; }
@keyframes cl-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.cl-dot { position: absolute; right: -1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #2BD46B; border: 2.5px solid var(--cl-dot-ring, #0B3A53); }
@media (max-width: 520px) { .chat-launcher .cl-text { display: none; } .chat-launcher { padding: 5px; } .cl-ava { width: 52px; height: 52px; } .cl-ava img { width: 44px; height: 44px; } }

.chat-panel { --cp-bg: #061B27; --cp-head: linear-gradient(135deg, #0E4866 0%, #0B3A53 55%, #082C40 100%); --cp-head-ink: #fff; --cp-sub: #A9D8C0; --cp-bot: #10364B; --cp-bot-ink: #EEF3F6; --cp-user: linear-gradient(135deg, #E63946, #C92A38); --cp-user-ink: #fff; --cp-time: rgba(238, 243, 246, .45); --cp-time-user: rgba(255, 255, 255, .7); --cp-line: rgba(238, 243, 246, .1); --cp-input: #0D2C3E; --cp-input-ink: #EEF3F6; --cp-ph: #6F8B9B; --cp-chip: rgba(238, 243, 246, .06); --cp-chip-line: rgba(238, 243, 246, .22); --cp-chip-ink: #EEF3F6; --cp-note: #6F8B9B;
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: min(400px, calc(100vw - 36px)); height: min(640px, calc(100dvh - 100px)); background: var(--cp-bg); color: var(--cp-bot-ink); border-radius: 24px; box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(238, 243, 246, .08); display: flex; flex-direction: column; overflow: hidden; font-family: var(--font-body); transform-origin: bottom right; animation: cp-in .38s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes cp-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.cp-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--cp-head); color: var(--cp-head-ink); }
.cp-ava { width: 46px; height: 46px; --cl-dot-ring: #0E4866; }
.cp-ava img { width: 38px; height: 38px; border-radius: 50%; }
.cp-id { min-width: 0; flex: 1; }
.cp-title { font: 700 1.02rem/1.2 var(--font-display); letter-spacing: -.01em; color: var(--cp-head-ink); }
.cp-sub { margin-top: 3px; font-size: .8rem; color: var(--cp-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-icon { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: inherit; cursor: pointer; transition: background-color .2s ease; flex: none; }
.cp-icon:hover { background: rgba(255, 255, 255, .2); }
.cp-icon svg { width: 18px; height: 18px; }
.cp-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 8px; scroll-behavior: smooth; overscroll-behavior: contain; }
.cp-day { text-align: center; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cp-note); margin: 2px 0 12px; }
.cp-list { display: flex; flex-direction: column; gap: 8px; }
.cp-row { display: flex; animation: cp-msg .32s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes cp-msg { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.cp-row.user { justify-content: flex-end; }
.cp-bubble { max-width: 84%; padding: 10px 13px 6px; border-radius: 18px; font-size: .95rem; line-height: 1.45; background: var(--cp-bot); color: var(--cp-bot-ink); border-bottom-left-radius: 6px; word-wrap: break-word; overflow-wrap: anywhere; }
.cp-row.user .cp-bubble { background: var(--cp-user); color: var(--cp-user-ink); border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.cp-bubble p + p, .cp-bubble ul + p, .cp-bubble p + ul { margin-top: 6px; }
.cp-bubble ul { margin: 4px 0 0; padding-left: 1.1em; }
.cp-bubble li + li { margin-top: 3px; }
.cp-bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cp-bubble strong { font-weight: 600; }
.cp-bubble time { display: block; text-align: right; font-size: .68rem; margin-top: 3px; color: var(--cp-time); }
.cp-row.user .cp-bubble time { color: var(--cp-time-user); }
.cp-row.error .cp-bubble { border: 1px solid rgba(230, 57, 70, .5); }
.cp-wa { display: inline-flex; margin: 8px 0 4px; padding: 8px 14px; border-radius: 999px; background: #25D366; color: #06291A !important; font-weight: 600; font-size: .88rem; text-decoration: none !important; }
.cp-typing .cp-bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.cp-typing span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; animation: cp-dot 1.2s ease-in-out infinite; }
.cp-typing span:nth-child(2) { animation-delay: .15s; } .cp-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cp-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: .9; } }
.cp-suggest { display: flex; gap: 8px; padding: 4px 14px 10px; overflow-x: auto; scrollbar-width: none; flex: none; }
.cp-suggest::-webkit-scrollbar { display: none; }
.cp-chip { flex: none; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--cp-chip-line); background: var(--cp-chip); color: var(--cp-chip-ink); font: 500 .86rem/1.1 var(--font-body); cursor: pointer; white-space: nowrap; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.cp-chip:hover { border-color: var(--piment); transform: translateY(-1px); }
.cp-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 16px; border-radius: 26px; background: var(--cp-input); border: 1px solid var(--cp-line); flex: none; transition: border-color .2s ease, box-shadow .2s ease; }
.cp-form:focus-within { border-color: rgba(230, 57, 70, .7); box-shadow: 0 0 0 4px rgba(230, 57, 70, .15); }
.cp-form textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--cp-input-ink); font: 400 1rem/1.4 var(--font-body); padding: 9px 0; max-height: 120px; }
.cp-form textarea::placeholder { color: var(--cp-ph); }
.cp-send { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--piment-btn); color: #fff; cursor: pointer; transition: transform .2s ease, opacity .2s ease, background-color .2s ease; }
.cp-send:hover:not(:disabled) { transform: scale(1.06); background: #E03443; }
.cp-send:disabled { opacity: .35; cursor: default; }
.cp-send svg { width: 19px; height: 19px; }
.cp-note { flex: none; padding: 8px 16px 12px; font-size: .72rem; color: var(--cp-note); text-align: center; }
.cp-note a { color: inherit; }
@media (max-width: 520px) { .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); } }

/* Assistant en mode resto : blanc, noir et piment */
html[data-mode="resto"] .chat-launcher { --cl-bg: rgba(12, 13, 14, .94); border-color: rgba(12, 13, 14, .94); }
html[data-mode="resto"] .cl-dot { --cl-dot-ring: #0C0D0E; }
html[data-mode="resto"] .chat-panel { --cp-bg: #FFFFFF; --cp-head: #0C0D0E; --cp-sub: #9FE3B9; --cp-bot: #F1F1EE; --cp-bot-ink: #0C0D0E; --cp-time: rgba(12, 13, 14, .45); --cp-line: rgba(12, 13, 14, .12); --cp-input: #F5F5F2; --cp-input-ink: #0C0D0E; --cp-ph: #858C92; --cp-chip: #fff; --cp-chip-line: rgba(12, 13, 14, .18); --cp-chip-ink: #0C0D0E; --cp-note: #858C92; box-shadow: 0 40px 90px -30px rgba(12, 13, 14, .45), 0 0 0 1px rgba(12, 13, 14, .08); }
html[data-mode="resto"] .cp-ava { --cl-dot-ring: #0C0D0E; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--deep); padding: 12px 16px; border-radius: 12px; font-size: .95rem; max-width: calc(100vw - 32px); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* =========================================================
   MODE PRO / MODE RESTO + OFFRE (ajout oct. 2026)
   html[data-mode="pro|resto"] : contenu et thème du site
   html[data-offre="testeurs|apres"] : offre de décembre ou de janvier
   ========================================================= */
html[data-mode="pro"] [data-mode-only="resto"],
html[data-mode="resto"] [data-mode-only="pro"],
html[data-offre="testeurs"] [data-offre-only="apres"],
html[data-offre="apres"] [data-offre-only="testeurs"] { display: none !important; }
html:not([data-mode]) [data-mode-only="resto"] { display: none !important; }
html:not([data-offre]) [data-offre-only="apres"] { display: none !important; }

.brand .logo-light-bg { display: none; }
@media (max-width: 1180px) { .nav a.navlink-x { display: none; } }

/* Bouton Mode resto */
.mode-switch { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 6px 8px 6px 13px; border-radius: 999px; border: 1.5px solid rgba(238, 243, 246, .28); background: rgba(238, 243, 246, .05); color: var(--ink); font: 600 .93rem/1 var(--font-body); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; white-space: nowrap; }
.mode-switch:hover { border-color: var(--ink); transform: translateY(-1px); }
.mode-switch svg { width: 18px; height: 18px; flex: none; }
.ms-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(238, 243, 246, .2); transition: background-color .25s ease; flex: none; }
.ms-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .3s cubic-bezier(.5, 1.6, .4, 1); }
.mode-switch[aria-pressed="true"] .ms-track { background: var(--piment-btn); }
.mode-switch[aria-pressed="true"] .ms-knob { transform: translateX(16px); }
@media (max-width: 560px) {
  .site-header .wrap { gap: 10px; }
  .nav { gap: 8px; }
  .mode-switch { padding: 5px 6px 5px 10px; gap: 7px; font-size: .86rem; min-height: 40px; }
  .mode-switch svg { display: none; }
  .header-cta { padding-inline: .85em; font-size: .86rem; min-height: 40px; white-space: nowrap; }
  .site-header .wrap { padding-inline: 16px; }
}
@media (max-width: 380px) { .header-cta { display: none; } }

.chips .chip-switch { padding: 0; border: 0; background: none; }
.chip-switch button { font: 600 1rem/1.3 var(--font-body); padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--piment); background: rgba(230, 57, 70, .12); color: var(--ink); cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.chip-switch button:hover { background: rgba(230, 57, 70, .24); transform: translateY(-1px); }

/* Offre (les deux modes) */
.offre-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; max-width: 62rem; }
.offre-card { border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 34px); display: grid; gap: 14px; align-content: start; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.offre-card h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); }
.offre-card > p { color: var(--muted); }
.offre-tag { font: 600 .78rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--piment-hi); }
.offre-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.offre-list li { display: flex; gap: 12px; align-items: baseline; }
.offre-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--piment); flex: none; transform: translateY(-2px); }
.offre-list strong { font-weight: 600; }
.offre-main { border-color: rgba(230, 57, 70, .45); background: linear-gradient(160deg, rgba(230, 57, 70, .14), rgba(230, 57, 70, 0) 60%), var(--panel); }
.offre-note { font-size: .88rem; color: var(--faint) !important; border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Thème resto : fond blanc, noir et piment ---------- */
html[data-mode="resto"] {
  --deep: #FFFFFF;
  --ink: #0C0D0E;
  --muted: #4E565D;
  --faint: #7B848B;
  --line: rgba(12, 13, 14, .12);
  --panel: #F5F5F2;
  --piment-hi: #D12F3D;
  color-scheme: light;
  background: #FFFFFF;
}
html[data-mode="resto"] body { background: #FFFFFF; color: var(--ink); }
html[data-mode="resto"] #scene { visibility: hidden; }
html[data-mode="resto"] .brand .logo-dark-bg { display: none; }
html[data-mode="resto"] .brand .logo-light-bg { display: block; }
html[data-mode="resto"] .site-header.scrolled { background: rgba(255, 255, 255, .86); }
html[data-mode="resto"] .btn-ghost { background: transparent; color: var(--ink); border-color: rgba(12, 13, 14, .28); }
html[data-mode="resto"] .btn-ghost:hover { border-color: var(--ink); }
html[data-mode="resto"] .mode-switch { border-color: rgba(12, 13, 14, .22); background: #fff; }
html[data-mode="resto"] .mode-switch:hover { border-color: var(--ink); }
html[data-mode="resto"] .chips li { background: #F5F5F2; }
html[data-mode="resto"] .chip-switch button { background: #fff; }
html[data-mode="resto"] .chip-switch button:hover { background: rgba(230, 57, 70, .08); }
html[data-mode="resto"] .pill.yes { background: #DDF3E4; color: #11652F; }
html[data-mode="resto"] .pill.no { background: #FCE1E3; color: #A61E2A; }
html[data-mode="resto"] .sheet tr.changed td { background: rgba(230, 57, 70, .07); }
html[data-mode="resto"] .sheet { backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-mode="resto"] .phone { box-shadow: 0 40px 80px -36px rgba(12, 13, 14, .45), 0 0 0 1px rgba(12, 13, 14, .08); }
html[data-mode="resto"] .founder-photo { box-shadow: 0 30px 70px -34px rgba(230, 57, 70, .5); }
html[data-mode="resto"] .offre-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-mode="resto"] .offre-main { background: #0C0D0E; color: #fff; border-color: #0C0D0E; --muted: #C6CBCF; --faint: #9AA2A8; --line: rgba(255, 255, 255, .16); }
html[data-mode="resto"] .offre-main .offre-tag { color: #FF6B76; }
/* Blocs restés sombres dans le thème blanc : Edison, appel final, pied de page */
html[data-mode="resto"] .edison-card { background: linear-gradient(180deg, #0F2C3D, #061B27); border-color: #0F2C3D; color: #EEF3F6; box-shadow: 0 40px 90px -44px rgba(6, 27, 39, .7); }
html[data-mode="resto"] .edison-card { --faint: #8FA6B4; }
html[data-mode="resto"] .final-box { background: radial-gradient(120% 140% at 100% 0%, rgba(230, 57, 70, .55), rgba(230, 57, 70, 0) 55%), #0C0D0E; border-color: #0C0D0E; color: #fff; --ink: #fff; --muted: #C6CBCF; }
html[data-mode="resto"] .final-box .kicker { color: #FF6B76; }
html[data-mode="resto"] .final-box .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
html[data-mode="resto"] .site-footer { background: #0C0D0E; color: #C6CBCF; --ink: #fff; --faint: #8E969C; border-color: #0C0D0E; }

/* Récit 3D resto (même mécanique que le mode pro) */
html.js:not(.static) .chapter[data-rchapter^="0,"] { opacity: 1; visibility: visible; }
html[data-mode="resto"].js:not(.static) .chapter-text { text-shadow: 0 0 24px #fff, 0 0 10px #fff, 0 0 2px #fff; }
.r-story .chapter-text { max-width: 38rem; }
.r-story .chapter-text .lead { max-width: 30em; }
html.js:not(.static) .r-story .r-visual { display: none; }
html:not(.js) .r-story .r-visual, html.static .r-story .r-visual { margin-top: 30px; justify-self: start; max-width: 520px; }
@media (max-width: 759px) {
  html[data-mode="resto"].js:not(.static) .chapter:not(.chapter-hero) .chapter-text { background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .82) 70%, rgba(255, 255, 255, 0) 100%); }
}
.r-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.r-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--piment); box-shadow: 0 0 0 0 rgba(230, 57, 70, .6); animation: r-pulse 1.8s ease-out infinite; }
@keyframes r-pulse { 0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, .55); } 100% { box-shadow: 0 0 0 12px rgba(230, 57, 70, 0); } }
.r-title { font-size: clamp(2rem, .7rem + 3.4vw, 3.7rem); line-height: .96; letter-spacing: -.035em; display: grid; }
.r-line { display: block; white-space: nowrap; }
.r-hl { color: var(--piment-btn); position: relative; justify-self: start; }
.r-hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .13em; background: var(--piment-btn); border-radius: 99px; transform-origin: left; transform: scaleX(1); opacity: .22; }
html.js .r-story .r-line { opacity: 0; transform: translateY(.45em); }
html.js .r-story.is-on .r-line { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
html.js .r-story.is-on .r-line:nth-child(2) { transition-delay: .12s; }
html.js .r-story.is-on .r-line:nth-child(3) { transition-delay: .24s; }
html.js .r-story .r-hl::after { transform: scaleX(0); }
html.js .r-story.is-on .r-hl::after { transform: scaleX(1); transition: transform .7s cubic-bezier(.7, 0, .2, 1) .75s; }

.r-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(30px, 4vw, 60px); align-items: center; min-height: calc(100svh - 230px); }
.r-hero-text { display: grid; gap: 20px; max-width: 40rem; }
.r-hero-text .r-title { margin-bottom: 4px; }
.r-hero-text .lead { font-size: 1.15rem; color: var(--muted); }
@media (max-width: 900px) { .r-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; } }

/* Visuel : chevalet de table + téléphone + ticket */
.r-visual { position: relative; width: 100%; max-width: 560px; justify-self: end; aspect-ratio: 1 / .92; container-type: inline-size; }
@media (max-width: 900px) { .r-visual { justify-self: center; } }
.r-tent { position: absolute; left: 0; bottom: 6%; width: 34cqw; padding: 4cqw 3.4cqw 3.6cqw; background: #0C0D0E; color: #fff; border-radius: 3.4cqw; display: grid; justify-items: center; gap: 1.6cqw; transform: rotate(-6deg); box-shadow: 0 5cqw 9cqw -5cqw rgba(12, 13, 14, .6); z-index: 1; }
.r-tent-label { font: 600 2.3cqw/1 var(--font-body); text-transform: uppercase; letter-spacing: .3em; color: #FF6B76; }
.r-tent-num { font: 700 10cqw/.9 var(--font-display); letter-spacing: -.04em; }
.r-qr { width: 100%; height: auto; background: #fff; border-radius: 1.6cqw; padding: 1.8cqw; }
.r-qr rect { fill: #0C0D0E; }
.r-tent-cta { font: 600 2.4cqw/1.2 var(--font-body); text-align: center; color: #D7DBDE; }
.r-tent::after { content: ""; position: absolute; inset: auto 12% -2.4cqw; height: 2.4cqw; background: #2A2D30; border-radius: 0 0 2cqw 2cqw; z-index: -1; }
html.js .r-tent.scan .r-qr { animation: r-scan 1.1s ease; }
@keyframes r-scan { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); } 40% { box-shadow: 0 0 0 1.4cqw rgba(230, 57, 70, .7); } }

.r-phone { position: absolute; left: 27%; top: 0; width: 46cqw; height: 92cqw; background: #0C0D0E; border-radius: 6.4cqw; padding: 1.8cqw; box-shadow: 0 8cqw 14cqw -8cqw rgba(12, 13, 14, .65), 0 0 0 1px rgba(12, 13, 14, .1); z-index: 2; display: flex; flex-direction: column; }
.r-phone-head { display: flex; align-items: center; gap: 2.2cqw; background: #fff; color: #0C0D0E; padding: 2.8cqw 3cqw; border-radius: 4.8cqw 4.8cqw 0 0; border-bottom: 1px solid #E3E6E8; }
.r-phone-head b { display: block; font: 600 2.75cqw/1.2 var(--font-body); }
.r-phone-head small { display: block; font-size: 2.15cqw; color: #66717A; }
.r-ava { width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--piment); color: #fff; display: grid; place-items: center; font: 700 2.3cqw/1 var(--font-display); flex: none; }
.r-chat { flex: 1; min-height: 0; background: #EFEDE8; border-radius: 0 0 4.8cqw 4.8cqw; padding: 3cqw 2.4cqw; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.8cqw; overflow: hidden; }
.r-msg { max-width: 86%; padding: 1.7cqw 2.3cqw; border-radius: 2.6cqw; font-size: 2.55cqw; line-height: 1.35; color: #0C0D0E; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.r-msg i { display: block; font-style: normal; font-weight: 600; font-size: 1.85cqw; letter-spacing: .06em; text-transform: uppercase; color: #A61E2A; margin-bottom: .4cqw; }
.r-msg.in { align-self: flex-end; background: #D9FDD3; border-top-right-radius: .8cqw; }
.r-msg.out { align-self: flex-start; background: #fff; border-top-left-radius: .8cqw; }

.r-ticket { position: absolute; right: 0; top: 13%; width: 33cqw; z-index: 3; transform: rotate(4deg); }
.r-ticket-paper { background: #fff; color: #0C0D0E; padding: 3.6cqw 3.2cqw 4.4cqw; font: 500 2.35cqw/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; box-shadow: 0 5cqw 10cqw -5cqw rgba(12, 13, 14, .5), 0 0 0 1px rgba(12, 13, 14, .08); display: grid; gap: 1cqw;
  -webkit-mask: radial-gradient(1.4cqw at 50% 100%, #0000 98%, #000) 50% 100% / 4cqw 100% repeat-x; mask: radial-gradient(1.4cqw at 50% 100%, #0000 98%, #000) 50% 100% / 4cqw 100% repeat-x; }
.r-t-shop { font: 700 2.2cqw/1 var(--font-body); text-transform: uppercase; letter-spacing: .2em; color: #A61E2A; }
.r-t-num { font: 700 3cqw/1.15 var(--font-display); white-space: nowrap; letter-spacing: -.02em; padding-bottom: 1.4cqw; border-bottom: 1.5px dashed #B9BEC2; }
.r-t-row, .r-t-total { display: flex; justify-content: space-between; gap: 2cqw; }
.r-t-total { font-weight: 700; padding-top: 1.4cqw; border-top: 1.5px dashed #B9BEC2; }
.r-t-paid { color: #11652F; font-weight: 700; }
.r-t-paid::before { content: "✓ "; }
.r-t-btn { margin-top: 1.4cqw; display: block; text-align: center; padding: 1.8cqw; border-radius: 99px; background: #0C0D0E; color: #fff; font: 600 2.4cqw/1 var(--font-body); transition: background-color .3s ease, transform .3s ease; }
.r-t-btn.on { background: #11652F; transform: scale(1.04); }
.r-t-btn.on::after { content: " ✓"; }

/* Animation de la scène (pilotée par site.js) */
html.js .r-visual.play .r-msg { opacity: 0; transform: translateY(2.4cqw) scale(.96); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .3, 1.2); }
html.js .r-visual.play .r-msg.on { opacity: 1; transform: none; }
html.js .r-visual.play .r-msg:not(.on) { position: absolute; visibility: hidden; }
html.js .r-visual.play .r-ticket { opacity: 0; transform: rotate(4deg) translateY(-6cqw); clip-path: inset(0 0 100% 0); transition: opacity .2s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1), clip-path 1.1s cubic-bezier(.2, .8, .2, 1); }
html.js .r-visual.play .r-ticket.on { opacity: 1; transform: rotate(4deg); clip-path: inset(-10% -10% -10% -10%); }

/* Bandeau défilant */
.r-band { position: relative; z-index: 1; margin-top: 0; background: #0C0D0E; color: #fff; overflow: hidden; transform: rotate(-1.2deg) scale(1.03); }
.r-band-track { display: flex; width: max-content; animation: r-marquee 26s linear infinite; }
.r-band span { font: 700 clamp(1rem, .8rem + .9vw, 1.5rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; padding: 18px 0; display: inline-flex; align-items: center; white-space: nowrap; }
.r-band span::after { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--piment); margin-inline: 1.1em; }
@keyframes r-marquee { to { transform: translateX(-50%); } }

/* Transition entre les deux modes (navigateurs récents) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 9999; }
html[data-mode="resto"] .chapter-text .btn { text-shadow: none; }
html.js:not(.static) .r-story { height: 600vh; }
