/* L'Octet — Municipales 2032 — feuille de style
   Couleurs reprises du logo de L'Octet. Polices système : aucune requête externe. */

:root {
  --navy: #14366b;
  --navy-2: #1d4a8c;
  --gold: #e8b84a;
  --red: #d33a2c;
  --cream: #fbf9f4;
  --paper: #ffffff;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e4e0d6;
  --v1: #2062b0; /* Liberté */
  --v2: #14366b; /* Égalité */
  --v3: #d33a2c; /* Fraternité */
  --v4: #e86a9a; /* Amour */
  --v5: #178b87; /* Compassion */
  --v6: #3e8e5a; /* Bienveillance */
  --v7: #e8b84a; /* Émulation */
  --v8: #7a4fb0; /* Compétition */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 54, 107, .06), 0 8px 24px rgba(20, 54, 107, .08);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.2em 0 .4em; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- En-tête ---------- */
.topbar { background: var(--paper); position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.35rem; }
.brand-text small { color: var(--muted); font-size: .78rem; }
.menu { display: flex; align-items: center; gap: 8px; }
.lang-switch { margin: 0 0 0 6px; display: flex; align-items: center; gap: 3px; font-size: .74rem; letter-spacing: .04em; color: #b3ad9f; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 2px 3px; border-radius: 4px; opacity: .75; }
.lang-switch a:hover { opacity: 1; color: var(--navy); }
.lang-switch a[aria-current] { color: var(--navy); font-weight: 700; opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 9px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.menu a:hover { background: #f1eee6; color: var(--navy); }
.menu a[aria-current="page"] { background: var(--navy); color: #fff; }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; cursor: pointer; }
.octet-bar { display: grid; grid-template-columns: repeat(8, 1fr); height: 5px; }
.octet-bar i:nth-child(1) { background: var(--v1); } .octet-bar i:nth-child(2) { background: var(--v2); }
.octet-bar i:nth-child(3) { background: var(--v3); } .octet-bar i:nth-child(4) { background: var(--v4); }
.octet-bar i:nth-child(5) { background: var(--v5); } .octet-bar i:nth-child(6) { background: var(--v6); }
.octet-bar i:nth-child(7) { background: var(--v7); } .octet-bar i:nth-child(8) { background: var(--v8); }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow); padding: 12px 16px; }
  .menu.open { display: block; }
  .lang-switch { margin: 10px 0 0 9px; }
  .menu ul { flex-direction: column; }
  .topbar-in { position: relative; }
}

/* ---------- Bandeau d'accueil ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, #0f2a55 60%, #1c3f78 100%); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 56px 0 64px; }
.hero h1 { color: #fff; }
.hero .kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--gold); font-weight: 700; }
.hero .lead { font-size: 1.2rem; color: #dfe7f5; max-width: 36em; }
.hero-photo { position: relative; justify-self: center; }
.hero-photo img { width: min(360px, 80vw); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; border: 6px solid rgba(255,255,255,.12); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero-photo .badge { position: absolute; left: -18px; bottom: 22px; background: var(--gold); color: var(--navy); font-weight: 800; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: .95rem; }
.hero-photo .emb { position: absolute; right: -22px; top: -22px; width: 92px; background: #fff; border-radius: 50%; padding: 4px; box-shadow: var(--shadow); }
@media (max-width: 820px) { .hero-in { grid-template-columns: 1fr; padding: 36px 0 48px; } .hero-photo .badge { left: 8px; } .hero-photo .emb { right: 4px; } }

.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #f2c964; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-small { padding: 6px 12px; font-size: .88rem; }
.btn-danger { background: #fff; color: var(--red); border-color: var(--red); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--red); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Les huit valeurs */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.value { background: var(--paper); border-radius: var(--radius); padding: 18px; border-top: 6px solid var(--c); box-shadow: var(--shadow); }
.value .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; font-size: .9rem; }
.value h3 { margin: .5em 0 .3em; font-size: 1.15rem; }
.value p { color: var(--muted); font-size: .95rem; margin: 0; }
.value.v1 { --c: var(--v1); } .value.v2 { --c: var(--v2); } .value.v3 { --c: var(--v3); } .value.v4 { --c: var(--v4); }
.value.v5 { --c: var(--v5); } .value.v6 { --c: var(--v6); } .value.v7 { --c: var(--v7); } .value.v8 { --c: var(--v8); }
.value.v7 .n { color: var(--navy); }

/* Programme */
.prog-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.prog-nav a { display: inline-block; padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; color: var(--navy); }
.prog-nav a:hover { border-color: var(--navy); }
.axis { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow); scroll-margin-top: 90px; border-left: 8px solid var(--c, var(--navy)); }
.axis h2 { margin-top: 0; display: flex; gap: 12px; align-items: baseline; }
.axis h2 .num { font-size: 1rem; background: var(--c, var(--navy)); color: #fff; border-radius: 8px; padding: 2px 10px; font-family: var(--sans); }
.axis ul { padding-left: 1.2em; margin: 0; }
.axis li { margin-bottom: .55em; }
.axis .tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--c, var(--navy)); text-transform: uppercase; letter-spacing: .08em; }

