/* ===================================================================
   Inscription ALSH — Veuzain-sur-Loire
   Design v2 : moderne, épuré, RGAA 4.1
   =================================================================== */

/* ── Variables ───────────────────────────────────────────────────── */
:root {
  --blue:        #1d4ed8;
  --blue-dark:   #1e3a8a;
  --blue-light:  #dbeafe;
  --blue-mid:    #3b82f6;
  --green:       #16a34a;
  --green-light: #dcfce7;
  --red:         #dc2626;
  --red-light:   #fee2e2;
  --amber:       #d97706;
  --amber-light: #fef3c7;
  --slate-900:   #0f172a;
  --slate-700:   #334155;
  --slate-500:   #64748b;
  --slate-300:   #cbd5e1;
  --slate-100:   #f1f5f9;
  --slate-50:    #f8fafc;
  --white:       #ffffff;
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --focus:       0 0 0 3px rgba(59,130,246,.45);
  --font:        'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--slate-700);
  background: var(--slate-50);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--blue); }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Accessibilité ───────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--blue); color: #fff;
  padding: 10px 20px; font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
  z-index: 9999; transition: top .1s;
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Header ──────────────────────────────────────────────────────── */
header[role="banner"] {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
  padding: 0;
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-icon {
  font-size: 2rem;
  flex-shrink: 0;
  background: rgba(255,255,255,.15);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.logo-commune {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.header-subtitle {
  font-size: .875rem;
  opacity: .8;
  margin-top: 2px;
}

/* ── Footer ──────────────────────────────────────────────────────── */
footer[role="contentinfo"] {
  background: var(--slate-900);
  color: var(--slate-300);
  text-align: center;
  padding: 24px 16px;
  font-size: .85rem;
  margin-top: auto;
}
footer a { color: var(--slate-300); }
footer a:hover { color: #fff; }

/* ── Container ───────────────────────────────────────────────────── */
.container {
  max-width: 760px;
  margin: 36px auto;
  padding: 0 20px;
}

/* ── Alerts ──────────────────────────────────────────────────────── */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .95rem;
  border: 1px solid;
}
.alert::before { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.alert-error   { background: var(--red-light);   border-color: #fca5a5; color: #7f1d1d; }
.alert-error::before { content: "⚠️"; }
.alert-success { background: var(--green-light); border-color: #86efac; color: #14532d; }
.alert-success::before { content: "✓"; color: var(--green); font-weight: 900; }
.alert-info    { background: #eff6ff; border-color: #93c5fd; color: #1e3a5f; }
.alert-info::before { content: "ℹ"; color: var(--blue); font-weight: 900; }
.alert-warning { background: var(--amber-light); border-color: #fcd34d; color: #78350f; }
.alert-warning::before { content: "⚠"; color: var(--amber); }

/* ── Barre de progression ────────────────────────────────────────── */
nav[aria-label="Progression du formulaire"] {
  margin-bottom: 32px;
}
.progress-steps {
  display: flex;
  list-style: none;
  gap: 0;
  counter-reset: step;
  position: relative;
}
/* Ligne de connexion */
.progress-steps::before {
  content: '';
  position: absolute;
  top: 18px; left: 18px; right: 18px;
  height: 2px;
  background: var(--slate-300);
  z-index: 0;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  font-size: .72rem;
  color: var(--slate-500);
  text-align: center;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--slate-300);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: var(--slate-500);
  transition: all .2s;
}
.step-done .step-num {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.step-done .step-num::after { content: "✓"; }
.step-done .step-num span { display: none; }
.step-current .step-num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 4px var(--blue-light);
}
.step-current { color: var(--blue); font-weight: 600; }
.step-label { line-height: 1.2; }

/* ── Formulaire — carte ──────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 24px;
}
.form-card-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
  padding: 20px 28px;
}
.form-card-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.form-card-header p {
  font-size: .875rem;
  opacity: .85;
  margin-top: 4px;
}
.form-card-body { padding: 28px; }

h1 { font-size: 1.5rem; color: var(--slate-900); margin-bottom: 16px; }
h2 { font-size: 1.15rem; color: var(--slate-900); margin-bottom: 12px; }

/* ── Fieldsets ───────────────────────────────────────────────────── */
fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px 0;
}
fieldset > legend {
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--slate-500);
  padding: 0 0 12px 0;
  width: 100%;
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 20px;
}
/* Fieldsets imbriqués (groupes radio/checkbox) */
fieldset fieldset {
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 0;
}
fieldset fieldset > legend {
  font-size: .9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--slate-700);
  padding: 0 8px 0;
  border: none;
  margin-bottom: 10px;
  width: auto;
}

/* ── Champs ──────────────────────────────────────────────────────── */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-row .field { margin-bottom: 0; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="search"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--slate-900);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: var(--focus);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
textarea { resize: vertical; min-height: 90px; }
input[type="file"] {
  padding: 8px 12px;
  background: var(--slate-50);
  cursor: pointer;
  font-size: .875rem;
}
input[type="date"] { cursor: pointer; }

.field-error input,
.field-error select,
.field-error textarea { border-color: var(--red); }
.field-error-msg {
  display: flex; gap: 6px; align-items: center;
  color: var(--red);
  font-size: .8rem;
  font-weight: 600;
  margin-top: 6px;
}
.field-hint {
  color: var(--slate-500);
  font-size: .8rem;
  margin-top: 5px;
  line-height: 1.4;
}

/* ── Radios & Checkboxes ─────────────────────────────────────────── */
.radio-group, .checkbox-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.radio-label, .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--slate-300);
  border-radius: 20px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  color: var(--slate-700);
  background: var(--white);
  transition: all .15s;
  user-select: none;
}
.radio-label:hover, .checkbox-label:hover {
  border-color: var(--blue-mid);
  background: var(--blue-light);
  color: var(--blue-dark);
}
.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--blue);
}
/* Pill sélectionné */
.radio-label:has(input:checked),
.checkbox-label:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 600;
}

