/* ============================================================
   Aide Rentrée Scolaire 2026–2027 — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --ink:      #0f1117;
  --paper:    #f5f4ef;
  --surface:  #ffffff;
  --accent:   #1a56db;   /* bleu parents */
  --accent2:  #7c3aed;   /* violet jeunes */
  --mid:      #6b7280;
  --light:    #e5e7eb;
  --border:   #d4d2c9;
  --green:    #16a34a;
  --red:      #dc2626;
  --yellow:   #f59e0b;
  --info:     #0ea5e9;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Header / Nav ────────────────────────────────────────── */
.site-header {
  background: var(--ink);
  color: #fff;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
}
.site-logo i { color: var(--accent); font-size: 1.2rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  color: #d1d5db;
  font-size: .85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }

.btn-nav {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
}
.btn-nav:hover { opacity: .88; background: var(--accent) !important; }

.btn-nav-outline {
  border: 1px solid rgba(255,255,255,.25) !important;
  color: #d1d5db !important;
}
.btn-nav-outline:hover { border-color: #fff !important; color: #fff !important; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: #6b7280;
  text-align: center;
  padding: 20px 32px;
  font-size: .75rem;
}
.site-footer i { margin-right: 5px; }

/* ── Page wrappers ───────────────────────────────────────── */
main { flex: 1; }

.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px - 60px);
  padding: 40px 20px;
}

.auth-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.auth-brand i { font-size: 1.2rem; }

.auth-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.auth-sub {
  color: var(--mid);
  font-size: .88rem;
  margin-bottom: 28px;
}
.auth-switch {
  text-align: center;
  font-size: .85rem;
  color: var(--mid);
  margin-top: 20px;
}
.auth-switch a { font-weight: 600; }

/* Page card (profil, demande) */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.page-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.page-head {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--border);
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-head h1 i { color: var(--accent); }
.page-head p { color: var(--mid); font-size: .9rem; }

/* ── Formulaires ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.form-group--small { flex: 0 0 140px; }

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-group label i { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
  background: #fff;
}
.form-group input::placeholder { color: #9ca3af; }

.form-hint { font-size: .75rem; color: var(--mid); }

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.form-row .form-group { margin-bottom: 0; }
.form-group { margin-bottom: 20px; }

/* Checkbox */
.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-check label { font-size: .84rem; font-weight: 400; cursor: pointer; }
.form-check label a { font-weight: 600; }

/* Champ mot de passe avec icône */
.input-eye {
  position: relative;
  display: flex;
  align-items: center;
}
.input-eye input { padding-right: 44px; }
.eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--mid);
  cursor: pointer;
  font-size: .9rem;
  padding: 4px;
  transition: color .15s;
}
.eye-btn:hover { color: var(--accent); }

/* Fieldset */
.form-fieldset {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.form-fieldset legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent);
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
  flex-wrap: wrap;
}

/* ── Boutons ─────────────────────────────────────────────── */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
}
.btn-submit:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn-submit:active { transform: translateY(0); }
.btn-submit--accent2 { background: var(--accent2); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  border: 1.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn-secondary:hover { border-color: var(--accent); background: rgba(26,86,219,.04); text-decoration: none; }

.btn-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220,38,38,.08);
  color: var(--red);
  border: 1.5px solid rgba(220,38,38,.2);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-remove:hover { background: rgba(220,38,38,.15); }

/* ── Alertes / Flash ─────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: .87rem;
  line-height: 1.6;
  border-width: 1.5px;
  border-style: solid;
}
.alert i { flex-shrink: 0; margin-top: 2px; }
.alert ul { padding-left: 16px; list-style: disc; }
.alert ul li { margin-top: 2px; }

.alert-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.alert-success i { color: var(--green); }
.alert-error   { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.alert-error i { color: var(--red); }
.alert-warn    { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.alert-warn i  { color: var(--yellow); }
.alert-info    { background: #f0f9ff; border-color: #7dd3fc; color: #0c4a6e; }
.alert-info i  { color: var(--info); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warn    { background: #fef9c3; color: #854d0e; }
.badge-error   { background: #fee2e2; color: #991b1b; }

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--border);
}
.dashboard-hero h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.dashboard-hero p { color: var(--mid); font-size: .9rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stat-icon.p       { background: rgba(26,86,219,.1);   color: var(--accent); }
.stat-icon.j       { background: rgba(124,58,237,.1);  color: var(--accent2); }
.stat-icon.success { background: rgba(22,163,74,.1);   color: var(--green); }
.stat-num   { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.stat-label { display: block; font-size: .75rem; color: var(--mid); }

.section-block { margin-bottom: 36px; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.section-title i { color: var(--accent); }

/* Tableau */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1.5px solid var(--border); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.data-table th {
  background: var(--paper);
  padding: 12px 16px;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mid);
  border-bottom: 1.5px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--light);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(26,86,219,.03); }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--mid);
  background: var(--paper);
  border-radius: var(--radius);
  border: 1.5px dashed var(--border);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; color: var(--border); }
.empty-state p { font-size: .9rem; }

