/* Jeu Responsable Info (Belgique) - feuille de style des maquettes */

:root {
  --ink: #23201F;
  --muted: #545454;
  --slate: #4A6996;
  --slate-dark: #26364F;
  --slate-soft: #E4EAFB;
  --accent: #B8322A;
  --accent-dark: #962720;
  --sun: #F2B705;
  --paper: #F3F4F6;
  --line: #DADDE3;
  --white: #fff;

  --font: "Ubuntu", Verdana, sans-serif;
  --wrap: 1180px;
  --pad: 28px;
  --r: 4px;
  --r-big: 12px;
  --shadow: 0 1px 3px rgba(35, 32, 31, .12), 0 6px 18px rgba(35, 32, 31, .06);
}

* { box-sizing: border-box; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--ink); background: var(--white); }
img, svg { display: block; max-width: 100%; }
a { color: var(--slate); }
a:hover { color: var(--slate-dark); }
h1, h2, h3 { color: var(--slate-dark); line-height: 1.22; margin: 0 0 .6em; }
h1 { font-size: 2.6rem; font-weight: 700; }
h2 { font-size: 1.65rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jump { position: absolute; left: -999px; }
.jump:focus { left: 12px; top: 12px; z-index: 50; background: var(--white); padding: 8px 14px; }
.demo { display: inline-block; vertical-align: middle; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: #7A5B00; background: #FDF0C2; border: 1px solid #E2C25A; border-radius: 2px; padding: 1px 7px; }
.kicker { display: block; font-size: .82rem; font-weight: 500; color: var(--accent); margin-bottom: 8px; }
.ico { width: 22px; height: 22px; flex-shrink: 0; }

/* Visuels provisoires */
.img { position: relative; background: linear-gradient(120deg, #D3DAE4, #EEF1F5 55%, #C9D2DE); }
.img::after { content: "visuel"; position: absolute; left: 10px; top: 8px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(38, 54, 79, .5); }
.img--b { background: linear-gradient(200deg, #C3CEDD, #E6EAF0 60%, #D5DBE4); }
.img--c { background: linear-gradient(160deg, #E2E5EA, #CDD5E0); }

/* Boutons */
.cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font: 500 .95rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.cta--accent { background: var(--accent); color: var(--white); }
.cta--accent:hover { background: var(--accent-dark); color: var(--white); }
.cta--slate { background: var(--slate); color: var(--white); }
.cta--slate:hover { background: var(--slate-dark); color: var(--white); }
.cta--line { border-color: var(--slate-dark); color: var(--slate-dark); background: transparent; }
.cta--line:hover { background: var(--slate-dark); color: var(--white); }
.more { font-weight: 500; text-decoration: none; }
.more::after { content: " \2192"; }

/* ---------- Bandeau du haut + en-tete ---------- */
.topbar { background: var(--slate-dark); color: #DDE3EC; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar__help { display: inline-flex; align-items: center; gap: 8px; }
.topbar__help .ico { width: 16px; height: 16px; color: var(--sun); }
.topbar__help small { color: #AEB9CA; }
.topbar__links { display: flex; gap: 18px; }
.topbar__links a:hover { text-decoration: underline; }

.masthead { background: var(--white); border-bottom: 1px solid var(--line); position: relative; }
.masthead__row { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { width: auto; height: 64px; }
.site-footer__about .logo img { height: 60px; }
.mainnav { margin-left: auto; }
.mainnav ul { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.mainnav a { display: block; white-space: nowrap; padding: 8px 9px; border-radius: var(--r); color: var(--slate-dark); text-decoration: none; font-size: .95rem; font-weight: 500; }
.mainnav a:hover { background: var(--paper); }
.mainnav a[aria-current="page"] { background: var(--slate-soft); color: var(--slate-dark); }
.masthead__tools { display: flex; align-items: center; gap: 10px; }
.iconbtn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--slate-dark); cursor: pointer; }
.iconbtn:hover { background: var(--paper); }
.iconbtn .ico { width: 20px; height: 20px; }
.menu-toggle { display: none; }
.searchpanel { border-bottom: 1px solid var(--line); background: var(--paper); padding: 16px 0; }
.searchpanel[hidden] { display: none; }
.searchpanel form { display: flex; gap: 10px; }
.searchpanel input { flex: 1; font: inherit; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- Accueil ---------- */
.home-intro { padding-top: 30px; padding-bottom: 10px; }
.home-intro p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.home-intro strong { color: var(--slate-dark); }
.frontpage { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; padding-top: 18px; padding-bottom: 44px; }
.lead-story { display: block; text-decoration: none; color: inherit; }
.lead-story .img { aspect-ratio: 16 / 9; border-radius: var(--r-big); }
.lead-story__body { padding: 18px 4px 0; }
.lead-story h2 { font-size: 2.1rem; margin-bottom: 10px; }
.lead-story p { color: var(--muted); font-size: 1.08rem; }
.lead-story:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--sun); }
.side-stories { border-top: 4px solid var(--slate-dark); }
.side-stories h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin: 14px 0 6px; }
.side-stories ol { list-style: none; margin: 0; padding: 0; }
.side-stories li { border-bottom: 1px solid var(--line); }
.side-stories a { display: grid; grid-template-columns: 1fr 96px; gap: 14px; padding: 16px 0; color: inherit; text-decoration: none; }
.side-stories .img { aspect-ratio: 1; border-radius: var(--r); }
.side-stories .img::after { content: none; }
.side-stories strong { display: block; color: var(--slate-dark); font-weight: 500; line-height: 1.35; }
.side-stories time { display: block; font-size: .8rem; color: var(--accent); margin-bottom: 4px; }
.side-stories a:hover strong { text-decoration: underline; }

.quickhelp { background: var(--slate); color: var(--white); }
.quickhelp .wrap { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 0; }
.quickhelp__title { padding: 26px 24px 26px 0; }
.quickhelp__title h2 { color: var(--white); font-size: 1.35rem; margin: 0 0 4px; }
.quickhelp__title p { margin: 0; color: #E3E8F1; font-size: .92rem; }
.quickhelp a { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px; color: var(--white); text-decoration: none; border-left: 1px solid rgba(255, 255, 255, .25); }
.quickhelp a:hover { background: rgba(255, 255, 255, .08); }
.quickhelp a .ico { width: 30px; height: 30px; color: var(--sun); }
.quickhelp a strong { display: block; font-weight: 500; font-size: 1.05rem; }
.quickhelp a span { font-size: .88rem; color: #E3E8F1; }

.block { padding: 56px 0; }
.block--paper { background: var(--paper); }
.block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.block__head h2 { margin: 0; }
.block__head p { margin: 0; color: var(--muted); }

.news-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; }
.newslist { list-style: none; margin: 0; padding: 0; }
.newslist li { border-bottom: 1px solid var(--line); }
.newslist a { display: grid; grid-template-columns: 92px 1fr 180px; gap: 22px; padding: 20px 0; text-decoration: none; color: inherit; align-items: start; }
.newslist time { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.newslist time b { display: block; font-size: 1.7rem; color: var(--slate-dark); font-weight: 700; }
.newslist h3 { margin: 0 0 6px; font-size: 1.15rem; }
.newslist p { margin: 0; color: var(--muted); font-size: .95rem; }
.newslist .img { aspect-ratio: 3 / 2; border-radius: var(--r); }
.newslist a:hover h3 { text-decoration: underline; }
.dossier { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-big); padding: 24px; }
.dossier h3 { font-size: 1.1rem; font-weight: 700; }
.dossier ul { list-style: none; margin: 0 0 18px; padding: 0; }
.dossier li { padding: 10px 0; border-top: 1px solid var(--line); }
.dossier li a { font-weight: 500; text-decoration: none; }
.dossier li small { display: block; color: var(--muted); font-size: .82rem; }

.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.topics a { display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; height: 100%; background: var(--white); align-content: start; }
.topics a:hover { background: var(--slate-soft); }
.topics__num { grid-row: span 2; font-size: 1.9rem; font-weight: 700; color: var(--slate); line-height: 1; }
.topics strong { color: var(--slate-dark); font-size: 1.1rem; font-weight: 700; }
.topics span:last-child { color: var(--muted); font-size: .93rem; }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.figure { border-left: 6px solid var(--sun); padding: 4px 0 4px 20px; }
.figure__val { display: block; font-size: 2.8rem; font-weight: 700; color: var(--slate-dark); line-height: 1.05; }
.figure__txt { display: block; margin: 8px 0; }
.figure__src { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }

.promo { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-big); overflow: hidden; background: var(--slate-dark); color: var(--white); }
.promo .img { min-height: 320px; }
.promo__body { padding: 44px 48px; }
.promo h2 { color: var(--white); font-size: 1.9rem; }
.promo p { color: #DDE3EC; }
.promo__others { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); }
.promo__others a { color: var(--white); }

/* ---------- Article ---------- */
.doc-head { padding-top: 20px; padding-bottom: 30px; }
.doc-head > * { max-width: 900px; }
.doc-head h1 { font-size: 2.5rem; }
.standfirst { font-size: 1.2rem; color: var(--muted); line-height: 1.55; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 22px; font-size: .9rem; color: var(--muted); }
.person { display: flex; align-items: center; gap: 10px; }
.person .img { width: 40px; height: 40px; border-radius: 50%; }
.person .img::after { content: none; }
.person b { color: var(--slate-dark); font-weight: 500; }
.share { display: flex; gap: 8px; margin-left: auto; }
.doc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-bottom: 60px; }
.toc { position: sticky; top: 20px; align-self: start; font-size: .92rem; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0 0 26px; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; }
.toc li a:hover, .toc li a.is-current { border-left-color: var(--accent); color: var(--slate-dark); }
.toc-help { background: var(--paper); border-radius: var(--r); padding: 16px; }
.toc-help strong { display: block; color: var(--slate-dark); }
.toc-help a { font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.doc { max-width: 740px; }
.doc > figure { margin: 0 0 30px; }
.doc > figure .img { aspect-ratio: 16 / 9; border-radius: var(--r-big); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.brief { background: var(--slate-soft); border-radius: var(--r-big); padding: 22px 26px; margin-bottom: 34px; }
.brief h2 { font-size: 1.05rem; margin-bottom: 8px; }
.brief ul { margin: 0; padding-left: 1.2em; }
.brief li { margin-bottom: 6px; }
.brief li::marker { color: var(--slate); }
.doc h2 { margin-top: 1.7em; scroll-margin-top: 20px; }
.doc h3 { font-weight: 700; margin-top: 1.4em; }
.doc ul { padding-left: 1.2em; }
.doc li::marker { color: var(--accent); }
.note { display: flex; gap: 14px; border: 1px solid var(--line); border-top: 4px solid var(--slate); border-radius: var(--r); padding: 18px 20px; margin: 28px 0; }
.note .ico { color: var(--slate); margin-top: 3px; }
.note p:last-child { margin: 0; }
.helpbox { background: var(--slate-dark); color: var(--white); border-radius: var(--r-big); padding: 22px 26px; margin: 30px 0; }
.helpbox p { margin: 0; color: #DDE3EC; }
.helpbox strong { color: var(--white); }
.helpbox a { color: var(--sun); font-weight: 700; }
.pullquote { margin: 30px 0; font-size: 1.35rem; line-height: 1.45; color: var(--slate-dark); font-weight: 500; padding-left: 22px; border-left: 4px solid var(--sun); }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; padding: 0; list-style: none; }
.taglist a { display: block; background: var(--paper); border-radius: var(--r); padding: 4px 12px; font-size: .85rem; text-decoration: none; color: var(--slate-dark); }
.refs { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.refs h2 { font-size: 1.05rem; margin-top: 0; }
.author-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; background: var(--paper); border-radius: var(--r-big); padding: 22px; margin-top: 30px; }
.author-card .img { width: 72px; height: 72px; border-radius: 50%; }
.author-card .img::after { content: none; }
.author-card p { margin: 4px 0 0; font-size: .92rem; color: var(--muted); }
.author-card b { color: var(--slate-dark); }

.linkrows { list-style: none; margin: 0; padding: 0; }
.linkrows li { border-bottom: 1px solid var(--line); }
.linkrows a { display: flex; align-items: center; gap: 18px; padding: 16px 0; text-decoration: none; color: var(--slate-dark); font-weight: 500; }
.linkrows a::after { content: "\2192"; margin-left: auto; color: var(--slate); }
.linkrows .type { flex-shrink: 0; width: 110px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 400; }
.linkrows a:hover { color: var(--slate); }
.linkrows--thumb .img { width: 120px; aspect-ratio: 3 / 2; border-radius: var(--r); flex-shrink: 0; }
.linkrows--thumb .img::after { content: none; }

/* ---------- Actualite ---------- */
.news { max-width: 836px; padding-bottom: 50px; }
.news__date { display: inline-block; margin: 26px 0 12px; font-weight: 700; color: var(--white); background: var(--accent); border-radius: var(--r); padding: 3px 10px; font-size: .9rem; }
.news h1 { font-size: 2.3rem; }
.sourceline { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; background: var(--paper); border-left: 4px solid var(--slate); padding: 12px 16px; margin: 20px 0 26px; }
.sourceline .ico { color: var(--slate); width: 20px; height: 20px; margin-top: 3px; }
.news figure { margin: 0 0 26px; }
.news figure .img { aspect-ratio: 21 / 9; border-radius: var(--r); }
.news-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* ---------- Hub ---------- */
.hub-head { background: var(--slate); color: var(--white); padding-bottom: 40px; }
.hub-head .crumbs, .hub-head .crumbs a { color: #E3E8F1; }
.hub-head__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; padding-top: 24px; }
.hub-head h1 { color: var(--white); font-size: 2.8rem; }
.hub-head p { color: #EEF1F6; font-size: 1.1rem; margin: 0; }
.essentials { background: var(--white); color: var(--ink); border-radius: var(--r-big); padding: 22px 24px; box-shadow: var(--shadow); }
.essentials h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 4px; }
.anchors { position: sticky; top: 0; z-index: 4; background: var(--white); border-bottom: 1px solid var(--line); }
.anchors ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; overflow-x: auto; }
.anchors a { display: block; padding: 16px 0; color: var(--slate-dark); text-decoration: none; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.anchors a:hover { border-bottom-color: var(--sun); }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; padding-top: 40px; padding-bottom: 60px; }
.hub-group { margin-bottom: 40px; scroll-margin-top: 70px; }
.hub-group h2 { margin-bottom: 4px; }
.hub-group > p { color: var(--muted); margin-bottom: 8px; }
.side-card { border: 1px solid var(--line); border-radius: var(--r-big); padding: 22px; margin-bottom: 22px; }
.side-card h2 { font-size: 1.15rem; }
.side-card--dark { background: var(--slate-dark); border: 0; color: #DDE3EC; }
.side-card--dark h2 { color: var(--white); }
.side-card--dark a.hotline { display: block; color: var(--white); font-size: 1.6rem; font-weight: 700; text-decoration: none; margin: 6px 0; }
.mini-news { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.mini-news li { padding: 10px 0; border-top: 1px solid var(--line); }
.mini-news time { display: block; font-size: .78rem; color: var(--accent); }

/* ---------- Annuaire ---------- */
.dir-head { background: var(--paper); padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.dir-head h1 { margin-top: 22px; }
.dir-head p { max-width: 800px; color: var(--muted); font-size: 1.08rem; }
.callnow { display: inline-flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px 8px 10px; margin-top: 6px; }
.callnow .ico { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--sun); color: var(--slate-dark); }
.callnow a { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--slate-dark); }
.callnow small { color: var(--muted); }
.finder { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-big); padding: 20px 24px; margin: -28px 0 34px; position: relative; box-shadow: var(--shadow); }
.finder label { display: flex; flex-direction: column; font-size: .82rem; color: var(--muted); gap: 4px; }
.finder select { font: inherit; font-size: .95rem; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); min-width: 200px; background: var(--white); color: var(--ink); }
.finder fieldset { border: 0; margin: 0; padding: 0; display: flex; gap: 18px; font-size: .92rem; }
.finder fieldset label { flex-direction: row; align-items: center; gap: 6px; font-size: .92rem; color: var(--ink); }
.dir-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding-bottom: 50px; }
.places { list-style: none; margin: 0; padding: 0; counter-reset: place; }
.place { position: relative; padding: 22px 0 22px 58px; border-bottom: 1px solid var(--line); counter-increment: place; }
.place::before { content: counter(place); position: absolute; left: 0; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--slate-dark); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.place h3 { font-weight: 700; margin-bottom: 4px; }
.place__type { font-size: .85rem; color: var(--slate); margin-bottom: 10px; display: block; }
.place__info { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 28px; font-size: .92rem; margin: 0; }
.place__info div { display: flex; gap: 8px; align-items: center; }
.place__info .ico { width: 17px; height: 17px; color: var(--muted); }
.place__links { margin-top: 10px; display: flex; gap: 20px; font-size: .92rem; }
.map { position: sticky; top: 20px; align-self: start; aspect-ratio: 3 / 4; border-radius: var(--r-big); overflow: hidden; background:
  radial-gradient(circle at 30% 70%, rgba(255, 255, 255, .6) 0 60px, transparent 61px),
  linear-gradient(35deg, transparent 47%, rgba(74, 105, 150, .25) 47% 53%, transparent 53%),
  linear-gradient(160deg, #E4E8EE, #D3DAE4); }
.map__pin { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--white); border: 3px solid var(--white); display: grid; place-items: center; font-size: .78rem; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.map__note { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); border-radius: var(--r); padding: 8px 12px; font-size: .8rem; }
.provinces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.provinces h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.provinces ul { list-style: none; margin: 0; padding: 0; }
.provinces li { padding: 3px 0; }
.qa { max-width: 820px; }
.qa dt { font-weight: 700; color: var(--slate-dark); margin-top: 18px; }
.qa dd { margin: 6px 0 0; color: var(--muted); }

/* ---------- Test ---------- */
.quiz-head { padding-top: 10px; padding-bottom: 26px; max-width: 820px; margin: 0 auto; }
.quiz { max-width: 720px; margin: 0 auto 60px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-big); box-shadow: var(--shadow); overflow: hidden; }
.quiz__bar { display: flex; gap: 4px; padding: 18px 26px 0; }
.quiz__bar span { flex: 1; height: 6px; border-radius: 3px; background: var(--paper); }
.quiz__bar span.done { background: var(--slate); }
.quiz__bar span.now { background: var(--sun); }
.quiz__step { padding: 14px 26px 0; font-size: .85rem; color: var(--muted); }
.quiz__q { border: 0; margin: 0; padding: 8px 26px 6px; }
.quiz__q legend { font-size: 1.35rem; font-weight: 500; color: var(--slate-dark); line-height: 1.35; padding: 0; margin-bottom: 18px; }
.quiz__q label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; cursor: pointer; }
.quiz__q label:hover { border-color: var(--slate); background: var(--slate-soft); }
.quiz__q input { width: 20px; height: 20px; accent-color: var(--slate); }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 26px 24px; }
.quiz__note { background: var(--paper); padding: 14px 26px; font-size: .85rem; color: var(--muted); display: flex; gap: 10px; }
.quiz__note .ico { width: 18px; height: 18px; margin-top: 2px; }
.outcome { padding: 26px; }
.outcome[hidden], .quiz__body[hidden] { display: none; }
.outcome h2 { margin-bottom: 4px; }
.outcome__score { color: var(--muted); font-size: .92rem; }
.outcome__help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.outcome__help a { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; text-decoration: none; font-size: .88rem; color: var(--ink); }
.outcome__help strong { display: block; color: var(--slate); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); font-size: .93rem; }
.site-footer__help { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; background: var(--slate-dark); color: #DDE3EC; border-radius: 0 0 var(--r-big) var(--r-big); padding: 30px 34px; }
.site-footer__help h2 { color: var(--white); font-size: 1.4rem; margin: 0 0 4px; }
.site-footer__help p { margin: 0; }
.site-footer__help .hotline { display: block; color: var(--white); font-size: 2rem; font-weight: 700; text-decoration: none; text-align: right; }
.site-footer__help small { display: block; text-align: right; }
.site-footer__help .epis { color: var(--sun); }
.orgs-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 38px 0 14px; }
.orgs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.orgs a { display: flex; flex-direction: column; justify-content: center; min-height: 78px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; text-decoration: none; color: var(--slate-dark); font-weight: 500; }
.orgs small { color: var(--muted); font-weight: 400; font-size: .75rem; }
.site-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 40px 0; }
.site-footer__cols h2 { font-size: 1rem; margin-bottom: 10px; }
.site-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.site-footer__cols li { margin-bottom: 7px; }
.site-footer__cols a { color: var(--ink); }
.site-footer__about p { color: var(--muted); margin-top: 12px; }
.site-footer__legal { background: var(--white); border-top: 1px solid var(--line); }
.site-footer__legal .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 18px; font-size: .85rem; color: var(--muted); }
.age { flex-shrink: 0; font-weight: 700; color: var(--accent); border: 2px solid var(--accent); border-radius: var(--r); padding: 2px 8px; }
.site-footer__legal p { margin: 0; flex: 1; min-width: 240px; }

/* ---------- Ecrans moyens ---------- */
/* Accueil : 3 parcours d'aide (panneau sombre en trois parties) */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--slate-dark); border-radius: var(--r-big); overflow: hidden; }
.paths__part { padding: 34px 32px 32px; border-left: 1px solid rgba(255,255,255,.14); border-top: 5px solid; display: flex; flex-direction: column; color: #DCE3EE; }
.paths__part:first-child { border-left: 0; }
.paths__part--accent { border-top-color: var(--accent); }
.paths__part--sun { border-top-color: var(--sun); }
.paths__part--soft { border-top-color: var(--slate-soft); }
.paths__kick { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--sun); margin-bottom: 10px; }
.paths__part h3 { color: var(--white); font-size: 1.75rem; margin-bottom: 12px; }
.paths__part p { margin: 0 0 24px; flex: 1; }
.paths .cta { align-self: flex-start; }
.cta--ghost { border-color: var(--white); color: var(--white); background: transparent; }
.cta--ghost:hover { background: var(--white); color: var(--slate-dark); }
@media (max-width: 1100px) {
  .paths { grid-template-columns: 1fr; }
  .paths__part { border-left: 0; }
}

