:root{--ink:#1d2433;--muted:#5a6475;--bg:#fbfaf7;--card:#fff;--line:#d9dde3;--brand:#0b5d7a;--brand-d:#08465c;--accent:#b4441c;--ok:#1e6b3a;--warn-bg:#fff6e0;--warn-line:#e8c66a;--radius:10px}
*{box-sizing:border-box}
html{font-size:112.5%;-webkit-text-size-adjust:100%}
@media (min-width:900px){html{font-size:118.75%}}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;line-height:1.6;color:var(--ink);background:var(--bg)}
.wrap{max-width:1100px;margin:0 auto;padding:0 1.1rem}
a{color:var(--brand);text-underline-offset:.15em}
a:hover{color:var(--brand-d)}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #f2b705;outline-offset:2px}
.skip{position:absolute;left:-999px;top:0;background:#000;color:#fff;padding:.5rem 1rem;z-index:10}
.skip:focus{left:0}
h1{font-size:2rem;line-height:1.25;margin:1.2rem 0 .8rem}
h2{font-size:1.45rem;line-height:1.3;margin:2rem 0 .7rem;padding-top:.3rem}
h3{font-size:1.15rem;margin:1.4rem 0 .5rem}
.lead{font-size:1.12rem;max-width:62ch}
.muted{color:var(--muted)}.small{font-size:.88rem}.nowrap{white-space:nowrap}
.site-header{background:var(--brand);color:#fff}
.header-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1.5rem;padding-top:.7rem;padding-bottom:.7rem}
.brand{color:#fff;text-decoration:none;font-weight:800;font-size:1.35rem;letter-spacing:.01em}
.brand:hover{color:#fff}.logo{color:#f2b705}
.site-header nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.2rem .3rem}
.site-header nav a{color:#fff;text-decoration:none;padding:.35rem .6rem;border-radius:6px;display:inline-block}
.site-header nav a:hover,.site-header nav a[aria-current]{background:rgba(255,255,255,.18);color:#fff}
.crumbs{margin-top:1rem;font-size:.9rem;color:var(--muted)}
.hero{padding:1.2rem 0 .5rem}
.hero h1{font-size:2.2rem;max-width:24ch}
.btn{display:inline-block;background:var(--brand);color:#fff;text-decoration:none;font-weight:700;padding:.7rem 1.2rem;border-radius:8px;margin:.2rem .4rem .2rem 0}
.btn:hover{background:var(--brand-d);color:#fff}
.btn-alt{background:#fff;color:var(--brand);border:2px solid var(--brand)}
.btn-alt:hover{background:#eef6f9;color:var(--brand-d)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.8rem;margin:.6rem 0}
.stat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1rem}
.stat-n{display:block;font-size:2rem;font-weight:800;color:var(--brand);line-height:1.1}
.stat-l{color:var(--muted)}
.source{color:var(--muted)}
.callout{background:#fff;border-left:6px solid var(--accent);padding:.8rem 1.1rem;border-radius:0 var(--radius) var(--radius) 0;margin:1rem 0}
.callout p{margin:.3rem 0}
.notice{background:var(--warn-bg);border:1px solid var(--warn-line);border-radius:var(--radius);padding:.8rem 1rem}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:.6rem 1.2rem;margin:1rem 0}
.region-grid{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:.6rem}
.region-grid a{display:block;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:.8rem 1rem;text-decoration:none;height:100%}
.region-grid a:hover{border-color:var(--brand);box-shadow:0 2px 8px rgba(0,0,0,.06)}
.rg-name{display:block;font-weight:700;font-size:1.05rem}
.rg-meta{display:block;color:var(--muted);font-size:.9rem}
.chips{display:flex;flex-wrap:wrap;gap:.4rem}
.chips a{background:#eef3f6;border-radius:999px;padding:.3rem .8rem;text-decoration:none;font-size:.95rem}
.chips a:hover{background:#dbe9f0}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);margin:.6rem 0}
table{border-collapse:collapse;width:100%}
caption{text-align:left;padding:.6rem .8rem;font-weight:700}
th,td{text-align:left;padding:.6rem .8rem;border-bottom:1px solid var(--line);vertical-align:top}
thead th{background:#f1f4f7;font-size:.92rem}
tbody tr:nth-child(even){background:#fafbfc}
td.num,th.num{text-align:right}
tfoot th,tfoot td{font-weight:700;background:#f1f4f7}
.events{list-style:none;padding:0}
.event{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:.6rem .9rem;margin:.45rem 0}
.tag{display:inline-block;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:.1rem .5rem;border-radius:4px;background:#e4e7ec;color:var(--ink);margin-right:.3rem}
.tag-removed{background:#fbe3da;color:#8a2c0c}.tag-new{background:#dcf2e3;color:var(--ok)}.tag-places{background:#e1ecf7;color:#1b4d80}
.facts{display:grid;grid-template-columns:max-content 1fr;gap:.3rem 1rem}
.facts dt{font-weight:700}.facts dd{margin:0}
.newsletter{background:#eaf3f6;border:1px solid #c5dde6;border-radius:var(--radius);padding:1rem 1.3rem;margin:2.5rem 0 1.5rem}
.newsletter h2{margin-top:.4rem}
.signup label{font-weight:700;display:block;margin-bottom:.3rem}
.signup-row{display:flex;flex-wrap:wrap;gap:.5rem}
.signup input{flex:1 1 260px;font-size:1.05rem;padding:.7rem .8rem;border:2px solid #9fb3bd;border-radius:8px}
.signup button{font-size:1.05rem;font-weight:700;padding:.7rem 1.4rem;border:0;border-radius:8px;background:var(--accent);color:#fff;cursor:pointer}
.signup button:hover{background:#923616}
.signup button:disabled{opacity:.6;cursor:wait}
.signup .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.signup .consent{margin:.5rem 0 0;color:#4a5566}
.form-status{margin:.5rem 0 0;font-weight:700}.form-status.ok{color:var(--ok)}.form-status.err{color:#a3261b}
.site-footer{background:#1d2433;color:#e6e9ee;margin-top:3rem;padding:1.5rem 0;font-size:.92rem}
.site-footer a{color:#9ed3e6}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.signup-compact{background:#fff6e0;border:1px solid var(--warn-line);border-left:6px solid var(--accent);border-radius:0 var(--radius) var(--radius) 0;padding:.8rem 1.1rem;margin:1rem 0 1.4rem}
.signup-compact .sc-title{font-weight:800;font-size:1.12rem;margin:0 0 .15rem}
.signup-compact .sc-sub{margin:0 0 .5rem;color:#4a5566}
.signup-compact input{flex:1 1 240px;font-size:1.05rem;padding:.6rem .8rem;border:2px solid #9fb3bd;border-radius:8px}
.signup-compact button{font-size:1.05rem;font-weight:700;padding:.6rem 1.3rem;border:0;border-radius:8px;background:var(--accent);color:#fff;cursor:pointer}
.signup-compact button:hover{background:#923616}
.signup-compact .form-status{margin:.45rem 0 0}
.guide{max-width:52rem}
.guide .toc ol{margin:.2rem 0 .6rem}
.guide sup a{text-decoration:none;font-size:.75em}
.guide .callout{font-size:1.1rem}
.sources li{margin:.3rem 0}
.checklist li,.steps li{margin:.35rem 0}
.issue-body{margin:1rem 0;overflow-x:auto}
.issue-body>table{border:0}
.issue-body td,.issue-body th{border-bottom:0;padding:revert}
.issue-body tbody tr:nth-child(even){background:transparent}
.issue-nav{margin:1rem 0}
.footer-contact{font-size:1rem}
@media (max-width:640px){
  h1,.hero h1{font-size:1.65rem}
  .stat-n{font-size:1.6rem}
  th,td{padding:.5rem}
  .facts{grid-template-columns:1fr}.facts dd{margin-bottom:.4rem}
}
@media print{.site-header nav,.newsletter,.signup-compact,.site-footer{display:none}}
/* Navigation mobile : details/summary, sans JavaScript */
.site-header{position:relative}
.nav-mobile{display:none}
.nav-mobile summary{list-style:none;cursor:pointer;color:#fff;font-weight:700;padding:.45rem .9rem;border:2px solid rgba(255,255,255,.6);border-radius:8px;user-select:none}
.nav-mobile summary::-webkit-details-marker{display:none}
.nav-mobile[open] summary{background:rgba(255,255,255,.18)}
@media (max-width:760px){
  .nav-desktop{display:none}
  .nav-mobile{display:block}
  .header-inner{flex-wrap:nowrap}
  .nav-mobile nav{position:absolute;left:0;right:0;top:100%;background:var(--brand);z-index:20;padding:.4rem 1rem 1rem;box-shadow:0 8px 16px rgba(0,0,0,.18)}
  .site-header .nav-mobile ul{flex-direction:column;gap:.1rem}
  .site-header .nav-mobile a{display:block;padding:.65rem .7rem;font-size:1.05rem}
}
/* Tableaux en cartes empilées sur téléphone : aucune colonne coupée */
@media (max-width:640px){
  .table-wrap{overflow-x:visible}
  table.cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  table.cards,table.cards tbody,table.cards tfoot,table.cards tr,table.cards td,table.cards th{display:block;width:auto}
  table.cards caption{display:block}
  table.cards tr{padding:.6rem .9rem;border-bottom:1px solid var(--line)}
  table.cards td,table.cards th{border:0;padding:.12rem 0;text-align:left}
  table.cards td.num{text-align:left}
  table.cards td.nowrap{white-space:normal}
  table.cards .card-title{font-weight:700;padding-bottom:.25rem}
  table.cards td[data-label]::before{content:attr(data-label) " : ";font-weight:700;color:var(--muted);font-size:.88rem}
  table.cards td[data-label]:empty{display:none}
}
/* Recherche de RPA */
.rpa-search-wrap{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:.8rem 1.2rem 1rem;margin:1.5rem 0}
.rpa-search-wrap h2{margin-top:.3rem}
.rs-row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:flex-end}
.rs-field{display:flex;flex-direction:column;flex:1 1 180px}
.rs-field.rs-q{flex:2 1 260px}
.rs-field label{font-weight:700;font-size:.92rem;margin-bottom:.2rem}
.rs-field input,.rs-field select{font-size:1.05rem;padding:.6rem .7rem;border:2px solid #9fb3bd;border-radius:8px;background:#fff;color:var(--ink)}
.rs-field.rs-submit{flex:0 0 auto}
.rs-submit button{font-size:1.05rem;font-weight:700;padding:.65rem 1.3rem;border:0;border-radius:8px;background:var(--brand);color:#fff;cursor:pointer}
.rs-results{padding-left:1.4rem;margin:.4rem 0 0}
.rs-results li{margin:.3rem 0}
select:focus-visible{outline:3px solid #f2b705;outline-offset:2px}
.rs-field{min-width:0}.rs-field input,.rs-field select{box-sizing:border-box;width:100%;max-width:100%}
/* Guides, FAQ, ressources (phase 2) */
.guide-list{list-style:none;padding:0;display:grid;gap:.8rem}
.guide-list li h2{margin:.2rem 0 .3rem;font-size:1.2rem}
.guide-list li p{margin:0}
.other-guides{margin:2rem 0 1rem}
.other-guides h2{margin-top:.2rem;font-size:1.15rem}
.other-guides li{margin:.35rem 0}
.guide table{width:100%;border-collapse:collapse}
.guide th,.guide td{padding:.45rem .6rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
@media (max-width:640px){.guide .table-wrap{overflow-x:auto}.guide th,.guide td{padding:.4rem .45rem;font-size:.95rem}}
.faq-item{border-bottom:1px solid var(--line);padding:.2rem 0 .6rem}
.faq-item h2{font-size:1.15rem;margin:1rem 0 .4rem}
.resource-list{list-style:none;padding:0}
.resource-list li{margin:.7rem 0}
.chips-list{list-style:none;padding:0;margin:.2rem 0;display:flex;flex-wrap:wrap;gap:.4rem 1rem}
/* Menu mobile compact : deux colonnes (phase 2, 9 liens) */
@media (max-width:760px){
  .site-header .nav-mobile ul{display:grid;grid-template-columns:1fr 1fr;gap:.15rem .4rem}
  .site-header .nav-mobile a{padding:.55rem .6rem;font-size:1rem}
}
