/* OPMS-CMSP — charte de l'Ordre : bleu, blanc, rouge et vert.
   Les couleurs principales sont redéfinies depuis l'administration (Apparence). */
:root {
  --primary: #0b4ea2;
  --dark: #082c5c;
  --accent: #ce1126;
  --yellow: #fcd116;
  --sky: #2c9fd9;
  --ink: #0e1d33;
  --text: #2a3446;
  --muted: #5b6a80;
  --paper: #ffffff;
  --wash: #f3f6fb;
  --line: #dbe3ee;
  --ok-bg: #e4f4ea; --ok: #00592c;
  --err-bg: #fdecee; --err: #a50e1f;
  --warn-bg: #fff6d6; --warn: #7a5b00;
  --green: #007a3d; --green-dark: #00592c; --red: var(--accent); --sky-wash: #eaf5fb;
  --radius: 8px;
  --head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --sans: "Open Sans", "Segoe UI", Arial, sans-serif;
  --serif: var(--head);
  --shadow: 0 10px 30px rgba(8, 44, 92, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p, li { max-width: 75ch; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; width: auto; height: auto; clip: auto; background: #fff; padding: .5rem 1rem; z-index: 100; }
.ribbon { height: 4px; background: linear-gradient(90deg, var(--green) 0 33.33%, var(--accent) 33.33% 66.66%, var(--primary) 66.66%); }
.icon { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

/* Barre d'informations : coordonnées en « pastilles », numéros cliquables */
.topbar { background: var(--dark); color: #d6e2f3; font-size: .84rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.25rem; min-height: 44px; flex-wrap: wrap; padding-block: .35rem; }
.tb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; }
.tb-item { display: flex; align-items: center; gap: .55rem; }
.tb-item > a { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; }
.tb-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; flex: none; }
.tb-ic .icon { width: 13px; height: 13px; }
.tb-txt { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .1rem .6rem; }
.tb-txt a, .tb-txt span { color: #eef3fb; text-decoration: none; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.tb-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; }
.topbar a:hover, .topbar a:hover .tb-txt { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; gap: .35rem; }
.socials a { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.socials a:hover { background: var(--accent); }
@media (max-width: 860px) {
  .topbar .wrap { justify-content: center; }
  .tb-list { justify-content: center; gap: .4rem 1rem; }
  .tb-item:not(.tb-phones) .tb-txt { display: none; }
  .tb-more { display: none !important; }
}

/* En-tête */
.site-head { background: var(--paper); position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.site-head .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; min-width: 0; }
.brand img { width: 62px; height: 62px; object-fit: contain; flex: none; }
.brand b { font-family: var(--head); font-size: 1.3rem; color: var(--dark); display: block; line-height: 1.05; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: .78rem; display: block; line-height: 1.3; max-width: 30ch; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .1rem; }
.nav a { font-family: var(--head); font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink); padding: .55rem .75rem; border-radius: 6px; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .25rem; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .2s; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--primary); }
.nav .cta { background: var(--accent); color: #fff; margin-left: .5rem; padding: .6rem 1.1rem; }
.nav .cta::after { display: none; }
.nav .cta:hover { background: var(--dark); color: #fff; }
.burger { display: none; margin-left: auto; width: 46px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) { .brand small { display: none; } .nav a { padding: .5rem .55rem; font-size: .86rem; } }
@media (max-width: 920px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem; box-shadow: 0 12px 20px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .cta { margin: .8rem 0 0; text-align: center; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--primary); color: #fff; border: 0; border-radius: 6px; padding: .8rem 1.4rem; font-family: var(--head); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--dark); color: #fff; }
.btn.red { background: var(--accent); }
.btn.red:hover { background: #a00d1e; }
.btn.light { background: #fff; color: var(--dark); }
.btn.light:hover { background: var(--yellow); color: var(--dark); }
.btn.outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn.outline:hover { background: #fff; color: var(--dark); }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--wash); color: var(--dark); }
.btn.danger { background: var(--accent); }
.btn.small { padding: .4rem .8rem; font-size: .85rem; }
.btn.wa { background: #25d366; } .btn.wa:hover { background: #128c7e; }
.btn.fb { background: #1877f2; } .btn.fb:hover { background: #0d5bbf; }

/* Accueil : bandeau principal */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 80% 20%, rgba(44,159,217,.25), transparent 60%), linear-gradient(135deg, var(--dark), #0b4ea2 60%, var(--primary)); overflow: hidden; }
/* Photo du siège en fond (réglable dans Apparence) */
.hero { background-color: var(--dark); background-image: linear-gradient(100deg, rgba(8,44,92,.96) 0%, rgba(8,44,92,.88) 40%, rgba(8,44,92,.62) 72%, rgba(11,78,162,.42) 100%), var(--hero-img, linear-gradient(135deg, var(--dark), var(--primary))); background-size: cover; background-position: center 38%; }
.page-hero { background-color: var(--dark); background-image: linear-gradient(110deg, rgba(8,44,92,.95), rgba(11,78,162,.82)), var(--hero-img, linear-gradient(120deg, var(--dark), var(--primary))); background-size: cover; background-position: center 35%; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: .3em; }
.hero .sub { color: var(--yellow); font-family: var(--head); font-weight: 600; margin: 0 0 1rem; }
.hero .lead { color: #dde7f5; font-size: 1.05rem; margin: 0 0 1.5rem; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.council { margin-top: 2rem; display: grid; grid-template-columns: 170px 1fr; gap: 1.25rem; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 1rem; backdrop-filter: blur(4px); }
.council .stage { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.2); }
.council .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.council .slide.on { opacity: 1; }
.council .slide img { width: 100%; height: 100%; object-fit: contain; }
.council .slide .ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--head); font-size: 2.6rem; font-weight: 700; color: #fff; background: linear-gradient(160deg, var(--primary), var(--dark)); }
.council .who small { color: var(--yellow); font-family: var(--head); font-weight: 600; font-size: .78rem; display: block; margin-bottom: .2rem; }
.council .who b { font-family: var(--head); font-size: 1.25rem; display: block; line-height: 1.2; }
.council .who span { color: #cdddf2; font-size: .92rem; }
.council .thumbs { display: flex; gap: .4rem; margin-top: .9rem; flex-wrap: wrap; }
.council .thumbs button { width: 42px; height: 42px; border-radius: 50%; border: 2px solid transparent; padding: 0; overflow: hidden; cursor: pointer; background: rgba(255,255,255,.15); color: #fff; font: 600 .75rem var(--head); }
.council .thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.council .thumbs button.on { border-color: var(--yellow); }
@media (max-width: 520px) { .council { grid-template-columns: 120px 1fr; } }

.verify { position: relative; background: #fff; color: var(--text); border-radius: 16px; padding: 2rem 1.75rem; box-shadow: 0 25px 60px rgba(0,0,0,.3); overflow: hidden; isolation: isolate; }
.verify .seal { position: absolute; z-index: -1; width: 330px; right: -70px; bottom: -80px; opacity: .2; animation: seal 40s linear infinite; }
.verify::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--green) 0 33.33%, var(--accent) 33.33% 66.66%, var(--primary) 66.66%); }
.verify h2 { font-size: 1.45rem; margin-bottom: .4rem; }
.verify p { color: var(--muted); font-size: .95rem; margin: 0 0 1.1rem; }
.verify .logo-mark { width: 74px; margin-bottom: 1rem; animation: float 5s ease-in-out infinite; }
@keyframes seal { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-6px); } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Chiffres */
.stats { background: #fff; position: relative; z-index: 2; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); transform: translateY(-36px); background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.stats div { padding: 1.4rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--head); font-size: 2.1rem; color: var(--primary); line-height: 1.1; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .stats .wrap { grid-template-columns: 1fr 1fr; } .stats div:nth-child(2) { border-right: 0; } .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Sections */
.section { padding: 4rem 0; }
.section.tight { padding-top: 1rem; }
.section.alt { background: var(--wash); }
.section-head { text-align: center; margin: 0 auto 2.5rem; max-width: 720px; }
.section-head h2 { position: relative; padding-bottom: .8rem; }
.section-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 70px; height: 4px; transform: translateX(-50%); border-radius: 2px; background: linear-gradient(90deg, var(--green) 0 33%, var(--accent) 33% 66%, var(--primary) 66%); }
.section-head p { color: var(--muted); margin: 0 auto; }
.more { text-align: center; margin-top: 2rem; }

.profs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.prof { --c1: var(--primary); --c2: var(--dark); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(8,44,92,.12); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; border-bottom: 5px solid var(--c1); }
.prof-2 { --c1: var(--accent); --c2: #6e0b1a; }
.prof-3 { --c1: var(--green); --c2: #00451f; }
.prof:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(8,44,92,.2); }
.prof .art { aspect-ratio: 16 / 10; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 55%), linear-gradient(150deg, var(--c1), var(--c2)); display: grid; place-items: end center; overflow: hidden; }
.prof .art svg { width: 78%; height: auto; display: block; }
.prof .art img { width: 100%; height: 100%; object-fit: contain; }
.prof .txt { padding: 1.4rem 1.5rem 1.6rem; }
.prof h3 { color: var(--c1); margin: 0 0 .5rem; }
.prof p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .profs { grid-template-columns: 1fr; } }

/* Actualités */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.75rem; }
.news-item { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.06); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.news-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-item .thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--wash), #e3eaf5); position: relative; display: block; overflow: hidden; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.news-item:hover .thumb img { transform: scale(1.05); }
.news-item .thumb .noimg { position: absolute; inset: 0; display: grid; place-items: center; }
.news-item .thumb .noimg img { width: 70px; height: auto; opacity: .5; }
.news-item .date { position: absolute; left: 1rem; bottom: 1rem; background: var(--primary); color: #fff; font: 600 .78rem var(--head); padding: .3rem .6rem; border-radius: 4px; }
.news-item .in { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.news-item h3 { margin: 0; font-size: 1.08rem; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--primary); }
.news-item p { margin: 0; color: var(--muted); font-size: .93rem; }
.news-item .read { margin-top: auto; font: 600 .88rem var(--head); text-decoration: none; }
.tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: var(--sky-wash); color: var(--dark); align-self: flex-start; }
.tag.national { background: var(--ok-bg); color: var(--ok); }
.meta { font-size: .85rem; color: var(--muted); }

/* Espaces régionaux */
.spaces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.space { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 130px; padding: 1.1rem; border-radius: 12px; color: #fff; text-decoration: none; background: linear-gradient(160deg, var(--primary), var(--dark)); overflow: hidden; transition: transform .25s; }
.space:nth-child(3n+2) { background: linear-gradient(160deg, #007a3d, var(--dark)); }
.space:nth-child(3n) { background: linear-gradient(160deg, #a0182b, #4b0d16); }
.space::after { content: ""; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.08); }
.space:hover { transform: translateY(-4px); color: #fff; }
.space b { font-family: var(--head); font-size: 1.15rem; }
.space span { font-size: .85rem; opacity: .85; }
@media (max-width: 980px) { .spaces { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .spaces { grid-template-columns: repeat(2, 1fr); } }

/* Réseaux sociaux */
.social-block { display: grid; grid-template-columns: 1fr minmax(300px, 500px); gap: 2.5rem; align-items: center; }
.social-block .btns { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.fb-frame { width: 100%; height: 520px; border: 0; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
@media (max-width: 860px) { .social-block { grid-template-columns: 1fr; } }

/* Bande des figures de l'Ordre */
.figures { background: var(--dark); color: #fff; padding: 4rem 0 4.5rem; overflow: hidden; }
.figures .section-head h2 { color: #fff; }
.figures .section-head p { color: #b9cbe8; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee .track { display: flex; gap: 1.25rem; width: max-content; animation: scroll var(--dur, 40s) linear infinite; }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - .625rem)); } }
.figure { width: 300px; flex: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 1.2rem; text-align: left; color: #fff; cursor: pointer; font: inherit; transition: background .2s, border-color .2s; }
.figure:hover { background: rgba(255,255,255,.12); border-color: var(--yellow); }
.figure .top { display: flex; gap: .9rem; align-items: center; margin-bottom: .8rem; }
.figure .pic { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid var(--yellow); display: grid; place-items: center; font: 700 1.2rem var(--head); background: var(--primary); }
.figure .pic img { width: 100%; height: 100%; object-fit: contain; }
.figure b { font-family: var(--head); display: block; line-height: 1.2; }
.figure small { color: var(--yellow); font-size: .8rem; }
.figure p { margin: 0; font-size: .88rem; color: #cdddf2; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Fenêtre de détail */
dialog.modal { border: 0; border-radius: 16px; padding: 0; width: min(620px, 92vw); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog.modal::backdrop { background: rgba(6, 22, 48, .65); }
dialog.modal .in { padding: 1.75rem; }
dialog.modal .close { position: absolute; right: .8rem; top: .6rem; border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); }
dialog.modal .top { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
dialog.modal .pic { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; font: 700 1.6rem var(--head); color: #fff; background: var(--primary); }
dialog.modal .pic img { width: 100%; height: 100%; object-fit: contain; }

/* Pages intérieures */
.page-hero { color: #fff; padding: 3rem 0 2.6rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; background: url(logo.jpg) center / contain no-repeat; opacity: .12; border-radius: 50%; }
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero p { margin: 0; color: #d5e1f2; }
.crumbs { font-size: .85rem; margin-bottom: .6rem; color: #c3d3ec; }
.crumbs a { color: #fff; }
.prose { padding: 3rem 0 4rem; }
.prose ul { padding-left: 1.2rem; }
.tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); margin-bottom: 2rem; overflow-x: auto; }
.tabs a { font: 600 .95rem var(--head); text-decoration: none; color: var(--muted); padding: .8rem 1.1rem; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--primary); border-color: var(--primary); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.aside-card { background: var(--wash); border-radius: 12px; padding: 1.5rem; position: sticky; top: 110px; }
.aside-card h3 { margin-top: 0; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .aside-card { position: static; } }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.person { text-align: center; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.07); transition: transform .25s; }
.person:hover { transform: translateY(-4px); }
.person .pic { aspect-ratio: 1; background: linear-gradient(160deg, var(--primary), var(--dark)); display: grid; place-items: center; color: #fff; font: 700 2.4rem var(--head); }
.person .pic img { width: 100%; height: 100%; object-fit: contain; }
.person .in { padding: 1rem 1rem 1.25rem; }
.person b { font-family: var(--head); color: var(--ink); display: block; }
.person small { color: var(--primary); font-weight: 600; display: block; }
.person span { color: var(--muted); font-size: .88rem; }

.timeline { --yw: 128px; list-style: none; padding: 0; margin: 2rem 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: calc(var(--yw) + 14px); top: .5rem; bottom: .5rem; width: 3px; border-radius: 2px; background: linear-gradient(var(--green), var(--accent), var(--primary)); }
.timeline li { position: relative; display: grid; grid-template-columns: var(--yw) 1fr; column-gap: 40px; padding-bottom: 1.4rem; max-width: none; align-items: start; }
.timeline li::before { content: ""; position: absolute; left: calc(var(--yw) + 8px); top: .55rem; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-sizing: border-box; z-index: 1; }
.timeline b { font-family: var(--head); font-size: 1.05rem; line-height: 1.3; color: var(--primary); text-align: right; padding-top: .35rem; white-space: nowrap; }
.timeline span { background: var(--wash); border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; padding: .75rem 1rem; }
.timeline li:nth-child(3n+2) span { border-left-color: var(--accent); }
.timeline li:nth-child(3n) span { border-left-color: var(--green); }
@media (max-width: 640px) { .timeline { --yw: 84px; } .timeline li { column-gap: 30px; } .timeline b { font-size: .8rem; letter-spacing: -.02em; } }

.contact-box { background: var(--wash); border-left: 4px solid var(--primary); border-radius: 0 10px 10px 0; padding: 1rem 1.25rem; margin: 1rem 0 2rem; }
.contact-box p { margin: .25rem 0; }
.doc-group { margin-bottom: 2.5rem; }
.doc-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; transition: border-color .2s; }
.doc-row:hover { border-color: var(--primary); }
.doc-row .t { display: flex; align-items: center; gap: .8rem; }
.doc-row .t svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .7rem; }
details.faq summary { cursor: pointer; font: 600 1rem var(--head); color: var(--ink); padding: 1rem 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq[open] { border-color: var(--primary); }
details.faq > div { padding: 0 1.2rem 1rem; }
.article { padding: 2.5rem 0 4rem; }
.article .cover { border-radius: 12px; margin: 1rem auto 1.5rem; display: block; max-width: 100%; width: auto; height: auto; max-height: 75vh; }
.article .body { font-size: 1.05rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; margin: 1.5rem 0; }
.gallery img { border-radius: 8px; aspect-ratio: 4/3; object-fit: contain; width: 100%; }

/* Résultats de vérification */
.result { display: grid; grid-template-columns: 110px 1fr; gap: 1.25rem; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--primary); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.result.bad { border-left-color: var(--accent); }
.result .pic { width: 110px; height: 130px; border-radius: 8px; overflow: hidden; background: var(--wash); display: grid; place-items: center; font: 700 1.6rem var(--head); color: var(--primary); }
.result .pic img { width: 100%; height: 100%; object-fit: contain; }
.result dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .5rem 0 0; font-size: .95rem; }
.result dt { color: var(--muted); }
.result dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .result { grid-template-columns: 1fr; } }
.badge-ok { display: inline-flex; align-items: center; gap: .35rem; background: var(--ok-bg); color: var(--ok); font: 600 .82rem var(--head); padding: .25rem .7rem; border-radius: 999px; }
.badge-bad { background: var(--err-bg); color: var(--err); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }

/* Boutons flottants */
.floating { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; gap: .6rem; }
.floating a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .2s; }
.floating a:hover { transform: scale(1.08); color: #fff; }
.floating .wa { background: #25d366; }
.floating .fb { background: #1877f2; }
.floating svg { width: 28px; height: 28px; fill: #fff; }

/* Pied de page */
.site-foot { background: #071f42; color: #b9cae6; padding: 3.5rem 0 0; }
.site-foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2.5rem; }
.site-foot h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-foot a { color: #e2e9f5; text-decoration: none; }
.site-foot a:hover { color: var(--yellow); }
.site-foot p, .site-foot li { margin: .3rem 0; font-size: .92rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot .logo { width: 72px; background: #fff; border-radius: 50%; padding: 4px; margin-bottom: 1rem; }
.site-foot .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.1rem 0; font-size: .84rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 860px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.seen { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Tableaux, notes */
.note { padding: .85rem 1.1rem; border-radius: 8px; margin: 0 0 1rem; }
.note.ok { background: var(--ok-bg); color: var(--ok); }
.note.err { background: var(--err-bg); color: var(--err); }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--wash); font-weight: 600; color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.status { font-size: .8rem; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; background: var(--wash); border: 1px solid var(--line); }
.status.actif, .status.published, .status.remise, .status.imprimee, .status.delivree { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.status.suspendu, .status.pending, .status.preparee, .status.completee { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.status.radie, .status.rejected, .status.annulee { background: var(--err-bg); color: var(--err); border-color: transparent; }
.pager { display: flex; gap: .4rem; margin-top: 1.5rem; flex-wrap: wrap; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Formulaires */
.form { display: grid; gap: .9rem; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: .8rem; margin: 0; }
.form legend { font-weight: 600; padding: 0 .3rem; color: var(--ink); }
label { display: grid; gap: .3rem; font-size: .92rem; font-weight: 500; color: var(--text); }
input, select, textarea { font: inherit; color: var(--text); background: var(--paper); padding: .62rem .75rem; border: 1px solid #b9c5d8; border-radius: 8px; width: 100%; }
@media (prefers-color-scheme: dark) { input, select, textarea { border-color: #3b4a63; } }
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky); border-color: transparent; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; }
.hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.check input { width: auto; }
.search-row { display: flex; gap: .5rem; }
.search-row input { flex: 1; }
.note { padding: .75rem 1rem; border-radius: 8px; margin: 0 0 1rem; }
.note.ok { background: var(--ok-bg); color: var(--ok); }
.note.err { background: var(--err-bg); color: var(--err); }
.note.warn { background: var(--warn-bg); color: var(--warn); }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--wash); font-weight: 600; color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.status { font-size: .8rem; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; background: var(--wash); border: 1px solid var(--line); }
.status.actif, .status.published, .status.remise, .status.imprimee { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.status.suspendu, .status.pending, .status.preparee { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.status.radie, .status.rejected, .status.annulee { background: var(--err-bg); color: var(--err); border-color: transparent; }
.pager { display: flex; gap: .4rem; margin-top: 1rem; flex-wrap: wrap; }


/* ===== Administration ===== */
.admin-auth { min-height: 100vh; display: grid; place-items: center; background: var(--wash); padding: 1.5rem; }
.auth-card { width: min(460px, 100%); background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--green); border-radius: var(--radius); padding: 2rem; }
.auth-card img { border-radius: 50%; display: block; margin-bottom: 1rem; }
.auth-card h1 { font-size: 1.6rem; }
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin aside { background: var(--ink); color: #d5e1f2; padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
@media (prefers-color-scheme: dark) { .admin aside { background: #061d3e; } }
.admin aside .who { border-bottom: 1px solid #2f4a75; padding-bottom: 1rem; margin-bottom: 1rem; }
.admin aside .who b { color: #fff; display: block; }
.admin aside .who span { font-size: .85rem; color: #a8bde0; }
.admin aside nav a { display: flex; justify-content: space-between; align-items: center; color: #d5e1f2; text-decoration: none; padding: .55rem .7rem; border-radius: 6px; font-size: .95rem; }
.admin aside nav a:hover, .admin aside nav a[aria-current] { background: #1f3a66; color: #fff; }
.admin aside nav .group { font-size: .78rem; color: #8fa7cf; margin: 1rem .7rem .3rem; }
.badge { background: var(--red); color: #fff; font-size: .75rem; border-radius: 999px; padding: 0 .45rem; min-width: 1.3rem; text-align: center; }
.admin main { padding: 1.75rem clamp(1rem, 3vw, 2.5rem) 3rem; min-width: 0; }
.admin main h1 { font-size: 1.8rem; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-top h1 { margin: 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.panel h2 { font-size: 1.2rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpis a, .kpis > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: var(--text); background: var(--paper); }
.kpis a:hover { border-color: var(--green); }
.kpis b { font-family: var(--serif); font-size: 2rem; color: var(--ink); display: block; line-height: 1.1; }
.kpis span { font-size: .88rem; color: var(--muted); }
.admin-burger { display: none; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin aside { position: static; height: auto; display: none; }
  .admin aside.open { display: block; }
  .admin-burger { display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; padding: .7rem 1rem; }
  .admin-burger button { background: none; color: #fff; border: 1px solid #3d5a85; border-radius: 6px; padding: .35rem .7rem; font: inherit; }
}
.inbox-item { display: block; padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.inbox-item:hover { background: var(--wash); }
.inbox-item.unread b { color: var(--ink); }
.inbox-item.unread::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: .5rem; }
.thread-msg { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.thread-msg.mine { border-left: 4px solid var(--green); }
.region-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .4rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Compteurs des inscrits */
.counters { padding: 3.5rem 0; background: #fff; }
.hero + .counters { padding-top: 3rem; }
.counters-head { text-align: center; margin-bottom: 2rem; }
.counters-head h2 { margin-bottom: .3rem; }
.counters-head p { color: var(--muted); margin: 0 auto; }
.counter-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.counter { position: relative; background: #fff; border-radius: 14px; padding: 1.6rem 1.4rem 1.4rem; box-shadow: var(--shadow); border-top: 5px solid var(--primary); overflow: hidden; display: flex; flex-direction: column; gap: .2rem; }
.counter.c-total { background: linear-gradient(150deg, var(--dark), var(--primary)); color: #fff; border-top-color: var(--yellow); }
.counter.c-inf { border-top-color: var(--primary); }
.counter.c-sf { border-top-color: var(--accent); }
.counter.c-tms { border-top-color: var(--sky); }
.counter .ic { width: 38px; height: 38px; fill: currentColor; color: var(--primary); margin-bottom: .4rem; }
.counter.c-sf .ic { color: var(--accent); } .counter.c-tms .ic { color: var(--sky); } .counter.c-total .ic { color: var(--yellow); }
.counter b { font-family: var(--head); font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.counter.c-total b { color: #fff; }
.counter > span { font-weight: 600; color: var(--muted); font-size: .95rem; }
.counter.c-total > span { color: #d5e1f2; }
.counter .bar { display: block; height: 6px; border-radius: 3px; background: var(--wash); margin-top: .9rem; position: relative; overflow: hidden; }
.counter .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 3px; background: currentColor; color: var(--primary); }
.counter.c-sf .bar::after { background: var(--accent); } .counter.c-tms .bar::after { background: var(--sky); }
.counter .pct { font-size: .8rem; color: var(--muted); font-weight: 400; }
@media (max-width: 860px) { .counter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .counter { padding: 1.2rem 1rem; } }
.fb-card { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; background: #fff; border-radius: 14px; padding: 2.2rem 1.5rem; box-shadow: var(--shadow); border-top: 5px solid #1877f2; }
.fb-card img { width: 96px; height: 96px; object-fit: contain; }
.fb-card b { font-family: var(--head); font-size: 1.2rem; color: var(--ink); }
.fb-card span { color: var(--muted); margin-bottom: .8rem; }

/* ===== V5 : espaces régionaux complets ===== */
.region-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 1.5rem; margin-top: -2.2rem; position: relative; z-index: 3; margin-bottom: 2.5rem; }
.rh-people, .rh-contact { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; box-shadow: var(--shadow); }
.rh-president { display: flex; gap: 1.1rem; align-items: center; }
.rh-president .pic { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; flex: none; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--green); background: linear-gradient(160deg, var(--primary), var(--dark)); display: grid; place-items: center; color: #fff; font: 700 1.8rem var(--head); }
.rh-president .pic img { width: 100%; height: 100%; object-fit: contain; }
.rh-president small { display: block; color: var(--green); font: 600 .8rem var(--head); }
.rh-president b { display: block; font: 700 1.3rem/1.25 var(--head); color: var(--ink); }
.rh-president span { color: var(--muted); font-size: .92rem; }
.rh-team { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.rh-team li { border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: 8px; padding: .55rem .75rem; display: flex; flex-direction: column; }
.rh-team small { color: var(--muted); font-size: .78rem; }
.rh-team b { font-family: var(--head); font-size: .95rem; color: var(--ink); }
.rh-team a { font-size: .88rem; font-weight: 600; text-decoration: none; }
.rh-office { margin-top: 1.25rem; display: block; max-width: 100%; height: auto; max-height: 70vh; border-radius: 10px; margin-inline: auto; }
.rh-contact h2 { font-size: 1.25rem; margin: 0 0 .9rem; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .65rem; }
.contact-lines li { display: flex; gap: .7rem; align-items: flex-start; }
.contact-lines .icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--wash); color: var(--primary); flex: none; }
.contact-lines a { font-weight: 600; text-decoration: none; padding-top: .2rem; }
.contact-lines span { padding-top: .2rem; }
.rh-contact .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.rh-contact .actions .btn { padding: .65rem 1rem; }
.btn.wa { background: #25d366; } .btn.wa:hover { background: #128c7e; }
.map-box { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--wash); aspect-ratio: 16 / 7; min-height: 260px; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.rh-map { grid-column: 1 / -1; }
.photo-row { align-items: flex-start; }
.photo-field { display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.photo-field img { width: 120px; height: 120px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.form h3 { margin: 1.5rem 0 .25rem; font-size: 1.05rem; color: var(--primary); }
.space .ph { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; transition: opacity .25s; }
.space:hover .ph { opacity: .5; }
.space b, .space span { position: relative; }
@media (max-width: 900px) { .region-head { grid-template-columns: 1fr; margin-top: -1.2rem; } .map-box { aspect-ratio: 4 / 3; } }

/* Siège national (Contact) */
.siege-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: stretch; margin: 1.5rem 0 2.5rem; }
.siege-card img { display: block; max-width: 100%; width: auto; height: auto; max-height: 520px; margin: 0 auto; border-radius: 14px; }
@media (max-width: 800px) { .siege-card { grid-template-columns: 1fr; } }

/* Médiathèque */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
.media-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.media-card a.th { display: block; aspect-ratio: 1; background: var(--wash); }
.media-card a.th img { width: 100%; height: 100%; object-fit: contain; }
.media-card .mi { padding: .5rem .6rem; font-size: .78rem; color: var(--muted); display: flex; flex-direction: column; gap: .15rem; }
.media-card .mi b { color: var(--ink); font-size: .82rem; }
.media-card form { padding: 0 .6rem .6rem; }

/* Pagination compacte */
.pager { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 2rem; }
.pager .dots { padding: .4rem .3rem; color: var(--muted); }
.tag.fb { background: #e7f0fd; color: #1877f2; }

/* Assistant d'import de l'annuaire */
.steps-bar { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1.25rem; flex-wrap: wrap; }
.steps-bar li { padding: .45rem .9rem; border-radius: 999px; background: var(--wash); color: var(--muted); font: 600 .85rem var(--head); }
.steps-bar li.on { background: var(--primary); color: #fff; }
.map-table th { vertical-align: bottom; min-width: 170px; background: var(--wash); }
.map-table .col-letter { display: block; font-size: .75rem; color: var(--muted); margin-bottom: .3rem; }
.map-table select { width: 100%; font-size: .85rem; }
.map-table select.guessed { border-color: var(--green); background: #eef8f2; }
.map-table tr.first-line td { background: #fff7d6; font-weight: 600; }
.map-table td { font-size: .85rem; white-space: nowrap; }
.radio-set { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .9rem; margin: 0; flex: 1; }
.radio-set legend { font-weight: 600; padding: 0 .3rem; }
.progress { height: 18px; border-radius: 999px; background: var(--wash); overflow: hidden; border: 1px solid var(--line); margin: 1rem 0; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--primary)); transition: width .4s; }
.map-list { display: grid; gap: .5rem; margin: .75rem 0; }
.map-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: .75rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; background: var(--paper); }
.map-item:nth-child(odd) { background: var(--wash); }
.mi-src { display: flex; flex-direction: column; min-width: 0; }
.mi-src b { font-family: var(--head); color: var(--ink); overflow-wrap: anywhere; }
.mi-src small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-src .col-letter { font-size: .75rem; color: var(--muted); }
.map-item select.guessed { border-color: var(--green); background: #eef8f2; }
@media (max-width: 640px) { .map-item { grid-template-columns: 1fr; } }

/* Bas de l'accueil plus vivant */
.section.alt { background: linear-gradient(180deg, #eef3fb, #f7f9fd); position: relative; }
.section.alt::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--green) 0 33.33%, var(--accent) 33.33% 66.66%, var(--primary) 66.66%); opacity: .85; }
.section-head h2 { color: var(--dark); }
.news-list > * { border-top: 4px solid var(--primary); }
.news-list > *:nth-child(3n+2) { border-top-color: var(--accent); }
.news-list > *:nth-child(3n) { border-top-color: var(--green); }
.space { box-shadow: 0 8px 20px rgba(8,44,92,.18); }
.space b::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.7); margin-bottom: .45rem; }
.social-block { background: linear-gradient(135deg, var(--dark), var(--primary)); color: #fff; border-radius: 18px; padding: 2.2rem; }
.social-block h2, .social-block p { color: #fff; }

/* Résultat de vérification : petite fenêtre */
.v-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; max-width: 680px; }
.v-list button { width: 100%; display: flex; align-items: center; gap: .9rem; text-align: left; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; padding: .7rem .9rem; cursor: pointer; font: inherit; color: var(--text); }
.v-list button:hover { border-color: var(--primary); }
.v-list b { display: block; font-family: var(--head); color: var(--ink); }
.v-list small { color: var(--muted); }
.v-ini { width: 42px; height: 42px; border-radius: 50%; background: var(--wash); color: var(--primary); display: grid; place-items: center; font: 700 .95rem var(--head); flex: none; }
.v-go { margin-left: auto; color: var(--primary); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.v-modal { border: 0; padding: 0; background: transparent; width: min(420px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; }
.v-modal::backdrop { background: rgba(6, 22, 48, .6); }
.v-modal:not([open]) { display: none; }
.vcard { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.vc-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; color: #fff; background: linear-gradient(120deg, var(--dark), var(--primary)); border-bottom: 4px solid; border-image: linear-gradient(90deg, var(--green) 0 33.33%, var(--accent) 33.33% 66.66%, #f7d117 66.66%) 1; }
.vc-head img { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: contain; }
.vc-head b { display: block; font: 700 1rem var(--head); }
.vc-head small { font-size: .74rem; opacity: .85; }
.vc-x { margin-left: auto; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.vc-body { padding: 1.3rem 1.3rem .6rem; text-align: center; }
.vc-photo { width: 110px; height: 130px; margin: 0 auto .8rem; border-radius: 12px; overflow: hidden; background: var(--wash); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--green); display: grid; place-items: center; }
.vc-photo img { width: 100%; height: 100%; object-fit: contain; }
.vc-photo span { font: 700 2rem var(--head); color: var(--primary); }
.vc-body h3 { margin: 0 0 .45rem; font-size: 1.15rem; color: var(--ink); }
.vc-status { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .85rem; border-radius: 999px; font: 700 .85rem var(--head); background: #e4f4ea; color: #00592c; }
.vc-status i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.vc-status.s-suspendu { background: #fff4d6; color: #8a5a00; }
.vc-status.s-radie { background: #fdecee; color: #a0182b; }
.vc-fields { margin: 1rem 0 0; text-align: left; border-top: 1px solid var(--line); }
.vc-fields div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.vc-fields dt { color: var(--muted); font-size: .88rem; }
.vc-fields dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; font-size: .92rem; }
.vc-wa { margin: .3rem 1.3rem 0; padding: .8rem; border-radius: 10px; background: #effaf3; text-align: center; }
.vc-wa p { margin: 0 0 .6rem; font-size: .86rem; color: var(--text); }
.vc-wa .btn { width: 100%; justify-content: center; }
.vc-foot { display: flex; gap: .5rem; padding: 1rem 1.3rem 1.2rem; }
.vc-foot .btn { flex: 1; justify-content: center; }
@media print { body * { visibility: hidden; } .v-modal[open], .v-modal[open] * { visibility: visible; } .v-modal[open] { position: absolute; inset: 0 auto auto 0; } .vc-foot, .vc-wa, .vc-x { display: none; } }
.map-item .fl { font: 600 .95rem var(--head); color: var(--ink); border: 1px dashed transparent; background: transparent; padding: .2rem .3rem; margin-left: -.3rem; border-radius: 6px; }
.map-item .fl:hover, .map-item .fl:focus { border-color: var(--line); background: #fff; }
.map-item .fc.guessed { border-color: var(--green); background: #eef8f2; }
.map-list details { margin: .5rem 0; } .map-list summary { cursor: pointer; color: var(--primary); font-weight: 600; margin: .4rem 0; }
.map-list details .map-item { margin-top: .5rem; }
.vc-none { padding-bottom: 1.2rem; }
.vc-none h3 { color: #a0182b; }
.vc-none p { color: var(--muted); font-size: .92rem; margin: .5rem 0 0; }
.vc-icon { width: 64px; height: 64px; margin: .3rem auto .9rem; border-radius: 50%; background: #fdecee; color: #ce1126; display: grid; place-items: center; font: 700 2rem var(--head); }
.vc-qrrow { display: flex; align-items: center; gap: .8rem; margin-top: .9rem; text-align: left; }
.vc-qr { width: 96px; height: 96px; flex: none; background: #fff; }
.vc-qr img, .vc-qr canvas { width: 96px !important; height: 96px !important; }
.vc-qrrow p { margin: 0; font-size: .74rem; color: var(--muted); }
.vc-auth { background: #e4f4ea; color: #00592c; font-weight: 600; font-size: .85rem; border-radius: 8px; padding: .5rem .7rem; margin: 0 0 .9rem; }

/* Cadres photo : l'image entière est toujours visible (jamais coupée), sur un fond flouté tiré de la même photo */
.fit-bg { position: relative; overflow: hidden; background-color: var(--wash); }
.fit-bg::before { content: ""; position: absolute; inset: -20px; background: var(--ph) center / cover no-repeat; filter: blur(16px) brightness(.9); opacity: .85; }
.fit-bg > img { position: relative; z-index: 1; object-fit: contain !important; }
.prof .art.fit-bg { display: block; }
.prof .art.fit-bg > img { width: 100%; height: 100%; }
/* Vidéos importées de Facebook */
.video-box { position: relative; width: 100%; max-width: 720px; margin: 1rem auto 1.5rem; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.news-item .thumb .play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(206,17,38,.92); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.news-item .thumb .play::after { content: ""; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.fit-bg > :not(img) { z-index: 2; }