.callout { background: #fff7e2; border: 1px solid #f1dc9f; border-radius: var(--radius); padding: 18px 20px; }
.callout-navy { background: var(--navy); color: #fff; border: 0; }
.callout-navy h2, .callout-navy h3 { color: #fff; }
.quote { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--navy); border-left: 6px solid var(--gold); padding: 6px 0 6px 20px; margin: 28px 0; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f3f0e8; color: var(--navy); }
.table-wrap { overflow-x: auto; }

/* Portrait / galerie */
.portrait { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start; }
.portrait img { border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 820px) { .portrait { grid-template-columns: 1fr; } .portrait img { max-width: 360px; } }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery figcaption { padding: 10px 12px; font-size: .88rem; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--gold); }
.timeline li { padding: 0 0 14px 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--navy); border: 3px solid var(--cream); }
.timeline strong { color: var(--navy); }

/* Formulaires */
form .row { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #cfc9bb; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid rgba(232,184,74,.45); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.check input { margin-top: 5px; }
.counter { display: block; text-align: right; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 620px) { .form-2 { grid-template-columns: 1fr; } }

.flash { width: min(1120px, 100% - 32px); margin: 18px auto 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.flash-ok { background: #e5f3ea; color: #1f5f37; border: 1px solid #b9dcc6; }
.flash-err { background: #fbe7e5; color: #8b2219; border: 1px solid #f0bcb6; }

/* Questions-réponses */
.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow); }
.qa summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy); list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "＋"; color: var(--gold); margin-right: 10px; }
.qa[open] summary::before { content: "－"; }
.qa .meta { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.qa .answer { padding: 0 20px 18px 20px; border-top: 1px dashed var(--line); padding-top: 14px; }
.qa .answer strong { color: var(--red); }

/* Forum */
.forum-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.forum-cats a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; color: var(--navy); }
.forum-cats a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.topics { list-style: none; margin: 0; padding: 0; }
.topic { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.topic a { font-weight: 700; text-decoration: none; color: var(--navy); font-size: 1.05rem; }
.topic a:hover { color: var(--red); }
.topic .meta { color: var(--muted); font-size: .85rem; }
.topic .count { text-align: center; color: var(--muted); font-size: .85rem; min-width: 70px; }
.topic .count b { display: block; color: var(--navy); font-size: 1.2rem; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f1eee6; color: var(--navy); vertical-align: middle; margin-right: 6px; }
.pill-gold { background: var(--gold); }
.pill-red { background: var(--red); color: #fff; }
.post { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.post.official { border: 2px solid var(--gold); background: #fffbef; }
.post header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.post header strong { color: var(--navy); font-size: 1rem; }
.post .report { background: none; border: 0; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; padding: 0; }
.empty { color: var(--muted); font-style: italic; }

/* Administration */
.admin-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.admin-item.hidden-item { opacity: .6; background: #f6f3ec; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-tabs a { padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.admin-tabs a.on { background: var(--navy); color: #fff; }
.inline { display: inline; }

/* Pied de page */
.footer { background: var(--navy); color: #d9e2f2; margin-top: 56px; }
.footer-in { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 28px; padding: 40px 0 20px; }
.footer-in img { background: #fff; border-radius: 50%; padding: 3px; margin-bottom: 10px; }
.footer a { color: #fff; }
.footer .values { color: var(--gold); font-weight: 600; }
.footer .slogan { font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.copy { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0 22px; font-size: .85rem; color: #a9b8d4; margin-bottom: 0; }
@media (max-width: 820px) { .footer-in { grid-template-columns: 1fr; } }

.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s; }
.card-link:hover { transform: translateY(-2px); color: inherit; }
.center-grid { align-items: center; }
.feature-img { border-radius: 20px; box-shadow: var(--shadow); max-height: 520px; margin: auto; }
.stack-card { margin-bottom: 12px; }
.qa-line { margin: .5em 0 0; }
.section-gap { margin: 24px 0; }
.section-gap-s { margin-top: 16px; }
.axis.c1 { --c: var(--v1); } .axis.c2 { --c: var(--v2); } .axis.c3 { --c: var(--v3); } .axis.c4 { --c: var(--v4); }
.axis.c5 { --c: var(--v5); } .axis.c6 { --c: var(--v6); } .axis.c7 { --c: #c99a2c; } .axis.c8 { --c: var(--v8); }
.value-block { background: #fff; border: 1px solid var(--line); border-left: 8px solid var(--c); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.value-block h2 { margin-top: 0; color: var(--navy); }
.value-block.v1 { --c: var(--v1); } .value-block.v2 { --c: var(--v2); } .value-block.v3 { --c: var(--v3); } .value-block.v4 { --c: var(--v4); }
.value-block.v5 { --c: var(--v5); } .value-block.v6 { --c: var(--v6); } .value-block.v7 { --c: var(--v7); } .value-block.v8 { --c: var(--v8); }
.value-block .apply { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 12px; }
.value-block .apply div { background: #f8f6f0; border-radius: 10px; padding: 12px 14px; font-size: .93rem; }
.value-block .apply b { display: block; color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
@media (max-width: 820px) { .value-block .apply { grid-template-columns: 1fr; } }
.bits { display: flex; gap: 6px; justify-content: center; margin: 22px 0; flex-wrap: wrap; }
.bits span { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--serif); font-size: 1.4rem; }
.bits span:nth-child(1){background:var(--v1)} .bits span:nth-child(2){background:var(--v2)} .bits span:nth-child(3){background:var(--v3)} .bits span:nth-child(4){background:var(--v4)}
.bits span:nth-child(5){background:var(--v5)} .bits span:nth-child(6){background:var(--v6)} .bits span:nth-child(7){background:var(--v7);color:var(--navy)} .bits span:nth-child(8){background:var(--v8)}
.logo-big { max-width: 360px; margin: 0 auto; border-radius: 16px; box-shadow: var(--shadow); }

.stat b { display: block; font-family: var(--serif); font-size: 1.55rem; color: var(--navy); line-height: 1.15; }
.stat span { color: var(--muted); font-size: .92rem; }
.sources { font-size: .92rem; color: var(--muted); }
/* Annexes */
.cv-card { margin-bottom: 28px; border-left: 8px solid var(--gold); }
.cv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.cv-head { display: flex; gap: 24px; align-items: center; border-bottom: 3px solid var(--gold); padding-bottom: 20px; margin-bottom: 10px; }
.cv-head img { width: 140px; border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; }
.cv-head h1 { margin: 0; }
.cv-role { color: var(--red); font-weight: 700; margin: .2em 0 .5em; }
.cv-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px; }
.cv-grid aside { background: #f8f6f0; border-radius: 12px; padding: 4px 20px 16px; }
.cv-item { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cv-item b { color: var(--navy); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: var(--navy); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .85rem; }
@media (max-width: 820px) { .cv-grid { grid-template-columns: 1fr; } .cv-head { flex-direction: column; align-items: flex-start; } .cv-item { grid-template-columns: 1fr; gap: 2px; } .cv { padding: 20px; } }
.texte h2, .texte h3 { margin-top: 1.4em; }
.texte blockquote { border-left: 5px solid var(--gold); margin: 1em 0; padding: 4px 0 4px 18px; color: var(--navy); font-family: var(--serif); font-size: 1.1rem; }
.texte hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.texte table { margin: 1em 0; }
.texte pre { overflow-x: auto; background: #f3f0e8; padding: 12px; border-radius: 8px; font-size: .8rem; }
.texte code { font-size: .9em; }
@media print {
  .topbar, .footer, .no-print, .skip, .flash { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding: 0; }
  .cv { border: 0; box-shadow: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
}

.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px 14px; margin: 0 0 28px; box-shadow: var(--shadow); }
.toc h2 { margin-top: .8em; font-size: 1.3rem; }
.toc ul { padding-left: 1.1em; margin: 0; }
.toc li { margin: .25em 0; }
.toc > ul > li > a { font-weight: 700; }
.texte h2 { scroll-margin-top: 90px; } .texte h3 { scroll-margin-top: 90px; }

.lead-sub { font-size: 1.15rem; color: var(--muted); }
.texte table { display: block; overflow-x: auto; }
.texte { overflow-wrap: anywhere; }
.toc ul ul { font-size: .92rem; }
