/* ==========================================================
   SAHELCYBER : style.css (identité, base, page d'accueil)
   Palette relevée sur le logo validé : bleu marine, bleu,
   orange, jaune ambré. Mode clair par défaut.
   ========================================================== */

:root {
  --navy: #021a4f;
  --blue: #0a4fb0;
  --blue-light: #0a84ff;
  --orange: #ff5a00;
  --amber: #ffb800;

  --bg: #fdfaf0;
  --surface: #ffffff;
  --surface-2: #f4f1e6;
  --text: #0b1b3d;
  --text-muted: #55627f;
  --border: #e3dfd0;
  --primary: var(--blue);
  --primary-contrast: #ffffff;
  --accent: var(--orange);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(2, 26, 79, 0.08);
  --shadow-lg: 0 10px 30px rgba(2, 26, 79, 0.14);
  --header-h: 64px;
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #050d24;
  --surface: #0b1a3d;
  --surface-2: #0f2150;
  --text: #eaf0ff;
  --text-muted: #9fb0d6;
  --border: #1c3070;
  --primary: #3b8bff;
  --primary-contrast: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background 0.25s, color 0.25s;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--text); }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section--alt { background: var(--surface-2); }
.section__head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.section__head p { color: var(--text-muted); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--amber); color: #000;
  padding: 8px 14px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 8px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 44px; width: auto; }
