/* Convertir (maxicards.net/convertir) : feuille de style unique.
   Passe design du 23/11/2026 : polices Inter (texte) + Space Grotesk (titres) hébergées ici, palette indigo -> bleu
   -> ciel + ambre, bandeau animé, icônes d'outils, motion léger (coupé si prefers-reduced-motion). */

/* ---------- Polices (Google Fonts, licence OFL, copiées dans le site : aucun appel externe) ---------- */
/* Inter (texte courant) en « optional » : si elle n'est pas là tout de suite, la police de repli calée reste
   (aucune bascule, l'affichage du texte n'attend rien) ; elle sert dès la page suivante (cache). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: optional;
  src: url("polices/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("polices/space-grotesk-latin.woff2") format("woff2"); }
/* Polices de repli calées sur les mêmes mesures : pas de saut de mise en page au chargement */
@font-face { font-family: "Inter repli"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22.4%; line-gap-override: 0%; }
@font-face { font-family: "SG repli"; src: local("Arial"); size-adjust: 104%; ascent-override: 94%; descent-override: 28%; line-gap-override: 0%; }

:root {
  --police: "Inter", "Inter repli", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --police-titre: "Space Grotesk", "SG repli", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fond: #f6f7fc;
  --surface: #ffffff;
  --surface-2: #eff2fa;
  --texte: #11142a;
  --texte-doux: #4a5273;
  --bord: #dfe3f0;
  --accent: #2563eb;
  --accent-fonce: #1d4ed8;
  --accent-doux: #e8efff;
  --bleu: #1d4ed8;
  --indigo: #4f46e5;
  --ciel: #0ea5e9;
  --ambre: #f59e0b;
  --ok: #157f3d;
  --ko: #b42318;
  --jaune: #f5b300;
  --degrade: linear-gradient(135deg, #4f46e5 0%, #2563eb 55%, #0ea5e9 100%);
  --entete: rgba(255, 255, 255, .82);
  --ombre: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px -6px rgba(16, 24, 40, .10);
  --ombre-forte: 0 18px 40px -16px rgba(37, 99, 235, .38), 0 2px 6px rgba(16, 24, 40, .06);
  --rayon: 16px;
  --ressort: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0b0e1c;
    --surface: #141831;
    --surface-2: #1c2142;
    --texte: #eef0fa;
    --texte-doux: #aab2d3;
    --bord: #2a3158;
    --accent: #5b8cff;
    --accent-fonce: #8fb0ff;
    --accent-doux: #1b2650;
    --bleu: #8fb0ff;
    --ok: #4ade80;
    --ko: #f87171;
    --entete: rgba(11, 14, 28, .78);
    --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px -6px rgba(0, 0, 0, .5);
    --ombre-forte: 0 18px 40px -16px rgba(91, 140, 255, .35), 0 2px 6px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--bleu); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; height: auto; }
.conteneur { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3, .depot-titre, .marque .nom { font-family: var(--police-titre); }

/* ---------- En-tête (verre dépoli) ---------- */
.entete { background: var(--entete); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 10; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 12px; }
.marque { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--texte); text-decoration: none; }
.marque:hover { color: var(--texte); }
.logo { width: 38px; height: 38px; flex: none; border-radius: 10px; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.marque .nom { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.28rem; letter-spacing: -.02em; }
.marque small { font-family: var(--police); font-weight: 600; font-size: .72rem; color: var(--ok); letter-spacing: 0; margin-top: 2px; }
/* Lien de langue (EN / FR), discret, à gauche du menu ; 44 px de haut pour le doigt */
.langue { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: .82rem; letter-spacing: .04em; color: var(--texte-doux); text-decoration: none; border: 1px solid transparent; transition: border-color .2s, color .2s; }
.langue:hover, .langue:focus-visible { color: var(--accent); border-color: var(--bord); }
.entete .conteneur > .langue + .menu { margin-left: -4px; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--bord); border-radius: 999px; font-weight: 600; font-size: .95rem; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.menu summary:hover { border-color: var(--accent); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ressort); }
.menu[open] summary::after { transform: translateY(1px) rotate(225deg); }
.menu nav { position: absolute; right: 16px; top: 60px; max-height: 75vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre-forte); padding: 8px; min-width: 270px; transform-origin: top right; }
.menu[open] nav { animation: deroule .22s var(--ressort); }
.menu nav a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--texte); text-decoration: none; }
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--surface-2); color: var(--accent); }