@media (max-width: 1100px) {
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); z-index: 10; }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; padding: 8px var(--pad) 14px; }
  .menu-toggle { display: grid; }
  .masthead__tools { margin-left: auto; }
  .frontpage, .news-layout, .hub-grid, .dir-grid, .doc-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { margin-bottom: 0; }
  .toc-help { display: none; }
  .map { position: relative; top: 0; aspect-ratio: 16 / 9; order: -1; }
  .quickhelp .wrap { grid-template-columns: repeat(3, 1fr); }
  .quickhelp__title { grid-column: 1 / -1; padding-bottom: 0; }
  .quickhelp a { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 16px; }
  .provinces { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Telephone ---------- */
@media (max-width: 720px) {
  :root { --pad: 16px; }
  body { font-size: 16px; }
  h1, .doc-head h1, .news h1, .hub-head h1 { font-size: 1.9rem; }
  .topbar__links { display: none; }
  .masthead__row { min-height: 68px; gap: 12px; }
  .logo img { height: 48px; }
  .masthead__tools .cta { display: none; }
  .lead-story h2 { font-size: 1.6rem; }
  .quickhelp .wrap { grid-template-columns: 1fr; }
  .quickhelp a { margin-top: 0; padding: 18px 0; }
  .quickhelp__title { padding: 22px 0 6px; }
  .block { padding: 40px 0; }
  .block__head { flex-direction: column; gap: 4px; }
  .newslist a { grid-template-columns: 1fr; gap: 8px; }
  .newslist .img { display: none; }
  .newslist time b { display: inline; font-size: 1rem; }
  .topics, .figures, .provinces, .outcome__help, .orgs { grid-template-columns: 1fr; }
  .topics a { padding: 20px; }
  .promo { grid-template-columns: 1fr; }
  .promo .img { min-height: 180px; }
  .promo__body { padding: 28px 22px; }
  .share { margin-left: 0; }
  .hub-head__grid { grid-template-columns: 1fr; gap: 24px; }
  .linkrows .type { display: none; }
  .linkrows--thumb .img { width: 84px; }
  .finder { margin-top: 20px; }
  .finder select { min-width: 0; width: 100%; }
  .finder label { flex: 1 1 100%; }
  .finder fieldset { flex-wrap: wrap; }
  .place__info { grid-template-columns: 1fr; }
  .site-footer__help { grid-template-columns: 1fr; padding: 24px 20px; }
  .site-footer__help .hotline, .site-footer__help small { text-align: left; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .quiz__q legend { font-size: 1.15rem; }
}

@media print {
  .topbar, .masthead, .site-footer, .toc, .share, .anchors { display: none !important; }
  .doc-grid { display: block; }
}

/* ---------- Complements du site reel (au-dela des maquettes) ---------- */

/* Police Ubuntu servie par le site : aucune requete vers Google */
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url("/res/polices/ubuntu-400.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: italic; font-weight: 400; font-display: swap; src: url("/res/polices/ubuntu-400i.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 500; font-display: swap; src: url("/res/polices/ubuntu-500.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url("/res/polices/ubuntu-700.woff2") format("woff2"); }

/* Visuels sans photo : aplat sobre, sans etiquette */
.img::after { content: none; }
.img { background: linear-gradient(135deg, var(--slate-soft), #F7F8FB 60%, #DCE3EF); }
.img--b { background: linear-gradient(200deg, #D6DEEB, #F3F5F9 60%, var(--slate-soft)); }
.img--c { background: linear-gradient(160deg, #EEF1F6, #D3DCE9); }
.vignette { display: block; width: 100%; height: 100%; object-fit: cover; }
.lead-story .vignette--une { height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-big); }
.side-stories .vignette { width: 96px; height: 72px; border-radius: var(--r); flex: none; }
.newslist .vignette { width: 150px; height: 100px; border-radius: var(--r); }
.linkrows--thumb .vignette { width: 110px; height: 74px; border-radius: var(--r); flex: none; }
.kicker--soleil { color: var(--sun); }

/* Corps des articles (min-width : un tableau large ne doit pas elargir la colonne) */
.doc-grid > *, .hub-grid > *, .frontpage > *, .news-layout > * { min-width: 0; }
.doc a { overflow-wrap: anywhere; }
.illu { margin: 30px 0; }
.illu img { width: 100%; height: auto; border-radius: var(--r-big); background: var(--paper); }
.grille { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--r); }
.grille:focus-visible { outline: 3px solid var(--sun); }
.grille table { border-collapse: collapse; width: 100%; font-size: .93rem; line-height: 1.45; }
.grille th, .grille td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.grille th { background: var(--slate-soft); color: var(--slate-dark); font-weight: 500; }
.grille tr:last-child td { border-bottom: 0; }
.doc ol { padding-left: 1.4em; }
.doc ol li { margin-bottom: 6px; }
.note > div > :last-child, .helpbox > :last-child { margin-bottom: 0; }
.helpbox p + p, .helpbox ul { margin-top: .7em; }
.helpbox a { color: var(--white); }
.temoin { margin: 30px 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--sun); font-size: 1.04rem; color: var(--slate-dark); }
.temoin p:last-child { margin-bottom: 0; }
.temoin em { color: var(--muted); font-size: .9rem; }
.refs ol, .refs ul { font-size: .9rem; color: var(--muted); }
/* Appels de source [n] (format Wikipedia) et source visee */
sup.appel { font-size: .7em; line-height: 0; margin-left: 1px; }
sup.appel a { text-decoration: none; font-weight: 600; }
sup.appel a:hover, sup.appel a:focus-visible { text-decoration: underline; }
.refs li { scroll-margin-top: 80px; overflow-wrap: anywhere; }
.refs li:target { background: #FFF1B8; color: var(--ink); border-radius: 2px; }
mark.a-remplir { background: #FFF1B8; color: var(--ink); padding: 0 3px; border-radius: 2px; }
.author-card .sigle { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--slate-dark); color: var(--white); font-weight: 700; letter-spacing: .04em; box-shadow: inset 0 -5px 0 var(--sun); }

/* Recherche */
.trouves { list-style: none; margin: 0; padding: 0; }
.trouves:not(:empty) { padding: 6px 0 14px; }
.trouves li { border-top: 1px solid var(--line); }
.trouves a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); }
.trouves a strong { display: block; color: var(--slate-dark); }
.trouves a span { font-size: .88rem; color: var(--muted); }
.trouves a:hover strong { text-decoration: underline; }
.trouves .vide { padding: 10px 0; color: var(--muted); border: 0; }

/* Organismes en texte (logos : autorisation a obtenir) */
.orgs--texte { grid-template-columns: repeat(4, 1fr); }
.orgs--texte a { display: block; text-decoration: none; }
.orgs--texte strong { display: block; color: var(--slate-dark); }

/* Plan du site, 404 */
.plan { columns: 3 280px; column-gap: 40px; padding-bottom: 60px; }
.plan-bloc { break-inside: avoid; margin-bottom: 28px; }
.plan-bloc h2 { font-size: 1.15rem; }
.plan-bloc h2 a { text-decoration: none; color: var(--slate-dark); }
.plan-bloc ul { padding-left: 1.1em; margin: 0; }
.plan-bloc li { margin-bottom: 5px; }
.introuvable { padding: 60px var(--pad) 80px; max-width: 760px; }

/* Outils : emplacement et fiche budget */
.appli { margin: 26px 0 30px; }
.appli__repli { background: var(--paper); border-radius: var(--r); padding: 16px 18px; color: var(--muted); }
.fiche { border: 2px solid var(--slate-dark); border-radius: var(--r); padding: 24px; margin: 24px 0 12px; }
.fiche .grille { border-color: var(--slate-dark); }
.fiche td:last-child { min-width: 110px; }
.a-ecrire { display: inline-block; min-width: 90px; border-bottom: 1px solid var(--ink); vertical-align: baseline; height: 1em; margin: 0 4px; }
.fiche-imprimer { margin-bottom: 30px; }

@media (max-width: 720px) {
  .orgs--texte { grid-template-columns: 1fr; }
  .newslist .vignette { display: none; }
  .linkrows--thumb .vignette { width: 84px; height: 60px; }
  .fiche { padding: 16px; }
}

@media print {
  .crumbs, .byline .share, .block--paper, .author-card, .fiche-imprimer, .toc-help { display: none !important; }
  .page-fiche .doc > :not(.fiche), .page-fiche .doc-head, .page-fiche .crumbs { display: none !important; }
  .page-fiche .fiche { border: 0; padding: 0; margin: 0; }
  .grille { overflow: visible; }
  a { color: inherit; }
}

/* Photo de tete de rubrique (sous l'intro, sur le fond ardoise) */
.hub-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 24px; border-radius: var(--r-big); }

/* Calculateur de pertes au jeu (prefixe cp-) */
.appli[data-appli="calculateur-pertes"] { margin: 24px 0 32px; }
.cp { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-big); padding: 24px; box-shadow: var(--shadow); }
.cp__onglets { display: flex; gap: 8px; margin: 0 0 20px; border-bottom: 2px solid var(--line); }
.cp__onglet { flex: 1; font: 500 .98rem/1.3 var(--font); color: var(--slate-dark); background: transparent; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; padding: 12px 10px; cursor: pointer; text-align: center; border-radius: var(--r) var(--r) 0 0; }
.cp__onglet:hover { background: var(--slate-soft); }
.cp__onglet[aria-selected="true"] { border-bottom-color: var(--slate-dark); background: var(--white); font-weight: 700; }
.cp__onglet:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.cp__panneau[hidden], .cp [hidden] { display: none !important; }
.cp__form { margin: 0 0 16px; }
.cp__champ, .cp__champ-groupe, .cp__fieldset { margin: 0 0 16px; }
.cp__fieldset { border: 0; padding: 0; min-width: 0; }
.cp__fieldset legend, .cp__champ label { display: block; font-weight: 500; color: var(--slate-dark); margin: 0 0 6px; padding: 0; }
.cp__champ input[type="text"], .cp__champ select { width: 100%; max-width: 420px; padding: 11px 12px; font: 400 1rem/1.3 var(--font); color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: var(--r); }
.cp__champ input[type="text"]:focus-visible, .cp__champ select:focus-visible { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--slate); }
.cp__champ--court input[type="text"] { max-width: 140px; }
.cp__ligne { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.cp__aide { margin: 6px 0 0; font-size: .88rem; color: var(--muted); max-width: 640px; }
.cp__radios { display: flex; flex-wrap: wrap; gap: 10px; }
.cp__radio { position: relative; }
.cp__radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cp__radio label { display: block; padding: 10px 16px; background: var(--white); border: 2px solid var(--line); border-radius: var(--r); cursor: pointer; font-weight: 400; color: var(--ink); margin: 0; }
.cp__radio input:hover + label { border-color: var(--slate); }
.cp__radio input:checked + label { border-color: var(--slate-dark); background: var(--slate-soft); font-weight: 500; }
.cp__radio input:focus-visible + label { outline: 3px solid var(--sun); outline-offset: 2px; }
.cp__taux { font-size: .92rem; color: var(--muted); background: var(--white); border-left: 4px solid var(--slate); border-radius: var(--r); padding: 10px 14px; margin: 0 0 16px; }
.cp__actions { margin-top: 4px; }
.cp__resultat { margin: 0 0 16px; }
.cp__resultat:focus { outline: none; }
.cp__resultat--ok, .cp__resultat--erreur { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--slate); border-radius: var(--r); padding: 18px 20px; }
.cp__resultat--erreur { border-top-color: var(--slate-dark); font-weight: 500; }
.cp__resultat--erreur p { margin: 0; }
.cp__resultat:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.cp__titre { font-size: 1.2rem; margin: 0 0 .6em; }
.cp__liste { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 20px; margin: 0 0 14px; }
.cp__liste dt, .cp__liste dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cp__liste dd { text-align: right; font-variant-numeric: tabular-nums; }
.cp__fort { font-weight: 700; color: var(--slate-dark); font-size: 1.1rem; }
.cp__message { background: var(--slate-soft); border-radius: var(--r); padding: 12px 16px; margin: 0 0 14px; }
.cp__equiv h4 { margin: 0 0 .3em; font-size: 1rem; color: var(--slate-dark); }
.cp__eq, .cp__avert { margin: 0 0 10px; padding-left: 1.2em; }
.cp__avert { font-size: .95rem; }
.cp__petit { font-size: .88rem; color: var(--muted); margin: 0 0 10px; }
.cp__garde.note { margin: 0 0 14px; background: var(--white); }
.cp__garde p { margin: 0 0 6px; }
.cp__garde-liens { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.cp__donnees { margin: 8px 0 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 600px) {
  .cp { padding: 16px 14px; }
  .cp__onglets { flex-direction: column; gap: 0; border-bottom: 0; }
  .cp__onglet { border: 2px solid var(--line); border-radius: var(--r); margin: 0 0 8px; text-align: left; }
  .cp__onglet[aria-selected="true"] { border-color: var(--slate-dark); background: var(--slate-soft); }
  .cp__champ input[type="text"], .cp__champ select { max-width: none; }
  .cp__champ--court { flex: 1 1 120px; }
  .cp__champ--court input[type="text"] { max-width: none; }
  .cp__liste { grid-template-columns: 1fr; }
  .cp__liste dt { border-bottom: 0; padding-bottom: 0; color: var(--muted); font-size: .9rem; }
  .cp__liste dd { text-align: left; }
  .cp__actions .cta { width: 100%; justify-content: center; }
}

/* Plan de remboursement de dettes : styles propres à l'outil (préfixe pr-). */
.appli[data-appli="plan-remboursement"] { margin: 24px 0; }
.pr-form { display: grid; gap: 20px; }
.pr-bloc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-big); padding: 18px 22px 22px; margin: 0; min-width: 0; }
.pr-bloc legend { font-weight: 700; color: var(--slate-dark); padding: 0 8px; font-size: 1.05rem; }
.pr-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 18px; }
.pr-champ { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pr-champ label { font-size: .9rem; font-weight: 500; color: var(--slate-dark); }
.pr-champ input[type="text"], .pr-champ select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink); width: 100%; min-height: 44px; }
.pr-champ [aria-invalid="true"] { border-color: var(--accent); border-width: 2px; }
.pr-aide { margin: 0; font-size: .82rem; line-height: 1.4; color: var(--muted); }
.pr-erreur { margin: 0; font-size: .86rem; font-weight: 500; color: var(--accent-dark); }
.pr-erreur[hidden] { display: none; }
.pr-coche { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.pr-coche input { width: 22px; height: 22px; accent-color: var(--slate); }
.pr-coche label { font-size: .95rem; }
.pr-dispo-calc { margin: 12px 0 0; font-weight: 500; color: var(--slate-dark); min-height: 1.6em; }
.pr-dettes { display: grid; gap: 14px; margin-bottom: 14px; }
.pr-dette { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--slate); border-radius: var(--r); padding: 14px 16px; }
.pr-dette-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.pr-dette-titre { color: var(--slate-dark); }
.pr-retirer { font: inherit; font-size: .88rem; color: var(--accent-dark); background: transparent; border: 0; text-decoration: underline; cursor: pointer; padding: 8px 4px; min-height: 44px; }
.pr-retirer[hidden] { display: none; }
.pr-boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.pr-donnees { margin: 0; font-size: .88rem; color: var(--muted); }
.pr-resultats { margin-top: 24px; }
.pr-resultats[hidden] { display: none; }
.pr-titre { font-size: 1.3rem; margin-bottom: 14px; }
.pr-titre:focus { outline: 3px solid var(--sun); outline-offset: 4px; }
.pr-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 14px 0; }
.pr-carte { border: 1px solid var(--line); border-top: 4px solid var(--slate); border-radius: var(--r); padding: 16px 18px; background: var(--white); }
.pr-carte h4 { margin: 0 0 10px; font-size: 1.05rem; color: var(--slate-dark); }
.pr-liste { margin: 0; }
.pr-liste div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pr-liste div:last-child { border-bottom: 0; }
.pr-liste dt { color: var(--muted); font-size: .93rem; }
.pr-liste dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.pr-alerte { border-left: 4px solid var(--accent); background: #FBF0EF; padding: 10px 14px; border-radius: var(--r); margin: 10px 0; }
.pr-msgs { margin: 10px 0; padding-left: 20px; font-size: .92rem; color: var(--muted); }
.pr-hyp { font-size: .86rem; color: var(--muted); }
.pr-section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.pr-section h3 { font-size: 1.15rem; }
.pr-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 14px; }
.pr-table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.pr-table caption { text-align: left; font-weight: 500; color: var(--slate-dark); padding: 0 0 8px; }
.pr-table th, .pr-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pr-table thead th { background: var(--slate-soft); color: var(--slate-dark); white-space: nowrap; }
.pr-table td { font-variant-numeric: tabular-nums; }
.pr-detail { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); }
.pr-garde { margin-top: 24px; }
@media (max-width: 600px) {
  .pr-bloc { padding: 14px 14px 18px; }
  .pr-grille { grid-template-columns: 1fr; }
  .pr-boutons .cta { width: 100%; justify-content: center; }
}

