/* =========================================================
   CSAPA — Plateforme Démarches en Ligne
   ========================================================= */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --dem-radius: 16px;
  --dem-shadow: 0 2px 12px rgba(12,27,58,.08), 0 8px 32px rgba(12,27,58,.06);
  --dem-shadow-hover: 0 8px 40px rgba(12,27,58,.16);
  --dem-border: 1px solid #e5e7eb;
}

/* ── HÉRO ───────────────────────────────────────────────── */
.dem-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  background: var(--csapa-bleu);
  overflow: hidden;
}
.dem-hero-bg {
  position: absolute;
  inset: 0;
}
.dem-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .15;
}
.dem-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(12,27,58,.97) 0%, rgba(27,107,58,.55) 100%);
}
.dem-hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(200,169,81,.12);
  border: 1px solid rgba(200,169,81,.35);
  color: var(--csapa-or);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.dem-hero-title {
  font-family: var(--font-titre);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.dem-hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.dem-hero-stats {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(200,169,81,.2);
  border-radius: 14px;
  overflow: hidden;
  width: fit-content;
}
.dem-stat {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.dem-stat-val {
  font-family: var(--font-titre);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--csapa-or);
  line-height: 1;
}
.dem-stat-lbl {
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.dem-stat-sep {
  width: 1px;
  background: rgba(200,169,81,.2);
  align-self: stretch;
}

/* ── RECHERCHE + FILTRES ─────────────────────────────────── */
.dem-search-section {
  background: #f9fafb;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 64px;
  z-index: 100;
}
.dem-search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  padding: .45rem 1rem;
  gap: .75rem;
  max-width: 520px;
  transition: border-color .2s, box-shadow .2s;
  margin: 0 auto 1rem;
}
.dem-search-box:focus-within {
  border-color: var(--csapa-or);
  box-shadow: 0 0 0 3px rgba(200,169,81,.15);
}
.dem-search-icon { color: #9ca3af; font-size: 1rem; }
.dem-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .92rem;
  background: transparent;
  color: var(--csapa-bleu);
}
.dem-search-clear {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: .2rem;
  line-height: 1;
}
.dem-filter-tabs {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.dem-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 50px;
  background: #fff;
  color: #6b7280;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.dem-filter-btn:hover, .dem-filter-btn.active {
  background: var(--csapa-bleu);
  border-color: var(--csapa-bleu);
  color: #fff;
}

/* ── GRILLE DÉMARCHES ─────────────────────────────────── */
.dem-grid-section { background: #fff; }
.dem-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.dem-card {
  background: #fff;
  border-radius: var(--dem-radius);
  box-shadow: var(--dem-shadow);
  border: var(--dem-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.dem-card:hover {
  box-shadow: var(--dem-shadow-hover);
  transform: translateY(-4px);
}

/* Bannière urgence sur la carte */
.dem-card-urgent-banner {
  background: #fee2e2;
  color: #dc2626;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .35rem .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* Image de la carte */
.dem-card-img {
  position: relative;
  height: 110px;
  overflow: hidden;
}
.dem-card-img img {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.dem-card:hover .dem-card-img img { transform: scale(1.06); }
.dem-card-img-overlay {
  position: absolute;
  inset: 0;
}
.dem-card-img-icon {
  position: absolute;
  right: .75rem; bottom: .75rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}

/* Corps */
.dem-card-body { padding: 1.1rem 1.2rem; flex: 1; }
.dem-card-meta {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: .7rem;
}
.dem-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.badge-online  { background: #eff6ff; color: #1d4ed8; }
.badge-free    { background: #f0fdf4; color: #15803d; }
.badge-instant { background: #fefce8; color: #854d0e; }
.badge-dossier { background: #faf5ff; color: #7c3aed; }
.badge-guide   { background: #fff7ed; color: #9a3412; }
.badge-login   { background: #f1f5f9; color: #475569; }
.badge-member  { background: #ecfeff; color: #0e7490; }
.dem-badge-tarif { background: #fef9c3; color: #713f12; }

.dem-card-title {
  font-family: var(--font-titre);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.dem-card-desc {
  font-size: .83rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: .75rem;
}
.dem-card-infos {
  display: flex;
  gap: .75rem;
  font-size: .78rem;
  color: #9ca3af;
}
.dem-info-item {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.dem-info-item i { color: var(--csapa-or); }

/* Footer carte */
.dem-card-footer {
  padding: .85rem 1.2rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.dem-card-btn { flex: 1; font-size: .82rem; padding: .5rem 1rem; }
.dem-card-help {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.dem-card-help:hover { background: var(--csapa-bleu); color: #fff; }

/* Carte "aucun résultat" */
.dem-no-result {
  grid-column: 1 / -1;
  padding: 3rem;
  text-align: center;
  color: #6b7280;
}

/* ── SECTION URGENCE ──────────────────────────────────── */
.dem-urgent-section {
  background: #fff9f9;
  border-top: 3px solid #dc2626;
  padding: 2rem 0;
}
.dem-urgent-box {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.dem-urgent-icon {
  width: 56px; height: 56px;
  min-width: 56px;
  background: #dc2626;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}
.dem-urgent-content h3 {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  margin-bottom: .4rem;
}
.dem-urgent-content p {
  color: #6b7280;
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── AIDE & ACCOMPAGNEMENT ────────────────────────────── */
.dem-help-card {
  background: #fff;
  border: var(--dem-border);
  border-radius: var(--dem-radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: box-shadow .25s;
}
.dem-help-card:hover { box-shadow: var(--dem-shadow); }
.dem-help-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.dem-help-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  margin-bottom: .5rem;
}
.dem-help-card p { font-size: .85rem; color: #6b7280; line-height: 1.6; }
.dem-help-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  text-decoration: none;
  margin-top: 1rem;
  display: inline-block;
}
.dem-help-link:hover { color: var(--csapa-or); }

/* ── PAGES INTERNES — STRUCTURE ───────────────────────── */
.dem-page-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.dem-page-icon {
  width: 60px; height: 60px;
  min-width: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: #fff;
}
.dem-page-title {
  font-family: var(--font-titre);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--csapa-bleu);
  margin-bottom: .2rem;
}
.dem-page-subtitle { font-size: .9rem; }

/* ── STEPPER ──────────────────────────────────────────── */
.dem-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding: .5rem 0;
}
.dem-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}
.dem-step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: .82rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.dem-step.active .dem-step-circle {
  background: var(--csapa-bleu);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(12,27,58,.15);
}
.dem-step.done .dem-step-circle {
  background: var(--csapa-vert);
  color: #fff;
}
.dem-step-label {
  font-size: .7rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.dem-step.active .dem-step-label { color: var(--csapa-bleu); }
.dem-step.done .dem-step-label   { color: var(--csapa-vert); }
.dem-step-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  min-width: 30px;
  margin-top: -22px;
  align-self: flex-start;
}
.dem-step-line.done { background: var(--csapa-vert); }

/* ── FORMULAIRE CARD ──────────────────────────────────── */
.dem-form-card {
  background: #fff;
  border: var(--dem-border);
  border-radius: var(--dem-radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--dem-shadow);
}
.dem-form-step-title {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  margin-bottom: 1.25rem;
}
.dem-input {
  border-radius: 10px !important;
  border-color: #d1d5db !important;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.dem-input:focus {
  border-color: var(--csapa-or) !important;
  box-shadow: 0 0 0 3px rgba(200,169,81,.15) !important;
}
.fw-600 { font-weight: 600 !important; }
.dem-section-title {
  font-family: var(--font-titre);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  margin-bottom: 1rem;
}

/* ── PHOTOS UPLOAD ────────────────────────────────────── */
.dem-photo-upload-box {
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.dem-photo-upload-box:hover {
  border-color: var(--csapa-or);
  background: #fffbeb;
}
.dem-upload-icon {
  font-size: 2rem;
  color: #9ca3af;
  margin-bottom: .75rem;
  display: block;
}
.dem-photo-requirements { background: #f9fafb; border-radius: 12px; padding: 1.25rem; }
.dem-photo-req-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem;
  margin-top: .75rem;
}
.dem-photo-upload-zone {
  background: #fff;
  border: 1.5px dashed #d1d5db;
  border-radius: 8px;
  padding: .75rem .5rem;
  text-align: center;
  font-size: .72rem;
  color: #9ca3af;
  cursor: pointer;
}
.dem-photo-upload-zone i { display: block; font-size: 1.2rem; margin-bottom: .3rem; }

/* ── PHOTO PREVIEW GRID ───────────────────────────────── */
.dem-photo-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.dem-photo-preview-item {
  width: 110px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}
.dem-photo-preview-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}
.dem-photo-preview-name {
  display: block;
  font-size: .65rem;
  font-weight: 600;
  color: var(--csapa-bleu);
  padding: .25rem .35rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dem-photo-preview-size {
  display: block;
  font-size: .6rem;
  color: #9ca3af;
  padding: 0 .35rem .35rem;
}

/* ── INFO BOX ─────────────────────────────────────────── */
.dem-info-box {
  background: #fffbeb;
  border: 1px solid rgba(200,169,81,.3);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: .88rem;
  color: #78350f;
  line-height: 1.6;
}

/* ── TARIF GRID ───────────────────────────────────────── */
.dem-tarif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.dem-tarif-item {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1.5px solid #e5e7eb;
  transition: border-color .2s, box-shadow .2s;
}
.dem-tarif-item:hover { border-color: var(--csapa-or); }
.dem-tarif-label { font-size: .82rem; font-weight: 600; color: #374151; margin-bottom: .4rem; }
.dem-tarif-prix { font-family: var(--font-titre); font-size: 1.5rem; font-weight: 800; color: var(--csapa-bleu); margin-bottom: .3rem; }
.dem-tarif-desc { font-size: .75rem; color: #9ca3af; }

/* ── PAYMENT BADGES ───────────────────────────────────── */
.dem-payment-methods h4 { font-size: .85rem; font-weight: 700; color: var(--csapa-bleu); margin-bottom: .75rem; }
.dem-payment-icons { display: flex; gap: .5rem; flex-wrap: wrap; }
.dem-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: .3rem .7rem;
  font-size: .78rem;
  color: #374151;
}

/* ── SUBMIT BOX ───────────────────────────────────────── */
.dem-submit-box { background: #f0fdf4; border-radius: 12px; padding: 1.5rem; }
.dem-submit-summary {
  background: #dcfce7;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .85rem;
  color: #166534;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

/* ── SIDEBAR ──────────────────────────────────────────── */
.dem-sidebar-card {
  background: #fff;
  border: var(--dem-border);
  border-radius: var(--dem-radius);
  padding: 1.4rem 1.25rem;
}
.dem-sidebar-title {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  margin-bottom: .85rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #f3f4f6;
}
.dem-sidebar-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  text-decoration: none;
}
.dem-sidebar-link:hover { color: var(--csapa-or); }
.dem-delay-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.dem-delay-list li { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: #374151; }
.dem-process-list { padding-left: 1.1rem; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.dem-process-list li { font-size: .83rem; color: #374151; line-height: 1.5; }
.dem-include-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.dem-include-list li { display: flex; align-items: center; gap: .6rem; font-size: .83rem; color: #374151; }

/* ── ONAP PAGE ────────────────────────────────────────── */
.dem-onap-alert-banner {
  background: #7f1d1d;
  padding: .85rem 0;
  color: #fff;
  font-size: .85rem;
}
.dem-onap-alert-pulse {
  width: 40px; height: 40px;
  background: #dc2626;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  animation: pulse-red 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.dem-onap-tel-btn {
  display: inline-flex;
  align-items: center;
  background: #dc2626;
  color: #fff;
  padding: .5rem 1.1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  transition: background .2s;
}
.dem-onap-tel-btn:hover { background: #b91c1c; color: #fff; }
.dem-anon-toggle {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.dem-onap-contact-item {
  padding: .65rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.dem-onap-contact-item:last-child { border-bottom: none; }

/* ── VÉRIFICATION CERTIFICAT ──────────────────────────── */
.dem-verify-badge {
  width: 80px; height: 80px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--csapa-bleu), var(--csapa-vert));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(12,27,58,.25);
}
.dem-verify-form-wrap {
  background: #fff;
  border: var(--dem-border);
  border-radius: var(--dem-radius);
  padding: 2rem;
  box-shadow: var(--dem-shadow);
}
.dem-verify-form {}
.dem-verify-input-group {
  display: flex;
  border: 2px solid #d1d5db;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.dem-verify-input-group:focus-within {
  border-color: var(--csapa-bleu);
  box-shadow: 0 0 0 4px rgba(12,27,58,.1);
}
.dem-verify-prefix {
  background: var(--csapa-bleu);
  color: var(--csapa-or);
  font-weight: 800;
  font-size: .9rem;
  padding: .75rem 1.1rem;
  display: flex;
  align-items: center;
  letter-spacing: .08em;
  white-space: nowrap;
}
.dem-verify-input {
  flex: 1;
  border: none;
  outline: none;
  padding: .75rem 1rem;
  font-size: 1.1rem;
  font-family: monospace;
  color: var(--csapa-bleu);
  letter-spacing: .08em;
}
.dem-verify-btn {
  background: var(--csapa-or);
  color: var(--csapa-bleu);
  border: none;
  padding: .75rem 1.5rem;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.dem-verify-btn:hover { background: #d4b45a; }
.dem-verify-or {
  text-align: center;
  color: #9ca3af;
  font-size: .82rem;
  margin: 1.25rem 0;
  position: relative;
}
.dem-verify-or::before, .dem-verify-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 25px);
  height: 1px;
  background: #e5e7eb;
}
.dem-verify-or::before { left: 0; }
.dem-verify-or::after  { right: 0; }
.dem-qr-scan-box {
  background: #f9fafb;
  border: 1.5px dashed #d1d5db;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.dem-qr-icon { font-size: 2.5rem; color: var(--csapa-bleu); margin-bottom: .75rem; display: block; }
.dem-qr-scan-box p { font-size: .88rem; color: #6b7280; margin-bottom: 0; }

/* Résultat vérification */
.dem-verify-result {
  margin-top: 1.5rem;
  background: #fff;
  border-radius: var(--dem-radius);
  overflow: hidden;
  box-shadow: var(--dem-shadow);
}
.dem-verify-result.valid  { border: 2px solid #22c55e; }
.dem-verify-result.invalid { border: 2px solid #ef4444; }
.dem-verify-valid-header {
  background: #f0fdf4;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.dem-verify-status-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.dem-verify-status-icon.valid   { background: #22c55e; color: #fff; }
.dem-verify-status-icon.invalid { background: #ef4444; color: #fff; }
.dem-verify-status-title { font-family: var(--font-titre); font-size: 1.3rem; font-weight: 700; margin-bottom: .1rem; }
.dem-verify-status-sub  { font-size: .82rem; color: #6b7280; font-family: monospace; letter-spacing: .08em; }
.dem-verify-details { padding: 1.5rem; }
.dem-verify-field { margin-bottom: .4rem; }
.dem-verify-field label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9ca3af; margin-bottom: .1rem; }
.dem-verify-field strong { font-size: .9rem; color: var(--csapa-bleu); }
.dem-verify-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.dem-verify-invalid {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

/* ── INSCRIPTION ÉVÉNEMENTS ───────────────────────────── */
.dem-events-list { display: flex; flex-direction: column; gap: .75rem; }
.dem-event-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f9fafb;
  border: var(--dem-border);
  border-radius: 12px;
  padding: .85rem 1rem;
  transition: all .2s;
  color: var(--csapa-bleu) !important;
}
.dem-event-item:hover {
  background: #fff;
  border-color: var(--csapa-or);
  box-shadow: 0 4px 16px rgba(200,169,81,.12);
}
.dem-event-date-badge {
  min-width: 52px;
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: center;
  padding: .5rem .6rem;
  color: #fff;
  flex-shrink: 0;
}
.dem-event-day { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.dem-event-mon { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.dem-event-info { flex: 1; min-width: 0; }
.dem-event-title { font-size: .92rem; font-weight: 700; margin-bottom: .2rem; }
.dem-event-lieu  { margin-bottom: 0; }
.dem-event-capa  { flex-shrink: 0; }

/* Événement sélectionné */
.dem-selected-event {
  position: relative;
  border-radius: var(--dem-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}
.dem-sel-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.dem-sel-overlay { position: absolute; inset: 0; }
.dem-sel-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem 1.5rem; color: #fff; z-index: 1; }
.dem-sel-content h2 { font-family: var(--font-titre); font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.dem-sel-content p  { font-size: .82rem; color: rgba(255,255,255,.8); margin-bottom: .2rem; }

/* ── RESTITUTION — STATS ─────────────────────────────── */
.dem-rest-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.dem-rest-stat {
  background: #fff;
  border: var(--dem-border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dem-rest-stat-val { font-family: var(--font-titre); font-size: 1.6rem; font-weight: 800; line-height: 1; margin-bottom: .2rem; }
.dem-rest-stat-label { font-size: .72rem; color: #9ca3af; text-transform: uppercase; letter-spacing: .08em; }

/* ── TIMELINE RESTITUTION ─────────────────────────────── */
.dem-process-timeline { position: relative; padding-left: 1rem; }
.dem-timeline-item {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  position: relative;
}
.dem-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}
.dem-timeline-marker {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  z-index: 1;
  flex-shrink: 0;
}
.dem-timeline-content { flex: 1; padding-top: .4rem; }
.dem-timeline-num { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9ca3af; margin-bottom: .2rem; }
.dem-timeline-content h3 { font-size: .95rem; font-weight: 700; color: var(--csapa-bleu); margin-bottom: .2rem; }
.dem-timeline-content p  { margin-bottom: 0; }

/* Cas emblématiques */
.dem-case-item { padding: .6rem 0; border-bottom: 1px solid #f3f4f6; }
.dem-case-item:last-child { border-bottom: none; }

/* ── ACCRÉDITATION — ÉLIGIBILITÉ ─────────────────────── */
.dem-eligibility-grid { background: #f9fafb; border-radius: var(--dem-radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.dem-eligibility-item { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; color: #374151; line-height: 1.5; }
.dem-eligibility-item i { margin-top: .15rem; flex-shrink: 0; }
.dem-benefit-item { display: flex; align-items: flex-start; gap: .6rem; font-size: .83rem; color: #374151; padding: .4rem 0; border-bottom: 1px solid #f9fafb; }

/* ── ESPACE MEMBRE — LOGIN ────────────────────────────── */
.dem-login-card {
  background: #fff;
  border: var(--dem-border);
  border-radius: var(--dem-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--dem-shadow);
}
.dem-login-logo {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--csapa-bleu), var(--csapa-vert));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 1.25rem;
}
.dem-pwd-toggle {
  position: absolute;
  right: .75rem; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
}
.dem-member-features { background: #fff; border: var(--dem-border); border-radius: var(--dem-radius); padding: 1.5rem; }
.dem-member-feature-item { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid #f9fafb; font-size: .87rem; color: #374151; }
.dem-member-feature-item:last-child { border-bottom: none; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1199px) {
  .dem-cards-grid     { grid-template-columns: repeat(2, 1fr); }
  .dem-tarif-grid     { grid-template-columns: repeat(3, 1fr); }
  .dem-rest-stats     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .dem-cards-grid     { grid-template-columns: 1fr; }
  .dem-tarif-grid     { grid-template-columns: repeat(2, 1fr); }
  .dem-photo-req-grid { grid-template-columns: repeat(3, 1fr); }
  .dem-hero-stats     { flex-direction: column; width: 100%; }
  .dem-stat-sep       { width: 100%; height: 1px; }
  .dem-rest-stats     { grid-template-columns: repeat(2, 1fr); }
  .dem-search-section { top: 0; position: relative; }
  .dem-urgent-box     { flex-direction: column; }
  .dem-page-header    { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .dem-tarif-grid     { grid-template-columns: 1fr; }
  .dem-photo-req-grid { grid-template-columns: repeat(2, 1fr); }
  .dem-rest-stats     { grid-template-columns: repeat(2, 1fr); }
  .dem-stepper        { gap: 0; }
  .dem-step-label     { display: none; }
}
