/* ============================================================
   Identité : la signalétique d'aéroport.
   Encre marine pour la structure, jaune de signalisation pour l'action,
   chiffres en « tableau des départs » pour le gain. Une seule famille : Schibsted Grotesk.
   ============================================================ */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #0b2545;
  --ink-2: #13315c;
  --ink-soft: #41516a;
  --muted: #5d6b80;
  --line: #dfe4ec;
  --line-2: #c9d1dd;
  --paper: #f3f5f8;
  --surface: #ffffff;
  --signal: #ffc21a;
  --signal-deep: #e9a900;
  --up: #0a7d55;
  --up-bg: #e3f4ec;
  --down: #b4372f;
  --down-bg: #fbe9e7;
  --warn: #8a5a00;
  --warn-bg: #fff4d6;
  --focus: #2f6fde;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 6px 18px rgba(11, 37, 69, .07);
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ink-2); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.num, .tab-val, .flap, .stat b, .ring text, .money td, .money b { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- Boutons ---------- */
.btn-signal, .btn-ink, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-m);
  font-weight: 700; text-decoration: none; border: 0; line-height: 1.2; text-align: center;
  transition: background-color .15s, transform .1s;
}
.btn-signal { background: var(--signal); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-signal:hover { background: #ffcd45; }
.btn-signal:active, .btn-ink:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-big { min-height: 56px; font-size: 1.08rem; width: 100%; }
.btn-signal[disabled], .btn-ink[disabled] { opacity: .65; cursor: progress; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; color: var(--ink); }
.icon-btn:hover { background: var(--paper); }
.icon-btn svg { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; font-weight: 600; }

/* ---------- Bandeau du mode démonstration ---------- */
.demo-bar { background: var(--warn-bg); color: var(--warn); font-size: .85rem; padding: 7px 18px; text-align: center; border-bottom: 1px solid #f0dc9d; }

/* ---------- En-tête ---------- */
.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.mark { width: 30px; height: 30px; }
.top-nav { display: none; gap: 22px; margin-left: 18px; }
.top-nav a { color: #c9d6ea; text-decoration: none; font-size: .95rem; }
.top-nav a:hover { color: #fff; }
@media (min-width: 860px) { .top-nav { display: flex; } }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn-install { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--signal); background: transparent; color: var(--signal); font-weight: 700; font-size: .9rem; }
.btn-install svg { width: 18px; height: 18px; }
.btn-install:hover { background: var(--signal); color: var(--ink); }
.langs { display: inline-flex; gap: 2px; font-size: .82rem; font-weight: 700; }
.langs a, .langs b { padding: 4px 7px; border-radius: 5px; text-decoration: none; }
.top .langs a { color: #c9d6ea; }
.top .langs b { background: rgba(255,255,255,.12); color: #fff; }
.in-results .top-nav { display: none; }

/* ---------- Accueil : bandeau et formulaire ---------- */
.hero { background: var(--ink); color: #fff; padding: 26px 0 0; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: var(--paper); }
.hero-in { position: relative; z-index: 1; display: grid; gap: 24px; }
.hero h1 { font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.5rem); font-weight: 800; letter-spacing: -0.025em; max-width: 15ch; text-wrap: balance; hyphens: manual; }
.lede { margin-top: 12px; color: #c9d6ea; font-size: 1rem; max-width: 52ch; }
@media (min-width: 720px) { .lede { font-size: 1.1rem; } }
@media (min-width: 980px) {
  .hero { padding-top: 56px; }
  .hero::after { height: 96px; }
  .hero-in { grid-template-columns: 1fr 470px; align-items: start; gap: 48px; }
  .hero-copy { padding-top: 18px; padding-bottom: 120px; }
}

.search-panel {
  background: var(--surface); color: var(--ink); border-radius: var(--r-l); padding: 18px;
  box-shadow: 0 14px 40px rgba(11,37,69,.22); display: grid; gap: 14px; margin-bottom: 8px;
}
@media (min-width: 720px) { .search-panel { padding: 24px; } }
.drop {
  display: flex; align-items: center; gap: 14px; padding: 18px 16px; cursor: pointer;
  border: 2px dashed var(--line-2); border-radius: var(--r-m); background: #f8fafc; transition: border-color .15s, background-color .15s;
}
.drop:hover, .drop.over { border-color: var(--ink); background: #eef3fa; }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop svg { width: 44px; height: 44px; flex: none; color: var(--ink); }
.drop-text { display: grid; gap: 2px; }
.drop-text b { font-size: 1rem; }
.drop-text small { color: var(--muted); font-size: .85rem; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.files:empty { display: none; }
.files li { position: relative; width: 62px; height: 78px; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.files img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.files .pdf-name { display: grid; place-items: center; height: 100%; font-size: .62rem; font-weight: 700; text-align: center; padding: 4px; word-break: break-all; }
.files button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(11,37,69,.85); color: #fff; font-size: 14px; line-height: 1; }
.fields { display: grid; gap: 12px; }
@media (min-width: 520px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 5px; align-content: start; }
.field-label { font-size: .85rem; font-weight: 700; }
.field-hint { font-size: .78rem; color: var(--muted); }
.field select, .money-input {
  height: 46px; border: 1.5px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); width: 100%;
}
.field select { padding: 0 10px; }
.money-input { display: flex; align-items: center; overflow: hidden; }
.money-input:focus-within { border-color: var(--ink); outline: 3px solid rgba(47,111,222,.25); }
.money-input input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0 10px; outline: 0; background: transparent; }
.money-input span { padding: 0 10px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.4; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.form-error { background: var(--down-bg); color: var(--down); padding: 10px 12px; border-radius: var(--r-s); font-size: .9rem; font-weight: 600; }
.fine { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .82rem; color: var(--muted); text-align: center; }
.fine svg { width: 14px; height: 14px; flex: none; }

/* ---------- Accueil : tableau des départs ---------- */
.pulse { padding-top: 26px; }
@media (min-width: 980px) { .pulse { padding-top: 30px; } }
.pulse-board { background: var(--ink); color: #fff; border-radius: var(--r-l); overflow: hidden; box-shadow: 0 10px 30px rgba(11,37,69,.18); }
.pulse-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 14px 18px; }
.pulse-head h2 { font-size: 1.02rem; font-weight: 750; letter-spacing: 0; }
.pulse-at { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: #c9d6ea; }
.pulse-at i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(255,194,26,.2); }
.pulse-at.demo { color: #fff; background: rgba(255,255,255,.12); padding: 3px 9px; border-radius: 99px; }
.pulse-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255,255,255,.12); border-top: 1px solid rgba(255,255,255,.12); }
.pulse-cell {
  background: var(--ink); padding: 14px 18px; min-width: 0;
  display: grid; grid-template-columns: 30px auto 1fr; grid-template-areas: "ico fig lbl"; align-items: center; gap: 0 12px;
}
.pulse-ico { grid-area: ico; width: 30px; height: 30px; fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pulse-fig { grid-area: fig; }
.pulse-lbl { grid-area: lbl; color: #c9d6ea; font-size: .88rem; line-height: 1.35; }
.pulse-cell.lead { grid-template-columns: 30px 1fr; grid-template-areas: "ico ." "fig fig" "lbl lbl"; gap: 10px 12px; padding-top: 18px; padding-bottom: 18px; }
.pulse-cell.lead .pulse-lbl { color: #fff; font-size: 1rem; }

.pulse .flap { font-size: 1.4rem; gap: 3px; align-items: stretch; }
.pulse .flap > span {
  min-width: .8em; padding: 7px 4px; border-radius: 4px; color: var(--signal);
  background: linear-gradient(#173f70 0 50%, #12365f 50%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 0 rgba(0,0,0,.4);
}
.pulse .flap.none > span { color: #8fa3bf; }
.pulse .lead .flap { font-size: clamp(2rem, 1.35rem + 2.6vw, 2.9rem); gap: 4px; }
.flap-sep { display: inline-flex; align-items: flex-end; justify-content: center; width: .26em; font-style: normal; color: #c9d6ea; font-size: .7em; padding-bottom: .1em; }
.pulse .flap > span.spin { animation: flap-spin .06s linear; }
@keyframes flap-spin { from { transform: rotateX(75deg); filter: brightness(.7); } to { transform: rotateX(0); } }
.pulse-note { margin-top: 10px; font-size: .78rem; line-height: 1.45; color: var(--muted); max-width: 90ch; }

@media (min-width: 560px) {
  .pulse-grid { grid-template-columns: repeat(3, 1fr); }
  .pulse-cell { grid-template-columns: 1fr; grid-template-areas: "ico" "fig" "lbl"; align-content: start; gap: 10px; padding: 18px 20px 20px; }
  .pulse-cell.lead { grid-column: 1 / -1; grid-template-columns: 30px auto 1fr; grid-template-areas: "ico fig lbl"; gap: 0 18px; }
  .pulse-cell.lead .pulse-lbl { max-width: 24ch; }
  .pulse .flap { font-size: 1.75rem; }
}
@media (min-width: 980px) {
  .pulse-head { padding: 16px 24px; }
  .pulse-grid.n4 { grid-template-columns: 1.75fr repeat(3, 1fr); }
  .pulse-cell { padding: 22px 24px 24px; }
  .pulse-cell.lead { grid-column: auto; grid-template-columns: 1fr; grid-template-areas: "ico" "fig" "lbl"; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .pulse .flap > span.spin { animation: none; } }

/* ---------- Accueil : blocs ---------- */
.block { padding: 44px 18px 8px; }
@media (min-width: 720px) { .block { padding: 64px 28px 8px; } }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.block > h2 { margin-bottom: 20px; }
.narrow { max-width: 60ch; margin-bottom: 20px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .how { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); } }
.how li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .how li { grid-template-columns: 1fr; padding: 22px 22px 22px 0; border-bottom: 0; } }
.how .num { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--signal); display: grid; place-items: center; font-weight: 800; }
@media (min-width: 820px) { .how .num { grid-row: auto; margin-bottom: 8px; } }
.how p { color: var(--ink-soft); }
.feat { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
@media (min-width: 640px) { .feat { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .feat { grid-template-columns: repeat(3, 1fr); } }
.feat > div { background: var(--surface); padding: 18px 20px; }
.feat dt { font-weight: 750; margin-bottom: 4px; }
.feat dd { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.table-scroll { overflow-x: auto; }
.compare { width: 100%; max-width: 760px; border-collapse: collapse; background: var(--surface); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th[scope="row"] { text-align: left; font-weight: 500; }
.compare thead th { font-size: .9rem; }
.compare .paid-col { background: #fffaea; }
.compare thead .paid-col { background: var(--signal); }
.compare td.yes::before { content: ""; display: inline-block; width: 18px; height: 10px; border-left: 3px solid var(--up); border-bottom: 3px solid var(--up); transform: rotate(-45deg) translate(2px, -2px); }
.compare td.no::before { content: ""; display: inline-block; width: 14px; height: 3px; background: var(--line-2); vertical-align: middle; }
.compare tfoot th, .compare tfoot td { border-bottom: 0; font-size: 1.05rem; }
.faq { max-width: 780px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); }

/* ---------- Pied de page ---------- */
.foot { margin-top: 72px; background: var(--ink); color: #c9d6ea; font-size: .85rem; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 10px; }
.foot a { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 8px; }
.foot .langs a { color: #c9d6ea; }
.foot .langs b { color: #fff; background: rgba(255,255,255,.12); }

/* ---------- Recherche en cours : tableau des départs ---------- */
.loading { min-height: 70vh; display: grid; place-items: center; padding: 48px 0; }
.loading-in { text-align: center; display: grid; gap: 14px; justify-items: center; max-width: 560px; }
.board { display: grid; grid-template-columns: repeat(auto-fill, 34px); gap: 6px; justify-content: center; width: 100%; max-width: 440px; margin-bottom: 10px; }
.board img { width: 34px; height: 25px; border-radius: 3px; object-fit: cover; opacity: .18; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.board img.lit { opacity: 1; filter: none; }
.loading-step { color: var(--ink-soft); min-height: 1.5em; }
.progress { width: 100%; max-width: 360px; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width .6s ease; }

/* ---------- Résultats : profil ---------- */
.res-top { background: var(--ink); color: #fff; padding: 16px 0 18px; }
.passport { display: grid; gap: 14px; }
@media (min-width: 900px) { .passport { grid-template-columns: 1fr auto; align-items: center; gap: 32px; } }
.pp-id { display: grid; gap: 6px; }
.pp-hello { color: var(--signal); font-weight: 700; font-size: .95rem; }
.pp-head { font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem); text-wrap: balance; font-weight: 800; letter-spacing: -0.015em; }
.pp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pp-badges span { font-size: .8rem; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.1); color: #dde6f3; }
.pp-skills { display: none; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
@media (min-width: 720px) { .pp-skills { display: flex; } }
.pp-skills span { font-size: .76rem; padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,.22); color: #c9d6ea; }
.pp-gauges { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.gauge { display: grid; justify-items: center; gap: 2px; }
.gauge svg { width: 108px; height: 62px; }
@media (min-width: 720px) { .gauge svg { width: 132px; height: 76px; } }
.gauge-label { font-size: .78rem; color: #c9d6ea; display: flex; gap: 4px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) and (max-width: 899px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(2, 132px); } }
.stat { background: rgba(255,255,255,.07); border-radius: var(--r-m); padding: 7px 10px; }
.stat b { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.1; }
.stat b.up { color: #6fe0b0; }
.stat span { font-size: .72rem; color: #c9d6ea; line-height: 1.2; display: block; }
@media (min-width: 720px) { .stat { padding: 10px 12px; } .stat b { font-size: 1.35rem; } }
.tracker { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: .82rem; color: #c9d6ea; flex-wrap: wrap; }
.tracker-bar { flex: 1; min-width: 120px; max-width: 220px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.tracker-bar span { display: block; height: 100%; background: var(--signal); }

/* ---------- Ce que nous avons compris du CV ---------- */
.res-top { padding: 20px 0 26px; }
@media (min-width: 900px) { .res-top { min-height: 50vh; padding: 30px 0 34px; display: flex; align-items: center; } .res-top > .wrap { width: 100%; } }
.res-top .pp-head { font-size: clamp(1.5rem, 1.05rem + 2.2vw, 2.55rem); }
.understood { margin-top: 22px; display: grid; gap: 10px; }
.und-h { font-size: 1.02rem; font-weight: 650; color: #c9d6ea; letter-spacing: 0; }
.und-grid { display: grid; gap: 10px; }
@media (min-width: 760px) { .und-grid { grid-template-columns: 1.15fr 1fr 1.25fr; } }
.und-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: var(--r-l); padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.und-card h3 { display: flex; align-items: center; gap: 8px; font-size: .98rem; color: #fff; }
.und-card h3 svg { width: 18px; height: 18px; color: var(--signal); flex: none; }
.und-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.und-list li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: .92rem; color: #e7eef8; line-height: 1.35; }
.und-list svg { width: 18px; height: 18px; color: #6fe0b0; margin-top: 1px; }
.und-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.und-skills span { font-size: .74rem; padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,.22); color: #c9d6ea; }
.lang-meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lang-meters li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name lvl" "bar bar"; gap: 4px 8px; align-items: center; }
.lm-name { grid-area: name; font-size: .92rem; color: #fff; font-weight: 600; text-transform: capitalize; }
.lm-lvl { grid-area: lvl; font-size: .78rem; color: #c9d6ea; }
.lm-bar { grid-area: bar; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.lm-bar i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); }
.lm-bar i.on { background: var(--signal); }
.style-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.style-rows li { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.sr-name { font-size: .86rem; color: #fff; font-weight: 600; }
.sr-lo, .sr-hi { font-size: .7rem; color: #9fb2cc; line-height: 1.1; }
.sr-lo { text-align: right; }
.sr-dots { display: flex; gap: 5px; align-items: center; }
.sr-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); }
.sr-dots i.on { width: 14px; height: 14px; margin: -2px; background: var(--signal); border-color: var(--signal); }
.und-src { font-size: .76rem; color: #9fb2cc; }
.und-signals { margin: -6px 0 0; padding-left: 16px; font-size: .76rem; color: #c9d6ea; display: grid; gap: 1px; }

/* ---------- Carte des pays ---------- */
.world { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .world { padding: 22px; } }
.wm-head { display: grid; gap: 12px; }
@media (min-width: 1000px) { .wm-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.wm-head p { margin-top: 4px; font-size: .92rem; max-width: 60ch; }
.wm-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; background: var(--paper); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 0 12px; min-height: 36px; border-radius: 8px; font-size: .86rem; font-weight: 650; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.wm-body { display: grid; gap: 16px; margin-top: 16px; }
.wm-body > * { min-width: 0; }
@media (min-width: 900px) { .wm-body { grid-template-columns: minmax(0, 1.3fr) minmax(330px, 1fr); align-items: start; } }
.wm-scroll { border-radius: var(--r-m); background: #f4f7fb; overflow: hidden; }
.wm-scroll.is-world { overflow-x: auto; overscroll-behavior-x: contain; }
.is-world .wm-map { min-width: 600px; }
.wm-map { position: relative; width: 100%; aspect-ratio: 1000 / 1058; }
.wm-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.land { fill: #e9ecf1; stroke: #fff; stroke-width: .8; vector-effect: non-scaling-stroke; }
.cty { stroke: #fff; stroke-width: .8; vector-effect: non-scaling-stroke; }
.cty.live { cursor: pointer; }
.cty.live:hover { filter: brightness(.93); }
.cty.home { stroke: var(--ink); stroke-width: 1.4; }
.wm-lead { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .5; }
.wm-dot { fill: var(--ink); }
.pin { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 26px; min-width: 46px; padding: 0 8px 0 5px; border-radius: 13px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 1px 3px rgba(11,37,69,.22); font-size: .78rem; font-weight: 800; color: var(--ink); white-space: nowrap; line-height: 1; font-variant-numeric: tabular-nums; }
.pin img { flex: none; max-width: none; width: 18px; height: 13px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
button.pin::after { content: ""; position: absolute; inset: -5px -2px; }
button.pin:hover { border-color: var(--ink); z-index: 3; }
.pin.is-sel { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px var(--signal); z-index: 2; }
.pin-eu { padding: 0 10px; font-weight: 700; }
.pin-eu b { font-weight: 800; }
.pin-home { background: var(--signal); border-color: var(--signal-deep); gap: 3px; padding: 0 8px 0 6px; font-weight: 700; }
.pin-home svg { width: 14px; height: 14px; flex: none; max-width: none; }
.wm-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 10px; font-size: .8rem; color: var(--ink-soft); }
.wm-lt { font-weight: 650; color: var(--ink); }
.wm-keys { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.wm-key { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.wm-key i { width: 16px; height: 10px; border-radius: 2px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.wm-key i.hatch { background: repeating-linear-gradient(45deg, #eceae5 0 3px, #b9b6ae 3px 5px); }
.wm-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.wm-wait { padding: 48px 16px; text-align: center; }

.wm-panel { border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; display: grid; gap: 14px; background: var(--surface); scroll-margin-top: 80px; }
@media (min-width: 900px) { .wm-panel { position: sticky; top: 76px; } }
.cp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.cp-head > img { width: 46px; height: 33px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.cp-id h3 { font-size: 1.3rem; font-weight: 800; }
.cp-id p { color: var(--ink-soft); font-size: .88rem; }
.cp-id .badges { margin-top: 4px; }
.cp-fit { display: grid; justify-items: center; gap: 2px; font-size: .72rem; color: var(--muted); font-weight: 600; }
.cp-fit .ring { width: 54px; height: 54px; }
.cp-sec { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 9px; }
.cp-sec h4 { font-size: .98rem; font-weight: 750; margin: 0; }
.cp-sec h5 { font-size: .88rem; font-weight: 700; margin: 4px 0 0; }
.cult { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cult li { display: grid; grid-template-columns: 94px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; }
.cr-name { font-size: .86rem; font-weight: 600; grid-row: 1 / 3; }
.cr-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.cr-track i { position: relative; height: 10px; border-radius: 3px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.cr-track i.on { background: var(--ink); box-shadow: none; }
.cr-track b { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--signal); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--signal-deep); }
.cr-ends { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); line-height: 1.2; }
.cult-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .76rem; color: var(--ink-soft); }
.cult-key span { display: inline-flex; align-items: center; gap: 6px; }
.k-c { width: 16px; height: 8px; border-radius: 2px; background: var(--ink); display: inline-block; }
.k-u { width: 11px; height: 11px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 1px var(--signal-deep); display: inline-block; }
.cp-note { font-size: .88rem; color: var(--ink-soft); background: var(--paper); border-radius: var(--r-m); padding: 8px 10px; }
.cp-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 16px; align-items: start; }
.cp-two > div { display: grid; gap: 6px; align-content: start; }
.cp-life { display: flex; align-items: baseline; gap: 2px; }
.cp-life b { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.cp-life span { color: var(--muted); font-weight: 650; }
.fb-track { display: block; height: 8px; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.fb-track i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.cp-two small { font-size: .72rem; color: var(--muted); line-height: 1.3; }
.cp-short { margin: 0; padding: 0; list-style: none; counter-reset: s; font-size: .86rem; display: grid; gap: 4px; }
.cp-short li { counter-increment: s; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; line-height: 1.3; }
.cp-short li::before { content: counter(s); width: 18px; height: 18px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .7rem; font-weight: 750; display: grid; place-items: center; }
.fitbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.fitbars li { display: grid; grid-template-columns: 94px minmax(0, 1fr) 30px; gap: 10px; align-items: center; font-size: .86rem; }
.fitbars b { text-align: right; font-variant-numeric: tabular-nums; }
.fitbars .fb-track i { background: #256abf; }
.cp-gain { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--paper); border-radius: var(--r-m); padding: 8px 12px; font-size: .86rem; }
.cp-gain b { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-gain b.up { color: var(--up); }
.cp-gain b.down { color: var(--down); }
.cp-grow { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 7px; }
.cp-grow li { counter-increment: g; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; font-size: .9rem; align-items: start; line-height: 1.35; }
.cp-grow li::before { content: counter(g); width: 22px; height: 22px; border-radius: 50%; background: var(--signal); color: var(--ink); font-weight: 800; font-size: .75rem; display: grid; place-items: center; }
.cp-see { width: 100%; }
@media (max-width: 380px) { .cp-two { grid-template-columns: 1fr; row-gap: 12px; } .cult li, .fitbars li { grid-template-columns: 84px minmax(0, 1fr); } .fitbars li { grid-template-columns: 84px minmax(0, 1fr) 28px; } }

/* ---------- Résultats : pays ---------- */
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 16px 2px 6px; scrollbar-width: thin; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 8px;
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 99px; font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.chip img { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; }
.chip .count { color: var(--muted); font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] .count { color: #c9d6ea; }
.chip:hover { border-color: var(--ink); }

/* ---------- Résultats : podium ---------- */
.podium-wrap { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .podium-wrap { padding: 20px 22px; } }
.podium-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.podium-head h2 { font-size: 1.25rem; }
.podium { display: grid; gap: 10px; }
@media (min-width: 760px) { .podium { grid-template-columns: repeat(3, 1fr); } }
.pod {
  position: relative; display: grid; gap: 10px; padding: 14px; border-radius: var(--r-m); border: 1.5px solid var(--line);
  background: var(--paper); text-align: left; width: 100%;
}
button.pod:hover { border-color: var(--ink); }
.pod-top { display: flex; align-items: center; gap: 10px; }
.pod-top .badge { margin-left: auto; }
@media (max-width: 759px) { .pod .ghost-line { display: none; } .pod { gap: 8px; padding: 12px; } }
.rank { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; background: var(--ink); color: var(--signal); flex: none; }
.pod-lock { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.pod-lock svg { width: 14px; height: 14px; }
.ghost-line { height: 10px; border-radius: 4px; background: linear-gradient(90deg, #dbe1ea, #e8ecf2); }
.ghost-line.w60 { width: 60%; }
.ghost-line.w40 { width: 40%; }
.pod-figs { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pod-title { font-weight: 700; line-height: 1.25; }
.pod-sub { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pod-sub img { width: 20px; height: 15px; border-radius: 2px; }
.podium-cta { margin-top: 14px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.podium-cta .btn-signal { width: 100%; max-width: 420px; }

/* Chiffres « tableau des départs » */
.flap { display: inline-flex; gap: 2px; font-weight: 800; font-size: 1.25rem; line-height: 1; }
.flap > span {
  position: relative; display: inline-block; min-width: .78em; padding: 6px 3px; text-align: center;
  background: var(--ink); color: var(--signal); border-radius: 3px;
}
.flap > span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.55); }
.flap.neg > span { color: #ff9c8f; }
.flap.none > span { color: #c9d6ea; }
.flap-cap { font-size: .72rem; color: var(--muted); text-align: right; }
.reveal .flap > span { animation: flip .5s cubic-bezier(.3,.7,.4,1) both; transform-origin: 50% 50%; }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: .2; } 60% { transform: rotateX(-12deg); opacity: 1; } 100% { transform: rotateX(0); } }
@media (prefers-reduced-motion: reduce) { .reveal .flap > span { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Résultats : barre de tri ---------- */
.toolbar { margin-top: 18px; display: grid; gap: 10px; }
.tabs { display: flex; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; min-width: 112px; border: 0; background: transparent; padding: 10px 14px; text-align: left; display: grid; gap: 1px;
  border-right: 1px solid var(--line); position: relative;
}
.tab:last-child { border-right: 0; }
.tab-name { font-size: .82rem; font-weight: 700; }
.tab-val { font-size: .95rem; color: var(--muted); font-weight: 600; }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tab[aria-pressed="true"] .tab-val { color: var(--signal); }
.tool-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.count-line { font-weight: 700; }
.btn-filter { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: .9rem; }
.btn-filter svg { width: 18px; height: 18px; }
.btn-filter .dot { min-width: 20px; height: 20px; border-radius: 99px; background: var(--ink); color: var(--signal); font-size: .75rem; display: grid; place-items: center; padding: 0 5px; }
@media (min-width: 980px) { .btn-filter { display: none; } }

/* ---------- Résultats : grille et filtres ---------- */
.res-grid { display: grid; gap: 18px; margin-top: 12px; }
@media (min-width: 980px) { .res-grid { grid-template-columns: 272px 1fr; align-items: start; } }
.filters { display: none; }
@media (min-width: 980px) {
  .filters { display: block; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 6px 16px 16px; }
  .f-close, .f-foot { display: none !important; }
}
@media (max-width: 979px) {
  .filters.open { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 60; background: var(--surface); }
  .filters.open .f-scroll { flex: 1; overflow: auto; padding: 0 18px 20px; }
  body.lock { overflow: hidden; }
}
.f-headbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 6px 4px 18px; }
@media (min-width: 980px) { .f-headbar { padding: 10px 0 0; } }
.f-headbar h2 { font-size: 1.1rem; }
.f-group { border-top: 1px solid var(--line); padding: 14px 0; margin: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.f-group:first-child { border-top: 0; }
.f-group legend { float: left; width: 100%; }
.f-group legend + * { clear: both; }
.filters:focus { outline: none; }
.f-group legend, .f-label { font-weight: 700; font-size: .88rem; padding: 0; margin-bottom: 8px; display: block; }
.f-search { width: 100%; height: 42px; border: 1.5px solid var(--line-2); border-radius: var(--r-s); padding: 0 10px; }
.f-search:focus { border-color: var(--ink); outline: 3px solid rgba(47,111,222,.25); }
.f-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: .85rem; font-weight: 600; }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.f-check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .9rem; cursor: pointer; }
.f-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.f-check img { width: 20px; height: 15px; border-radius: 2px; }
.f-check .count { margin-left: auto; color: var(--muted); font-size: .8rem; }
.f-range { width: 100%; accent-color: var(--ink); }
.f-range-val { float: right; font-weight: 700; color: var(--ink-2); font-size: .88rem; }
.f-select { width: 100%; height: 40px; border: 1.5px solid var(--line-2); border-radius: var(--r-s); padding: 0 8px; background: var(--surface); }
.f-foot { display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.f-foot .btn-signal { flex: 1; }
.f-reset { margin-top: 6px; }

/* ---------- Cartes d'offre ---------- */
.list { display: grid; gap: 10px; }
.card {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px; box-shadow: var(--shadow); cursor: pointer; text-align: left;
  transition: border-color .15s;
}
.card:hover { border-color: var(--line-2); }
.card:focus-within { border-color: var(--ink); }
@media (min-width: 720px) { .card { grid-template-columns: 1fr 200px; padding: 16px 18px; gap: 18px; } }
.c-main { display: grid; gap: 6px; min-width: 0; }
.c-where { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.c-where img { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.c-rank { font-size: .78rem; font-weight: 800; color: var(--ink); background: var(--paper); border-radius: 5px; padding: 1px 6px; }
.c-title { font-size: 1.06rem; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.c-title button { all: unset; cursor: pointer; }
.c-title button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.c-title button::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-l); }
.c-company { font-size: .92rem; color: var(--ink-soft); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 650; padding: 3px 8px; border-radius: 5px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft); }
.badge.ok, .badge.warn, .badge.bad { box-shadow: none; }
.badge svg { width: 12px; height: 12px; }
.badge.ok { background: var(--up-bg); color: var(--up); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--down-bg); color: var(--down); }
.c-side { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line-2); padding-top: 12px; }
.c-figs { display: flex; align-items: center; gap: 12px; min-width: 0; }
.c-gain { display: grid; }
@media (min-width: 720px) {
  .c-side { display: grid; justify-items: end; align-content: space-between; text-align: right; border-top: 0; padding-top: 0; border-left: 1px dashed var(--line-2); padding-left: 18px; }
  .c-figs { flex-direction: row-reverse; }
  .c-gain { justify-items: end; }
}
.gain { font-weight: 800; font-size: 1.35rem; line-height: 1; letter-spacing: -0.01em; }
.gain.up { color: var(--up); }
.gain.down { color: var(--down); }
.gain.none { color: var(--muted); font-size: .95rem; font-weight: 650; }
.gain-cap { font-size: .72rem; color: var(--muted); display: block; margin-top: 3px; }
.c-equiv { font-size: .78rem; color: var(--ink-soft); max-width: 24ch; margin-top: 4px; line-height: 1.3; }
.c-actions { display: flex; align-items: center; gap: 6px; position: relative; z-index: 2; }
.star { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.star svg { width: 18px; height: 18px; }
.star[aria-pressed="true"] { color: var(--signal-deep); border-color: var(--signal); background: #fff8e0; }
.star[aria-pressed="true"] path { fill: currentColor; }
.c-view { display: none; }
@media (min-width: 720px) { .c-view { display: inline-flex; min-height: 38px; padding: 0 16px; } }
.card.is-applied { border-left: 4px solid var(--up); }
.ring { width: 52px; height: 52px; flex: none; }
.ring text { font-weight: 800; font-size: 13px; fill: var(--ink); }
.ring-cap { font-size: .7rem; color: var(--muted); text-align: center; }
.sample .card { cursor: pointer; }

/* Fin de liste verrouillée */
.rest { margin-top: 10px; position: relative; border-radius: var(--r-l); overflow: hidden; }
.rest-ghosts { display: grid; gap: 10px; filter: blur(3px); opacity: .55; pointer-events: none; }
.rest-ghosts .card { min-height: 104px; }
.rest-over { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(243,245,248,.2), rgba(243,245,248,.94) 45%); padding: 16px; }
.rest-box { text-align: center; display: grid; gap: 8px; justify-items: center; max-width: 440px; }
.rest-box h3 { font-size: 1.2rem; }
.rest-box .btn-signal { width: 100%; }
.r-note { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-l); padding: 28px 18px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.r-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.r-foot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.r-foot-actions .btn-ghost { min-height: 40px; font-size: .9rem; }
.notice { background: var(--warn-bg); color: var(--warn); padding: 10px 18px; text-align: center; font-size: .9rem; font-weight: 600; }
.notice.ok { background: var(--up-bg); color: var(--up); }
.notice.bad { background: var(--down-bg); color: var(--down); }
.unlocked { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: #6fe0b0; font-weight: 700; }
.unlocked svg { width: 14px; height: 14px; }

/* ---------- Fiche détaillée ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(8, 22, 43, .55); }
.sheet { margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: var(--paper); }
@media (min-width: 760px) { .sheet { margin: 0 0 0 auto; width: 600px; box-shadow: -10px 0 40px rgba(0,0,0,.2); } }
.sheet[open] { animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) { @keyframes slide { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } } }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }
.sheet-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: calc(6px + env(safe-area-inset-top)) 8px 6px; background: var(--paper); }
.sheet-body { padding: 0 18px calc(30px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.d-head { display: grid; gap: 8px; }
.d-head h2 { font-size: 1.45rem; overflow-wrap: anywhere; }
.d-meta { color: var(--ink-soft); font-size: .92rem; }
.d-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.d-cta .btn-signal { flex: 1 1 200px; }
.d-cta .btn-ghost { min-height: 46px; }
.d-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; display: grid; gap: 12px; }
.d-sec h3 { display: flex; align-items: center; gap: 8px; }
.d-sec h3 svg { width: 18px; height: 18px; flex: none; }
.d-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-fig { background: var(--paper); border-radius: var(--r-m); padding: 10px; text-align: center; }
.d-fig b { display: block; font-size: 1.2rem; font-weight: 800; }
.d-fig span { font-size: .72rem; color: var(--muted); }
.money { width: 100%; border-collapse: collapse; font-size: .9rem; }
.money th, .money td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.money th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink-soft); }
.money thead th { font-size: .78rem; color: var(--muted); font-weight: 700; }
.money tr.total th, .money tr.total td { font-weight: 800; color: var(--ink); border-bottom: 0; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 82px 1fr auto; gap: 10px; align-items: center; font-size: .85rem; }
.bar { height: 12px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: var(--line-2); }
.bar.there span { background: var(--ink); }
.notes { margin: 0; padding-left: 18px; font-size: .8rem; color: var(--muted); display: grid; gap: 3px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: .93rem; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.official { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.d-sec h4 { font-size: .8rem; color: var(--muted); margin: 4px 0 -4px; font-weight: 700; }
.up-text { color: var(--up); }
.kit-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.kit-list li { border-left: 3px solid var(--signal); padding-left: 12px; }
.kit-list b { display: block; }
.kit-list span { font-size: .9rem; color: var(--ink-soft); }
.pitch { background: var(--paper); border-radius: var(--r-m); padding: 12px; font-size: .93rem; display: grid; gap: 8px; }
.pitch .link-btn { justify-self: start; font-size: .85rem; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; }
.kw span { font-size: .8rem; background: var(--paper); padding: 3px 9px; border-radius: 99px; font-weight: 600; }
.locked-box { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fffaea; border: 1px solid #f3e1a6; border-radius: var(--r-m); padding: 12px; font-size: .9rem; }
.snippet { font-size: .9rem; color: var(--ink-soft); }
.src { font-size: .78rem; color: var(--muted); }
.skeleton { height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--paper), #e6ebf2, var(--paper)); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Fenêtres de paiement et autres ---------- */
.modal { width: min(92vw, 470px); border-radius: var(--r-l); padding: 22px; background: var(--surface); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal h2 { font-size: 1.35rem; margin-bottom: 12px; }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.97); opacity: .5; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pay-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 0 16px; padding: 14px 16px; background: var(--paper); border-radius: var(--r-m); }
.pay-price b { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.pay-price span { font-size: .85rem; color: var(--muted); }
.pay-items { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; }
.pay-items li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .95rem; }
.pay-items svg { width: 20px; height: 20px; color: var(--up); }
.trust { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 12px; }
.trust li { display: flex; align-items: center; gap: 9px; font-size: .86rem; color: var(--ink-soft); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.trust svg { width: 18px; height: 18px; flex: none; color: var(--ink); }
.pay .btn-signal { width: 100%; min-height: 54px; font-size: 1.05rem; }
.pay-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 8px; }
.pay-later { display: block; margin: 10px auto 0; }
.pay-intro { font-size: .92rem; font-weight: 650; margin: 0 0 10px; }
.pay-marks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 12px; }
.pay-marks img { height: 26px; width: auto; }
.pay-marks span { font-size: .74rem; font-weight: 700; border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 8px; color: var(--ink-soft); background: var(--surface); }
.paid-now { font-size: 1rem; font-weight: 750; margin: 4px 0 10px; }
.pass-box { border: 1.5px dashed var(--line-2); border-radius: var(--r-m); padding: 12px 14px; margin: 4px 0 16px; display: grid; gap: 8px; text-align: left; }
.pass-box h3 { display: flex; align-items: center; gap: 8px; font-size: .98rem; margin: 0; }
.pass-url { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pass-url input { min-width: 0; font: inherit; font-size: .8rem; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--paper); color: var(--ink-soft); }
.pass-mail { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 650; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.pass-mail svg { width: 18px; height: 18px; }
.pass-note { background: var(--up-bg); color: var(--ink); border-radius: var(--r-m); padding: 10px 12px; font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.ios-steps { padding-left: 20px; display: grid; gap: 10px; margin: 0 0 12px; }
.ios-ico { display: inline-flex; align-items: center; gap: 4px; }
.ios-ico svg { width: 18px; height: 18px; display: inline-block; }
#install-help form { margin-top: 16px; }
#install-help .btn-ink { width: 100%; }
.paid-top { display: grid; gap: 8px; margin: 12px 0 16px; }
.paid-check { width: 52px; height: 52px; border-radius: 50%; background: var(--up-bg); color: var(--up); display: grid; place-items: center; margin-bottom: 8px; }
.paid-check svg { width: 28px; height: 28px; }
.paid-top > * { min-width: 0; }
.mini { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-m); }
.mini .flap { font-size: .95rem; flex: none; }
.mini .rank { width: 26px; height: 26px; }
.mini img { width: 26px; height: 19px; border-radius: 3px; }
.mini div { flex: 1; min-width: 0; }
.mini b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#paid-dlg .btn-signal { width: 100%; }

/* ============================================================
   Suivi des candidatures
   ============================================================ */
.vtabs { display: flex; gap: 6px; margin-top: 16px; scroll-margin-top: 72px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; }
.vtab { border: 0; background: transparent; padding: 9px 14px; border-radius: 9px; font-weight: 700; font-size: .92rem; display: inline-flex; gap: 8px; align-items: center; }
.vtab span { font-size: .78rem; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--paper); color: var(--muted); }
.vtab[aria-pressed="true"] { background: var(--ink); color: #fff; }
.vtab[aria-pressed="true"] span { background: var(--signal); color: var(--ink); }
.pp-apps { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(255,194,26,.6); background: rgba(255,194,26,.08); color: #fff; border-radius: 99px; padding: 6px 12px; font-size: .82rem; }
.pp-apps svg { width: 16px; height: 16px; color: var(--signal); }
.pp-apps b { color: #c9d6ea; font-weight: 500; }
.pp-apps:hover { background: rgba(255,194,26,.18); }

.badge.st-cv { background: #e7efff; color: #2a55b0; }
.badge.st-applied { background: var(--ink); color: #fff; }
.badge.st-interview { background: var(--warn-bg); color: var(--warn); }
.badge.st-offer { background: var(--up-bg); color: var(--up); }
.badge.st-rejected { background: #eceff3; color: var(--muted); }
.card.is-tracked { border-left: 4px solid var(--ink); }

.status-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.st-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.st-pill.st-interview[aria-pressed="true"] { background: var(--signal); border-color: var(--signal-deep); color: var(--ink); }
.st-pill.st-offer[aria-pressed="true"] { background: var(--up); border-color: var(--up); }
.st-pill.st-rejected[aria-pressed="true"] { background: var(--muted); border-color: var(--muted); }

.apps { margin-top: 16px; display: grid; gap: 16px; }
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 720px) { .pipeline { grid-template-columns: repeat(6, 1fr); } }
.pipe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 12px; border-top: 3px solid var(--line-2); }
.pipe b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pipe span { font-size: .78rem; color: var(--muted); }
.pipe.st-cv { border-top-color: #6d8fdc; }
.pipe.st-applied { border-top-color: var(--ink); }
.pipe.st-interview { border-top-color: var(--signal); }
.pipe.st-offer { border-top-color: var(--up); }
.milestones { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px 16px; }
.milestones h2 { font-size: 1.05rem; margin-bottom: 10px; }
.milestones ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ms { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--paper); color: var(--muted); font-size: .84rem; font-weight: 600; }
.ms svg { width: 18px; height: 18px; }
.ms.got { background: #fff3cc; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--signal); }
.ms.got svg { color: var(--signal-deep); }
.app-list { display: grid; gap: 8px; }
.app-row { display: grid; grid-template-columns: 28px 1fr; gap: 6px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: var(--r-m); padding: 12px 14px; }
.app-row.st-applied { border-left-color: var(--ink); }
.app-row.st-interview { border-left-color: var(--signal); }
.app-row.st-offer { border-left-color: var(--up); }
.app-row.st-cv { border-left-color: #6d8fdc; }
.app-row img { width: 28px; height: 21px; border-radius: 3px; object-fit: cover; align-self: start; margin-top: 3px; }
.app-main { display: grid; gap: 1px; min-width: 0; }
.app-main b { overflow-wrap: anywhere; }
.app-main span { font-size: .86rem; color: var(--ink-soft); }
.app-main small { font-size: .78rem; color: var(--muted); }
.app-status { grid-column: 2; height: 38px; border: 1.5px solid var(--line-2); border-radius: var(--r-s); padding: 0 8px; background: var(--surface); font-weight: 600; max-width: 220px; }
.app-actions { grid-column: 2; display: flex; gap: 14px; align-items: center; font-size: .88rem; }
@media (min-width: 760px) {
  .app-row { grid-template-columns: 28px 1fr 190px auto; }
  .app-status, .app-actions { grid-column: auto; }
}

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100;
  display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 650; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); }
.toast svg { width: 22px; height: 22px; color: var(--signal); flex: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ============================================================
   CV adapté : encart de la fiche et studio
   ============================================================ */
.cv-hero { background: #fffaea; border-color: #f3e1a6; box-shadow: inset 4px 0 0 var(--signal); }
.cv-hero-top { display: flex; gap: 12px; align-items: flex-start; }
.cv-hero-top img { width: 34px; height: 25px; border-radius: 3px; object-fit: cover; margin-top: 2px; flex: none; }
.cv-hero-top p { color: var(--ink-soft); margin-top: 2px; }
.cv-hero .btn-big svg { flex: none; }
.cv-hero small { text-align: center; }

.studio { background: var(--paper); }
@media (min-width: 760px) { .studio { width: min(100%, 900px); } }
.cvs-bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; padding: calc(6px + env(safe-area-inset-top)) 8px 6px; background: var(--paper); }
.cvs-head { display: flex; gap: 12px; align-items: center; padding: 0 18px 8px; }
.cvs-head img { width: 40px; height: 30px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.cvs-head h2 { font-size: 1.35rem; }
.cvs-head p { font-size: .9rem; }
.cvs-body { padding: 6px 18px calc(32px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
@media (min-width: 760px) { .cvs-head, .cvs-body { padding-left: 28px; padding-right: 28px; } }
.cvs-intro { color: var(--ink-soft); }
.cvs-center { text-align: center; }
.cv-ad { width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r-m); padding: 10px 12px; font: inherit; font-size: .9rem; line-height: 1.45; resize: vertical; background: var(--surface); }
.cv-ad:focus { border-color: var(--ink); outline: 3px solid rgba(47,111,222,.25); }
/* Chargement de l'annonce : le champ est la porte d'entrée de la production */
.cv-load { display: grid; gap: 12px; padding: 16px; border: 2px dashed var(--line-2); border-radius: var(--r-l); background: var(--surface); transition: border-color .3s ease, background-color .3s ease; }
.cv-load.ready { border-style: solid; border-color: var(--up); background: linear-gradient(var(--up-bg), var(--surface) 70%); }
.cv-load h3 { font-size: 1.06rem; line-height: 1.3; }
.cv-load h3 label { cursor: text; }
.cv-how { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--ink-soft); }
.cv-how li { display: flex; align-items: center; gap: 6px; }
.cv-how b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .75rem; }
.cv-load-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-load-tools .btn-ghost { min-height: 40px; font-size: .92rem; padding: 0 14px; }
.cv-load-tools svg { width: 18px; height: 18px; flex: none; }
.cv-demo { justify-self: start; background: none; border: 0; padding: 0; color: var(--ink-soft); font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.fuel { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.fuel-bar { grid-column: 1 / -1; position: relative; height: 12px; border-radius: 99px; background: var(--paper); }
.fuel-bar > span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--signal-deep); transition: width .45s cubic-bezier(.2,.8,.2,1), background-color .3s ease; }
.fuel-bar > span.ready { background: var(--signal); }
.fuel-bar > span.full { background: var(--up); }
.fuel-bar > i { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--ink); opacity: .45; }
.fuel-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fuel-checks li { display: flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--ink-soft); }
.fuel-checks li svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; border: 1.5px solid var(--line-2); color: transparent; flex: none; }
.fuel-checks li.ok { color: var(--ink); font-weight: 600; }
.fuel-checks li.ok svg { background: var(--up); border-color: var(--up); color: #fff; animation: tick .35s ease; }
@keyframes tick { 0% { transform: scale(.4); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
.cv-mismatch { color: #8a5a00; background: #fff6dc; border-radius: var(--r-m); padding: 8px 10px; }
#cv-go[disabled] { opacity: 1; cursor: not-allowed; background: var(--paper); color: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--line-2); }
#cv-go[disabled] svg { opacity: .4; }
#cv-go.go-unlock { animation: go-unlock .7s ease; }
@keyframes go-unlock { 0% { transform: scale(.98); box-shadow: 0 0 0 0 rgba(255,191,0,.6); } 45% { transform: scale(1.025); box-shadow: 0 0 0 10px rgba(255,191,0,.25); } 100% { transform: none; box-shadow: 0 0 0 16px rgba(255,191,0,0); } }
@media (prefers-reduced-motion: reduce) { .fuel-checks li.ok svg, #cv-go.go-unlock { animation: none; } .fuel-bar > span { transition: none; } }

.cvs-working { justify-items: center; text-align: center; padding-top: 24px; }
.paper-anim { width: 120px; height: 150px; background: #fff; border-radius: 6px; box-shadow: var(--shadow); padding: 16px 14px; display: grid; gap: 9px; align-content: start; }
.paper-anim i { display: block; height: 7px; border-radius: 4px; background: var(--line); transform-origin: left; animation: write 1.8s ease-in-out infinite; }
.paper-anim i:nth-child(1) { width: 70%; height: 10px; background: var(--ink); }
.paper-anim i:nth-child(2) { width: 50%; animation-delay: .15s; }
.paper-anim i:nth-child(3) { animation-delay: .3s; } .paper-anim i:nth-child(4) { width: 85%; animation-delay: .45s; }
.paper-anim i:nth-child(5) { width: 60%; animation-delay: .6s; } .paper-anim i:nth-child(6) { width: 90%; animation-delay: .75s; }
@keyframes write { 0% { transform: scaleX(.1); } 50%, 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .paper-anim i { animation: none; } }
.cv-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; text-align: left; width: 100%; max-width: 360px; }
.cv-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 600; }
.cv-steps svg { width: 20px; height: 20px; color: var(--line-2); flex: none; }
.cv-steps li.now { color: var(--ink); }
.cv-steps li.now svg { color: var(--signal-deep); }
.cv-steps li.done { color: var(--ink-soft); }
.cv-steps li.done svg { color: var(--up); }

.cv-done { display: flex; gap: 14px; align-items: center; }
.cv-done .paid-check { margin: 0; flex: none; }
.cv-done h2 { font-size: 1.4rem; margin-bottom: 6px; }
.cv-score { background: var(--ink); color: #fff; border-radius: var(--r-l); padding: 16px 18px; }
.cv-score-label { font-weight: 700; margin-bottom: 10px; }
.cv-score-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.cv-score-col { display: grid; gap: 6px; }
.cv-score-col .muted { color: #c9d6ea; }
.score-before { font-size: 1.25rem; font-weight: 800; color: #c9d6ea; font-variant-numeric: tabular-nums; }
.cv-score-arrow svg { width: 26px; height: 26px; color: var(--signal); margin-bottom: 18px; }
.cv-score .bar { background: rgba(255,255,255,.12); }
.cv-score .bar span { background: #8ea3c2; }
.cv-score .bar.there span { background: var(--signal); }
.cv-score .flap > span { background: #061a33; }
.reveal.cv-done .paid-check { animation: pop .35s ease-out both; }
.culture-box { background: #f1f6ff; border-color: #d6e3fb; }
.culture-box h3 img { border-radius: 2px; }
.cv-contact { display: grid; gap: 10px; }
@media (min-width: 560px) { .cv-contact { grid-template-columns: 1fr 1fr; } }
.cv-contact input { height: 44px; border: 1.5px solid var(--line-2); border-radius: var(--r-s); padding: 0 10px; background: var(--surface); width: 100%; }
.cv-contact input:focus { border-color: var(--ink); outline: 3px solid rgba(47,111,222,.25); }
.cv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: sticky; bottom: 0; z-index: 2; background: var(--paper); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cv-actions .btn-signal, .cv-actions p { grid-column: 1 / -1; }
.cv-actions p { text-align: center; }
.cv-actions .btn-ghost { min-height: 42px; font-size: .88rem; padding: 0 10px; }
@media (min-width: 760px) { .cv-actions { grid-template-columns: 2fr 1fr 1fr; } .cv-actions .btn-signal { grid-column: auto; } }
.cv-preview-h { font-size: 1rem; }
.cv-preview { background: #e9edf3; border-radius: var(--r-l); padding: 14px; overflow-x: auto; }

/* La feuille du CV */
.cvpaper { background: #fff; color: #1b2430; width: 100%; max-width: 760px; margin: 0 auto; padding: 34px 38px; box-shadow: 0 2px 10px rgba(11,37,69,.12); font-size: 13px; line-height: 1.45; border-radius: 2px; }
@media (max-width: 560px) { .cvpaper { padding: 22px 18px; font-size: 12px; } }
.cvp-head { border-bottom: 2px solid #0b2545; padding-bottom: 12px; margin-bottom: 14px; }
.cvp-head h1 { font-size: 24px; letter-spacing: -0.01em; color: #0b2545; }
.cvp-headline { font-size: 14px; font-weight: 600; margin-top: 2px; }
.cvp-contact { font-size: 11.5px; color: #4a5568; margin-top: 4px; }
.cvp-contact .sep { margin: 0 8px; color: #a0aec0; }
.cvpaper .placeholder { color: #b7c0cc; font-style: italic; }
.cvp-body { outline: none; }
.cvp-body:focus { box-shadow: 0 0 0 2px rgba(47,111,222,.25); border-radius: 2px; }
.cvp-sec { margin-top: 14px; }
.cvp-sec h2 { font-size: 13.5px; font-weight: 800; color: #0b2545; border-bottom: 1px solid #d5dbe4; padding-bottom: 3px; margin-bottom: 8px; }
.cvp-sec p { margin: 0; }
.cvp-sec ul { margin: 3px 0 0; padding-left: 16px; }
.cvp-sec li { margin: 1px 0; }
.cvp-item { margin-bottom: 9px; break-inside: avoid; }
.cvp-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cvp-date { color: #4a5568; font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cvp-sub { color: #4a5568; font-size: 11.5px; }
.cvp-grid { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.cvp-grid .cvp-date { white-space: normal; padding-top: 1px; }
#print-root { display: none; }

@media print {
  @page { size: A4; margin: 13mm 14mm; }
  body.printing { background: #fff !important; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing dialog { display: none !important; }
  body.printing #print-root { display: block; }
  body.printing .cvpaper { box-shadow: none; padding: 0; max-width: none; font-size: 11pt; }
  body.printing .cvp-head h1 { font-size: 20pt; }
}

/* ---------- Plans : gratuit ou Premium ---------- */
.plans { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .plans { padding: 22px; } }
.plans-head { display: grid; gap: 12px; align-items: end; }
@media (min-width: 760px) { .plans-head { grid-template-columns: minmax(0, 1fr) auto; } }
.plans-head h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
.plans-head p { margin-top: 4px; font-size: .92rem; }
.plan-switch { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 4px; gap: 2px; justify-self: start; }
.plan-switch button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.plan-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 1px 3px rgba(11,37,69,.25); }
.plan-switch button[data-pay]:hover { color: var(--ink); background: var(--signal); }
.plan-switch button:disabled { cursor: default; opacity: .7; }
.plans-grid { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 760px) { .plans-grid { grid-template-columns: 1fr 1fr; } }
.plan { border: 1.5px solid var(--line); border-radius: var(--r-l); padding: 16px; display: grid; gap: 10px; align-content: start; }
.plan header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.plan h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 800; margin: 0; }
.plan h3 svg { width: 18px; height: 18px; color: var(--signal-deep); }
.plan-badge { font-size: .74rem; font-weight: 750; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; }
.plan-price { font-size: .9rem; color: var(--ink-soft); font-weight: 600; margin: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; font-size: .92rem; line-height: 1.35; }
.plan li svg { width: 18px; height: 18px; color: var(--up); margin-top: 1px; }
.plan.is-current:not(.plan-premium) { border-color: var(--ink); }
.plan-premium { border-color: var(--signal-deep); background: linear-gradient(#fffaf0, var(--surface) 55%); }
.plan-premium.is-current { border-color: var(--up); background: linear-gradient(var(--up-bg), var(--surface) 55%); }
.plan.is-past { opacity: .65; }
.plan-cta { width: 100%; margin-top: 4px; }
.plan-pass { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; font-size: .88rem; font-weight: 600; }
#paid-title:focus { outline: none; }
