/* Ma Ligne — styles de l'application
   Style Apple (iOS et macOS) avec la couleur de Ma Ligne : fonds groupés gris, blocs blancs sans bordure, gris et
   séparateurs système, barres translucides, grands titres, police du système (SF Pro sur iPhone et Mac).
   L'accent est le violet de la ligne (comme la couleur propre d'une app iPhone). Règles : .claude/skills/human-ui-design. */

:root {
  --bg: #f2f2f7; --surface: #ffffff; --surface-solid: #ffffff;
  --text: #000000; --muted: #6e6e73; --line: rgba(60, 60, 67, .18);
  --fill: rgba(118, 118, 128, .12); --seg-sel: #ffffff;
  --bar: rgba(249, 249, 249, .82);
  --accent: #6d3fe0; --accent-2: #e5407f; --accent-soft: rgba(109, 63, 224, .12);
  --logo: linear-gradient(135deg, #7c4dff, #e5407f);
  --college: var(--accent); --lycee: var(--accent);
  --ok: #248a3d; --warn: #c93400; --alert: #d70015; --err: #d70015;
  --on-accent: #ffffff; --on-ok: #ffffff;
  --shadow-pop: 0 10px 40px rgba(0, 0, 0, .14), 0 1px 3px rgba(0, 0, 0, .08);
  --shadow: none; --shadow-sm: none;
  --r-s: 8px; --r-m: 12px; --r-l: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: var(--font); --font-display: var(--font);
  --focus: color-mix(in srgb, var(--accent) 55%, transparent);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --c: var(--accent);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #1c1c1e; --surface-solid: #1c1c1e;
    --text: #ffffff; --muted: #98989d; --line: rgba(84, 84, 88, .65);
    --fill: rgba(118, 118, 128, .24); --seg-sel: #636366;
    --bar: rgba(22, 22, 24, .82);
    --accent: #a98bff; --accent-2: #ff5c9a; --accent-soft: rgba(169, 139, 255, .18);
    --logo: linear-gradient(135deg, #9b7bff, #ff5c9a);
    --ok: #30d158; --warn: #ff9f0a; --alert: #ff453a; --err: #ff453a;
    --on-accent: #ffffff; --on-ok: #000000;
    --shadow-pop: 0 10px 40px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo, .amount, .big { font-family: var(--font); }
[hidden] { display: none !important; }


main { max-width: 1040px; margin: 0 auto; padding: 0 16px 80px; }

/* ---------- Barre du haut ---------- */
nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px max(32px, calc(50vw - 620px)); margin: 0 calc(50% - 50vw);
  background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg);
  clip-path: inset(0 -100vmax);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; white-space: nowrap; flex: none; }
.logo-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--logo); }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-link { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; transition: color .2s; }
.nav-link:hover { color: var(--accent); }

/* ---------- Onglets ---------- */
nav { gap: 16px; }
.logo { background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); font-family: var(--font); }
.tabs { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  border: 0; background: none; cursor: pointer; font: 600 .88rem var(--font); color: var(--muted); white-space: nowrap;
  transition: color .3s var(--ease);
}
.tab svg { width: 18px; height: 18px; flex: none; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--on-accent); }
.tab:focus-visible, .me:focus-visible, .logo:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.tab-ind { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--accent); transition: transform .5s var(--ease), width .5s var(--ease); }
.tab-badge { position: absolute; top: 4px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--ok); color: var(--on-ok); font: 700 .65rem/16px var(--font); font-style: normal; text-align: center; }
.me { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: 600 .88rem var(--font); color: var(--text); transition: border-color .25s; }
.me:hover, .me[aria-current="true"] { border-color: var(--accent); }
.me-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; }

