:root {
  --navy: #14295f;
  --navy-deep: #0d1b45;
  --red: #c8202f;
  --ink: #1b2233;
  --muted: #5a637a;
  --rule: #d6dbe8;
  --paper: #eef1f7;
  --white: #ffffff;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1080px;
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- En-tête ---------- */
.topbar { height: 5px; background: linear-gradient(90deg, var(--navy) 0 34%, var(--white) 34% 66%, var(--red) 66%); border-bottom: 1px solid var(--rule); }
header.site { background: var(--white); border-bottom: 1px solid var(--rule); }
header.site .brandrow { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--navy); }
.brand img { height: 92px; width: auto; display: block; }
.brand .wordmark { display: flex; flex-direction: column; font-family: var(--serif); line-height: 1.08; }
.wordmark .w1 { font-size: 1.05rem; font-weight: 400; }
.wordmark .w2 { font-size: 1.7rem; font-weight: 600; }
.wordmark .w3 { font-size: 1.12rem; font-weight: 400; }
.wordmark .w4 { font-family: var(--sans); font-size: .8rem; color: var(--red); font-weight: 600; margin-top: 6px; }
nav.main.bar { border-top: 1px solid var(--rule); background: var(--paper); }
nav.main.bar .wrap { padding-top: 0; padding-bottom: 0; }
nav.main ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; padding: 0; }
nav.main a { display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy); padding: 13px 0 11px; border-bottom: 3px solid transparent; }
nav.main a:hover { border-bottom-color: var(--rule); color: var(--navy); }
nav.main a[aria-current="page"] { border-bottom-color: var(--red); }