/* ---------- Fond de page : nuages de couleur qui dérivent lentement ---------- */
main { position: relative; isolation: isolate; overflow-x: hidden; overflow: clip; padding: 18px 0 44px; }
main::before {
  content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; top: -160px; height: 560px; pointer-events: none;
  background:
    radial-gradient(38% 55% at 14% 34%, rgba(79, 70, 229, .16), transparent 70%),
    radial-gradient(34% 50% at 86% 22%, rgba(14, 165, 233, .16), transparent 70%),
    radial-gradient(26% 44% at 58% 78%, rgba(245, 158, 11, .10), transparent 70%);
  animation: nuages 22s ease-in-out infinite alternate;
}

/* ---------- Tête de page et bandeau d'accueil ---------- */
.tete-page { margin: 0 0 6px; }
.fil { font-size: .86rem; color: var(--texte-doux); margin: 0 0 8px; }
.fil a { color: var(--texte-doux); }
h1, .depot-titre { text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); line-height: 1.15; margin: 4px 0 8px; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: 1.4rem; line-height: 1.25; margin: 34px 0 10px; letter-spacing: -.015em; font-weight: 700; }
h3 { font-size: 1.1rem; margin: 20px 0 6px; font-weight: 700; }
.chapo { color: var(--texte-doux); margin: 0 0 18px; font-size: 1.03rem; }
.titre-outil { display: flex; align-items: center; gap: 14px; margin: 4px 0 8px; }
.titre-outil h1 { margin: 0; }
.titre-outil .pastille { width: 52px; height: 52px; border-radius: 15px; animation: surgit .6s var(--ressort) both; }
.hero { display: grid; grid-template-columns: 1fr; align-items: center; gap: 8px; padding: 10px 0 4px; }
.hero h1 { font-size: clamp(1.85rem, 6vw, 3.05rem); line-height: 1.07; letter-spacing: -.035em; margin-bottom: 12px; }
.degrade { background: linear-gradient(95deg, var(--indigo), #2563eb 55%, var(--ciel)); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (prefers-color-scheme: dark) { .degrade { background-image: linear-gradient(95deg, #a5b4fc, #93c5fd 55%, #7dd3fc); } }
.hero .chapo { font-size: 1.08rem; max-width: 36em; }
.hero-visuel { display: none; color: var(--accent); width: 100%; max-width: 360px; height: auto; aspect-ratio: 360 / 260; justify-self: end; }
@media (min-width: 780px) {
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 28px; padding: 22px 0 10px; }
  .hero-visuel { display: block; }
}

/* ---------- Texte courant ---------- */
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }

/* ---------- Outil ---------- */
.outil { position: relative; background: var(--surface); border: 1px solid var(--bord); border-radius: 20px; box-shadow: var(--ombre-forte); padding: 18px; margin: 0 0 18px; }
.outil::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--indigo), var(--ciel), var(--ambre)); }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .etiquette { font-weight: 600; font-size: .93rem; }
.aide { font-size: .84rem; color: var(--texte-doux); margin: 0; }
input[type="number"], input[type="text"], select {
  width: 100%; font: inherit; font-size: 16px; color: var(--texte); background: var(--surface-2);
  border: 1px solid var(--bord); border-radius: 11px; padding: 10px 12px; min-height: 46px; transition: border-color .2s, box-shadow .2s;
}
input[type="number"]:hover, input[type="text"]:hover, select:hover { border-color: var(--accent); }
input:focus, select:focus, button:focus-visible, summary:focus-visible, a:focus-visible, label.bouton:focus-within { outline: 3px solid var(--bleu); outline-offset: 2px; }
.ligne-case { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .93rem; }
.ligne-case input { width: 20px; height: 20px; accent-color: var(--accent); }
.boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
button {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 12px; padding: 10px 18px; min-height: 46px;
  border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte);
  transition: transform .15s var(--ressort), box-shadow .2s, border-color .2s, background-color .2s, filter .2s;
}
button:hover { border-color: var(--accent); }
button:active:not(:disabled), .bouton:active { transform: scale(.97); }
button.principal, .bouton.principal { background: linear-gradient(135deg, #4f46e5, #2563eb); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .7); }
button.principal:hover:not(:disabled), .bouton.principal:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(37, 99, 235, .8); color: #fff; }

.resultats { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tuile { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.tuile .valeur { display: block; font-size: 1.55rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tuile .libelle { display: block; font-size: .85rem; color: var(--texte-doux); }
.tuile.forte { background: var(--accent-doux); }
.positif { color: var(--ok); }
.negatif { color: var(--ko); }
.message { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: .95rem; }
.message:empty { display: none; }

/* ---------- Tableaux ---------- */
.tableau-defile { overflow-x: auto; margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; }
td.nombre, th.nombre { text-align: right; }
tr.meilleur td { background: var(--accent-doux); font-weight: 700; }
.tableau-saisie input { min-width: 64px; padding: 8px; }
.tableau-saisie td { padding: 6px 4px; }

/* ---------- Cartes d'outils (icône + texte + flèche) ---------- */
.liste-outils { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 18px 0 8px; padding: 0; list-style: none; }
.liste-outils li { margin: 0; }
.carte-outil {
  position: relative; display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 16px;
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); text-decoration: none; color: var(--texte);
  box-shadow: var(--ombre); transition: transform .3s var(--ressort), box-shadow .3s, border-color .3s;
}
.carte-outil:hover {
  color: var(--texte); transform: translateY(-4px); box-shadow: var(--ombre-forte); border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--indigo), var(--ciel) 60%, var(--ambre)) border-box;
}
.carte-texte { flex: 1; min-width: 0; }
.carte-outil strong { display: block; font-family: var(--police-titre); font-size: 1.07rem; margin-bottom: 3px; color: var(--texte); letter-spacing: -.01em; }
.carte-texte span { display: block; font-size: .92rem; line-height: 1.5; color: var(--texte-doux); }
.carte-outil .fleche { align-self: center; flex: none; font-weight: 700; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--ressort); }
.carte-outil:hover .fleche, .carte-outil:focus-visible .fleche { opacity: 1; transform: none; }
@media (hover: none) { .carte-outil .fleche { opacity: .55; transform: none; } }

/* Pastilles d'icônes, une couleur par famille */
.pastille { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 16px -8px var(--teinte, rgba(37, 99, 235, .7)); transition: transform .35s var(--ressort); }
.pastille svg { display: block; overflow: visible; }
.c-pdf { background: linear-gradient(145deg, #fb7185, #e11d48); --teinte: rgba(225, 29, 72, .65); }
.c-img { background: linear-gradient(145deg, #2dd4bf, #0d9488); --teinte: rgba(13, 148, 136, .65); }
.c-son { background: linear-gradient(145deg, #c084fc, #7c3aed); --teinte: rgba(124, 58, 237, .65); }
.carte-outil:hover .pastille { transform: rotate(-7deg) scale(1.08); }

.encadre { background: var(--surface); border: 1px solid var(--bord); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: .95rem; }
.sources { font-size: .88rem; color: var(--texte-doux); }
details.faq { background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 0 16px; margin-bottom: 10px; transition: border-color .25s, box-shadow .25s; }
details.faq:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--bord)); }
details.faq[open] { box-shadow: var(--ombre); }
details.faq summary { cursor: pointer; font-weight: 700; padding: 13px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; flex: none; font-size: 1.3rem; line-height: 1; color: var(--accent); transition: transform .3s var(--ressort); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin-top: 0; }
details.faq[open] p { animation: monte .35s var(--ressort); }
/* Emplacement publicitaire (vide tant qu'AdSense ne le remplit pas) : à l'écart des boutons */
.pub { margin: 26px 0; }
.pub:empty { display: none; }

/* ---------- Pied de page ---------- */
.pied { position: relative; border-top: 1px solid var(--bord); background: var(--surface); padding: 26px 0 34px; font-size: .9rem; color: var(--texte-doux); }
.pied::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--indigo), var(--ciel), var(--ambre), transparent); opacity: .7; }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.pied a { color: var(--texte-doux); }
.pied a:hover { color: var(--accent); }
.pied p { margin: 0 0 8px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Zone de dépôt ---------- */
.depot {
  position: relative; border: 2px dashed color-mix(in srgb, var(--accent) 35%, var(--bord)); border-radius: 16px; padding: 22px 16px 20px; text-align: center;
  background: radial-gradient(120% 130% at 50% 0%, var(--accent-doux) 0%, var(--surface-2) 70%);
  transition: border-color .25s, box-shadow .3s, transform .3s var(--ressort);
}
.depot:hover { border-color: var(--accent); }
.depot.survol { border-color: var(--accent); border-style: solid; transform: scale(1.012); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.depot-icone { display: block; width: 48px; height: 48px; margin: 0 auto 6px; color: var(--accent); }
.depot-fleche { animation: flotte 2.6s ease-in-out infinite; }
.depot.survol .depot-fleche { animation-duration: .9s; }
.depot-titre { font-weight: 700; font-size: 1.15rem; margin: 0 0 12px; letter-spacing: -.01em; }
.depot-aide { margin-top: 12px; }
/* Place de l'outil réservée d'avance (mesurée par mesurer_outils.py, écrite par build.py) : rien ne saute
   quand le script dessine l'outil (pas de décalage de mise en page) */
.outil { min-height: var(--hm, 300px); }
@media (min-width: 400px) { .outil { min-height: var(--hp, 300px); } }
@media (min-width: 600px) { .outil { min-height: var(--ht, 300px); } }
@media (min-width: 1000px) { .outil { min-height: var(--hd, 300px); } }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; border-radius: 12px; padding: 10px 18px; min-height: 46px; border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte); text-decoration: none; cursor: pointer; transition: transform .15s var(--ressort), box-shadow .2s, border-color .2s, filter .2s; }
a.bouton:hover { border-color: var(--accent); color: var(--texte); }
button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-doux); }
.choix { margin-top: 14px; }
.choix .boutons button { animation: monte .35s var(--ressort) both; }
.options { margin-top: 14px; }
.options:empty, .fichiers:empty { display: none; }
input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 32px; }
.fichiers { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.fichiers li { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--bord); border-radius: 12px; padding: 6px 8px 6px 12px; margin: 0; animation: monte .3s var(--ressort); }
.fichiers .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .95rem; }
button.mini { min-height: 38px; min-width: 38px; padding: 4px 8px; font-size: .95rem; }