.brand__fallback {
  display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 0.95rem;
}
.brand--no-logo .brand__fallback { display: flex; }
.brand--no-logo .brand__logo { display: none; }
.brand__name { font-size: 1.15rem; }
.brand__name span { color: var(--accent); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
}
.main-nav a:hover { background: var(--surface-2); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Héros ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(10, 132, 255, 0.55), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(255, 90, 0, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #06307a 100%);
  padding: 64px 0 72px;
}
.hero h1 { color: #fff; }
.hero__inner { display: grid; gap: 32px; align-items: center; }
.hero__tag { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 16px; font-size: 0.85rem; font-weight: 700; color: var(--amber); }
.hero__lead { font-size: 1.1rem; color: #d6e2ff; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__geo { margin-top: 20px; font-weight: 700; color: var(--amber); letter-spacing: 0.02em; }
.hero__visual { display: flex; justify-content: center; }
.hero__visual .logo-card {
  background: #fdfaf0; border-radius: 28px; padding: 18px; box-shadow: var(--shadow-lg); max-width: 380px; width: 100%;
}
.hero__visual img { width: 100%; height: auto; }

/* ---------- Fonctionnalités / blocs ---------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.flow { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); counter-reset: step; }
.flow__step {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; font-weight: 700; box-shadow: var(--shadow);
}
.flow__step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.9rem;
}

.security-box {
  display: grid; gap: 24px; align-items: center; background: var(--navy); color: #fff;
  border-radius: 24px; padding: 32px 24px; box-shadow: var(--shadow-lg);
}
.security-box h2 { color: #fff; }
.security-box p { color: #cdd9f5; }
.security-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.security-box li { display: flex; gap: 10px; align-items: flex-start; }
.security-box li::before { content: "✓"; color: var(--amber); font-weight: 800; }

.cta-final { text-align: center; }
.cta-final .hero__cta { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #cdd9f5; padding: 40px 0 24px; }
.site-footer a { color: #cdd9f5; }
.site-footer__grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; }

/* ---------- Pages d'authentification ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px 48px; }
.auth-card {
  width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 28px 22px; box-shadow: var(--shadow-lg);
}
.auth-card .brand { justify-content: center; margin-bottom: 8px; }
.auth-card .brand__logo { height: 64px; }
.auth-card h1 { font-size: 1.6rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--text-muted); margin-bottom: 20px; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Animations discrètes ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ==========================================================
   SAHELCYBER : components.css (composants réutilisables)
   ========================================================== */

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #e65100; }
.btn--secondary { background: var(--primary); color: var(--primary-contrast); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 6px 14px; font-size: 0.9rem; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.15rem;
  display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.icon-btn:hover { background: var(--surface-2); }

/* ---------- Cartes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 14px; background: color-mix(in srgb, var(--amber) 25%, var(--surface));
}
.card p { color: var(--text-muted); margin: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 0.92rem; box-shadow: var(--shadow);
}

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}
.field.has-error input, .field.has-error select { border-color: #d92d20; }
.field__hint { font-size: 0.82rem; color: var(--text-muted); }
.field__error { font-size: 0.85rem; color: #d92d20; min-height: 1.1em; }
[data-theme="dark"] .field__error { color: #ff8a80; }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 76px; }
.input-wrap .toggle-pw {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0;
  color: var(--primary); font-weight: 700; cursor: pointer; padding: 8px; min-height: 36px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }

.strength { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.strength__bar { height: 100%; width: 0; background: #d92d20; transition: width 0.25s, background 0.25s; }
.strength[data-level="2"] .strength__bar { background: #f79009; }
.strength[data-level="3"] .strength__bar { background: #84cc16; }
.strength[data-level="4"] .strength__bar { background: #12b76a; }

/* ---------- Alertes et toasts ---------- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; border: 1px solid; }
.alert--error { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.alert--success { background: #ecfdf3; color: #027a48; border-color: #abefc6; }
.alert--info { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }
[data-theme="dark"] .alert--error { background: #3b0f0c; color: #ffb4ab; border-color: #7a271a; }
[data-theme="dark"] .alert--success { background: #06301d; color: #8ee9b4; border-color: #0b5a36; }
[data-theme="dark"] .alert--info { background: #0b2447; color: #a5ccff; border-color: #1c4a8c; }
[hidden] { display: none !important; }

.toast-zone { position: fixed; left: 50%; transform: translateX(-50%); bottom: 88px; z-index: 300; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast {
  background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Navigation mobile (barre inférieure) ---------- */
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(2, 26, 79, 0.08);
}
.bottom-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; min-height: 56px;
  color: var(--text-muted); font-size: 0.72rem; font-weight: 700; text-decoration: none;
}
.bottom-nav a span.ico { font-size: 1.3rem; line-height: 1; }
.bottom-nav a[aria-current="page"], .bottom-nav a:hover { color: var(--accent); }

/* ---------- Menu mobile (éléments moins fréquents) ---------- */
.menu-btn { display: none; }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 110; background: var(--bg); padding: 16px;
  display: none; overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mobile-menu a {
  display: block; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface);
  border: 1px solid var(--border); color: var(--text); font-weight: 700; text-decoration: none;
}

/* ==========================================================
   SAHELCYBER : responsive.css
   Approche mobile d'abord : le CSS de base cible le mobile,
   ce fichier ajoute les adaptations tablette et ordinateur.
   ========================================================== */

/* ---------- Mobile (jusqu'à 767px) ---------- */
@media (max-width: 767px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn--ghost { display: none; }
  .brand__name { display: none; }
  .has-bottom-nav { padding-bottom: 72px; }
  .has-bottom-nav .bottom-nav { display: block; }
  .hero { padding: 40px 0 48px; }
  .hero__visual { order: -1; }
  .hero__visual .logo-card { max-width: 240px; }
}

/* ---------- Très petits écrans ---------- */
@media (max-width: 359px) {
  .container { padding: 0 12px; }
  .btn { padding: 10px 14px; }
}

/* ---------- Tablette (768px et plus) ---------- */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }
  .hero { padding: 88px 0 96px; }
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; }
  .security-box { grid-template-columns: 1.1fr 0.9fr; padding: 44px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 36px 34px; }
  .toast-zone { bottom: 24px; }
}

/* ---------- Ordinateur (1024px et plus) ---------- */
@media (min-width: 1024px) {
  .main-nav a { padding: 8px 16px; }
  .hero__visual .logo-card { max-width: 440px; }
}

/* ---------- Grand écran ---------- */
@media (min-width: 1440px) {
  :root { --maxw: 1240px; }
}

/* ==========================================================
   AJOUTS V2 : fluidité, fenêtres de détail, FAQ, administration
   (à coller TOUT EN BAS de style.css, sans rien supprimer)
   ========================================================== */

