/* Polices hébergées sur le site (et non chez Google) : aucune adresse IP de visiteur n'est envoyée à un tiers.
   Figtree et Bricolage Grotesque, licence SIL Open Font License 1.1 (voir assets/fonts/LICENSE-*). */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/figtree-latin-400-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: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/figtree-latin-ext-400-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; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/figtree-latin-500-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: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/figtree-latin-ext-500-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; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/figtree-latin-600-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: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/figtree-latin-ext-600-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; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/figtree-latin-700-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: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/figtree-latin-ext-700-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; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/figtree-latin-800-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: 'Figtree'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/figtree-latin-ext-800-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; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-700-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: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-ext-700-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; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-800-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: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-ext-800-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; }

/* howcloseto · styles
   Thème sombre par défaut (indigo), thème clair (crème). Les couleurs passent
   toutes par des variables : ne jamais écrire une couleur en dur ailleurs. */

:root, :root[data-theme="dark"] {
  --bg: #1B1633;
  --surface: #221C40;
  --surface-2: #2A2250;
  --sunken: #17122C;
  --text: #F7F3EA;
  --muted: #BDB4DA;
  --faint: #8E86B0;
  --line: rgba(189, 180, 218, .14);
  --line-strong: rgba(189, 180, 218, .3);
  --ph-bg: #342B62;
  --ph-text: #BDB4DA;
  --tomato: #FF4F2E;
  --tomato-text: #FF6A4D;
  --tomato-soft: rgba(255, 79, 46, .12);
  --tomato-edge: #B43419;
  --on-tomato: #1B1633;
  --gold: #FFC53D;
  --gold-text: #FFC53D;
  --gold-soft: rgba(255, 197, 61, .12);
  --mint: #4BD6A0;
  --mint-soft: rgba(75, 214, 160, .12);
  --explored: rgba(189, 180, 218, .5);
  --wire: rgba(189, 180, 218, .42);
  --sweep: rgba(247, 243, 234, .1);
  --sweep-line: rgba(247, 243, 234, .5);
  --shadow: 0 18px 40px rgba(8, 5, 20, .45);
  --scrim: rgba(12, 9, 26, .6);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F7F3EA;
  --surface: #FFFFFF;
  --surface-2: #FFF6F1;
  --sunken: #EFE8DA;
  --text: #1B1633;
  --muted: #5B5280;
  --faint: #857DA3;
  --line: rgba(27, 22, 51, .1);
  --line-strong: rgba(27, 22, 51, .22);
  --ph-bg: #E6DFF2;
  --ph-text: #5B5280;
  --tomato: #F2482A;
  --tomato-text: #C9361C;
  --tomato-soft: rgba(242, 72, 42, .1);
  --tomato-edge: #B33118;
  --on-tomato: #1B1633;
  --gold: #E8A900;
  --gold-text: #8F6400;
  --gold-soft: rgba(232, 169, 0, .14);
  --mint: #16966A;
  --mint-soft: rgba(22, 150, 106, .12);
  --explored: rgba(91, 82, 128, .45);
  --wire: rgba(91, 82, 128, .4);
  --sweep: rgba(27, 22, 51, .07);
  --sweep-line: rgba(27, 22, 51, .35);
  --shadow: 0 18px 40px rgba(27, 22, 51, .14);
  --scrim: rgba(27, 22, 51, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background .3s, color .3s;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ease { transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ---------- Mise en page : une colonne mobile, centrée sur grand écran ---------- */
#app {
  max-width: 440px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; position: relative;
  overflow-x: hidden; overflow-x: clip;   /* clip : coupe les débords sur les côtés sans créer de 2e barre de défilement */
}
.screen {
  flex: 1; display: flex; flex-direction: column;
  padding: 14px 20px calc(22px + env(safe-area-inset-bottom));
  animation: screen-in .45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.grow { flex: 1; }
.dsp { font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; font-weight: 800; letter-spacing: -0.025em; }
.cap { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- En-tête ---------- */
.top { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.logo {
  display: inline-flex; align-items: baseline; gap: 3px; text-decoration: none; color: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.03em;
}
.logo i { width: 7px; height: 7px; border-radius: 50%; background: var(--tomato); display: inline-block; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--text); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0;
}
.iconbtn.ghost { border-color: transparent; color: var(--muted); }
.iconbtn:hover { background: var(--line); }
.chipbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: .04em;
}
.status { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; }
.status.run { background: var(--tomato-soft); color: var(--tomato-text); }
.status.run i { background: var(--tomato); animation: blink 1s ease-in-out infinite; }
.status.ok { background: var(--mint-soft); color: var(--mint); animation: pop .5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.status.ok i { background: var(--mint); }
.status.gold { background: var(--gold-soft); color: var(--gold-text); letter-spacing: .08em; font-size: 12px; font-weight: 800; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Photos rondes ---------- */
.ph {
  --s: 44px; --gap: var(--bg);
  width: var(--s); height: var(--s); border-radius: 50%; flex-shrink: 0; position: relative;
  background: var(--ph-bg); color: var(--ph-text); display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: calc(var(--s) * .34);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.ph.r-gold { box-shadow: 0 0 0 2px var(--gap), 0 0 0 4px var(--gold); }
.ph.r-tomato { box-shadow: 0 0 0 2px var(--gap), 0 0 0 3.5px var(--tomato); }
.ph.r-lilac { box-shadow: 0 0 0 2px var(--gap), 0 0 0 3px var(--explored); }
.ph.me { background: var(--text); color: var(--bg); font-family: 'Figtree', sans-serif; font-weight: 800; font-size: calc(var(--s) * .3); }
.ph.unk { background: transparent; border: 1.5px dashed var(--explored); color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 20px; border: 0; border-radius: 18px;
  background: var(--tomato); color: var(--on-tomato); text-decoration: none;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.01em;
  box-shadow: 0 4px 0 var(--tomato-edge); transition: transform .15s, box-shadow .15s, opacity .2s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tomato-edge); }
.btn[disabled], .btn.off { background: var(--surface-2); color: var(--faint); box-shadow: 0 4px 0 var(--line-strong); pointer-events: none; }
.btn2 {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 12px; white-space: nowrap; border-radius: 16px;
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; flex: 1 1 0;
}
.btn2:hover { background: var(--line); }
.row2 { display: flex; gap: 10px; }
.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--muted);
  font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.pop { animation: pop .6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.pop2 { animation: pop .6s cubic-bezier(0.34, 1.56, 0.64, 1) .12s both; }

/* ---------- Champ de recherche + suggestions ---------- */
.label { display: block; margin: 22px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.field {
  display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 8px 0 18px; border-radius: 18px;
  background: var(--surface); border: 1.5px solid var(--line-strong); transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: var(--tomato); box-shadow: 0 0 0 5px var(--tomato-soft); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 600; caret-color: var(--tomato); }
.field input::placeholder { color: var(--faint); font-weight: 500; }
.sugg {
  --gap: var(--surface); margin-top: 8px; padding: 6px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop .4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.sugg button {
  width: 100%; display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 6px 12px 6px 14px; border: 0; border-radius: 14px;
  background: transparent; text-align: left;
}
.sugg button:hover, .sugg button.hl { background: var(--tomato-soft); }
.sugg .nm { font-size: 16px; font-weight: 500; color: var(--muted); }
.sugg .nm mark { background: none; color: var(--text); font-weight: 800; }
.sugg .ds { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg .foot { padding: 8px 14px 6px; font-size: 12px; color: var(--faint); }
.sugg .empty { padding: 16px 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.ideas { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.idea {
  --gap: var(--surface); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600;
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.idea:hover { transform: translateY(-1px); }

/* ---------- Écran 2 ---------- */
.starcard {
  --gap: var(--surface); margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 12px 8px 12px 14px;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--gold-soft);
}
.starcard .who { flex: 1; min-width: 0; }
.goldlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 0; background: none;
  color: var(--gold-text); font-weight: 700; font-size: 14px; }
.seg { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); }
.seg button { min-height: 44px; padding: 0 6px; line-height: 1.15; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; transition: background .25s, color .25s; }
.seg button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.pchip {
  --gap: var(--surface-2); display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 4px 0 8px; border-radius: 30px;
  background: var(--surface-2); border: 1px solid var(--tomato-soft); animation: pop .5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.pchip .who { flex: 1; min-width: 0; }
.pchip b { display: block; font-size: 16px; }
.pchip span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pchip .badge { display: inline-flex; margin-left: 8px; height: 22px; align-items: center; padding: 0 8px; border-radius: 11px;
  background: var(--tomato); color: var(--on-tomato); font-size: 11px; font-weight: 800; vertical-align: 2px; }
.note { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--line-strong);
  font-size: 13px; line-height: 1.45; color: var(--muted); }
.privacy { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; color: var(--muted); }

/* ---------- Écran 3 : commun aux trois animations ---------- */
.stage { position: relative; margin: 8px auto 0; flex-shrink: 0; }
.nd { position: absolute; opacity: 0; transform: scale(.3); transition: opacity .35s ease, transform .6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nd.on { opacity: 1; transform: scale(1); }
.nd.on.dim { opacity: .26; }
.lb { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; line-height: 1.2; pointer-events: none; }
.lb.l { left: 0; transform: none; text-align: left; }
.lb.r { left: auto; right: 0; transform: none; text-align: right; }
.lb.above { top: auto !important; bottom: calc(100% + 6px); }
.lb.sl { left: auto; right: calc(100% + 8px); transform: none; text-align: right; top: 50% !important; transform: translateY(-50%); width: 92px; white-space: normal; }
.lb.sr { left: calc(100% + 8px); transform: translateY(-50%); text-align: left; top: 50% !important; width: 92px; white-space: normal; }
.lb.side { left: calc(100% + 8px); transform: none; text-align: left; white-space: normal; width: 86px; }
.lb b { display: block; font-size: 11px; font-weight: 800; color: var(--text); }
.lb span { display: block; font-size: 10px; color: var(--muted); }
.lb .hot { color: var(--tomato-text); font-weight: 700; animation: pop .5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.ln { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round;
  transition: stroke-dashoffset .55s cubic-bezier(.3, .7, .3, 1), opacity .6s, stroke-width .6s; }
.ln.on { stroke-dashoffset: 0; }
.ln.dim { opacity: .26; }
.ln.x { stroke: var(--wire); stroke-width: 1.25; }
.ln.t { stroke: var(--tomato); stroke-width: 1.75; }
.ln.t.fin { stroke-width: 3.8; }
.ln.w { stroke: var(--tomato); stroke-width: 3.5; transition: stroke-dashoffset .7s cubic-bezier(.3, .7, .3, 1), stroke-width .6s; }
.ln.w.fin { stroke-width: 4.8; }
.glow { fill: none; stroke: var(--tomato); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .8s; }
.glow.fin { opacity: .18; }
.alt { fill: none; stroke: var(--explored); stroke-width: 1.5; stroke-dasharray: 3 5; transition: opacity .6s; }
.alt.dim { opacity: .26; }
.mk { fill: none; stroke: #fff; stroke-width: 10; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s ease; }
.mk.on { stroke-dashoffset: 0; }
.cc { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 6; opacity: .7; }
.apill { padding: 4px 9px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--explored); color: var(--muted);
  font-size: 10.5px; font-weight: 700; line-height: 1.25; text-align: center; white-space: nowrap;
  text-decoration: line-through; text-decoration-color: var(--tomato); text-decoration-thickness: 1.5px; }
.star-ring { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--gold); transition: box-shadow .8s; }
.fin .star-ring { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--gold), 0 0 34px 10px var(--gold-soft); }
.orbit { position: absolute; border-radius: 50%; border: 1.5px dashed var(--gold); opacity: .55; animation: spin 16s linear infinite; }
.pulse { position: absolute; inset: 0; border-radius: 50%; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--gold-soft); } 100% { box-shadow: 0 0 0 24px transparent; } }
.tp { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--tomato); opacity: 0; pointer-events: none; }
.tp.go { animation: ring 1s ease-out 2; }
@keyframes ring { 0% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(2); } }
.bump.go { animation: bump .7s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.radar { position: absolute; border-radius: 50%; overflow: hidden; transition: opacity .7s; pointer-events: none; }
.radar.off { opacity: 0; }
.sweep { position: absolute; inset: 0; border-radius: 50%; animation: spin 2.4s linear infinite;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 280deg, var(--sweep) 359deg, transparent 360deg); }
.sweep i { position: absolute; left: 50%; top: 0; width: 1.5px; height: 50%; margin-left: -.75px; background: var(--sweep-line); }
.radar.off .sweep { animation-play-state: paused; }
.zoom { position: absolute; inset: 0; transition: transform 1.3s cubic-bezier(.65, 0, .35, 1); }
.counter { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.counter b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.phrases { position: relative; margin-top: 10px; min-height: 60px; text-align: center; }
.phr { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(10px);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: 22px; line-height: 1.2;
  transition: opacity .35s, transform .5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.phr.on { opacity: 1; transform: none; }
.phr.out { transform: translateY(-8px); }
.phr em { font-style: normal; color: var(--tomato-text); }
.phr strong { color: var(--gold-text); }
.steps { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stepc { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 11px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); transition: border-color .4s, opacity .4s; }
.stepc.run { border-color: var(--tomato); }
.stepc.done { border-color: var(--mint); }
.stepc.wait { opacity: .55; }
.stepc b { font-size: 12.5px; line-height: 1.2; }
.stepc span { font-size: 11px; line-height: 1.25; color: var(--muted); }
.st-ic { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.sp { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--tomato); animation: spin .8s linear infinite; }
.okc { width: 18px; height: 18px; border-radius: 50%; background: var(--mint); color: var(--bg); display: flex; align-items: center; justify-content: center;
  animation: pop .45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.wt { width: 16px; height: 16px; border-radius: 50%; border: 2px dotted var(--line-strong); }
.cta { min-height: 118px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.skip { align-self: center; }

/* Fil tendu */
.fam { fill: none; stroke: var(--wire); stroke-width: 1.1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s ease-out, opacity .6s; }
.fam.on { stroke-dashoffset: 0; }
.fam.dim { opacity: .25; }
.th { fill: none; stroke: var(--tomato); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; transition: stroke .5s, opacity .6s, stroke-width .4s; }
.th.rej { stroke: var(--explored); stroke-width: 1.6; stroke-dasharray: .02 .03; }
.th.dim { opacity: .25; }
.th.taut { stroke-width: 3.4; }
.halo { fill: none; stroke: var(--tomato); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .8s; }
.halo.on { opacity: .16; }
.stamp { padding: 6px 11px; border-radius: 10px; border: 1.5px solid var(--explored); color: var(--muted); background: var(--bg);
  font-size: 12px; font-weight: 800; white-space: nowrap; transform: rotate(-4deg);
  text-decoration: line-through; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; }
.meter { margin-top: 12px; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.beads { display: flex; flex-wrap: wrap; gap: 5px; max-width: 150px; justify-content: flex-end; }
.beads i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background .3s, border-color .3s, transform .4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.beads i.on { background: var(--tomato); border-color: var(--tomato); transform: scale(1.15); }
.num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; line-height: 1; }

/* Tirage */
.duel { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.duel .dash { flex: 1; border-top: 1.5px dashed var(--line-strong); }
.duel .mid { min-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cab { position: relative; margin-top: 14px; padding: 12px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mq { display: flex; justify-content: space-between; padding: 0 10px; }
.mq i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); transition: background .3s, box-shadow .3s; }
.mq.spin i { animation: mq .5s steps(1) infinite; }
.mq.spin i:nth-child(2n) { animation-delay: .25s; }
.mq.win i { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
@keyframes mq { 0% { background: var(--gold); } 50% { background: var(--gold-soft); } }
.round { margin: 10px 4px 8px; min-height: 16px; }
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.reel { --gap: var(--sunken); position: relative; border-radius: 16px; background: var(--sunken); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s, opacity .5s; }
.reel.held { box-shadow: inset 0 0 0 2px var(--tomato); }
.reel.gold { box-shadow: inset 0 0 0 2px var(--gold), 0 0 24px var(--gold-soft); }
.reel.rej { opacity: .38; }
.reel.off { opacity: .28; }
.strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.strip.fast { filter: blur(1.5px); }
.cell { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 4px; }
.cell b { margin-top: 8px; font-size: 11.5px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell span { font-size: 10.5px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fade { position: absolute; left: 0; right: 0; height: 28px; pointer-events: none; }
.fade.t { top: 0; background: linear-gradient(var(--sunken), transparent); }
.fade.b { bottom: 0; background: linear-gradient(transparent, var(--sunken)); }
.pay { position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pay.l { left: -1px; border-left: 7px solid var(--tomato); }
.pay.r { right: -1px; border-right: 7px solid var(--tomato); }
.ml { min-height: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--faint); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 10.5px; font-weight: 800; animation: pop .45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.tag.t { background: var(--tomato-soft); color: var(--tomato-text); }
.tag.g { background: var(--gold-soft); color: var(--gold-text); }
.tag.m { background: var(--mint-soft); color: var(--mint); }
.slotstamp { position: absolute; left: 50%; top: 50%; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--tomato); background: var(--bg);
  font-size: 14px; font-weight: 800; white-space: nowrap; opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(.6);
  transition: opacity .25s, transform .45s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: none; }
.slotstamp.on { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
.slotstamp s { text-decoration-color: var(--tomato); text-decoration-thickness: 2px; }

/* ---------- Écran 4 : résultat ---------- */
.hero { margin-top: 14px; display: flex; align-items: center; gap: 18px; }
.bignum { width: 96px; height: 96px; border-radius: 50%; background: var(--tomato); color: var(--on-tomato); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 66px; line-height: 1;
  box-shadow: 0 0 0 7px var(--tomato-soft), 0 0 0 15px var(--tomato-soft);
  animation: big .8s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes big { from { opacity: 0; transform: scale(.4) rotate(-8deg); } to { opacity: 1; transform: none; } }
.up { animation: up .6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card { --gap: var(--surface); margin-top: 14px; padding: 14px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.scorehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: -8px; }
.scorehead .cap { white-space: nowrap; }
.scorehead .link { font-size: 13px; white-space: nowrap; padding: 0; }
.tier { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 14px; font-size: 12.5px; font-weight: 800; }
.tier.t0 { background: var(--tomato-soft); color: var(--tomato-text); }
.tier.t1 { background: var(--line); color: var(--muted); }
.tier.t2 { background: var(--mint-soft); color: var(--mint); }
.tier.t3 { background: var(--gold-soft); color: var(--gold-text); }
.bar { position: relative; display: flex; gap: 3px; height: 10px; margin-top: 12px; }
.bar i { display: block; height: 100%; border-radius: 5px; opacity: .45; }
.bar i.hit { opacity: 1; }
.mark { position: absolute; top: -6px; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: var(--text);
  box-shadow: 0 0 0 3px var(--surface); transition: left 1s cubic-bezier(0.34, 1.56, 0.64, 1) .4s; }
.p { display: flex; align-items: center; gap: 12px; min-height: 46px; }
.p .who { min-width: 0; }
.p b { display: block; font-size: 15px; }
.p span { display: block; font-size: 12px; color: var(--muted); }
.p .youtag { display: inline-flex; height: 20px; align-items: center; padding: 0 7px; border-radius: 10px; margin-left: 6px; background: var(--tomato);
  color: var(--on-tomato); font-size: 10.5px; font-weight: 800; vertical-align: 2px; }
.lk { display: flex; align-items: center; gap: 10px; min-height: 38px; padding-left: 19px; }
.lk::before { content: ""; align-self: stretch; width: 2px; background: var(--tomato); border-radius: 1px; margin-inline-end: 12px; }
.lk .ty { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--tomato-text); line-height: 1.25; padding: 4px 0; }
.pts { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 13px; background: var(--line); padding: 4px 8px; border-radius: 9px; white-space: nowrap; }
.pts em { font-style: normal; font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 10.5px; color: var(--muted); margin-left: 4px; }
.sources { margin-top: 14px; font-size: 12px; color: var(--faint); text-align: center; }

/* Feuille « Le barème » */
.sheet-wrap { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: var(--scrim);
  animation: fadein .25s ease both; }
@keyframes fadein { from { opacity: 0; } }
.sheet { width: 100%; max-width: 440px; max-height: 88vh; overflow: auto; padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 30px 30px 0 0; background: var(--surface); box-shadow: 0 -20px 60px rgba(8, 5, 20, .4);
  animation: rise .55s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes rise { from { transform: translateY(60%); } to { transform: none; } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto; }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) 84px 34px; align-items: center; gap: 10px; min-height: 46px; border-bottom: 1px solid var(--line); }
.brow b { display: block; font-size: 14.5px; }
.brow span { display: block; font-size: 11.5px; color: var(--muted); }
.meterb { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meterb i { display: block; height: 100%; border-radius: 3px; background: var(--tomato); }
.brow .v { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 16px; text-align: right; }
.tiers { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tiers div { padding: 8px 6px; border-radius: 12px; text-align: center; font-size: 11.5px; font-weight: 800; line-height: 1.15; }
.tiers span { display: block; margin-top: 3px; font-size: 10.5px; opacity: .8; }

/* ---------- Écran 5 : image de partage ---------- */
.sharewrap { margin-top: 18px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.og { width: 1200px; height: 630px; padding: 56px 72px 52px; display: flex; flex-direction: column; background: #1B1633; color: #F7F3EA;
  position: relative; overflow: hidden; transform-origin: 0 0; --bg: #1B1633; --gap: #1B1633; }
.og .logo { font-size: 30px; color: #F7F3EA; }
.og .logo i { width: 10px; height: 10px; }
.og h1 { margin: 26px 0 0; font-size: 64px; line-height: 1.06; }
.og .n { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; background: #FF4F2E; color: #1B1633; vertical-align: -10px; }
.og .chainrow { margin-top: 34px; display: flex; align-items: flex-start; gap: 18px; }
.og .pp { display: flex; flex-direction: column; align-items: center; width: 140px; text-align: center; }
.og .pp b { margin-top: 20px; font-size: 22px; }
.og .lk2 { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 34px; min-width: 0; }
.og .lk2 span { font-size: 17px; font-weight: 700; color: #FF6A4D; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.og .lk2 i { display: block; width: 100%; height: 3px; background: #FF4F2E; border-radius: 2px; }
.og .more { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 26px; color: #BDB4DA; padding-top: 30px; }
.og .foot { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(189, 180, 218, .18); }

/* ---------- Langues ---------- */
.langrow { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 14px;
  border: 0; border-radius: 14px; background: transparent; color: var(--text); font-size: 17px; font-weight: 700; }
.langrow:hover { background: var(--line); }
.langrow[aria-selected="true"] { background: var(--tomato-soft); color: var(--tomato-text); }
.stage, .og, .duel, .cab { direction: ltr; }                /* les scènes animées gardent leur géométrie */
.stage .lb, .phr { unicode-bidi: plaintext; }
[dir="rtl"] .btn .ic, [dir="rtl"] a.iconbtn .ic { transform: scaleX(-1); }
[dir="rtl"] .sugg button > .ic:last-child { transform: none !important; }
[dir="rtl"] .pchip, [dir="rtl"] .starcard { padding-inline: 8px 4px; }

/* ---------- Divers ---------- */
.dev { position: fixed; right: 12px; bottom: 12px; z-index: 40; font-size: 13px; }
.dev > button { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow); }
.dev .panel { position: absolute; right: 0; bottom: 48px; width: 290px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.dev .panel h4 { margin: 10px 0 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dev .panel h4:first-child { margin-top: 0; }
.dev .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.dev .opts button { min-height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; font-size: 12.5px; font-weight: 600; }
.dev .opts button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.dev .fake { margin-top: 10px; font-size: 11.5px; color: var(--faint); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 50; padding: 10px 16px; border-radius: 14px;
  background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; animation: pop .4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------- Pied de page, pages légales ---------------- */
.footlinks { margin-top: 18px; }
.footlinks nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 6px; font-size: 13px; }
.footlinks nav a { color: var(--muted); text-decoration: none; padding: 8px 4px; min-height: 32px; }
.footlinks nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footlinks nav i { font-style: normal; color: var(--faint); }
.footlinks .sources { margin-top: 2px; }
.legal { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.legal h3 { margin: 24px 0 6px; font: 800 17px/1.2 'Bricolage Grotesque', sans-serif; color: var(--text); }
.legal p { margin: 0 0 10px; }
.legal b { color: var(--text); }
.legal a { color: var(--gold-text); text-underline-offset: 3px; }

/* ---------------- Crédit photo ---------------- */
.phc { position: relative; display: inline-flex; flex: none; }
.crbtn { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; padding: 0; border-radius: 50%;
  border: 2px solid var(--surface); background: var(--surface-2); color: var(--muted); font: italic 700 12px/1 Georgia, serif;
  display: grid; place-items: center; }
.crbtn::after { content: ""; position: absolute; inset: -11px; }          /* zone tactile 44 px */
.crbtn:hover { color: var(--text); }
.credit { display: flex; gap: 16px; align-items: center; margin-top: 16px; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.credit b { font-size: 17px; display: block; margin-bottom: 4px; }

/* ---------------- Avertissement, signalement ---------------- */
.disclaimer { display: flex; flex-direction: column; align-items: flex-start; margin-top: 12px; padding: 0 4px; font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.disclaimer .link { min-height: 36px; padding: 0; gap: 6px; font-size: 13px; color: var(--muted); }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.reasons button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent;
  color: var(--muted); font-weight: 700; font-size: 14px; }
.reasons button[aria-checked="true"] { border-color: var(--tomato); background: var(--tomato-soft); color: var(--text); }
.select, .area { width: 100%; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--text);
  font: 600 15px 'Figtree', sans-serif; }
.select { height: 48px; padding: 0 12px; }
.area { margin-top: 10px; padding: 12px 14px; resize: vertical; min-height: 84px; }
.select:focus, .area:focus { outline: 0; border-color: var(--tomato); box-shadow: 0 0 0 5px var(--tomato-soft); }
.note.okn { border-style: solid; border-color: var(--mint); background: var(--mint-soft); color: var(--text); align-items: center; }

/* ---------------- Chemin plus solide ---------------- */
.strong { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 8px 10px 14px; border-radius: 18px;
  background: var(--gold-soft); border: 1px solid rgba(255, 197, 61, .35); font-size: 13.5px; line-height: 1.4; color: var(--text); }
.strong svg { flex: none; color: var(--gold-text); }
.strong span { flex: 1; }
.strong .link { flex: none; color: var(--gold-text); font-weight: 800; text-decoration-color: currentColor; }

/* ---------------- Suggestions : « tu ne trouves pas ? » ---------------- */
.sugg .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: center; }
.sugg .cantfind { color: var(--tomato-text); font-weight: 700; font-size: 13px; text-decoration: none; padding: 6px 0; }
.sugg .cantfind:hover { text-decoration: underline; }
.subres { margin-top: 18px; border-left: 4px solid var(--mint); }
.subres.warn { border-left-color: var(--gold); }
.subres.bad { border-left-color: var(--tomato); }
.subres .sugg { box-shadow: none; animation: none; }

/* ---------------- 404 ---------------- */
.nf { margin-top: 40px; text-align: center; }
.nfnum { font-size: 110px; line-height: .9; color: var(--gold-text); }
.nfline { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--faint); font-weight: 800; }
.nfline > i { width: 48px; border-top: 2px dashed var(--wire); }


/* ---------------- Carte « Exemple » (accueil) ---------------- */
.howcard { padding: 26px 28px 24px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  --gap: var(--surface); animation-delay: .2s; }
.howhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hownum { display: inline-flex; align-items: baseline; gap: 8px; font-size: 44px; line-height: 1; color: var(--tomato-text); }
.hownum small { font: 800 11px/1 'Figtree', sans-serif; letter-spacing: .14em; color: var(--muted); }
.howpath .ph.unk { border-style: dashed; }
.howpath .p b { font-size: 16px; }
.howpath .p span { font-size: 13px; }
.howpath .lk { padding-left: 23px; min-height: 42px; }
.howsteps { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.howsteps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.howsteps i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-style: normal;
  background: var(--gold-soft); color: var(--gold-text); font-size: 15px; }

.howstar { color: var(--gold-text); background: var(--gold-soft) !important; }
@media (max-width: 1023px) {
  .howcard { padding: 18px 18px 16px; border-radius: 24px; box-shadow: none; }
  .hownum { font-size: 36px; }
}

/* =============================== Grand écran (≥ 1024 px) =============================== */
.lead { margin: 14px 0 0; font-size: 16px; line-height: 1.45; }
.herotxt { font-size: 24px; line-height: 1.1; }
.cols { display: contents; }                     /* mobile : les morceaux restent à la suite */
.cols > .ca, .cols > .cb { display: contents; }

@media (min-width: 1024px) {
  #app { max-width: 1180px; }
  .screen { padding: 22px 48px 28px; }
  .screen.narrow { width: 100%; max-width: 680px; margin: 0 auto; }
  .top { min-height: 56px; }
  .logo { font-size: 24px; }

  .cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: start; margin-top: 36px; }
  .cols > .ca, .cols > .cb { display: flex; flex-direction: column; min-width: 0; }

  /* Accueil */
  .desk.home .cols { align-items: center; min-height: calc(100vh - 260px); margin-top: 8px; }
  .desk.home .ca > .cap:first-child { margin-top: 0 !important; }
  .hometitle h1 { font-size: 68px !important; line-height: .98 !important; letter-spacing: -0.035em; }
  .desk .lead { font-size: 19px; max-width: 30ch; margin-top: 20px; }
  .desk.home .field { height: 64px; border-radius: 22px; }
  .desk.home .field input { font-size: 19px; }
  /* Qui tu connais */
  .starposter { position: sticky; top: 40px; padding: 36px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line);
    --gap: var(--surface); display: flex; flex-direction: column; align-items: flex-start; }
  .desk.who .cb h1 { font-size: 46px !important; }
  .desk.who .seg { margin-top: 0; }

  /* Recherche animée : la scène à gauche, un peu plus grande ; le récit à droite */
  .stagecols { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; min-height: calc(100vh - 160px); margin-top: 0; }
  .stagecols .ca > div { transform: scale(1.3); transform-origin: top center; margin-bottom: 120px; }
  .stagecols .phrases { text-align: start; min-height: 96px; font-size: 20px; }
  .stagecols .phr { font-size: 22px; line-height: 1.3; }
  .stagecols .cta { min-height: 0; margin-top: 28px; align-items: flex-start; }
  .stagecols .cta .btn { width: 100%; }

  /* Résultat */
  .desk .hero { margin-top: 0; gap: 26px; }
  .desk .bignum { width: 150px; height: 150px; font-size: 96px; }
  .desk .herotxt { font-size: 38px; }
  .desk.result .card, .desk.result .strong { margin-top: 18px; }
  .desk.result .cb .card:first-child { margin-top: 0; }
  .desk.result .p b { font-size: 16.5px; }

  /* Partage */
  .sharecols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; min-height: calc(100vh - 200px); margin-top: 0; }
  .sharecols .sharewrap { margin-top: 0; }

  /* Fenêtres : au centre plutôt qu'en bas */
  .sheet-wrap { align-items: center; }
  .sheet { max-width: 520px; border-radius: 30px; padding-bottom: 24px; }
  .sheet .grab { display: none; }
}
@media (min-width: 1024px) {
  .howstar { color: var(--gold-text); background: var(--gold-soft) !important; }
  .starposter { align-items: center; text-align: center; padding: 48px 36px 40px; }
  .stagecols .phrases { min-height: 120px; }
}
@media (min-width: 1024px) {
  /* Suggestions par-dessus la page : taper un nom ne fait rien bouger autour */
  .desk .sfield { position: relative; z-index: 5; }
  .desk .sfield [role="listbox"] { position: absolute; left: 0; right: 0; top: 100%; }

}
@media (min-width: 1024px) {
  /* Fin de l'animation : « Voir mon résultat » et « Rejouer » côte à côte, même hauteur */
  .stagecols .cta { flex-direction: row; align-items: stretch; }
  .stagecols .cta .btn { flex: 1.5 1 0; width: auto; }
  .stagecols .cta .btn2 { flex: 1 1 0 !important; min-height: 0; height: auto; }
}
/* Écrans d'ordinateur peu hauts (portable, zoom du navigateur) : l'accueil tient sans défiler */
@media (min-width: 1024px) and (max-height: 820px) {
  .desk.home .cols { min-height: 0; margin-top: 4px; }
  .hometitle h1 { font-size: 54px !important; }
  .desk .lead { font-size: 17px; margin-top: 14px; }
  .desk.home .label { margin-top: 16px; }
  .desk.home .field { height: 56px; }
  .howcard { padding: 18px 24px 16px; }
  .howpath .p { min-height: 40px; }
  .howpath .lk { min-height: 32px; }
  .howsteps { margin-top: 12px; padding-top: 12px; gap: 8px; }
  .footlinks { margin-top: 8px; }
}

/* ---------------- Liens pris en compte (films, équipes) ---------------- */
.links { margin-top: 18px; padding: 12px 16px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.links .cap { display: block; margin: 2px 0 4px; }
.swrow { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.swrow + .swrow { border-top: 1px solid var(--line); }
.swrow .who { flex: 1; min-width: 0; }
.swrow b { display: block; font-size: 15px; }
.swrow .who span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.swico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--tomato-soft); color: var(--tomato-text); }
.switch { position: relative; flex: none; width: 50px; height: 30px; padding: 0; border: 0; border-radius: 15px;
  background: var(--line-strong); transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: inset-inline-start .25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.switch[aria-checked="true"] { background: var(--mint); }
.switch[aria-checked="true"]::after { inset-inline-start: 24px; }
.switch::before { content: ""; position: absolute; inset: -8px; }         /* zone tactile */
.links .note2 { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.skipchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.skipchips span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px;
  background: var(--gold-soft); color: var(--gold-text); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }
/* Petits boutons ronds dans les éléments arrondis : survol rond lui aussi */
.pchip .iconbtn, .field .iconbtn, .sheet .iconbtn { border-radius: 50%; }
@media (min-width: 1024px) {
  /* « Aucun chemin trouvé » : une colonne centrée, les boutons en dessous */
  .nofound .stagecols { grid-template-columns: minmax(0, 640px); justify-content: center; align-content: center; gap: 0; }
  .nofound .stagecols .ca > div { transform: none; margin: 0; }
  .nofound .stagecols .cta { flex-direction: row; margin-top: 18px; }
  .nofound .stagecols .cta > * { flex: 1 1 0 !important; white-space: nowrap; }
  .nofound .stagecols .cta .btn { flex-grow: 1.4 !important; }
  .nofound .phrases { display: none; }
}

/* ---------------- Plus court / plus solide ---------------- */
.pathcmp { margin-top: 14px; display: grid; gap: 8px; }
.pathcmp button { --gap: var(--surface); display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 10px 14px;
  border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); text-align: start; transition: border-color .2s; }
.pathcmp button[aria-checked="true"] { border-color: var(--gold); background: linear-gradient(0deg, var(--gold-soft), var(--gold-soft)), var(--surface); }
.pathcmp .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.pathcmp [aria-checked="true"] .dot { border: 5px solid var(--gold); }
.pathcmp .lbl { flex: 1; min-width: 0; }
.pathcmp .lbl b { display: block; font-size: 14.5px; }
.pathcmp .faces { display: flex; margin-top: 6px; }
.pathcmp .faces .ph { box-shadow: 0 0 0 2px var(--surface); }
.pathcmp .faces .ph + .ph { margin-inline-start: -6px; }
.pathcmp .nums { display: flex; align-items: center; gap: 8px; flex: none; }
.pathcmp .nums b { font-size: 26px; line-height: 1; }
.pathcmp .nums .tier { height: 26px; min-width: 38px; justify-content: center; }

/* « Tu ne connais personne de connu ? » : bascule vers le mode Deux stars */
.duolink { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; min-height: 44px;
  padding: 8px 12px; border: 0; border-radius: 14px; background: var(--gold-soft); color: var(--gold-text);
  font-weight: 700; font-size: 14px; line-height: 1.3; text-align: center; }
.duolink:hover { filter: brightness(1.1); }

/* « Voir mon résultat » se remplit pendant le compte à rebours du passage automatique */
.btn.autonext { position: relative; overflow: hidden; isolation: isolate; }
.btn.autonext .fill { position: absolute; inset: 0; z-index: -1; transform-origin: left; transform: scaleX(0);
  background: rgba(255, 255, 255, .22); animation: autofill var(--auto, 6s) linear forwards; }
[dir="rtl"] .btn.autonext .fill { transform-origin: right; }
@keyframes autofill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .btn.autonext .fill { animation: none; } }
