/* Pages publiques de licences.cyberial.fr : direction C du dashboard Cyberial (maquette c-etoile) : titres-phrases,
   bandes de chiffres à filets, registres sans cartes, rubriques à deux colonnes, l'étoile (etoile.js).
   Polices servies ici (CSP default-src 'self') : Inter, Libre Baskerville, JetBrains Mono (fontsource), Asap 900. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/polices/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/polices/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/polices/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/polices/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-display: swap; src: url(/polices/libre-baskerville-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-style: italic; font-display: swap; src: url(/polices/libre-baskerville-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 700; font-display: swap; src: url(/polices/libre-baskerville-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(/polices/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/polices/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Asap; font-weight: 900; font-display: swap; src: url(/polices/asap-latin-900-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #faf9f5; --surface: #fff; --surface-2: #f3f1eb; --ink: #1d1c1a; --ink-2: #45433f; --muted: #6b6862;
  --line: #e7e4dc; --line-strong: #d4d0c5;
  --yellow: #e8c158; --yellow-hover: #d4ad4a; --yellow-soft: #f7efd6; --yellow-ink: #8a6812; --on-yellow: #1d1c1a;
  --star: #e8c158; --star-edge: #c99f3a; --star-eye: #1d1c1a; --star-hi: #faf9f5; --star-filter: none; --objet: #1d1c1a;
  --danger: #b4412c; --danger-soft: #f8e3dc; --ok: #4a7a3a; --ok-soft: #e3eedb;
  --night: #1d1c1a; --night-ink: #faf9f5; --night-muted: #b9b4aa; --night-halo: rgba(232, 193, 88, .32);
  --shadow: 0 30px 60px -28px rgba(29, 28, 26, .38); --focus: #1d1c1a;
  --serif: "Libre Baskerville", Georgia, serif; --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace; --brand: Asap, Inter, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12110f; --surface: #1b1a17; --surface-2: #22201c; --ink: #f3f1eb; --ink-2: #d3cfc5; --muted: #a39f95;
    --line: #2d2b26; --line-strong: #3d3a33; --yellow-soft: #3a3120; --yellow-ink: #efcd6f;
    --star-edge: #f3d681; --star-filter: drop-shadow(0 0 14px rgba(232, 193, 88, .55)); --objet: #f3f1eb;
    --danger: #ff9078; --danger-soft: #3c1f18; --ok: #9fcf86; --ok-soft: #1e2b18;
    --night: #0a0908; --night-halo: rgba(232, 193, 88, .26); --shadow: 0 30px 60px -28px rgba(0, 0, 0, .7); --focus: #e8c158;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12110f; --surface: #1b1a17; --surface-2: #22201c; --ink: #f3f1eb; --ink-2: #d3cfc5; --muted: #a39f95;
  --line: #2d2b26; --line-strong: #3d3a33; --yellow-soft: #3a3120; --yellow-ink: #efcd6f;
  --star-edge: #f3d681; --star-filter: drop-shadow(0 0 14px rgba(232, 193, 88, .55)); --objet: #f3f1eb;
  --danger: #ff9078; --danger-soft: #3c1f18; --ok: #9fcf86; --ok-soft: #1e2b18;
  --night: #0a0908; --night-halo: rgba(232, 193, 88, .26); --shadow: 0 30px 60px -28px rgba(0, 0, 0, .7); --focus: #e8c158;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; }
.eyebrow { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- bandeau et pied ---------- */
.bandeau { display: flex; align-items: center; gap: 18px; padding: 16px max(24px, calc((100% - 1120px) / 2)); border-bottom: 1px solid var(--line); }
.marque { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.marque__etoile { width: 26px; height: 26px; overflow: visible; filter: var(--star-filter); }
.marque__etoile path { fill: var(--star); }
.marque__nom { font: 900 18px/1 var(--brand); letter-spacing: .02em; }
.bandeau__titre { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-left: 18px; border-left: 1px solid var(--line); }
.bandeau__liens { margin-left: auto; display: flex; gap: 22px; }
.bandeau__liens a { font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.bandeau__liens a:hover { text-decoration: underline; }
.tel-court { display: none; }
main { max-width: 1168px; margin: 0 auto; padding: 48px 24px 80px; }
.pied { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 22px max(24px, calc((100% - 1120px) / 2)) 34px; }

/* ---------- en-tête éditorial ---------- */
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.phead > div { flex: 1 1 520px; min-width: 0; }
.phead h1 { font-size: 40px; line-height: 1.15; margin: 8px 0 8px; }
.lead { color: var(--muted); font-size: 15px; max-width: 64ch; }
.lead strong { color: var(--ink-2); font-weight: 600; }
.phead__etoile { width: 150px; height: 150px; flex: none; margin: -12px 8px -6px 0; }
.jaune { font-style: italic; font-weight: 400; color: var(--yellow-ink); }

/* ---------- étoile ---------- */
.etoile { display: block; overflow: visible; filter: var(--star-filter); }
.st-shape { fill: var(--star); }
.st-eye { fill: var(--star-eye); }
.st-hi { fill: var(--star-hi); }
.st-obj { fill: none; stroke: var(--objet); stroke-width: .055; stroke-linecap: round; stroke-linejoin: round; }
.st-obj--plein { fill: var(--surface); }
.st-trait { stroke: var(--star); stroke-width: .06; stroke-linecap: round; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 14.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink); }
.btn-y { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.btn-y:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.92); border-color: var(--danger); }
.btn-lien { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; cursor: pointer; }
.btn-lien:hover { text-decoration-color: currentColor; }
.lien-action { font-weight: 600; font-size: 13.5px; color: var(--ink-2); }