html { scroll-padding-top: calc(var(--header-h) + 8px); }
body { animation: page-in 0.35s ease both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.container { padding-inline: clamp(14px, 4vw, 28px); }
.section { padding: clamp(40px, 8vw, 84px) 0; }
.section__head { margin-bottom: clamp(20px, 4vw, 36px); }

/* ---------- Éléments cliquables (détails) ---------- */
.card[data-detail] { cursor: pointer; display: flex; flex-direction: column; }
.card__more { margin-top: 14px; font-weight: 700; font-size: 0.88rem; color: var(--accent); transition: transform 0.2s; }
.card[data-detail]:hover .card__more { transform: translateX(4px); }
button.chip, button.flow__step { font: inherit; color: inherit; cursor: pointer; }
button.chip { transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s; }
button.chip:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
button.flow__step { transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s; }
button.flow__step:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.linkbtn {
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 0;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px;
}
.linkbtn:hover { text-decoration-color: var(--amber); }
.main-nav a.is-active { background: var(--surface-2); color: var(--accent); }

/* ---------- Fenêtre de détail ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400; background: rgba(2, 10, 30, 0.6); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity 0.2s;
}
.modal-overlay.is-open { opacity: 1; }
.modal {
  position: relative; background: var(--surface); color: var(--text); width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  border-radius: 24px 24px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg); transform: translateY(24px); transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal { transform: none; }
.modal__close { position: absolute; top: 12px; right: 12px; }
.modal__icon { font-size: 2rem; line-height: 1; }
.modal h2 { font-size: 1.4rem; margin: 0.3em 0 0.4em; padding-right: 48px; }
.modal ul { padding-left: 1.2em; color: var(--text-muted); }
.modal li { margin-bottom: 4px; }
.modal__note { font-size: 0.85rem; color: var(--text-muted); background: var(--surface-2); padding: 10px 12px; border-radius: var(--radius-sm); margin: 14px 0 0; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
body.modal-open { overflow: hidden; }
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 24px; }
  .modal { border-radius: 24px; padding: 28px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--text-muted); }

/* ==========================================================
   ADMINISTRATION
   ========================================================== */
.demo-banner { background: #fff4d6; color: #5c4200; border-bottom: 1px solid #f2d98b; padding: 8px 16px; text-align: center; font-size: 0.88rem; font-weight: 600; }
[data-theme="dark"] .demo-banner { background: #3a2c05; color: #ffe29a; border-color: #6b520e; }
.admin-badge { background: var(--navy); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.admin-shell { padding-block: clamp(16px, 3vw, 28px) 48px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; scrollbar-width: thin; }
.admin-tabs button {
  flex: none; font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; min-height: 42px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.admin-tabs button:hover { border-color: var(--accent); }
.admin-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .admin-tabs button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); }
.admin-panel { display: none; animation: page-in 0.25s ease both; }
.admin-panel.is-active { display: block; }
.admin-panel > h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
.admin-panel .lead { color: var(--text-muted); margin-bottom: 18px; }

.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat__n { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; line-height: 1.1; }
.stat__l { color: var(--text-muted); font-size: 0.85rem; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.box h2 { font-size: 1.1rem; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding-top: 8px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: 0.72rem; color: var(--text-muted); gap: 4px; }
.bars i { display: block; width: 100%; max-width: 38px; background: linear-gradient(180deg, var(--orange), var(--amber)); border-radius: 8px 8px 0 0; transition: height 0.5s ease; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.toolbar input, .toolbar select {
  flex: 1 1 200px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.92rem; vertical-align: middle; }
.tbl th { background: var(--surface-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.tbl tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; background: var(--surface-2); color: var(--text-muted); }
.badge--ok { background: #ecfdf3; color: #027a48; }
.badge--warn { background: #fff4d6; color: #8a5a00; }
.badge--bad { background: #fef3f2; color: #b42318; }
.badge--info { background: #eff8ff; color: #175cd3; }
[data-theme="dark"] .badge--ok { background: #06301d; color: #8ee9b4; }
[data-theme="dark"] .badge--warn { background: #3a2c05; color: #ffe29a; }
[data-theme="dark"] .badge--bad { background: #3b0f0c; color: #ffb4ab; }
[data-theme="dark"] .badge--info { background: #0b2447; color: #a5ccff; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.btn--danger { background: #d92d20; color: #fff; }
.btn--danger:hover { background: #b42318; }

.list { display: grid; gap: 10px; }
.item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.item__main { flex: 1 1 260px; min-width: 0; }
.item__title { font-weight: 700; }
.item__meta { color: var(--text-muted); font-size: 0.85rem; }
.empty { text-align: center; color: var(--text-muted); padding: 28px 10px; }

.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: 0.6; }
.switch input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.chat { display: grid; gap: 8px; margin: 12px 0; }
.bubble { background: var(--surface-2); border-radius: 14px; padding: 8px 12px; max-width: 85%; font-size: 0.92rem; }
.bubble small { display: block; color: var(--text-muted); font-size: 0.74rem; }
.bubble--me { background: color-mix(in srgb, var(--amber) 30%, var(--surface)); margin-left: auto; }

/* ==========================================================
   ESPACE MEMBRE (V3)
   ========================================================== */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; background: var(--surface-2); }
.avatar--init { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 800; }
.mhead-user { display: inline-flex; border-radius: 50%; }

.member-shell { display: grid; grid-template-columns: 1fr; gap: 18px; padding-top: 18px; padding-bottom: 88px; align-items: start; }
.mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; overflow-x: auto; gap: 2px; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(2, 26, 79, 0.08); }
.mnav a { position: relative; flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; color: var(--text-muted); font-size: 0.68rem; font-weight: 700; text-align: center; text-decoration: none; }
.mnav a[aria-current="page"] { color: var(--accent); background: var(--surface-2); }
.mnav__ico { font-size: 1.3rem; line-height: 1; }
.mnav__badge { position: absolute; top: 2px; right: 10px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.68rem; line-height: 18px; text-align: center; }
.mnav__badge[hidden] { display: none; }
.member-main { min-width: 0; }
.member-main h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
.member-main .lead { color: var(--text-muted); margin: 0 0 18px; }

@media (min-width: 900px) {
  .member-shell { grid-template-columns: 240px 1fr; padding-bottom: 40px; }
  .mnav { position: sticky; top: calc(var(--header-h) + 16px); flex-direction: column; overflow: visible; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
  .mnav a { flex: none; flex-direction: row; gap: 12px; padding: 10px 12px; font-size: 0.95rem; text-align: left; }
  .mnav__badge { position: static; margin-left: auto; }
}

.grid-auto { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 18px; }
.mini { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; color: var(--text); box-shadow: var(--shadow); text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.mini strong { display: block; font-size: 1.8rem; line-height: 1.1; color: var(--primary); }
.mini span { color: var(--text-muted); font-size: 0.9rem; }
.mini .ico { font-size: 1.5rem; display: block; margin-bottom: 6px; }

.empty { text-align: center; padding: 28px 16px; color: var(--text-muted); border: 2px dashed var(--border); border-radius: var(--radius); }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--amber)); border-radius: 999px; transition: width .5s; }
.row-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.row-item:last-child { border-bottom: 0; }
.row-item > div { min-width: 0; flex: 1; }
.row-item small { color: var(--text-muted); display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.82rem; }

.profile-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { margin: 0; }
.profile-head .handle { color: var(--text-muted); }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field textarea { min-height: 96px; resize: vertical; width: 100%; }
.link-row { display: grid; gap: 8px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 640px) { .link-row { grid-template-columns: 1fr 2fr auto; } }
.link-row input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.score { display: flex; align-items: center; gap: 16px; }
.score__n { font-size: 2.4rem; font-weight: 800; color: var(--primary); min-width: 90px; }
.check-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.qr { max-width: 200px; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--border); }
.danger { border-color: #fecdca; }
.danger h2 { color: #b42318; }
.btn--danger { background: #d92d20; color: #fff; }
.copy-box { display: flex; gap: 8px; align-items: center; }
.copy-box input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }

/* ---------- V5 : composants de l'espace membre ---------- */
.ico { flex: none; vertical-align: middle; display: inline-block; }
.site-header .container { gap: 14px; }
.hsearch { position: relative; flex: 1; max-width: 380px; margin-left: 12px; display: none; }
.hsearch input { width: 100%; min-height: 40px; padding: 6px 14px 6px 38px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: .92rem; }
.hsearch input:focus { outline: 2px solid var(--primary); background: var(--surface); }
.hsearch__ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); display: flex; }
@media (min-width: 760px) { .hsearch { display: block; } }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hbell { position: relative; color: var(--text); }
.hbell .mnav__badge { top: -2px; right: -2px; }
.mnav__ico { display: flex; }
.btn .ico, .tab .ico { margin-right: 6px; }
.btn--sm .ico { width: 16px; height: 16px; }

.page-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-hero h1 { margin: 0; }
.page-hero .lead { margin: 4px 0 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; border-bottom: 1px solid var(--border); }
.tab { flex: none; padding: 10px 14px; border: 0; background: none; color: var(--text-muted); font: inherit; font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; }
.tab[aria-selected="true"] { color: var(--accent); border-color: var(--accent); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fchip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.post--hidden { opacity: .6; border-style: dashed; }
.post__head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.post__head > div { flex: 1; min-width: 0; }
.post__head strong { display: block; line-height: 1.2; }
.post__head small, .meta { color: var(--text-muted); font-size: .84rem; }
.post__body { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; margin: 0 0 10px; }
.post__img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface-2); }
.post__link { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 10px; word-break: break-all; }
.post__actions { display: flex; flex-wrap: wrap; gap: 4px; border-top: 1px solid var(--border); padding-top: 8px; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--text-muted); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; min-height: 38px; }
.act:hover { background: var(--surface-2); color: var(--text); }
.act.is-on { color: var(--accent); }
.act.is-on svg { fill: currentColor; }
.act--end { margin-left: auto; }
.comments { margin-top: 10px; display: grid; gap: 10px; }
.comment { display: flex; gap: 10px; }
.comment__bubble { background: var(--surface-2); border-radius: 14px; padding: 8px 12px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.comment__bubble strong { font-size: .88rem; }
.comment__row { display: flex; gap: 8px; }
.comment__row input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; }

.composer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; box-shadow: var(--shadow); }
.composer textarea { width: 100%; min-height: 84px; border: 0; background: transparent; color: var(--text); font: inherit; resize: vertical; padding: 4px; }
.composer textarea:focus { outline: none; }
.composer__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--border); padding-top: 10px; }
.composer__bar .grow { flex: 1; }
.composer .preview { max-height: 180px; border-radius: var(--radius-sm); margin: 6px 0; }
.composer input[type=url] { width: 100%; margin-top: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.more-row { text-align: center; margin: 10px 0 20px; }

.cgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ccard { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.ccard h3 { margin: 0; font-size: 1.05rem; }
.ccard p { margin: 0; color: var(--text-muted); font-size: .92rem; flex: 1; }
.ccard__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cbadge { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); font-size: 1.1rem; }
.cover { height: 120px; border-radius: var(--radius); background: linear-gradient(120deg, var(--navy), var(--blue) 60%, var(--orange)); margin-bottom: -34px; background-size: cover; background-position: center; }
.cover-body { display: flex; gap: 14px; align-items: flex-end; padding: 0 16px; flex-wrap: wrap; }
.cover-body .cbadge { width: 72px; height: 72px; font-size: 1.6rem; border: 4px solid var(--bg); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; background: var(--surface-2); color: var(--primary); }
.pill--green { background: #ecfdf3; color: #027a48; }
.pill--orange { background: #fff1e6; color: #b93800; }
.pill--red { background: #fef3f2; color: #b42318; }
[data-theme="dark"] .pill--green { background: #06301d; color: #8ee9b4; }
[data-theme="dark"] .pill--orange { background: #3d1a05; color: #ffb27f; }
[data-theme="dark"] .pill--red { background: #3b0f0c; color: #ffb4ab; }

.chat { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 520px; box-shadow: var(--shadow); }
.chat__list { border-right: 1px solid var(--border); max-height: 70vh; overflow-y: auto; }
.chat__item { display: flex; gap: 10px; align-items: center; padding: 12px 14px; width: 100%; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.chat__item:hover, .chat__item.is-on { background: var(--surface-2); }
.chat__item > div { min-width: 0; flex: 1; }
.chat__item strong, .chat__item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__item small { color: var(--text-muted); }
.chat__thread { display: flex; flex-direction: column; min-height: 420px; max-height: 70vh; }
.chat__top { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.chat__top .grow { flex: 1; min-width: 0; }
.chat__msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble small { display: block; font-size: .7rem; color: var(--text-muted); margin-top: 2px; }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-color: var(--primary); }
.bubble.me small { color: rgba(255,255,255,.75); }
.chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface); }
.chat__form textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--text); font: inherit; resize: none; }
.dot { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; font-weight: 800; }
.chat--noconv .chat__list { max-height: none; }
@media (min-width: 860px) { .chat { grid-template-columns: 300px 1fr; } }
@media (max-width: 859px) { .chat.thread-open .chat__list { display: none; } .chat:not(.thread-open) .chat__thread { display: none; } .chat__back { display: inline-flex !important; } }
.chat__back { display: none; }

.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.notif:hover { background: var(--surface-2); text-decoration: none; }
.notif.unread { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.notif__ico { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--primary); flex: none; }
.notif p { margin: 0; }
.listbox { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.opp { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
a.opp:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.opp h3 { margin: 0; font-size: 1.05rem; }
.opp .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.opp .meta span { display: inline-flex; gap: 5px; align-items: center; }
.detail-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 2fr 1fr; align-items: start; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; }
.facts b { display: block; font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }

.board { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .board { grid-template-columns: repeat(3, 1fr); } }
.col { background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-height: 100px; }
.col h3 { font-size: .9rem; margin: 2px 4px 10px; }
.task { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin-bottom: 8px; font-size: .92rem; }
.task select { margin-top: 6px; width: 100%; min-height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }

.article-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.article-card { display: flex; flex-direction: column; gap: 8px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); color: var(--text); font: inherit; cursor: pointer; }
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.article-card h3 { margin: 0; font-size: 1.05rem; }
.article-card p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.article h2 { margin-top: 22px; font-size: 1.15rem; }
.article ul { padding-left: 20px; }
.article li { margin: 6px 0; }
.callout { border-left: 4px solid var(--accent); background: var(--surface-2); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 14px 0; }
.skeleton { height: 90px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; margin-bottom: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.hero-card { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.hero-card h1, .hero-card h2 { color: #fff; margin: 0 0 6px; }
.hero-card p { margin: 0; color: rgba(255,255,255,.85); }

/* Dialogues */
.dlg { border: 0; padding: 0; background: transparent; max-width: 560px; width: calc(100% - 24px); color: var(--text); }
.dlg::backdrop { background: rgba(2, 10, 30, .55); }
.dlg__box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 86vh; overflow: auto; }
.dlg__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.dlg__head h2 { margin: 0; font-size: 1.15rem; }
.dlg__body { padding: 16px; }
select, .field select { font: inherit; }

/* ==========================================================
   V6 : habillage visuel (scène du Sahel, illustrations, aperçu)
   Photos facultatives : photo-hero.jpg, photo-community.jpg, photo-project.jpg,
   photo-opportunity.jpg, photo-security.jpg (si présentes, elles remplacent l'illustration).
   ========================================================== */
.hero--scene {
  background:
    linear-gradient(95deg, rgba(1, 14, 51, .94) 0%, rgba(1, 14, 51, .70) 48%, rgba(1, 14, 51, .12) 100%),
    url(photo-hero.jpg) center / cover no-repeat,
    url(hero-sahel.svg) center bottom / cover no-repeat,
    var(--navy);
}
.hero--scene { padding-bottom: 96px; }
.hero__visual { position: relative; flex-direction: column; align-items: center; }
.preview { width: 100%; max-width: 440px; background: rgba(255,255,255,.97); color: #0b1b3f; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.45); overflow: hidden; border: 1px solid rgba(255,255,255,.4); transform: rotate(1.2deg); }
.preview__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef2fb; border-bottom: 1px solid #dbe3f3; font-size: .78rem; }
.preview__bar span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.preview__bar span:nth-child(2) { background: #febc2e; }
.preview__bar span:nth-child(3) { background: #28c840; }
.preview__bar b { margin-left: auto; color: #5a6b8f; font-weight: 700; }
.preview__body { padding: 14px; display: grid; gap: 10px; }
.pv-post, .pv-opp, .pv-team { border: 1px solid #e3e9f6; border-radius: 14px; padding: 12px; background: #fff; }
.pv-post { display: flex; gap: 10px; }
.pv-post p { margin: 4px 0; font-size: .92rem; color: #0b1b3f; }
.pv-post small, .pv-opp small { display: block; color: #62739a; font-size: .78rem; }
.pv-acts { font-size: .8rem; color: #62739a; }
.pv-av { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.pv-opp strong { display: block; margin: 6px 0 2px; font-size: .95rem; }
.pv-team { font-size: .85rem; }
.pv-team .tag { font-size: .72rem; padding: 2px 8px; }
.logo-card--float { position: absolute; left: -6px; bottom: -34px; width: 110px !important; max-width: 110px !important; padding: 8px !important; border-radius: 20px !important; transform: rotate(-4deg); }
@media (max-width: 899px) { .logo-card--float { display: none; } .preview { transform: none; max-width: 100%; } .hero--scene { background-position: center, center, 70% bottom; } }

.trust { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px; padding-top: 18px; padding-bottom: 18px; }
@media (min-width: 800px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }
.trust__grid > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; padding: 6px; }
.trust__grid > div > span { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.trust__grid b { font-size: .95rem; }
.trust__grid small { color: var(--text-muted); font-size: .8rem; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px 20px; box-shadow: var(--shadow); }
.step__n { position: absolute; top: -16px; left: 20px; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--amber)); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(255,90,0,.35); }
.step h3 { margin: 6px 0 6px; }
.step p { margin: 0; color: var(--text-muted); }

.split { display: grid; gap: 28px; align-items: center; }
.split__text .chips { justify-content: flex-start; }
.split__text .section__head { text-align: left; margin-left: 0; }
.split__img { aspect-ratio: 4 / 3; border-radius: 28px; background-size: cover, cover; background-position: center; background-repeat: no-repeat; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background-color: var(--surface-2); }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; gap: 48px; } .split--rev { grid-template-columns: .9fr 1.1fr; } .split--rev .split__text { order: 2; } }
.split .flow { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip svg { color: var(--accent); }
.security-box { grid-template-columns: 1fr; }
.security-box .split__img--sm { max-width: 340px; width: 100%; margin: 0 auto; box-shadow: none; border: 0; background-color: transparent; }
@media (min-width: 900px) { .security-box { grid-template-columns: .8fr 1.1fr 1fr; } }
.card__icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--surface-2), #fff1e3); color: var(--accent); font-size: 0; }
[data-theme="dark"] .card__icon { background: var(--surface-2); }
.section--alt { background-image: url(pattern-sahel.svg); background-size: 96px; background-blend-mode: soft-light; }
[data-theme="dark"] .section--alt { background-image: none; }
.cta-scene { color: #fff; text-align: center; background: linear-gradient(rgba(1,14,51,.72), rgba(1,14,51,.55)), url(photo-hero.jpg) center / cover no-repeat, url(hero-sahel.svg) center bottom / cover no-repeat, var(--navy); padding: 72px 0; }
.cta-scene h2 { color: #fff; } .cta-scene p { color: #dbe6ff; }
.site-footer { background-image: linear-gradient(var(--navy), var(--navy)), url(pattern-sahel.svg); }
.site-footer::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--orange), var(--amber), var(--blue)); margin-bottom: 34px; margin-top: -40px; }

/* pages de connexion / inscription et espace membre */
.auth-main { background: linear-gradient(rgba(1,14,51,.62), rgba(1,14,51,.42)), url(photo-hero.jpg) center / cover no-repeat, url(hero-sahel.svg) center bottom / cover no-repeat, var(--navy); }
.hero-card { background: linear-gradient(110deg, rgba(1,14,51,.93), rgba(5,37,107,.78)), url(photo-hero.jpg) center / cover no-repeat, url(hero-sahel.svg) 60% 70% / cover no-repeat, var(--navy); position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 38%; background: url(pattern-sahel.svg); opacity: .22; pointer-events: none; }
.cover { background: linear-gradient(rgba(1,14,51,.15), rgba(1,14,51,.15)), url(hero-sahel.svg) center 70% / cover no-repeat, var(--navy); }
.empty { background: var(--surface) url(pattern-sahel.svg); background-size: 96px; background-blend-mode: soft-light; }
.cta-scene .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.cta-scene .btn--ghost:hover { background: rgba(255,255,255,.14); }