/* ---------- Bandeau d'accueil : la requête ---------- */
.hero { background: var(--navy-deep); color: #fff; padding: 64px 0 72px; }
.herogrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero .kicker { display: none; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 500; margin: 0 0 22px; max-width: 16em; }
.hero p.lead { font-size: 1.18rem; line-height: 1.55; color: #d7deef; margin: 0 0 32px; max-width: 34em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 3px; font-weight: 600; text-decoration: none; font-size: .98rem; border: 2px solid transparent; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: #a3182a; color: #fff; }
.btn.ghost { border-color: #8d9ac4; color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn.dark { background: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-deep); color: #fff; }

.requete {
  background: #fff; color: var(--ink); font-family: var(--serif);
  padding: 34px 36px 30px; border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  position: relative; max-width: 460px; justify-self: end; width: 100%;
  font-size: 1.02rem; line-height: 1.5;
}
.requete::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--navy) 0 34%, #fff 34% 66%, var(--red) 66%); }
.requete .tri { color: var(--muted); font-size: .92rem; font-family: var(--sans); margin: 0 0 18px; }
.requete h2 { font-size: 1.5rem; font-weight: 600; text-align: center; margin: 0 0 18px; }
.requete .pour, .requete .contre { display: grid; grid-template-columns: 5.2em 1fr; gap: 10px; margin: 0 0 10px; }
.requete .pour b, .requete .contre b { font-weight: 600; color: var(--navy); }
.requete .blank { display: inline-block; min-width: 7em; border-bottom: 1px dotted #8b93a8; }
.requete .vu { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-style: italic; color: #34405a; }
.requete .conclut { margin: 14px 0 0; }
.requete .conclut b { font-weight: 600; color: var(--red); }

/* ---------- Sections ---------- */
section.block { padding: 68px 0; }
section.block.soft { background: var(--paper); }
h2 { font-size: 2rem; margin: 0 0 20px; }
h3 { font-size: 1.3rem; margin: 0 0 8px; }
.intro { max-width: var(--measure); color: var(--muted); margin: 0 0 32px; font-size: 1.1rem; }
.prose { max-width: var(--measure); }
.prose ol, .prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose h3 { margin-top: 1.6em; }
.prose h3:first-child { margin-top: 0; }

/* Trois activités : un panneau, trois colonnes séparées par des filets */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--navy); }
.card { padding: 26px 26px 22px 0; border-right: 1px solid var(--rule); margin-right: 26px; }
.card:last-child { border-right: 0; margin-right: 0; }
.card .num { display: none; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: #34405a; }
.card p + p { margin-top: .7em; }

.twocol { display: grid; gap: 44px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.twocol .prose { max-width: none; }

.callout { border-left: 4px solid var(--red); background: var(--paper); padding: 20px 24px; margin: 26px 0; max-width: 44em; }
section.soft .callout { background: #fff; }
.callout p { margin: 0 0 .6em; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Pages intérieures ---------- */
.pagehead { background: var(--paper); border-bottom: 1px solid var(--rule); padding: 48px 0 42px; }
.pagehead h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 500; margin: 0 0 12px; }
.pagehead p { margin: 0; max-width: 42em; color: var(--muted); font-size: 1.12rem; }
.pagehead .crumb { display: none; }

/* Les points de l'article 2 : numérotés car ils le sont dans les statuts */
.domain { display: grid; grid-template-columns: 3rem 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--rule); max-width: 52em; }
.domain:first-of-type { border-top: 2px solid var(--navy); margin-top: 28px; }
.domain .n { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); line-height: 1.3; }
.domain .n::before { content: "2."; }
.domain h3 { font-size: 1.25rem; }
.domain p { margin: 0; color: #34405a; }

/* ---------- Registre et actions ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.filters input, .filters select { font: inherit; padding: 10px 12px; border: 1px solid #aeb7cc; border-radius: 3px; background: #fff; min-width: 280px; }
table.reg { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.reg th { text-align: left; border-bottom: 2px solid var(--navy); padding: 10px 12px; font-weight: 600; color: var(--navy); }
table.reg td { padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tablewrap { overflow-x: auto; }
.empty { border: 1px solid var(--rule); border-left: 4px solid var(--navy); padding: 26px 28px; color: var(--muted); max-width: 44em; }
.empty p { margin: 0 0 .4em; }
.empty p:last-child { margin-bottom: 0; }
#alist .card { border: 1px solid var(--rule); border-top: 2px solid var(--navy); margin-right: 0; padding: 22px 24px; max-width: 52em; }

/* ---------- Portrait ---------- */
.portrait { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; }
.portrait img { width: 150px; height: 150px; object-fit: cover; border-radius: 3px; border-bottom: 4px solid var(--red); display: block; }
.portrait .role { color: var(--red); font-weight: 600; margin: 0 0 10px; }
.portrait p:last-child { margin: 0; color: #34405a; }
@media (max-width: 480px) { .portrait { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
footer.site { background: var(--navy-deep); color: #c9d2ec; padding: 48px 0 26px; }
footer.site a { color: #fff; }
footer.site .cols { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
footer.site h4 { color: #fff; font-size: 1.15rem; margin: 0 0 10px; }
footer.site p, footer.site li { margin: 0 0 .35em; font-size: .95rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site .legal { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 30px; padding-top: 16px; font-size: .85rem; color: #a9b5d9; }

@media (max-width: 900px) {
  .herogrid { grid-template-columns: 1fr; gap: 40px; }
  .requete { justify-self: start; }
  footer.site .cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero { padding: 44px 0 52px; }
  section.block { padding: 48px 0; }
  .brand img { height: 64px; }
  .wordmark .w1 { font-size: .85rem; }
  .wordmark .w2 { font-size: 1.2rem; }
  .wordmark .w3 { font-size: .9rem; }
  .wordmark .w4 { font-size: .7rem; }
  nav.main ul { gap: 0 18px; }
  .card { border-right: 0; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule); }
  .card:last-child { border-bottom: 0; }
  .requete { padding: 26px 22px 22px; }
  .domain { grid-template-columns: 2.6rem 1fr; gap: 10px; }
}
@media print {
  header.site, .btns, footer.site .cols, .topbar { display: none; }
  body { font-size: 12pt; }
}

/* ---------- Article 2 reproduit ---------- */
.artref { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.objhead { font-family: var(--serif); font-size: 1.2rem; margin: 0; }
ol.objet { list-style: none; margin: 18px 0 0; padding: 0; max-width: 56em; border-top: 2px solid var(--navy); }
ol.objet li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); color: #2b3550; }
ol.objet .n { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); line-height: 1.35; }
.objtail { margin-top: 18px; font-family: var(--serif); font-size: 1.1rem; }

/* ---------- Presse ---------- */
dl.fiche { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: .98rem; }
dl.fiche dt { color: var(--muted); }
dl.fiche dd { margin: 0; }
.cp { border-top: 1px solid var(--rule); padding: 20px 0; max-width: 56em; }
.cp:first-child { border-top: 2px solid var(--navy); }
.cp .cpdate { color: var(--muted); font-size: .92rem; margin: 0 0 4px; }
.cp p:last-child { margin-bottom: 0; }
.dl img { display: block; border: 1px solid var(--rule); background: #fff; padding: 12px; max-width: 360px; }
.dl img.port { width: 150px; height: 150px; object-fit: cover; padding: 0; }
.dl p { margin: 12px 0 0; }
.dl .note { color: var(--muted); font-size: .92rem; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  nav.main.bar .wrap { padding-left: 0; padding-right: 0; }
  nav.main ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 22px; gap: 0 20px; }
  nav.main ul::-webkit-scrollbar { display: none; }
  nav.main a { white-space: nowrap; padding: 12px 0 10px; font-size: .92rem; }
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 1.05rem; }
  .requete { font-size: .95rem; max-width: none; }
  .requete .pour, .requete .contre { grid-template-columns: 4.6em 1fr; }
  h2 { font-size: 1.65rem; }
  .twocol { gap: 32px; }
  dl.fiche { grid-template-columns: 1fr; gap: 2px 0; }
  dl.fiche dd { margin-bottom: 10px; }
  table.reg { font-size: .9rem; }
  table.reg th, table.reg td { padding: 9px 8px; }
  .filters input, .filters select { min-width: 0; width: 100%; }
}
@media (max-width: 640px) {
  nav.main.bar { position: relative; }
  nav.main.bar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44px; background: linear-gradient(90deg, rgba(238,241,247,0), var(--paper) 70%); pointer-events: none; }
  .wordmark .w4 { font-size: .66rem; }
}

.badge { display: inline-block; font-size: .78rem; color: var(--red); border: 1px solid var(--red); border-radius: 3px; padding: 1px 7px; margin-top: 4px; }
