/* 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; }
/* Carte du bureau régional : bande basse, pour ne pas allonger la page */
.rh-map.map-box { aspect-ratio: auto; height: 200px; min-height: 0; }
.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; } .rh-map.map-box { aspect-ratio: auto; height: 180px; } }

/* 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 .2rem; font-size: 1.15rem; color: var(--ink); }
.vc-status { display: flex; width: fit-content; margin: .55rem auto .2rem; align-items: center; gap: .5rem; padding: .5rem 1.25rem .5rem .55rem; border-radius: 999px;
  font: 800 1.05rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, #00a650, #007a3d); box-shadow: 0 6px 16px rgba(0,122,61,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.vc-status i { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.vc-status i::before { content: ""; width: 10px; height: 6px; border-left: 3px solid #007a3d; border-bottom: 3px solid #007a3d; transform: rotate(-45deg) translate(1px, -1px); }
.vc-status.s-suspendu { background: linear-gradient(135deg, #f0a500, #b97800); box-shadow: 0 6px 16px rgba(185,120,0,.35); }
.vc-status.s-suspendu i::before { width: 3px; height: 12px; border: 0; background: #b97800; transform: none; box-shadow: 5px 0 0 #b97800; margin-left: -5px; }
.vc-status.s-radie { background: linear-gradient(135deg, #e0283f, #a0182b); box-shadow: 0 6px 16px rgba(160,24,43,.35); }
.vc-status.s-radie i::before { width: 12px; height: 3px; border: 0; background: #a0182b; transform: rotate(45deg); box-shadow: none; }
.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; }

/* Lettre d'information */
.nl-band { padding-block: 2.5rem; }
.nl-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 480px); gap: 2rem; align-items: center; background: linear-gradient(120deg, var(--accent), #8f0c1b); color: #fff; border-radius: 18px; padding: 2rem; }
.nl-box h2 { color: #fff; margin: 0 0 .5rem; }
.nl-box p { color: rgba(255,255,255,.9); margin: 0; }
.nl-form { display: grid; gap: .6rem; }
.nl-row { display: flex; gap: .5rem; }
.nl-row input { flex: 1; min-width: 0; }
.nl-box .nl-row .btn { background: var(--dark); }
.nl-box .check, .nl-box summary { color: #fff; }
.nl-choices { display: grid; gap: .3rem; font-size: .92rem; }
.nl-choices summary { cursor: pointer; font-weight: 600; }
.nl-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem .8rem; margin-top: .4rem; }
.nl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-msg { margin: 0; font-size: .9rem; }
.nl-box .nl-msg.ok { background: rgba(255,255,255,.95); color: #00592c; }
.aside-card .nl-row { flex-direction: column; }
@media (max-width: 820px) { .nl-box { grid-template-columns: 1fr; padding: 1.5rem; } .nl-row { flex-direction: column; } }

/* Courrier : les 12 mois */
.months-head { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 .6rem; }
.months-head b { font: 700 1.25rem var(--head); color: var(--dark); min-width: 3.5rem; text-align: center; }
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .55rem; margin-bottom: 1.2rem; }
.month { aspect-ratio: 1.25; border: 1px solid var(--line); border-radius: 12px; padding: .6rem; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--text); background: #fff; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.month:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(8,44,92,.12); border-color: var(--primary); }
.month b { font-family: var(--head); color: var(--dark); font-size: .92rem; }
.month span { font-size: .8rem; color: var(--muted); }
.month i { position: absolute; top: .45rem; right: .45rem; font-style: normal; font-size: .68rem; font-weight: 700; background: var(--accent); color: #fff; border-radius: 999px; padding: .1rem .45rem; }
.month.empty { background: var(--wash); opacity: .75; }
.month.on { background: var(--primary); border-color: var(--primary); }
.month.on b, .month.on span { color: #fff; }
.mail-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; justify-content: space-between; margin-bottom: .5rem; }
.inbox-row { display: flex; align-items: center; gap: .6rem; padding-left: .8rem; border-bottom: 1px solid var(--line); }
.inbox-row .inbox-item { flex: 1; border-bottom: 0; }
.inbox-row.unread { background: #f3f7fd; }
.inbox-row.unread .inbox-item b { color: var(--dark); }
.inbox-row .trash { margin-right: .6rem; }
@media (max-width: 700px) { .months { grid-template-columns: repeat(3, minmax(0, 1fr)); } .month { aspect-ratio: auto; min-height: 70px; } }

/* Figures de l'Ordre : grandes photos */
.figure { width: 270px; padding: .9rem; }
.figure .top { flex-direction: column; align-items: stretch; gap: .7rem; }
.figure .pic { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 12px; border-width: 3px; font-size: 2.6rem; }
.figure .pic img { width: 100%; height: 100%; }
.figure b { font-size: 1.02rem; }
@media (max-width: 600px) { .figure { width: 220px; } }
dialog.modal .pic { width: 180px !important; height: 225px !important; border-radius: 14px !important; }

/* ===== Animations (discrètes, désactivées si le visiteur limite les animations) ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes kenburns { from { background-size: 108%; } to { background-size: 100%; } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > div:first-child > * { animation: fadeUp .8s ease both; }
  .hero .wrap > div:first-child > :nth-child(2) { animation-delay: .12s; }
  .hero .wrap > div:first-child > :nth-child(3) { animation-delay: .24s; }
  .hero .wrap > div:first-child > :nth-child(4) { animation-delay: .36s; }
  .hero .verify { animation: fadeUp .9s .3s ease both; }
  .page-hero h1, .page-hero p { animation: fadeUp .7s ease both; }
  .page-hero p { animation-delay: .12s; }
  .btn { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; position: relative; overflow: hidden; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(8,44,92,.18); }
  .btn:active { transform: translateY(0); }
  .btn.red::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-120%) skewX(-20deg); }
  .btn.red:hover::after { animation: shine .8s ease; }
  .news-item { transition: transform .25s ease, box-shadow .25s ease; }
  .news-item:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(8,44,92,.16); }
  .news-item .thumb img { transition: transform .5s ease; }
  .news-item:hover .thumb img { transform: scale(1.04); }
  .space { transition: transform .25s ease, box-shadow .25s ease; }
  .space:hover { transform: translateY(-5px); }
  .reveal:nth-child(2) { transition-delay: .08s; } .reveal:nth-child(3) { transition-delay: .16s; } .reveal:nth-child(4) { transition-delay: .24s; }
  .reveal:nth-child(5) { transition-delay: .32s; } .reveal:nth-child(6) { transition-delay: .4s; }
  .section-head h2::after { content: ""; display: block; width: 0; height: 4px; border-radius: 2px; margin-top: .45rem; background: linear-gradient(90deg, var(--green), var(--accent), var(--primary)); transition: width .9s ease .2s; }
  .section-head.seen h2::after, .section-head h2:hover::after { width: 72px; }
  .float-btns a, .floating a { animation: floatY 3.5s ease-in-out infinite; }
  .float-btns a:nth-child(2), .floating a:nth-child(2) { animation-delay: 1.2s; }
  .prof .art svg { transition: transform .5s ease; }
  .prof:hover .art svg { transform: scale(1.05) translateY(-4px); }
  main, .admin-main { animation: fadeIn .35s ease both; }
}

/* Adresses e-mail multiples */
.label-like { display: grid; gap: .35rem; font-weight: 600; flex: 1; min-width: 240px; }
.label-like > span { font-size: .92rem; }
.email-list { display: grid; gap: .4rem; }
.email-row { display: flex; gap: .4rem; align-items: center; }
.email-row input { flex: 1; min-width: 0; font-weight: 400; }
.label-like [data-email-add] { justify-self: start; margin-top: .1rem; }

/* Dictionnaire des qualités (base APC) */
.qual-table input.qin { width: 100%; min-width: 180px; border: 1px solid transparent; background: transparent; padding: .45rem .55rem; border-radius: 6px; font: inherit; color: var(--ink); }
.qual-table input.qin:hover { border-color: var(--line); background: #fff; }
.qual-table input.qin:focus { border-color: var(--primary); background: #fff; outline: 0; box-shadow: 0 0 0 3px rgba(11,78,162,.15); }
.qual-table tr.q-unk td { background: #fff6d6; }
.qual-table tr.q-saved td { background: #e4f4ea; transition: background .3s; }
.qual-table .q-fixed { color: var(--green); font-weight: 700; }
.qual-table td:first-child, .qual-table th:first-child { width: 2.2rem; text-align: center; }
.bulk-bar { position: sticky; top: .5rem; z-index: 5; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: var(--dark); color: #fff; padding: .6rem .8rem; border-radius: 10px; margin: .6rem 0; box-shadow: 0 8px 20px rgba(8,44,92,.25); }
.bulk-bar input { flex: 1; min-width: 180px; }
.bulk-bar .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }

/* Application installable (PWA) : icône flottante et marche à suivre */
.in-app [data-pwa-install] { display: none !important; }
.app-fab { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--dark); color: #fff; box-shadow: 0 6px 18px rgba(8,44,92,.35); position: relative; padding: 0; }
.app-fab[hidden] { display: none; }
.app-fab svg { width: 24px; height: 24px; }
.app-fab::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--yellow); opacity: .9; animation: fabPulse 2.4s ease-out 3; }
.app-fab:hover, .app-fab:focus-visible { background: var(--primary); }
@keyframes fabPulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.admin-auth .floating { position: fixed; right: 18px; bottom: 18px; z-index: 40; }
.pwa-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(5,20,48,.6); display: grid; place-items: end center; padding: 1rem; }
.pwa-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 1.4rem 1.3rem 1.2rem; max-width: 420px; width: 100%; text-align: center; animation: pwaIn .3s ease-out; }
.pwa-card img { border-radius: 50%; }
.pwa-card h2 { font-size: 1.15rem; margin: .6rem 0 .8rem; }
.pwa-card ol { text-align: left; padding-left: 1.3rem; margin: 0 0 1.1rem; line-height: 1.55; }
.pwa-card .btn { width: 100%; }
@keyframes pwaIn { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
.pwa-share { display: inline-block; width: 1.05em; height: 1.2em; vertical-align: -.2em; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28' fill='none' stroke='%230b4ea2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v15M7 7l5-5 5 5M5 12H3v14h18V12h-2'/%3E%3C/svg%3E"); }
.tb-right { display: flex; align-items: center; flex: none; }

/* Articles en PDF et vidéos */
.pdf-reader { max-width: 900px; margin: 1.5rem auto; }
.pdf-page { display: block; width: 100%; height: auto; background: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgba(8,44,92,.14); margin: 0 auto 1.2rem; }
.pdf-object { width: 100%; height: 85vh; border: 1px solid var(--line); border-radius: 8px; }
.pdf-tools { text-align: center; margin: .5rem 0 1rem; }
.pdf-text { background: var(--sky-wash); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.5rem; }
.pdf-text summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.pdf-text div { margin-top: .8rem; }
.video-title { text-align: center; margin-top: 2rem; }
.video-box.file { aspect-ratio: auto; background: #000; }
.video-box.file video { display: block; width: 100%; max-height: 80vh; }
.news-item .thumb .pdf-badge { position: absolute; z-index: 2; right: .6rem; top: .6rem; background: var(--red, #ce1126); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; letter-spacing: .02em; }
.news-media { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem 1rem; margin: 0 0 1rem; }
.news-media legend { font-weight: 700; padding: 0 .4rem; }
.pdf-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.pdf-thumbs img { width: 82px; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.up-progress { margin: .5rem 0 1rem; }
.up-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }
#up-txt { font-size: .9rem; display: block; margin-top: .3rem; }

/* Page de région : raccourcis, guichet en ligne, actualités de la section */
.region-jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.region-jump .btn { padding: .6rem 1.1rem; font-size: .9rem; }
.g-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.g-service { display: flex; flex-direction: column; gap: .45rem; background: #fff; border-radius: 12px; padding: 1.4rem 1.3rem 1.2rem; text-decoration: none; color: var(--text); border-top: 4px solid var(--primary); box-shadow: 0 4px 18px rgba(8,44,92,.08); transition: transform .2s, box-shadow .2s; }
.g-service:nth-child(4n+2) { border-top-color: var(--green); }
.g-service:nth-child(4n+3) { border-top-color: var(--accent); }
.g-service:nth-child(4n) { border-top-color: var(--yellow); }
.g-service:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.g-service b { font-family: var(--head); color: var(--ink); font-size: 1.08rem; line-height: 1.3; }
.g-service span { color: var(--muted); font-size: .92rem; flex: 1; }
.g-service em { font-style: normal; font: 600 .9rem var(--head); color: var(--primary); margin-top: .4rem; }
.g-track { margin-top: 1.4rem; text-align: center; }
.g-lead { font-size: 1.05rem; }
.region-empty { text-align: center; color: var(--muted); background: var(--wash); border-radius: 12px; padding: 2rem 1rem; }
@media (min-width: 900px) {
  .region-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .region-feed > .news-item:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .region-feed > .news-item:first-child { align-items: stretch; }
  .region-feed > .news-item:first-child .thumb { aspect-ratio: 16 / 10; height: auto; max-height: 420px; }
  .region-feed > .news-item:first-child .thumb img { object-fit: cover; object-position: top; }
  .region-feed > .news-item:first-child .in { padding: 2rem; justify-content: center; }
  .region-feed > .news-item:first-child h3 { font-size: 1.5rem; }
}

/* Guichet : formulaire et suivi du dossier */
.guichet .panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; }
.g-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .g-form .row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.g-years { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem 1rem; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .4rem; }
.g-years legend { font: 600 .95rem var(--head); color: var(--ink); padding: 0 .3rem; }
.g-years .check { margin: 0; background: var(--wash); border-radius: 8px; padding: .4rem .6rem; }
.g-find { max-width: 640px; }
.g-steps { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; counter-reset: none; max-width: none; }
.g-steps li { display: flex; align-items: center; gap: .55rem; background: var(--wash); border-radius: 10px; padding: .75rem .8rem; font: 600 .9rem var(--head); color: var(--muted); max-width: none; }
.g-steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); flex: none; font-size: .82rem; }
.g-steps li.done { color: var(--green-dark); background: var(--ok-bg); }
.g-steps li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.g-steps li.now { color: #fff; background: var(--primary); }
.g-steps li.now span { background: #fff; border-color: #fff; color: var(--primary); }
@media (max-width: 700px) { .g-steps { grid-template-columns: 1fr 1fr; } }
.g-thread { display: grid; gap: 1rem; margin-bottom: 2rem; }
.g-msg { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 10px; padding: 1rem 1.2rem; }
.g-msg.from-region { border-left-color: var(--primary); background: #f6f9fe; }
.g-msg.from-user { border-left-color: var(--green); }
.g-msg header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.g-msg header b { font-family: var(--head); color: var(--ink); }
.g-msg header time { color: var(--muted); font-size: .85rem; }
.g-msg p { margin: .3rem 0; }
.g-status { font-size: .9rem; color: var(--primary); }
.g-files { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .35rem; }
.g-files li { display: flex; align-items: baseline; gap: .2rem .5rem; flex-wrap: wrap; background: var(--wash); border-radius: 8px; padding: .45rem .7rem; font-size: .92rem; }
.g-files li { border-left: 3px solid var(--primary); }
.g-files small { color: var(--muted); }
.g-files .dl { margin-left: auto; font-size: .85rem; }
.g-badge { display: inline-block; font: 600 .78rem var(--head); padding: .2rem .65rem; border-radius: 99px; background: var(--warn-bg); color: var(--warn); margin: 0; }
.g-badge.s-en_cours { background: var(--sky-wash); color: var(--primary); }
.g-badge.s-traite { background: var(--ok-bg); color: var(--ok); }
.g-badge.s-expedie { background: #e9e5f7; color: #4b3a8c; }

/* Guichet côté section */
.g-admin { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
.g-admin .g-side { display: grid; gap: 1rem; position: sticky; top: 1rem; }
@media (max-width: 1000px) { .g-admin { grid-template-columns: 1fr; } .g-admin .g-side { position: static; } }
.g-info h2 { margin: .5rem 0 1rem; font-size: 1.3rem; }
.g-info dl { display: grid; grid-template-columns: 130px 1fr; gap: .45rem 1rem; margin: 0; }
.g-info dt { color: var(--muted); font-size: .9rem; }
.g-info dd { margin: 0; }
.g-status-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.g-status-btns .btn { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.g-status-btns .btn.s-en_attente:hover, .g-status-btns .btn.s-en_attente.current { border-color: #c79a00; background: var(--warn-bg); color: var(--warn); }
.g-status-btns .btn.s-en_cours:hover, .g-status-btns .btn.s-en_cours.current { border-color: var(--primary); background: var(--sky-wash); color: var(--primary); }
.g-status-btns .btn.s-traite:hover, .g-status-btns .btn.s-traite.current { border-color: var(--green); background: var(--ok-bg); color: var(--ok); }
.g-status-btns .btn.s-expedie:hover, .g-status-btns .btn.s-expedie.current { border-color: #4b3a8c; background: #e9e5f7; color: #4b3a8c; }
.g-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.g-tabs a { text-decoration: none; padding: .45rem .9rem; border-radius: 99px; background: var(--wash); color: var(--ink); font: 600 .88rem var(--head); }
.g-tabs a span { color: var(--muted); font-weight: 400; margin-left: .2rem; }
.g-tabs a[aria-current] { background: var(--primary); color: #fff; }
.g-tabs a[aria-current] span { color: #d8e5f7; }
.g-table tr.unread td { background: #fffbea; }
.g-table small { color: var(--muted); }
.g-svc-edit.off { opacity: .65; }
.g-svc-edit { margin-bottom: 1rem; }

/* Guichet : catalogue groupé, compte usager, dossier encadré par étapes */
.g-group { margin-bottom: 2rem; }
.g-group > h3 { font-size: 1.05rem; color: var(--dark); display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; }
.g-group > h3::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.g-service small { color: var(--green-dark); font-weight: 600; font-size: .8rem; }
.u-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1.6rem; box-shadow: 0 4px 14px rgba(8,44,92,.06); }
.u-bar > span { flex: 1; min-width: 220px; }
.u-out { font-size: .9rem; }
.u-card { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 1.6rem 1.6rem 1.2rem; box-shadow: var(--shadow); border-top: 5px solid var(--primary); }
.u-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .u-card .row { grid-template-columns: 1fr; } }
.u-card .btn { width: 100%; }
.u-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--wash); border-radius: 10px; padding: 4px; margin-bottom: 1.3rem; }
.u-tabs a { text-align: center; text-decoration: none; padding: .6rem; border-radius: 8px; font: 600 .95rem var(--head); color: var(--muted); }
.u-tabs a[aria-current] { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(8,44,92,.1); }
.u-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; font-size: .92rem; }
.u-dossiers { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; max-width: none; }
.u-dossiers li { max-width: none; }
.u-dossiers a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; background: #fff; }
.u-dossiers a:hover { border-color: var(--primary); }
.u-dossiers b { display: block; font-family: var(--head); color: var(--ink); }
.u-dossiers small { color: var(--muted); }
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 960px) { .g-layout { grid-template-columns: 1fr; } }
.g-card { background: #fff; border-radius: 14px; padding: 1.4rem 1.4rem 1.2rem; margin-bottom: 1.25rem; box-shadow: 0 4px 18px rgba(8,44,92,.08); border: 1px solid var(--line); }
.g-card > h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.2rem; margin: 0 0 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.g-card > h2 span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: .95rem; flex: none; }
details.g-card summary { cursor: pointer; font: 600 1rem var(--head); color: var(--ink); }
.g-form .row, .g-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .g-form .row, .g-card .row { grid-template-columns: 1fr; } }
.g-form input:disabled { background: var(--wash); color: var(--ink); }
.g-pieces { list-style: none; counter-reset: pc; padding: 0; margin: 0; display: grid; gap: .6rem; max-width: none; }
.g-pieces li { counter-increment: pc; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem 1rem; align-items: center; background: var(--wash); border-radius: 10px; padding: .7rem .9rem .7rem 3rem; position: relative; max-width: none; }
.g-pieces li::before { content: counter(pc); position: absolute; left: .8rem; top: .75rem; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); color: var(--primary); display: grid; place-items: center; font: 700 .8rem var(--head); }
.g-pieces li.g-other::before { content: "+"; border-color: var(--muted); color: var(--muted); }
.g-pieces li b { font-weight: 600; color: var(--ink); font-size: .95rem; }
.g-pieces input[type=file] { margin: 0; background: #fff; font-size: .88rem; }
@media (max-width: 700px) { .g-pieces li { grid-template-columns: 1fr; } }
.g-req { font-size: .74rem; font-weight: 600; padding: .1rem .5rem; border-radius: 99px; background: #e8edf5; color: var(--muted); white-space: nowrap; }
.g-req.on { background: var(--err-bg); color: var(--err); }
.g-amount { margin: .8rem 0 0; font-weight: 600; color: var(--green-dark); }
.g-total { font-size: .9rem; color: var(--muted); }
.g-total.warn { color: var(--err); font-weight: 600; }
.g-send { width: 100%; padding: 1rem; font-size: 1.05rem; }
.g-rules { background: #fff; border-radius: 14px; padding: 1.3rem; position: sticky; top: 110px; border: 1px solid var(--line); border-top: 5px solid var(--accent); box-shadow: 0 4px 18px rgba(8,44,92,.08); }
.g-rules p { font-size: .93rem; }
@media (max-width: 960px) { .g-rules { position: static; order: -1; } }
.g-plabel { display: block; width: 100%; font-size: .78rem; font-weight: 600; color: var(--primary); }
.g-badge.s-valide { background: #e0f2ec; color: #0b6b4f; }
.g-badge.nat { background: #fde8ea; color: #9b1022; }
.g-msg.from-nat { border-left-color: var(--accent); background: #fff7f8; }
.g-status-btns .btn.s-valide:hover, .g-status-btns .btn.s-valide.current { border-color: #0b6b4f; background: #e0f2ec; color: #0b6b4f; }
.g-status-btns .btn.s-transmis:hover, .g-status-btns .btn.s-transmis.current { border-color: var(--accent); background: #fde8ea; color: #9b1022; }
.g-nat { border-top: 4px solid var(--accent); }
.g-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.g-region { position: relative; display: flex; flex-direction: column; gap: .3rem; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: 12px; padding: 1.1rem 1.1rem 1rem; text-decoration: none; color: var(--text); box-shadow: 0 4px 14px rgba(8,44,92,.06); }
.g-region:nth-child(3n+2) { border-top-color: var(--green); } .g-region:nth-child(3n) { border-top-color: var(--accent); }
.g-region:hover { border-color: var(--primary); }
.g-region b { font-family: var(--head); color: var(--ink); font-size: 1.1rem; }
.g-region span { color: var(--muted); font-size: .88rem; }
.g-region .badge { position: absolute; right: .8rem; top: .8rem; font-style: normal; }
.g-svc-edit summary { cursor: pointer; display: flex; gap: .6rem; flex-wrap: wrap; align-items: baseline; }
.g-svc-edit[open] summary { margin-bottom: 1rem; }
.actions-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }

/* Guichet : inscription en ligne (marche à suivre + bouton vers la plateforme) */
.g-service.g-ext { border-top-color: var(--accent) !important; background: linear-gradient(180deg, #fff6f7, #fff 45%); }
.g-service.g-ext em { color: var(--accent); }
.g-ins-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: none; }
.g-ins-steps li { max-width: none; position: relative; background: #fff; border-radius: 14px; padding: 1.2rem 1.2rem 1.1rem 4.2rem; box-shadow: 0 4px 18px rgba(8,44,92,.08); border: 1px solid var(--line); }
.g-ins-steps li span { position: absolute; left: 1.1rem; top: 1.1rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font: 700 1.1rem var(--head); }
.g-ins-steps li:nth-child(2) span { background: var(--green); }
.g-ins-steps li:nth-child(3) span { background: var(--accent); }
.g-ins-steps b { display: block; font-family: var(--head); color: var(--ink); }
.g-ins-steps small { color: var(--muted); }
@media (max-width: 760px) { .g-ins-steps { grid-template-columns: 1fr; } }
.g-check { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; max-width: none; }
.g-check li { max-width: none; position: relative; padding: .65rem .8rem .65rem 2.6rem; background: var(--wash); border-radius: 10px; }
.g-check li::before { content: ""; position: absolute; left: .85rem; top: .8rem; width: 16px; height: 16px; border: 2px solid var(--green); border-radius: 4px; background: #fff; }
.g-cta { margin-top: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem 2rem; align-items: center; background: linear-gradient(120deg, var(--dark), var(--primary)); color: #fff; border-radius: 18px; padding: 2rem 2.2rem; box-shadow: var(--shadow); }
.g-cta h2 { color: #fff; margin: 0 0 .4rem; }
.g-cta p { color: #dbe6f6; margin: 0; }
.g-cta-btn { font-size: 1.1rem; padding: 1.05rem 1.8rem; box-shadow: 0 10px 24px rgba(206,17,38,.35); }
.g-cta small { grid-column: 1 / -1; color: #c3d3ec; }
.g-cta small a { color: #fff; }
@media (max-width: 760px) { .g-cta { grid-template-columns: 1fr; padding: 1.5rem; } .g-cta-btn { width: 100%; } }
.g-rules h3 { margin-top: 0; }
.g-rules h4 { font-size: .95rem; margin: 1rem 0 .5rem; color: var(--dark); }
.g-fees { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 0 0 1rem; }
.g-fees th, .g-fees td { padding: .5rem .55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.g-fees th { font-weight: 400; color: var(--text); }
.g-fees td { font-weight: 700; color: var(--accent); white-space: nowrap; text-align: right; font-family: var(--head); }
.g-fees tr:nth-child(odd) { background: var(--wash); }
.g-bul { padding-left: 1.1rem; margin: 0 0 1rem; font-size: .92rem; }
.g-nb { background: var(--warn-bg); color: var(--warn); border-left: 3px solid #c79a00; border-radius: 6px; padding: .55rem .75rem; font-size: .88rem; }
.g-ins-band { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; background: #fff; border-radius: 14px; padding: 1.1rem 1.3rem; margin-bottom: 1rem; border: 1px solid var(--line); border-left: 5px solid var(--accent); box-shadow: 0 4px 18px rgba(8,44,92,.08); }
.g-ins-band b { display: block; font-family: var(--head); color: var(--ink); font-size: 1.05rem; }
.g-ins-band span { color: var(--muted); font-size: .93rem; }
.g-fees { table-layout: fixed; }
.g-fees th { white-space: normal !important; width: auto; }
.g-fees td { width: 7.2rem; }
.g-rules { overflow: hidden; }
/* Le décor du bandeau ne doit jamais bloquer les clics (boutons de la page de région, fil d'Ariane) */
.page-hero::before, .page-hero::after { pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }

/* Accueil d'une section : carrousel des actualités et fenêtre de lecture « feuille » */
.r-news { margin-top: 2rem; background: #fff; border-radius: 16px; border: 1px solid var(--line); border-top: 5px solid var(--primary); box-shadow: 0 6px 24px rgba(8,44,92,.09); padding: 1.3rem 1.3rem 1rem; }
.r-news.empty p { color: var(--muted); margin: 0; }
.r-news-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.r-news-head h2 { margin: 0; font-size: 1.3rem; }
.r-nav { display: flex; align-items: center; gap: .5rem; }
.r-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--primary); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.r-nav button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.r-count { font: 600 .88rem var(--head); color: var(--muted); min-width: 3.2rem; text-align: center; }
.r-viewport { overflow: hidden; border-radius: 12px; }
.r-track { display: flex; transition: transform .5s ease; }
.r-slide { flex: 0 0 100%; min-width: 0; }
.r-open { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.2rem; text-align: left; border: 0; padding: 0; background: var(--wash); border-radius: 12px; cursor: pointer; font: inherit; color: var(--text); overflow: hidden; }
.r-open:hover .r-txt em, .r-open:focus-visible .r-txt em { text-decoration: underline; }
.r-pic { position: relative; display: block; aspect-ratio: 4 / 3; background: #e3eaf5; overflow: hidden; }
.r-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.r-pic img.r-logo { object-fit: contain; padding: 22%; opacity: .55; }
.r-pic .play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.r-pic .play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.r-txt { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.2rem 1.1rem 0; justify-content: center; }
.r-txt small { color: var(--primary); font-weight: 600; font-size: .82rem; }
.r-txt b { font-family: var(--head); color: var(--ink); font-size: 1.15rem; line-height: 1.3; }
.r-txt > span { color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.r-txt em { font-style: normal; font: 600 .9rem var(--head); color: var(--accent); }
@media (max-width: 640px) { .r-open { grid-template-columns: 1fr; gap: 0; } .r-txt { padding: 1rem; } .r-pic { aspect-ratio: 16 / 10; } }
.r-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .8rem; }
.r-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #c9d5e6; cursor: pointer; padding: 0; }
.r-dots button[aria-current] { background: var(--primary); width: 24px; border-radius: 5px; }
.r-all { text-align: right; margin: .6rem 0 0; font-size: .92rem; }
dialog.r-sheet { border: 0; padding: 0; background: transparent; width: min(760px, 94vw); max-height: 92vh; overflow: visible; }
dialog.r-sheet::backdrop { background: rgba(6, 22, 48, .7); }
.r-paper { position: relative; background: #fff; border-radius: 6px; max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: sheetIn .35s ease-out; background-image: linear-gradient(#fff, #fff), repeating-linear-gradient(90deg, var(--green) 0 33.3%, var(--accent) 33.3% 66.6%, var(--yellow) 66.6% 100%); background-size: 100% calc(100% - 6px), 100% 6px; background-position: 0 6px, 0 0; background-repeat: no-repeat; }
.r-paper-in { padding: 1.6rem 1.8rem 1.4rem; }
.r-close { position: sticky; top: .6rem; float: right; margin: .6rem .6rem 0 0; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--dark); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.r-sheet-head { display: flex; align-items: center; gap: .7rem; padding-bottom: .9rem; border-bottom: 2px dashed var(--line); margin-bottom: 1rem; }
.r-sheet-head img { border-radius: 50%; }
.r-sheet-head b { display: block; font-family: var(--head); color: var(--dark); line-height: 1.1; }
.r-sheet-head small { color: var(--muted); }
.r-sheet-date { color: var(--primary); font-weight: 600; font-size: .88rem; margin: 0 0 .3rem; }
.r-sheet-title { font-size: 1.5rem; margin: 0 0 1rem; }
.r-sheet-cover { width: 100%; border-radius: 8px; margin-bottom: 1rem; }
.r-sheet-body { font-size: 1.02rem; }
.r-paper .pdf-page { box-shadow: 0 2px 10px rgba(8,44,92,.15); margin-bottom: 1rem; }
.r-paper .video-box { margin: 1rem 0; }
.r-sheet-foot { border-top: 2px dashed var(--line); padding-top: .9rem; margin-top: 1.2rem; font-size: .9rem; }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) { .r-paper-in { padding: 1.2rem 1.1rem 1rem; } .r-sheet-title { font-size: 1.25rem; } }

/* ===== V33 : espace numérique de la section (OPMS E-VOTE) et vérification par QR code ===== */
.ev-home { margin-top: -1rem; margin-bottom: 3rem; }
.ev-home-head h2 { margin: 0 0 .25rem; }
.ev-home-head p { margin: 0 0 1rem; color: var(--muted, #5b6782); }
.ev-actions { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ev-action { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid #dce2ed; border-radius: 18px; padding: 1.25rem; color: inherit; text-decoration: none; box-shadow: 0 4px 14px rgba(11, 61, 145, .06); transition: transform .15s, box-shadow .15s, border-color .15s; }
.ev-action:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 61, 145, .14); border-color: #0b3d91; color: inherit; }
.ev-action > span:nth-child(2) { flex: 1; }
.ev-action .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.ev-action .ic svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ev-action b { display: block; font-size: 1.12rem; line-height: 1.25; margin-bottom: .3rem; }
.ev-action small { display: block; color: #5b6782; font-size: .95rem; line-height: 1.45; }
.ev-go { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #0b3d91; color: #fff; font-size: 1.6rem; line-height: 1; padding-bottom: 3px; }
.ev-tag { display: inline-block; font-style: normal; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; vertical-align: 2px; margin-left: .3rem; white-space: nowrap; }
.ev-tag.t-g { background: #e4f4ea; color: #13804a; } .ev-tag.t-r { background: #fde8eb; color: #c8102e; }
.ev-tag.t-a { background: #fff2da; color: #a86300; } .ev-tag.t-b { background: #e8effb; color: #0b3d91; }
.region-evote { padding-top: 1.5rem; }
.ev-foot { max-width: 560px; margin: 2.5rem auto 0; }
.ev-verif { background: var(--wash, #f3f6fb); border-radius: 14px; padding: 1.25rem; }
.ev-verif h3 { margin-top: 0; }
.ev-staff { text-align: center; font-size: .9rem; margin-top: 1.25rem; }
.verif-card.aside-card { position: static; }
.verif-card .scan-btn, .ev-verif .scan-btn { width: 100%; justify-content: center; margin: .25rem 0 .75rem; }
.scan-btn .icon { width: 20px; height: 20px; }
.verif-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.verif-form input { flex: 1 1 200px; }
/* fenêtre du scanner */
.scan-dlg { border: 0; padding: 0; border-radius: 18px; width: min(440px, 94vw); background: #0f1b33; color: #fff; }
.scan-dlg::backdrop { background: rgba(5, 15, 35, .75); }
.scan-in { padding: 14px; }
.scan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.scan-x { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.scan-box { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-vis { position: absolute; inset: 14%; border: 3px solid rgba(255,255,255,.75); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0,0,0,.4); }
.scan-msg { margin: 10px 2px 2px; font-size: .95rem; }
.scan-msg.bad { color: #ffb4bd; font-weight: 600; }
