/* Pablito, site vitrine. Tokens : uniquement ceux de DESIGN.md (« Balisage de chantier »). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette imposée */
  --blanc: #FFFFFF;
  --encre: #1C1C1E;
  --gris-cloison: #E5E5EA;
  --jaune-casque: #FCE4A8;
  --danger: #E5483B;
  --resolu: #2FA45B;

  /* Light */
  --ground: #FFFFFF;
  --surface: #F6F6F8;
  --bubble-pablito: #E5E5EA;
  --separator: #E5E5EA;
  --text: #1C1C1E;
  --text-2: #6E6E73;
  --tint: #1C1C1E;
  --on-tint: #FFFFFF;
  --tag-ink-2: #6B5A2E;

  --r-bubble: 20px;
  --r-control: 14px;
  --r-card: 16px;
  --r-pill: 999px;
  --r-vignette: 28px;

  --s-xxs: 4px; --s-xs: 8px; --s-sm: 12px; --s-md: 16px; --s-lg: 24px; --s-xl: 32px; --s-xxl: 48px;

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, "Inter", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1200px;
  --spring: cubic-bezier(.2, .9, .25, 1.05);
  --out-expo: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E0E0F;
    --surface: #1C1C1E;
    --bubble-pablito: #2C2C2E;
    --separator: #2C2C2E;
    --text: #F5F5F2;
    --text-2: #A1A1A6;
    --tint: #FCE4A8;
    --on-tint: #1C1C1E;
  }
}
:root[data-theme="dark"] {
  --ground: #0E0E0F;
  --surface: #1C1C1E;
  --bubble-pablito: #2C2C2E;
  --separator: #2C2C2E;
  --text: #F5F5F2;
  --text-2: #A1A1A6;
  --tint: #FCE4A8;
  --on-tint: #1C1C1E;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 17px/1.45 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .close :focus-visible { outline-color: var(--encre); }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100; transform: translateY(-200%);
  background: var(--encre); color: var(--blanc); padding: 12px 16px; border-radius: var(--r-control);
  text-decoration: none; font-weight: 600; transition: transform .2s;
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typo ---------- */
.wordmark {
  font-family: var(--font-round);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  text-decoration: none;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-weight: 800; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.45; color: var(--text-2); max-width: 34em; margin: var(--s-md) 0 0; text-wrap: pretty; }
p { text-wrap: pretty; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-control); border: 0;
  font: 600 17px/1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--spring), background-color .2s, color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn--primary { background: var(--tint); color: var(--on-tint); }
.btn--secondary { background: var(--gris-cloison); color: var(--encre); }
.btn--ink { background: var(--encre); color: var(--blanc); }
.btn--ghost-ink { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.btn--ghost-ink:hover { background: var(--encre); color: var(--jaune-casque); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--secondary { background: #2C2C2E; color: var(--text); } }
.btn svg { width: 20px; height: 20px; flex: none; }

.link {
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--out-expo); padding-bottom: 2px;
}
.link:hover { background-size: 100% 2px; }

/* ---------- Ruban de balisage (signature, porteur d'état) ---------- */
.ruban {
  height: 6px; border-radius: 3px; overflow: hidden;
  background: repeating-linear-gradient(-45deg, var(--jaune-casque) 0 5px, var(--encre) 5px 10px);
  background-size: 14.14px 6px;
}
:root[data-theme="dark"] .ruban { background-image: repeating-linear-gradient(-45deg, var(--jaune-casque) 0 5px, #0E0E0F 5px 10px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ruban { background-image: repeating-linear-gradient(-45deg, var(--jaune-casque) 0 5px, #0E0E0F 5px 10px); } }
.ruban--thinking { animation: ruban-slide 1.6s linear infinite; }
@keyframes ruban-slide { to { background-position: 14.14px 0; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s, color .3s;
  color: var(--encre);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-lg); height: 72px; }
.nav .wordmark { font-size: 30px; color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
.nav__links { display: flex; align-items: center; gap: var(--s-lg); list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) { font-weight: 600; font-size: 16px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }
.nav.is-scrolled { background: color-mix(in srgb, var(--ground) 88%, transparent); color: var(--text); box-shadow: 0 1px 0 var(--separator); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); }
.nav.is-scrolled .btn--ink { background: var(--tint); color: var(--on-tint); }
.nav__menu { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav__menu span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--out-expo), background .2s; }
.nav__menu span::before, .nav__menu span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--out-expo); }
.nav__menu span::before { top: -7px; } .nav__menu span::after { top: 7px; }
.nav__menu[aria-expanded="true"] span { background: transparent; }
.nav__menu[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__menu { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 72px 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); color: var(--text); padding: var(--s-lg) var(--gutter);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--out-expo), visibility 0s .3s;
  }
  .nav__links a:not(.btn) { font-size: 28px; font-weight: 800; font-family: var(--font-display); min-height: 64px; border-bottom: 1px solid var(--separator); }
  .nav__links .btn { margin-top: var(--s-lg); width: 100%; min-height: 52px; background: var(--tint); color: var(--on-tint); }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .3s var(--out-expo); }
  .nav.is-open { background: var(--ground); color: var(--text); }
}