.field-oui-non fieldset {
  border: none;
  padding: 4px 0;
  margin: 0;
}

/* ── Boutons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all .15s;
  line-height: 1;
  white-space: nowrap;
}
.btn:focus-visible { box-shadow: var(--focus); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: #fff;
}
.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue-light);
}
.btn-secondary:hover {
  background: var(--blue-light);
  border-color: var(--blue-mid);
  text-decoration: none;
  color: var(--blue-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--slate-500);
  border-color: var(--slate-300);
}
.btn-ghost:hover {
  background: var(--slate-100);
  color: var(--slate-700);
  text-decoration: none;
}
.btn-success {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}
.btn-success:hover {
  background: #15803d;
  text-decoration: none;
  color: #fff;
}
.btn-large { font-size: 1.05rem; padding: 14px 28px; }
.btn-sm    { font-size: .8rem;   padding: 6px 14px; }
.btn-block { width: 100%; justify-content: center; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-100);
  flex-wrap: wrap;
}
.required-note {
  font-size: .78rem;
  color: var(--slate-500);
  margin-top: 12px;
}

/* ── Page d'accueil ──────────────────────────────────────────────── */
.index-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}
.index-hero h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 8px;
}
.index-hero p { font-size: 1.05rem; opacity: .85; }

.index-body { max-width: 760px; margin: -1px auto 0; padding: 0 20px 40px; }

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  margin: 28px 0;
}
.info-card h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--slate-500);
  margin-bottom: 16px;
}
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
}
.checklist li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  min-width: 22px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  font-weight: 900;
  font-size: .75rem;
  margin-top: 1px;
}
.rgpd-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 20px 0;
  font-size: .875rem;
  color: var(--slate-700);
}
.rgpd-card h2 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
  margin-bottom: 8px;
}

/* ── Confirmation ────────────────────────────────────────────────── */
.confirmation-wrapper {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.confirmation-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 520px;
  width: 100%;
}
.confirmation-icon {
  width: 72px; height: 72px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}
.confirmation-box h1 { font-size: 1.5rem; margin-bottom: 12px; }
.confirmation-box p  { color: var(--slate-500); margin-bottom: 12px; }
.tel-block {
  background: var(--slate-50);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 20px 0;
  font-size: .9rem;
}
.tel-block strong { display: block; margin-bottom: 4px; color: var(--slate-700); }

/* ── Admin — Layout ──────────────────────────────────────────────── */
.admin-body { background: #f0f4f8; }
.admin-header {
  background: var(--slate-900);
  color: #fff;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.admin-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-logo:hover { color: var(--slate-300); text-decoration: none; }
.admin-nav { display: flex; gap: 4px; }
.admin-nav a {
  color: var(--slate-300);
  text-decoration: none;
  font-size: .875rem;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background .15s;
}
.admin-nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

.admin-main { padding: 28px 24px; }
.admin-container { max-width: 1280px; margin: 0 auto; }

/* ── Admin — Page header ─────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.page-header h1 { font-size: 1.35rem; margin: 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Admin — Stats cards ─────────────────────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: .8rem;
  color: var(--slate-500);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Admin — Filtres ─────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.filter-bar input[type="search"],
.filter-bar select {
  width: auto;
  padding: 8px 12px;
  font-size: .875rem;
  border-color: var(--slate-300);
}
.filter-bar input[type="search"] { min-width: 200px; }

/* ── Admin — Table ───────────────────────────────────────────────── */
.table-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead { background: var(--slate-50); }
.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--slate-500);
  border-bottom: 1px solid var(--slate-100);
}
.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--slate-50);
  font-size: .9rem;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--slate-50); }
