/* Polices Weldon, hébergées (pas d'appel à Google : l'application s'ouvre même avec un réseau lent). */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/fonts/PlusJakartaSans.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/fonts/WorkSans.woff2") format("woff2"); }

/* Weldon — couleurs vives et chaleureuses (vert, soleil, corail) sur fond clair légèrement vert.
   Mise en page : barre latérale sur ordinateur/tablette, barre d'onglets en bas sur téléphone. */
:root {
  --bg: #f5fbf6;
  --surface: #ffffff;
  --surface-2: #eff5f0;
  --ink: #12201a;
  --muted: #56685e;
  --line: #d8e3da;
  --green: #08804f;
  --green-ink: #ffffff;
  --green-soft: #d6f2e3;
  --sun: #ffc21a;
  --sun-soft: #fff1c4;
  --coral: #e8453a;
  --coral-soft: #fde1dd;
  --indigo: #3949c7;
  --indigo-soft: #e0e4ff;
  --amber: #c77700;
  --amber-soft: #ffeccc;
  --shadow: 0 1px 2px rgb(18 32 26 / 6%), 0 6px 20px rgb(18 32 26 / 7%);
  --font-display: "Plus Jakarta Sans", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  --radius-sm: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1511;
    --surface: #15201a;
    --surface-2: #1c2a22;
    --ink: #e6f0e9;
    --muted: #98aea1;
    --line: #26372d;
    --green: #2fbf84;
    --green-ink: #06140d;
    --green-soft: #143826;
    --sun: #ffcf45;
    --sun-soft: #3a3110;
    --coral: #ff6a5c;
    --coral-soft: #3e1915;
    --indigo: #8f9bff;
    --indigo-soft: #1f2450;
    --amber: #ffb547;
    --amber-soft: #3a2a0d;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1511;
  --surface: #15201a;
  --surface-2: #1c2a22;
  --ink: #e6f0e9;
  --muted: #98aea1;
  --line: #26372d;
  --green: #2fbf84;
  --green-ink: #06140d;
  --green-soft: #143826;
  --sun: #ffcf45;
  --sun-soft: #3a3110;
  --coral: #ff6a5c;
  --coral-soft: #3e1915;
  --indigo: #8f9bff;
  --indigo-soft: #1f2450;
  --amber: #ffb547;
  --amber-soft: #3a2a0d;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- Structure ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100%; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 20px 14px;
  display: flex; flex-direction: column; gap: 22px;
  border-right: 1px solid var(--line); background: var(--surface);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--green); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); font-weight: 700; text-align: left; cursor: pointer;
}
.nav button svg { width: 22px; height: 22px; flex: none; }
.nav button:hover { background: var(--surface-2); color: var(--ink); }
.nav button[aria-current="page"] { background: var(--green-soft); color: var(--green); }
.nav .lock { margin-left: auto; width: 16px; height: 16px; opacity: 0.7; }
.sidebar-foot { margin-top: auto; }

.main { min-width: 0; padding-inline: clamp(16px, 4vw, 44px); padding-block: 22px 110px; }
.topbar { display: none; }
.view { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }

/* ---------- Composants ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-sun { background: var(--sun); color: #1d1600; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); }
.btn-danger { background: var(--coral); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: center;
  padding: clamp(20px, 4vw, 34px); border-radius: 22px;
  background: var(--green); color: var(--green-ink);
}
.hero h1 { color: inherit; }
.hero p { opacity: 0.92; max-width: 46ch; margin-top: 10px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero .btn-ghost { border-color: currentColor; color: inherit; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-stat { background: rgb(255 255 255 / 14%); border-radius: var(--radius); padding: 14px; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 0.85rem; opacity: 0.9; }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; }
.section-head p { max-width: 60ch; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.card-click { cursor: pointer; text-align: left; box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease; }
.card-click:hover { transform: translateY(-2px); border-color: var(--green); }
.card .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em;
}
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-indigo { background: var(--indigo-soft); color: var(--indigo); }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-red { background: var(--coral-soft); color: var(--coral); }
.tag-sun { background: var(--sun-soft); color: var(--amber); }
.tag-line { border: 1px solid var(--line); color: var(--muted); }

.sigle {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.02em;
}
.c-indigo { background: var(--indigo-soft); color: var(--indigo); }
.c-green { background: var(--green-soft); color: var(--green); }
.c-amber { background: var(--amber-soft); color: var(--amber); }
.c-red { background: var(--coral-soft); color: var(--coral); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-weight: 700; cursor: pointer; color: var(--muted);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.year { display: flex; flex-direction: column; gap: 10px; }
.year-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.year-label::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }

/* Contenu verrouillé : flouté avec un cadenas */
.locked { position: relative; }
.locked .blur { filter: blur(5px); user-select: none; pointer-events: none; }
.lock-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: color-mix(in srgb, var(--surface) 35%, transparent); border-radius: inherit; padding: 12px;
}
.lock-overlay .lock-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 0.88rem; box-shadow: var(--shadow);
}

.fiche { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fiche .card h3 { margin-bottom: 2px; }
.kv { display: grid; gap: 10px; }
.kv div { display: grid; gap: 2px; }
.kv dt { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
ul.clean { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--sun-soft); color: var(--ink); font-size: 0.92rem;
}
.notice svg { width: 20px; height: 20px; flex: none; color: var(--amber); margin-top: 2px; }

.back { align-self: flex-start; border: 0; background: none; color: var(--muted); font-weight: 800; cursor: pointer; padding: 4px 0; display: inline-flex; gap: 6px; align-items: center; }
.back:hover { color: var(--green); }

/* Texte des sujets et corrigés */
.paper {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 4vw, 34px); white-space: pre-wrap; line-height: 1.7; max-width: 72ch;
  font-size: 1.02rem;
}
.paper.ruled {
  background-image: repeating-linear-gradient(transparent 0 calc(1.7em - 1px), var(--line) calc(1.7em - 1px) 1.7em);
  background-color: var(--surface);
  background-position: 0 clamp(18px, 4vw, 34px);
}

