/* ===== LSPD — feuille de style commune =====
   Direction artistique : fond blanc, bleu marine profond, bleu ciel, touches d'or.
   Toute la palette se règle ici. */
:root {
  --navy: #012b6d;        /* bleu marine du logo : bandeaux, titres, texte */
  --navy-deep: #011d4b;   /* variante sombre (dégradés, pied de page) */
  --sky: #badcff;         /* bleu ciel : tuiles et aplats */
  --sky-soft: #eaf4ff;    /* bleu très clair : cartes */
  --white: #ffffff;
  --text: #012b6d;
  --muted: #4b6189;
  --line: #cfdcee;
  --amber: #ffbf00;       /* or vif : boutons et accents sur fond marine */
  --amber-dark: #946a00;  /* or lisible sur fond clair */
  --gold: #e0b057;        /* or du liseré du logo */
  --green: #1c7a4b;
  --orange: #b85c00;
  --red: #c8321b;
  --radius: 12px;
  --wrap: 1720px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); line-height: 1.6; background: var(--white); font-size: 17px; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; letter-spacing: 0; line-height: 1.05; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; letter-spacing: .02em; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 72px); }
.muted { color: var(--muted); }
.gold { color: var(--amber-dark); }

/* ---- Navigation ---- */
.topbar { height: 5px; background: var(--gold); }
header.site { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.nav { display: flex; align-items: center; gap: 18px; height: 78px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand img { width: 54px; height: 54px; flex: none; }
.brand b { font-size: 1rem; letter-spacing: .04em; display: block; line-height: 1.15; text-transform: uppercase; font-weight: 700; }
.brand small { color: var(--sky); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.nav nav { display: flex; gap: 4px; }
.nav nav a {
  text-decoration: none; padding: 10px 14px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--white); border-bottom: 3px solid transparent;
}
.nav nav a:hover { color: var(--sky); }
.nav nav a.active { border-bottom-color: var(--amber); }
.nav nav a.nav-login { margin-left: 10px; padding: 9px 18px; border: 2px solid var(--amber); border-radius: 99px; color: var(--amber); }
.nav nav a.nav-login:hover, .nav nav a.nav-login.active { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.burger { display: none; background: none; border: 1px solid rgba(255, 255, 255, .4); color: var(--white); border-radius: 8px; padding: 8px 11px; font-size: 1.1rem; cursor: pointer; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 99px; border: 2px solid transparent;
  font: 700 .82rem var(--font); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--amber); color: var(--navy); }
.btn.primary:hover { background: #ffd24d; }
.btn.ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.btn.small { padding: 9px 16px; font-size: .74rem; }
.hero .btn.ghost, .cta .btn.ghost { border-color: var(--white); color: var(--white); }
.hero .btn.ghost:hover, .cta .btn.ghost:hover { background: var(--white); color: var(--navy); }

/* ---- Bandeaux marine (accueil et en-têtes de page) ---- */
.hero, .page-head { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); }
.hero { padding: 96px 0 88px; overflow: hidden; }
.hero .kicker, .page-head .kicker {
  display: inline-block; color: var(--amber); font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 20px;
}
.hero .gold { color: var(--amber); }
.hero p.lead { font-size: 1.25rem; color: var(--sky); max-width: 720px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: center; }
.hero-badge { justify-self: center; width: min(360px, 70vw); filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .45)); }
.page-head { padding: 72px 0 60px; margin-bottom: 52px; }
.page-head h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
.page-head p { color: var(--sky); max-width: 900px; font-size: 1.08rem; margin: 0; }
.blue-line { height: 5px; background: var(--gold); }