.js .view { display: none; }
.js .view.active { display: block; }
/* Sans JavaScript (aperçu de fichier, lecteur de mails…) : on montre l'accueil et un message */
html:not(.js) .view:not(#v-accueil), html:not(.js) .tabs, html:not(.js) .me, html:not(.js) .cta, html:not(.js) .hub { display: none; }
.nojs { display: none; }
html:not(.js) .nojs { display: block; margin: 24px auto 0; max-width: 560px; padding: 20px 22px; border-radius: var(--r-l); background: var(--accent-soft); border: 1.5px solid var(--accent); text-align: center; }
.nojs strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.nojs p { margin: 0; color: var(--text); }
.view > section { margin-top: 28px; }
.view-head { padding: 34px 0 0; }
.view-title { font-size: 2.125rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.1; }
.view-sub { color: var(--muted); margin: 0; }
.view-head + .wizard { margin-top: 22px; }

.empty { text-align: center; max-width: 560px; margin: 60px auto 0; padding: 36px 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.empty.slim { margin: 10px auto 0; box-shadow: none; }
.empty-ic { font-size: 3rem; }
.empty h2 { margin: 10px 0 8px; font-size: 1.6rem; letter-spacing: -.02em; }
.empty p { color: var(--muted); margin: 0; }
.empty-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

.hub { margin-top: 30px; }
.hub-title { font-size: 1.4rem; margin: 0 0 14px; letter-spacing: -.01em; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hcard {
  text-align: left; font: inherit; color: var(--text); cursor: pointer; padding: 20px; border-radius: var(--r-l);
  background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; position: relative; overflow: hidden;
}
.hcard:hover { border-color: color-mix(in srgb, var(--hk) 45%, var(--line)); }
.hcard .hic { width: 42px; height: 42px; border-radius: var(--r-m); display: grid; place-items: center; background: color-mix(in srgb, var(--hk) 15%, transparent); color: var(--hk); }
.hcard .hic svg { width: 22px; height: 22px; }
.hcard b { font-size: 1.05rem; margin-top: 6px; }
.hcard small { color: var(--muted); font-size: .86rem; }
.hcard .go { position: absolute; top: 18px; right: 18px; color: var(--hk); font-weight: 700; transition: transform .3s var(--ease); }
.hcard:hover .go { }

footer { margin-top: 60px; }

@media (max-width: 1080px) {
  .tab span { display: none; }
  .me-l { display: none; }
  .me { padding: 4px; }
  .tab { padding: 10px 9px; }
}
@media (max-width: 680px) {
  /* barre d'onglets en bas, comme une appli */
  .tabs {
    position: fixed; z-index: 20; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); justify-content: space-between;
    padding: 6px; border-radius: var(--r-l); background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  }
  .tab { flex: 1; flex-direction: column; gap: 3px; padding: 7px 2px; border-radius: var(--r-m); font-size: .66rem; justify-content: center; }
  .tab span { display: block; }
  .tab-ind { top: 6px; bottom: 6px; border-radius: var(--r-m); }
  .me-l { display: none; }
  .me { padding: 4px; }
  body { padding-bottom: 92px; }
  /* le flou et le découpage de la barre du haut empêchent la barre d'onglets d'être fixée en bas : on les retire sur mobile */
  nav { clip-path: none; box-shadow: none; background: var(--bg); }
  .hero { padding-top: 34px; }
}

/* ---------- Hero ---------- */
.hero { padding: 48px 0 16px; text-align: center; }
.eyebrow { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; margin: 12px 0 16px; }
h1 .hl { color: var(--accent); background: var(--logo); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 32em; margin: 0 auto; }

/* ---------- Plan de ligne ---------- */
.metro { margin: 48px auto 8px; max-width: 760px; }
.metro svg { width: 100%; height: auto; overflow: visible; }
.metro .track { fill: none; stroke: var(--c); stroke-width: 8; stroke-linecap: round;  }
.metro .track-bg { fill: none; stroke: var(--line); stroke-width: 8; stroke-linecap: round; }
.metro .station { fill: var(--bg); stroke: var(--c); stroke-width: 5;  }
.metro .station.here { fill: var(--c); }
.metro .label { font: 600 15px var(--font); fill: var(--text); }
.metro .sub { font: 500 12px var(--font); fill: var(--muted); }
.metro .train { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem var(--font); padding: 14px 24px; border-radius: var(--r-m); border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, opacity .3s;
}
.btn:hover { }
.btn:active { }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { }
.btn.ghost { background: transparent; color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible, .opt:focus-within, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta small { color: var(--muted); }

/* ---------- Formulaire ---------- */
.wizard {
  max-width: 720px; margin: 24px auto 0; scroll-margin-top: 90px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden;
  animation: rise .7s var(--ease);
}
.progress { height: 6px; background: var(--line); }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.steps-nav { display: flex; justify-content: space-between; padding: 18px 28px 0; font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.steps-nav b { color: var(--accent); }
form { padding: 8px 28px 28px; }
.step { display: none; }
.step.active { display: block; animation: fade .2s var(--ease); }
.step h2 { font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.02em; margin: 14px 0 6px; line-height: 1.15; }
.step > p { color: var(--muted); margin: 0 0 22px; }

.field { margin-bottom: 22px; }
.field > label, .field > .q { display: block; font-weight: 600; margin-bottom: 10px; }
.field .opt-note { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type="text"], input[type="number"], select {
  width: 100%; font: 500 1rem var(--font); color: var(--text);
  padding: 14px 16px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--surface-solid);
  transition: border-color .25s, box-shadow .25s;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.row { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }

.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  padding: 11px 16px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--surface-solid);
  font-weight: 500; font-size: .95rem; height: 100%;
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease);
}
.opts:not(.tiles) .opt span { border-radius: 999px; }
.opt span:hover { border-color: var(--accent); }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.opt input:checked + span::before { content: "✓"; font-weight: 700; color: var(--accent); }
.opt input:disabled + span { opacity: .4; cursor: not-allowed; transform: none; }
.opts.tiles .opt span { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; }
.opts.tiles .opt span::before { position: absolute; top: 10px; right: 14px; }
.opts.tiles .opt small { color: var(--muted); font-weight: 400; font-size: .82rem; }
.counter { font-size: .82rem; color: var(--muted); margin-top: 8px; }

.range-wrap { display: flex; align-items: center; gap: 18px; }
.big { font-size: 2.6rem; font-weight: 800; min-width: 4.2ch; text-align: right; letter-spacing: -.03em; color: var(--accent); transition: color .3s; }
.big small { font-size: 1rem; color: var(--muted); font-family: var(--font); font-weight: 600; }
input[type="range"] { flex: 1; accent-color: var(--accent); height: 28px; }
.check-line { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check-line input { accent-color: var(--accent); width: 18px; height: 18px; }

.step > .error { color: var(--err); font-size: .88rem; font-weight: 500; min-height: 1.3em; margin: 4px 0 0; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.privacy { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; margin: 18px 0 0; }
.privacy svg { width: 16px; height: 16px; flex: none; }

/* ---------- Résultats ---------- */
.results { margin-top: 10px; scroll-margin-top: 80px; }


@keyframes rise { to { opacity: 1; transform: none; } }

.res-head { text-align: left; }
.tag { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.results h2 { font-size: clamp(2rem, 5.5vw, 3.2rem); letter-spacing: -.03em; margin: 14px 0 10px; line-height: 1.05; }
.res-head p { color: var(--muted); max-width: 38em; margin: 0; }
.profile-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.pchip { font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

.section-title { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 700; margin: 52px 0 18px; }
.section-title .ico { width: 38px; height: 38px; border-radius: var(--r-m); display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.section-title .ico svg { width: 20px; height: 20px; }

.advice {
  padding: 18px 22px; border-radius: var(--r-l); border-left: 5px solid var(--c);
  background: color-mix(in srgb, var(--c) 8%, var(--surface)); margin-top: 28px;
}
.advice strong { display: block; margin-bottom: 4px; }
.advice p { margin: 0; color: var(--muted); }

.picks { display: grid; gap: 14px; }
.pick {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start;
  padding: 20px 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.pick:hover { border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.rank {
  width: 44px; height: 44px; border-radius: var(--r-m); display: grid; place-items: center;
  font: 800 1.2rem var(--font); color: var(--on-accent); background: var(--c);
}
.pick:not(:first-child) .rank { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.pick h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.match { font: 600 .75rem var(--font); color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); padding: 3px 9px; border-radius: 999px; }
.badge { font: 600 .75rem var(--font); color: var(--muted); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.why { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.path { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.path li { display: flex; gap: 10px; font-size: .93rem; }
.path li b { flex: none; min-width: 5.5em; color: var(--c); font-weight: 600; }
.pick a { color: var(--c); font-size: .88rem; font-weight: 600; text-decoration: none; display: inline-block; margin-top: 10px; }
.pick a:hover { text-decoration: underline; }

.todo { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: t; }
.todo li {
  counter-increment: t; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 16px 20px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line);
}
.todo li::before {
  content: counter(t); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; color: var(--c); border: 2px solid var(--c);
}
.todo small { display: block; color: var(--muted); }

.aids { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.aid {
  position: relative; overflow: hidden; padding: 22px; border-radius: var(--r-l);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.aid::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 180px; height: 180px; border-radius: 50%; background: var(--c); opacity: .07; transition: transform .6s var(--ease), opacity .4s; }
.aid:hover { }
.aid:hover::after { opacity: .12; }
.aid h4 { margin: 0 0 6px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.amount { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.amount .unit { font-size: .92rem; font-weight: 600; color: var(--muted); font-family: var(--font); }
.aid p { margin: 10px 0 0; color: var(--muted); font-size: .88rem; }
.aid .for-you { position: absolute; top: 16px; right: 16px; font-size: .7rem; font-weight: 700; color: var(--ok); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Localisation ---------- */
.ac { position: relative; }
.ac-list {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--r-m);
  animation: fade .25s var(--ease);
}
.ac-list li { padding: 10px 12px; border-radius: var(--r-m); cursor: pointer; }
.ac-list li small { color: var(--muted); margin-left: 6px; }
.ac-list li:hover, .ac-list li.on { background: var(--accent-soft); }
.loc-ok { font-size: .85rem; color: var(--ok); margin-top: 8px; font-weight: 500; }

/* ---------- Parcours multiples ---------- */
.routes { margin-top: 14px; }
.rtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rtab {
  font: 600 .84rem var(--font); padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-solid); color: var(--text);
  transition: background .25s, color .25s, border-color .25s;
}
.rtab:hover { border-color: var(--c); }
.rtab[aria-selected="true"] { background: var(--c); color: var(--on-accent); border-color: var(--c); }
.rtab .star { color: var(--warn); margin-left: 4px; }
.rtab[aria-selected="true"] .star { color: var(--on-accent); }
.rpanel { animation: fade .35s var(--ease); }
.rpanel .rec { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--ok); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.rsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rsteps li { padding: 8px 12px; border-radius: var(--r-m); background: color-mix(in srgb, var(--c) 9%, var(--surface-solid)); font-size: .9rem; }
.rsteps li + li::before { content: "→"; color: var(--c); font-weight: 700; margin: 0 8px 0 -2px; }
.rsteps li + li { display: flex; align-items: center; }
.near { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-solid); overflow: hidden; }
.near summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: .92rem; list-style: none; display: flex; align-items: center; gap: 8px; }
.near summary::-webkit-details-marker { display: none; }
.near summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; color: var(--c); transition: transform .3s var(--ease); }
.near[open] summary::after { transform: rotate(45deg); }
.near summary svg { width: 18px; height: 18px; color: var(--c); }
.near-body { padding: 0 16px 14px; }
.near h5 { margin: 10px 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.etabs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.etab { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 12px; border-radius: var(--r-m); border: 1px solid var(--line); animation: fade .35s var(--ease) both; }
.etab b { font-size: .92rem; }
.etab .km { font: 700 .85rem var(--font); color: var(--c); white-space: nowrap; }
.etab small { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; }
.etab small a { color: var(--c); font-weight: 600; }
.etab .pill { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-right: 4px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.skeleton { height: 46px; border-radius: var(--r-m); background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--line) 40%, transparent), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.radius { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.radius select { width: auto; padding: 8px 12px; font-size: .9rem; }

/* ---------- Fiche métier ---------- */
.btn.small { padding: 9px 16px; font-size: .88rem; }
.pick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.pick-actions a { margin-top: 0; }
dialog.fiche {
  width: min(920px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line);
  border-radius: var(--r-l); background: var(--bg); color: var(--text); box-shadow: var(--shadow-pop);
  overflow: hidden;
}
dialog.fiche[open] { animation: ficheIn .55s var(--ease); }
dialog.fiche::backdrop { background: rgba(20, 15, 10, .45); animation: fade .4s var(--ease); }
@keyframes ficheIn { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
.fiche-scroll { max-height: calc(100dvh - 34px); overflow-y: auto; overscroll-behavior: contain; }
.fiche-head {
  position: relative; padding: 36px 36px 28px; overflow: hidden;
  background: color-mix(in srgb, var(--fc) 10%, var(--bg));
  border-bottom: 1px solid var(--line);
}
.fiche-head .plane { position: absolute; right: -10px; top: 18px; width: 180px; opacity: .14; color: var(--fc); transform: rotate(-12deg); animation: fly 6s ease-in-out infinite alternate; }
@keyframes fly { from { transform: rotate(-12deg) translate(0, 0); } to { transform: rotate(-8deg) translate(-18px, -8px); } }
.fiche-head h2 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; margin: 12px 0 8px; line-height: 1.05; }
.fiche-head p { color: var(--muted); max-width: 36em; margin: 0; font-size: 1.05rem; }
.fiche-close {
  position: absolute; top: 18px; right: 18px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-solid); color: var(--text); cursor: pointer; font-size: 1.3rem; line-height: 1;
  transition: transform .3s var(--ease), border-color .3s;
}
.fiche-close:hover { transform: rotate(90deg); border-color: var(--fc); }
.fiche-body { padding: 8px 36px 36px; --c: var(--fc); }
.fiche-body h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 36px 0 14px; letter-spacing: -.01em; }
.fiche-body h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fc) 20%, transparent); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 28px; }
.kpi { padding: 16px 18px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.kpi b { display: block; font: 800 1.25rem var(--font); letter-spacing: -.02em; line-height: 1.15; }
.kpi span { color: var(--muted); font-size: .85rem; }
.foryou { margin-top: 28px; padding: 20px 22px; border-radius: var(--r-l); border: 1.5px solid color-mix(in srgb, var(--ok) 40%, var(--line)); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
.foryou strong { display: block; margin-bottom: 8px; color: var(--ok); }
.foryou ul, .blist { margin: 0; padding-left: 20px; }
.foryou li, .blist li { margin-bottom: 7px; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchips span { padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--fc) 12%, transparent); font-weight: 500; font-size: .92rem; }
.ways { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.way { padding: 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.way:hover { }
.way h4 { margin: 0 0 4px; font-size: 1.08rem; }
.way .cost { display: inline-block; margin: 6px 0 10px; font: 800 1.2rem var(--font); color: var(--fc); }
.way dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .9rem; }
.way dt { color: var(--muted); }
.way dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: var(--fc); }
.timeline li { position: relative; margin-bottom: 16px; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--fc); }
.timeline b { display: block; }
.timeline span { color: var(--muted); font-size: .93rem; }
.fiche-src { display: flex; flex-wrap: wrap; gap: 8px; }
.fiche-src a { color: var(--text); text-decoration: none; font-size: .82rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); transition: border-color .25s, color .25s; }
.fiche-src a:hover { border-color: var(--fc); color: var(--fc); }
.note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.hero-demo { margin-top: 6px; }
.hero-demo button { background: none; border: 0; padding: 0; font: 600 .92rem var(--font); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) {
  .fiche-head { padding: 28px 20px 22px; }
  .fiche-body { padding: 4px 20px 28px; }
  .fiche-head .plane { width: 120px; }
}

.compat {
  --p: 50; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; align-content: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), color-mix(in srgb, var(--c) 14%, transparent) 0);
  position: relative; flex: none;
}
.compat::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface-solid); }
.compat b, .compat span { position: relative; line-height: 1; }
.compat b { font: 800 1.15rem var(--font); }
.compat b small { font-size: .7rem; }
.compat span { font-size: .62rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.detail-pct { margin-top: 10px; font-size: .88rem; }
.detail-pct summary { cursor: pointer; color: var(--c); font-weight: 600; }
.detail-pct ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.detail-pct li { display: grid; grid-template-columns: minmax(120px, 1.3fr) 2fr 52px; gap: 10px; align-items: center; }
.detail-pct li small { color: var(--muted); }
.detail-pct .dp-how { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.detail-pct ul.dp-adj { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); gap: 4px; }
.detail-pct .dp-adj li { grid-template-columns: 1fr auto; }
.detail-pct .dp-adj b.up { color: var(--ok); }
.detail-pct .dp-adj b.down { color: var(--err); }
.detail-pct .dp-adj li.dp-tot { padding-top: 4px; border-top: 1px solid var(--line); font-weight: 700; }
.detail-pct i { height: 8px; border-radius: var(--r-s); background: linear-gradient(90deg, var(--c) var(--w), color-mix(in srgb, var(--c) 12%, transparent) var(--w)); }
.detail-pct li b { text-align: right; white-space: nowrap; }
.detail-pct li.na { grid-template-columns: minmax(150px, 1.3fr) 1fr; color: var(--muted); }
.detail-pct em { font-size: .8rem; }

/* ---------- Mes progrès ---------- */
.progres { margin-top: 28px; scroll-margin-top: 80px; --c: var(--ok); }
.progres-card { padding: 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.progres h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.02em; margin: 0 0 6px; }
.progres .sub { color: var(--muted); margin: 0 0 18px; }
.ptabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.ptab { font: 600 .88rem var(--font); padding: 9px 15px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--surface-solid); color: var(--text); }
.ptab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.note-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface-solid); }
.note-in label { font-weight: 500; font-size: .92rem; }
.note-in input { width: 76px; padding: 8px 10px; text-align: center; }
.period-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.period-row select { width: auto; }
.notes-head { margin: 0 0 12px; }
.notes-grp { grid-column: 1 / -1; margin: 10px 0 -2px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.notes-grp:first-child { margin-top: 0; }
.note-in .x { background: none; border: 0; color: var(--muted); font-size: 1.05rem; cursor: pointer; padding: 0 2px; }
.opt-add { width: auto; max-width: 100%; margin-top: 12px; }
.msgs { display: grid; gap: 10px; margin-top: 20px; }
.msg { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--r-m); background: var(--surface-solid); border: 1px solid var(--line); animation: fade .4s var(--ease) both; }
.msg .ic { width: 34px; height: 34px; border-radius: var(--r-m); display: grid; place-items: center; font-size: 1rem; }
.msg.up .ic { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.msg.flat .ic { background: color-mix(in srgb, var(--lycee) 14%, transparent); color: var(--lycee); }
.msg.help .ic { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.msg.star .ic { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.msg p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.msg a { color: var(--c); font-weight: 600; }
.subj { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.subj-card { padding: 14px 16px; border-radius: var(--r-m); background: var(--surface-solid); border: 1px solid var(--line); }
.subj-card header { display: flex; justify-content: space-between; align-items: baseline; }
.subj-card b { font-size: 1.4rem; font-family: var(--font); }
.spark { width: 100%; height: 40px; margin-top: 6px; }
.spark path { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: var(--ok); }
.trend { font-size: .8rem; font-weight: 700; }
.trend.up { color: var(--ok); } .trend.flat { color: var(--muted); } .trend.help { color: var(--warn); }
.goal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-m); border: 1px dashed var(--line); margin-top: 8px; }
.goal .ok { color: var(--ok); font-weight: 700; }
.goal button, .act button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.inline-form select, .inline-form input { width: auto; flex: 1 1 140px; min-width: 0; max-width: 100%; padding: 10px 12px; font-size: .92rem; }
.acts { display: grid; gap: 8px; margin-top: 10px; }
.act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-radius: var(--r-m); background: color-mix(in srgb, var(--accent) 6%, var(--surface-solid)); border: 1px solid var(--line); }
.act small { color: var(--muted); width: 100%; }
.mchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mchips button { font: 600 .82rem var(--font); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--text); cursor: pointer; }
.mchips button:hover { border-color: var(--ok); color: var(--ok); }
.progres h3 { margin: 30px 0 6px; font-size: 1.15rem; }
.progres h3 + p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Statistiques d'admission ---------- */
.stat { display: block; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.stat:empty { display: none; }
.acc { display: inline-block; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-right: 6px; }
.acc.easy { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.acc.mid { background: color-mix(in srgb, var(--warn) 20%, transparent); color: #b45309; }
.acc.hard { background: color-mix(in srgb, var(--alert) 12%, transparent); color: var(--alert); }
.acc.res { background: color-mix(in srgb, var(--lycee) 12%, transparent); color: var(--lycee); }
.stat b { color: var(--text); }
.myschool { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 16px; padding: 12px 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.myschool .stat { text-align: center; }

/* ---------- Quiz ---------- */
.quiz-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 11px 20px; border-radius: var(--r-m); cursor: pointer;
  font: 600 .95rem var(--font); color: var(--text); background: var(--surface); border: 1.5px dashed var(--accent);
  transition: transform .3s var(--ease), background .3s;
}
.quiz-btn:hover { background: var(--accent-soft); }
dialog.quiz { width: min(640px, calc(100% - 24px)); }
.quiz-body { padding: 30px 32px 28px; --fc: var(--accent); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; padding-right: 52px; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.quiz-bar { height: 6px; border-radius: var(--r-s); background: var(--line); margin: 12px 0 26px; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.qcard { animation: fade .2s var(--ease); }
.qcard .emoji { font-size: 3rem; line-height: 1; }
.qcard h3 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); letter-spacing: -.02em; margin: 14px 0 22px; line-height: 1.2; }
.qchoices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qchoice {
  font: 600 .95rem var(--font); color: var(--text); cursor: pointer; padding: 16px 10px; border-radius: var(--r-l);
  border: 1.5px solid var(--line); background: var(--surface-solid); display: grid; gap: 6px; justify-items: center;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.qchoice span { font-size: 1.8rem; }
.qchoice:hover { border-color: var(--accent); }
.qchoice.on { border-color: var(--accent); background: var(--accent-soft); }
.qchoice kbd { font: 500 .7rem var(--font); color: var(--muted); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.quiz-nav button { background: none; border: 0; font: 600 .9rem var(--font); color: var(--muted); cursor: pointer; }
.quiz-nav button:hover { color: var(--accent); }
.riasec { display: grid; gap: 10px; margin: 18px 0; }
.rline { display: grid; grid-template-columns: 150px 1fr 44px; gap: 10px; align-items: center; font-size: .9rem; }
.rline i { height: 12px; border-radius: var(--r-m); background: color-mix(in srgb, var(--rk) 14%, transparent); overflow: hidden; }
.rline i b { display: block; height: 100%; width: 0; background: var(--rk); border-radius: var(--r-m); transition: width 1s var(--ease); }
.rline.top { font-weight: 700; }
.persona { padding: 18px 20px; border-radius: var(--r-l); background: color-mix(in srgb, var(--rk) 10%, var(--surface-solid)); border: 1px solid color-mix(in srgb, var(--rk) 30%, var(--line)); margin-top: 10px; }
.persona .big-e { font-size: 2.2rem; }
.persona h4 { margin: 6px 0 4px; font-size: 1.2rem; }
.persona p { margin: 0; color: var(--muted); font-size: .92rem; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 560px) {
  .quiz-body { padding: 24px 18px 22px; }
  .rline { grid-template-columns: 110px 1fr 40px; font-size: .82rem; }
}

/* ---------- Carte des écoles ---------- */
.carte { margin-top: 28px; scroll-margin-top: 80px; --c: var(--lycee); }
.carte-card { padding: 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.carte h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.02em; margin: 12px 0 6px; }
.carte .sub { color: var(--muted); margin: 0 0 16px; }
.map-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.map-tools .sep { width: 1px; height: 26px; background: var(--line); margin: 0 4px; }
.map-tools select { width: auto; padding: 8px 12px; font-size: .88rem; }
.lchip { font: 600 .84rem var(--font); padding: 7px 13px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--surface-solid); color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.lchip i { width: 10px; height: 10px; border-radius: 50%; background: var(--lk); }
.lchip[aria-pressed="true"] { border-color: var(--lk, var(--text)); background: color-mix(in srgb, var(--lk, var(--text)) 14%, var(--surface-solid)); }
.mode[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.map-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
#map { height: 520px; border-radius: var(--r-l); border: 1px solid var(--line); z-index: 0; background: var(--line); }
.map-list { height: 520px; overflow-y: auto; display: grid; align-content: start; gap: 8px; padding-right: 4px; }
.spot { text-align: left; font: inherit; color: var(--text); cursor: pointer; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-solid); border: 1px solid var(--line); border-left: 4px solid var(--sk); transition: box-shadow .25s, transform .25s var(--ease); }
.spot:hover, .spot.on { }
.spot.on { border-color: var(--sk); }
.spot b { display: block; font-size: .92rem; }
.spot small { color: var(--muted); font-size: .8rem; display: block; margin-top: 2px; }
.times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.times span { font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--sk) 10%, transparent); }
.times span.best { background: var(--sk); color: #fff; }
.times .wait { color: var(--muted); font-weight: 500; }
.pin { width: 18px; height: 18px; border-radius: 50%; background: var(--pk); border: 3px solid #fff; box-shadow: var(--shadow-pop); }
.pin.home { width: 22px; height: 22px; background: #1b1916; }
.leaflet-popup-content { font: 500 .88rem var(--font); max-width: 240px; }
.leaflet-popup-content b { display: block; margin-bottom: 4px; }
@media (max-width: 760px) {
  .map-wrap { grid-template-columns: 1fr; }
  #map { height: 360px; }
  .map-list { height: auto; max-height: 520px; }
}

/* ---------- Calendrier ---------- */
.agenda { margin-top: 28px; scroll-margin-top: 80px; --c: var(--lycee); }
.agenda-card { padding: 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.agenda h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.02em; margin: 12px 0 6px; }
.agenda .sub { color: var(--muted); margin: 0 0 16px; }
.next-up {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-l); margin: 10px 0 18px;
  background: var(--surface-solid); border: 1px solid color-mix(in srgb, var(--lycee) 30%, var(--line));
}
.countdown { text-align: center; min-width: 70px; }
.countdown b { display: block; font: 800 2.1rem var(--font); line-height: 1; color: var(--lycee); }
.countdown span { font-size: .75rem; color: var(--muted); font-weight: 600; }
.next-up strong { display: block; font-size: 1.05rem; }
.next-up small { color: var(--muted); }
.ag-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.ag-tools select { width: auto; padding: 8px 12px; font-size: .88rem; }
.fchip { font: 600 .84rem var(--font); padding: 7px 13px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--surface-solid); color: var(--text); }
.fchip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.ag-tools .grow { flex: 1; }
.month { margin-top: 18px; }
.month h4 { margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ev {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r-m);
  background: var(--surface-solid); border: 1px solid var(--line); margin-bottom: 8px; border-left: 4px solid var(--ek);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.ev:hover { }
.ev.past { opacity: .5; }
.ev .day { text-align: center; line-height: 1.1; }
.ev .day b { display: block; font: 800 1.35rem var(--font); }
.ev .day small { font-size: .7rem; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.ev strong { font-size: .98rem; }
.ev p { margin: 3px 0 0; font-size: .86rem; color: var(--muted); }
.ev .tagline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ev .tagline span { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ek) 14%, transparent); color: var(--ek); }
.ev .tagline .prov { background: color-mix(in srgb, var(--warn) 18%, transparent); color: #b45309; }
.ev .acts-ev { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.bell {
  font: 600 .8rem var(--font); padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: all .25s;
}
.bell[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.ev a.ics { font-size: .78rem; color: var(--lycee); font-weight: 600; text-decoration: none; cursor: pointer; }
.reminders { display: grid; gap: 8px; margin-bottom: 14px; }
.reminder { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r-m); background: color-mix(in srgb, var(--ok) 10%, var(--surface-solid)); border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); animation: fade .4s var(--ease); }
.reminder b { color: var(--ok); }
@media (max-width: 560px) {
  .ev { grid-template-columns: 50px 1fr; }
  .ev .acts-ev { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; align-items: center; }
  .next-up { grid-template-columns: auto 1fr; }
  .next-up .btn { grid-column: 1 / -1; }
}

.explore { margin-top: 28px; }
.explore input { margin-bottom: 16px; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.xcard {
  text-align: left; cursor: pointer; font: inherit; color: var(--text);
  padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--xc); transition: transform .3s var(--ease), box-shadow .3s;
}
.xcard:hover { }
.xcard b { display: block; font-size: .98rem; }
.xcard small { color: var(--muted); font-size: .8rem; }

.res-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 48px; }

/* ---------- Pied de page ---------- */
footer {
  margin-top: 80px; padding: 28px; border-radius: var(--r-l);
  background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--muted);
}
footer p { margin: 0 0 10px; }
footer .check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
footer .check svg { width: 18px; height: 18px; color: #22c55e; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sources a {
  color: var(--text); text-decoration: none; font-size: .82rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  transition: border-color .25s, color .25s, background .25s;
}
.sources a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }



@media (max-width: 560px) {
  form { padding: 8px 18px 22px; }
  .steps-nav { padding: 16px 18px 0; }
  .row { grid-template-columns: 1fr; }
  .metro .label { font-size: 24px; }
  .results .metro .label { font-size: 21px; }
  .metro .sub { display: none; }
  .pick { grid-template-columns: 1fr; gap: 12px; }
  .nav-links .hide-sm { display: none; }
  .form-foot .btn { padding: 13px 20px; }
}
/* ---------- Téléphone ---------- */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
button, a, .opt span, .spot, .xcard, .hcard { touch-action: manipulation; }
@media (hover: none) {
  /* pas d'effet de survol « collé » sur écran tactile */
  .pick:hover, .aid:hover, .hcard:hover, .xcard:hover, .route li:hover, .chip:hover, .way:hover, .ev:hover, .spot:hover, .opt span:hover { transform: none; box-shadow: none; }
  .hcard:active, .xcard:active, .btn:active, .tab:active, .qchoice:active, .opt span:active { }
}
@media (max-width: 680px) {
  main { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  nav { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; }
  /* champs en 16 px minimum : sinon l'iPhone zoome quand on touche le champ */
  input[type="text"], input[type="number"], select, .inline-form input, .inline-form select, .map-tools select, .ag-tools select, .radius select { font-size: 16px !important; }
  .btn { padding: 14px 22px; }
  .view-head { padding-top: 20px; }
  h1 { margin: 16px 0 14px; }
  .lead { font-size: 1.02rem; }
  .metro { margin-top: 30px; }
  .cta { margin-top: 26px; }
  .hub-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hcard { padding: 14px; border-radius: var(--r-l); }
  .hcard .hic { width: 36px; height: 36px; border-radius: var(--r-m); }
  .hcard b { font-size: .95rem; }
  .hcard small { font-size: .78rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hcard .go { top: 12px; right: 12px; }
  .wizard { border-radius: var(--r-l); }
  .opts.tiles { grid-template-columns: 1fr 1fr; }
  .form-foot { position: sticky; bottom: 84px; background: var(--surface-solid); margin: 10px -18px 0; padding: 14px 18px; border-radius: 0 0 var(--r-l) var(--r-l); z-index: 2; }
  .progres-card, .agenda-card, .carte-card { padding: 18px; border-radius: var(--r-l); }
  .ptabs, .ag-tools, .map-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-left: -18px; margin-right: -18px; padding: 0 18px 4px; }
  .ptabs::-webkit-scrollbar, .ag-tools::-webkit-scrollbar, .map-tools::-webkit-scrollbar { display: none; }
  .ptab, .fchip, .lchip { flex: none; }
  .ag-tools .grow { display: none; }
  .notes-grid { grid-template-columns: 1fr 1fr; }
  .note-in { flex-direction: column; align-items: stretch; gap: 6px; }
  .note-in input { width: 100%; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .pick { padding: 16px; }
  .compat { width: 56px; height: 56px; }
  .detail-pct li { grid-template-columns: 1fr 70px 38px; }
  .detail-pct li small { display: none; }
  .rtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .rtab { flex: none; }
  .rsteps { flex-direction: column; align-items: stretch; }
  .rsteps li + li::before { content: "↓"; margin: 0 8px 0 0; }
  #map { height: 52vh; }
  /* fiches et quiz : plein écran, qui montent du bas */
  dialog.fiche { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); }
  dialog.fiche[open] { animation: sheetUp .4s var(--ease); }
  .fiche-scroll { max-height: 100%; height: 100%; padding-bottom: env(safe-area-inset-bottom); }
  .fiche-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; }
  .qchoices { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 12px 14px; }
  .kpi b { font-size: 1.05rem; }
  .fiche-head { padding-right: 64px; }
  .qchoice { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; padding: 14px 16px; text-align: left; }
  .qchoice span { font-size: 1.6rem; }
  .tabs { bottom: max(8px, env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  footer { padding: 20px; }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 380px) {
  .tab { font-size: .6rem; }
  .hub-grid, .explore-grid, .notes-grid { grid-template-columns: 1fr; }
}
/* Secours si le navigateur ne connaît pas <dialog> */
dialog.fallback[open] { position: fixed; inset: 0; margin: auto; z-index: 50; display: block; }
dialog.fallback:not([open]) { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}


/* ---------- Simulateur de budget ---------- */
.bud-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; margin-top: 22px; align-items: start; }
.bud-box { border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 18px 12px; margin: 0 0 14px; background: var(--surface); }
.bud-box legend { font-weight: 700; padding: 0 6px; }
.bud-box legend small { font-weight: 500; color: var(--muted); }
.bud-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.bud-row:last-of-type { border-bottom: 0; }
.bud-row select { width: auto; max-width: 60%; padding: 9px 12px; font-size: .9rem; }
.bud-in, .bud-in2 { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.bud-in input { width: 92px; padding: 8px 10px; text-align: right; }
.bud-in2 input { width: 64px; padding: 8px 10px; text-align: right; }
.bud-in2 select { max-width: none; }
.bud-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: .9rem; cursor: pointer; }
.bud-check input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.bud-note { margin: 6px 0 4px; font-size: .82rem; color: var(--muted); }
.bud-res { position: sticky; top: 90px; padding: 22px; border-radius: var(--r-l); background: var(--surface-solid); border: 1px solid var(--line); }
.bud-big { text-align: center; padding: 6px 0 16px; border-bottom: 1px solid var(--line); }
.bud-big small { display: block; color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.bud-big b { display: block; font: 800 2.6rem var(--font); letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; transition: color .3s; }
.bud-big b.ok { color: var(--ok); } .bud-big b.ko { color: var(--alert); }
.bud-big span { color: var(--muted); font-size: .88rem; }
.bud-bars { display: grid; gap: 10px; margin: 16px 0; }
.bud-bar { display: grid; grid-template-columns: 92px 1fr 70px; gap: 10px; align-items: center; font-size: .86rem; }
.bud-bar i { height: 16px; border-radius: var(--r-s); background: var(--line); overflow: hidden; display: flex; }
.bud-bar i b { height: 100%; transition: width .6s var(--ease); }
.bud-bar span:last-child { text-align: right; font-weight: 700; }
.bud-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .76rem; color: var(--muted); margin-bottom: 8px; }
.bud-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--lk); margin-right: 5px; }
.bud-lines { display: grid; gap: 6px; font-size: .88rem; border-top: 1px solid var(--line); padding-top: 12px; }
.bud-lines div { display: flex; justify-content: space-between; gap: 10px; }
.bud-lines div.tot { font-weight: 700; border-top: 1px dashed var(--line); padding-top: 6px; }
.bud-tips { margin: 14px 0 0; padding-left: 18px; font-size: .85rem; color: var(--muted); }
.bud-tips li { margin-bottom: 5px; }
.pick-actions .budget-link { background: none; border: 0; padding: 0; cursor: pointer; font: 600 .88rem var(--font); color: var(--c); }
@media (max-width: 860px) {
  .bud-wrap { grid-template-columns: 1fr; }
  .bud-res { position: static; order: -1; }
}
@media (max-width: 1080px) {
  .tab[data-short] span { display: none; }
  .tab[data-short]::after { content: attr(data-short); font-size: inherit; }
}
@media (max-width: 680px) {
  .bud-row { flex-wrap: wrap; }
  .bud-row select { max-width: 100%; width: 100%; }
  .bud-box { padding: 14px 14px 10px; }
  .bud-big b { font-size: 2.2rem; }
}


/* ---------- Métiers qui recrutent (BMO) ---------- */
.bmo-card { padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); margin-bottom: 22px; --c: var(--ok); }
.bmo-card h3 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -.01em; }
.bmo-card h4 { margin: 18px 0 8px; }
.bmo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: b; }
.bmo-list li { counter-increment: b; display: grid; grid-template-columns: minmax(150px, 1.4fr) 2fr 60px; gap: 4px 12px; align-items: center; font-size: .9rem; animation: fade .4s var(--ease) both; }
.bmo-list li::before { content: counter(b); display: none; }
.bmo-list i { height: 10px; border-radius: var(--r-m); background: color-mix(in srgb, var(--ok) 12%, transparent); overflow: hidden; }
.bmo-list i b { display: block; height: 100%; background: var(--ok); border-radius: var(--r-m); }
.bmo-n { text-align: right; font-weight: 700; }
.bmo-list small { grid-column: 1 / -1; color: var(--muted); font-size: .76rem; margin-top: -2px; }
.hot { color: var(--ok); font-weight: 700; }
.bmo-mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.bmo-line { margin: 8px 0 0; font-size: .86rem; color: var(--muted); }
.bmo-line b { color: var(--text); }
.bmo-fam { display: block; margin-top: 2px; font-size: .78rem; }
@media (max-width: 680px) {
  .bmo-card { padding: 16px; }
  .bmo-list li { grid-template-columns: 1fr 70px; }
  .bmo-list i { grid-column: 1 / -1; order: 3; }
  .bmo-mine { grid-template-columns: 1fr 1fr; }
}


