/* =========================================================
   MotoCam — Charte graphique
   Marron (terre, confiance) · Bleu nuit (institution) · Bleu clair (modernité)
   ========================================================= */
:root {
  --nuit: #0D1B34;
  --nuit-2: #152849;
  --nuit-3: #1F3763;
  --marron: #6E4125;
  --marron-2: #A0673F;
  --marron-3: #C99A72;
  --ciel: #8CC8EE;
  --ciel-2: #CFE8F8;
  --ciel-3: #EEF7FD;
  --sable: #F7F2EB;
  --sable-2: #EFE6DA;
  --blanc: #FFFFFF;
  --ink: #111C31;
  --muted: #5B6679;
  --line: rgba(13, 27, 52, .12);
  --ok: #2E8B57;
  --wait: #C98A1B;
  --ko: #B53A2E;

  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(13,27,52,.06), 0 2px 8px rgba(13,27,52,.05);
  --shadow: 0 10px 30px -12px rgba(13,27,52,.25);
  --shadow-lg: 0 30px 60px -25px rgba(13,27,52,.45);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sable); color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--nuit); }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-brown { background: var(--marron-2); color: #fff; box-shadow: 0 8px 20px -8px rgba(160,103,63,.7); }
.btn-brown:hover { background: var(--marron); }
.btn-night { background: var(--nuit); color: #fff; }
.btn-night:hover { background: var(--nuit-3); }
.btn-sky { background: var(--ciel); color: var(--nuit); }
.btn-sky:hover { background: var(--ciel-2); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: .65em 1.15em; font-size: .9rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
:focus-visible { outline: 3px solid var(--ciel); outline-offset: 3px; border-radius: 6px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,242,235,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(247,242,235,.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font: 700 1.35rem/1 var(--f-display); color: var(--nuit); letter-spacing: -.03em; }
.brand-text strong em, .pc-brand strong em { font-style: normal; color: var(--marron-2); }
.brand-text small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255,255,255,.6); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
  text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--nuit);
  padding: .55em .8em; border-radius: 999px; transition: background .2s;
}
.main-nav a:not(.btn):hover, .main-nav a[aria-current] { background: var(--sable-2); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--nuit); padding: 8px; cursor: pointer; }
.nav-toggle .ico { width: 28px; height: 28px; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--sable); padding: 12px var(--gutter) 28px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .nav-cta { margin: 10px 0 0; padding: 1em; }
}
@media (max-width: 420px) { .brand-text small { display: none; } }

/* ---------- Sections génériques ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
section[id] { scroll-margin-top: 74px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--marron-2);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.bg-night { background: var(--nuit); color: rgba(255,255,255,.82); }
.bg-night h2, .bg-night h3 { color: #fff; }
.bg-night .lead { color: rgba(255,255,255,.7); }
.bg-night .eyebrow { color: var(--ciel); }
.bg-white { background: var(--blanc); }
.bg-sky { background: var(--ciel-3); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--nuit); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,27,52,.35) 0%, rgba(13,27,52,.15) 30%, rgba(13,27,52,.85) 78%, var(--nuit) 100%),
    linear-gradient(90deg, rgba(13,27,52,.75) 0%, rgba(13,27,52,0) 65%);
}
.hero-content { position: relative; padding-top: 140px; padding-bottom: clamp(48px, 8vw, 96px); width: 100%; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; }
.hero h1 span { color: var(--ciel); }
.hero .lead { color: rgba(255,255,255,.82); margin-bottom: 2em; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px);
  font-size: .85rem; margin-bottom: 26px;
}
.hero-tag b { background: var(--marron-2); color: #fff; padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: .75rem; letter-spacing: .04em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-credit { position: absolute; right: 12px; bottom: 10px; font-size: .68rem; color: rgba(255,255,255,.45); z-index: 2; }

/* ---------- Chiffres ---------- */
.stats { padding: 0; background: var(--nuit); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.1); }
.stat { padding: 34px 24px 40px; border-left: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.7); font-size: .92rem; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font: 700 clamp(2rem, 3.6vw, 2.8rem)/1 var(--f-display); color: #fff; margin-bottom: 10px; letter-spacing: -.03em; }
.stat strong small { font-size: .5em; color: var(--ciel); margin-left: 2px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 16px 28px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
}