/* Barre de progression : dégradé et rayures qui défilent */
.progression { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: .92rem; color: var(--texte-doux); }
.progression progress { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.progression progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.progression progress::-webkit-progress-value {
  border-radius: 999px; transition: width .3s ease;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .28) 0 8px, transparent 8px 16px), linear-gradient(90deg, var(--indigo), var(--ciel), var(--ambre));
  background-size: 22.6px 22.6px, 100% 100%; animation: rayures .8s linear infinite;
}
.progression progress::-moz-progress-bar { border-radius: 999px; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .28) 0 8px, transparent 8px 16px), linear-gradient(90deg, var(--indigo), var(--ciel), var(--ambre)); }

/* Messages : erreur, et réussite avec coche qui se dessine */
.message.erreur { background: #fde8e8; color: #8a1c1c; animation: secoue .4s; }
@media (prefers-color-scheme: dark) { .message.erreur { background: #3a1d1d; color: #ffb4b4; } }
.message.ok { display: flex; align-items: flex-start; gap: 10px; background: color-mix(in srgb, var(--ok) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); animation: monte .4s var(--ressort); }
.coche { flex: none; color: var(--ok); width: 24px; height: 24px; }
.coche circle { stroke-dasharray: 63; stroke-dashoffset: 63; animation: trace .5s ease-out forwards; }
.coche path { stroke-dasharray: 16; stroke-dashoffset: 16; animation: trace .35s .4s ease-out forwards; }
.resultat { margin-top: 14px; display: grid; gap: 10px; animation: monte .45s .1s var(--ressort) both; }
.liens { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.liens li { display: flex; align-items: center; gap: 10px; margin: 0; animation: monte .4s var(--ressort) both; }
.liens li:nth-child(2) { animation-delay: .06s; } .liens li:nth-child(3) { animation-delay: .12s; } .liens li:nth-child(n+4) { animation-delay: .18s; }
.liens a.bouton { display: block; flex: 1; min-width: 0; overflow-wrap: anywhere; text-align: left; }
.apercu { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--bord); flex: none; background: #fff; }

/* Badges sous l'outil */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.badges li { display: inline-flex; align-items: center; gap: 6px; margin: 0; background: var(--surface); border: 1px solid var(--bord); color: var(--texte); border-radius: 999px; padding: 5px 12px 5px 9px; font-size: .86rem; font-weight: 600; }
.badges li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.categorie { margin-top: 30px; display: flex; align-items: center; gap: 10px; }
.categorie::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--bord), transparent); }

/* Menu par catégories */
.menu nav .rubrique { display: block; padding: 10px 12px 4px; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--texte-doux); }
/* Outils liés et guides */
.liste-guides { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.liste-guides li { margin: 0; }
.liste-guides a { position: relative; display: block; padding: 13px 40px 13px 16px; background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; text-decoration: none; color: var(--texte); transition: transform .3s var(--ressort), border-color .3s, box-shadow .3s; }
.liste-guides a::after { content: "→"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; transition: transform .3s var(--ressort); }
.liste-guides a:hover { border-color: var(--accent); box-shadow: var(--ombre); transform: translateX(3px); }
.liste-guides a:hover::after { transform: translate(4px, -50%); }
.liste-guides strong { display: block; color: var(--texte); font-family: var(--police-titre); letter-spacing: -.01em; }
.liste-guides span { font-size: .9rem; color: var(--texte-doux); }
.encadre-outil { background: radial-gradient(120% 140% at 0% 0%, var(--accent-doux), var(--surface) 75%); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px 18px; margin: 18px 0; box-shadow: var(--ombre); }
.encadre-outil a.bouton { display: inline-flex; margin: 6px 8px 0 0; }
.maj { font-size: .85rem; color: var(--texte-doux); }
/* Panneaux signature et ordre des pages */
.extra:empty { display: none; }
.extra { margin: 14px 0; }
.signature-pad { display: block; width: 100%; max-width: 600px; aspect-ratio: 3 / 1; height: auto; background: #fff; border: 2px dashed var(--bord); border-radius: 12px; touch-action: none; cursor: crosshair; }
.apercu-page { display: block; width: 100%; max-width: 600px; height: auto; border: 1px solid var(--bord); border-radius: 8px; box-shadow: var(--ombre); cursor: crosshair; background: #fff; }
.pages-grille { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.page-case { background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 8px; text-align: center; transition: opacity .25s, transform .25s var(--ressort); }
.page-case.retiree { opacity: .35; }
.page-case.retiree .num { text-decoration: line-through; }
.miniature { display: block; max-width: 100%; height: auto; margin: 0 auto 6px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.page-case .num { display: block; font-size: .85rem; font-weight: 600; }
.page-case .actions { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }

/* ---------- Motion ---------- */
/* Logo : arrivée, puis le badge « convertir » fait un tour ; il retourne au survol */
.logo { animation: logo-arrivee .7s var(--ressort) both; }
.logo .logo-badge { transform-box: fill-box; transform-origin: center; animation: badge-tour 1.1s .3s cubic-bezier(.5, 0, .2, 1) both; transition: transform .6s var(--ressort); }
.marque:hover .logo .logo-badge { transform: rotate(180deg); }
/* Apparition au défilement (assets/js/anim.js ne masque que ce qui est sous l'écran) */
.apparait { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s var(--ressort); }
.apparait.vu { opacity: 1; transform: none; }
/* Visuel du bandeau */
.hero-visuel .v-orbite { transform-origin: 180px 130px; animation: tourne 60s linear infinite; }
.hero-visuel .v-entre, .hero-visuel .v-sort { animation: flux 1.6s linear infinite; }
.hero-visuel .v-appareil { animation: flotte-doux 6s ease-in-out infinite; }
.hero-visuel .v-pouls { transform-box: fill-box; transform-origin: center; animation: pouls 2.8s ease-in-out infinite; }
.hero-visuel .v-barre { transform-box: fill-box; transform-origin: left center; animation: charge 3.2s var(--ressort) infinite; }
.hero-visuel .v-fichier { animation: flotte-doux 5s ease-in-out infinite; }
.hero-visuel .v-f2 { animation-delay: -1.2s; } .hero-visuel .v-f3 { animation-delay: -2.4s; } .hero-visuel .v-f4 { animation-delay: -3.6s; }
.hero-visuel .v-etincelle path { transform-box: fill-box; transform-origin: center; animation: scintille 3s ease-in-out infinite; }
.hero-visuel .v-etincelle path + path { animation-delay: -1.5s; }

@keyframes nuages { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
@keyframes logo-arrivee { from { opacity: 0; transform: scale(.6) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes badge-tour { from { transform: rotate(-360deg) scale(.4); } 60% { transform: rotate(15deg) scale(1.1); } to { transform: none; } }
@keyframes surgit { from { opacity: 0; transform: scale(.7) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes deroule { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes monte { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
@keyframes flotte-doux { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes flux { to { stroke-dashoffset: -16; } }
@keyframes pouls { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .6; } }
@keyframes charge { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes scintille { 0%, 100% { transform: scale(.6) rotate(0); opacity: .4; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes rayures { to { background-position: 22.6px 0, 0 0; } }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes secoue { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Animations réduites : tout est figé dans son état final */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .apparait { opacity: 1; transform: none; }
}

/* Lisibilité (23/11/2026, demande : « très simple à comprendre… pas 36 000 textes ») :
   réponse directe en gros en haut des guides, gros bouton d'action, 16 px minimum sur mobile. */
.chapo.reponse { font-size: 1.18rem; line-height: 1.5; color: var(--texte); font-weight: 600; background: var(--surface); border: 1px solid var(--bord); border-left: 4px solid var(--accent); border-radius: 14px; padding: 14px 16px; }
.encadre-outil .bouton.principal { font-size: 1.05rem; padding-left: 22px; padding-right: 22px; }
@media (max-width: 640px) {
  .fil { display: none; }
  .aide, .badges li, .maj, .champ label, .etiquette, .ligne-case, .tuile .libelle, .message, .carte-texte span,
  .encadre, .sources, .progression, .page-case .num, .fichiers .nom, main p:not(.chapo):not(.depot-titre), main li, main summary, table { font-size: 1rem; }
  .outil .boutons > button.principal { flex: 1 1 100%; min-height: 52px; font-size: 1.1rem; }
  .encadre-outil .bouton.principal { display: flex; justify-content: center; width: 100%; min-height: 52px; }
}
