/* Pacificateur — charte bleu / blanc / rouge. Polices système uniquement (aucune requête vers un tiers). */
:root {
  --blue: #1b3a8a;
  --blue-700: #142b69;
  --blue-900: #0d1c47;
  --blue-100: #dde6f8;
  --blue-50: #eef2fb;
  --red: #c8202f;
  --red-700: #a31a27;
  --red-50: #fdecee;
  --white: #ffffff;
  --paper: #f6f7fb;
  --ink: #0f1a3d;
  --muted: #55608a;
  --line: #dfe3f0;
  --green: #1c7c46;
  --green-50: #e6f4ec;
  --amber: #c9650a;
  --amber-50: #fdf0e0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 26, 61, .06), 0 10px 28px rgba(15, 26, 61, .09);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--blue-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* Bande tricolore */
.flag { height: 6px; background: linear-gradient(90deg, var(--blue) 0 33.33%, var(--white) 33.33% 66.66%, var(--red) 66.66%); box-shadow: inset 0 -1px 0 var(--line); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue-900); font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo:hover { color: var(--blue); }
nav.main { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; justify-content: flex-end; }
nav.main a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .96rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
nav.main a:not(.btn):hover { color: var(--blue); border-bottom-color: var(--red); }
@media (max-width: 860px) { nav.main a:not(.btn) { display: none; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 999px; padding: 11px 22px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-700); color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue-100); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-700); }
.btn-light { background: var(--white); color: var(--blue-900); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-900); }
.btn-outline-light { color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-small { padding: 7px 14px; font-size: .9rem; }
.btn-danger { background: var(--white); color: var(--red-700); border-color: #f0b8be; }
.btn-danger:hover { background: var(--red-50); color: var(--red-700); border-color: var(--red); }

/* Héros */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2b4fae 0%, transparent 60%), linear-gradient(160deg, var(--blue-900), var(--blue-700)); color: var(--white); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 72px 80px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; box-shadow: inset 0 -.32em 0 var(--red); }
.hero .lead { font-size: 1.2rem; color: #d7e0f7; max-width: 38em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 18px; }
.hero .assure { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: #c3cff0; font-size: .95rem; }
.hero .assure li::before { content: "✓"; color: #8fb0ff; margin-right: 7px; font-weight: 700; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 56px; } }

/* Sections */
section.block { padding-block: 72px; }
section.block.alt { background: var(--paper); }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }

/* Voyant d'autonomie */
.voyant { display: inline-flex; flex-direction: column; gap: 9px; padding: 12px 10px; background: #111a38; border-radius: 999px; box-shadow: inset 0 0 0 2px #29345c; }
.voyant i { width: 24px; height: 24px; border-radius: 50%; background: #2a3458; display: block; }
.voyant i.on-green { background: #2ecc71; box-shadow: 0 0 14px 3px rgba(46, 204, 113, .6); }
.voyant i.on-orange { background: #ffa21f; box-shadow: 0 0 14px 3px rgba(255, 162, 31, .6); }
.voyant i.on-red { background: #ff4a58; box-shadow: 0 0 14px 3px rgba(255, 74, 88, .6); }
.light-card { display: grid; gap: 14px; align-content: start; }
.light-card .voyant { flex-direction: row; padding: 8px 12px; gap: 9px; justify-self: start; }
.light-card .voyant i { width: 22px; height: 22px; }
.light-card .light-tag { margin-bottom: 6px; }
.light-tag { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px 14px 4px 10px; font-weight: 700; font-size: .95rem; }
.light-tag::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.light-tag.green { background: var(--green-50); color: var(--green); }
.light-tag.orange { background: var(--amber-50); color: var(--amber); }
.light-tag.red { background: var(--red-50); color: var(--red-700); }
.light-tag.none { background: var(--blue-50); color: var(--muted); }

/* Aperçu de dossier (héros) */
.demo { background: var(--white); color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.demo header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.demo header strong { font-family: var(--serif); font-size: 1.1rem; color: var(--blue-900); }
.demo header span { color: var(--muted); font-size: .85rem; }
.demo .row { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; margin-bottom: 10px; }
.demo .row b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-size: .8rem; }
.demo .cite { font-size: .8rem; color: var(--blue); }
.demo .foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.demo .foot .voyant { padding: 7px 6px; gap: 5px; flex-direction: row; }
.demo .foot .voyant i { width: 16px; height: 16px; }

/* Tableau de transparence */
table.clear { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.clear th, table.clear td { text-align: left; padding: 14px 18px; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .98rem; }
table.clear th { width: 28%; background: var(--blue-50); color: var(--blue-900); font-weight: 600; }
table.clear tr:last-child th, table.clear tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { table.clear th, table.clear td { display: block; width: 100%; } table.clear th { border-bottom: 0; padding-bottom: 4px; } }

/* Bandeaux */
.band { background: var(--blue-50); border-left: 5px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; }
.band.warn { background: var(--amber-50); border-left-color: var(--amber); }
.band.bad { background: var(--red-50); border-left-color: var(--red); }
.band p:last-child { margin: 0; }
.cta-final { background: linear-gradient(160deg, var(--blue-900), var(--blue-700)); color: var(--white); text-align: center; padding-block: 72px; }
.cta-final h2 { color: var(--white); }
.cta-final p { color: #d1dcf7; max-width: 38em; margin-inline: auto; }

/* Pied de page */
.foot-site { background: var(--blue-900); color: #b9c6ea; padding-block: 36px 28px; font-size: .94rem; }
.foot-site a { color: #d6e0fb; }
.foot-site a:hover { color: var(--white); }
.foot-site .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: flex-start; }
.foot-site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-site .legal { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: #98a8d4; }
.fr { display: inline-flex; align-items: center; gap: 7px; }
.fr svg { width: 18px; height: 18px; }
.adm { opacity: .55; font-size: .8rem; }

/* Pages de formulaire */
.form-page { min-height: 62vh; display: grid; place-items: center; padding: 40px 16px 64px; background: var(--paper); }
.form-card { width: min(480px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.form-card h1 { font-size: 1.75rem; }
.lead { color: var(--muted); }
.note { background: var(--blue-50); border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--blue-50); border-radius: 999px; padding: 4px; margin-block: 18px; }
.tabs button { border: 0; background: transparent; border-radius: 999px; padding: 9px; font: 600 .96rem var(--sans); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--blue-900); box-shadow: 0 1px 4px rgba(15, 26, 61, .15); }
.form label, .field label { display: block; font-weight: 600; font-size: .95rem; margin: 14px 0 5px; }
.form label span, .field label span { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], textarea, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid #c5cce2; border-radius: 10px; padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(27, 58, 138, .25); border-color: var(--blue); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 6px; font-size: .93rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.form .btn[type=submit] { width: 100%; margin-top: 18px; }
.form-msg { min-height: 1.4em; margin: 12px 0 0; font-size: .95rem; color: var(--green); }
.form-msg.bad { color: var(--red-700); }
.linkbtn { background: none; border: 0; padding: 0; margin-top: 10px; color: var(--blue); font: inherit; font-size: .92rem; text-decoration: underline; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.done .btn { margin-top: 8px; }
.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.small { font-size: .9rem; color: var(--muted); }

/* Pages de texte */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose li { margin-bottom: .4em; }
.page-head { background: var(--blue-50); border-bottom: 1px solid var(--line); padding-block: 44px 36px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 42em; margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top, .foot-site, .flag { display: none; } }

/* Utilitaires (la politique de sécurité interdit les attributs style) */
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 22px; }
.mt-l { margin-top: 30px; }
.hero .kicker { color: #ffb3bb; }
.foot-brand { color: #fff; font-family: var(--serif); font-size: 1.15rem; }

/* Avis */
.stars-s { color: #e8a317; letter-spacing: 2px; font-size: 1.15rem; }
.review p { margin: 6px 0; }

@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; row-gap: 6px; }
  nav.main { gap: 6px 10px; }
}