/* ---------- Sections ---------- */
main > section { position: relative; padding: clamp(64px, 8vh, 96px) 0; }
.screen { min-height: 100svh; display: flex; align-items: center; }
.screen > .wrap { width: 100%; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--jaune-casque); color: var(--encre);
  min-height: 100svh; padding: 0 !important; overflow: hidden; display: flex;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: var(--s-xl); min-height: 100svh; padding-top: 88px; padding-bottom: 40px; }
.hero__text { position: relative; z-index: 2; }
.hero .lead { color: #3A3A3C; }
.hero__fact { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: var(--s-lg) 0 0; padding: 0; list-style: none; font: 600 15px/1.3 var(--font-text); }
.hero__fact li { display: inline-flex; align-items: center; gap: 8px; }
.hero__fact li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--encre); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-top: var(--s-xl); }
.hero__stage {
  position: relative; align-self: stretch; min-height: 420px;
  margin-right: calc(-1 * var(--gutter));
}
.hero__stage canvas, .hero__stage .stage__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__fallback { object-fit: contain; object-position: center bottom; filter: brightness(0); opacity: 0; transition: opacity .4s; }
.is-fallback .stage__fallback { opacity: 1; }
.stage__hint {
  position: absolute; left: 50%; translate: -50% 0; bottom: 24px; z-index: 3; white-space: nowrap;
  font: 600 14px/1 var(--font-text); color: var(--encre);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  border: 0; background: var(--blanc); box-shadow: 0 6px 18px rgba(28,28,30,.14); cursor: pointer; transition: box-shadow .2s, transform .25s var(--spring);
}
.stage__hint:hover { box-shadow: 0 10px 24px rgba(28,28,30,.2); transform: translateY(-2px); }
.stage__hint:active { transform: scale(.97); }
.hero__bubble {
  position: absolute; z-index: 3; left: 8%; top: 18%;
  background: var(--blanc); color: var(--encre); font: 700 22px/1.1 var(--font-display);
  padding: 14px 20px; border-radius: 20px 20px 20px 4px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform-origin: 0 100%; transform: scale(.6) translateY(10px); opacity: 0; pointer-events: none;
  transition: transform .45s var(--spring), opacity .2s;
}
.hero__bubble.is-on { transform: none; opacity: 1; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 96px; padding-bottom: 0; align-content: start; }
  .hero__stage { margin: 0 calc(-1 * var(--gutter)); min-height: 44svh; }
}
@media (max-width: 520px) {
  .hero .wrap { padding-top: 84px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 16px; margin-top: 12px; }
  .hero__fact { margin-top: 16px; font-size: 14px; gap: 4px 14px; }
  .hero__actions { margin-top: 20px; gap: 8px; }
  .hero__stage { min-height: 300px; }
  .stage__hint { bottom: 12px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Entrée du héros, une fois au chargement */
[data-enter] > * { animation: enter .9s var(--out-expo) both; }
[data-enter] > :nth-child(2) { animation-delay: .08s; }
[data-enter] > :nth-child(3) { animation-delay: .16s; }
[data-enter] > :nth-child(4) { animation-delay: .24s; }
[data-enter] > :nth-child(5) { animation-delay: .32s; }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } }
.hero__stage { animation: stage-in 1.2s var(--out-expo) .1s both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }

/* ---------- Téléphone (UI de l'app en HTML) ---------- */
.phone {
  position: relative; width: min(100%, 390px); margin: 0 auto; aspect-ratio: 390 / 780;
  background: var(--ground); border-radius: 44px; overflow: hidden;
  box-shadow: 0 0 0 10px var(--encre), 0 30px 60px -20px rgba(0,0,0,.35);
  display: flex; flex-direction: column; color: var(--text);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { box-shadow: 0 0 0 10px #2C2C2E, 0 30px 60px -20px rgba(0,0,0,.6); } }
:root[data-theme="dark"] .phone { box-shadow: 0 0 0 10px #2C2C2E, 0 30px 60px -20px rgba(0,0,0,.6); }
.phone__status { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 26px; font: 600 15px/1 var(--font-text); flex: none; }
.phone__status .icons { display: inline-flex; gap: 6px; align-items: center; }
.phone__status svg { width: 18px; height: 18px; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 6px 16px 10px; border-bottom: 1px solid var(--separator); flex: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--jaune-casque); flex: none; background: var(--jaune-casque); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat__name { font: 800 18px/1.1 var(--font-display); }
.chat__state { font: 500 13px/1.2 var(--font-text); color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.chat__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--resolu); }
.chat__head .icons { margin-left: auto; display: flex; gap: 14px; color: var(--text); }
.chat__head .icons svg { width: 22px; height: 22px; }
.chat__log { flex: 1; overflow: hidden; padding: 14px 14px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.bubble {
  max-width: 84%; padding: 10px 14px; border-radius: var(--r-bubble); font: 400 15px/1.38 var(--font-text);
  animation: bubble-in .45s var(--spring) both;
}
.bubble--pablito { background: var(--bubble-pablito); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble--me { background: var(--jaune-casque); color: var(--encre); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble ol { margin: 6px 0 0; padding-left: 20px; }
.bubble li + li { margin-top: 4px; }
.bubble .src { display: block; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.bubble .src a { color: inherit; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.thinking { align-self: stretch; padding: 6px 2px; animation: bubble-in .3s both; }
.thinking .ruban { width: 46%; }
.tagcard {
  align-self: stretch; background: var(--jaune-casque); color: var(--encre); border-radius: var(--r-card);
  padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; animation: bubble-in .45s var(--spring) both;
}
.tagcard__k { font: 500 12px/1.2 var(--font-text); color: var(--tag-ink-2); grid-column: 1; }
.tagcard__t { font: 800 19px/1.15 var(--font-display); grid-column: 1; }
.tagcard__q { grid-column: 2; grid-row: 1 / span 2; border-left: 2px dashed rgba(28,28,30,.35); padding-left: 14px; display: grid; place-content: center; text-align: center; }
.tagcard__q small { font: 600 11px/1 var(--font-text); letter-spacing: .04em; color: var(--tag-ink-2); }
.tagcard__q b { font: 800 26px/1 var(--font-display); }
.tagcard__actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; }
.tagcard__actions button { min-height: 44px; border: 0; border-radius: 12px; padding: 0 14px; font: 600 15px/1 var(--font-text); cursor: pointer; transition: transform .2s var(--spring); }
.tagcard__actions button:hover { transform: translateY(-2px); }
.tagcard__actions button:active { transform: scale(.96); }
.tagcard__actions .yes { background: var(--encre); color: var(--blanc); }
.tagcard__actions .no { background: transparent; color: var(--encre); }
.tagcard.is-added { grid-template-columns: 1fr auto; }
.tagcard.is-added .tagcard__actions { display: none; }
.tagcard__done { grid-column: 1 / -1; font: 600 14px/1.2 var(--font-text); display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.tagcard__done svg { width: 18px; height: 18px; color: var(--resolu); }
.alert {
  align-self: stretch; background: var(--jaune-casque); color: var(--encre); border-radius: var(--r-card); overflow: hidden;
  animation: bubble-in .45s var(--spring) both;
}
.alert .ruban { border-radius: 0; height: 8px; }
.alert__body { padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.alert__body svg { width: 26px; height: 26px; }
.alert__body b { display: block; font: 800 16px/1.2 var(--font-display); }
.alert__body ol { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.38; }
.alert__body .src { display: block; margin-top: 8px; font-size: 12px; color: var(--tag-ink-2); }
.composer { flex: none; margin: 6px 12px 10px; min-height: 48px; border-radius: var(--r-pill); background: var(--gris-cloison); display: flex; align-items: center; gap: 12px; padding: 0 16px; color: #8E8E93; font-size: 15px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .composer { background: #1C1C1E; } }
:root[data-theme="dark"] .composer { background: #1C1C1E; }
.composer svg { width: 22px; height: 22px; flex: none; }
.composer span { flex: 1; }
.tabbar { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--separator); padding: 8px 8px 16px; }
.tabbar div { display: grid; justify-items: center; gap: 2px; font: 600 11px/1.2 var(--font-text); color: var(--text-2); position: relative; }
.tabbar div.on { color: var(--text); }
.tabbar svg { width: 24px; height: 24px; }
.tabbar .on svg { background: var(--jaune-casque); color: var(--encre); border-radius: 999px; width: 52px; padding: 3px 14px; height: 30px; }
.badge { position: absolute; top: -2px; left: calc(50% + 8px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font: 700 11px/18px var(--font-text); text-align: center; padding: 0 5px; transform: scale(0); transition: transform .35s var(--spring); }
.badge.is-on { transform: scale(1); }

/* ---------- Démo chat ---------- */
.choices { display: grid; gap: var(--s-sm); margin-top: var(--s-xl); }
.choice {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  min-height: 64px; padding: 12px 18px; border-radius: var(--r-card); border: 0; cursor: pointer;
  background: var(--surface); color: var(--text); font: 600 17px/1.3 var(--font-text);
  transition: transform .25s var(--spring), background .2s, box-shadow .2s;
}
.choice:hover { transform: translateY(-2px); }
.choice:active { transform: scale(.98); }
.choice[aria-pressed="true"] { background: var(--jaune-casque); color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.choice__i { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ground); color: var(--text); }
.choice[aria-pressed="true"] .choice__i { background: var(--encre); color: var(--jaune-casque); }
.choice__i svg { width: 22px; height: 22px; }
.choice small { display: block; font-weight: 500; font-size: 14px; color: var(--text-2); }
.choice[aria-pressed="true"] small { color: var(--tag-ink-2); }
.note { margin-top: var(--s-lg); font-size: 14px; color: var(--text-2); max-width: 30em; }

/* ---------- Hors ligne ---------- */
.offline { background: var(--surface); }
.device-map { position: relative; border-radius: 28px; background: var(--ground); padding: clamp(20px, 3vw, 40px); box-shadow: 0 0 0 1px var(--separator); }
.device-map svg.map { width: 100%; height: auto; overflow: visible; }
.map .box { fill: var(--surface); stroke: var(--separator); stroke-width: 2; }
.map .box--phone { fill: none; stroke: var(--text); stroke-width: 3; }
.map .chip { fill: var(--jaune-casque); }
.map text { font: 700 15px var(--font-text); fill: var(--text); }
.map .chip + text, .map .ink { fill: var(--encre); }
.map text.small { font-weight: 500; font-size: 13px; fill: var(--text-2); }
.map .line { stroke: var(--text-2); stroke-width: 2; fill: none; }
.map .pulse { stroke: var(--text); stroke-width: 3; fill: none; stroke-dasharray: 10 300; animation: pulse 2.4s linear infinite; }
.map .pulse--b { animation-delay: 1.2s; }
@keyframes pulse { from { stroke-dashoffset: 310; } to { stroke-dashoffset: 0; } }
.map .cloud-link { transition: opacity .5s; }
.map .cloud-cut { opacity: 0; transition: opacity .4s; stroke: var(--danger); stroke-width: 3; }
.is-airplane .map .cloud-link { opacity: .18; }
.is-airplane .map .cloud-cut { opacity: 1; }
.map .cloud { transition: opacity .5s; }
.is-airplane .map .cloud { opacity: .35; }
.toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  margin-top: var(--s-lg); min-height: 64px; padding: 10px 18px; border: 0; border-radius: var(--r-card);
  background: var(--surface); color: var(--text); cursor: pointer; font: 600 17px/1.2 var(--font-text); text-align: left;
}
.toggle:hover .switch { transform: scale(1.04); }
.switch { width: 52px; height: 32px; border-radius: 16px; background: var(--gris-cloison); position: relative; flex: none; transition: background .25s, transform .25s var(--spring); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .switch { background: #3A3A3C; } }
:root[data-theme="dark"] .switch { background: #3A3A3C; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .35s var(--spring); }
.toggle[aria-checked="true"] .switch { background: var(--resolu); }
.toggle[aria-checked="true"] .switch::after { transform: translateX(20px); }
.offline__answer { margin-top: var(--s-md); min-height: 52px; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.offline__answer .bubble { max-width: none; }
.facts { list-style: none; margin: var(--s-xl) 0 0; padding: 0; display: grid; gap: var(--s-md); }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.facts svg { width: 24px; height: 24px; margin-top: 2px; }

/* ---------- Souvenirs ---------- */
.memories { width: min(100%, 600px); margin: 0 auto; background: var(--ground); border-radius: 28px; box-shadow: 0 0 0 1px var(--separator), 0 24px 48px -24px rgba(0,0,0,.2); padding: 32px 28px 22px; }
.memories__title { font: 800 34px/1.1 var(--font-display); letter-spacing: -0.02em; margin: 0 0 14px; }
.mem-list { list-style: none; margin: 0; padding: 0; }
.mem { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 20px 0; border-top: 1px solid var(--separator); transition: opacity .3s, transform .4s var(--out-expo), max-height .4s var(--out-expo), padding .4s; max-height: 160px; overflow: hidden; }
.mem:first-child { border-top: 0; }
.mem__k, .mem__v, .mem__o { grid-column: 1; }
.mem--chantier .mem__act { grid-row: 2 / span 3; }
.mem__k { font: 500 13px/1.2 var(--font-text); color: var(--text-2); }
.mem__v { font: 600 19px/1.3 var(--font-text); }
.mem__o { font: 400 12px/1.3 var(--font-text); color: var(--text-2); }
.mem__act { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: flex; gap: 4px; }
.mem__act button { min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--surface); color: var(--text); font: 600 14px/1 var(--font-text); cursor: pointer; transition: transform .2s var(--spring), background .2s; }
.mem__act button:hover { transform: translateY(-2px); }
.mem__act button:active { transform: scale(.95); }
.mem.is-gone { opacity: 0; transform: translateX(-24px); max-height: 0; padding: 0; border-color: transparent; }
.mem--chantier .ruban-wrap { grid-column: 1 / -1; margin-bottom: 8px; height: 6px; position: relative; }
.mem--chantier .ruban { width: 100%; transition: clip-path .42s cubic-bezier(.16, 1, .3, 1); clip-path: inset(0 0 0 0); }
.mem--chantier.is-solved .ruban { clip-path: inset(0 100% 0 0); }
.mem__check { display: none; align-items: center; gap: 6px; color: var(--resolu); font: 700 14px/1 var(--font-text); }
.mem__check svg { width: 20px; height: 20px; }
.mem.is-solved .mem__check { display: inline-flex; animation: bubble-in .4s var(--spring) .38s both; }
.mem.is-solved .solve { display: none; }
.undo { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 14px; border-radius: 14px; background: var(--encre); color: var(--blanc); font-size: 15px; transform: translateY(10px); opacity: 0; visibility: hidden; transition: all .3s var(--out-expo); }
.undo.is-on { transform: none; opacity: 1; visibility: visible; }
.undo button { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--jaune-casque); font: 700 15px/1 var(--font-text); cursor: pointer; }

/* ---------- Appel ---------- */
.call { background: #0E0E0F; color: #F5F5F2; }
.call .lead { color: #A1A1A6; }
.call__screen { position: relative; width: min(100%, 400px); margin: 0 auto; border-radius: 40px; background: var(--encre); padding: 28px 24px 24px; display: grid; justify-items: center; gap: 14px; box-shadow: 0 0 0 1px #2C2C2E; }
.vignette { position: relative; width: min(78%, 280px); aspect-ratio: 1; border-radius: var(--r-vignette); overflow: hidden; background: #2C2C2E; box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: box-shadow .3s; }
.vignette.is-speaking { box-shadow: 0 0 0 2px var(--jaune-casque), 0 8px 24px rgba(0,0,0,.28); }
.vignette canvas, .vignette img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vignette img { opacity: 0; transition: opacity .3s; }
.vignette.is-fallback img { opacity: 1; }
.call__name { font: 800 26px/1 var(--font-display); }
.call__meta { font: 500 15px/1 var(--font-text); color: #A1A1A6; }
.bars { display: flex; gap: 4px; align-items: center; height: 28px; }
.bars i { width: 4px; height: 6px; border-radius: 2px; background: var(--jaune-casque); transition: height .12s; }
.subs { min-height: 72px; text-align: center; font: 500 17px/1.38 var(--font-text); color: #F5F5F2; max-width: 30ch; }
.subs span { opacity: 0; animation: word .25s var(--out-expo) forwards; display: inline-block; white-space: pre; }
@keyframes word { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.call__ctrls { display: flex; gap: 18px; align-items: center; margin-top: 4px; }
.round { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #2C2C2E; color: #F5F5F2; cursor: pointer; transition: transform .25s var(--spring), background .2s; }
.round:hover { transform: translateY(-2px); }
.round:active { transform: scale(.94); }
.round svg { width: 26px; height: 26px; }
.round[aria-pressed="true"] { background: #F5F5F2; color: var(--encre); }
.round--hang { background: var(--danger); color: #fff; }
.round--go { background: var(--jaune-casque); color: var(--encre); }

/* ---------- Règles ---------- */
.rules__list { list-style: none; margin: var(--s-xxl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-xxl); }
.rules__list li { padding: 22px 0; border-top: 2px solid var(--text); display: grid; grid-template-columns: 1fr; gap: 6px; }
.rules__list b { font: 800 clamp(22px, 2.2vw, 30px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.rules__list span { color: var(--text-2); max-width: 32em; }
.rules__alert { margin-top: var(--s-xxl); }
@media (max-width: 760px) { .rules__list { grid-template-columns: 1fr; } }

/* ---------- Prix ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-md); margin-top: var(--s-xxl); }
.plan { position: relative; border-radius: var(--r-card); padding: 26px 22px 22px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; transition: transform .3s var(--spring); }
.plan:hover { transform: translateY(-2px); }
.plan__name { font: 700 17px/1.2 var(--font-text); }
.plan__price { font: 800 clamp(34px, 3.4vw, 46px)/1 var(--font-display); letter-spacing: -0.03em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.plan__per { font: 500 15px/1.3 var(--font-text); color: var(--text-2); }
.plan__what { margin-top: auto; padding-top: 18px; font-size: 15px; color: var(--text-2); }
.plan--life { background: var(--jaune-casque); color: var(--encre); }
.plan--life .plan__per, .plan--life .plan__what { color: var(--tag-ink-2); }
.plan--life .ruban-top { position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: var(--r-card) var(--r-card) 0 0; }
.plans__note { margin-top: var(--s-lg); font-size: 14px; color: var(--text-2); max-width: 52em; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Questions ---------- */
.faq { margin-top: var(--s-xl); border-top: 1px solid var(--separator); }
.faq details { border-bottom: 1px solid var(--separator); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 84px; padding: 18px 0; font: 700 clamp(19px, 1.6vw, 23px)/1.3 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--text-2); }
.faq p { margin: 0 0 20px; color: var(--text-2); max-width: 46em; }

/* ---------- Fin ---------- */
.close { background: var(--jaune-casque); color: var(--encre); text-align: center; overflow: hidden; min-height: 100svh; display: flex; align-items: center; }
.close .wordmark { display: block; font-size: clamp(96px, 22vw, 320px); letter-spacing: -0.05em; line-height: .9; }
.close h2 { font-size: clamp(26px, 3vw, 40px); margin-top: var(--s-lg); }
.close p { margin: var(--s-sm) auto 0; max-width: 34em; color: #3A3A3C; }
.close .btn { margin-top: var(--s-xl); }
.close .mail { display: inline-block; margin-top: var(--s-md); font-weight: 700; font-size: 19px; }

/* ---------- Pied ---------- */
.footer { padding: var(--s-xxl) 0 var(--s-xl); background: var(--ground); color: var(--text-2); font-size: 15px; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--s-md) var(--s-xl); align-items: center; }
.footer .wordmark { font-size: 26px; color: var(--text); }
.footer nav { margin-left: auto; }
.footer nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--s-lg); list-style: none; margin: 0; padding: 0; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 600; }
.footer__legal { width: 100%; margin: 0; }

/* ---------- Pages légales ---------- */
.legal-head { background: var(--jaune-casque); color: var(--encre); padding: 120px 0 48px; }
.legal-head h1 { font-size: clamp(36px, 5vw, 64px); }
.legal-head p { margin: 12px 0 0; color: #3A3A3C; }
.legal { padding: 48px 0 96px; }
.legal .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 48px 0 12px; }
.legal p, .legal li { color: var(--text); line-height: 1.6; }
.legal li + li { margin-top: 6px; }
.legal .draft { background: var(--jaune-casque); color: var(--encre); border-radius: var(--r-card); padding: 14px 18px; font-weight: 600; }
.legal a { text-underline-offset: 3px; }
.nav--solid { background: var(--jaune-casque); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ruban--thinking { animation: thinking-fade 1.6s ease-in-out infinite !important; animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
  @keyframes thinking-fade { 50% { opacity: .45; } }
  .map .pulse { display: none; }
}

/* ---------- Logo officiel ---------- */
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 52px; width: auto; transition: transform .3s var(--spring); }
.logo:hover img { transform: rotate(-2deg) scale(1.03); }
.logo--foot img { height: 40px; }
.close__logo { display: block; width: min(100%, 760px); height: auto; margin: 0 auto; }
@media (max-width: 520px) { .logo img { height: 38px; } }