/* ---------- Piliers ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--blanc); border-radius: var(--r-lg); padding: 34px 30px 30px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.pillar-ico .ico { width: 28px; height: 28px; }
.pillar:nth-child(1) .pillar-ico { background: var(--ciel-2); color: var(--nuit); }
.pillar:nth-child(2) .pillar-ico { background: var(--nuit); color: var(--ciel); }
.pillar:nth-child(3) .pillar-ico { background: #F1E2D3; color: var(--marron); }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Présidente ---------- */
.president { background: linear-gradient(135deg, var(--marron) 0%, #57331D 100%); color: rgba(255,255,255,.88); position: relative; overflow: hidden; }
.president::before {
  content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%;
  border: 60px solid rgba(140,200,238,.08);
}
.president-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.president-photo { position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--nuit-2), var(--nuit)); box-shadow: var(--shadow-lg); }
.president-photo img { width: 100%; height: 100%; object-fit: cover; }
.president-photo .monogram {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font: 700 clamp(4rem, 9vw, 7rem)/1 var(--f-display); color: var(--ciel); letter-spacing: -.04em;
}
.president-photo .monogram small { display: block; font: 500 .8rem/1.4 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 16px; }
.president-frame { position: absolute; inset: 14px; border: 1px solid rgba(140,200,238,.35); border-radius: calc(var(--r-lg) - 8px); pointer-events: none; }
.president .eyebrow { color: var(--ciel); }
.president h2 { color: #fff; }
.quote { font: 500 clamp(1.25rem, 2.4vw, 1.7rem)/1.4 var(--f-display); color: #fff; letter-spacing: -.01em; margin: 0 0 1.2em; position: relative; padding-top: .9em; }
.quote::before { content: "“"; position: absolute; left: -.05em; top: -.18em; font-size: 3.2em; color: var(--ciel); opacity: .45; line-height: 1; }
.president-text p { color: rgba(255,255,255,.8); }
.signature { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; gap: 18px; }
.signature-name { font: 600 1.05rem/1.3 var(--f-display); color: #fff; }
.signature-role { font-size: .85rem; color: var(--ciel); }
.signature svg { width: 120px; height: 48px; color: var(--ciel); flex: none; }
@media (max-width: 860px) { .president-grid { grid-template-columns: 1fr; } .president-photo { max-width: 320px; width: 78%; margin-inline: auto; } }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--r); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font: 700 .85rem/1 var(--f-display); color: var(--nuit); background: var(--ciel);
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 20px;
}
.step h3 { color: #fff; }
.step p { font-size: .93rem; margin: 0; color: rgba(255,255,255,.68); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Présentation carte ---------- */
.card-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.card-stage { position: relative; perspective: 1400px; padding: 20px 0 40px; }
.card-stage .pro-card { transform: rotateY(-12deg) rotateX(6deg) rotateZ(-2deg); box-shadow: var(--shadow-lg); transition: transform .8s var(--ease); }
.card-stage:hover .pro-card { transform: rotateY(0) rotateX(0) rotateZ(0); }
.feature-list { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .ico { color: var(--marron-2); margin-top: 2px; }
@media (max-width: 900px) { .card-showcase { grid-template-columns: 1fr; } .card-stage { order: -1; } }

/* ---------- Carte professionnelle ---------- */
.pro-card {
  --w: 100%;
  position: relative; width: var(--w); max-width: 520px; aspect-ratio: 85.6 / 54; border-radius: 18px; overflow: hidden;
  font-family: var(--f-body); color: #fff; container-type: inline-size; user-select: none;
}
.pro-card.recto {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(140,200,238,.28) 0%, rgba(140,200,238,0) 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(160,103,63,.45) 0%, rgba(160,103,63,0) 60%),
    linear-gradient(135deg, var(--nuit-2) 0%, var(--nuit) 70%);
}
.pro-card.recto::before {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 11px);
}
.pc-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 3.6cqw 5cqw 0; }
.pc-brand { display: flex; align-items: center; gap: 2cqw; }
.pc-brand .logo-mark { width: 8.5cqw; height: 8.5cqw; }
.pc-brand strong { display: block; font: 700 4.3cqw/1 var(--f-display); letter-spacing: -.03em; }
.pc-brand small { display: block; font-size: 1.85cqw; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-top: .6cqw; max-width: 42cqw; line-height: 1.25; }
.pc-type { font-size: 1.9cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--ciel); border: 1px solid rgba(140,200,238,.5); padding: 1cqw 1.8cqw; border-radius: 99px; white-space: nowrap; }
.pc-body { position: relative; display: flex; gap: 4cqw; padding: 2.8cqw 5cqw 0; }
.pc-photo { width: 19.5cqw; aspect-ratio: 3/4; border-radius: 2.2cqw; overflow: hidden; background: linear-gradient(160deg, var(--marron-2), var(--marron)); flex: none; border: .5cqw solid rgba(255,255,255,.85); display: grid; place-items: center; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-initials { font: 700 8cqw/1 var(--f-display); color: rgba(255,255,255,.9); }
.pc-info { flex: 1; display: grid; align-content: start; min-width: 0; }
.pc-label { display: block; font-size: 1.65cqw; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.pc-val { display: block; font-size: 2.7cqw; line-height: 1.35; font-weight: 600; margin-bottom: .9cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-name { font: 700 3.9cqw/1.15 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; }
.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; }
.pc-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end;
  padding: 2.2cqw 5cqw 3.2cqw; background: linear-gradient(0deg, rgba(0,0,0,.28), transparent);
}
.pc-bottom::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .7cqw; background: linear-gradient(90deg, var(--marron-2), var(--marron-3) 50%, var(--ciel)); opacity: .9; }
.pc-matricule { display: block; font: 700 4cqw/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; color: var(--ciel); margin-top: .8cqw; }
.pc-dots { display: flex; gap: 1cqw; }
.pc-dots i { width: 5cqw; height: 5cqw; border-radius: 50%; background: rgba(140,200,238,.18); border: 1px solid rgba(140,200,238,.5); display: grid; place-items: center; color: var(--ciel); }
.pc-dots .ico { width: 2.9cqw; height: 2.9cqw; }
.pc-status { position: absolute; top: 11.2cqw; right: 5cqw; font-size: 1.7cqw; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .6cqw 1.5cqw; border-radius: 99px; }
.pc-status.ok { background: rgba(46,139,87,.9); }
.pc-status.wait { background: rgba(201,138,27,.95); }
.pc-status.ko { background: rgba(181,58,46,.95); }
.pc-watermark { position: absolute; inset: 0; display: grid; place-items: center; font: 800 11cqw/1 var(--f-display); color: rgba(255,255,255,.08); transform: rotate(-18deg); letter-spacing: .1em; pointer-events: none; }

