/* LCW Conseiller Loi 25 — © 2026 LCW - La Clarté Web. Licence propriétaire LCW. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-latin-opsz-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-latin-opsz-italic.woff2) format('woff2'); }

:root {
  --navy: #0B2545;
  --navy-2: #0f2f57;
  --nuit: #071a33;
  --teal: #0E7C7B;
  --teal-clair: #7fd1c9;
  --teal-pale: #e3f2f0;
  --paper: #f5f7f8;
  --blanc: #fff;
  --ligne: #d4dde3;
  --muted: #506173;
  --encre: #13263d;
  --critique: #b42318;
  --importante: #b54708;
  --mineure: #3e6a8a;
  --ok: #1d7a46;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: ui-monospace, Consolas, 'SFMono-Regular', monospace;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px -12px rgba(11, 37, 69, .18);
  --largeur: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--encre); background: var(--paper); }
img, svg { display: block; }
a { color: var(--teal); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; font-optical-sizing: auto; }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--blanc); color: var(--navy); padding: 8px 14px; border-radius: 8px; }
.evitement:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--teal-clair); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- en-tête */
.entete { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 5vw, 56px); color: var(--blanc); }
.marque { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.marque-lcw { font: 400 30px/1 var(--serif); letter-spacing: .02em; }
.marque-sep { width: 1px; height: 26px; background: rgba(255, 255, 255, .35); }
.marque-nom { font-size: 11px; line-height: 1.25; letter-spacing: .04em; opacity: .85; }
.entete-nav { display: flex; gap: 26px; font-size: 14px; }
.entete-nav a { color: rgba(255, 255, 255, .82); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.entete-nav a:hover { color: var(--blanc); border-color: var(--teal-clair); }

/* ---------------------------------------------------------------- scène */
.scene { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 120px clamp(20px, 5vw, 56px) 80px; color: var(--blanc); overflow: hidden; overflow: clip; isolation: isolate;
  background: radial-gradient(120% 80% at 85% 20%, #133a66 0%, var(--navy) 45%, var(--nuit) 100%); }
.scene-contenu { position: relative; z-index: 2; max-width: 760px; transition: opacity .6s ease, transform .6s ease; }
.surtitre { display: flex; align-items: center; gap: 8px; font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-clair); margin: 0 0 22px; }
.surtitre.sombre { color: var(--teal); }
.scene h1 { font-size: clamp(44px, 7.4vw, 96px); letter-spacing: -.02em; font-variation-settings: 'opsz' 144; }
.scene h1 em { font-style: italic; color: var(--teal-clair); font-weight: 300; }
.chapeau { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 620px; color: rgba(255, 255, 255, .82); margin: 28px 0 38px; }

/* lentille animée */
.lentille { position: absolute; z-index: 1; right: -18vmin; top: 50%; width: 110vmin; aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.anneau { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(127, 209, 201, .16); }
.a2 { inset: 12%; border-color: rgba(127, 209, 201, .2); }
.a3 { inset: 25%; border-color: rgba(127, 209, 201, .26); border-style: dashed; animation: tourne 90s linear infinite; }
.a4 { inset: 38%; border-color: rgba(127, 209, 201, .34); background: radial-gradient(circle, rgba(127, 209, 201, .10), transparent 70%); }
.faisceau { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 78%, rgba(127, 209, 201, .02) 80%, rgba(127, 209, 201, .22) 99.5%, rgba(255, 255, 255, .5) 100%);
  -webkit-mask: radial-gradient(circle, transparent 12%, #000 13%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 12%, #000 13%, #000 70%, transparent 71%); animation: tourne 9s linear infinite; }
.grain { position: absolute; inset: -20%; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); }
.lentille { --tour: 9s; }
.scene.en-lecture .lentille { --tour: 2.2s; }
.faisceau { animation-duration: var(--tour) !important; }
/* repères du radar : feuille d'érable et fleur de lys, à peine visibles, éclairés au passage du faisceau */
.repere { position: absolute; width: 15%; aspect-ratio: 1; left: var(--x); top: var(--y); transform: translate(-50%, -50%); fill: var(--teal-clair); opacity: .045;
  animation: balaye var(--tour) linear infinite; animation-delay: calc(var(--phase) * var(--tour) - var(--tour)); }
.repere.erable { --x: 23.7%; --y: 33.6%; --phase: 0.8389; }
.repere.lys { --x: 24.3%; --y: 67.3%; --phase: 0.6556; width: 13%; }
@keyframes balaye { 0% { opacity: .18; filter: drop-shadow(0 0 6px rgba(127, 209, 201, .5)); } 28% { opacity: .07; filter: none; } 100% { opacity: .045; } }
.scene.en-lecture .a3 { animation-duration: 12s; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* saisie */
.saisie { max-width: 680px; }
.saisie-champ { display: flex; align-items: center; gap: 6px; padding: 7px 7px 7px 20px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .25s, box-shadow .25s, background .25s; }
.saisie-champ:focus-within { border-color: var(--teal-clair); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 6px rgba(127, 209, 201, .12), 0 20px 60px -20px rgba(127, 209, 201, .45); }
.saisie-prefixe { color: rgba(255, 255, 255, .45); font: 15px var(--mono); }
.saisie input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--blanc); font: 18px var(--mono); padding: 12px 4px; }
.saisie input::placeholder { color: rgba(255, 255, 255, .38); }
.bouton-principal { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 24px; background: var(--blanc); color: var(--navy); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .2s, background .2s, box-shadow .2s; }
.bouton-principal:hover { transform: translateY(-1px); background: var(--teal-pale); box-shadow: 0 10px 30px -10px rgba(127, 209, 201, .6); }
.bouton-principal .ico { transition: transform .2s; }
.bouton-principal:hover .ico { transform: translateX(3px); }
.bouton-principal[disabled] { opacity: .6; cursor: progress; transform: none; }
.saisie-erreur { margin: 14px 0 0 20px; color: #ffb4a8; font-size: 15px; }
.garanties { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 30px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.garanties li { display: flex; align-items: center; gap: 9px; }
.garanties .ico { color: var(--teal-clair); }

/* lecture en direct */
.lecture { position: relative; z-index: 2; max-width: 760px; margin-top: 46px; padding: 28px 30px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: monte .5s ease both; }
.lecture-entete { display: flex; align-items: center; gap: 12px; }
.lecture-entete p { margin: 0; color: rgba(255,255,255,.8); }
.lecture-entete strong { color: var(--blanc); font: 15px var(--mono); }
.pastille-vivante { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-clair); box-shadow: 0 0 0 0 rgba(127, 209, 201, .7); animation: pouls 1.6s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 12px rgba(127, 209, 201, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 209, 201, 0); } }
.etapes { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.etape { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,.88); animation: monte .45s ease both; }
.etape-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid rgba(127, 209, 201, .5); color: var(--teal-clair); }
.etape-ico .ico { width: 14px; height: 14px; }
.etape.en-cours .etape-ico { border-color: transparent; border-top-color: var(--teal-clair); border-right-color: var(--teal-clair); animation: tourne .9s linear infinite; }
.etape.en-cours .etape-ico .ico { display: none; }
.etape small { display: block; color: rgba(255,255,255,.55); font: 13px var(--mono); margin-top: 2px; word-break: break-all; }
.etape.en-cours .etape-texte { background: linear-gradient(90deg, rgba(255,255,255,.55), #fff, rgba(255,255,255,.55)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: reflet 1.8s linear infinite; }
@keyframes reflet { to { background-position: -200% 0; } }
.trouvailles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.puce { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: var(--blanc); animation: eclot .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.puce .ico { color: var(--teal-clair); width: 15px; height: 15px; }
.puce.alerte { border-color: rgba(255, 180, 168, .5); background: rgba(180, 35, 24, .18); }
.puce.alerte .ico { color: #ffb4a8; }
.puce em { font-style: normal; opacity: .6; font-size: 12px; }
@keyframes monte { from { opacity: 0; transform: translateY(10px); } }
@keyframes eclot { from { opacity: 0; transform: scale(.7); } }

/* ---------------------------------------------------------------- résultat */
.resultat { padding: 0 clamp(16px, 4vw, 48px) 40px; scroll-margin-top: 0; }
.bandeau-partiel { display: flex; align-items: center; gap: 10px; justify-content: center; max-width: var(--largeur); margin: 0 auto; padding: 12px 18px; background: #eaf1f8; color: #1f4a72; border: 1px solid #c5d6e8; border-top: 0; border-radius: 0 0 12px 12px; font-size: 14px; }
.bandeau-demo { display: flex; align-items: center; gap: 10px; justify-content: center; max-width: var(--largeur); margin: 0 auto; padding: 12px 18px; background: #fff7e6; color: #7a4b00; border: 1px solid #f3d9a4; border-top: 0; border-radius: 0 0 12px 12px; font-size: 14px; }
.resultat-grille { max-width: var(--largeur); margin: 48px auto 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sommaire { position: sticky; top: 24px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 20px; padding: 28px 24px; box-shadow: var(--ombre); }
.jauge { position: relative; width: 168px; margin: 0 auto; }
.jauge svg { width: 100%; transform: rotate(-90deg); }
.jauge-fond { fill: none; stroke: #e8eef1; stroke-width: 9; }
.jauge-arc { fill: none; stroke: var(--teal); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1), stroke .4s; }
.jauge-texte { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.jauge-texte strong { font: 400 52px/1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; }
.jauge-texte span { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.niveau { text-align: center; margin: 14px 0 22px; font: 600 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.decompte { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 22px; }
.decompte div { padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.decompte dt { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.decompte dt::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.decompte dd { margin: 2px 0 0; font: 400 26px/1.1 var(--serif); color: var(--navy); }
.themes-nav { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 18px; border-top: 1px solid var(--ligne); }
.filtre { border: 1px solid var(--ligne); background: var(--blanc); color: var(--encre); border-radius: 999px; padding: 6px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: all .2s; }
.filtre .ico { width: 14px; height: 14px; color: var(--teal); }
.filtre:hover { border-color: var(--teal); }
.filtre[aria-pressed="true"] { background: var(--navy); color: var(--blanc); border-color: var(--navy); }
.filtre[aria-pressed="true"] .ico { color: var(--teal-clair); }
.sommaire-actions { display: grid; gap: 8px; margin-top: 22px; }
.bouton-secondaire { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--blanc); color: var(--navy); font-weight: 600; font-size: 14px; transition: all .2s; }
.bouton-secondaire:hover { border-color: var(--navy); background: var(--paper); }

.verdict { padding: 6px 0 34px; border-bottom: 1px solid var(--ligne); }
.verdict h2 { font-size: clamp(28px, 3.2vw, 42px); color: var(--navy); letter-spacing: -.01em; max-width: 30ch; text-wrap: balance; }
.verdict-resume { font-size: 18px; color: #2b3f55; max-width: 66ch; margin: 18px 0 0; }
.verdict-meta { font: 13px var(--mono); color: var(--muted); margin: 18px 0 0; }

.bloc { padding: 40px 0 8px; }
.bloc h3 { font-size: 28px; color: var(--navy); margin-bottom: 20px; }
.aide { color: var(--muted); margin: -8px 0 18px; }

.constats { display: grid; gap: 16px; }
.constat { --c: var(--mineure); position: relative; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 24px 26px 22px 30px; box-shadow: var(--ombre); overflow: hidden; animation: monte .5s ease both; }
.constat::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.constat[data-gravite="critique"] { --c: var(--critique); }
.constat[data-gravite="importante"] { --c: var(--importante); }
.constat[data-gravite="ok"] { --c: var(--ok); }
.constat[hidden] { display: none; }
.constat-tete { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; }
.constat-icone { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 10%, white); color: var(--c); }
.constat-icone .ico { width: 22px; height: 22px; }
.constat-theme { margin: 0 0 3px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.constat-titre { font-size: 22px; color: var(--navy); }
.gravite { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, white); white-space: nowrap; }
.constat-texte { margin: 14px 0 0; color: #2b3f55; }
.constat-action { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--teal-pale); }
.constat[data-gravite="ok"] .constat-action { background: color-mix(in srgb, var(--ok) 8%, white); }
.etiquette { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.action-texte { margin: 0; color: var(--encre); }
.constat-meta { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.constat-meta li { display: inline-flex; align-items: center; gap: 6px; }
.constat-meta a { color: var(--navy); font-weight: 600; }
.constat-meta .a-verifier { color: var(--importante); }
.constat-preuve { margin: 10px 0 0; font: 12.5px/1.5 var(--mono); color: var(--muted); }
.constat-preuve:empty { display: none; }
.constat-liens { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--ligne); }
.constat-liens ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.lien-officiel { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); padding: 8px 10px; margin: 0 -10px; border-radius: 10px; transition: background .2s; }
.lien-officiel:hover { background: var(--paper); }
.lien-officiel .titre { flex: 1; }
.lien-officiel .ico { color: var(--muted); width: 15px; height: 15px; }
.source { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; white-space: nowrap; background: #e8eef6; color: var(--navy); }
.source.legis { background: #f1ece2; color: #6b4e16; }

.vu { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tuile { display: flex; gap: 12px; align-items: flex-start; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 12px; padding: 14px; }
.tuile-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--teal); flex: none; }
.tuile strong { display: block; color: var(--navy); font-size: 15px; }
.tuile span { font-size: 13px; color: var(--muted); }
.tuile.large { grid-column: 1 / -1; }
.tuile ul { margin: 4px 0 0; padding: 0; list-style: none; font: 13px/1.7 var(--mono); color: var(--muted); }

/* flux de données */
.flux { display: grid; grid-template-columns: 190px 1fr; gap: 18px 0; align-items: center; padding: 22px 24px; }
.flux-titre { grid-column: 1 / -1; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.flux-source { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 20px 14px; border-radius: 16px; background: var(--navy); color: var(--blanc); box-shadow: 0 10px 30px -14px rgba(11, 37, 69, .6); position: relative; z-index: 1; }
.flux-source .ico { width: 26px; height: 26px; color: var(--teal-clair); }
.flux-source strong { color: var(--blanc); font: 400 19px var(--serif); }
.flux .flux-source span { color: rgba(255,255,255,.65); font: 12px var(--mono); word-break: break-all; }
.flux-destinations { display: grid; gap: 12px; }
.flux-ligne { --trait: var(--teal); display: grid; grid-template-columns: minmax(60px, 140px) 1fr; align-items: center; animation: monte .5s ease both; animation-delay: calc(var(--i) * 120ms); }
.flux-ligne.hors { --trait: var(--importante); }
.flux-trait { height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--trait) 0 7px, transparent 7px 13px); background-size: 13px 2px; animation: defile .8s linear infinite; }
.flux-trait::after { content: ''; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--trait); border-right: 0; }
@keyframes defile { to { background-position: 13px 0; } }
@keyframes defile-v { to { background-position: 0 13px; } }
.flux-pays { border: 1px solid var(--ligne); border-radius: 14px; padding: 12px 14px; background: var(--paper); }
.flux-ligne.hors .flux-pays { border-color: color-mix(in srgb, var(--importante) 35%, white); background: color-mix(in srgb, var(--importante) 5%, white); }
.flux-pays-nom { margin: 0 0 8px; font: 400 17px var(--serif); color: var(--navy); display: flex; align-items: center; gap: 10px; }
.flux .flux-tag { font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--importante); background: color-mix(in srgb, var(--importante) 12%, white); padding: 3px 7px; border-radius: 6px; }
.flux-services { display: flex; flex-wrap: wrap; gap: 6px; }
.flux .flux-service { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--ligne); color: var(--encre); }
.flux-service .ico { width: 14px; height: 14px; color: var(--teal); }
.plus-ressources { display: flex; justify-content: center; margin-top: 22px; }

.onglets { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #e8eef1; margin-bottom: 14px; }
.onglets button { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.onglets button[aria-selected="true"] { background: var(--blanc); color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.jet { position: relative; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 24px 26px; }
.jet p { margin: 0 0 12px; white-space: pre-line; }
.jet .copier { position: absolute; top: 14px; right: 14px; }
.jet table { width: 100%; border-collapse: collapse; font-size: 15px; }
.jet th, .jet td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ligne); }
.jet th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.copier { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ligne); background: var(--blanc); border-radius: 9px; padding: 6px 11px; font-size: 13px; color: var(--navy); }
.copier.fait { color: var(--ok); border-color: var(--ok); }
.avertissement { margin: 36px 0 0; padding: 14px 18px; border-radius: 12px; background: #eef2f5; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- ressources */
.ressources { max-width: var(--largeur); margin: 0 auto; padding: 90px clamp(16px, 4vw, 48px) 70px; }
.ressources-entete { max-width: 720px; }
.ressources h2 { font-size: clamp(34px, 4.6vw, 56px); color: var(--navy); letter-spacing: -.015em; }
.ressources-entete > p:last-child { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 24px; }
.ressources-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ressource { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--encre); background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 20px; transition: transform .25s, box-shadow .25s, border-color .25s; animation: monte .4s ease both; }
.ressource:hover { transform: translateY(-3px); box-shadow: var(--ombre); border-color: #b9c8d2; }
.ressource-tete { display: flex; align-items: center; gap: 8px; }
.ressource-tete .type { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.ressource-tete .type .ico { width: 14px; height: 14px; }
.ressource strong { font: 400 19px/1.25 var(--serif); color: var(--navy); }
.ressource p { margin: 0; font-size: 14px; color: var(--muted); }
.ressource[hidden] { display: none; }

.appel { max-width: var(--largeur); margin: 0 auto 80px; padding: 44px clamp(24px, 4vw, 56px); border-radius: 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; color: var(--blanc);
  background: radial-gradient(90% 140% at 100% 0%, #13416f, var(--navy) 60%); }
.appel h2 { font-size: clamp(28px, 3.4vw, 40px); }
.appel p { margin: 10px 0 0; color: rgba(255,255,255,.78); max-width: 56ch; }

.pied { background: var(--nuit); color: rgba(255,255,255,.62); font-size: 13px; padding: 34px clamp(20px, 5vw, 56px); text-align: center; }
.pied p { margin: 6px auto; max-width: 860px; }
.pied a { color: var(--teal-clair); }
.pied-moteur { display: flex; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,.85); }
.pied-moteur .ico { color: #ff8a80; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 960px) {
  .resultat-grille { grid-template-columns: 1fr; }
  .sommaire { position: static; display: grid; grid-template-columns: 140px 1fr; gap: 6px 20px; align-items: center; }
  .jauge { width: 140px; grid-row: span 2; }
  .niveau { text-align: left; margin: 0; }
  .decompte { margin: 0; grid-template-columns: repeat(2, 1fr); }
  .themes-nav, .sommaire-actions { grid-column: 1 / -1; }
  .sommaire-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .entete-nav a:first-child { display: none; }
  .scene { padding-top: 104px; align-items: start; }
  .lentille { right: -50vmin; top: 30%; width: 130vmin; opacity: .7; }
  .saisie-champ { flex-wrap: wrap; border-radius: 20px; padding: 8px 8px 8px 16px; }
  .saisie input { font-size: 17px; }
  .saisie .bouton-principal { width: 100%; justify-content: center; }
  .lecture { padding: 22px 18px; }
  .sommaire { grid-template-columns: 1fr; text-align: center; }
  .themes-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 18px 24px 4px; }
  .themes-nav .filtre { white-space: nowrap; }
  .bouton-secondaire { font-size: 13px; padding: 11px 8px; }
  .jauge { grid-row: auto; }
  .niveau { text-align: center; }
  .constat { padding: 20px 18px 18px 22px; }
  .constat-tete { grid-template-columns: auto 1fr; }
  .gravite { grid-column: 1 / -1; justify-self: start; }
  .constat-titre { font-size: 20px; }
  .jet { padding: 54px 18px 18px; }
  .flux { grid-template-columns: 1fr; padding: 18px; }
  .flux-ligne { grid-template-columns: 28px 1fr; }
  .flux-trait { width: 2px; height: 100%; min-height: 30px; justify-self: center; background: repeating-linear-gradient(180deg, var(--trait) 0 7px, transparent 7px 13px); background-size: 2px 13px; animation-name: defile-v; }
  .flux-trait::after { display: none; }
  .ressources-grille { grid-template-columns: 1fr; }
  .lien-officiel { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: start; }
  .lien-officiel .source { justify-self: start; }
  .lien-officiel .ico { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .appel { margin: 0 12px 60px; }
}

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

/* ---------------------------------------------------------------- impression */
@media print {
  .entete, .scene, .ressources, .appel, .sommaire-actions, .themes-nav, .onglets, .copier, .evitement { display: none !important; }
  body { background: #fff; }
  .resultat[hidden] { display: none !important; }
  .resultat-grille { grid-template-columns: 1fr; margin-top: 0; }
  .sommaire { position: static; box-shadow: none; display: flex; gap: 24px; align-items: center; }
  .constat, .jet { box-shadow: none; break-inside: avoid; }
  .jet[hidden] { display: block !important; margin-top: 12px; }
  .pied { background: none; color: #555; }
  .pied-moteur { color: #333; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- à propos */
.apropos { max-width: var(--largeur); margin: 0 auto; padding: 100px clamp(16px, 4vw, 48px) 20px; }
.apropos-entete { max-width: 780px; }
.apropos h2 { font-size: clamp(34px, 4.6vw, 58px); color: var(--navy); letter-spacing: -.015em; }
.apropos h2 em { font-style: italic; color: var(--teal); font-weight: 300; }
.apropos-entete > p:last-child { color: var(--muted); font-size: 18px; margin: 18px 0 0; max-width: 64ch; }
.surtitre .ico[viewBox] { }
.methode { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.methode::before { content: ''; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 7px, transparent 7px 14px); background-size: 14px 2px; animation: defile 1.2s linear infinite; opacity: .45; }
.methode li { position: relative; padding: 0 18px; text-align: center; }
.methode-ico { position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--teal-clair); box-shadow: 0 0 0 8px var(--paper), 0 12px 28px -12px rgba(11, 37, 69, .6); }
.methode-ico .ico { width: 24px; height: 24px; }
.methode h3 { font-size: 24px; color: var(--navy); margin-bottom: 10px; }
.methode p { margin: 0; color: var(--muted); font-size: 15px; }
.apropos-cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 64px; }
.apropos-cartes article { border-radius: 22px; padding: 34px 34px 30px; }
.apropos-cartes h3 { font-size: clamp(24px, 2.4vw, 30px); margin: 10px 0 14px; }
.apropos-cartes p { margin: 0; }
.apropos-cartes ul { list-style: none; margin: 20px 0 0; padding: 18px 0 0; display: grid; gap: 9px; font-size: 15px; }
.apropos-cartes li { position: relative; padding-left: 22px; }
.apropos-cartes li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 50%; }
.carte-surtitre { display: flex; align-items: center; gap: 9px; font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.carte-surtitre .ico { width: 18px; height: 18px; }
.carte-cohere { color: var(--blanc); background: radial-gradient(110% 140% at 100% 0%, #15457a, var(--navy) 55%, var(--nuit)); box-shadow: 0 20px 50px -24px rgba(11, 37, 69, .7); }
.carte-cohere .carte-surtitre { color: var(--teal-clair); }
.carte-cohere .carte-surtitre .ico { color: #ff8a80; }
.carte-cohere p { color: rgba(255, 255, 255, .8); }
.carte-cohere ul { border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); }
.carte-cohere li::before { background: var(--teal-clair); }
.carte-cohere strong { color: var(--blanc); }
.carte-quebec { background: var(--blanc); border: 1px solid var(--ligne); box-shadow: var(--ombre); }
.carte-quebec .carte-surtitre { color: #1f4f9a; }
.carte-quebec h3 { color: var(--navy); }
.carte-quebec p { color: #2b3f55; }
.carte-quebec ul { border-top: 1px solid var(--ligne); color: var(--encre); }
.carte-quebec li::before { background: #1f4f9a; }
.transparence { margin-top: 64px; }
.transparence h3 { font-size: 28px; color: var(--navy); margin-bottom: 18px; }
.transparence table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; font-size: 15px; }
.transparence th, .transparence td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.transparence tr:last-child td { border-bottom: 0; }
.transparence th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--paper); }
.transparence td:first-child { font-weight: 700; color: var(--navy); width: 24%; }
.transparence td:last-child { white-space: nowrap; color: var(--muted); font: 13px var(--mono); }
@media (max-width: 960px) {
  .methode { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .methode::before { display: none; }
  .apropos-cartes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .apropos { padding-top: 70px; }
  .methode { grid-template-columns: 1fr; }
  .methode li { text-align: left; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 0; }
  .methode-ico { margin: 0; grid-row: span 2; }
  .apropos-cartes article { padding: 26px 22px; }
  .transparence table, .transparence tbody, .transparence tr, .transparence td { display: block; width: 100% !important; }
  .transparence thead { display: none; }
  .transparence tr { border-bottom: 1px solid var(--ligne); padding: 12px 16px; }
  .transparence td { border: 0; padding: 3px 0; white-space: normal !important; }
}