section { padding: 64px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.section-title p { margin: 0; color: var(--muted); }

/* ---- Cartes ---- */
.card { background: var(--sky-soft); border-radius: var(--radius); padding: 28px; border: 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.tag {
  display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  padding: 5px 10px; border-radius: 99px; background: var(--navy); color: var(--white);
}
.tag.blue { background: var(--sky); color: var(--navy); }
.tag.green { background: #d6f0e2; color: var(--green); }
.tag.orange { background: #ffe9c7; color: var(--orange); }
.tag.red { background: #ffe0da; color: var(--red); }

/* ---- Statistiques ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats div { padding: 26px 28px; background: var(--sky); border-radius: var(--radius); }
.stats b { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; display: block; line-height: 1; margin-bottom: 8px; }
.stats span { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* ---- Articles ---- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 2px solid var(--line); background: var(--white); color: var(--navy); padding: 7px 16px; border-radius: 99px;
  font: 600 .76rem var(--font); text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
}
.chip:hover { border-color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
dialog .signature { margin: 24px 0 0; padding-top: 16px; border-top: 2px solid var(--sky); font-size: .85rem; color: var(--muted); }
dialog .signature b { color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }

/* ---- Fenêtre de lecture ---- */
dialog { border: 0; border-radius: var(--radius); background: var(--white); color: var(--text); max-width: 680px; width: calc(100% - 32px); padding: 36px; box-shadow: 0 30px 80px rgba(1, 29, 75, .4); }
dialog::backdrop { background: rgba(1, 29, 75, .7); }
dialog .close { float: right; background: none; border: 0; color: var(--navy); font-size: 1.8rem; cursor: pointer; line-height: 1; }
dialog .body p { color: #233a63; }

/* ---- Valeurs ---- */
.value .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--amber); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px; }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }
.tbl { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.flag { aspect-ratio: 16/9; border-radius: var(--radius); background: repeating-linear-gradient(180deg, #0c0f15 0 9%, #23272f 9% 18%); position: relative; overflow: hidden; }
.flag::after { content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 9%; background: #2f6fe0; }
.callout { border-left: 6px solid var(--red); background: #fff1ee; padding: 26px 28px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout h3 { color: var(--red); font-size: 1.4rem; }

/* ---- Organigramme (arbre avec liaisons et portraits officiels, disposition du document de référence) ---- */
.wrap:has(> .org) { max-width: 1920px; }
.org { --rail: #9fb6d8; --branches: 3; display: flex; flex-direction: column; align-items: center; }
.org-node {
  position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: 0 4px 14px rgba(1, 43, 109, .08);
}
.org-photo { width: 62px; height: 78px; border-radius: 9px; overflow: hidden; background: #dbe7f6; display: grid; place-items: center; }
.org-photo img, .org-photo svg { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; display: block; }
.org-zoom { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.org-zoom:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.org-zoom img { transition: transform .2s; }
.org-zoom:hover img { transform: scale(1.06); }
.visionneuse { max-width: min(92vw, 720px); padding: 14px 14px 10px; text-align: center; }
.visionneuse img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 10px; }
.visionneuse p { margin: 12px 0 4px; font-weight: 800; letter-spacing: .04em; }
.visionneuse .close { position: absolute; top: 18px; right: 20px; float: none; width: 38px; height: 38px; border-radius: 50%; background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.org-txt { min-width: 0; display: grid; gap: 2px; }
.org-node .unit { display: flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; line-height: 1.2; color: var(--muted); }
.org-node .unit img { flex: none; width: 26px; height: 26px; object-fit: contain; }
.org-node .sub { font-size: .72rem; color: var(--muted); }
.org-node .name { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; }
.org-node .rank { display: flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.org-ins { flex: none; width: 22px; height: 22px; display: grid; place-items: center; }
.org-ins img { width: 22px; height: 22px; object-fit: contain; display: block; }
.org-node .role { font-size: .74rem; color: var(--muted); }
.org-node .role.acting { justify-self: start; background: var(--amber); color: var(--navy); font-weight: 800; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 99px; margin-top: 3px; }

/* Poste à pourvoir : logo de l'unité en gris, contour en pointillés */
.org-node.is-vacant { background: var(--sky-soft); border: 2px dashed var(--rail); box-shadow: none; }
.org-node.is-vacant .org-photo { background: transparent; }
.org-node.is-vacant .org-photo img { object-fit: contain; filter: grayscale(1); opacity: .5; padding: 6px; }
.org-node.is-vacant .unit { color: var(--navy); }
.org-node .name.vacant { font-size: .86rem; color: var(--muted); letter-spacing: .05em; }
.org-node.is-vacant .rank { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .76rem; }

/* Sommet : Station Commander au centre, un service de chaque côté, reliés par un trait */
.org-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; }
.org-side { display: flex; align-items: center; }
.org-side.left { justify-content: flex-end; }
.org-side .org-node { width: 320px; }
.org-side.left::after, .org-side.right::before { content: ""; flex: none; width: 60px; height: 0; border-top: 2px solid var(--rail); }
.org-side:empty::after, .org-side:empty::before { display: none; }
.org-node.chief {
  grid-template-columns: 140px 1fr; gap: 22px; padding: 16px 30px 16px 16px; min-width: 430px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--white); border: 3px solid var(--gold); box-shadow: 0 16px 36px rgba(1, 29, 75, .3);
}
.org-node.chief .org-photo { width: 140px; height: 175px; border-radius: 12px; }
.org-node.chief .unit { color: var(--amber); font-size: .78rem; letter-spacing: .14em; }
.org-node.chief .unit img { width: 34px; height: 34px; }
.org-node.chief .name { font-size: 2.1rem; }
.org-node.chief .rank { color: var(--sky); font-size: .78rem; }
.org-node.chief .org-ins, .org-node.chief .org-ins img { width: 30px; height: 30px; }
.org-node.chief .org-txt { gap: 6px; }

/* Tronc, barre horizontale et trois bureaux */
.org-trunk { width: 2px; height: 44px; background: var(--rail); }
.org-cols { display: grid; grid-template-columns: repeat(var(--branches), 1fr); gap: 28px; width: 100%; align-items: start; }
.org-col { position: relative; padding-top: 32px; }
.org-col::before { content: ""; position: absolute; top: 0; left: 50%; width: 0; height: 32px; border-left: 2px solid var(--rail); transform: translateX(-1px); }
.org-col::after { content: ""; position: absolute; top: 0; height: 0; border-top: 2px solid var(--rail); left: -14px; right: -14px; }
.org-col:first-child::after { left: 50%; }
.org-col:last-child::after { right: 50%; }

/* Responsable de bureau : centré en tête de sa branche */
.org-node.bureau { grid-template-columns: 84px 1fr; gap: 16px; padding: 12px 18px 12px 12px; width: min(100%, 400px); margin: 0 auto; background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 0 10px 24px rgba(1, 43, 109, .22); }
.org-node.bureau .org-photo { width: 84px; height: 105px; }
.org-node.bureau .unit { color: var(--amber); font-size: 1rem; }
.org-node.bureau .unit img { width: 30px; height: 30px; }
.org-node.bureau .sub, .org-node.bureau .rank, .org-node.bureau .role { color: var(--sky); }
.org-node.bureau .role.acting { color: var(--navy); }
.org-node.bureau .name { font-size: 1.35rem; }
.org-node.bureau.is-vacant { background: var(--sky-soft); color: var(--text); border: 2px dashed var(--rail); }

/* Unités : deux colonnes de part et d'autre d'un rail central ; une unité seule en fin de liste est centrée */
.org-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; padding-top: 18px; }
.org-sub .org-node { grid-template-columns: 54px 1fr; gap: 10px; padding: 9px 12px 9px 9px; }
.org-sub .org-photo { width: 54px; height: 68px; }
.org-sub .org-node .name { font-size: .98rem; }
.org-sub .org-node .unit { font-size: .74rem; }
.org-sub .org-node .unit img { width: 22px; height: 22px; }
.org-sub .org-node::before { content: ""; position: absolute; top: 50%; width: 19px; height: 0; border-top: 2px solid var(--rail); }
.org-sub .org-node:nth-child(odd)::before { right: -20px; }
.org-sub .org-node:nth-child(even)::before { left: -20px; }
.org-sub .org-node.is-vacant:nth-child(odd)::before { right: -21px; }
.org-sub .org-node.is-vacant:nth-child(even)::before { left: -21px; }
.org-sub .org-node:nth-child(odd)::after { content: ""; position: absolute; right: -22px; top: -19px; width: 0; height: calc(100% + 20px); border-left: 2px solid var(--rail); }
.org-sub .org-node.is-vacant:nth-child(odd)::after { right: -23px; top: -20px; }
.org-sub .org-node:nth-child(odd):nth-last-child(-n+2)::after { height: calc(50% + 20px); }
.org-sub .org-node:nth-child(odd):last-child { grid-column: 1 / -1; width: calc(50% - 20px); justify-self: center; }
.org-sub .org-node:nth-child(odd):last-child::before { display: none; }
.org-sub .org-node:nth-child(odd):last-child::after { right: auto; left: 50%; margin-left: -1px; top: -19px; height: 18px; }

.org-legende { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 40px 0 0; padding: 18px 24px; background: var(--sky-soft); border-radius: var(--radius); font-size: .86rem; color: var(--muted); }
.org-legende li { display: flex; align-items: center; gap: 9px; }
.pastille { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); }
.pastille.interim { background: var(--amber); }
.pastille.vacant { background: var(--white); border: 2px dashed #8aa5cc; }

/* Écrans moyens : les bureaux passent l'un sous l'autre, chacun gardant ses deux colonnes d'unités */
@media (max-width: 1560px) {
  .org-cols { grid-template-columns: 1fr; gap: 0; max-width: 720px; margin: 0 auto; }
  .org-col::after { display: none; }
  .org-col { padding-top: 36px; }
  .org-col::before { height: 36px; }
  .org-col:first-child { padding-top: 0; }
  .org-col:first-child::before { display: none; }
  .org-side .org-node { width: 280px; }
  .org-side.left::after, .org-side.right::before { width: 28px; }
}
@media (max-width: 1100px) {
  .org-top { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .org-top .chief { order: -1; }
  .org-side { justify-content: center; }
  .org-side::before, .org-side::after { display: none; }
}
@media (max-width: 640px) {
  .org-node.chief { min-width: 0; width: 100%; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; }
  .org-node.chief .org-photo { width: 96px; height: 120px; }
  .org-node.chief .name { font-size: 1.4rem; }
  .org-side, .org-side .org-node { width: 100%; }
  .org-sub { grid-template-columns: 1fr; gap: 12px; }
  .org-sub .org-node::before, .org-sub .org-node::after { display: none; }
  .org-sub .org-node:nth-child(odd):last-child { width: 100%; }
}

/* ---- Divisions ---- */
.div-sommaire { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.div-sommaire .chip { text-decoration: none; background: transparent; border-color: rgba(255, 255, 255, .35); color: var(--white); }
.div-sommaire .chip:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
section.bureau { display: grid; grid-template-columns: 340px 1fr; gap: 48px; padding: 60px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; align-items: start; }
section.bureau:first-child { border-top: 0; padding-top: 8px; }
.bureau-intro { position: sticky; top: 112px; }
.bureau-num { display: block; font-size: 4.2rem; font-weight: 800; line-height: 1; color: var(--sky); letter-spacing: -.04em; margin-bottom: 10px; }
.bureau-intro h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.08; margin-bottom: 14px; }
.bureau-intro p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.bureau-units { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 1500px) { .bureau-units { grid-template-columns: repeat(3, 1fr); } section.bureau { grid-template-columns: 400px 1fr; gap: 64px; } }
.division {
  display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; box-shadow: 0 4px 14px rgba(1, 43, 109, .06); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.division:hover { transform: translateY(-3px); border-color: var(--navy); box-shadow: 0 16px 34px rgba(1, 43, 109, .14); }
.division-ico { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--sky-soft); border: 2px solid var(--sky); display: grid; place-items: center; font-size: 1.6rem; line-height: 1; }
.division:hover .division-ico { background: var(--navy); border-color: var(--navy); }
.division-logo { flex: none; width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(1, 29, 75, .18)); transition: transform .2s; }
.division:hover .division-logo { transform: scale(1.08) rotate(-3deg); }
.bureau-logo { display: block; width: 120px; height: 120px; object-fit: contain; margin-bottom: 18px; filter: drop-shadow(0 8px 16px rgba(1, 29, 75, .2)); }
.bureau-intro:has(.bureau-logo) .bureau-num { font-size: 1.4rem; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.bureau-intro:has(.bureau-logo) .bureau-num::before { content: "Bureau "; text-transform: uppercase; font-size: .72rem; letter-spacing: .2em; font-weight: 700; }
.division h3 { margin: 4px 0 8px; font-size: 1.12rem; line-height: 1.15; }
.division p { color: var(--muted); font-size: .93rem; margin: 0; line-height: 1.55; }
@media (max-width: 1060px) {
  section.bureau { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .bureau-intro { position: static; }
  .bureau-num { font-size: 3rem; }
}
@media (max-width: 640px) { .bureau-units { grid-template-columns: 1fr; } .division { padding: 20px; } }

/* ---- Rejoindre ---- */
.steps { counter-reset: s; display: grid; gap: 14px; }
@media (min-width: 1100px) { section > .wrap > .steps { grid-template-columns: repeat(5, 1fr); } section > .wrap > .steps .step { grid-template-columns: 1fr; align-content: start; } section > .wrap > .steps .step::before { width: 56px; } }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; align-items: start; }
.faq details + details { margin-top: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-size: 1.2rem; font-weight: 800; color: var(--amber); background: var(--navy); border-radius: 50%; height: 56px; display: grid; place-items: center; }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .steps .step { grid-template-columns: 44px 1fr; gap: 14px; }
.card .steps .step::before { height: 44px; font-size: .95rem; }
ul.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.check li { padding-left: 30px; position: relative; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.ranks { display: grid; gap: 6px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 8px; background: var(--sky-soft); font-size: .92rem; font-weight: 600; }
.rank-row img, .rank-row .no-ins { width: 34px; height: 34px; object-fit: contain; flex: none; background: var(--white); border-radius: 6px; padding: 3px; }
.rank-row .no-ins { background: transparent; }
details { border-radius: var(--radius); padding: 18px 22px; background: var(--sky-soft); }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 12px 0 0; }
.cta { text-align: center; padding: 60px 24px; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--white); }
.cta .muted { color: var(--sky); }

/* ---- Formulaire ---- */
form.census { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* Formulaire par étapes (dépôt de plainte) */
.etape { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.full { grid-column: 1 / -1; }
.stepper { list-style: none; counter-reset: e; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0 0 26px; }
.stepper li { counter-increment: e; position: relative; padding-top: 14px; border-top: 5px solid var(--white); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stepper li::before { content: counter(e) ". "; }
.stepper li.actif { border-top-color: var(--amber); color: var(--navy); }
.stepper li.fait { border-top-color: var(--navy); color: var(--navy); cursor: pointer; }
.stepper li.fait::before { content: "✓ "; color: var(--green); }
.etape-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.etape-actions .btn.primary { margin-left: auto; }
.recap-liste { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 0; margin: 0; background: var(--white); border-radius: var(--radius); padding: 6px 18px; }
.recap-liste dt, .recap-liste dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.recap-liste dt { font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-right: 14px; }
.recap-liste dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.recap-liste dt:last-of-type, .recap-liste dd:last-of-type { border-bottom: 0; }
@media (max-width: 640px) { .etape { grid-template-columns: 1fr; } .stepper li { font-size: .62rem; } .recap-liste { grid-template-columns: 1fr; } .recap-liste dt { border-bottom: 0; padding-bottom: 0; } }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.field label i { color: var(--red); font-style: normal; }
input, select, textarea {
  width: 100%; background: var(--white); border: 2px solid var(--line); color: var(--text); border-radius: 8px;
  padding: 11px 13px; font: 400 1rem var(--font);
}
input::placeholder, textarea::placeholder { color: #8b9bb8; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px var(--sky); }
textarea { min-height: 100px; resize: vertical; }
.census-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.notice { font-size: .9rem; font-weight: 600; padding: 12px 16px; border-radius: 8px; background: #d6f0e2; color: var(--green); }
.notice.err { background: #ffe0da; color: var(--red); }
.form-title { grid-column: 1 / -1; margin: 4px 0 0; font-size: 1.15rem; }
.form-title:not(:first-child) { margin-top: 14px; padding-top: 24px; border-top: 2px solid var(--sky); }
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo {
  display: flex; align-items: center; gap: 18px; padding: 16px; border: 2px dashed #9fb6d8; border-radius: var(--radius);
  background: var(--white); cursor: pointer; font-weight: 400; color: var(--muted); font-size: .86rem; min-height: 124px;
  text-transform: none; letter-spacing: 0;
}
.photo:hover, .photo.drag, .photo:focus-within { border-color: var(--navy); background: var(--sky-soft); }
.photo b { color: var(--text); }
.photo img { width: 96px; height: 120px; object-fit: cover; border-radius: 8px; flex: none; }
.field label.photo { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .86rem; }
.photo.paysage img { width: 160px; height: 100px; }
.photo.ok { border-style: solid; border-color: var(--green); background: #f1faf5; }
.photo.ko { border-style: solid; border-color: var(--red); background: #fff1ee; }
.photo.attente { border-color: var(--navy); background: var(--sky-soft); }
.photo .conforme { color: var(--green); }
.photo .refus { color: var(--red); }
.field.invalid input, .field.invalid textarea, .field.invalid .photo { border-color: var(--red); }
button[disabled] { opacity: .6; cursor: wait; }
.checkline { display: flex; gap: 12px; align-items: flex-start; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; font-size: .9rem !important; cursor: pointer; }
.checkline input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--navy); }
.field.invalid .checkline { color: var(--red); }
.field.invalid select { border-color: var(--red); }
input[type="file"] { padding: 9px; cursor: pointer; }

/* ---- Public Safety Report ---- */
.psr-entete { margin-bottom: 26px; }
.psr-entete h2 { margin: 12px 0 6px; }
.psr-entete p { margin: 0; font-size: .9rem; }
.psr-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.psr-tuile { background: var(--sky-soft); border-radius: 18px; padding: 26px 22px; display: grid; gap: 6px; justify-items: center; text-align: center; align-content: start; }
.psr-picto { width: 76px; height: 76px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; font-size: 2.1rem; line-height: 1; margin-bottom: 8px; box-shadow: 0 8px 18px rgba(1, 43, 109, .22); }
.psr-tuile b { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.psr-tuile span:last-child { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); line-height: 1.3; }
.psr-resume { margin-top: 26px; padding: 22px 26px; border-left: 5px solid var(--gold); background: var(--sky-soft); border-radius: 0 var(--radius) var(--radius) 0; max-width: 980px; }
.psr-resume p:last-child { margin-bottom: 0; }
.psr-archives { padding-top: 56px; }
.psr-archives h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin-bottom: 18px; }
.psr-archives details p { max-width: 980px; }
.psr-grille.petite { margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.psr-grille.petite .psr-tuile { background: var(--white); padding: 16px 14px; }
.psr-grille.petite .psr-picto { width: 50px; height: 50px; font-size: 1.4rem; margin-bottom: 4px; box-shadow: none; }
.psr-grille.petite .psr-tuile b { font-size: 1.6rem; }
/* Bandeau du dernier rapport sur l'accueil */
#psr-accueil { padding: 0 0 8px; }
.psr-bandeau { display: grid; grid-template-columns: minmax(260px, 1fr) 2.4fr; gap: 34px; align-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--white); border-radius: 22px; padding: 34px; }
.psr-bandeau .tag { background: var(--amber); color: var(--navy); }
.psr-bandeau h2 { margin: 14px 0 20px; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.psr-bandeau .psr-grille { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.psr-bandeau .psr-tuile { background: rgba(255, 255, 255, .08); padding: 20px 12px; }
.psr-bandeau .psr-picto { background: var(--white); width: 60px; height: 60px; font-size: 1.7rem; box-shadow: none; }
.psr-bandeau .psr-tuile b { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.psr-bandeau .psr-tuile span:last-child { color: var(--sky); font-size: .7rem; }
@media (max-width: 960px) { .psr-bandeau { grid-template-columns: 1fr; padding: 24px; } .psr-bandeau .psr-grille { grid-template-columns: repeat(2, 1fr); } }

/* ---- Espace membre ---- */
.a-login { max-width: 460px; margin: 0 auto; }
.a-lien { background: none; border: 0; padding: 4px 0; color: var(--navy); font: 600 .88rem var(--font); text-decoration: underline; cursor: pointer; justify-self: start; }
.a-lien:hover { color: var(--amber-dark); }
.a-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.a-tabs { margin-bottom: 22px; }
.a-tab { padding: 0; }
#a-note { margin-bottom: 18px; position: sticky; top: 92px; z-index: 5; box-shadow: 0 8px 20px rgba(1, 43, 109, .15); }
.a-list { display: grid; gap: 8px; }
.a-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; background: var(--white); border-radius: 10px; font-size: .92rem; }
.a-item .muted { font-size: .8rem; }
.a-item select { width: auto; padding: 7px 10px; font-size: .86rem; }
.a-actions { display: flex; gap: 6px; flex: none; }
.btn.a-danger { border-color: var(--red); color: var(--red); }
.btn.a-danger:hover { background: var(--red); color: var(--white); }
.a-editor h3 { margin: 26px 0 12px; }
.a-editor h3:first-child { margin-top: 0; }
.a-editor > .btn { margin-top: 10px; }
.a-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.a-row input, .a-row select { flex: 1 1 130px; width: auto; min-width: 0; padding: 8px 10px; font-size: .88rem; }
.a-row input.large { flex: 2 1 200px; }
.a-row input.xl { flex: 5 1 320px; }
.a-row select { flex: 0 1 190px; }
.a-del { flex: none; width: 34px; height: 34px; border-radius: 8px; border: 2px solid var(--line); background: var(--white); color: var(--red); cursor: pointer; font-weight: 700; }
.a-del:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.a-block { border: 2px solid var(--sky); border-radius: var(--radius); padding: 14px; margin: 0 0 14px; background: var(--white); min-width: 0; }
.a-block .head { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--sky); }
.a-block .head input[data-k="unite"], .a-block .head input[data-k="nom"]:first-child { font-weight: 700; }
.a-block .a-list { margin: 0 0 10px 18px; padding-left: 14px; border-left: 3px solid var(--sky); }
.a-save { margin-top: 26px; padding-top: 20px; border-top: 2px solid var(--sky); }
code { background: var(--white); padding: 2px 6px; border-radius: 5px; font-size: .9em; }

/* ---- Pied de page ---- */
footer.site { margin-top: 72px; padding: 52px 0 30px; background: var(--navy-deep); color: var(--white); border-top: 5px solid var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
footer.site h4 { font-size: .76rem; color: var(--amber); letter-spacing: .18em; }
footer.site a { display: block; text-decoration: none; color: var(--sky); padding: 3px 0; font-size: .92rem; }
footer.site a:hover { color: var(--white); }
footer.site .muted { color: var(--sky); }
footer.site .brand img { width: 64px; height: 64px; }
.legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .78rem; color: var(--sky); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .org-cols, .census-layout, .tbl, .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { width: 180px; justify-self: start; grid-row: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
.nav nav a { white-space: nowrap; }
.nav nav a { padding-left: 10px; padding-right: 10px; }
@media (max-width: 1300px) {
  .nav nav a.nav-login { margin: 8px 0 0; align-self: flex-start; }
  .burger { display: block; }
  .nav nav { display: none; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; background: var(--navy); padding: 8px 24px 18px; }
  .nav nav.open { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .g2, .g3, .g4, form.census, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 52px; }
  .page-head { padding: 48px 0 40px; margin-bottom: 36px; }
  section { padding: 44px 0; }
  .brand small { display: none; }
  .brand img { width: 44px; height: 44px; }
}

/* ==== Articles (communiqués) : cartes avec couverture ==== */
.article { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 20px; text-align: left; color: inherit; font: inherit; cursor: pointer; box-shadow: 0 4px 16px rgba(1, 43, 109, .07); transition: transform .18s, box-shadow .18s, border-color .18s; }
.article:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: 0 18px 38px rgba(1, 43, 109, .16); }
.article .cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); overflow: hidden; }
.article .cover > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.article:hover .cover > img:not(.sceau) { transform: scale(1.05); }
.article .cover.vide { display: grid; place-items: center; }
.article .cover .sceau { width: 46%; height: auto; max-height: 86%; object-fit: contain; opacity: .9; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); }
.article .cover .tag { position: absolute; top: 14px; left: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.article .corps { display: flex; flex-direction: column; gap: 9px; padding: 20px 22px 22px; flex: 1; }
.article .date { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.article h3 { margin: 0; font-size: 1.28rem; line-height: 1.12; }
.article p { margin: 0; color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article .byline { margin-top: auto; padding-top: 10px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.article .more { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }
.article:hover .more { color: var(--amber-dark); }
/* L'article à la une : pleine largeur, image à gauche et texte sur fond marine à droite */
.article.featured { grid-column: 1 / -1; flex-direction: row; min-height: 340px; }
.article.featured .cover { flex: 1.15; aspect-ratio: auto; min-height: 280px; }
.article.featured .corps { flex: 1; justify-content: center; gap: 14px; padding: 36px 40px; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--white); }
.article.featured .date, .article.featured p, .article.featured .byline { color: var(--sky); }
.article.featured h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.article.featured p { font-size: 1.05rem; -webkit-line-clamp: 4; }
.article.featured .more { color: var(--amber); }
.article.featured .cover .tag { background: var(--amber); color: var(--navy); }
@media (max-width: 860px) { .article.featured { flex-direction: column; } .article.featured .cover { aspect-ratio: 16 / 9; min-height: 0; flex: none; } .article.featured .corps { padding: 26px; } }

/* Fenêtre de lecture d'un article */
#lecteur { max-width: 820px; padding: 0; overflow: hidden; }
#lecteur .close { position: absolute; top: 14px; right: 14px; z-index: 2; float: none; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--navy); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); font-size: 1.6rem; }
#lecteur .body { max-height: 90vh; overflow-y: auto; }
.lecteur-image { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.lecteur-texte { padding: 32px 38px 36px; }
.lecteur-texte h2 { margin: 14px 0 8px; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.lecteur-meta { margin: 0 0 18px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.lecteur-chapo { font-size: 1.12rem; font-weight: 600; color: var(--navy) !important; padding-left: 16px; border-left: 4px solid var(--gold); }
@media (max-width: 640px) { .lecteur-texte { padding: 22px 20px 26px; } }

/* ==== Bandeau d'annonce ==== */
.annonce { background: var(--amber); color: var(--navy); font-weight: 700; font-size: .9rem; text-align: center; }
.annonce .wrap { padding-top: 10px; padding-bottom: 10px; }
.annonce a { color: inherit; text-decoration: underline; }

/* ==== Public Safety Report : photos ==== */
.psr-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 26px; }
.psr-photo { all: unset; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--sky-soft); box-shadow: 0 4px 14px rgba(1, 43, 109, .12); }
.psr-photo:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.psr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.psr-photo:hover img { transform: scale(1.06); }

/* ==== Mobile : en-tête, logo et menu ==== */
.brand { min-width: 0; }
.brand > span { min-width: 0; }
@media (max-width: 960px) {
  .hero-grid { text-align: center; gap: 28px; }
  .hero-badge { order: -1; width: min(210px, 56vw); justify-self: center; grid-row: auto; }
  .hero .actions { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .nav { height: 66px; gap: 10px; }
  .nav nav { top: 66px; max-height: calc(100vh - 66px); overflow-y: auto; }
  .brand { gap: 10px; flex: 1; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: .74rem; letter-spacing: .03em; line-height: 1.2; white-space: normal; }
  .burger { flex: none; padding: 7px 12px; }
  .hero { padding: 36px 0 40px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero p.lead { font-size: 1.05rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats div { padding: 18px 16px; }
  .stats b { font-size: 2rem; }
  .article .corps { padding: 18px; }
  .page-head h1 { font-size: clamp(2rem, 10vw, 3rem); }
}

/* ==== Espace membre : images et champs de texte long ==== */
.img-zone { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.img-zone img { width: 160px; height: 100px; object-fit: cover; border-radius: 10px; background: var(--white); }
.img-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.img-liste { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.img-mini { position: relative; width: 110px; height: 80px; border-radius: 10px; overflow: hidden; }
.img-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-mini .a-del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; }
.a-row textarea { flex: 5 1 320px; width: auto; min-width: 0; min-height: 60px; padding: 8px 10px; font-size: .88rem; }
.photo-btn { position: relative; cursor: pointer; white-space: nowrap; }
.a-editor .field { margin: 0 0 10px; }

/* Le sceau de l'accueil garde ses proportions quelle que soit la largeur de l'écran */
.hero-badge { height: auto; aspect-ratio: 1 / 1; object-fit: contain; }

/* Menu compact : sur les écrans moyens (1300 à 1700 px), le menu reste affiché en entier grâce à des libellés resserrés */
@media (min-width: 1301px) and (max-width: 1700px) {
  .nav { gap: 12px; }
  .brand img { width: 46px; height: 46px; }
  .brand b { font-size: .86rem; letter-spacing: .02em; }
  .brand small { display: none; }
  .nav nav { gap: 0; }
  .nav nav a { font-size: .68rem; letter-spacing: .05em; padding-left: 8px; padding-right: 8px; }
  .nav nav a.nav-login { margin-left: 6px; padding: 8px 14px; }
}

/* ==== Public Safety Report : bannière, récapitulatif, anciens rapports ==== */
.psr-banniere { position: relative; aspect-ratio: 16 / 5; min-height: 220px; border-radius: 24px; overflow: hidden; margin-bottom: 22px; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); box-shadow: 0 14px 34px rgba(1, 43, 109, .2); }
.psr-banniere > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.psr-banniere.vide { display: grid; place-items: center; }
.psr-banniere.vide > img.sceau { width: auto; height: 70%; object-fit: contain; opacity: .22; position: absolute; right: 5%; top: 15%; filter: none; }
.psr-banniere::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 29, 75, .88) 0%, rgba(1, 29, 75, .55) 48%, rgba(1, 29, 75, .05) 100%); }
.psr-banniere-texte { position: absolute; left: clamp(20px, 4vw, 48px); bottom: clamp(18px, 3vw, 38px); right: 24px; z-index: 1; color: var(--white); max-width: 760px; }
.psr-banniere-texte .tag { background: var(--amber); color: var(--navy); margin-bottom: 12px; }
.psr-banniere-texte h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.4vw, 2.8rem); line-height: 1.05; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.psr-banniere-texte p { margin: 0; font-size: .9rem; color: var(--sky); }
.psr-dernier .psr-resume { margin-top: 22px; }
.psr-archives { padding-top: 64px; }
.psr-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.psr-carte { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-align: left; font: inherit; color: inherit; cursor: pointer; box-shadow: 0 4px 16px rgba(1, 43, 109, .07); transition: transform .18s, box-shadow .18s, border-color .18s; padding: 0; }
.psr-carte:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: 0 18px 38px rgba(1, 43, 109, .16); }
.psr-vignette { aspect-ratio: 16 / 6; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); overflow: hidden; display: grid; place-items: center; }
.psr-vignette > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.psr-vignette > img.sceau { width: auto; height: 80%; object-fit: contain; opacity: .85; }
.psr-carte-corps { display: flex; flex-direction: column; gap: 9px; padding: 18px 20px 20px; flex: 1; }
.psr-carte time { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.psr-carte h3 { margin: 0; font-size: 1.1rem; line-height: 1.15; }
.psr-apercu { display: flex; gap: 14px; flex-wrap: wrap; font-size: .95rem; }
.psr-apercu b { font-weight: 800; }
.psr-carte .more { margin-top: auto; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }
.psr-carte:hover .more { color: var(--amber-dark); }
/* Rapport ouvert en fenêtre */
.lecteur-psr { max-width: 1100px; width: calc(100% - 32px); padding: 22px; }
.lecteur-psr .close { position: absolute; top: 30px; right: 30px; z-index: 3; float: none; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--navy); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); font-size: 1.6rem; }
.lecteur-psr .body { max-height: 86vh; overflow-y: auto; }
.lecteur-psr .psr-banniere { border-radius: 16px; box-shadow: none; }
/* Bandeau de l'accueil : la bannière du dernier rapport sert de fond */
.psr-bandeau.avec-image { background: linear-gradient(135deg, rgba(1, 43, 109, .93), rgba(1, 29, 75, .8)), var(--fond) center / cover; }
@media (max-width: 640px) {
  .psr-banniere { aspect-ratio: 4 / 3; border-radius: 18px; }
  .psr-banniere-texte h2 { font-size: 1.4rem; }
  .lecteur-psr { padding: 12px; }
  .lecteur-psr .close { top: 20px; right: 20px; }
}

/* ==== Espace membre : bannière ==== */
.img-conseil { margin: 0 0 10px; padding: 10px 14px; background: var(--white); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; font-size: .84rem; color: var(--muted); }
.img-conseil b { color: var(--navy); }
.banniere-zone { position: relative; aspect-ratio: 16 / 5; max-width: 640px; margin-bottom: 10px; border: 2px dashed #9fb6d8; border-radius: 12px; background: var(--white); overflow: hidden; display: grid; place-items: center; font-size: .8rem; color: var(--muted); }
.banniere-zone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-exemples { margin-top: 6px; padding-top: 6px; border-top: 2px solid var(--sky); }
@media (max-width: 640px) { .psr-banniere::after { background: linear-gradient(0deg, rgba(1, 29, 75, .92) 0%, rgba(1, 29, 75, .5) 55%, rgba(1, 29, 75, .05) 100%); } }

/* ==== Public Safety Report : chiffres qui s'adaptent à leur longueur, commentaire en encart ==== */
.psr-tuile { container-type: inline-size; }
.psr-tuile b { width: 100%; text-align: center; white-space: nowrap; font-size: clamp(1rem, calc(100cqw / (var(--n, 3) * .68)), 2.9rem); }
.psr-bandeau .psr-tuile b { font-size: clamp(1rem, calc(100cqw / (var(--n, 3) * .68)), 2.2rem); }
.psr-grille.petite .psr-tuile b { font-size: clamp(1rem, calc(100cqw / (var(--n, 3) * .68)), 1.6rem); }

.psr-corps { container-type: inline-size; }
.psr-corps-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 20px; align-items: stretch; }
.psr-corps-grille.sans-resume { grid-template-columns: minmax(0, 1fr); }
.psr-corps-grille .psr-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: stretch; }
.psr-corps-grille.sans-resume .psr-grille { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.psr-corps-grille .psr-resume {
  margin: 0; max-width: none; border: 0; border-radius: 18px; padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: var(--white); box-shadow: 0 10px 26px rgba(1, 29, 75, .2);
  border-top: 5px solid var(--gold);
}
.psr-resume-titre { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); }
.psr-corps-grille .psr-resume p { margin: 0; color: #e6efff; font-size: 1.02rem; line-height: 1.7; }
@container (max-width: 880px) {
  .psr-corps-grille { grid-template-columns: minmax(0, 1fr); }
  .psr-corps-grille .psr-grille { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
}
@media (max-width: 640px) { .psr-corps-grille .psr-resume { padding: 22px; } }
/* Commentaire : texte centré verticalement dans l'encart, guillemet décoratif */
.psr-corps-grille .psr-resume { justify-content: center; position: relative; }
.psr-corps-grille .psr-resume::before { content: "\201C"; font-family: Georgia, serif; font-size: 5rem; line-height: .6; color: var(--gold); opacity: .9; height: 34px; }