/* Simulateur de chances : styles propres à l'outil (préfixe sc-). */
.appli[data-appli="simulateur-chances"] { margin: 24px 0; }
.sc-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-big); padding: 22px; }
.sc-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px 20px; }
.sc-champ { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-champ label { font-size: .9rem; font-weight: 500; color: var(--slate-dark); }
.sc-champ input, .sc-champ select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink); width: 100%; min-height: 44px; }
.sc-champ input:disabled { background: var(--paper); color: var(--muted); }
.sc-champ [aria-invalid="true"] { border-color: var(--accent); border-width: 2px; }
.sc-aide { margin: 0; font-size: .82rem; line-height: 1.4; color: var(--muted); }
.sc-erreur { margin: 0; font-size: .86rem; font-weight: 500; color: var(--accent-dark); }
.sc-erreur[hidden] { display: none; }
.sc-boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.sc-donnees { margin: 14px 0 0; font-size: .88rem; color: var(--muted); }
.sc-resultats { margin-top: 24px; }
.sc-resultats[hidden] { display: none; }
.sc-titre { font-size: 1.3rem; margin-bottom: 16px; }
.sc-titre:focus { outline: 3px solid var(--sun); outline-offset: 4px; }
.sc-bloc { border: 1px solid var(--line); border-top: 4px solid var(--slate); border-radius: var(--r); padding: 18px 20px; margin: 0 0 20px; background: var(--white); }
.sc-bloc h3 { margin-bottom: 12px; }
.sc-h4 { font-size: 1.05rem; font-weight: 500; color: var(--slate-dark); margin: 24px 0 10px; }
.sc-liste { margin: 0 0 14px; padding: 0; }
.sc-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sc-ligne:last-child { border-bottom: 0; }
.sc-ligne dt { color: var(--muted); font-size: .95rem; flex: 1 1 220px; }
.sc-ligne dd { margin: 0; font-weight: 500; text-align: right; flex: 1 1 140px; font-variant-numeric: tabular-nums; }
.sc-detail { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
p .sc-detail { display: inline; }
.sc-hyp { font-size: .86rem; color: var(--muted); margin: 8px 0 0; }
.sc-net { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; margin: 8px 0 14px; border: 1px solid var(--line); border-left: 6px solid var(--slate); border-radius: var(--r); background: var(--paper); }
.sc-net strong { font-size: 1.35rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-net--moins { border-left-color: var(--slate-dark); }
.sc-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 12px; }
.sc-table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.sc-table th, .sc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.sc-table td { text-align: right; font-variant-numeric: tabular-nums; }
.sc-avert { margin: 0; padding-left: 20px; }
.sc-avert li { margin-bottom: 6px; }
.sc-garde { margin-top: 24px; }
.sc-erreur-globale { color: var(--accent-dark); font-weight: 500; }
@media (max-width: 600px) {
  .sc-form { padding: 16px; }
  .sc-champs { grid-template-columns: 1fr; }
  .sc-boutons .cta { width: 100%; justify-content: center; }
  .sc-ligne dd { text-align: left; }
  .sc-bloc { padding: 14px; }
}

/* Test : votre rapport au jeu (prefixe tr-). Pas de couleur de gravite. */
.appli[data-appli="test-rapport-au-jeu"] { margin: 24px 0 32px; }
.tr { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-big); padding: 28px; box-shadow: var(--shadow); }
.tr__titre { margin: 0 0 .5em; font-size: 1.35rem; }
.tr__titre:focus, .tr__legend:focus { outline: none; }
.tr__accueil { background: var(--white); border-left: 4px solid var(--slate); border-radius: var(--r); padding: 12px 16px; margin: 0 0 20px; }
.tr__progres { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: .9rem; font-weight: 500; color: var(--muted); }
.tr__barre { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.tr__barre-plein { display: block; height: 100%; background: var(--slate); border-radius: 999px; }
.tr__form { margin: 0; }
.tr__fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.tr__legend { padding: 0; margin: 0 0 14px; font-size: 1.15rem; font-weight: 500; line-height: 1.4; color: var(--slate-dark); }
.tr__choix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tr__option { position: relative; }
.tr__option input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tr__option label { display: block; padding: 13px 16px; background: var(--white); border: 2px solid var(--line); border-radius: var(--r); cursor: pointer; font-weight: 500; text-align: center; }
.tr__option input:hover + label { border-color: var(--slate); }
.tr__option input:checked + label { border-color: var(--slate-dark); background: var(--slate-soft); color: var(--slate-dark); }
.tr__option input:focus-visible + label { outline: 3px solid var(--sun); outline-offset: 2px; }
.tr__aide { margin: 0 0 18px; font-size: .95rem; }
.tr__aide summary { cursor: pointer; color: var(--slate); font-weight: 500; padding: 4px 0; }
.tr__aide summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.tr__aide p { margin: 8px 0 0; padding: 10px 14px; background: var(--white); border-radius: var(--r); color: var(--muted); }
.tr__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.tr .cta:disabled { opacity: .45; cursor: not-allowed; }
.tr__sos { background: var(--slate-dark); color: var(--white); border-radius: var(--r); padding: 16px 20px; margin: 0 0 14px; }
.tr__sos a { color: var(--white); }
.tr__sos p { margin: 0; }
.tr__sos-titre { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.tr__sos-detail { margin-top: 4px !important; color: #DDE3EC; font-size: .95rem; }
.tr__sos--idees { background: var(--slate); margin-top: 0; }
.tr__nb { font-size: 1.1rem; font-weight: 500; margin: 0 0 14px; }
.tr__palier { background: var(--white); border-left: 4px solid var(--slate); border-radius: var(--r); padding: 14px 18px; margin: 0 0 16px; }
.tr__palier p:last-child { margin: 0; }
.tr__palier-titre { font-weight: 700; color: var(--slate-dark); margin: 0 0 .3em; font-size: 1.1rem; }
.tr__suite h4 { margin: 0 0 .4em; font-size: 1.05rem; color: var(--slate-dark); }
.tr__liens { margin: 0 0 16px; padding-left: 1.2em; }
.tr__mention { font-size: .92rem; color: var(--muted); margin: 0 0 14px; }
@media (max-width: 560px) {
  .tr { padding: 18px 16px; }
  .tr__choix { grid-template-columns: 1fr; }
  .tr__actions .cta { width: 100%; justify-content: center; white-space: normal; }
}