/* ---------- Mon stage ---------- */
.seg-niv { display: flex; gap: 8px; margin: 20px 0 6px; }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stage-card { padding: 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); margin-top: 16px; }
.stage-card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.stage-list { display: grid; gap: 8px; margin-top: 12px; max-height: 560px; overflow-y: auto; }
.stage-ent { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-solid); border: 1px solid var(--line); animation: fade .35s var(--ease) both; }
.stage-ent b { display: block; font-size: .92rem; }
.stage-ent small { display: block; color: var(--muted); font-size: .8rem; }
.stage-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.stage-act a { font-size: .8rem; font-weight: 600; color: var(--lycee); text-decoration: none; }
.suivi-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: var(--r-m); background: var(--surface-solid); border: 1px solid var(--line); border-left: 4px solid var(--line); margin-bottom: 8px; }
.suivi-row b { display: block; font-size: .9rem; } .suivi-row small { color: var(--muted); font-size: .78rem; }
.suivi-row select { width: auto; padding: 7px 10px; font-size: .85rem; }
.suivi-row .x { background: none; border: 0; font-size: 1.2rem; color: var(--muted); cursor: pointer; }
.suivi-row.st-c { border-left-color: var(--accent); } .suivi-row.st-r { border-left-color: var(--warn); } .suivi-row.st-o { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--surface-solid)); } .suivi-row.st-n { opacity: .55; }
.stage-bar { height: 8px; border-radius: var(--r-s); background: var(--line); overflow: hidden; }
.stage-bar span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .5s var(--ease); }
#stage-lettre { width: 100%; font: 400 .95rem/1.5 var(--font); color: var(--text); padding: 14px 16px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--surface-solid); resize: vertical; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tips-grid div { padding: 14px; border-radius: var(--r-m); background: var(--surface-solid); border: 1px solid var(--line); }
.tips-grid p { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) { .stage-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) {
  .stage-card { padding: 16px; }
  .stage-ent { flex-direction: column; }
  .stage-act { flex-direction: row; align-items: center; justify-content: flex-start; }
  #stage-lettre { font-size: 16px; }
}