.pro-card.verso { background: #fff; color: var(--nuit); border: 1px solid var(--line); }
.pv-stripe { height: 11cqw; background: linear-gradient(90deg, var(--nuit), var(--nuit-3)); position: relative; }
.pv-stripe::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1cqw; background: linear-gradient(90deg, var(--marron-2), var(--ciel)); }
.pv-body { display: flex; gap: 4.5cqw; padding: 4.5cqw 5cqw 0; align-items: flex-start; }
.pv-qr { width: 27cqw; height: 27cqw; flex: none; padding: 1.4cqw; border: .4cqw solid var(--sable-2); border-radius: 2cqw; background: #fff; display: grid; place-items: center; }
.pv-qr img, .pv-qr canvas { width: 100% !important; height: 100% !important; }
.pv-text strong { font: 700 3.4cqw/1.2 var(--f-display); display: block; margin-bottom: 1.4cqw; }
.pv-text p { font-size: 2.35cqw; line-height: 1.45; margin: 0 0 1.4cqw; color: var(--muted); }
.pv-text .pv-small { font-size: 1.9cqw; }
.pv-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 2.4cqw 5cqw 3cqw; font-size: 1.9cqw; color: var(--muted); border-top: 1px solid var(--line); }
.pv-foot span:first-child { font: 700 2.3cqw/1 ui-monospace, Menlo, monospace; color: var(--nuit); }

/* ---------- Badges ---------- */
.badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.badge-card {
  background: var(--blanc); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; text-align: left;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.badge-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.badge-medal {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; position: relative;
  background: radial-gradient(circle at 30% 30%, var(--ciel-2), var(--ciel)); color: var(--nuit);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--ciel);
}
.badge-medal .ico { width: 26px; height: 26px; }
.badge-medal.brown { background: radial-gradient(circle at 30% 30%, #E6C7A8, var(--marron-2)); color: #fff; box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--marron-2); }
.badge-medal.night { background: radial-gradient(circle at 30% 30%, var(--nuit-3), var(--nuit)); color: var(--ciel); box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--nuit); }
.badge-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.badge-card p { font-size: .88rem; color: var(--muted); margin: 0; }
.badge-kind { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--marron-2); font-weight: 600; margin-top: 12px; }
@media (max-width: 960px) { .badges-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .badges-grid { grid-template-columns: 1fr; } }