/* ---------- bandes de chiffres ---------- */
.filets { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin-top: 40px; }
.cell { background: var(--bg); padding: 24px 26px 26px; min-width: 0; }
.cell h3, .cell .eyebrow { font: 600 11px/1.4 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.big { font: 700 34px/1.1 var(--serif); margin: 0; }
.big small { font: 400 14px var(--sans); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.big.sm { font-size: 22px; }
.note { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.cell .btn { margin-top: 18px; }
.f2 { --n: 2; }
.f4 { --n: 4; }
.mt { margin-top: 20px; }
.filets.mt { margin-top: 20px; }

/* ---------- rubriques (modèle « compte ») ---------- */
.rub { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px 56px; padding: 40px 0; border-top: 1px solid var(--line); }
.filets + .rub, .nuit + .rub, .bandeau-alerte + .rub { border-top: 0; }
.rub__tete h2 { font-size: 22px; line-height: 1.25; }
.rub__tete .eyebrow { margin-bottom: 8px; }
.rub__aide { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.rub__corps { min-width: 0; }
.rub__corps > p + p, .rub__corps > p + form { margin-top: 12px; }
.rub--danger .rub__tete h2 { color: var(--danger); }
section:first-of-type.rub { margin-top: 36px; }
.phead + .rub { margin-top: 36px; }

/* ---------- registres ---------- */
.registre { list-style: none; margin: 0; padding: 0; }
.registre > li { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.registre > li:first-child { border-top: 0; padding-top: 0; }
.registre time, .registre .num { font: 400 12px/1.7 var(--mono); color: var(--muted); }
.registre__titre { font-weight: 600; overflow-wrap: anywhere; }
.registre__meta { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.registre__meta + .registre__meta { margin-top: 2px; }
.registre__cle { margin-top: 8px; font: 400 13px var(--mono); color: var(--ink-2); user-select: all; overflow-wrap: anywhere; }
.registre .pastille { margin-left: 8px; }
.registre--etapes > li { grid-template-columns: 44px minmax(0, 1fr); }
.registre--etapes .num { font-size: 13px; color: var(--yellow-ink); font-weight: 500; }
.registre--etapes strong { display: block; margin-bottom: 2px; }
.registre--etapes p { color: var(--ink-2); font-size: 14px; }

.pastille { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); font: 600 12px/1.6 var(--sans); color: var(--ink-2); white-space: nowrap; }
.pastille--ok { background: var(--ok-soft); color: var(--ok); }
.pastille--ko { background: var(--danger-soft); color: var(--danger); }
.etat { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.etat--active { color: var(--ok); }
.etat--active::before { content: "✓ "; }

/* ---------- mises en garde ---------- */
.bandeau-alerte { border-left: 3px solid var(--yellow); padding: 4px 0 4px 18px; margin: 28px 0 0; max-width: 72ch; }
.bandeau-alerte strong { display: block; font-family: var(--serif); font-size: 17px; margin-bottom: 4px; }
.bandeau-alerte p { color: var(--ink-2); }
.bandeau-alerte p + p { margin-top: 6px; }
.bandeau-alerte--danger { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); padding: 12px 18px; border-radius: 0 10px 10px 0; font-weight: 600; }
.bandeau-alerte:focus { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- carte de nuit : la licence tenue par l'étoile ---------- */
.nuit { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; align-items: center; margin-top: 40px; padding: 32px 36px; border-radius: 16px; background: var(--night); color: var(--night-ink); box-shadow: var(--shadow); overflow: hidden; }
.nuit::after { content: ""; position: absolute; right: -60px; top: 50%; width: 340px; height: 340px; margin-top: -170px; border-radius: 50%; background: radial-gradient(circle, var(--night-halo) 0, rgba(232, 193, 88, 0) 64%); pointer-events: none; }
.nuit .eyebrow { color: var(--night-muted); }
.nuit__cle { margin-top: 12px; font: 500 clamp(17px, 2.3vw, 24px)/1.35 var(--mono); letter-spacing: .02em; user-select: all; overflow-wrap: anywhere; }
.nuit__trait { height: 3px; width: min(100%, 420px); background: var(--yellow); border-radius: 2px; margin: 16px 0 14px; }
.nuit__etat { color: var(--night-ink); font-size: 14.5px; }
.nuit__etat--active::before { content: "✓ "; color: var(--yellow); }
.nuit__note { color: var(--night-muted); font-size: 13.5px; margin-top: 8px; max-width: 62ch; }
.nuit__etoile { position: relative; z-index: 1; width: 170px; height: 170px; justify-self: center; --objet: #faf9f5; --surface: #1d1c1a; }

/* ---------- pages centrées (connexion, lien, expiré) ---------- */
.seul { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: center; max-width: 980px; margin: 24px auto 0; }
.seul__signe { text-align: center; }
.seul__etoile { width: 260px; height: 260px; margin: 0 auto 26px; }
.seul__citation { font: italic 400 17px/1.55 var(--serif); color: var(--ink-2); max-width: 34ch; margin: 8px auto 0; }
.seul__carte { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px 34px 32px; box-shadow: var(--shadow); }
.seul__carte h1 { font-size: 34px; line-height: 1.15; margin: 6px 0 10px; }
.seul__carte .lead + * { margin-top: 24px; }
.seul__carte .btn { width: 100%; margin-top: 18px; }
.seul__pied { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; font-size: 13.5px; color: var(--muted); }
.seul__carte .bandeau-alerte { margin-top: 22px; }

/* ---------- formulaires ---------- */
.champ + .champ { margin-top: 18px; }
label, .etiquette { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.facultatif { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], textarea { width: 100%; min-height: 46px; font: 15px/1.4 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 14px; }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--danger); }
.aide { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.erreur { color: var(--danger); font-size: 13.5px; font-weight: 600; margin: 6px 0 0; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 18px; margin-bottom: 18px; }
.grille .champ + .champ { margin-top: 0; }
.accord { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 13.5px; color: var(--ink-2); margin: 20px 0 0; }
.accord input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.envoi { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 32px 0 0 296px; border-top: 1px solid var(--line); }
.envoi .btn { min-height: 50px; padding: 0 28px; font-size: 15.5px; }
.envoi p { color: var(--muted); font-size: 13.5px; }

/* choix des thèmes : la vignette, son nom, ses styles */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 24px; }
.theme { position: relative; display: block; margin: 0; cursor: pointer; font-weight: 400; font-size: 14px; }
.theme input, .formule input, .segments input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); transition: box-shadow .15s, transform .2s; }
.theme:hover img { transform: translateY(-2px); }
.theme__nom { display: block; font: 700 18px/1.3 var(--serif); margin-top: 12px; }
.theme__secteur { display: block; margin-top: 2px; }
.theme__texte { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }
.theme:has(input:checked) img { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--yellow); }
.theme:has(input:checked)::after, .formule:has(input:checked)::after { content: "✓"; position: absolute; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); font: 700 13px var(--sans); }
.theme:has(input:checked)::after { top: 10px; right: 10px; }
.theme:has(input:focus-visible) img, .formule:has(input:focus-visible), .segments label:has(input:focus-visible) span { outline: 2px solid var(--focus); outline-offset: 3px; }
.styles { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; }
.style { display: inline-flex; align-items: center; gap: 2px; }
.style i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.style small { margin-left: 5px; color: var(--muted); font-size: 12px; }

.segments { display: flex; flex-wrap: wrap; gap: 6px; }
.segments label { position: relative; margin: 0; font-weight: 400; }
.segments span { display: block; padding: 9px 16px; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.segments input:checked + span { background: var(--ink); color: var(--bg); }

/* formules : une bande de chiffres qui se choisit */
.formules { margin-top: 0; --n: 3; }
.formule { position: relative; display: block; margin: 0; cursor: pointer; font-weight: 400; padding-right: 50px; transition: background .15s; }
.formule:hover { background: var(--surface); }
.formule:has(input:checked) { background: var(--yellow-soft); box-shadow: inset 0 3px 0 var(--yellow); }
.formule:has(input:checked)::after { top: 22px; right: 20px; }
.formule .big { display: block; }
.formule .note { display: block; }

/* espace client */
.donnees { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 20px 0 0; }
.donnees dt, .donnees dd { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.donnees dt { font-size: 13.5px; color: var(--muted); }
.donnees dd { overflow-wrap: anywhere; font-size: 14px; }
.donnees dt:first-of-type, .donnees dd:first-of-type { border-top: 0; }
.sortie { display: inline; }

@media (max-width: 860px) {
  .rub { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 32px 0; }
  .envoi { padding-left: 0; }
  .filets, .formules { --n: 2; }
  .formules { --n: 1; }
  .seul { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .seul__etoile { width: 150px; height: 150px; margin-bottom: 8px; }
  .seul__citation { display: none; }
}
/* Sous 400 px, quatre liens ne tiennent pas à côté du logo : le numéro reste dans le pied de page. */
@media (max-width: 399px) { .bandeau__tel { display: none; } }
@media (max-width: 560px) {
  .bandeau { gap: 14px; padding: 14px 16px; }
  .bandeau__titre, .tel-long { display: none; }
  .tel-court { display: inline; }
  .bandeau__liens { gap: 14px; }
  .bandeau__liens a { font-size: 13.5px; }
  main { padding: 28px 16px 56px; }
  .pied { padding-inline: 16px; }
  .phead h1 { font-size: 29px; }
  .phead__etoile { width: 96px; height: 96px; position: absolute; right: 16px; margin: 0; }
  .phead { position: relative; }
  .phead > div { padding-right: 96px; }
  .phead--large > div { padding-right: 0; }
  .phead--large .phead__etoile { position: static; order: -1; margin: -8px 0 -8px -6px; }
  .filets { margin-top: 30px; }
  .cell { padding: 18px 14px 20px 0; }
  .cell:nth-child(2n) { padding-left: 14px; }
  .big { font-size: 28px; }
  .formules .cell { padding: 18px 50px 20px 14px; }
  .registre > li { grid-template-columns: minmax(0, 1fr); }
  .registre > li > :last-child:not(:only-child):not(div) { justify-self: start; }
  .registre--etapes > li { grid-template-columns: 34px minmax(0, 1fr); }
  .nuit { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .nuit__etoile { width: 110px; height: 110px; position: absolute; right: 8px; top: 8px; }
  .nuit .eyebrow { padding-right: 110px; }
  .seul__carte { padding: 26px 20px 24px; }
  .seul__carte h1 { font-size: 28px; }
  .donnees { grid-template-columns: minmax(0, 1fr); }
  .donnees dt { padding-bottom: 0; }
  .donnees dd { border-top: 0; padding-top: 2px; }
  .envoi .btn { width: 100%; }
  .themes { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .theme:hover img { transform: none; }
}