/* ---------- Salle d'examen ---------- */
.exam-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.exam-steps span { padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.exam-steps span.on { background: var(--green); color: var(--green-ink); }

.countdown {
  font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, 14vw, 6rem); line-height: 1; letter-spacing: -0.03em; text-align: center;
}
.prep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.prep .card { justify-content: center; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist label { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 600; }
.checklist input { width: 20px; height: 20px; accent-color: var(--green); }

.exam-bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--radius); background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
}
.exam-bar .timer { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.2rem); font-variant-numeric: tabular-nums; }
.exam-bar.warn { background: var(--coral); color: #fff; }
.exam-bar .progress { flex: 1 1 160px; height: 8px; border-radius: 99px; background: color-mix(in srgb, currentColor 22%, transparent); overflow: hidden; min-width: 120px; }
.exam-bar .progress i { display: block; height: 100%; background: var(--sun); width: 0; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photos figure { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; max-width: 100%; }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos button { position: absolute; top: 6px; right: 6px; border: 0; border-radius: 99px; width: 28px; height: 28px; background: var(--ink); color: var(--bg); cursor: pointer; font-weight: 800; }
.drop {
  display: grid; place-items: center; gap: 6px; text-align: center; padding: 22px;
  border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; color: var(--muted); font-weight: 700;
}
.drop:hover { border-color: var(--green); color: var(--green); }

.score { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.score-ring {
  --p: 50; width: 112px; height: 112px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--surface-2) 0);
  display: grid; place-items: center;
}
.score-ring div { width: 86px; height: 86px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.score-ring b { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.score-ring small { color: var(--muted); font-weight: 700; }
.fb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.fb-good h3 { color: var(--green); }
.fb-bad h3 { color: var(--coral); }

/* ---------- Abonnement ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgb(8 14 11 / 55%); }
.modal-box {
  width: min(520px, 100%); max-height: calc(100% - 32px); overflow: auto;
  background: var(--surface); border-radius: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.modal-head { padding: 22px 22px 18px; background: var(--sun); color: #1d1600; display: flex; flex-direction: column; gap: 6px; position: relative; }
.modal-head .price { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.modal-head .price small { font-size: 1rem; font-weight: 700; }
.modal-close { position: absolute; top: 12px; right: 12px; border: 0; background: rgb(0 0 0 / 10%); width: 34px; height: 34px; border-radius: 99px; cursor: pointer; font-size: 1.1rem; color: inherit; }
.modal-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.perks svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.form { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: 0.82rem; font-weight: 800; color: var(--muted); }
.field input {
  width: 100%; padding: 11px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg);
}
.field input:focus { border-color: var(--green); outline: none; }
.pay-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.err { color: var(--coral); font-weight: 700; font-size: 0.9rem; }
.ok { color: var(--green); font-weight: 700; }
.linkish { background: none; border: 0; padding: 0; color: var(--green); font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
}

.status-pill { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); }

/* ---------- Téléphone ---------- */
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
    padding: 10px 16px; background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  }
  .main { padding-block: 16px 110px; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .tabbar button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 1px;
    border: 0; background: none; color: var(--muted); font-size: 0.64rem; font-weight: 800; cursor: pointer; border-radius: 10px;
  }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar button[aria-current="page"] { color: var(--green); background: var(--green-soft); }
  .hero, .fiche, .prep { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: 1fr; }
}
@media (min-width: 821px) { .tabbar { display: none; } }

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

/* ---------- Connexion et choix de section ---------- */
.auth { min-height: 100%; display: grid; place-items: center; padding-inline: 16px; padding-block: 32px; }
.auth-card {
  width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(20px, 5vw, 32px); display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow);
}
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.seg button { border: 0; background: none; padding: 9px 8px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.section-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  padding: 16px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--bg);
}
.section-card:hover { border-color: var(--green); }
.section-card > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.section-flag {
  width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; background: var(--green); color: var(--green-ink);
}
.section-card[data-lang="en"] .section-flag { background: var(--indigo); color: #fff; }
.section-pill {
  border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px;
  font-weight: 800; font-size: 0.8rem; color: var(--muted); cursor: pointer; text-align: left;
}
.section-pill:hover { border-color: var(--green); color: var(--green); }
.icon-btn { width: 38px; height: 38px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.btn-sm { padding: 7px 14px; font-size: 0.9rem; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 99px; display: grid; place-items: center; background: var(--green); color: var(--green-ink); font-family: var(--font-display); font-weight: 800; }
.ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Écoles et sessions ---------- */
.group { display: flex; flex-direction: column; gap: 10px; }
.group-label { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.session { display: flex; flex-direction: column; gap: 10px; }
.paper-list { display: grid; gap: 8px; }
.paper-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
}
.paper-row:hover { border-color: var(--green); }
.paper-row > span:first-child { display: grid; gap: 2px; }
.paper-row .row { display: flex; align-items: center; gap: 8px; flex: none; }
.lock-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 0.82rem; white-space: nowrap;
}

/* ---------- Protection du contenu ---------- */
.protected { position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.paper.protected { overflow: hidden; }
.paper-text { position: relative; white-space: pre-wrap; }
.watermark {
  position: absolute; inset: -40px; display: flex; flex-wrap: wrap; align-content: space-around; gap: 60px 40px;
  transform: rotate(-24deg); pointer-events: none; opacity: 0.13; color: var(--ink);
  font-weight: 800; font-size: 0.85rem; white-space: nowrap; z-index: 0;
}
.shield-screen {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; text-align: center; padding: 24px;
  background: var(--bg); color: var(--ink);
}
.shield-screen svg { width: 56px; height: 56px; }
.shield-screen > div { display: grid; gap: 10px; justify-items: center; max-width: 36ch; }
body.shielded .shield-screen { display: grid; }
body.shielded .app { filter: blur(24px); }
@media print { body { display: none !important; } }

/* ---------- Répertoire des concours ---------- */
.search {
  width: 100%; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit;
}
.search:focus { outline: none; border-color: var(--green); }
.sigle-long { font-size: 0.62rem; letter-spacing: 0; padding-inline: 4px; text-align: center; overflow-wrap: anywhere; }
.chip .muted { font-weight: 700; opacity: 0.75; }
.chip[aria-pressed="true"] .muted { color: inherit; }

/* ---------- Auto-correction ---------- */
.score-grid { display: grid; gap: 0; }
.score-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.score-row { align-items: flex-start; }
.score-row label { min-width: 0; font-weight: 600; }
.score-row .crit { min-width: 0; display: grid; gap: 4px; }
.score-row .score-input { padding-top: 2px; }
.levels { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: 0.86rem; color: var(--muted); }
.grid-block { display: grid; }
.grid-block + .grid-block { margin-top: 14px; }
.grid-head {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--green-soft, rgba(9, 140, 90, 0.1)); color: var(--ink); font-variant-numeric: tabular-nums;
}
.grid-aide { margin: 8px 0 0; color: var(--muted); }
.score-input { flex: none; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.score-input input {
  width: 64px; padding: 8px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; font-weight: 800; text-align: center;
}
.score-input input:focus { outline: none; border-color: var(--green); }

/* ---------- Photos des concours ---------- */
.concours-banner {
  position: relative; margin: 0; overflow: hidden; border-radius: 18px;
  aspect-ratio: 16 / 6; max-width: 100%; display: grid; place-items: center;
}
.concours-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.concours-banner figcaption {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 99px;
  background: rgb(0 0 0 / 55%); color: #fff; font-size: 0.7rem; font-weight: 700;
}
.card.has-photo { padding-top: 0; overflow: hidden; }
.card-photo { width: calc(100% + 36px); margin: 0 -18px; aspect-ratio: 16 / 7; max-width: none; object-fit: cover; display: block; }
@media (max-width: 820px) { .concours-banner { aspect-ratio: 16 / 8; } }

/* ---------- Orientation : « Quel concours pour moi ? » ---------- */
.field select {
  width: 100%; padding: 11px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg);
}
.field select:focus { border-color: var(--green); outline: none; }
.interests { border: 0; padding: 0; margin: 0; min-width: 0; }
.interests legend { font-size: 0.82rem; font-weight: 800; color: var(--muted); padding: 0; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick span {
  display: block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 700; color: var(--muted); font-size: 0.9rem;
}
.pick input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pick input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.orient-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.orient-cta h2 { margin: 0 0 4px; }
.orient-cta p { margin: 0; max-width: 56ch; }
.profil-summary { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.profil-summary .chips { flex-wrap: wrap; overflow: visible; }
.orient-group { display: grid; gap: 12px; }
.orient-group h2 { margin: 6px 0 0; }
.results { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.result { gap: 10px; align-content: start; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.reasons li { display: flex; gap: 8px; align-items: flex-start; }
.reasons li > span:first-child { flex: none; width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; font-size: 0.75rem; font-weight: 900; }
.r-ok > span:first-child { background: var(--green); color: var(--green-ink); }
.r-ko > span:first-child { background: var(--coral); color: #fff; }
.r-chk > span:first-child { background: var(--sun); color: #1d1600; }
.row-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fold { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 10px; }
.fold > summary { cursor: pointer; }
.fold[open] > summary { margin-bottom: 10px; }
.access .kv ul { margin: 0; }
.sources a { word-break: break-all; }
.scam { border-left: 4px solid var(--sun); }
.access .kv dd { font-weight: 500; }
.access .kv dt { margin-top: 4px; }

/* ---------- Signalement d'erreur, espace concepteur ---------- */
.btn-small { padding: 6px 12px; font-size: 0.85rem; }
.field textarea {
  width: 100%; padding: 11px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); font: inherit; resize: vertical;
}
.field textarea:focus { border-color: var(--green); outline: none; }

/* ---------- Choix de la formule d'abonnement ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan {
  display: grid; gap: 2px; justify-items: start; text-align: left; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 2px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink);
}
.plan span { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.plan small { color: var(--green); font-weight: 800; }
.plan[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); }

/* ---------- Confidentialité, promesses, compte ---------- */
.legal { display: grid; gap: 14px; }
.legal h3 { margin: 0 0 4px; }
.legal p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; padding-top: 4px; font-size: 0.9rem; }
.linkish.danger { color: var(--coral); }

/* ---------- Calendrier, suivi, annonces ---------- */
.cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.new-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 4px solid var(--sun); }
.new-banner p { margin: 4px 0 0; }
.follow.on { background: var(--sun-soft); border-color: var(--sun); }
.star { border: 0; background: none; cursor: pointer; font-size: 1.15rem; line-height: 1; color: var(--muted); padding: 2px 4px; }
.star.on { color: var(--amber, #b7791f); }
.ann-list { display: grid; gap: 10px; }
.ann { gap: 6px; }
.ann.mine { border-left: 4px solid var(--green); }
.ann-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; font-weight: 700; }
.legend-item { display: inline-flex; gap: 6px; align-items: center; }
.cal-wrap { overflow-x: auto; }
table.cal { border-collapse: separate; border-spacing: 0; min-width: 640px; width: 100%; }
table.cal th, table.cal td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); font-size: 0.8rem; }
table.cal th.sticky { position: sticky; left: 0; background: var(--surface); text-align: left; padding-left: 8px; min-width: 96px; z-index: 1; }
table.cal .cal-name { display: flex; gap: 4px; align-items: center; justify-content: space-between; }
table.cal .cur { background: var(--sun-soft); }
i.ph { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin: 0 1px; vertical-align: middle; }
i.ph-lancement { background: var(--indigo); }
i.ph-depot { background: var(--sun); }
i.ph-epreuves { background: var(--green); }
.draft { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.draft-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.draft-actions select { max-width: 200px; padding: 6px 8px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); }

/* ---------- Entraînement : quiz, révisions, concours blanc ---------- */
.question { gap: 14px; }
.question h2 { margin: 0; font-size: clamp(1.1rem, 2.6vw, 1.35rem); line-height: 1.35; }
.options { display: grid; gap: 10px; }
.option {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 600;
}
.option:hover:not(:disabled) { border-color: var(--green); }
.option .letter {
  flex: none; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
  background: var(--bg); border: 1.5px solid var(--line);
}
.option.picked { border-color: var(--green); background: var(--green-soft); }
.option.good { border-color: var(--green); background: var(--green-soft); }
.option.good .letter { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.option.bad { border-color: var(--coral); background: var(--coral-soft); }
.option.bad .letter { background: var(--coral); color: #fff; border-color: var(--coral); }
.option:disabled { cursor: default; opacity: 1; }
.feedback { padding: 14px; border-radius: var(--radius-sm); display: grid; gap: 8px; }
.feedback.ok { background: var(--green-soft); }
.feedback.ko { background: var(--coral-soft); }
.feedback p { margin: 0; font-weight: 500; }
.progress-line { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-line i { display: block; height: 100%; background: var(--green); transition: width 0.3s; }
.qdots { display: flex; flex-wrap: wrap; gap: 6px; }
.qdot { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 800; cursor: pointer; }
.qdot.done { background: var(--green-soft); color: var(--ink); border-color: var(--green); }
.qdot.cur { outline: 3px solid var(--sun); outline-offset: 1px; }
.theme-rows { display: grid; gap: 10px; }
.theme-row { display: grid; grid-template-columns: minmax(110px, 1.1fr) 2fr minmax(90px, 1fr); gap: 10px; align-items: center; font-weight: 700; }
.bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); }
.bar i.low { background: var(--coral); }
.bar i.mid { background: var(--sun); }
.dots { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; max-width: 520px; }
.dot { aspect-ratio: 1; border-radius: 3px; background: var(--line); }
.dot.on { background: var(--green); }
.review { gap: 6px; }
.bad-text { color: var(--coral); font-weight: 800; }
.good-text { color: var(--green); font-weight: 800; }
@media (max-width: 560px) { .theme-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Mon plan ---------- */
.paper-row.static { cursor: default; }
.paper-row.static:hover { transform: none; }
.plan-day { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plan-day.today { background: var(--sun-soft); border-radius: var(--radius-sm); padding-inline: 10px; }
.plan-day ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; font-size: 0.92rem; }
#reminder-time { padding: 8px 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); font: inherit; }

/* ---------- Concours en pause (cycle de plusieurs années) ---------- */
.pause-alts { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--sun-soft); }
.pause-alts p { margin: 0; }
table.cal tr.pause th.sticky, table.cal tr.pause td { opacity: 0.55; }

/* Drapeaux : police embarquée (les drapeaux emoji ne s'affichent pas sous Windows sans elle). */
@font-face { font-family: "Twemoji Country Flags"; unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F, U+E007F, U+200D; src: url("/fonts/TwemojiCountryFlags.woff2") format("woff2"); font-display: swap; }
.flag { font-family: "Twemoji Country Flags", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
/* ---------- Bourses d'études ---------- */
.space-switch { display: flex; gap: 6px; padding: 4px; width: min(360px, 100%); margin: 0 auto 14px max(0px, calc((100% - 980px) / 2)); border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); }
.space-switch button { flex: 1; border: 0; background: none; padding: 9px 14px; border-radius: 999px; font-weight: 800; color: var(--muted); cursor: pointer; }
.space-switch button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.ticker { overflow: hidden; border-radius: 999px; background: linear-gradient(90deg, var(--green-soft), var(--indigo-soft), var(--sun-soft)); border: 1.5px solid var(--line); padding: 6px 0; }
.ticker-track { display: inline-block; white-space: nowrap; padding-left: 100%; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.tick { border: 0; padding: 7px 16px; margin: 0 5px; border-radius: 999px; font-weight: 800; color: #fff; cursor: pointer; font-size: 0.92rem; background: var(--indigo); box-shadow: 0 2px 6px rgb(18 32 26 / 18%); }
.tick:hover { filter: brightness(1.1); transform: translateY(-1px); }
.tick-cloture_proche { background: linear-gradient(135deg, #e8453a, #ff7a45); }
.tick-ouverte { background: linear-gradient(135deg, #08804f, #1fb673); }
.tick-a_venir { background: linear-gradient(135deg, #3949c7, #7a5af5); }
.tick-expiree { background: linear-gradient(135deg, #6b7a72, #8d9a93); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; padding-left: 0; white-space: normal; display: flex; flex-wrap: wrap; } }
.bcard { position: relative; padding: 0; gap: 0; }
.bcard-main { display: grid; gap: 6px; text-align: left; border: 0; background: none; padding: 16px 48px 16px 16px; cursor: pointer; color: var(--ink); width: 100%; }
.bcard .star { position: absolute; top: 8px; right: 8px; font-size: 1.4rem; padding: 6px 8px; }
.bcard.past { opacity: 0.8; }
.chips-inline { display: flex; gap: 6px; flex-wrap: wrap; }
.bstatus { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
i.ph-bopen { background: var(--green); }
i.ph-bprob { background: var(--sun); }
.scam h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; }
.scam h3 svg { width: 20px; height: 20px; flex: none; color: var(--amber, #b7791f); }

/* Bourses : à la une, types, pays, verrouillage */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.hscroll > * { scroll-snap-align: start; min-width: 0; }
.branch-pick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.tile { position: relative; display: grid; gap: 4px; text-align: left; padding: 14px 52px 14px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); cursor: pointer; font: inherit; }
.tile:hover { border-color: var(--green); }
.tile b { font-family: var(--font-display); }
.tile-n { position: absolute; top: 12px; right: 12px; min-width: 32px; text-align: center; padding: 3px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 0.85rem; }
.bvalue { color: var(--ink); font-weight: 600; }
.unlock-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--sun-soft); border-color: var(--sun); }
.unlock-banner > div { display: flex; gap: 10px; align-items: flex-start; min-width: 0; flex: 1 1 220px; }
.unlock-banner > div > span { display: grid; gap: 2px; }
.unlock-banner svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.lockcard { background: var(--surface-2); border-style: dashed; }
.lockcard h3 { display: flex; align-items: center; gap: 8px; }
.lockcard h3 svg { width: 18px; height: 18px; }
.blur { display: grid; gap: 8px; margin: 8px 0; filter: blur(3px); opacity: 0.6; user-select: none; }
.blur i { display: block; height: 10px; border-radius: 6px; background: var(--muted); }
.blur i:nth-child(2) { width: 85%; }
.blur i:nth-child(3) { width: 60%; }
.alert-card { background: var(--coral-soft); border-color: var(--coral); }
.search { display: flex; gap: 8px; align-items: center; }
.search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font: inherit; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }

/* Défilement en boucle des bourses à la une (pause au toucher/survol, immobile si l'utilisateur préfère moins d'animation) */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; padding: 2px 0 10px; animation: marquee-run 90s linear infinite; }
.marquee-track > * { width: min(78vw, 320px); flex: none; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee:active .marquee-track { animation-play-state: paused; }
@keyframes marquee-run { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; } .marquee-track { animation: none; } }

/* Retour tactile : on voit qu'on a appuyé, et quelle section est active */
button:not(:disabled) { transition: transform 0.08s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
button:not(:disabled):active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--green); color: var(--green-ink); border-color: var(--green); box-shadow: 0 2px 8px rgb(8 128 79 / 35%); }
.tile:active, .section-card:active, .bcard:active { transform: scale(0.98); }
.tile:hover, .section-card:hover { box-shadow: 0 6px 18px rgb(8 128 79 / 18%); border-color: var(--green); }
.bcard { transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.08s ease; }
.bcard:hover { box-shadow: 0 6px 18px rgb(18 32 26 / 14%); border-color: var(--green); }
.space-switch button[aria-pressed="true"], .space-switch .on { box-shadow: 0 3px 10px rgb(18 32 26 / 30%); }

/* Bourses : panneaux publicitaires */
.ad { overflow: hidden; border: 0; box-shadow: 0 4px 16px rgb(18 32 26 / 14%); }
.ad-head { display: flex; align-items: center; gap: 10px; padding: 10px 44px 10px 14px; color: #fff; background: linear-gradient(135deg, var(--ad-a), var(--ad-b)); }
.ad.tone-gouvernementale { --ad-a: #05724a; --ad-b: #12a3a0; }
.ad.tone-universitaire { --ad-a: #3340b8; --ad-b: #7a4ad8; }
.ad.tone-fondation { --ad-a: #c26a00; --ad-b: #e8453a; }
.ad-iso.flag { font-size: 1.35rem; letter-spacing: 0; }
.ad-iso { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / 22%); border: 2px solid rgb(255 255 255 / 70%); font-weight: 900; font-size: 0.8rem; letter-spacing: 0.04em; }
.ad-country { font-weight: 800; flex: 1; min-width: 0; line-height: 1.2; }
.ad-badge { padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 20%); font-weight: 800; font-size: 0.78rem; white-space: nowrap; }
.ad-badge.full { background: var(--sun); color: #1b1500; box-shadow: 0 2px 8px rgb(0 0 0 / 20%); }
.ad .star { top: 4px; color: #fff; }
.ad .star.on { color: var(--sun); }
.ad .bcard-main { padding: 14px 16px 16px; gap: 8px; }
.ad-title { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; }
.ad-org { color: var(--muted); font-size: 0.88rem; }
.ad-value { font-weight: 800; color: var(--green); font-size: 0.95rem; }
.ad-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 8px; padding: 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.ad-grid i { display: block; font-style: normal; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ad-grid b { display: block; font-size: 0.88rem; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.ad-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ad-cta { margin-left: auto; font-weight: 900; color: var(--green); }
.ad:hover .ad-cta { text-decoration: underline; }
@media (max-width: 420px) { .ad-grid { grid-template-columns: 1fr 1fr; } .ad-grid span:last-child { grid-column: 1 / -1; } }

/* Fiche : pièces et étapes dépliables */
.doclist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.doc, .doc-plain { border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.doc-plain { display: flex; gap: 10px; padding: 10px 12px; align-items: flex-start; }
.doc summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; font-weight: 700; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "›"; margin-left: auto; font-size: 1.4rem; transition: transform 0.15s; color: var(--green); }
.doc[open] summary::after { transform: rotate(90deg); }
.doc[open] { border-color: var(--green); box-shadow: 0 2px 10px rgb(8 128 79 / 15%); }
.doc-t { flex: 1; min-width: 0; }
.doc-how { font-size: 0.72rem; font-weight: 800; color: var(--green); background: var(--green-soft); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.doc-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--green-ink); font-weight: 900; font-size: 0.8rem; flex: none; }
.doc-body { padding: 4px 14px 14px; display: grid; gap: 8px; border-top: 1px dashed var(--line); }
.doc-h { font-weight: 900; margin: 8px 0 0; }
.doc-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.doc-tip { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--sun-soft); margin: 0; }
.doc-model { border: 1.5px solid var(--indigo); border-radius: var(--radius-sm); padding: 8px 12px; background: var(--indigo-soft); }
.doc-model summary { cursor: pointer; font-weight: 800; color: var(--indigo); }
.doc-model pre { white-space: pre-wrap; word-break: break-word; font-family: var(--font-body); font-size: 0.88rem; margin: 10px 0; padding: 12px; background: var(--surface); border-radius: var(--radius-sm); max-height: 360px; overflow: auto; }

/* ---------- Habillage : plus de couleur et de relief ---------- */
.btn-primary { background: linear-gradient(135deg, #08804f, #12a368); border-color: transparent; box-shadow: 0 4px 14px rgb(8 128 79 / 28%); }
.btn-sun { background: linear-gradient(135deg, #ffc21a, #ff9a3c); color: #2a1a00; box-shadow: 0 4px 14px rgb(255 154 60 / 30%); }
.btn { transition: transform 0.12s, box-shadow 0.12s, filter 0.12s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.card { border-radius: 18px; transition: transform 0.15s, box-shadow 0.15s; }
.bcard:hover, .marquee-track > *:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgb(18 32 26 / 14%); }
.space-switch button[aria-selected="true"] { background: linear-gradient(135deg, #08804f, #3949c7); color: #fff; }
.doclist .doc-n { background: linear-gradient(135deg, #3949c7, #7a5af5); color: #fff; }
.doc-opt { color: var(--amber); font-weight: 700; }
.notice { background: linear-gradient(135deg, var(--sun-soft), var(--coral-soft)); }
.wm { position: fixed; inset: -20% -20%; z-index: 40; pointer-events: none; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; transform: rotate(-24deg); user-select: none; }
.wm span { font-size: 0.78rem; font-weight: 800; color: var(--ink); opacity: 0.06; padding: 18px 26px; white-space: nowrap; }

/* ---------- Accueil des concours : recherche, tuiles, annonces ---------- */
.hero { background: linear-gradient(135deg, #064e3b 0%, #08804f 45%, #3949c7 100%); }
.hero-search { display: flex; align-items: center; gap: 10px; margin-top: 18px; background: #fff; color: #12201a; border-radius: 999px; padding: 6px 8px 6px 18px; box-shadow: 0 10px 30px rgb(0 0 0 / 22%); max-width: 520px; }
.hero-search svg { width: 20px; height: 20px; flex: none; color: #56685e; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.02rem; padding: 10px 0; color: #12201a; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cat-tile { display: grid; gap: 4px; text-align: left; border: 0; border-radius: 16px; padding: 14px; color: #fff; cursor: pointer; font: inherit; box-shadow: var(--shadow); transition: transform 0.12s, box-shadow 0.12s, outline-color 0.12s; outline: 3px solid transparent; outline-offset: 2px; }
.cat-tile b { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.cat-tile span { font-weight: 800; font-size: 0.88rem; line-height: 1.25; }
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile[aria-pressed="true"] { outline-color: var(--ink); }
.cat-0 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.cat-1 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.cat-2 { background: linear-gradient(135deg, #be123c, #fb7185); }
.cat-3 { background: linear-gradient(135deg, #6d28d9, #a78bfa); }
.cat-4 { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.cat-5 { background: linear-gradient(135deg, #12201a, #3f5a4b); }
.trust { display: flex; gap: 8px; overflow-x: auto; list-style: none; padding: 2px 0 4px; margin: 0; scrollbar-width: none; }
.trust li { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; background: var(--green-soft); color: var(--green); }
.trust li svg { width: 16px; height: 16px; }
.trust-1 { background: var(--indigo-soft); color: var(--indigo); }
.trust-2 { background: var(--sun-soft); color: var(--amber); }
.trust-3 { background: var(--coral-soft); color: var(--coral); }
.ann-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.ann-card { flex: none; width: min(78vw, 270px); display: grid; gap: 6px; align-content: start; text-align: left; border: 0; border-radius: 16px; padding: 14px; background: var(--surface); box-shadow: var(--shadow); border-top: 5px solid var(--indigo); cursor: pointer; font: inherit; color: var(--ink); scroll-snap-align: start; }
.ann-card b { line-height: 1.3; }
.ann-kind { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--indigo); }
.ann-lancement { border-top-color: var(--green); } .ann-lancement .ann-kind { color: var(--green); }
.ann-depot { border-top-color: var(--coral); } .ann-depot .ann-kind { color: var(--coral); }
.ann-epreuves { border-top-color: var(--amber); } .ann-epreuves .ann-kind { color: var(--amber); }
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .hero-stat { padding: 10px 8px; }
  .hero-stat b { font-size: 1.25rem; }
  .hero-stat span { font-size: 0.68rem; line-height: 1.2; display: block; }
}

/* ---------- Réglages, bourses, suivi ---------- */
.hero-b { background: linear-gradient(135deg, #4c1d95 0%, #3949c7 50%, #0f766e 100%); }
.hero-b .hero-search .btn { flex: none; }
.cat-sub { font-weight: 600; font-size: 0.76rem; opacity: 0.9; }
.set-card { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2); margin-top: 12px; }
.set-card h3 { margin: 0; font-size: 1rem; }
.settings-head { display: flex; gap: 14px; align-items: center; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); }
.seg-btn { border: 0; background: none; padding: 9px 6px; border-radius: 999px; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: linear-gradient(135deg, #08804f, #3949c7); color: #fff; }
.topbar .icon-btn svg { width: 20px; height: 20px; }
.check-card h3 { margin: 0 0 8px; }
.progress { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #08804f, #2dd4bf); transition: width 0.3s; }
.checklist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.check-row[aria-pressed="true"] { background: var(--green-soft); border-color: var(--green); }
.check-row[aria-pressed="true"] > span:last-child { text-decoration: line-through; opacity: 0.7; }
.check-box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; background: var(--surface); color: #fff; }
.check-row[aria-pressed="true"] .check-box { background: var(--green); border-color: var(--green); }
.check-box svg { width: 16px; height: 16px; }
.check-card.ready { border: 2px solid var(--green); }
.ready-box { margin-top: 12px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--sun-soft), var(--green-soft)); display: grid; gap: 8px; }
@media (max-width: 480px) {
  .topbar .tag { display: none; }
  .topbar .icon-btn { width: 36px; height: 36px; }
  .topbar > div:last-child { gap: 6px !important; }
  .set-card .status-pill { padding: 0; background: none; border: 0; box-shadow: none; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
}

.inline-link { border: 0; background: var(--green-soft); color: var(--green); font: inherit; font-weight: 800; padding: 0 7px; border-radius: 8px; cursor: pointer; }
.inline-link:hover { text-decoration: underline; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #fff; background: var(--green); border-radius: 50%; padding: 3px; }
/* Les icônes dans les boutons gardent une taille normale (réglages, déconnexion, installation). */
.btn svg { width: 20px; height: 20px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat-box { background: linear-gradient(135deg, #064e3b, #3949c7); color: #fff; border-radius: 14px; padding: 12px; }
.stat-box b { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.stat-box span { font-size: 0.8rem; opacity: 0.9; }
.mono { font-family: var(--font-mono); font-size: 1.1rem; letter-spacing: 0.04em; user-select: all; }

/* ---------- Espace concepteur simplifié ---------- */
.adm-guest { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, var(--sun-soft), var(--green-soft)); margin: 8px 0 14px; }
.adm-guest h3 { margin: 0; }
.seg3, .seg4 { display: grid; gap: 6px; }
.seg3 { grid-template-columns: repeat(3, 1fr); }
.seg4 { grid-template-columns: repeat(5, 1fr); }
.seg-radio { position: relative; }
.seg-radio input { position: absolute; opacity: 0; inset: 0; }
.seg-radio span { display: block; text-align: center; padding: 10px 4px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; font-size: 0.85rem; cursor: pointer; }
.seg-radio input:checked + span { background: linear-gradient(135deg, #08804f, #3949c7); color: #fff; border-color: transparent; }
.seg-radio input:focus-visible + span { outline: 3px solid var(--indigo); outline-offset: 2px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row .btn { flex: 1 1 auto; }
details.adm { border: 1.5px solid var(--line); border-radius: 14px; margin: 8px 0; background: var(--surface); }
details.adm > summary { padding: 14px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.adm > summary::after { content: "+"; font-size: 1.3rem; color: var(--green); }
details.adm[open] > summary::after { content: "–"; }
details.adm > summary::-webkit-details-marker { display: none; }
.adm-body { padding: 0 14px 14px; display: grid; gap: 10px; }
.adm-body h3, .adm-body h4 { margin: 0; }
.pw-wrap { display: flex; align-items: center; gap: 8px; }
.pw-wrap input { flex: 1; min-width: 0; }
.ok { color: var(--green); font-weight: 700; }
.doc-file { background: var(--sun-soft); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.doc-file code { font-family: var(--font-mono); font-weight: 700; word-break: break-all; }
.tagline { margin: 4px 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.25; background: linear-gradient(135deg, #08804f, #3949c7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline span { font-size: 0.85rem; font-weight: 700; opacity: 0.85; }
button.hero-stat { border: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; transition: transform 0.12s, background 0.12s; }
button.hero-stat:hover { background: rgb(255 255 255 / 24%); transform: translateY(-2px); }
button.hero-stat b { display: block; }

.space-switch { position: sticky; top: 8px; z-index: 20; box-shadow: 0 4px 14px rgb(18 32 26 / 12%); }

/* ---------- Connexion : présentation professionnelle ---------- */
.auth-pro { padding: 0; min-height: 100vh; display: grid; grid-template-columns: 1fr; place-items: stretch; align-content: start; background: var(--bg); }
.auth-pro .auth-hero {
  color: #fff; padding: 28px 22px 64px; display: flex; flex-direction: column; gap: 10px;
  background: radial-gradient(120% 90% at 100% 0%, #3949c7 0%, rgb(57 73 199 / 0%) 60%), linear-gradient(135deg, #06683f, #08804f 55%, #0b9a63);
}
.auth-pro .auth-hero .brand-name { color: #fff; }
.auth-pro .auth-hero .brand-name span { color: var(--sun); }
.auth-pro .auth-hero h1 { font-size: clamp(1.5rem, 6vw, 2.3rem); margin-top: 10px; }
.auth-pro .ah-en { margin: 0; opacity: 0.8; font-size: 0.9rem; }
.auth-points { list-style: none; margin: 14px 0 0; padding: 0; display: none; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; }
.auth-points li > span:last-child { display: grid; gap: 1px; font-size: 0.9rem; }
.auth-points b { font-family: var(--font-display); font-size: 1rem; }
.auth-points small { opacity: 0.75; font-size: 0.78rem; }
.ap-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; background: rgb(255 255 255 / 16%); display: grid; place-items: center; }
.ap-ic svg { width: 20px; height: 20px; }
.auth-pro .auth-card { width: min(460px, calc(100% - 32px)); margin: -44px auto 28px; position: relative; gap: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--line); }
.auth-tabs button { border: 0; background: none; padding: 10px 6px 12px; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; margin-bottom: -2px; border-bottom: 3px solid transparent; display: grid; gap: 1px; }
.auth-tabs button small { font-weight: 600; font-size: 0.72rem; opacity: 0.85; }
.auth-tabs button[aria-selected="true"] { color: var(--green); border-bottom-color: var(--green); }
.auth-title { font-size: 1.4rem; display: grid; gap: 2px; }
.auth-title small, .field label small { font-family: var(--font-body, inherit); font-weight: 600; font-size: 0.78rem; color: var(--muted); letter-spacing: 0; }
.field label small { display: inline; margin-left: 6px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 92px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-2); color: var(--green); font-weight: 800; font-size: 0.78rem; padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.auth-links { margin: 0; text-align: center; }
.auth-pro .auth-card input { height: 50px; font-size: 1rem; }
@media (min-width: 900px) {
  .auth-pro { grid-template-columns: 1.1fr 1fr; align-content: stretch; }
  .auth-pro .auth-hero { padding: 56px clamp(32px, 6vw, 88px); justify-content: center; gap: 14px; min-height: 100vh; }
  .auth-pro .auth-hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.1rem); }
  .auth-points { display: grid; margin-top: 28px; }
  .auth-pro .auth-card { margin: auto; width: min(440px, calc(100% - 48px)); box-shadow: var(--shadow); }
}
@media (max-width: 899px) { .auth-points { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; } .auth-points small { display: none; } .auth-points li > span:last-child span { display: none; } .ap-ic { width: 32px; height: 32px; } }

.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.lang-switch button { border: 0; background: none; font: inherit; font-weight: 800; font-size: 0.78rem; padding: 6px 11px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--green); color: var(--green-ink); }
.sidebar .lang-switch { align-self: flex-start; }
.warn-banner { margin: 0 0 12px; border: 1.5px solid var(--sun); background: var(--sun-soft); display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; }

/* ---------- Espace Opportunités ---------- */
.center { text-align: center; }
.opp-hero { display: grid; gap: 22px; padding: clamp(22px, 5vw, 44px); border-radius: 26px; color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(90% 120% at 100% 0%, rgb(255 194 26 / 28%) 0%, rgb(255 194 26 / 0%) 55%), linear-gradient(135deg, #14185f 0%, #1c3d8f 45%, #08804f 100%); }
.opp-kicker { display: inline-block; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; background: rgb(255 255 255 / 16%); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.opp-hero h1 { font-size: clamp(1.9rem, 6.5vw, 3.2rem); max-width: 18ch; letter-spacing: -0.02em; }
.opp-hero p { max-width: 56ch; opacity: 0.92; margin: 12px 0 0; font-size: clamp(0.98rem, 2.6vw, 1.1rem); }
.opp-search { display: flex; gap: 8px; margin-top: 20px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: 0 10px 30px rgb(0 0 0 / 22%); max-width: 620px; }
.opp-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 16px; height: 46px; font-size: 1rem; color: #12201a; outline: none; }
.opp-search .btn { border-radius: 999px; }
.opp-hero-stats { display: flex; gap: clamp(16px, 5vw, 44px); flex-wrap: wrap; }
.opp-hero-stats b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1; }
.opp-hero-stats span { font-size: 0.85rem; opacity: 0.85; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.country-tile { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s; }
.country-tile:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow); }
.country-tile[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); }
.country-tile .flag { font-size: 1.9rem; line-height: 1; }
.country-tile b { display: block; font-size: 0.95rem; }
.country-tile small { color: var(--muted); font-size: 0.78rem; }
.opp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; margin-top: 12px; }
.opp-card { --accent: #08804f; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 18px; padding: 18px; box-shadow: 0 1px 0 rgb(0 0 0 / 3%); transition: transform 0.12s, box-shadow 0.12s; }
.opp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-c-0 { --accent: #3949c7; } .cat-c-1 { --accent: #08804f; } .cat-c-2 { --accent: #c8631a; } .cat-c-3 { --accent: #b8264b; } .cat-c-4 { --accent: #7a3fc4; } .cat-c-5 { --accent: #0e8c9c; }
.opp-card-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.opp-cat { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.opp-card h3 { font-size: 1.12rem; line-height: 1.25; }
.opp-org { margin: 0; font-size: 0.86rem; color: var(--muted); font-weight: 700; }
.opp-sum { margin: 0; font-size: 0.92rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.opp-fil { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 0.86rem; }
.opp-fil li { display: flex; gap: 6px; align-items: center; }
.opp-fil svg { width: 14px; height: 14px; color: var(--green); flex: none; }
.opp-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.opp-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
@media (min-width: 900px) { .opp-hero { grid-template-columns: 1.4fr 1fr; align-items: end; } .opp-hero-stats { justify-content: flex-end; } }
.opp-hero { grid-template-columns: minmax(0, 1fr); }
.opp-hero > div { min-width: 0; }
.opp-hero-stats { flex-wrap: nowrap; }
.view, .main { min-width: 0; }
@media (max-width: 520px) {
  .topbar .brand-name { display: none; }
  .topbar .lang-switch button { padding: 5px 9px; }
  .topbar .tag { display: none; }
  .opp-search { flex-direction: column; border-radius: 22px; }
  .opp-search .btn { width: 100%; }
  .opp-search input { height: 44px; }
}
@media (min-width: 900px) { .opp-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* ---------- Présentation commune aux trois espaces ---------- */
.qtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin-top: 12px; }
.qtile { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); text-decoration: none; transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s; }
.qtile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--green); }
.qtile > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.qtile b { font-family: var(--font-display); font-size: 1.02rem; }
.qtile small { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.qtile > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.qt-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.qt-ic svg { width: 24px; height: 24px; }
.qtile-feat { grid-column: 1 / -1; background: linear-gradient(135deg, #08804f, #3949c7); color: #fff; border-color: transparent; }
.qtile-feat small, .qtile-feat > svg { color: rgb(255 255 255 / 85%); }
.qtile-feat .qt-ic { background: rgb(255 255 255 / 18%); color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.orient-group > h2, .section-head h2 { font-size: clamp(1.25rem, 3.4vw, 1.6rem); }
.hero { border-radius: 26px; box-shadow: 0 14px 40px rgb(18 32 26 / 16%); }

/* ---------- Photos libres de droits (Unsplash) sous voile de couleur ---------- */
.has-img { background-image: linear-gradient(120deg, rgb(6 40 34 / 90%) 0%, rgb(20 24 95 / 78%) 55%, rgb(8 128 79 / 55%) 100%), var(--img); background-size: cover; background-position: center; }
.hero.has-img, .hero-b.has-img, .opp-hero.has-img, .auth-hero.has-img { background-image: linear-gradient(120deg, rgb(6 40 34 / 88%) 0%, rgb(20 24 95 / 74%) 55%, rgb(8 128 79 / 50%) 100%), var(--img); background-size: cover; background-position: center; }
.page-hero { border-radius: 24px; padding: clamp(22px, 5vw, 40px); color: #fff; box-shadow: 0 12px 34px rgb(18 32 26 / 16%); }
.page-hero h1 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); color: #fff; max-width: 20ch; letter-spacing: -0.02em; }
.page-hero p { margin: 10px 0 0; max-width: 58ch; opacity: 0.93; }
.page-hero .opp-kicker, .fiche-hero .opp-kicker, .hero .opp-kicker { color: #fff; }
.fiche-hero { border-radius: 24px; padding: clamp(18px, 4.5vw, 34px); color: #fff; display: grid; gap: 18px; box-shadow: 0 12px 34px rgb(18 32 26 / 16%); }
.fh-top { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.fh-title { flex: 1; min-width: min(100%, 240px); }
.fh-title h1 { color: #fff; font-size: clamp(1.45rem, 5vw, 2.3rem); letter-spacing: -0.02em; }
.fh-title p { margin: 8px 0 0; opacity: 0.9; }
.fh-sigle { width: 72px; height: 72px; border-radius: 20px; flex: none; display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 6px 18px rgb(0 0 0 / 28%); }
.fh-flag { background: #fff; font-size: 2.4rem; }
.fh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.fh-fact { background: rgb(255 255 255 / 14%); border: 1px solid rgb(255 255 255 / 22%); border-radius: 16px; padding: 12px 14px; backdrop-filter: blur(4px); }
.fh-fact small { display: block; opacity: 0.8; font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 800; }
.fh-fact b { display: block; margin-top: 4px; font-size: 0.95rem; line-height: 1.3; }
.fiche-hero .btn-ghost, .fiche-hero .follow { color: #fff; border-color: rgb(255 255 255 / 60%); background: rgb(255 255 255 / 10%); }
.fiche .card > h3, .fiche article.card > h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.fiche .card > h3::before { content: ""; width: 5px; height: 1.1em; border-radius: 4px; background: linear-gradient(180deg, #08804f, #3949c7); flex: none; }
.fiche aside.card { position: sticky; top: 16px; align-self: start; border-top: 5px solid var(--green); }
@media (max-width: 899px) { .fiche aside.card { position: static; } }

/* Image légèrement floutée sous le texte (fiches de bourses, pages pays) : elle oriente sans gêner la lecture */
.has-img.softimg { position: relative; overflow: hidden; isolation: isolate; background-image: none; }
.has-img.softimg::before { content: ""; position: absolute; inset: -10px; z-index: -1; background: linear-gradient(120deg, rgb(6 30 40 / 82%), rgb(20 24 95 / 70%) 60%, rgb(8 90 70 / 60%)), var(--img) center / cover; filter: blur(3px); }
.card-thumb { display: block; height: 78px; margin: -16px -16px 12px; border-radius: 16px 16px 0 0; background-size: cover; background-position: center; opacity: 0.95; }
.card.card-click { overflow: hidden; }
.filter-block { display: grid; gap: 6px; margin-top: 10px; }
.filter-block > b { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.opp-search-light { background: var(--surface); border: 1.5px solid var(--line); box-shadow: none; max-width: none; }
.opp-search-light input { color: var(--ink); }

/* ---------- Opportunités : accueil façon portail (bientôt clos, à la une, rangées par catégorie) ---------- */
.dchip { display: inline-block; font-size: 0.74rem; font-weight: 800; padding: 4px 10px; border-radius: 8px; letter-spacing: 0.02em; }
.dchip-hot { background: #fde1dd; color: #b3261e; } .dchip-warm { background: #fff1c4; color: #8a5a00; } .dchip-ok { background: #d6f2e3; color: #08663f; } .dchip-on { background: #e2e8ff; color: #2a3a9e; } .dchip-off { background: var(--surface-2); color: var(--muted); }
.opp-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; margin-top: 10px; }
.opp-mini { display: grid; gap: 6px; align-content: start; text-align: left; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.opp-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.opp-mini b { font-size: 0.95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.opp-mini small { color: var(--muted); }
.opp-feature { display: grid; gap: 14px; margin-top: 10px; }
.opp-big { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 280px; text-align: left; padding: 22px; border-radius: 22px; color: #fff; border: 0; cursor: pointer; font: inherit; overflow: hidden; background-image: linear-gradient(180deg, rgb(6 20 30 / 5%) 0%, rgb(6 20 30 / 88%) 100%), var(--img); background-size: cover; background-position: center; box-shadow: 0 12px 30px rgb(18 32 26 / 18%); }
.opp-big b { font-family: var(--font-display); font-size: clamp(1.25rem, 3.6vw, 1.8rem); line-height: 1.2; }
.opp-big small { opacity: 0.9; font-size: 0.92rem; max-width: 60ch; }
.opp-cat-pill { align-self: flex-start; background: var(--sun); color: #2b2100; font-weight: 800; font-size: 0.74rem; padding: 4px 10px; border-radius: 999px; }
.opp-side { display: grid; gap: 10px; align-content: start; }
.opp-side-item { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; }
.opp-side-item:hover { border-color: var(--green); }
.opp-side-item > span:last-child { display: grid; gap: 2px; min-width: 0; }
.opp-side-item b { font-size: 0.92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opp-side-item small { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.05em; }
.opp-side-thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; background-size: cover; background-position: center; }
.row-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent, #08804f); margin-right: 10px; }
.opp-row { --accent: #08804f; }
.opp-alert { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: clamp(20px, 4vw, 32px); border-radius: 24px; color: #fff; background: linear-gradient(135deg, #b3261e, #e8453a); }
.opp-alert h2 { color: #fff; } .opp-alert p { margin: 6px 0 0; opacity: 0.92; max-width: 52ch; }
.opp-filters { gap: 4px; }
@media (min-width: 900px) { .opp-feature { grid-template-columns: 1.4fr 1fr; } .opp-big { min-height: 340px; } }
.bchip-row { display: block; margin-bottom: 8px; }

/* Rangées de l'accueil : défilement horizontal (cartes de largeur fixe) pour que la page reste courte et lisible sur téléphone */
.opp-row .opp-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; margin-right: -4px; -webkit-overflow-scrolling: touch; }
.opp-row .opp-card { flex: 0 0 min(82vw, 310px); scroll-snap-align: start; }
.opp-row .opp-sum { -webkit-line-clamp: 3; }
.opp-row .opp-grid::-webkit-scrollbar { height: 6px; }
.opp-row .opp-grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.icon-btn.has-badge { position: relative; }
.badge-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e8453a; color: #fff; font-size: 0.7rem; font-weight: 800; display: grid; place-items: center; }
.check-row { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; }
.check-row { flex-direction: row !important; align-items: center !important; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.check-row input { width: 20px; height: 20px; flex: none; margin: 0; }
.chips label.chip { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.chips label.chip input { margin: 0; }

/* Petits écrans (360 px) : la colonne de connexion ne doit jamais être plus large que l'écran (les champs ont une largeur propre qui élargissait la page) */
.auth-pro { grid-template-columns: minmax(0, 1fr); }
.auth-pro > * { min-width: 0; }
.auth-pro .auth-card input, .auth-pro .auth-card select, .auth-pro .auth-card textarea { min-width: 0; width: 100%; box-sizing: border-box; }
@media (min-width: 900px) { .auth-pro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
/* Tous les formulaires : deux colonnes qui peuvent rétrécir (sinon, à 360 px, la largeur propre des champs élargit la page) ; une colonne sur très petit écran */
.form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 420px) { .form { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
  .topbar [data-theme-toggle] { display: none; } /* le thème se change dans « Mon compte > Apparence » ; la barre du haut doit tenir sur un écran de 360 px */
  .topbar .btn-sm { padding-inline: 12px; }
}
@media (max-width: 420px) {
  .topbar { padding-inline: 12px; gap: 6px; }
  .topbar > div { gap: 6px !important; }
  .topbar .icon-btn { width: 34px; height: 34px; }
  .topbar .lang-switch button { padding: 5px 8px; font-size: 0.74rem; }
  .topbar .btn-sm { padding: 7px 11px; font-size: 0.78rem; }
  .topbar .brand svg, .topbar .brand img { width: 34px; height: 34px; }
}

/* ---------- Confiance : promesse, pastille source officielle ---------- */
.auth-pro .ah-promise { margin: 0; font-size: 1.05rem; line-height: 1.4; font-weight: 600; max-width: 34ch; }
.ah-verify { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 45%); background: rgb(255 255 255 / 14%); color: #fff; font: inherit; font-weight: 700; font-size: 0.82rem; cursor: pointer; }
.ah-verify svg { width: 16px; height: 16px; }
.official-badge { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 0.88rem; margin: 4px 0 10px; }
.official-badge svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.official-badge a { color: inherit; font-weight: 700; overflow-wrap: anywhere; }
.lead-sum { margin: 0; font-size: 1.05rem; line-height: 1.5; font-weight: 600; }

/* ---------- Typographie Weldon : titres Plus Jakarta Sans, texte Work Sans ---------- */
h1, h2, h3, h4 { letter-spacing: 0; word-spacing: 0.06em; }
h1 { letter-spacing: -0.01em; }
.check-row > span:last-child { font-weight: 500; }
b, strong { font-weight: 700; }

/* ---------- Fiche d'un concours (nouvelle présentation) ---------- */
.fiche-main { display: grid; gap: 14px; min-width: 0; }
.fiche-aside { min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-head h3 { font-size: 1.12rem; }
.pill { flex: none; display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 0.78rem; white-space: nowrap; }
.pill-ok { background: var(--green); color: var(--green-ink); }
h4.sub { font-family: var(--font-display); font-size: 0.92rem; margin: 8px 0 2px; color: var(--muted); font-weight: 700; }

.fh2 { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 14px; }
.fh2-media { position: relative; min-height: 190px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; color: #fff; }
.fh2-media h1 { color: #fff; font-size: clamp(1.4rem, 5.4vw, 2.1rem); line-height: 1.12; text-shadow: 0 1px 12px rgb(0 0 0 / 35%); }
.fh2-chips { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fh2-sigle { padding: 4px 12px; border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; background: var(--green); color: var(--green-ink); }
.chip-glass { padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / 88%); color: #12201a; font-weight: 700; font-size: 0.78rem; }
.fh2-actions { position: absolute; top: 12px; right: 12px; }
.fh2-actions .btn { padding: 6px 12px; min-height: 36px; background: rgb(255 255 255 / 92%); color: #12201a; border-color: transparent; }
.fh2-chips { right: 120px; }
.fh2-body { padding: 14px; display: grid; gap: 12px; }
.fh2-org { margin: 0; display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink); }
.fh2-org svg { flex: none; width: 20px; height: 20px; color: var(--green); }
.fh2-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.fh2-facts > div { display: grid; justify-items: center; gap: 1px; padding: 9px 4px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.fh2-facts svg { width: 20px; height: 20px; color: var(--green); }
.fh2-facts b { font-family: var(--font-display); font-size: 1.05rem; }
.fh2-facts small { color: var(--muted); font-size: 0.74rem; font-weight: 600; }
.lead-sum { background: var(--green-soft); color: var(--green); padding: 11px 14px; border-radius: 12px; font-size: 0.98rem; line-height: 1.45; }

.vcard { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; }
.vcard > svg { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.vcard > div { display: grid; gap: 3px; min-width: 0; font-size: 0.92rem; }
.vcard a { color: inherit; font-weight: 700; overflow-wrap: anywhere; }
.vcard .linkish { justify-self: start; }
.vcard-ok { background: var(--green-soft); color: var(--green); }
.vcard-warn { background: var(--amber-soft); color: var(--amber); }
.vcard-warn span { color: var(--ink); }

.rows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.rows li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.row-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--green); box-shadow: 0 1px 2px rgb(18 32 26 / 8%); }
.row-ic svg { width: 19px; height: 19px; }
.rows li > span:last-child { display: grid; gap: 1px; min-width: 0; }
.rows small { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.rows small.plain { font-size: 0.92rem; font-weight: 400; color: var(--ink); }
.rows b { overflow-wrap: anywhere; font-weight: 600; font-size: 0.96rem; line-height: 1.4; }

.paper-cards { display: grid; gap: 10px; margin-top: 8px; }
.paper-card { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); display: grid; gap: 8px; }
.pc-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.coef { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--green); color: var(--green-ink); font-weight: 700; font-size: 0.78rem; }
.pc-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.pc-meta span { display: inline-flex; gap: 6px; align-items: center; }
.pc-meta svg { width: 17px; height: 17px; }
.warn-txt { color: var(--coral); font-weight: 700; }

.prog { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.prog h4 { display: flex; gap: 10px; align-items: center; margin: 0 0 6px; font-size: 1rem; }
.prog-k { width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 0.78rem; font-weight: 800; }
.dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 6px; }
.dates > div { background: var(--surface-2); border-radius: 12px; padding: 9px 12px; display: grid; gap: 1px; }
.dates small { color: var(--muted); font-weight: 600; font-size: 0.78rem; }
details.more { margin-top: 8px; }
details.more > summary { list-style: none; cursor: pointer; justify-content: center; width: 100%; }
details.more > summary::-webkit-details-marker { display: none; }

/* Barre d'action fixe (téléphone) : au-dessus de la barre d'onglets */
.fiche-bar { display: none; }
@media (max-width: 820px) {
  .fiche-bar { position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 19; display: flex; gap: 8px; padding: 10px 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .fiche-bar .btn { flex: 1 1 0; min-width: 0; justify-content: center; min-height: 46px; padding-inline: 8px; font-size: 0.9rem; white-space: normal; text-align: center; line-height: 1.15; }
  .fiche-bar svg { width: 18px; height: 18px; }
  .fiche.has-bar { padding-bottom: 72px; }
  .fiche-aside .btn { display: none; }
}

/* ---------- Liste des épreuves : une carte par épreuve ---------- */
.pc2-list { display: grid; gap: 12px; }
.pc2 { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.pc2.is-open { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.pc2-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pc2-badges .tag svg { width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; }
.pc2 h3 { font-size: 1.12rem; line-height: 1.25; }
.pc2-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 0.9rem; }
.pc2-meta span { display: inline-flex; gap: 5px; align-items: center; }
.pc2-meta svg { width: 16px; height: 16px; }
.lang-chip { padding: 1px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 0.8rem; }
.pc2 .btn { width: 100%; justify-content: center; min-height: 46px; }
.pc2 .btn svg { width: 17px; height: 17px; }

/* Onglets Sujet / Corrigé */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); width: min(100%, 320px); }
.seg button { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.seg button svg { width: 16px; height: 16px; }
.seg button[aria-selected="true"] { background: var(--green); color: var(--green-ink); box-shadow: 0 2px 6px rgb(8 128 79 / 25%); }

/* Cartes de concours : fiabilité et repères */
.trust-tag { margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 0.8rem; justify-self: start; }
.trust-tag svg { width: 15px; height: 15px; flex: none; }
.trust-ok { background: var(--green-soft); color: var(--green); }
.trust-warn { background: var(--amber-soft); color: var(--amber); }
.metrics { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 8px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.metrics > div { display: grid; gap: 1px; min-width: 0; }
.metrics small { color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.metrics b { font-family: var(--font-display); font-size: 0.95rem; overflow-wrap: anywhere; }

/* Verdicts d'éligibilité */
.verdict { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; justify-self: start; align-self: flex-start; }
.verdict svg { width: 16px; height: 16px; }
.verdict-ok { background: var(--green-soft); color: var(--green); }
.verdict-maybe { background: var(--amber-soft); color: var(--amber); }
.verdict-no { background: var(--surface-2); color: var(--muted); }
.orient-count { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 0.95rem; }
.verdict-closed { background: var(--surface-2); color: var(--ink); }
.chip-open { background: var(--green) !important; color: var(--green-ink) !important; }
.chip-closed, .chip-done { background: rgb(255 255 255 / 88%); color: #7a4a00 !important; }

/* Fenêtre d'abonnement : ce qui reste gratuit, engagements */
.pay-free { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 0.92rem; }
.pledges { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.pledges li { display: flex; gap: 8px; align-items: flex-start; }
.pledges svg { flex: none; width: 17px; height: 17px; color: var(--green); margin-top: 2px; }
.space-switch { width: min(440px, 100%); }
.space-switch button { min-width: 0; padding-inline: 6px; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh2-facts b { font-size: 0.92rem; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .fh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fh-fact { padding: 9px 11px; border-radius: 14px; }
  .fh-fact b { font-size: 0.88rem; }
}

/* Filtres de la liste des épreuves */
.fchips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 4px -2px 8px; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; white-space: nowrap; }
.fchip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--green-ink); }