/* Liens rapides */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.quick-link i { font-size: 1.4rem; color: var(--accent); }
.quick-link:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); text-decoration: none; }
.quick-link--danger i { color: var(--red); }
.quick-link--danger:hover { border-color: var(--red); }

/* ── Onglets formulaire demande ──────────────────────────── */
.form-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.form-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--mid);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.form-tab:hover { color: var(--ink); text-decoration: none; }
.form-tab.active-p { color: var(--accent);  border-bottom-color: var(--accent); }
.form-tab.active-j { color: var(--accent2); border-bottom-color: var(--accent2); }

/* ── Bloc enfant ─────────────────────────────────────────── */
.enfant-block {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.enfant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.enfant-header strong { font-size: .9rem; font-weight: 700; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 680px) {
  .site-header { padding: 0 18px; }

  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--ink);
    padding: 12px 18px 20px;
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-burger { display: block; }

  .auth-card { padding: 28px 20px; }

  .page-card { padding: 24px 18px; }
  .page-wrap { padding: 24px 12px 48px; }

  .form-row { flex-direction: column; gap: 0; }
  .form-group--small { flex: unset; }

  .form-fieldset { padding: 16px; }

  .form-actions { flex-direction: column-reverse; }
  .btn-submit, .btn-secondary { width: 100%; justify-content: center; }

  .dashboard-hero { flex-direction: column; align-items: flex-start; }
  .dashboard-hero .btn-submit { width: 100%; justify-content: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .quick-links { grid-template-columns: 1fr 1fr; }

  .form-tabs { overflow-x: auto; }
  .form-tab  { white-space: nowrap; padding: 10px 16px; font-size: .82rem; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   INDEX — styles spécifiques
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────── */
.idx-hero {
  background: var(--ink);
  color: #fff;
  padding: 80px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.idx-hero__inner { max-width: 560px; }

.idx-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,86,219,.25);
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.idx-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.idx-hero__title em { font-style: normal; color: #60a5fa; }
.idx-hero__lead {
  font-size: 1rem;
  color: #9ca3af;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}
.idx-hero__lead strong { color: #e5e7eb; }
.idx-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Badge montant */
.idx-hero__badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.idx-hero__badge {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(26,86,219,.4);
}
.idx-hero__amount {
  display: block;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.idx-hero__badge-sub {
  display: block;
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  margin-top: 6px;
}
.idx-hero__badge-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 12px;
  letter-spacing: .04em;
}

/* ── Sections génériques ─────────────────────────────────── */
.idx-section { padding: 72px 32px; }
.idx-section--paper { background: var(--paper); }
.idx-section__inner { max-width: 860px; margin: 0 auto; }
.idx-section__head { text-align: center; margin-bottom: 48px; }
.idx-section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.idx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.idx-sub-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
}

/* ── Étapes ──────────────────────────────────────────────── */
.idx-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.idx-step {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.idx-step__num {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .78rem;
}
.idx-step__icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 4px;
}
.idx-step strong { font-size: .9rem; font-weight: 700; }
.idx-step span   { font-size: .82rem; color: var(--mid); line-height: 1.55; }

/* ── Tabs index ──────────────────────────────────────────── */
.idx-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.idx-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--mid);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.idx-tab:hover { color: var(--ink); text-decoration: none; }
.idx-tab.active-p { color: var(--accent);  border-bottom-color: var(--accent); }
.idx-tab.active-j { color: var(--accent2); border-bottom-color: var(--accent2); }

/* ── Amount block index ──────────────────────────────────── */
.idx-amount-block {
  border-radius: 12px;
  padding: 32px 28px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: #fff;
}
.idx-amount-block.parents { background: var(--accent); }
.idx-amount-block.jeunes  { background: var(--accent2); }
.idx-amount-block__big { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; line-height: 1; }
.idx-amount-block__sub { font-size: .85rem; opacity: .85; margin-top: 6px; }
.idx-amount-block__detail { font-size: .88rem; opacity: .9; max-width: 340px; line-height: 1.65; }

/* ── Conditions index ────────────────────────────────────── */
.idx-cond-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.idx-cond-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.idx-cond-icon { font-size: 1.2rem; }
.idx-cond-icon.p { color: var(--accent); }
.idx-cond-icon.j { color: var(--accent2); }
.idx-cond-item strong { font-size: .83rem; font-weight: 700; }
.idx-cond-item span   { font-size: .79rem; color: var(--mid); line-height: 1.5; }

/* ── Banques index ───────────────────────────────────────── */
.idx-banks-note { font-size: .83rem; color: var(--mid); margin-bottom: 14px; }
.idx-banks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.idx-bank-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color .15s;
}
.idx-bank-card:hover { border-color: var(--accent); }
.idx-bank-icon {
  width: 32px; height: 32px;
  background: var(--paper);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--accent);
  flex-shrink: 0;
}
.idx-bank-name { font-size: .82rem; font-weight: 600; }
.idx-bank-type { font-size: .69rem; color: var(--mid); }
.idx-warn {
  font-size: .76rem;
  color: var(--mid);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
}
.idx-warn i { color: var(--yellow); flex-shrink: 0; margin-top: 2px; }

/* ── CTA final ───────────────────────────────────────────── */
.idx-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 72px 32px;
}
.idx-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.idx-cta p { color: #9ca3af; margin-bottom: 32px; font-size: .95rem; }
.idx-cta__btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn-secondary--light {
  border-color: rgba(255,255,255,.25) !important;
  color: #d1d5db !important;
  background: transparent !important;
}
.btn-secondary--light:hover {
  border-color: #fff !important;
  color: #fff !important;
  background: rgba(255,255,255,.05) !important;
}

/* ── Responsive index ────────────────────────────────────── */
@media (max-width: 680px) {
  .idx-hero { padding: 52px 20px; flex-direction: column; }
  .idx-hero__badge { padding: 28px 32px; }
  .idx-hero__amount { font-size: 4rem; }
  .idx-hero__ctas { flex-direction: column; }
  .idx-hero__ctas .btn-submit,
  .idx-hero__ctas .btn-secondary { width: 100%; justify-content: center; }

  .idx-section { padding: 48px 18px; }
  .idx-steps { grid-template-columns: 1fr; }

  .idx-amount-block { flex-direction: column; }
  .idx-amount-block__big { font-size: 2.8rem; }

  .idx-cta { padding: 48px 18px; }
  .idx-cta__btns { flex-direction: column; align-items: center; }
  .idx-cta__btns .btn-submit,
  .idx-cta__btns .btn-secondary { width: 100%; max-width: 320px; justify-content: center; }
}

/* ============================================================
   CGU — styles spécifiques
   ============================================================ */

.cgu-card { max-width: 780px; margin: 0 auto; }

/* En-tête */
.cgu-header {
  text-align: center;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1.5px solid var(--border);
}
.cgu-icon {
  width: 56px; height: 56px;
  background: rgba(26,86,219,.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0 auto 18px;
}
.cgu-header h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.cgu-meta {
  font-size: .78rem;
  color: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cgu-meta i { color: var(--accent); }

/* Sommaire */
.cgu-toc {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.cgu-toc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 7px;
}
.cgu-toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px 24px;
}
.cgu-toc ol li { font-size: .83rem; }
.cgu-toc ol li a {
  color: var(--mid);
  text-decoration: none;
  transition: color .15s;
}
.cgu-toc ol li a:hover { color: var(--accent); text-decoration: underline; }

/* Corps */
.cgu-body { display: flex; flex-direction: column; gap: 0; }

.cgu-article {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.cgu-article:last-child { border-bottom: none; }

.cgu-article h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  scroll-margin-top: 80px;
}
.cgu-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 800;
  flex-shrink: 0;
}
.cgu-article h3 {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--ink);
}
.cgu-article p {
  font-size: .88rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 12px;
}
.cgu-article p:last-child { margin-bottom: 0; }

/* Liste */
.cgu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.cgu-list li {
  font-size: .87rem;
  color: #374151;
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.cgu-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Notices */
.cgu-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  line-height: 1.65;
  margin: 16px 0;
  border-width: 1.5px;
  border-style: solid;
}
.cgu-notice i { flex-shrink: 0; margin-top: 2px; }
.cgu-notice--warn  { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.cgu-notice--warn i  { color: var(--yellow); }
.cgu-notice--info  { background: #f0f9ff; border-color: #7dd3fc; color: #0c4a6e; }
.cgu-notice--info i  { color: var(--info); }
.cgu-notice--error { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.cgu-notice--error i { color: var(--red); }

/* Contact block */
.cgu-contact-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.cgu-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.cgu-contact-item i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.cgu-contact-item strong { display: block; font-size: .83rem; font-weight: 700; margin-bottom: 2px; }
.cgu-contact-item span   { font-size: .82rem; color: var(--mid); }

/* Footer CGU */
.cgu-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.cgu-footer p { font-size: .8rem; color: var(--mid); display: flex; align-items: center; gap: 7px; }
.cgu-footer p i { color: var(--green); }
.cgu-footer-btns { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .cgu-toc ol { grid-template-columns: 1fr; }
  .cgu-footer { flex-direction: column; align-items: flex-start; }
  .cgu-footer-btns { width: 100%; }
  .cgu-footer-btns .btn-submit,
  .cgu-footer-btns .btn-secondary { width: 100%; justify-content: center; }
}

/* ============================================================
   ANTI-BOT — styles UI
   ============================================================ */

/* Champ honeypot : invisible pour les humains, visible pour les bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* Statut Proof-of-Work */
.pow-status-wrap {
  margin-bottom: 12px;
}
.pow-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--mid);
  padding: 7px 12px;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  transition: all .3s;
}
.pow-status.pow-running {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(26,86,219,.06);
}
.pow-status.pow-running i { animation: spin .8s linear infinite; }
.pow-status.pow-done {
  color: var(--green);
  border-color: #86efac;
  background: #f0fdf4;
}
@keyframes spin { to { transform: rotate(360deg); } }