.badge-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 8px; border-radius: 999px; background: var(--ciel-3); border: 1px solid var(--ciel-2); font-size: .85rem; font-weight: 500; color: var(--nuit); }
.badge-chip .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--ciel); box-sizing: content-box; }
.badge-chip.small { font-size: .75rem; padding: 4px 9px 4px 5px; }
.badge-chip.small .ico { width: 13px; height: 13px; }
.badge-securite .ico, .badge-secours .ico, .badge-ambassadeur .ico { background: var(--marron-2); color: #fff; }
.badge-verifie .ico { background: var(--nuit); color: var(--ciel); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Métier ---------- */
.metier-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.metier-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; position: relative; box-shadow: var(--shadow); }
.metier-photo img { width: 100%; height: 100%; object-fit: cover; }
.metier-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(13,27,52,.78); backdrop-filter: blur(6px); color: #fff; padding: 14px 16px; border-radius: 14px; font-size: .88rem; }
.rules { display: grid; gap: 12px; margin-top: 28px; }
.rule { display: flex; gap: 16px; padding: 18px 20px; background: var(--blanc); border-radius: 16px; border: 1px solid var(--line); }
.rule-num { font: 700 .8rem/1 var(--f-display); color: var(--marron-2); background: #F1E2D3; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.rule strong { display: block; color: var(--nuit); margin-bottom: 2px; }
.rule span { font-size: .92rem; color: var(--muted); }
.equip { margin-top: 28px; padding: 24px; background: var(--nuit); border-radius: var(--r); color: rgba(255,255,255,.8); }
.equip h3 { color: #fff; font-size: 1.05rem; }
.equip ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: .9rem; }
.equip li { display: flex; gap: 8px; align-items: flex-start; }
.equip li .ico { color: var(--ciel); margin-top: 3px; width: 1em; height: 1em; }
.source-note { font-size: .78rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 900px) { .metier-grid { grid-template-columns: 1fr; } .metier-photo { aspect-ratio: 16/11; } }
@media (max-width: 480px) { .equip ul { grid-template-columns: 1fr; } }

/* ---------- Réseau ---------- */
.regions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.region {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 18px 18px 16px;
  transition: background .25s, border-color .25s;
}
.region:hover { background: rgba(140,200,238,.08); border-color: rgba(140,200,238,.35); }
.region-code { font: 700 .75rem/1 var(--f-display); letter-spacing: .1em; color: var(--nuit); background: var(--ciel); padding: 5px 8px; border-radius: 6px; display: inline-block; }
.region h3 { color: #fff; font-size: 1.02rem; margin: 14px 0 2px; }
.region span { font-size: .84rem; color: rgba(255,255,255,.55); }
.region .count { display: block; margin-top: 12px; font: 600 .82rem/1 var(--f-body); color: var(--ciel); }
@media (max-width: 960px) { .regions { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 12px; }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; position: relative; background: var(--sable-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: .82rem; background: linear-gradient(0deg, rgba(13,27,52,.85), transparent); opacity: 0; transition: opacity .3s; }
.gallery figure:hover figcaption { opacity: 1; }
.g1 { grid-column: span 7; grid-row: span 3; } .g2 { grid-column: span 5; grid-row: span 3; }
.g3 { grid-column: span 4; grid-row: span 2; } .g4 { grid-column: span 4; grid-row: span 2; } .g5 { grid-column: span 4; grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .g1 { grid-column: span 2; grid-row: span 2; } .g2, .g3, .g4, .g5 { grid-column: span 1; grid-row: span 1; }
  .g5 { grid-column: span 2; }
  .gallery figcaption { opacity: 1; font-size: .72rem; }
}

/* ---------- Bandeau vérification ---------- */
.verify-band { background: var(--ciel-3); }
.verify-box { background: var(--nuit); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.verify-box::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(140,200,238,.25), transparent 70%); }
.verify-box h2 { color: #fff; }
.verify-form { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; position: relative; z-index: 1; }
.verify-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 18px; font: 600 1rem/1 ui-monospace, Menlo, monospace; color: var(--nuit); background: transparent; text-transform: uppercase; }
.verify-form input::placeholder { text-transform: none; font-family: var(--f-body); font-weight: 400; color: #8A94A6; }
@media (max-width: 860px) { .verify-box { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .verify-form { flex-direction: column; border-radius: 18px; } .verify-form input { padding: 14px; } }

/* ---------- CTA final ---------- */
.cta-final { position: relative; color: #fff; overflow: hidden; text-align: center; background: var(--nuit); }
.cta-final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--nuit) 0%, rgba(13,27,52,.55) 50%, var(--nuit) 100%); z-index: 1; }
.cta-final .wrap { position: relative; z-index: 2; }
.cta-final h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-final p { color: rgba(255,255,255,.75); max-width: 56ch; margin: 0 auto 2em; }

/* ---------- Pied de page ---------- */
.site-footer { background: #0A1529; color: rgba(255,255,255,.62); padding: 64px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font: 600 .82rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid > div > a:not(.brand), .footer-grid > div > span { display: block; text-decoration: none; margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ciel); }
.footer-note { margin-top: 18px; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
.footer-bottom a, .footer-bottom span { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Pages intérieures ---------- */
.page-hero { background: var(--nuit); color: rgba(255,255,255,.78); padding: clamp(48px, 7vw, 84px) 0 clamp(90px, 10vw, 130px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 440px; height: 440px; border-radius: 50%; border: 50px solid rgba(160,103,63,.18); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 20ch; }
.page-hero .eyebrow { color: var(--ciel); }
.page-hero p { max-width: 60ch; }
.page-body { margin-top: clamp(-80px, -8vw, -60px); position: relative; z-index: 2; padding: 0 0 clamp(64px, 8vw, 100px); }
.panel { background: var(--blanc); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); padding: clamp(22px, 4vw, 44px); }

/* ---------- Formulaires ---------- */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 36px; list-style: none; padding: 0; }
.stepper li { font-size: .82rem; color: var(--muted); font-weight: 500; }
.stepper li::before { content: ""; display: block; height: 5px; border-radius: 5px; background: var(--sable-2); margin-bottom: 10px; transition: background .4s; }
.stepper li.done::before { background: var(--marron-3); }
.stepper li.current::before { background: var(--marron-2); }
.stepper li.current { color: var(--nuit); font-weight: 600; }
.stepper b { display: inline-block; margin-right: 4px; }
@media (max-width: 560px) { .stepper li span { display: none; } }

.form-step { display: none; animation: fadeIn .45s var(--ease); }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-step h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.form-step > p { color: var(--muted); margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--nuit); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.3 var(--f-body); color: var(--ink); padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #FBFAF8; transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D1B34' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ciel); box-shadow: 0 0 0 4px rgba(140,200,238,.3); background: #fff; }
.field.invalid input, .field.invalid select { border-color: var(--ko); }
.field .err { font-size: .8rem; color: var(--ko); display: none; }
.field.invalid .err { display: block; }
.hint { font-size: .8rem; color: var(--muted); }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.check:has(input:checked) { border-color: var(--ciel); background: var(--ciel-3); }
.check input { width: 20px; height: 20px; accent-color: var(--nuit); margin: 2px 0 0; flex: none; }
.check small { display: block; color: var(--muted); font-size: .82rem; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } .form-nav .btn { flex: 1; } }

.photo-drop { display: flex; gap: 22px; align-items: center; padding: 20px; border: 2px dashed var(--line); border-radius: 18px; background: #FBFAF8; cursor: pointer; transition: border-color .2s; }
.photo-drop:hover { border-color: var(--ciel); }
.photo-preview { width: 110px; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--sable-2); display: grid; place-items: center; color: var(--muted); flex: none; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview .ico { width: 34px; height: 34px; }

.recap { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.recap div { background: #fff; padding: 12px 16px; }
.recap dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.recap dd { margin: 2px 0 0; font-weight: 600; color: var(--nuit); }
@media (max-width: 520px) { .recap { grid-template-columns: 1fr; } }

/* ---------- Succès / Carte ---------- */
.card-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.card-flip { perspective: 1600px; max-width: 520px; }
.card-flip-inner { position: relative; transition: transform .9s var(--ease); transform-style: preserve-3d; }
.card-flip.flipped .card-flip-inner { transform: rotateY(180deg); }
.card-flip .pro-card { backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow-lg); }
.card-flip .pro-card.verso { position: absolute; inset: 0; transform: rotateY(180deg); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.info-list { display: grid; gap: 0; margin: 0; }
.info-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; color: var(--nuit); text-align: right; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.ok { background: #E3F3EA; color: var(--ok); }
.status-pill.wait { background: #FBF0DC; color: #9A6A12; }
.status-pill.ko { background: #F8E3E0; color: var(--ko); }
.notice { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--ciel-3); border: 1px solid var(--ciel-2); font-size: .92rem; color: var(--nuit); }
.notice .ico { color: var(--nuit-3); margin-top: 2px; }
.notice.warn { background: #FBF3E3; border-color: #F0DDB5; }
@media (max-width: 900px) { .card-layout { grid-template-columns: 1fr; } }

.login-box { max-width: 520px; margin: 0 auto; }

/* ---------- Vérification ---------- */
.verify-result { margin-top: 28px; }
.vr { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 26px; border-radius: 20px; border: 1.5px solid; animation: fadeIn .5s var(--ease); }
.vr.ok { border-color: #BFE1CD; background: #F2FAF5; }
.vr.wait { border-color: #F0DDB5; background: #FEF9EF; }
.vr.ko { border-color: #EFC4BE; background: #FDF4F2; }
.vr-photo { width: 96px; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, var(--marron-2), var(--marron)); display: grid; place-items: center; color: #fff; font: 700 2rem/1 var(--f-display); }
.vr-photo img { width: 100%; height: 100%; object-fit: cover; }
.vr-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; }
.vr.ko .vr-icon { background: #F8E3E0; color: var(--ko); }
.vr-icon .ico { width: 36px; height: 36px; }
.vr h3 { margin: 8px 0 4px; font-size: 1.3rem; }
.vr p { margin: 0; color: var(--muted); font-size: .93rem; }
.vr .chips { margin-top: 12px; }
@media (max-width: 520px) { .vr { grid-template-columns: 1fr; } }

/* ---------- Admin ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.kpi { background: var(--blanc); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.kpi span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { display: block; font: 700 2rem/1.1 var(--f-display); color: var(--nuit); margin-top: 6px; }
.kpi.k-ok strong { color: var(--ok); } .kpi.k-wait strong { color: var(--wait); } .kpi.k-ko strong { color: var(--ko); }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.toolbar input, .toolbar select { padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: 400 .93rem var(--f-body); background: #fff; }
.toolbar input { flex: 1; min-width: 200px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 14px 16px; background: #FBFAF8; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover { background: var(--ciel-3); }
.who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, var(--marron-2), var(--marron)); color: #fff; display: grid; place-items: center; font: 600 .85rem/1 var(--f-display); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: .86rem; color: var(--nuit); }
.region-bars { display: grid; gap: 10px; }
.rb { display: grid; grid-template-columns: 110px 1fr 30px; gap: 12px; align-items: center; font-size: .86rem; }
.rb-track { height: 10px; background: var(--sable-2); border-radius: 10px; overflow: hidden; }
.rb-fill { height: 100%; background: linear-gradient(90deg, var(--nuit), var(--nuit-3)); border-radius: 10px; }
.rb b { text-align: right; color: var(--nuit); }
.admin-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.admin-grid > * { min-width: 0; }
.toolbar select { flex: 1 1 160px; }
@media (max-width: 1000px) { .admin-grid { grid-template-columns: 1fr; } }

/* ---------- Tiroir (détail membre) ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(13,27,52,.5); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--sable); z-index: 90; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; padding: 24px; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer.open + .drawer-bg, .drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.icon-btn { background: #fff; border: 1px solid var(--line); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--nuit); }
.drawer h4 { margin: 24px 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--f-body); }
.toggle-badges { display: grid; gap: 8px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--nuit); color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 100; opacity: 0; pointer-events: none; transition: all .35s var(--ease); font-size: .94rem; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--ko); }

/* ---------- Crédits ---------- */
.credits-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.credit { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; font-size: .84rem; }
.credit img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.credit a { color: var(--nuit-3); }

/* ---------- Impression : seulement la carte ---------- */
@media print {
  @page { size: A4; margin: 15mm; }
  body { background: #fff; }
  .site-header, .site-footer, .page-hero, .no-print, .toast { display: none !important; }
  .page-body { margin: 0; padding: 0; }
  .panel { box-shadow: none; border: 0; padding: 0; }
  .card-layout { display: block; }
  .print-cards { display: flex !important; flex-direction: column; gap: 10mm; }
  .print-cards .pro-card { width: 85.6mm; max-width: none; border-radius: 3.5mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card-flip { display: none; }
}
.print-cards { display: none; }
.president-photo img { object-position: center top; }
.photo-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px 10px; font-size: .66rem; color: rgba(255,255,255,.8); background: linear-gradient(0deg, rgba(13,27,52,.7), transparent); text-align: right; z-index: 1; }
.example-tag { position: absolute; top: 0; left: 0; z-index: 3; background: var(--marron-2); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.loading { color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: 10px; padding: 18px 0; }
.loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--sable-2); border-top-color: var(--marron-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