/* ---------- Espace parents ---------- */
.par-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.par-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.par-card { padding: 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--pk); }
.par-card header { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.par-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.25; }
.par-ic { font-size: 1.6rem; }
.par-text p { margin: 10px 0 0; line-height: 1.6; }
.speak { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-solid); cursor: pointer; font-size: 1.1rem; transition: transform .2s, background .2s; }
.speak:hover { }
.speak.on { background: var(--pk, var(--accent)); color: #fff; border-color: transparent; animation: pulse 1.6s infinite; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; font: 600 .95rem var(--font); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.fiche-listen { position: absolute; top: 18px; right: 70px; z-index: 2; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--text); cursor: pointer; font: 600 .85rem var(--font); }
html.big-text { font-size: 118%; }
@media (max-width: 680px) {
  .par-list { grid-template-columns: 1fr; }
  .fiche-listen { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 64px; }
}


/* ---------- Hors connexion ---------- */
.offline-bar { position: sticky; top: 0; z-index: 30; padding: 10px 16px; text-align: center; font-size: .88rem; font-weight: 600; background: #1b1916; color: #fff; }


/* ---------- Précisions des spécialités ---------- */
.spe-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 12px; }
.spe-sub { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; animation: fade .3s var(--ease); }
.spe-sub[hidden] { display: none; }

.quiz-status { padding: 12px 14px; border-radius: var(--r-m); border: 1px dashed var(--line); background: var(--surface-solid); }
.form-foot #skip { margin-left: auto; margin-right: 8px; }
@media (max-width: 560px) { .form-foot { flex-wrap: wrap; } .form-foot #skip { order: 3; width: 100%; margin: 6px 0 0; } }

/* ---------- Moteur de conseils : réalisme, vigilance, précision ---------- */
.pick .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.real { font: 700 .78rem var(--font); padding: 3px 10px; border-radius: 999px; }
.real.r0 { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.real.r1 { background: color-mix(in srgb, var(--lycee) 14%, transparent); color: var(--lycee); }
.real.r2 { background: color-mix(in srgb, var(--warn) 18%, transparent); color: #b45309; }
.real.r3 { background: color-mix(in srgb, var(--alert) 12%, transparent); color: var(--alert); }
.badge.hot-b { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.watch { margin: 8px 0 0; padding: 10px 12px 10px 30px; border-radius: var(--r-m); background: color-mix(in srgb, var(--warn) 9%, transparent); font-size: .86rem; color: var(--text); }
.watch li { margin: 2px 0; }
.watch li::marker { content: "⚠️ "; }
.prec { margin-top: 22px; padding: 16px 18px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.prec-top { display: flex; justify-content: space-between; align-items: baseline; }
.prec-top span { font: 800 1.4rem var(--font); color: var(--accent); }
.prec-bar { height: 8px; border-radius: var(--r-s); background: var(--line); overflow: hidden; margin: 8px 0; }
.prec-bar i { display: block; height: 100%; background: var(--accent); border-radius: var(--r-s); transition: width .8s var(--ease); }
.prec-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ria { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.ria span { padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-weight: 600; }
.legend-real { margin: -8px 0 14px; font-size: .82rem; color: var(--muted); }
.extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.extra { padding: 18px 20px; border-radius: var(--r-l); background: var(--surface); border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); }
.extra-k { font-size: .78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.extra h4 { margin: 6px 0 4px; font-size: 1.15rem; }
.extra p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }

/* ---------- Mon CV ---------- */
.cv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 4px; }
.cv-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; align-items: start; }
.cv-form input, .cv-form textarea, .cv-form select { width: 100%; font: 400 .95rem var(--font); color: var(--text); padding: 10px 12px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--surface-solid); }
.cv-form textarea { resize: vertical; line-height: 1.45; }
.cv-lab { display: block; font-weight: 600; font-size: .9rem; margin: 10px 0 6px; }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cv-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cv-row input:not(.grow), .cv-row select { flex: 0 1 150px; }
.cv-row .grow { flex: 1 1 180px; }
.cv-row textarea { flex: 1 1 100%; }
.cv-row .x { background: none; border: 0; font-size: 1.2rem; color: var(--muted); cursor: pointer; margin-left: auto; }
.cv-row-act { display: flex; width: 100%; align-items: center; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--accent-soft); font-size: .88rem; font-weight: 600; }
.cv-chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1rem; }
.cv-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-add { font: 500 .82rem var(--font); padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--line); background: var(--surface-solid); color: var(--text); cursor: pointer; }
.cv-add:hover { border-color: var(--accent); color: var(--accent); }
.cv-side { position: sticky; top: 90px; display: grid; gap: 12px; }
.cv-qual { padding: 14px 16px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.cv-tips { margin: 6px 0 0; padding-left: 18px; font-size: .85rem; color: var(--muted); }
.cv-tips li.ok { color: var(--ok); list-style: none; margin-left: -18px; }
.cv-models { display: flex; gap: 6px; }
.cv-paper-wrap { border-radius: var(--r-m); border: 1px solid var(--line); background: #e9e6f2; padding: 14px; overflow: hidden; scroll-margin-top: 90px; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cv-advice { padding: 14px 16px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); font-size: .88rem; }
.cv-advice ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }

/* La feuille du CV : toujours claire, comme sur papier */
.cv-paper { --cva: #7c3aed; background: #fff; color: #1d1b26; font: 400 11.5px/1.45 var(--font); aspect-ratio: 210 / 297; padding: 26px 26px; overflow: hidden; }
.cv-paper h3 { font: 800 22px/1.1 var(--font); margin: 0; letter-spacing: -.01em; }
.cv-paper h4 { font: 700 10.5px var(--font); text-transform: uppercase; letter-spacing: .08em; margin: 14px 0 6px; color: var(--cva); }
.cv-paper ul { margin: 0; padding-left: 14px; } .cv-paper li { margin: 2px 0; }
.cv-paper p { margin: 0; }
.cvp-but { font-weight: 600; margin-top: 3px !important; color: var(--cva); }
.cvp-coord { color: #5b5868; margin-top: 4px !important; font-size: 10.5px; }
.cvp-obj { margin-top: 12px !important; font-style: italic; color: #3b3848; }
.cvp-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.cvp-item { display: grid; grid-template-columns: 62px 1fr; gap: 8px; margin-bottom: 8px; }
.cvp-d { color: #6b6878; font-size: 10px; padding-top: 1px; }
.cvp-item b { display: block; } .cvp-item small { display: block; color: #6b6878; font-size: 10px; } .cvp-item p { margin-top: 2px; color: #3b3848; }
.m-moderne .cvp-head { margin: -26px -26px 0; padding: 22px 26px 16px; background: var(--cva); color: #fff; }
.m-moderne .cvp-head .cvp-but, .m-moderne .cvp-head .cvp-coord { color: #efe9ff; }
.m-moderne .cvp-side { background: #f4f0ff; margin: 0 -26px -26px 0; padding: 0 16px 16px; }
.m-classique { --cva: #2b2840; }
.m-classique .cvp-head { text-align: center; border-bottom: 2px solid #2b2840; padding-bottom: 10px; }
.m-classique h4 { border-bottom: 1px solid #d8d5e3; padding-bottom: 3px; }
.m-classique .cvp-body { grid-template-columns: 1fr; gap: 0; }
.m-sobre { --cva: #111; }
.m-sobre .cvp-body { grid-template-columns: 1fr; gap: 0; }
.m-sobre .cvp-but { color: #333; }

@media (max-width: 920px) { .cv-wrap { grid-template-columns: 1fr; } .cv-side { position: static; } }
@media (max-width: 560px) { .cv-grid { grid-template-columns: 1fr; } .cv-paper { font-size: 9.5px; padding: 16px; } .m-moderne .cvp-head { margin: -16px -16px 0; padding: 16px; } .m-moderne .cvp-side { margin: 0 -16px -16px 0; } .cv-paper h3 { font-size: 17px; } }

/* ---------- Mes oraux ---------- */
.seg-niv.small { margin: 12px 0 0; flex-wrap: wrap; }
.train-card { border: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--surface-solid); }
.ent-q { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-solid); margin-bottom: 8px; }
.ent-q summary { cursor: pointer; padding: 10px 10px 10px 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 10px; list-style: none; }
.ent-q summary::-webkit-details-marker { display: none; }
.ent-q[open] summary { border-bottom: 1px solid var(--line); }
.ent-q p { margin: 10px 14px; font-size: .92rem; color: var(--muted); }
.ent-q p b { color: var(--text); }
.ent-ex { font-style: italic; }
.speak.mini { width: 34px; height: 34px; font-size: .95rem; flex: none; }
.ent-tips ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.ent-tips li { margin: 3px 0; }
.tr-card { margin-top: 16px; padding: 18px; border-radius: var(--r-l); background: var(--surface-solid); border: 1px solid var(--line); animation: fade .35s var(--ease) both; }
.tr-n { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.tr-card h4 { margin: 6px 0 14px; font: 700 1.25rem/1.25 var(--font); }
.tr-row { display: flex; align-items: center; gap: 16px; }
.tr-ring { --p: 0; position: relative; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.tr-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface-solid); }
.tr-ring.big { width: 110px; height: 110px; }
.tr-time { position: relative; font: 800 1.2rem var(--font); font-variant-numeric: tabular-nums; }
.tr-ring.big .tr-time { font-size: 1.5rem; }
.tr-phase, .tr-mark { font-size: 1.02rem; }
.tr-help { margin-top: 12px; }
.tr-help summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; }
.tr-help p { color: var(--muted); font-size: .9rem; margin: 6px 0; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tr-self { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.tr-self span { width: 100%; font-weight: 600; color: var(--text); }
.tr-self label { display: flex; gap: 6px; align-items: center; }
.tr-end { margin-top: 16px; }
.rec-on { color: var(--alert) !important; font-weight: 600; }
.tr-card audio { width: 100%; margin-top: 4px; }
.go-idees { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.go-idees li { padding: 10px 12px; border-radius: var(--r-m); background: var(--surface-solid); border: 1px solid var(--line); font-size: .93rem; }
.go-spe { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 2px; }
.go-trame { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.go-trame li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border-radius: var(--r-m); background: var(--surface-solid); border: 1px solid var(--line); }
.go-trame small { grid-column: 1 / -1; color: var(--muted); }
.go-t { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.alt-card { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.alt-kpis { margin-top: 12px; }
#oral-go > .kpis { margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.seg-niv .lchip { --lk: var(--accent); }
#alt-go { text-decoration: none; }
@media (max-width: 680px) {
  .tr-ring { width: 72px; height: 72px; } .tr-ring.big { width: 92px; height: 92px; }
  .tr-card h4 { font-size: 1.1rem; }
}

/* ---------- Mon dossier d'orientation (seulement à l'impression) ---------- */
.dossier { display: none; --text: #1d1b26; --muted: #5b5868; --line: #e4e1ef; --accent: #7c3aed; color: #1d1b26; font: 400 10pt/1.45 var(--font); }
.dos-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 3px solid #7c3aed; padding-bottom: 10px; }
.dos-brand { font: 800 8.5pt var(--font); color: #7c3aed; text-transform: uppercase; letter-spacing: .12em; }
.dos-head h1 { font: 800 19pt/1.1 var(--font); margin: 4px 0; }
.dos-head p { margin: 0; color: #5b5868; }
.dos-date { text-align: right; font-size: 8.5pt; color: #5b5868; flex: none; }
.dos-sec { margin-top: 16px; }
.dos-sec h2 { font: 800 12.5pt var(--font); color: #7c3aed; margin: 0 0 6px; break-after: avoid; }
.dos-note { margin: 0 0 6px; color: #5b5868; font-size: 8.5pt; }
.dos-tab { width: 100%; border-collapse: collapse; }
.dos-tab th { text-align: left; width: 32%; font-weight: 600; color: #3b3848; vertical-align: top; padding: 4px 10px 4px 0; border-bottom: 1px solid #e4e1ef; }
.dos-tab td { padding: 4px 0; border-bottom: 1px solid #e4e1ef; }
.dos-tab tr { break-inside: avoid; }
.dos-dates th { width: 38%; font-weight: 500; }
.dos-tab small { color: #6b6878; }
.dos-pick { border: 1px solid #e4e1ef; border-left: 4px solid #7c3aed; border-radius: var(--r-s); padding: 8px 12px; margin: 8px 0; break-inside: avoid; }
.dos-pick-h { display: flex; align-items: center; gap: 8px; }
.dos-n { width: 20px; height: 20px; border-radius: 50%; background: #7c3aed; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 8.5pt; flex: none; }
.dos-pick h3 { margin: 0; font-size: 11.5pt; flex: 1; }
.dos-pct { font: 800 13pt var(--font); color: #7c3aed; }
.dos-pick p { margin: 4px 0 0; }
.dos-tags { color: #5b5868; font-size: 8.5pt; }
.dos-tags .real { font-weight: 700; padding: 0; background: none; border: 0; }
.dos-tags .r0 { color: #15803d; } .dos-tags .r1 { color: #1d4ed8; } .dos-tags .r2 { color: #c2410c; } .dos-tags .r3 { color: #be123c; }
.dos-watch { color: #9a3412; }
.dossier .bmo-line { font-size: 9pt; margin: 4px 0 0; color: #3b3848; background: none; padding: 0; }
.dossier .hot { color: #be123c; font-weight: 600; }
.dos-extra { margin-top: 8px; background: #f4f0ff; border-radius: var(--r-s); padding: 8px 12px; break-inside: avoid; }
.dos-extra p { margin: 2px 0; }
.dos-list { margin: 0; padding-left: 18px; }
.dos-list li, .dos-q li { margin: 3px 0; break-inside: avoid; }
.dos-q { margin: 0; padding-left: 18px; }
.dos-notes { border: 1px dashed #b9b4cc; border-radius: var(--r-s); height: 42mm; padding: 6px 12px; margin-top: 10px; color: #5b5868; break-inside: avoid; }
.dos-src { font-size: 7.5pt; color: #6b6878; margin-top: 14px; }
.dos-cv-page { break-before: page; }
.dossier .dos-cv { aspect-ratio: auto; box-shadow: none; min-height: 262mm; font-size: 10pt; }

/* Impression et PDF : la feuille du CV seule (A4, sans marge), ou le dossier complet */
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; }
  body { padding: 0 !important; }
  .blobs, nav, .tabs, footer, .offline-bar { display: none !important; }
  body:not(.print-dossier) * { visibility: hidden !important; }
  body:not(.print-dossier) #cv-paper, body:not(.print-dossier) #cv-paper * { visibility: visible !important; }
  body:not(.print-dossier) #cv-paper { position: fixed; inset: 0; width: 210mm; height: 297mm; aspect-ratio: auto; box-shadow: none; padding: 16mm 15mm; font-size: 10.5pt; }
  body:not(.print-dossier) #cv-paper.m-moderne .cvp-head { margin: -16mm -15mm 0; padding: 12mm 15mm 8mm; }
  body:not(.print-dossier) #cv-paper.m-moderne .cvp-side { margin: 0 -15mm -16mm 0; padding: 0 8mm 8mm; }
  #cv-paper, #cv-paper *, .dossier, .dossier * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-dossier > :not(#dossier) { display: none !important; }
  body.print-dossier #dossier { display: block; }
}
@media (max-width: 680px) {
  .tab { font-size: .58rem; padding: 7px 0; letter-spacing: -.01em; }
  .tab svg { width: 17px; height: 17px; }
}


/* =====================================================================
   Finitions visuelles : relief des cartes, boutons, puces, champs,
   navigation (menu « Plus »), accueil par thèmes, en-têtes de page
   ===================================================================== */

/* Cartes : un léger relief au repos, plus marqué au survol */
.pick, .aid, .todo li, .way, .hcard, .xcard, .stage-card, .bmo-card, .progres-card, .agenda-card, .carte-card,
.par-card, .bud-box, .cv-qual, .cv-advice, .prec, .extra, .empty, .kpi, footer, .advice { }
.view-head + .carte-card, .view-head + .agenda-card, .view-head + .progres-card { margin-top: 22px; }

/* Boutons */
.btn { }
.btn.ghost { background: var(--surface-solid); border: 1.5px solid color-mix(in srgb, var(--text) 14%, var(--line)); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface-solid)); }
.linkish:hover { color: var(--accent-2); }
:where(button, a, summary, [role="button"], [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Puces et onglets internes : la sélection prend la couleur de l'app */
.ptab, .fchip, .lchip, .rtab, .bell, .mchips button, .cv-add, .budget-link { transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.ptab:hover, .fchip:hover, .lchip:hover, .bell:hover { border-color: var(--accent); }
.ptab[aria-selected="true"], .fchip[aria-pressed="true"], .mode[aria-pressed="true"], .seg-niv .lchip[aria-pressed="true"] {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}
.seg-niv.small .lchip[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); border-color: var(--accent); box-shadow: none; }
.seg-niv { flex-wrap: wrap; }

/* Champs : flèche des listes déroulantes, zones de texte */
select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b86a0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; padding-right: 36px !important;
}
textarea:focus, .cv-form input:focus, .cv-form textarea:focus, .cv-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
input[type="text"]:hover, input[type="number"]:hover, select:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

/* Barre du haut */
.tab:not([aria-selected="true"]):hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.tab-more[aria-expanded="true"]:not([aria-selected="true"]) { color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); }
@media (min-width: 681px) and (max-width: 1080px) {
  /* tablette : l'icône et un libellé court, plutôt qu'une icône seule */
  .tabs { border-radius: var(--r-l); }
  .tab { flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: var(--r-m); font-size: .68rem; }
  .tab span { display: block; }
  .tab-ind { border-radius: var(--r-m); }
}

/* Menu « Plus » */
.more-menu { position: fixed; z-index: 40; }
.more-sheet {
  width: min(460px, calc(100vw - 24px)); padding: 12px; border-radius: var(--r-l);
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow-pop);
  animation: menuIn .28s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.more-item {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; text-align: left;
  padding: 10px; border-radius: var(--r-m); border: 0; background: none; cursor: pointer; font: inherit; color: var(--text);
  transition: background .2s;
}
.more-item .hic { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: var(--r-m); display: grid; place-items: center; background: color-mix(in srgb, var(--hk) 14%, transparent); color: var(--hk); }
.more-item .hic svg { width: 20px; height: 20px; }
.more-item b { font-size: .92rem; line-height: 1.25; }
.more-item small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.more-item:hover, .more-item.on { background: color-mix(in srgb, var(--hk) 10%, transparent); }
.more-mob, .more-grab { display: none; }

/* Accueil : carte mise en avant + rubriques par thème */
.hub { margin-top: 44px; }
#hub-grid { display: grid; gap: 30px; }
.hub-title { display: flex; align-items: center; gap: 12px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; font-family: var(--font); }
.hub-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.hcard b { line-height: 1.25; }
.hcard.feat {
  grid-template-columns: auto 1fr; align-items: center; gap: 20px; padding: 22px 56px 22px 24px; border-radius: var(--r-l);
  background: var(--surface);
  border: 1.5px solid color-mix(in srgb, var(--hk) 32%, var(--line));
}
.hcard.feat .go { top: 50%; right: 24px; transform: translateY(-50%); font-size: 1.3rem; }
.hcard.feat:hover .go { }
.feat .compat { width: 78px; height: 78px; }
.feat .compat b { font-size: 1.45rem; margin: 0; }
.feat-txt { display: grid; gap: 3px; }
.feat-k { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--hk); }
.feat-txt b { font: 800 1.55rem/1.1 var(--font); letter-spacing: -.02em; margin: 0; }
.feat-txt small { font-size: .9rem; }
.hcard .hic.big { width: 64px; height: 64px; border-radius: var(--r-l); }
.hcard .hic.big svg { width: 30px; height: 30px; }

/* En-tête de chaque page : pastille d'icône + titre + sous-titre */
.view-head { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
.view-head .vh-ic {
  grid-row: 1 / 3; width: 58px; height: 58px; border-radius: var(--r-l); display: grid; place-items: center;
  background: color-mix(in srgb, var(--hk) 14%, var(--surface-solid)); color: var(--hk);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hk) 24%, transparent), var(--shadow-sm);
}
.vh-ic svg { width: 28px; height: 28px; }
.view-head .view-title { align-self: end; margin-bottom: 4px; }
.view-head .view-sub { grid-column: 2; align-self: start; max-width: 46em; }

/* Recherche de métier */
.search-box { position: relative; margin: 6px 0 16px; }
.search-box svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.explore .search-box input, .lexique .search-box input { margin: 0; padding-left: 48px; border-radius: 999px; }

/* Pistes : « pourquoi » en liste cochée, meilleure piste mise en avant */
.why-box { margin-top: 10px; }
.why-k { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ok); }
.why-box ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 5px; }
.why-box li { position: relative; padding-left: 26px; font-size: .92rem; }
.why-box li::before {
  content: "✓"; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: .7rem; font-weight: 800; color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent);
}
.pick:first-child { border: 1.5px solid color-mix(in srgb, var(--c) 35%, var(--line)); }
.pick-actions { gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); margin-top: 14px; }
.pick-actions .budget-link, .pick-actions a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-solid); font-size: .85rem; text-decoration: none; }
.pick-actions .budget-link:hover, .pick-actions a:hover { border-color: var(--c); text-decoration: none; }

/* Petite notification */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; max-width: calc(100vw - 32px);
  padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-weight: 600; font-size: .92rem; text-align: center; box-shadow: var(--shadow-pop); pointer-events: none;
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .25s, transform .35s var(--ease);
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast.out { opacity: 0; transform: translate(-50%, 8px); }

@media (max-width: 680px) {
  /* barre du bas : 4 rubriques + « Plus » */
  .tab-x { display: none; }
  .tab { font-size: .7rem; padding: 8px 2px; }
  .tab svg { width: 20px; height: 20px; }
  .tabs { z-index: 45; }
  .more-menu { inset: 0; display: flex; align-items: flex-end; background: rgba(15, 10, 30, .38); }
  .more-sheet { width: 100%; border-radius: var(--r-l) var(--r-l) 0 0; padding: 8px 12px calc(98px + env(safe-area-inset-bottom)); animation: sheetUp .32s var(--ease); }
  .more-grab { display: block; width: 42px; height: 5px; border-radius: var(--r-s); background: var(--line); margin: 4px auto 12px; }
  .more-mob { display: grid; }
  .toast { bottom: calc(98px + env(safe-area-inset-bottom)); }
  .hub { margin-top: 30px; }
  #hub-grid { gap: 24px; }
  .hub-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hcard.feat { padding: 16px 44px 16px 16px; gap: 14px; border-radius: var(--r-l); }
  .hcard.feat .go { right: 16px; }
  .feat .compat { width: 62px; height: 62px; }
  .feat .compat b { font-size: 1.15rem; }
  .feat-txt b { font-size: 1.25rem; }
  .feat-txt small { font-size: .8rem; }
  .hcard .hic.big { width: 52px; height: 52px; border-radius: var(--r-m); }
  .view-head { column-gap: 12px; }
  .view-head .vh-ic { width: 46px; height: 46px; border-radius: var(--r-m); }
  .vh-ic svg { width: 23px; height: 23px; }
  .view-title { font-size: 2.125rem; }
  .view-head .view-sub { grid-column: 1 / -1; margin-top: 8px; font-size: .93rem; }
  .pick-actions .budget-link, .pick-actions a { padding: 7px 12px; }
}
@media (max-width: 680px) {
  /* téléphone : rubriques en liste compacte (icône à gauche, texte à droite) */
  .hub-cards { grid-template-columns: 1fr; gap: 8px; }
  .hub-cards .hcard { grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 1px; align-items: center; padding: 12px 40px 12px 12px; border-radius: var(--r-l); }
  .hub-cards .hcard .hic { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: var(--r-m); }
  .hub-cards .hcard b { margin: 0; font-size: .97rem; }
  .hub-cards .hcard small { -webkit-line-clamp: 1; font-size: .8rem; }
  .hub-cards .hcard .go { top: 50%; right: 14px; transform: translateY(-50%); }
}
.compat b { white-space: nowrap; }


/* =====================================================================
   Style inspiré d'Apple : sobre, clair, fluide
   Police système (SF sur iPhone et Mac, Inter ailleurs), fonds neutres,
   cartes blanches sans bordure, barres translucides, animations « ressort ».
   ===================================================================== */

/* Police : celle du système, partout sauf sur la feuille du CV et le dossier imprimé */
h1 { font-weight: 700; letter-spacing: -.03em; }
.view-title, .results h2, .fiche-head h2 { font-weight: 700; letter-spacing: -.025em; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

/* Fond uni, plus de taches floues (plus fluide sur téléphone) */
.pick, .aid, .wizard, .progres-card, .agenda-card, .carte-card, footer, .eyebrow, .empty { }

/* Cartes : blanches, sans bordure, ombre très douce */
.pick, .aid, .todo li, .way, .hcard, .xcard, .stage-card, .bmo-card, .progres-card, .agenda-card, .carte-card,
.par-card, .bud-box, .cv-qual, .cv-advice, .prec, .kpi, .advice, .wizard, .empty, .bud-res, .cv-paper-wrap, .next-up, .myschool {
  border-color: transparent; background-color: var(--surface);
}
.par-card { border-top: 4px solid var(--pk); }
.advice { border-left: 4px solid var(--c); }
.extra { background: var(--surface); }
.hcard, .xcard, .aid, .way { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.hcard:hover, .xcard:hover, .aid:hover, .way:hover { }
.pick:hover { border-color: transparent; }
.pick:first-child { border-color: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.pchip, .badge, .qchips span, .fiche-src a, .sources a { border-color: transparent; background: var(--fill); }
.badge.hot-b { background: color-mix(in srgb, var(--ok) 13%, transparent); }

/* Barre du haut translucide, comme sur iPhone et Mac */
nav { background: var(--bar); box-shadow: 0 0 0 100vmax var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid var(--line); padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 700; letter-spacing: -.02em; }
.logo-dot { box-shadow: none; background: var(--accent); }
.me { border: 0; background: var(--fill); }
.me:hover, .me[aria-current="true"] { background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* Onglets : sélecteur segmenté façon iOS */
.tabs { background: var(--fill); border: 0; box-shadow: none; padding: 3px; gap: 0; }
.tab { color: var(--text); font-weight: 500; opacity: .78; transition: opacity .25s, color .25s; }
.tab:hover, .tab:not([aria-selected="true"]):hover { opacity: 1; background: none; }
.tab[aria-selected="true"] { color: var(--text); opacity: 1; font-weight: 600; }
.tab-ind { top: 3px; bottom: 3px; background: var(--seg-sel); transition: transform .45s var(--ease), width .45s var(--ease); }
.tab-more[aria-expanded="true"]:not([aria-selected="true"]) { background: none; opacity: 1; }

/* Boutons : pilules pleines, sans dégradé ; boutons secondaires grisés */
.btn { background: var(--accent); box-shadow: none; padding: 14px 22px; min-height: 50px; border-radius: var(--r-m); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; transition: transform .25s var(--ease), filter .25s, background .25s; }
.btn:hover { transform: none; box-shadow: none; filter: brightness(1.08); }
.btn:active { filter: brightness(.94); }
.btn:hover svg { }
.btn.small { padding: 8px 16px; }
.btn.ghost { background: var(--accent-soft); border: 0; color: var(--accent); }
.btn.ghost:hover { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); }
.quiz-btn { border: 0; background: var(--fill); }
.quiz-btn:hover { transform: none; background: color-mix(in srgb, var(--accent) 13%, transparent); }

/* Puces : fond gris, sélection en couleur */
.ptab, .fchip, .lchip, .rtab, .bell, .mchips button, .cv-add, .pick-actions .budget-link, .pick-actions a { border-color: transparent; background: var(--fill); }
.ptab:hover, .fchip:hover, .lchip:hover, .bell:hover, .rtab:hover { border-color: transparent; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.rtab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.lchip[data-layer][aria-pressed="true"] { background: color-mix(in srgb, var(--lk) 16%, transparent); }
.bell[aria-pressed="true"] { background: var(--ok); }

/* Champs remplis de gris, comme dans Réglages */
input[type="text"], input[type="number"], select, textarea, #stage-lettre, .cv-form input, .cv-form textarea, .cv-form select {
  background-color: var(--fill); border: 1.5px solid transparent; border-radius: var(--r-m);
}
input[type="text"]:hover, input[type="number"]:hover, select:hover { border-color: transparent; background-color: color-mix(in srgb, var(--fill) 100%, rgba(118, 118, 128, .06)); }
input:focus, select:focus, textarea:focus, #stage-lettre:focus { background-color: var(--surface-solid); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); outline: none; }
.opt span { border-color: transparent; background: var(--fill); }
.opt span:hover { transform: none; border-color: transparent; background: color-mix(in srgb, var(--accent) 10%, var(--fill)); }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.note-in, .tips-grid div, .ev, .spot, .stage-ent, .suivi-row, .msg, .subj-card, .etab, .near, .goal, .act, .ent-q, .go-idees li, .go-trame li, .tr-card { border-color: var(--line); }

/* Icônes en pastilles pleines, comme les Réglages de l'iPhone */
.hcard .hic, .more-item .hic, .view-head .vh-ic { background: var(--hk); color: #fff; box-shadow: none; }
.view-head .vh-ic { border-radius: var(--r-m); }
.hub-title::after { display: none; }
.hub-title { font-size: .8rem; letter-spacing: .04em; }
.hcard.feat { border: 0; background: var(--surface); }
.hcard .go { color: var(--muted); font-weight: 500; }
.hcard .go::before { content: "›"; font-size: 1.5rem; line-height: 1; }
.hcard .go { font-size: 0; }
.hcard.feat .go { font-size: 0; }

/* Accueil */
.hero { padding-top: 64px; }
.lead { color: var(--muted); }

/* Fiches et quiz : feuilles qui montent, fond assombri */
dialog.fiche { border: 0; border-radius: var(--r-l); }
dialog.fiche::backdrop { background: rgba(0, 0, 0, .32); }
.fiche-close, .fiche-listen { border: 0; background: var(--fill); }
.more-sheet { border: 0; }

/* Pied de page discret */
footer { background: none; box-shadow: none; border: 0; border-top: .5px solid var(--line); border-radius: 0; padding: 26px 4px; font-size: .8rem; }

/* Transitions plus douces entre les pages */

@media (max-width: 680px) {
  /* Barre d'onglets iOS : pleine largeur, translucide, sélection en couleur */
  .tabs {
    left: 0; right: 0; bottom: 0; border-radius: 0; gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: .5px solid var(--line); box-shadow: none;
  }
  .tab-ind { display: none; }
  .tab { color: var(--muted); opacity: 1; background: none !important; font-size: .66rem; font-weight: 500; gap: 3px; padding: 4px 0; border-radius: var(--r-m); }
  .tab[aria-selected="true"] { color: var(--accent); font-weight: 600; }
  .tab svg { width: 25px; height: 25px; }
  .tab-more[aria-expanded="true"] { color: var(--accent); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .more-sheet { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .form-foot { bottom: calc(62px + env(safe-area-inset-bottom)); }
  /* pas de flou sur la barre du haut : il empêcherait la barre d'onglets de rester en bas.
     Fond opaque : sinon le texte qui passe dessous se voit en transparence */
  nav { background: var(--bg); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* barre d'onglets un peu plus opaque, pour qu'on ne lise pas le contenu à travers */
  /* onglets des parcours : sur plusieurs lignes plutôt que coupés au bord de l'écran */
  .rtabs { flex-wrap: wrap; overflow-x: visible; margin-right: 0; padding-right: 0; }
  .hero { padding-top: 40px; }
  /* fiche : une feuille qui laisse voir le haut de l'écran */
  dialog.fiche { margin-top: max(10px, env(safe-area-inset-top)); height: calc(100% - max(10px, env(safe-area-inset-top))); border-radius: var(--r-m) var(--r-m) 0 0; padding-top: 0; }
  .fiche-close { top: calc(max(10px, env(safe-area-inset-top)) + 10px); }
  .fiche-listen { top: calc(max(10px, env(safe-area-inset-top)) + 10px); }
}



/* ---------- Ton fil du jour ---------- */
.fil { margin-top: 48px; }
.fil-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 16px; margin-bottom: 12px; }
.fil-date { font-size: .8rem; font-weight: 600; color: var(--muted); }
.fil-head h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.fil-head select { width: auto; padding: 9px 12px; font-size: .9rem; border-radius: 999px; }
.fil-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; }
.fil-card { padding: 20px 22px; border-radius: var(--r-l); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.fil-k { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fil-fact { }
.fil-txt { margin: 0; font-size: 1.12rem; line-height: 1.45; font-weight: 500; letter-spacing: -.01em; flex: 1; }
.fil-in { animation: fade .45s var(--ease); }
.fil-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.fil-foot small { color: var(--muted); font-size: .78rem; margin-right: auto; }
.fil-foot .linkish { font-size: .86rem; text-decoration: none; }
.fil-actus { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fil-actus .skeleton { height: 54px; }
.fil-actus a { display: flex; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: var(--r-m); color: var(--text); text-decoration: none; transition: background .2s; }
.fil-actus a:hover { background: var(--fill, rgba(118,118,128,.12)); }
.fil-actus img { width: 64px; height: 48px; border-radius: var(--r-m); object-fit: cover; flex: none; background: var(--line); }
.fil-actus b { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.fil-actus small { color: var(--muted); font-size: .76rem; }
.fil-vide { color: var(--muted); font-size: .9rem; }
.fil-src { color: var(--muted); font-size: .74rem; }
@media (max-width: 760px) { .fil-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .fil { margin-top: 34px; } .fil-head h2 { font-size: 1.35rem; } .fil-txt { font-size: 1.02rem; } .fil-card { padding: 16px; } }

/* ---------- Ma note du bac (simulateur) ---------- */
.bac-wrap { margin-top: 14px; }
.bac-row > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.bac-row > span:first-child small { flex-basis: 100%; color: var(--muted); font-size: .76rem; font-weight: 600; }
.bac-tag { font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.bac-row .bud-in2 input { width: 70px; text-align: center; }
.bac-row input[aria-invalid="true"] { border-color: var(--alert); background: color-mix(in srgb, var(--alert) 8%, var(--surface-solid)); }
.bac-opt { display: grid; grid-template-columns: 1fr auto auto auto; }
.bac-opt select { max-width: none; width: 100%; }
.bac-opt select[data-f="ans"] { width: auto; }
.bac-opt .x { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 4px; }
.bac-reprendre { display: block; margin: 10px 0 4px; font-size: .88rem; }
.bac-form > #bac-wipe { margin-top: 2px; }
.bac-form .btn.ghost.small:not(#bac-wipe) { margin: 10px 0 4px; }
.bud-big b.mid { color: var(--warn); }
.bac-sur { display: inline !important; font: 700 1.1rem var(--font); color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.bac-gauge { position: relative; height: 12px; margin: 18px 6px 36px; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--alert) 55%, transparent) 0 40%, color-mix(in srgb, var(--warn) 70%, transparent) 40% 50%, color-mix(in srgb, var(--ok) 45%, transparent) 50% 60%, color-mix(in srgb, var(--ok) 80%, transparent) 60% 100%); }
.bac-gauge i { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--surface-solid); border: 3px solid var(--text); transition: left .5s var(--ease); }
.bac-gauge span { position: absolute; top: 18px; transform: translateX(-50%); font-size: .7rem; font-weight: 600; color: var(--muted); }
.bac-h { margin: 6px 0 10px; font-size: 1rem; }
.bac-h small { color: var(--muted); font-weight: 500; }
.bac-cibles { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.bac-cibles li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-m); background: var(--fill, rgba(118, 118, 128, .08)); font-size: .9rem; }
.bac-cibles li small { display: block; color: var(--muted); font-size: .74rem; }
.bac-cibles li b { font-size: 1.05rem; white-space: nowrap; }
.bac-cibles li b.ok { color: var(--ok); font-size: .9rem; }
.bac-cibles li b.off { color: var(--muted); font-weight: 600; font-size: .85rem; }
.bac-cibles li.is-off { opacity: .7; }
.bac-verdict { margin: 4px 0 6px; font: 800 1.25rem var(--font); letter-spacing: -.01em; }
.bac-verdict.ok { color: var(--ok); } .bac-verdict.mid { color: var(--warn); } .bac-verdict.ko { color: var(--text); }
@media (max-width: 680px) {
  .bac-opt { grid-template-columns: 1fr auto; grid-template-areas: "k x" "a n"; }
  .bac-opt select[data-f="k"] { grid-area: k; }
  .bac-opt select[data-f="ans"] { grid-area: a; width: 100%; }
  .bac-opt .bud-in2 { grid-area: n; }
  .bac-opt .x { grid-area: x; justify-self: end; }
}

/* ---------- Signature « by ortus » (couleur du logo ortus) ---------- */
:root { --ortus: #1b2152; }
@media (prefers-color-scheme: dark) { :root { --ortus: #c3c9f2; } }
.by-ortus { display: inline-flex; align-items: baseline; gap: .3em; margin-inline-start: 2px; font: 500 .7rem/1 var(--font); letter-spacing: 0; color: var(--muted); }
.by-ortus b, .ortus-sign b { font-family: var(--font); font-weight: 800; color: var(--ortus); letter-spacing: -.035em; }
.by-ortus b { font-size: 1.18em; }
.ortus-sign { margin: 22px 0 0 !important; text-align: center; font-size: .84rem; font-weight: 600; color: var(--muted); }
.ortus-sign b { font-size: 1.12rem; }
.dossier .by-ortus { font-size: .62em; color: #6b6880; }
.dossier .by-ortus b { color: #1b2152; }

/* ---------- Parcours : ouvert ou non au bac de l'élève (1re, terminale) ---------- */
.rbac { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--r-m); font-size: .86rem; line-height: 1.45; }
.rbac.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface-solid)); color: var(--ok); font-weight: 600; }
.rbac.ko { background: color-mix(in srgb, var(--warn) 14%, var(--surface-solid)); color: var(--text); }
.rbac.info { background: color-mix(in srgb, var(--c) 9%, var(--surface-solid)); color: var(--text); }

/* ---------- Toutes les écoles (carte Parcoursup) ---------- */
.ecoles-page { --c: var(--lycee); }
.ec-card { padding: 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.ec-types { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-types .lchip small { opacity: .7; font-weight: 500; margin-left: 2px; }
.ec-types .lchip.on { background: var(--c); color: #fff; border-color: transparent; }
.ec-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 4px; font-size: .9rem; }
.ec-zone { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.ec-zone select { width: auto; padding: 8px 10px; }
.ec-coche { display: inline-flex; align-items: center; gap: 6px; }
.ec-filtres input[type="search"] { flex: 1 1 220px; min-width: 0; padding: 10px 12px; }
.ec-titre { margin: 16px 0 8px; font-size: 1.05rem; }
#ec-plus { margin-top: 10px; }
#ecoles .ec-form { display: block; color: var(--text); font-weight: 600; margin: 2px 0 3px; }
.ec-ge { margin-top: 14px; padding: 14px 18px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.ec-ge summary { cursor: pointer; font-weight: 700; }
.ec-ge ul { padding-left: 18px; }
.ec-ge li { margin: 6px 0; }

/* ---------- Vérification des chiffres (bas de page) ---------- */
.verif-alerte { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--r-m); background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--text); font-weight: 600; font-size: .88rem; }
.verif-det { margin: 0 0 14px; font-size: .86rem; }
.verif-det summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.verif-det ul { margin: 8px 0; padding-left: 18px; display: grid; gap: 3px; }
.verif-det p { margin: 8px 0 0; color: var(--muted); }
footer .legal { font-size: .88rem; }
/* Fiche métier sur téléphone : l'étiquette passe sous les boutons « Écouter » et « Fermer » */
@media (max-width: 680px) { .fiche-head { padding-top: 68px; } }
footer .independant { font-size: .82rem; color: var(--muted); }

/* ---------- Donner mon avis ---------- */
.avis { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r-l); background: var(--surface-solid); color: var(--text); }
.avis::backdrop { background: rgba(10, 8, 20, .45); }
.avis-f { padding: 22px 22px 18px; display: grid; gap: 10px; }
.avis h2 { margin: 0; font-size: 1.3rem; }
.avis p { margin: 0; }
.avis-notes { display: flex; gap: 6px; }
.avis-notes button { width: 44px; height: 44px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); color: var(--line); font-size: 1.5rem; cursor: pointer; }
.avis-notes button[aria-pressed="true"] { color: #f59e0b; border-color: #f59e0b; }
.avis label { font-weight: 600; font-size: .9rem; }
.avis textarea { width: 100%; box-sizing: border-box; padding: 12px; border-radius: var(--r-m); font: inherit; resize: vertical; }
.avis-note { font-size: .82rem; color: var(--muted); }
.avis-err { color: #dc2626; font-weight: 600; font-size: .86rem; min-height: 1px; }
.avis-b { display: flex; justify-content: flex-end; gap: 8px; }
.avis-merci { padding: 28px 22px; font-weight: 700; text-align: center; }

/* ---------- Mon compte (sauvegarde en ligne) ---------- */
.compte .compte-choix { display: grid; gap: 8px; }
.compte .compte-choix button { display: grid; gap: 2px; text-align: start; padding: 14px 16px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--surface-solid); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s; }
.compte .compte-choix button:hover, .compte .compte-choix button:focus-visible { border-color: var(--accent); }
.compte .compte-choix small { color: var(--muted); font-size: .84rem; }
.compte fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.compte legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .9rem; }
.compte .compte-ages { display: flex; flex-wrap: wrap; gap: 8px; }
.compte .compte-ages label { flex: 1 1 140px; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r-m); border: 1.5px solid var(--line); cursor: pointer; }
.compte .compte-ages label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.compte .compte-ages input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.compte input[type="email"], .compte input.compte-code { width: 100%; box-sizing: border-box; font: 500 1rem var(--font); color: var(--text); padding: 14px 16px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--surface-solid); }
.compte input.compte-code { font-size: 1.4rem; letter-spacing: .3em; text-align: center; direction: ltr; }
.compte input[type="email"] { direction: ltr; }
.compte input[type="email"]:focus, .compte input.compte-code:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.compte .compte-accord { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: .88rem; cursor: pointer; }
.compte .compte-accord input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.compte .compte-etat { padding: 10px 12px; border-radius: var(--r-m); background: var(--accent-soft); font-size: .9rem; }
.compte .compte-danger { color: #dc2626; font-size: .88rem; }
.compte .btn.danger { background: #dc2626; box-shadow: none; }
.compte form[aria-busy="true"] { opacity: .65; cursor: progress; }

/* ---------- Sources, date de mise à jour et « Signaler une erreur » ---------- */
.fiche-conf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; font-size: .86rem; color: var(--muted); }
.fiche-conf span:first-child { color: var(--ok); font-weight: 600; }
.fiche-conf .linkish { font-size: .86rem; }
.src-mini { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.src-mini a { color: inherit; }
.src-box { display: grid; gap: 14px; padding: 16px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface-solid); }
.src-list { display: grid; gap: 12px; margin: 0; }
.src-list dt { margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.src-list dd { margin: 0; }
.src-maj { margin: 0; font-size: .88rem; }
.src-box .note { margin: 0; }
.src-signal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.signal .sig-quoi { color: var(--muted); }
.signal fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.signal legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .9rem; }
.signal legend .opt { font-weight: 400; color: var(--muted); }
.sig-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sig-chips label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; font-size: .86rem; cursor: pointer; }
.sig-chips label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.sig-chips input { margin: 0; accent-color: var(--accent); }
@media print { .fiche-conf .linkish, .src-signal { display: none !important; } }

/* ---------- Lexique : la page et les sigles soulignés ---------- */
abbr.lx, .lx-demo { text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 65%, transparent); }
abbr.lx { cursor: help; border-radius: 4px; }
abbr.lx:hover, abbr.lx:focus-visible { background: var(--accent-soft); outline: none; }
@media print { abbr.lx { text-decoration: none; } }
.lx-pop { width: min(440px, calc(100vw - 32px)); margin: auto auto max(16px, env(safe-area-inset-bottom)); padding: 0; border: 0; border-radius: var(--r-l); background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow-pop); }
@media (min-width: 681px) { .lx-pop { margin: auto; } }
.lx-pop::backdrop { background: rgba(10, 8, 20, .35); }
.lx-pop-in { display: grid; gap: 8px; padding: 18px 20px 14px; }
.lx-pop p { margin: 0; }
.lx-pop-t b { font-size: 1.15rem; }
.lx-pop-t span { display: block; color: var(--muted); font-size: .88rem; }
.lx-pop-b { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.lx-pop-b .lx-dire { margin-right: auto; }
.lx-dire { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1rem; }
.lx-rubs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.lx-rubs button { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface-solid); color: var(--text); font: 500 .86rem var(--font); cursor: pointer; }
.lx-rubs button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.lx-nb { margin: 14px 0 0; color: var(--muted); font-size: .86rem; }
.lx-lettre { margin: 22px 0 10px; font-size: 1.2rem; color: var(--accent); }
.lx-grille { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.lx-item { position: relative; padding: 14px 58px 14px 16px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface-solid); transition: border-color .3s, box-shadow .3s; }
.lx-item h3 { margin: 0; font-size: 1rem; }
.lx-item .lx-dire { position: absolute; top: 10px; right: 10px; }
.lx-s { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.lx-l { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; font-weight: 500; }
.lx-item p { margin: 8px 0 0; font-size: .95rem; }
.lx-item.lx-flash { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lx-vide { margin-top: 24px; text-align: center; color: var(--muted); }

/* ---------- « Créer mon compte » à côté du bouton principal de l'accueil ---------- */
.cta-rang { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 560px) { .cta { align-items: stretch; } .cta-rang { display: grid; } .cta .btn, .cta .quiz-btn { width: 100%; } }
.cta-compte { display: inline-flex; align-items: center; gap: 8px; }
.cta-compte svg { width: 20px; height: 20px; }
.cta-compte.connecte { color: var(--ok); }

/* ---------- Mon compte : âge tapé, choix e-mail ou SMS, numéro de téléphone ---------- */
.compte .compte-age-l { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.compte .compte-age-c { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.compte input.compte-age { width: 72px; box-sizing: border-box; padding: 10px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--surface-solid); color: var(--text); font: 600 1.15rem var(--font); text-align: center; }
.compte .compte-tel { display: flex; gap: 8px; direction: ltr; }
.compte .compte-tel select { width: auto; flex: 0 1 auto; max-width: 48%; padding: 12px 10px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--surface-solid); color: var(--text); font: inherit; }
.compte input[type="tel"] { flex: 1; min-width: 0; box-sizing: border-box; padding: 14px 16px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--surface-solid); color: var(--text); font: 500 1rem var(--font); }
.compte input.compte-age:focus, .compte input[type="tel"]:focus, .compte .compte-tel select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.compte .avis-f { grid-template-columns: minmax(0, 1fr); }
.compte .compte-tel select { min-width: 0; }

/* ---------- La communauté de ton lycée ---------- */
.com-carte { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface-solid); max-width: 640px; }
.com-carte label { font-weight: 600; font-size: .92rem; }
.com-carte input[type="text"], .com-carte select { width: 100%; box-sizing: border-box; }
.com-regles { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.com-b { display: flex; flex-wrap: wrap; gap: 10px; }
.com-res { position: static; margin: 0; }
.com-res li { cursor: pointer; }
.com-age { max-width: 90px; }
.com-attente, .com-vide { color: var(--muted); text-align: center; margin: 28px 0; }
.com-edit { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface-solid); margin-bottom: 14px; }
.com-edit textarea { width: 100%; box-sizing: border-box; padding: 12px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.com-edit textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.com-sujets { display: flex; flex-wrap: wrap; gap: 6px; }
.com-sujets label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .86rem; font-weight: 500; cursor: pointer; }
.com-sujets label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.com-sujets input { margin: 0; accent-color: var(--accent); }
.com-edit-b { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.com-rappel { margin-inline-end: auto; color: var(--muted); font-size: .8rem; }
.com-err:empty { display: none; }
.com-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 14px; }
.com-filtres button[data-comf] { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface-solid); color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.com-filtres button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.com-actu { margin-inline-start: auto; font-size: .85rem; }
.com-liste { display: grid; gap: 12px; }
.com-post { padding: 14px 16px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface-solid); }
.com-post header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.com-av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: hsl(var(--h) 55% 48%); }
.com-qui { display: flex; flex-direction: column; line-height: 1.2; }
.com-cl { color: var(--muted); font-size: .8rem; }
.com-quand { color: var(--muted); font-size: .8rem; }
.com-sujet { margin-inline-start: auto; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); font-size: .78rem; font-weight: 600; }
.com-texte { margin: 10px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.com-masque { margin: 8px 0 0; padding: 8px 10px; border-radius: var(--r-m); background: color-mix(in srgb, #f59e0b 16%, transparent); font-size: .84rem; }
.com-acts { display: flex; flex-wrap: wrap; gap: 14px; }
.com-acts .linkish { font-size: .84rem; }
.com-acts .com-discret { color: var(--muted); font-weight: 500; }
.com-reps { display: grid; gap: 8px; margin-top: 10px; padding-inline-start: 14px; border-inline-start: 3px solid var(--line); }
.com-reps:empty { display: none; }
.com-rep { padding: 10px 12px; border-radius: var(--r-m); background: var(--surface); }
.com-post .com-edit { margin: 10px 0 0; }

/* Écoles, concours et alternance d'une piste (js/29-acces.js) */
.eca { margin-top: 14px; border: 0; border-radius: var(--r-m); background: var(--surface-solid); overflow: hidden; }
.eca summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: .95rem; list-style: none; display: flex; align-items: center; gap: 8px; background: color-mix(in srgb, var(--c) 7%, transparent); }
.eca summary::-webkit-details-marker { display: none; }
.eca summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; color: var(--c); transition: transform .3s var(--ease); }
.eca[open] summary::after { transform: rotate(45deg); }
.eca-body { padding: 4px 16px 14px; display: grid; gap: 6px; }
.eca-body section + section { border-top: 1px dashed var(--line); padding-top: 6px; }
.eca h5 { margin: 10px 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.eca h6 { margin: 12px 0 6px; font-size: .86rem; }
.eca p { margin: 6px 0; font-size: .9rem; line-height: 1.5; }
.eca .eca-k { font-weight: 600; }
.eca .ec-form { display: block; color: var(--text); font-weight: 600; margin: 2px 0 3px; }
.eca .eca-ok { color: var(--ok); font-weight: 600; }
.eca-conc { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.eca-conc li { padding: 6px 10px; border-radius: var(--r-m); border: 1px solid var(--line); font-size: .86rem; display: grid; }
.eca-conc small { color: var(--muted); font-size: .76rem; }
.eca-faits { margin: 6px 0; padding-left: 18px; font-size: .88rem; line-height: 1.5; }
.eca-sal { width: 100%; border-collapse: collapse; margin: 8px 0 2px; font-size: .82rem; }
.eca-sal caption { text-align: left; font-weight: 600; font-size: .84rem; margin-bottom: 4px; }
.eca-sal th, .eca-sal td { padding: 5px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.eca-sal td small { display: block; color: var(--muted); font-size: .74rem; }
.eca-sal tr.moi { background: color-mix(in srgb, var(--c) 10%, transparent); }
.etab .pill.conc { background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }

/* « Tes réponses dans tes 5 pistes » (coherenceBlock, js/06-pistes.js) */
.coh ul { list-style: none; margin: 0; padding: 0 0 4px; display: grid; gap: 10px; }
.coh li { display: grid; gap: 4px; }
.coh .coh-t { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.coh .coh-c { display: flex; flex-wrap: wrap; gap: 6px; }
.coh .cc { font-size: .84rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.coh .cc b { font-variant-numeric: tabular-nums; }
.coh .cc.ok { background: color-mix(in srgb, var(--ok) 10%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.coh .cc.ok b { color: var(--ok); }
.coh .cc.ko { background: color-mix(in srgb, var(--warn) 10%, transparent); }
.coh .cc .linkish { font-size: .82rem; margin-left: 4px; }
.coh .note { margin: 6px 0 12px; }

/* Piste : l'essentiel visible, le reste dans « Plus de détails » */
.chemin { margin-top: 14px; }
.chemin .why-k { color: var(--c); }
.chemin ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chemin li { padding: 6px 11px; border-radius: var(--r-m); background: color-mix(in srgb, var(--c) 9%, var(--surface-solid)); font-size: .88rem; line-height: 1.35; }
.chemin li + li::before { content: "→"; color: var(--c); font-weight: 700; margin: 0 6px 0 -2px; }
.vigil { margin: 12px 0 0; padding: 9px 12px; border-radius: var(--r-m); background: color-mix(in srgb, var(--warn) 9%, transparent); font-size: .88rem; line-height: 1.45; }
.vigil small { color: var(--muted); }
.plus { margin-top: 14px; border-radius: var(--r-m); border: 0; background: var(--surface-solid); }
.plus > summary { cursor: pointer; list-style: none; padding: 12px 16px; font-weight: 700; color: var(--c); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; }
.plus > summary::-webkit-details-marker { display: none; }
.plus > summary::after { content: "▾"; grid-column: 2; grid-row: 1 / 3; font-size: 1.1rem; transition: transform .3s var(--ease); }
.plus[open] > summary::after { transform: rotate(180deg); }
.plus > summary small { grid-column: 1; font-weight: 500; color: var(--muted); font-size: .8rem; }
.plus-body { padding: 0 16px 14px; display: grid; gap: 16px; }
.plus-body > section > h4 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.plus-body .detail-pct { margin: 0; }
.plus-body .why-more { margin: 8px 0 0; padding-left: 18px; font-size: .88rem; }
.plus-body .eca { margin-top: 0; }
.plus-body .routes { margin-top: 0; }

/* Pastille de réalisme : petit point de couleur au lieu d'un emoji */
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.legend-real .real { display: inline-block; margin: 2px 2px; font-size: .74rem; }

/* Carte plus sobre : fond gris, repères numérotés, légende, rayon, boutons regroupés */
#map .fond-gris { filter: grayscale(1) contrast(.92) brightness(1.04); }
#map .leaflet-control-layers { font: 600 .78rem var(--font); border-radius: var(--r-s); border: 1px solid #e2e8f0; box-shadow: none; }
.map-tools { display: grid; gap: 10px; margin-bottom: 14px; }
.mt-groupe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-l { width: 72px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--fill); }
.seg button { font: 500 .85rem var(--font); padding: 6px 14px; border: 0; border-radius: 7px; background: none; color: var(--text); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--seg-sel); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.pin { width: 24px; height: 24px; border-radius: 50%; background: var(--pk); border: 2px solid #fff; box-shadow: var(--shadow-pop); color: #fff; font: 700 .7rem/20px var(--font); text-align: center; }
.pin.home { width: 16px; height: 16px; border-radius: 3px; background: #0f172a; border: 3px solid #fff; position: relative; }
.pin.home span { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); background: #0f172a; color: #fff; font: 700 .68rem var(--font); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.map-legende { background: rgba(255,255,255,.94); border: 1px solid #e2e8f0; border-radius: var(--r-s); padding: 6px 9px; font: 500 .7rem var(--font); color: #0f172a; display: grid; gap: 3px; }
.map-legende b { font-weight: 700; margin-bottom: 2px; }
.map-legende span { display: flex; align-items: center; gap: 6px; }
.map-legende i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.map-legende i.dep { border-radius: 2px; background: #0f172a; }
.map-legende em { font-style: normal; color: #64748b; margin-left: auto; padding-left: 8px; }
.leaflet-popup-content .pop-type { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.map-count { margin: 0 0 4px; font-size: .8rem; color: var(--muted); }
.spot { position: relative; padding-left: 46px; border-left-width: 1px; }
.spot-n { position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--sk); color: #fff; font: 700 .7rem/24px var(--font); text-align: center; }
.spot-type { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sk); margin-bottom: 2px; }
.times span { background: color-mix(in srgb, #64748b 10%, transparent); }
.times span.best { background: var(--accent); color: var(--on-accent); }
@media (max-width: 560px) { .mt-l { width: 100%; } }

/* « Affinons tes pistes » (js/30-affinage.js) */
.aff { margin: 0 0 18px; border: 0; border-radius: var(--r-l); background: var(--surface-solid); padding: 16px; }
.aff-tete { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; justify-content: space-between; }
.aff h3 { margin: 0 0 4px; font-size: 1.05rem; }
.aff-tete p { margin: 0; font-size: .9rem; color: var(--muted); max-width: 560px; }
.aff-etat { font-size: .78rem; font-weight: 700; color: var(--c); white-space: nowrap; }
.aff-d { margin-top: 12px; }
.aff-d > summary { cursor: pointer; list-style: none; display: inline-block; padding: 9px 16px; border-radius: var(--r-m); background: var(--c); color: #fff; font-weight: 700; font-size: .9rem; }
.aff-d > summary::-webkit-details-marker { display: none; }
.aff-d[open] > summary { background: none; color: var(--c); padding-left: 0; }
.aff-corps { display: grid; gap: 16px; margin-top: 10px; }
.aff-m h4 { margin: 0 0 8px; font-size: .95rem; }
.aff-m h4 small { color: var(--muted); font-weight: 600; }
.aff-q { display: grid; gap: 6px; padding: 8px 0; border-top: 1px dashed var(--line); }
.aff-q p { margin: 0; font-size: .9rem; }
.aff-q .seg { justify-self: start; }
.aff-fin { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Résultats compacts : listes groupées qu'on ouvre au toucher ---------- */
.results .res-head h2 { font-size: 2.125rem; margin: 6px 0 0; }
.res-metro { margin: 20px auto 4px; max-width: 640px; }
.res-h3 { font-size: 1.25rem; font-weight: 700; margin: 28px 0 4px; }
.res-aide { margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.picks { display: block; border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.pk + .pk, .dd + .dd { border-top: .5px solid var(--line); }
.pk > summary, .dd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; }
.pk > summary::-webkit-details-marker, .dd > summary::-webkit-details-marker { display: none; }
.pk > summary::after, .dd > summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin: -4px 4px 0 0;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.pk[open] > summary::after, .dd[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pk > summary:hover, .dd > summary:hover { background: var(--fill); }
.pk-rang { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--muted); font: 700 .85rem var(--font); }
.picks .pk:first-child .pk-rang { background: var(--accent); color: var(--on-accent); }
.pk-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pk-t b { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.pk-t small { font-size: .85rem; color: var(--muted); }
.pk-t .pk-k { font-size: .75rem; font-weight: 600; color: var(--accent); }
.pk-t .real { background: none; padding: 0; font-size: inherit; font-weight: 600; }
.pk-pct { flex: none; font: 700 1.0625rem var(--font); color: var(--accent); font-variant-numeric: tabular-nums; }
.pk-corps { padding: 0 16px 16px 56px; }
.pk-corps .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.pk-corps .why-box { margin-top: 6px; }
.pk-d { margin: 0; color: var(--muted); font-size: .92rem; }
ul.vigil { list-style: none; display: grid; gap: 4px; }
.pk .plus { background: var(--bg); }
.pk .pick-actions { border-top: 0; padding-top: 0; }
.dd-groupe { margin-top: 28px; border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.dd-t { flex: 1; font-weight: 600; }
.dd > summary small { color: var(--muted); font-size: .9rem; }
.dd-corps { padding: 2px 16px 16px; }
.dd-corps > p { margin: 0 0 10px; font-size: .92rem; }
.dd-corps .profile-chips { margin-top: 0; }
.dd-corps .radius { margin-top: 12px; }
.dd-corps .prec-bar { margin: 14px 0 8px; }
.res-etab { margin: 12px 0 0; font-size: .92rem; }
.res-etab .stat { display: block; }
.res-conseil { margin-top: 14px; padding-top: 12px; border-top: .5px solid var(--line); }
.res-conseil p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.dd .todo { gap: 0; }
.dd .todo li { background: none; border: 0; border-radius: 0; padding: 10px 0; }
.dd .todo li + li { border-top: .5px solid var(--line); }
.aids-l { list-style: none; margin: 0; padding: 0; }
.aid-l { padding: 10px 0; }
.aid-l + .aid-l { border-top: .5px solid var(--line); }
.aid-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.aid-h span { flex: none; font-weight: 600; color: var(--accent); }
.aid-l .for-you { font-size: .72rem; font-weight: 700; color: var(--ok); margin-left: 4px; }
.aid-l p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
.results .aff { margin: 28px 0 0; }
.results .res-actions { margin-top: 28px; }
@media (max-width: 560px) {
  .pk-corps { padding-left: 16px; }
  .results .res-head h2 { font-size: 1.75rem; }
}
.pk .pick-actions .btn { min-height: 36px; padding: 8px 14px; font-size: .88rem; }
.pk .plus > summary { color: var(--text); font-weight: 600; }
.pk .plus > summary::after {
  content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.pk .plus[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