.admin-table td a { color: var(--blue); font-weight: 600; text-decoration: none; }
.admin-table td a:hover { text-decoration: underline; }
.actions { display: flex; gap: 6px; }

/* ── Statut badges ───────────────────────────────────────────────── */
.statut-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.statut-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.statut-recu    { background: #dbeafe; color: #1d4ed8; }
.statut-verifie { background: #fef9c3; color: #a16207; }
.statut-vise    { background: var(--green-light); color: #15803d; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border-radius: 12px;
  padding: 1px 10px;
  font-size: .8rem;
  font-weight: 700;
  margin-left: 8px;
}

/* ── Admin — Détail ──────────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.detail-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.detail-section-header {
  background: var(--slate-50);
  padding: 12px 20px;
  border-bottom: 1px solid var(--slate-100);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--slate-500);
}
.detail-section-body { padding: 16px 20px; }
.detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 4px 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--slate-50);
  font-size: .9rem;
  align-items: start;
}
.detail-row:last-child { border-bottom: none; }
.detail-row dt { color: var(--slate-500); font-weight: 500; }
.detail-row dd { color: var(--slate-900); font-weight: 500; }
.detail-row dd.yes { color: var(--green); }
.detail-row dd.no  { color: var(--red); }

.sante-section {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  grid-column: 1 / -1;
}
.sante-section .detail-section-header {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #78350f;
}

.statut-section {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.inline-form { display: inline-flex; align-items: center; gap: 8px; }
.text-muted { color: var(--slate-500); font-size: .875rem; }

/* ── Admin — Login ───────────────────────────────────────────────── */
.admin-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--slate-900) 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
}
.login-logo {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
}
.login-box h1 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.login-box > p {
  text-align: center;
  color: var(--slate-500);
  font-size: .9rem;
  margin-bottom: 28px;
}
.login-divider {
  height: 1px;
  background: var(--slate-100);
  margin: 24px 0;
}

/* ── Personnes habilitées ────────────────────────────────────────── */
.personne-bloc {
  background: var(--slate-50);
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
}
.personne-bloc legend {
  font-size: .85rem;
  font-weight: 700;
  color: var(--slate-700);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 0;
  border: none;
  margin-bottom: 14px;
}
.btn-remove-personne {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--red-light);
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.btn-remove-personne:hover { background: #fca5a5; }
.btn-add-personne {
  width: 100%;
  padding: 12px;
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--slate-500);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
}
.btn-add-personne:hover {
  border-color: var(--blue-mid);
  color: var(--blue);
  background: var(--blue-light);
}

/* ── Misc ────────────────────────────────────────────────────────── */
.form-intro { color: var(--slate-500); margin-bottom: 24px; font-size: .95rem; }
.recap-box {
  background: var(--blue-light);
  border: 1px solid #93c5fd;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: .9rem;
  color: var(--blue-dark);
}
.empty-state {
  text-align: center;
  color: var(--slate-500);
  padding: 60px 24px;
  font-size: 1rem;
}
.empty-state::before {
  content: "📭";
  display: block;
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .header-inner { padding: 16px; }
  .index-hero h1 { font-size: 1.5rem; }
  .progress-steps::before { display: none; }
  .step-label { display: none; }
  .step-num { width: 30px; height: 30px; font-size: .8rem; }
  .form-card-body { padding: 20px 16px; }
  .field-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .detail-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .confirmation-box { padding: 32px 24px; }
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* ── Barre démo (à retirer en prod) ─────────────────────────────── */
.demo-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .75rem;
}
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .85rem;
  background: var(--amber-light);
  color: #92400e;
  border: 1.5px dashed var(--amber);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .01em;
  transition: background .15s, border-color .15s;
  line-height: 1.5;
}
.btn-demo:hover {
  background: #fde68a;
  border-color: #b45309;
}

/* ── Bouton danger ───────────────────────────────────────────────── */
.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
}
.btn-danger:hover {
  background: #b91c1c;
}

/* ── Modale de confirmation ──────────────────────────────────────── */
.confirm-dialog {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 2rem;
  max-width: 480px;
  width: 90%;
}
.confirm-dialog::backdrop {
  background: rgba(0,0,0,.45);
}
.confirm-dialog h2 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--slate-900);
}
.confirm-dialog .danger-note {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: #7f1d1d;
}
.dialog-actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
