:root {
  --blue: #1f4e99;
  --navy: #0f2f6b;
  --navy-dark: #0b2250;
  --btn: #2a5ca8;
  --btn-hover: #1f4a8a;
  --gold: #c9a878;
  --ink: #1b1b1b;
  --muted: #565c65;
  --line: #dfe1e2;
  --bg: #fff;
  --tint: #f4f5f7;
  --amber: #ffc72c;
  --amber-dark: #6b4a00;
  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 18px; line-height: 1.5;
}
a { color: var(--btn); }
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid #2491ff; outline-offset: 2px; }

/* ---------- Bandeau RP (clair, sobre, mais lisible) ---------- */
.rp-banner { background: #fff; color: #000; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.rp-banner-inner { display: flex; align-items: center; min-height: 26px; padding-top: 3px; padding-bottom: 3px; }
.rp-arrow { flex: none; width: 15px; height: 8px; margin-right: 8px; color: #000; transition: transform .25s ease; }
/* Bandeau déplié (« En savoir plus ») : la flèche pivote vers le bas. */
.rp-banner.is-open .rp-arrow { transform: rotate(90deg); }
/* Zone cliquable autour de la flèche, un peu plus grande que le dessin. */
.rp-arrow-btn { flex: none; display: flex; align-items: center; background: none; border: 0; padding: 6px 4px; margin: -6px 4px -6px -4px; color: inherit; cursor: pointer; }
.rp-arrow-btn .rp-arrow { margin-right: 0; }
@media (prefers-reduced-motion: reduce) { .rp-arrow { transition: none; } }
.rp-banner p { line-height: 1.25; }
.rp-banner strong { color: #000; font-weight: 700; }
.rp-banner-inner p { flex: 1; }
.lang { position: relative; flex: none; margin-left: 16px; }
.lang-btn { display: flex; align-items: center; gap: 6px; height: 20px; padding: 0 6px 0 7px; font: inherit; font-size: 12.5px; background: #fff; border: 1px solid #c3c8cf; border-radius: 4px; color: #000; cursor: pointer; transition: border-color .15s, background .15s; }
.lang-btn:hover, .lang-btn[aria-expanded=true] { background: var(--tint); border-color: #8d95a0; }
.flag { width: 14px; height: 9.33px; display: block; flex: none; border-radius: 1.5px; box-shadow: 0 0 0 .5px rgba(0,0,0,.25); }
.chev { width: 7px; height: 4px; flex: none; transition: transform .15s; }
.lang-btn[aria-expanded=true] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 130px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(15,47,107,.14); padding: 4px; }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: none; border: 0; border-radius: 4px; padding: 6px 8px; font: inherit; font-size: 12.5px; color: var(--ink); text-align: left; cursor: pointer; }
.lang-menu button:hover { background: var(--tint); }
.lang-menu button[aria-checked=true] { font-weight: 700; }
.linklike { background: none; border: 0; padding: 0; margin-left: 6px; font: inherit; font-weight: 600; color: #000; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.rp-details { background: #fafbfc; border-top: 1px solid var(--line); font-size: 14px; padding: 10px 0 14px; }
.rp-details ul { margin: 0; padding-left: 22px; }
.rp-details li { margin: 4px 0; }

/* ---------- En-tête bleu, fin ---------- */
.top { background: linear-gradient(180deg, #235aae, var(--blue)); color: #fff; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; flex: none; }
.seal { width: 46px; height: 46px; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.logo-name { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.brand-title { font-family: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.05; }
.brand-sub { font-family: "Jost", "Helvetica Neue", Arial, sans-serif; font-weight: 300; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; line-height: 1; opacity: .75; }
.tools { display: flex; align-items: center; gap: 12px; }
.top-links { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.top-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: 6px; transition: background .15s; }
.top-links a:hover { background: rgba(255,255,255,.14); }
.search { display: flex; }
.search input { width: 170px; height: 36px; border: 1px solid rgba(255,255,255,.55); border-right: 0; border-radius: 6px 0 0 6px; padding: 0 12px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.search button { width: 40px; height: 36px; border: 1px solid rgba(255,255,255,.55); background: #fff; color: var(--navy); border-radius: 0 6px 6px 0; cursor: pointer; padding: 0; }
.search svg { width: 18px; height: 18px; }
.signin { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 36px; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 6px; transition: background .15s, border-color .15s, color .15s; }
.signin svg { width: 22px; height: 22px; }
.signin:hover, .signin[aria-expanded=true] { background: #fff; border-color: #fff; color: var(--navy); }
button.signin { position: relative; background: none; padding: 0; cursor: pointer; font: inherit; }
.acc-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px var(--blue); }
.acc-dot[hidden] { display: none; }

/* ---------- Menu du compte ---------- */
.account { position: relative; }
.acc-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 200px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(15,47,107,.18); padding: 4px; }
.acc-menu[hidden], .acc-menu [hidden] { display: none; }
.acc-menu button, .acc-menu a { display: block; text-decoration: none; width: 100%; background: none; border: 0; border-radius: 4px; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.acc-menu button:hover, .acc-menu a:hover { background: var(--tint); }
.acc-who { display: flex; flex-direction: column; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.3; }
.acc-who span { color: var(--muted); font-size: 13px; }
.acc-role { align-self: flex-start; margin-top: 6px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); background: #e6edf8; border-radius: 3px; padding: 2px 6px; }
.acc-role[hidden] { display: none; }

/* ---------- Fenêtre de connexion ---------- */
.auth { width: min(420px, calc(100vw - 32px)); border: 0; border-radius: 10px; padding: 28px; box-shadow: 0 24px 60px rgba(11,34,80,.35); color: var(--ink); }
.auth::backdrop { background: rgba(11,34,80,.45); backdrop-filter: blur(2px); }
.auth-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 6px; color: var(--muted); cursor: pointer; }
.auth-x:hover { background: var(--tint); color: var(--ink); }
.auth-x svg { width: 14px; height: 14px; }
.auth-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-head h2 { font-size: 24px; }
.auth-note { font-size: 13px; color: var(--muted); background: var(--tint); border-radius: 6px; padding: 8px 10px; margin-bottom: 16px; }
#auth-form label { display: block; margin-bottom: 12px; }
#auth-form label[hidden], #auth-form p[hidden], #auth-form div[hidden] { display: none; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#auth-form label > span:not(.pw-field) { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
#auth-form input { width: 100%; height: 40px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 12px; font: inherit; font-size: 15px; }
#auth-form input:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 3px rgba(42,92,168,.2); }
.auth-hint { font-size: 12.5px; color: var(--muted); margin: -4px 0 12px; }
.auth-hint.f-setup { margin: 0 0 12px; color: var(--ink); background: #e6edf8; border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.auth-err { font-size: 14px; color: #b50909; background: #fdecec; border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; }
.auth-submit { width: 100%; cursor: pointer; font: inherit; font-weight: 700; margin-top: 4px; }
.auth-switch { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.auth-switch .btn { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 16px; cursor: pointer; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
.search-msg { font-size: 13px; color: #dbe6f7; padding-bottom: 8px; }

/* ---------- Barre de navigation ---------- */
.navbar { background: var(--navy); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.navbar-inner { display: flex; align-items: center; min-height: 40px; }
.menu { display: flex; margin-left: -13px; }
.menu a { position: relative; display: flex; align-items: center; height: 40px; padding: 0 13px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.menu a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); transform: scaleX(0); transition: transform .18s ease; }
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }
.menu a.m-only { display: none; }
.burger { display: none; align-items: center; gap: 0; background: none; border: 0; padding: 10px 0; cursor: pointer; color: #fff; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.burger { flex-direction: column; align-items: flex-start; }

/* ---------- Barre collée (au défilement) ---------- */
.nav-logo, .nav-search { display: none; }
.nav-logo { align-items: center; gap: 8px; margin-right: 18px; color: #fff; text-decoration: none; flex: none; }
.nav-logo img { width: 24px; height: 24px; display: block; }
.nav-logo span { font-weight: 600; font-size: 15px; letter-spacing: .06em; }
.nav-search { margin-left: auto; }
.nav-search input { width: 150px; height: 28px; font-size: 13px; }
.nav-search button { width: 32px; height: 28px; }
.nav-search svg { width: 15px; height: 15px; }
.navbar.stuck .nav-logo, .navbar.stuck .nav-search { display: flex; animation: nav-in .2s ease; }
.navbar.stuck .menu { margin-left: 0; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(#fafafa, #f0f0f0); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr 360px; gap: 24px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: 50px; font-weight: 600; letter-spacing: -.3px; line-height: 1.15; margin-bottom: 24px; }
.hero-lead { font-size: 20px; margin-bottom: 20px; max-width: 460px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; max-width: 420px; font-weight: 600; font-size: 17px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 20px; height: 20px; color: var(--navy); flex: none; }
.btn { display: inline-block; background: var(--btn); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; padding: 12px 22px; border-radius: 4px; border: 2px solid var(--btn); }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-outline { background: #fff; color: var(--btn); }
/* Boutons à contour : au survol, ils se remplissent de la couleur de leur bordure. */
.btn-outline:hover, .btn-outline:focus-visible { background: var(--btn); border-color: var(--btn); color: #fff; }
.hero-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero-art svg { width: 100%; max-width: 360px; display: block; margin: 0 auto; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.app-card h2 { font-size: 23px; font-weight: 600; margin-bottom: 10px; }
.app-card p { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.phone { width: 210px; margin: 0 auto 18px; background: #111; border-radius: 30px; padding: 8px; }
.phone-screen { background: var(--blue); border-radius: 23px; padding: 30px 16px 18px; color: #fff; }
.phone-logo { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: 1px; margin-bottom: 20px; }
.phone-logo img { width: 34px; height: 34px; }
.phone-logo em { font-style: normal; background: #fff; color: var(--navy); font-size: 13px; padding: 2px 6px; border-radius: 3px; }
.phone-btn { border: 1.5px solid #fff; border-radius: 20px; font-size: 12px; font-weight: 700; padding: 8px 6px; }
.phone-btn.solid { background: #fff; color: var(--blue); }
.phone-or { font-size: 11px; margin: 7px 0; }
.phone-rp { margin-top: 20px; background: var(--amber); color: #1b1300; font-size: 9px; font-weight: 900; letter-spacing: .5px; padding: 4px; border-radius: 3px; }

/* ---------- Bandeau d'aide ---------- */
.help-strip { border-bottom: 1px solid var(--line); }
.help-strip-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.help-strip h2 { font-size: 27px; font-weight: 600; padding-left: 20px; border-left: 4px solid var(--gold); }
.help-strip p { margin-bottom: 8px; }
.help-strip a { font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.tint { background: var(--tint); }
.section-title { text-align: center; font-size: 34px; font-weight: 600; margin-bottom: 40px; }
.section-title::after { content: ""; display: block; width: 72px; height: 4px; background: var(--gold); margin: 14px auto 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: block; background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 28px; text-decoration: none; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s; }
/* Survol (et focus clavier) : la carte passe en bleu, texte et icône en blanc, sans soulignement. */
.card:hover, .card:focus-visible { background: var(--btn); border-color: var(--btn); color: #fff; box-shadow: 0 10px 24px rgba(15,47,107,.28); transform: translateY(-2px); }
.card:hover p, .card:focus-visible p, .card:hover .ci, .card:focus-visible .ci { color: #fff; }
.card:hover .ci, .card:focus-visible .ci { --ci-inner: var(--btn); }  /* détails de l'icône en bleu sur fond blanc */
.card p, .card .ci { transition: color .2s, transform .25s var(--ease-out, ease); }
.ci { width: 34px; height: 34px; color: var(--btn); margin-bottom: 12px; }
.card h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 17px; color: #33373d; }

/* ---------- Onglets + accordéon ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px; border-bottom: 2px solid var(--line); max-width: 780px; margin: 0 auto 28px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; font: inherit; font-size: 16px; font-weight: 600; color: var(--btn); padding: 10px 2px; cursor: pointer; }
.tabs button[aria-selected=true] { color: var(--ink); font-weight: 700; border-bottom-color: var(--navy); }
.panel { max-width: 780px; margin: 0 auto; border: 1px solid var(--line); background: #fff; }
.panel[hidden] { display: none; }
details { border-top: 1px solid var(--line); }
details:first-child { border-top: 0; }
summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 18px; padding: 15px 20px 15px 52px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; position: absolute; left: 22px; top: 50%; width: 9px; height: 9px; border-right: 3px solid var(--btn); border-bottom: 3px solid var(--btn); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
details[open] summary::before { transform: translateY(-30%) rotate(-135deg); }
summary:hover { background: var(--tint); }
details p { padding: 0 20px 18px 52px; color: #33373d; font-size: 17px; }

/* ---------- Actualités ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news article { border-top: 4px solid var(--navy); padding-top: 16px; }
.news time { display: block; font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.news h3 { font-size: 21px; margin-bottom: 8px; }
.news p { font-size: 16px; color: #33373d; }

/* ---------- Encart À propos ---------- */
.notice { display: flex; gap: 20px; background: #fff8dd; border: 2px solid #e0a800; border-left-width: 10px; border-radius: 6px; padding: 28px; }
.notice .ico { flex: none; width: 44px; height: 44px; color: var(--amber); filter: drop-shadow(0 0 0 #1b1300); }
.notice h2 { font-size: 30px; margin-bottom: 12px; }
.notice p { margin-bottom: 12px; }
.notice ul { margin: 0; padding-left: 22px; }
.notice li { margin: 6px 0; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.5; }
.footer a { color: rgba(255,255,255,.92); text-decoration: none; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 22px 0 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand .seal { width: 32px; height: 32px; }
.footer-brand .brand-title { font-size: 13px; }
.footer-brand .brand-sub { font-size: 8.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13.5px; font-weight: 600; }
.footer-legal { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 32px; padding: 14px 0 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: 12px; }
.footer-legal p { max-width: 760px; }
.footer-legal strong { color: rgba(255,255,255,.9); font-weight: 600; }
.footer-copy { flex: none; white-space: nowrap; }
.footer-copy span { margin: 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr 340px; }
  .hero-art { display: none; }
}
@media (max-width: 1100px) {
  .search input { width: 130px; }
}
@media (max-width: 980px) {
  .burger { display: flex; flex-direction: row; align-items: center; gap: 10px; font-weight: 600; }
  .burger span { display: none; }
  .burger::before { content: ""; width: 22px; height: 14px; background: linear-gradient(#fff 0 2px, transparent 2px 6px, #fff 6px 8px, transparent 8px 12px, #fff 12px 14px); }
  .burger em { font-style: normal; font-size: 16px; }
  .navbar-inner { flex-wrap: wrap; padding-top: 2px; }
  .menu { display: none; width: 100%; flex-direction: column; padding-bottom: 6px; margin-left: 0; }
  .menu.open { display: flex; }
  .menu a { height: auto; border-bottom: 1px solid rgba(255,255,255,.15); padding: 12px 2px; font-size: 15px; }
  .menu a::after { display: none; }
  .search, .navbar.stuck .nav-search { display: none; }
  .top-links { display: none; }
  .nav-logo { order: -1; }
  .menu a.m-only { display: flex; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; }
  .hero h1 { font-size: 36px; }
  .cards, .news { grid-template-columns: 1fr; }
  .help-strip-inner { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
  .help-strip h2 { font-size: 24px; }
  .notice { flex-direction: column; padding: 20px; }
  .section { padding: 44px 0; }
  .section-title { font-size: 28px; }
  .tabs { gap: 2px 16px; }
  .rp-banner-inner { align-items: flex-start; }
}
@media (max-width: 520px) {
  .seal { width: 38px; height: 38px; }
  .logo { gap: 10px; }
  .brand-title { font-size: 13px; letter-spacing: .03em; }
  .brand-sub { font-size: 8px; letter-spacing: .12em; }
}

/* ---------- Pages intérieures ---------- */
.page-hero { background: linear-gradient(#fafafa, #f0f0f0); border-bottom: 1px solid var(--line); padding: 36px 0 40px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--btn); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: 44px; margin-bottom: 12px; }
.page-lead { font-size: 20px; color: #33373d; max-width: 680px; }
.page-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
.toc { position: sticky; top: 64px; font-size: 15px; }
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc ol a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; }
.toc ol a:hover { color: var(--btn); border-left-color: var(--gold); }
.toc ol a[aria-current]:not([aria-current=false]) { color: var(--navy); font-weight: 700; border-left-color: var(--navy); background: linear-gradient(90deg, #eef2f8, transparent); }
.toc ol a { transition: color .15s, border-color .15s, background-color .15s; }
.prose { max-width: 760px; }
.prose section { margin-bottom: 56px; scroll-margin-top: 64px; }
.prose h2 { font-size: 32px; margin-bottom: 16px; }
.prose h3 { font-size: 20px; margin-bottom: 4px; }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin: 6px 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px !important; }
.fiction-note { font-size: 15px; background: #e6edf8; border-radius: 6px; padding: 10px 14px; }
.timeline { list-style: none; margin: 24px 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 96px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 34px; margin-bottom: 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 91px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.t-year { font-weight: 700; color: var(--navy); font-size: 15px; text-align: right; padding-top: 1px; }
.timeline p { margin: 0; color: #33373d; font-size: 17px; }
.seal-fig { display: flex; gap: 28px; align-items: flex-start; margin: 0; }
.seal-fig img { flex: none; width: 160px; height: 160px; }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mission { background: var(--tint); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 6px; padding: 18px; }
.mission p { margin: 0; font-size: 16px; color: #33373d; }
.top-links a[aria-current=page] { background: rgba(255,255,255,.14); }
@media (max-width: 860px) {
  .page-hero h1 { font-size: 34px; }
  .page-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .toc { position: static; }
  .seal-fig { flex-direction: column; }
  .mission-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 30px; }
  .timeline li::before { left: 2px; }
  .t-year { text-align: left; }
}

/* ---------- Photos ---------- */
.photo-hero { position: relative; overflow: hidden; background: var(--navy); border-bottom: 0; padding: 72px 0 80px; color: #fff; }
.photo-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,34,80,.92) 0%, rgba(11,34,80,.7) 45%, rgba(11,34,80,.2) 100%); }
.photo-hero .wrap { position: relative; z-index: 1; }
.photo-hero .crumbs, .photo-hero .crumbs a { color: rgba(255,255,255,.85); }
.photo-hero .page-lead { color: rgba(255,255,255,.9); }
.photo { margin: 24px 0 28px; }
.photo img { display: block; width: 100%; height: auto; border-radius: 10px; }
.photo figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); font-style: italic; }
.photo.right { float: right; width: 42%; margin: 4px 0 16px 28px; }
.photo.wide img { aspect-ratio: 16 / 7; object-fit: cover; }
.photo.banner img { aspect-ratio: 16 / 6; object-fit: cover; object-position: center 60%; }
.prose section::after { content: ""; display: block; clear: both; }
.fig-side { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: center; margin-bottom: 8px; }
.fig-side .photo { margin: 0; }
.fig-side .photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.place { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; }
.place img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.place:hover img { transform: scale(1.04); }
.place figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(11,34,80,.9)); color: #fff; display: flex; flex-direction: column; }
.place strong { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.place span { font-size: 14px; opacity: .85; }
.mission { padding: 0; overflow: hidden; }
.mission img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.mission h3, .mission p { padding: 0 18px; }
.mission h3 { margin-top: 14px; }
.mission p { padding-bottom: 18px; }
.credits { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 860px) {
  .photo.right { float: none; width: 100%; margin: 16px 0; }
  .fig-side { grid-template-columns: 1fr; }
  .places { grid-template-columns: 1fr; }
  .place { aspect-ratio: 16 / 9; }
  .photo-hero::after { background: rgba(11,34,80,.78); }
}
.photo-hero .page-hero-inner { grid-template-columns: 1fr; }
.photo-hero .page-hero-inner > div { max-width: 640px; }

/* ---------- Bandeau RP défilant (au-dessus du pied de page) ---------- */
.rp-ticker { background: var(--amber); color: #1b1300; overflow: hidden; font-size: 13px; line-height: 1; border-top: 1px solid #e0a800; }
.rp-ticker-track { display: flex; width: max-content; animation: rp-scroll 40s linear infinite; }
.rp-ticker:hover .rp-ticker-track { animation-play-state: paused; }
.rp-ticker-seq { display: flex; align-items: center; flex: none; padding: 8px 0; }
.rp-ticker-seq span { white-space: nowrap; }
.rp-ticker-seq strong { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rp-ticker-seq i { font-style: normal; margin: 0 22px; opacity: .6; }
@keyframes rp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .rp-ticker-track { animation: none; width: auto; }
  .rp-ticker-seq { flex-wrap: wrap; white-space: normal; padding: 8px 24px; }
  .rp-ticker-seq + .rp-ticker-seq { display: none; }
}

/* ---------- Page Actualités ---------- */
.news-filters { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.news-filters button { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; background: none; border: 0; border-left: 2px solid transparent; margin-left: -2px; padding: 7px 0 7px 14px; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; }
.news-filters button:hover { color: var(--btn); border-left-color: var(--gold); }
.news-filters button[aria-pressed=true] { color: var(--navy); font-weight: 700; border-left-color: var(--navy); }
.news-filters span { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--tint); border-radius: 999px; padding: 1px 8px; }
.news-feed { min-width: 0; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: #e6edf8; border-radius: 3px; padding: 3px 7px; }
.news-body details { margin-top: 10px; }
.news-body summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--btn); list-style: none; }
.news-body summary::-webkit-details-marker { display: none; }
.news-body summary::after { content: "→"; transition: transform .15s; }
.news-body details[open] summary::after { transform: rotate(90deg); }
.news-body details[open] summary { margin-bottom: 8px; }
.news-body details p { color: #33373d; }
.news-feature { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 32px; box-shadow: 0 6px 24px rgba(15,47,107,.08); }
.news-feature img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.news-feature .news-body { padding: 28px 30px; align-self: center; }
.news-feature h2 { font-size: 30px; margin-bottom: 12px; }
.news-feature p { font-size: 17px; }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 8px 24px rgba(15,47,107,.12); transform: translateY(-2px); }
.news-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.news-card .news-body { padding: 18px 20px 20px; }
.news-card h3 { font-size: 21px; margin-bottom: 8px; }
.news-card p { font-size: 16px; }
.news-feed [hidden] { display: none; }
.news-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.news-feed .credits { margin-top: 40px; }
.news-all { text-align: center; margin-top: 32px; }
:target.news-card, :target.news-feature { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 860px) {
  .news-filters { flex-direction: row; flex-wrap: wrap; gap: 6px; border-left: 0; }
  .news-filters button { width: auto; margin: 0; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
  .news-filters button[aria-pressed=true] { background: var(--navy); color: #fff; border-color: var(--navy); }
  .news-filters button[aria-pressed=true] span { background: rgba(255,255,255,.2); color: #fff; }
  .news-feature { grid-template-columns: 1fr; }
  .news-feature img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .news-feature .news-body { padding: 20px; }
  .news-feature h2 { font-size: 24px; }
  .news-grid { grid-template-columns: 1fr; }
}

/* ---------- Page Déclarer ---------- */
.decl-info { margin-top: 28px; padding: 16px; background: var(--tint); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.decl-info p { margin-bottom: 6px; }
.decl-info-note { color: var(--muted); font-size: 13px; margin: 8px 0 0 !important; }
.decl-main { min-width: 0; max-width: 820px; }
.decl-main [hidden] { display: none !important; }
.decl-login { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 44px 32px; box-shadow: 0 6px 24px rgba(15,47,107,.08); }
.decl-login svg { width: 56px; height: 56px; margin-bottom: 12px; }
.decl-login h2 { font-size: 28px; margin-bottom: 10px; }
.decl-login p { color: #33373d; max-width: 520px; margin: 0 auto 22px; }
.decl-login-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.decl-login-actions .btn { cursor: pointer; font: inherit; font-weight: 700; }
.decl-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px 8px; margin: 0 0 20px; background: #fff; scroll-margin-top: 64px; }
.decl-form legend { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; padding: 0 8px; margin-left: -8px; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-family: "Source Sans 3", sans-serif; font-size: 14px; font-weight: 700; }
.optional { font-family: "Source Sans 3", sans-serif; font-style: normal; font-size: 13px; font-weight: 400; color: var(--muted); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.f-grid .f-wide { grid-column: 1 / -1; }
.decl-form label { display: block; margin-bottom: 16px; }
.decl-form label > span:first-child { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.decl-form input, .decl-form select, .decl-form textarea { width: 100%; height: 44px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.decl-form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.decl-form input:focus, .decl-form select:focus, .decl-form textarea:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 3px rgba(42,92,168,.2); }
.decl-form small { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
.money { position: relative; display: block; }
.money input { padding-right: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.money em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 600; }
.decl-summary { background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 8px 18px; margin: 4px 0 18px; font-variant-numeric: tabular-nums; }
.decl-summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 16px; }
.decl-summary .row + .row { border-top: 1px dashed var(--line); }
.decl-summary .minus strong { color: #565c65; font-weight: 600; }
.decl-summary .total { border-top: 1px solid #aab4c4 !important; font-weight: 700; }
.decl-summary .due { font-size: 20px; }
.decl-summary .due strong { color: var(--navy); font-family: var(--serif); font-size: 26px; }
.neg { color: #b50909 !important; }
.certify { display: flex !important; gap: 10px; align-items: flex-start; font-size: 15px; }
.certify input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.certify span { font-weight: 400 !important; margin: 0 !important; }
.decl-submit { width: 100%; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; margin-bottom: 16px; }
.decl-submit:disabled { opacity: .6; cursor: wait; }
.decl-done { display: flex; gap: 18px; align-items: flex-start; background: #eef8f1; border: 1px solid #b7dfc3; border-left: 6px solid #1f7a3f; border-radius: 10px; padding: 22px 24px; margin-bottom: 28px; outline: none; scroll-margin-top: 64px; }
.decl-done svg { width: 44px; height: 44px; flex: none; }
.decl-done h2 { font-size: 26px; margin-bottom: 6px; }
.decl-done p { margin-bottom: 8px; }
.decl-done .btn { font: inherit; font-weight: 700; cursor: pointer; margin-top: 6px; }
.muted { color: var(--muted); }
.decl-history { margin-top: 36px; scroll-margin-top: 64px; }
.decl-history h2 { font-size: 28px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.decl-history table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.decl-history th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--tint); padding: 10px 12px; white-space: nowrap; }
.decl-history td { padding: 10px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.decl-history .num { text-align: right; }
.decl-history code { font-size: 13px; color: var(--navy); }
.status { font-size: 12px; font-weight: 700; color: #1f4e99; background: #e6edf8; border-radius: 3px; padding: 2px 7px; }
@media (max-width: 860px) {
  .f-grid { grid-template-columns: 1fr; }
  .decl-form fieldset { padding: 18px 16px 4px; }
  .decl-info { display: none; }
}
.menu a[aria-current=page]::after { transform: scaleX(1); }

/* ---------- Statuts des déclarations ---------- */
.status.s-deposee { color: #1f4e99; background: #e6edf8; }
.status.s-validee { color: #6b4a00; background: #fff3c4; }
.status.s-payee { color: #1f7a3f; background: #e3f4e8; }
.status.s-refusee { color: #b50909; background: #fdecec; }
.note-row td { white-space: normal !important; font-size: 14px; background: #fafbfc; color: #33373d; border-top: 0 !important; padding-top: 0 !important; }

/* ---------- Espace d'administration ---------- */
.adm-hero { padding: 44px 0 48px; }
.adm-tabs { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.adm-tabs a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 8px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; font-size: 15px; }
.adm-tabs a:hover { color: var(--btn); border-left-color: var(--gold); }
.adm-tabs a[aria-current=page] { color: var(--navy); font-weight: 700; border-left-color: var(--navy); }
.adm-badge { font-size: 12px; font-weight: 700; color: #fff; background: #b50909; border-radius: 999px; padding: 1px 8px; }
.adm-badge[hidden] { display: none; }
.adm-main { min-width: 0; }
.adm-main [hidden] { display: none !important; }
.adm-panel h2 { font-size: 30px; margin-bottom: 6px; }
.adm-sub { font-size: 20px; margin: 28px 0 12px; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.adm-head .btn { font: inherit; font-weight: 700; cursor: pointer; }
.adm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 10px; padding: 14px 16px; }
.stat.warn { border-top-color: var(--gold); }
.stat span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.stat strong { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.adm-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--tint); padding: 10px 12px; white-space: nowrap; }
.adm-table td { padding: 10px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.adm-table .num { text-align: right; }
.adm-table code { font-size: 12.5px; color: var(--navy); }
.adm-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.adm-filters label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; gap: 4px; }
.adm-filters .grow { flex: 1; min-width: 200px; }
.adm-filters select, .adm-filters input { height: 38px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 10px; font: inherit; font-size: 15px; background: #fff; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--btn); cursor: pointer; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: #b50909; }
.adm-news { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.adm-news-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.adm-news-item img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.adm-news-item h3 { font-size: 18px; margin-bottom: 4px; }
.adm-news-item p.muted { font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.adm-news-item .news-meta { margin-bottom: 4px; }
.tag.gold { color: #6b4a00; background: #fff3c4; }
/* Compte staff : consultation seule */
.adm-readonly-note { display: flex; gap: 12px; align-items: flex-start; background: #eef2f8; border: 1px solid #c9d5e8; border-left: 4px solid var(--navy); border-radius: 8px; padding: 12px 16px; margin: 0 0 22px; font-size: 15px; color: #1d2a44; }
.adm-readonly-note[hidden] { display: none; }
.adm-readonly-note svg { flex: none; width: 22px; height: 22px; color: var(--navy); margin-top: 1px; }
.adm-readonly :is([data-pay], [data-del], [data-vis], [data-edit], [data-reset], #news-new, .adm-user-actions),
.adm-readonly :is(#dd-form, #id-form, #rd-form, #fd-form, #nd-form, #rate-form, #sector-rates-form, #deadline-form) button:not([type=button]) { display: none !important; }
.role-pick select { font: inherit; font-size: 14px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.adm-user-actions { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.reset-code { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.reset-code code { font-size: 26px; font-weight: 700; letter-spacing: .12em; color: var(--navy); background: var(--tint); border: 1px dashed #9fb0c8; border-radius: 8px; padding: 10px 16px; user-select: all; }
.tag.muted-tag { color: #4a4f57; background: #e8eaed; }
.adm-news-item.is-hidden { background: #f6f7f9; border-style: dashed; }
.adm-news-item.is-hidden img, .adm-news-item.is-hidden h3, .adm-news-item.is-hidden p.muted { opacity: .55; }
.adm-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-top: 16px; max-width: 560px; }
.adm-card h3 { font-size: 20px; margin-bottom: 6px; }
.adm-card .muted { font-size: 14px; margin-bottom: 14px; }
.adm-inline { display: flex; gap: 12px; align-items: center; }
.adm-inline .btn { font: inherit; font-weight: 700; cursor: pointer; }
.money.pct { width: 130px; }
.money.pct input { width: 100%; height: 42px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 30px 0 12px; font: inherit; font-size: 16px; text-align: right; }
.adm-msg { margin-top: 12px; font-size: 14px; border-radius: 6px; padding: 8px 10px; }
.adm-msg.ok { color: #1f7a3f; background: #e3f4e8; }
.adm-msg.err { color: #b50909; background: #fdecec; }
.adm-dialog { width: min(560px, calc(100vw - 32px)); }
.adm-dialog.wide { width: min(760px, calc(100vw - 32px)); }
.adm-dialog h2 { font-size: 24px; margin: 0 40px 16px 0; }
.adm-dialog form label { display: block; margin-bottom: 12px; }
.adm-dialog form label > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.adm-dialog input:not([type=checkbox]):not([type=radio]), .adm-dialog select, .adm-dialog textarea { width: 100%; min-height: 40px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 8px 12px; font: inherit; font-size: 15px; background: #fff; }
.adm-dialog textarea { resize: vertical; }
.adm-dialog [hidden] { display: none !important; }
.adm-dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0 0 18px; font-size: 15px; padding: 14px; background: var(--tint); border-radius: 8px; }
.adm-dl dt { color: var(--muted); }
.adm-dl dd { margin: 0; }
.photo-pick { border: 0; padding: 0; margin: 0 0 12px; }
.photo-pick legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.photo-pick > div { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.photo-opt { position: relative; margin: 0 !important; cursor: pointer; }
.photo-opt input { position: absolute; opacity: 0; }
.photo-opt img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; border: 3px solid transparent; }
.photo-opt input:checked + img { border-color: var(--navy); }
.photo-opt input:focus-visible + img { outline: 3px solid #2491ff; }
@media (max-width: 860px) {
  .adm-tabs { flex-direction: row; flex-wrap: wrap; gap: 6px; border-left: 0; }
  .adm-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin: 0; gap: 6px; }
  .adm-tabs a[aria-current=page] { background: var(--navy); color: #fff; border-color: var(--navy); }
  .adm-stats { grid-template-columns: 1fr 1fr; }
  .adm-news-item { grid-template-columns: 80px 1fr; }
  .adm-news-item img { width: 80px; height: 60px; }
  .adm-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; gap: 16px; }
  .photo-pick > div { grid-template-columns: repeat(4, 1fr); }
  .adm-dl { grid-template-columns: 1fr; }
  .adm-dl dt { margin-top: 6px; }
}

.base-pick { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.base-pick legend, .base-pick-label { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.base-pick label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.base-pick label:has(input:checked) { border-color: var(--navy); background: #f3f6fb; }
.base-pick input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.base-pick strong { display: block; font-size: 15px; }
.base-pick small { display: block; font-size: 13px; color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------- Page Demander une échéance ---------- */
.pick-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pick { display: flex !important; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; margin: 0 !important; }
.pick:has(input:checked) { border-color: var(--navy); background: #f3f6fb; }
.pick input { width: 18px !important; height: 18px !important; flex: none; }
.pick > span { flex: 1; display: flex; flex-direction: column; font-weight: 400 !important; margin: 0 !important; }
.pick > span .muted { font-size: 13.5px; }
.pick em { font-style: normal; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.decl-summary.plan .row.total { border-top: 0 !important; }
.decl-summary.plan .js-plan .row { border-top: 1px dashed var(--line); }
.inst-list { display: flex; flex-direction: column; gap: 12px; }
.inst-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.inst-item header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.inst-item p { margin: 4px 0; font-size: 15px; }
.inst-note { background: var(--tint); border-radius: 6px; padding: 8px 10px; }
.status.s-en_attente { color: #1f4e99; background: #e6edf8; }
.status.s-acceptee { color: #1f7a3f; background: #e3f4e8; }

/* ---------- Paiements (espace admin) ---------- */
.stat.danger { border-top-color: #b50909; }
.stat.danger strong { color: #b50909; }
.pay-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 16px; }
.pay-totals > div { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; padding: 10px 14px; }
.pay-totals .late { border-left-color: #b50909; }
.pay-totals .ok { border-left-color: #1f7a3f; }
.pay-totals span { display: block; font-size: 13px; color: var(--muted); }
.pay-totals strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.pay-totals .late strong { color: #b50909; }
.pay-totals .ok strong { color: #1f7a3f; }
.status.s-a_payer { color: #1f4e99; background: #e6edf8; }
.status.s-en_retard { color: #b50909; background: #fdecec; }
.status.s-paye { color: #1f7a3f; background: #e3f4e8; }
.row-late td { background: #fff8f8; }
.btn-small { font: inherit; font-size: 13px; font-weight: 700; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
@media (max-width: 860px) { .pay-totals { grid-template-columns: 1fr; } }
.adm-dl dd a { word-break: break-all; }

/* ---------- Remboursements ---------- */
.pick em small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-align: right; text-transform: uppercase; letter-spacing: .04em; }
.js-all { margin: -4px 0 16px; }
.status.s-accordee { color: #6b4a00; background: #fff3c4; }
.status.s-rembourse { color: #1f7a3f; background: #e3f4e8; }

/* ---------- Tableau de bord lisible ---------- */
.adm-hint { font-size: 14px; color: var(--muted); margin: -6px 0 12px; }
.adm-stats + .adm-sub { margin-top: 32px; }
a.stat { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
a.stat:hover { box-shadow: 0 6px 18px rgba(15,47,107,.12); transform: translateY(-1px); }
.stat small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.stat.ok { border-top-color: #1f7a3f; }
.stat.ok strong { color: #1f7a3f; }
.stat.is-zero { border-top-color: var(--line); }
.stat.is-zero strong { color: var(--muted); }
.muted-stat strong { font-size: 22px; }
.adm-ok { font-size: 14px; color: #1f7a3f; background: #e3f4e8; border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; }
.adm-ok[hidden] { display: none; }
.adm-stats:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .adm-stats:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Page de recherche ---------- */
.search-big { display: flex; max-width: 640px; margin-top: 16px; }
.search-big input { flex: 1; height: 48px; border: 0; border-radius: 8px 0 0 8px; padding: 0 16px; font: inherit; font-size: 17px; color: var(--ink); }
.search-big button { height: 48px; border: 0; border-radius: 0 8px 8px 0; padding: 0 22px; background: var(--amber); color: #1b1300; font: inherit; font-weight: 700; cursor: pointer; }
.search-big button:hover { background: #ffd24d; }
.search-page { max-width: 860px; padding-top: 32px; padding-bottom: 72px; }
.search-count { color: var(--muted); margin-bottom: 18px; }
.search-count strong { color: var(--ink); }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.search-result { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; }
.search-result h2 { font-size: 21px; margin-bottom: 6px; }
.search-result h2 a { color: var(--navy); text-decoration: none; }
.search-result h2 a:hover { text-decoration: underline; }
.search-result p:last-child { font-size: 15.5px; color: #33373d; }
.search-result mark { background: #fff3c4; color: inherit; border-radius: 2px; padding: 0 1px; }
.search-empty { background: var(--tint); border-radius: 10px; padding: 18px 22px; }
.search-empty ul { margin: 8px 0 0; padding-left: 20px; }
.search-empty li { margin: 4px 0; }

/* Barres de recherche : largeur fixe et un seul halo autour du champ et de la loupe. */
.search { border-radius: 6px; transition: box-shadow .15s; }
.search input:focus, .search input:focus-visible, .search button:focus-visible { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(255, 199, 44, .6); }
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- Code des affaires ---------- */
.law-toc ol { counter-reset: none; }
.law-toc ol a { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; line-height: 1.3; }
.law-toc ol a span { flex: none; min-width: 22px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.law-toc { max-height: calc(100vh - 90px); overflow-y: auto; }
.law { min-width: 0; max-width: 820px; }
.law [hidden] { display: none !important; }
.law-tools { position: sticky; top: 40px; z-index: 5; background: #fff; padding: 10px 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.law-tools input { width: 100%; height: 44px; border: 1px solid #c3c8cf; border-radius: 8px; padding: 0 14px; font: inherit; font-size: 16px; }
.law-tools input:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 3px rgba(42,92,168,.2); }
.law-tools p { margin-top: 6px; }
.law-chapter { margin: 36px 0 12px; scroll-margin-top: 110px; }
.law-chapter h2 { font-size: 28px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid var(--gold); }
.law-chapter h2 .kicker { display: block; margin-bottom: 4px !important; }
.law-article { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; scroll-margin-top: 110px; }
.law-article:target { border-left-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,120,.35); }
.law-article h3, .law-article h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.law-title { font-family: "Source Sans 3", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin: 24px 0 10px; padding-left: 10px; border-left: 3px solid var(--gold); }
.art-num { color: var(--navy); }
.law-article h3 .tag { font-family: "Source Sans 3", sans-serif; align-self: center; }
.law-article p { font-size: 16px; color: #2b2f35; margin-bottom: 8px; }
.law-article p:last-child { margin-bottom: 0; }
.law-article ul { margin: 0 0 8px; padding-left: 22px; }
.law-article li { font-size: 16px; color: #2b2f35; margin: 3px 0; }
.law-empty { padding: 30px 0; text-align: center; color: var(--muted); }
.law-signature { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-style: italic; color: var(--muted); }
@media (max-width: 860px) { .law-toc { max-height: none; } .law-tools { top: 0; } }

/* ---------- Mot de passe : bouton « œil » ---------- */
.pw-field { position: relative; display: block; }
.pw-field input { padding-right: 44px !important; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 34px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 6px; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { color: var(--navy); background: var(--tint); }
.pw-toggle:focus-visible { outline: 2px solid var(--btn); outline-offset: 0; }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle[aria-pressed=true] { color: var(--navy); }

/* ---------- Liens dans les textes ---------- */
.law-article a, .news-body details a { color: var(--btn); font-weight: 600; overflow-wrap: anywhere; }
.art-link { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.art-link:hover { text-decoration-style: solid; }

/* ---------- Page Aide ---------- */
.help { min-width: 0; max-width: 820px; }
.help [hidden] { display: none !important; }
.help-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.help-link { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.help-link:hover { box-shadow: 0 6px 18px rgba(15,47,107,.12); transform: translateY(-1px); }
.help-link strong { color: var(--navy); font-size: 15.5px; }
.help-link span { font-size: 13px; color: var(--muted); }
.help-topic { margin: 30px 0 8px; scroll-margin-top: 110px; }
.help-topic h2 { font-size: 26px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 3px solid var(--gold); }
.help-topic h2 .kicker { display: block; margin-bottom: 4px !important; }
.help-topic details { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.help-topic summary { padding: 13px 18px 13px 46px; font-size: 16.5px; }
.help-topic summary::before { left: 18px; }
.help-topic details p { padding: 0 18px 12px 46px; font-size: 16px; }
.help-topic details a { color: var(--btn); font-weight: 600; }
.help-rates { margin: 0 18px 12px 64px; padding: 0; }
.help-rates li { font-size: 15.5px; margin: 3px 0; }
.help-contact { background: var(--tint); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; padding: 16px 18px; }
.help-contact p { margin-bottom: 8px; }
.help-contact p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .help-quick { grid-template-columns: 1fr 1fr; } }

/* ---------- Signaler une fraude ---------- */
.fraud-warning { background: #fdecec; border: 1px solid #f3c2c2; border-left: 5px solid #b50909; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-size: 15px; color: #5a1010; }
.fraud-types .pick { align-items: flex-start; }
.fraud-types .pick input { margin-top: 3px; }
.fraud-types .pick > span .muted { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; }
.status.s-f-nouveau { color: #b50909; background: #fdecec; }
.status.s-f-en_cours { color: #6b4a00; background: #fff3c4; }
.status.s-f-traite { color: #1f7a3f; background: #e3f4e8; }
.status.s-f-classe { color: #565c65; background: #eef0f3; }

/* ---------- Pages légales ---------- */
.legal section { margin-bottom: 40px; }
.legal h2 { font-size: 28px; }
.legal p, .legal li { font-size: 16.5px; color: #2b2f35; }
.legal a { color: var(--btn); font-weight: 600; }
.legal-callout { background: #fff8dd; border: 1px solid #f0d78a; border-left: 5px solid #e0a800; border-radius: 8px; padding: 14px 18px; margin-bottom: 16px; }
.legal-callout p { margin: 0; color: #3b2d00; }
.legal-address { font-style: normal; background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; line-height: 1.6; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--tint); padding: 10px 12px; }
.legal-table td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.legal-table td:first-child { font-weight: 700; width: 22%; }
.legal-table code { font-size: 13.5px; color: var(--navy); }
.legal .table-wrap { margin: 14px 0 12px; }

/* Liens légaux du pied de page */
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 12px 0 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; }
.footer-legal-links a, .footer-legal-links button { color: rgba(255,255,255,.75); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-legal-links a:hover, .footer-legal-links button:hover { color: #fff; text-decoration: underline; }

/* Information sur les cookies */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(440px, calc(100vw - 40px)); background: #fff; color: var(--ink); border-radius: 12px; border-top: 4px solid var(--navy); box-shadow: 0 16px 48px rgba(11,34,80,.28); animation: cookie-in .3s ease; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; gap: 14px; padding: 18px 20px 16px; }
.cookie-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #e6edf8; display: flex; align-items: center; justify-content: center; }
.cookie-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; }
.cookie-icon circle { fill: var(--navy); stroke: none; }
.cookie-body h2 { font-size: 20px; margin-bottom: 4px; }
.cookie-body p { font-size: 14.5px; color: #33373d; line-height: 1.45; }
.cookie-actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.cookie-actions .btn { padding: 8px 20px; font-size: 14.5px; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

/* ---------- Taux par secteur (paramètres) et exemption (Déclarer) ---------- */
.adm-card.wide-card { max-width: 860px; }
.rates-table .wrap-cell { white-space: normal; line-height: 1.4; }
.rates-table .money.pct { width: 96px; display: inline-block; }
.rates-table .money.pct input { height: 36px; }
.exemption-box { margin: 4px 0 16px; background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.exemption-box:has(input:checked) { background: #fff8dd; border-color: #f0d78a; }
.exemption-box a { color: var(--btn); }

/* ---------- Date limite (paramètres et encadré Déclarer) ---------- */
.deadline-pick { align-items: flex-end; flex-wrap: wrap; }
.deadline-pick label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.deadline-pick select, .deadline-pick input { height: 42px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 10px; font: inherit; font-size: 16px; background: #fff; }
.deadline-preview { margin-top: 10px; }
.decl-info-sub { margin-top: 14px; }

/* ---------- Page d'accueil ---------- */
.home-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.home-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,34,80,.94) 0%, rgba(11,34,80,.78) 48%, rgba(11,34,80,.35) 100%); }
.home-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.home-hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--amber); margin-bottom: 14px; }
.home-hero h1 { font-size: 50px; line-height: 1.12; margin-bottom: 18px; }
.home-lead { font-size: 20px; color: rgba(255,255,255,.9); max-width: 600px; margin-bottom: 28px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-gold { background: var(--amber); border-color: var(--amber); color: #1b1300; }
.btn-gold:hover { background: #ffd24d; border-color: #ffd24d; }
.btn-light { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn-light:hover, .btn-light:focus-visible { background: #fff; border-color: #fff; color: var(--navy); }
.deadline-card { background: #fff; color: var(--ink); border-radius: 12px; border-top: 5px solid var(--amber); padding: 24px 24px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.deadline-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.deadline-date { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 8px; }
.deadline-date::first-letter { text-transform: uppercase; }
.deadline-what { font-size: 15px; color: #33373d; margin-bottom: 10px; }
.deadline-left { display: inline-block; font-size: 13px; font-weight: 700; color: #1f4e99; background: #e6edf8; border-radius: 999px; padding: 3px 10px; margin-bottom: 16px; }
.deadline-left.urgent { color: #b50909; background: #fdecec; }
.deadline-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deadline-facts dt { font-size: 12px; color: var(--muted); }
.deadline-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.deadline-link { font-weight: 700; color: var(--btn); text-decoration: none; }
.deadline-link:hover { text-decoration: underline; }

.home-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px 20px; }
.home-step-n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.home-steps h3 { font-size: 20px; margin-bottom: 8px; }
.home-steps p { font-size: 15.5px; color: #33373d; margin-bottom: 12px; }
.home-steps a { font-weight: 700; font-size: 15px; color: var(--btn); text-decoration: none; }
.home-steps a::after { content: " →"; }
.home-steps a:hover { text-decoration: underline; }

.home-facts { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #1a4a91 100%); color: #fff; padding: 44px 0 48px; border-top: 3px solid var(--amber); }
.home-facts-title { font-family: "Source Sans 3", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); text-align: center; margin-bottom: 26px; }
.home-facts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.home-facts-list li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 18px; }
.home-facts-list li + li { border-left: 1px solid rgba(255,255,255,.16); }
.fact-ico { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); margin-bottom: 12px; }
.fact-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fact-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.home-facts .fact-value { display: block; font-family: "Source Sans 3", sans-serif; font-size: 23px; font-weight: 700; line-height: 1.2; color: #fff; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; margin-bottom: 6px; }
.fact-desc { font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.78); max-width: 190px; }
.fact-desc a { color: #fff; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

.home-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-news { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.home-news:hover { box-shadow: 0 8px 24px rgba(15,47,107,.12); transform: translateY(-2px); }
.home-news img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.home-news .news-meta { margin: 16px 18px 6px; }
.home-news strong { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.25; margin: 0 18px 8px; color: var(--navy); }
.home-news-excerpt { font-size: 15px; color: #33373d; margin: 0 18px 18px; }

.home-cta { background: linear-gradient(180deg, #235aae, var(--blue)); color: #fff; }
.home-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.home-cta h2 { font-size: 32px; margin-bottom: 6px; }
.home-cta p { color: rgba(255,255,255,.88); }

@media (max-width: 1080px) {
  .home-hero-inner { grid-template-columns: 1fr 340px; gap: 32px; }
  .home-hero h1 { font-size: 42px; }
  .home-steps { grid-template-columns: 1fr 1fr; }
  .home-facts-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .home-facts-list li:nth-child(4) { border-left: 0; }
}
@media (max-width: 860px) {
  .home-hero-inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 48px; }
  .home-hero h1 { font-size: 34px; }
  .home-hero::after { background: rgba(11,34,80,.84); }
  .home-news-grid, .home-steps { grid-template-columns: 1fr; }
  .home-facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .home-facts-list li { border-left: 0 !important; padding: 4px 8px; }
  .home-facts .fact-value { white-space: normal; font-size: 20px; }
  .home-facts-list li:last-child { grid-column: 1 / -1; }
}

/* Éditeur d'actualité : version anglaise facultative */
.nd-en { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 4px 0 14px; background: #fafbfc; }
.nd-en summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.nd-en[open] summary { margin-bottom: 10px; }

/* Code des affaires : téléchargement du PDF */
.pdf-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 22px 0 0; }
.pdf-dl .btn { display: inline-flex; align-items: center; gap: 9px; }
.pdf-dl svg { width: 18px; height: 18px; flex: none; }
.pdf-dl span { font-size: 14px; color: rgba(255,255,255,.8); }
/* Bouton ⟳ (accès complet) : carré, à droite du téléchargement */
.pdf-dl .code-refresh { width: 46px; align-self: stretch; justify-content: center; padding-left: 0; padding-right: 0; }
.pdf-dl .code-refresh[hidden] { display: none; }
.pdf-dl .code-refresh svg { width: 20px; height: 20px; }
.pdf-dl .code-refresh.spinning svg { animation: code-spin 1s linear infinite; }
.pdf-dl .code-refresh:disabled { opacity: .75; cursor: progress; }
@keyframes code-spin { to { transform: rotate(360deg); } }
.code-refresh-msg { margin: 12px 0 0; font-size: 14.5px; color: #fff; background: rgba(255,255,255,.12); border-left: 3px solid var(--gold); padding: 8px 12px; border-radius: 4px; max-width: 720px; }
.code-refresh-msg.ok { border-left-color: #6fd08c; }
.code-refresh-msg.err { border-left-color: #ff8a80; }
.code-refresh-msg[hidden] { display: none; }

/* Page « Mon compte » */
.form-ok { color: #1f7a3f; background: #eef8f1; border: 1px solid #b7dfc3; border-radius: 6px; padding: 8px 12px; font-size: 15px; margin: 0 0 14px; }
.form-ok[hidden] { display: none; }
#password-form { margin-top: 4px; }

/* ==========================================================================
   Animations (discrètes, désactivées si l'appareil demande moins de mouvement)
   ========================================================================== */
:root { --ease-out: cubic-bezier(.22, .61, .36, 1); }

/* Apparition au défilement : app.js ajoute .reveal puis .in quand l'élément entre à l'écran
   (--d : léger décalage entre les éléments d'une même rangée). Sans script : tout est visible. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* Grands titres de page et accueil : entrée au chargement. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slide-left { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.home-hero-text > *, .page-hero-inner > div > * { animation: rise .7s var(--ease-out) both; }
.home-hero-text > :nth-child(2), .page-hero-inner > div > :nth-child(2) { animation-delay: .08s; }
.home-hero-text > :nth-child(3), .page-hero-inner > div > :nth-child(3) { animation-delay: .16s; }
.home-hero-text > :nth-child(4), .page-hero-inner > div > :nth-child(4) { animation-delay: .24s; }
.deadline-card { animation: slide-left .8s var(--ease-out) .2s both; }
.home-hero-img, .photo-hero-img { animation: hero-zoom 14s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Bandeau « En savoir plus », menus déroulants, menu mobile. */
.rp-details:not([hidden]) { animation: drop-in .28s var(--ease-out); }
.lang-menu:not([hidden]), .acc-menu:not([hidden]) { animation: drop-in .18s var(--ease-out); transform-origin: top right; }
.chev { transition: transform .2s var(--ease-out); }
.lang-btn[aria-expanded=true] .chev { transform: rotate(180deg); }
@media (max-width: 860px) { .menu.open { animation: drop-in .22s var(--ease-out); } }

/* Fenêtres (connexion, administration) : fond qui s'assombrit, fenêtre qui s'avance. */
dialog[open] { animation: pop-in .25s var(--ease-out); }
dialog[open]::backdrop { animation: fade-in .25s ease; }

/* Questions de l'aide, « Lire la suite » : le contenu apparaît en douceur. */
details[open] > :not(summary) { animation: drop-in .3s var(--ease-out); }
summary { transition: background-color .15s; }

/* Boutons et cartes. */
.btn { transition: background-color .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-gold:hover { box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.ci { transition: transform .25s var(--ease-out), color .2s; }
.card:hover .ci { transform: translateY(-2px) scale(1.08); }
.fact-ico { transition: transform .3s var(--ease-out); }
.home-facts-list li:hover .fact-ico { transform: scale(1.1) rotate(-4deg); }
.news-card img, .home-news img { transition: transform .5s var(--ease-out); }
.news-card:hover img, .home-news:hover img { transform: scale(1.04); }
.home-steps li { transition: box-shadow .2s, transform .2s; }
.home-steps li:hover { box-shadow: 0 8px 22px rgba(15,47,107,.1); transform: translateY(-2px); }
.home-step-n { transition: transform .3s var(--ease-out); }
.home-steps li:hover .home-step-n { transform: scale(1.1); }

/* Messages : une erreur secoue légèrement, un succès apparaît et sa coche se dessine. */
@keyframes nudge { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.auth-err:not([hidden]) { animation: nudge .35s ease; }
.form-ok:not([hidden]), .code-refresh-msg:not([hidden]) { animation: drop-in .3s var(--ease-out); }
.decl-done:not([hidden]) { animation: pop-in .4s var(--ease-out); }
.decl-done:not([hidden]) svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .25s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* Date limite à moins de 24 h : pulsation lente. */
.deadline-left.urgent { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(181,9,9,.35); } 50% { box-shadow: 0 0 0 6px rgba(181,9,9,0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Écran d'accueil (3 s, une fois par visite ; voir _partials/header.html) ---------- */
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(ellipse at 50% 42%, #173f8c 0%, var(--navy) 38%, #081a3f 100%); color: #fff; text-align: center; }
.intro[hidden] { display: none; }
html.intro-on { overflow: hidden; }
.intro-inner { display: flex; flex-direction: column; align-items: center; padding: 24px; }
.intro-seal { position: relative; width: 150px; height: 150px; animation: intro-seal 1.1s cubic-bezier(.22,.61,.36,1) both; }
.intro-seal img { width: 150px; height: 150px; display: block; position: relative; filter: drop-shadow(0 10px 30px rgba(0,0,0,.45)); }
.intro-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid rgba(201,168,120,.85); animation: intro-ring 2.4s ease-out .5s infinite; }
.intro-agency { margin: 30px 0 6px; font-weight: 600; font-size: 17px; letter-spacing: .34em; text-transform: uppercase; padding-left: .34em; animation: rise .8s cubic-bezier(.22,.61,.36,1) .55s both; }
.intro-sub { margin: 0; font-family: 'Jost', 'Source Sans 3', sans-serif; font-weight: 300; font-size: 15px; letter-spacing: .06em; color: #cbd5ec; animation: rise .8s cubic-bezier(.22,.61,.36,1) .75s both; }
.intro-bar { display: block; width: 160px; height: 2px; margin-top: 28px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; animation: fade-in .4s ease .9s both; }
.intro-bar span { display: block; height: 100%; background: var(--gold); transform-origin: left; animation: intro-bar 2.1s linear .9s both; }
.intro.intro-out { animation: intro-out .5s ease forwards; pointer-events: none; }
.intro.intro-out .intro-seal { animation: intro-seal-out .5s ease forwards; }
@keyframes intro-seal { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes intro-ring { 0% { opacity: .9; transform: scale(.92); } 80%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes intro-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes intro-seal-out { to { transform: scale(1.08); } }
/* Pendant l'écran d'accueil, les animations d'entrée de la page attendent. */
html.intro-on .home-hero-text > *, html.intro-on .page-hero-inner > div > *, html.intro-on .deadline-card,
html.intro-on .home-hero-img, html.intro-on .photo-hero-img { animation-play-state: paused; }
@media (max-width: 520px) { .intro-agency { font-size: 14px; letter-spacing: .24em; padding-left: .24em; } }
@media (prefers-reduced-motion: reduce) { .intro-ring { display: none; } }

/* ---------- Assistant (bouton robot en bas à droite ; assistant.js) ---------- */
.assist { position: fixed; right: 20px; bottom: 20px; z-index: 58; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.assist[hidden] { display: none; }
.assist > * { pointer-events: auto; }
.assist-fab { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #2a5ca8, var(--navy) 70%); box-shadow: 0 10px 26px rgba(11,34,80,.4), 0 0 0 3px rgba(201,168,120,.55);
  transition: transform .2s var(--ease-out), box-shadow .2s; animation: assist-arrive .6s var(--ease-out) .4s both; }
.assist-fab svg { width: 34px; height: 34px; --robot-face: var(--navy); }
.assist-fab:hover, .assist-fab:focus-visible { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px rgba(11,34,80,.45), 0 0 0 4px var(--gold); }
.assist-fab:hover .assist-eye { animation: assist-blink .5s ease; transform-origin: center; transform-box: fill-box; }
.assist.open .assist-fab { transform: scale(.9); }
@keyframes assist-arrive { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes assist-blink { 0%, 100% { transform: none; } 50% { transform: scaleY(.15); } }
html.intro-on .assist-fab { animation-play-state: paused; }

.assist-panel { width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); background: #fff; color: var(--ink); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(11,34,80,.35); border: 1px solid var(--line); transform-origin: bottom right; animation: assist-open .25s var(--ease-out); }
.assist-panel[hidden] { display: none; }
@keyframes assist-open { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.assist-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: linear-gradient(135deg, var(--navy), #1f4e99); color: #fff; }
.assist-head div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.assist-head strong { font-size: 16px; }
.assist-head span { font-size: 12px; color: #cbd5ec; }
.assist-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.assist-avatar svg { width: 26px; height: 26px; color: #fff; --robot-face: #1f4e99; }
.assist-icon { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; transition: background .15s; }
.assist-icon:hover { background: rgba(255,255,255,.16); }
.assist-icon svg { width: 16px; height: 16px; }
.assist-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f6f8fb; overscroll-behavior: contain; }
.assist-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
.assist-msg.new { animation: pop-in .25s var(--ease-out); }
.assist-msg p { margin: 0 0 6px; }
.assist-msg p:last-child { margin-bottom: 0; }
.assist-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.assist-msg li { margin: 2px 0; }
.assist-msg a { color: var(--btn); font-weight: 600; }
.assist-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.assist-msg.me { align-self: flex-end; background: var(--btn); color: #fff; border-bottom-right-radius: 4px; }
.assist-q { font-weight: 700; color: var(--navy); }
.assist-more { font-size: 13.5px; }
.assist-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.assist-chips button { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 10px; border: 1px solid #b9c7e0; background: #eef3fb; color: var(--navy); cursor: pointer; transition: background .15s, border-color .15s; text-align: left; }
.assist-chips button:hover { background: var(--btn); border-color: var(--btn); color: #fff; }
.assist-msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.assist-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #8d97a8; animation: assist-dot 1s infinite ease-in-out; }
.assist-msg.typing span:nth-child(2) { animation-delay: .15s; }
.assist-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes assist-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.assist-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.assist-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid #c3c9d3; border-radius: 14px; }  /* même arrondi que les bulles */
.assist-form input:focus { outline: 2px solid var(--btn); outline-offset: 0; border-color: var(--btn); }
.assist-form button { width: 40px; height: 40px; flex: none; border: 0; border-radius: 14px; background: var(--btn); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .12s; }
.assist-form button:hover { background: var(--navy); }
.assist-form button:active { transform: scale(.94); }
.assist-form button svg { width: 18px; height: 18px; }
@media (max-width: 520px) {
  .assist { right: 12px; bottom: 12px; }
  .assist-panel { width: calc(100vw - 24px); height: min(70vh, 540px); }
  .assist-fab { width: 54px; height: 54px; }
}
@media print { .assist { display: none !important; } }
