/* css/style.css - BankCam : Orientation Bancaire Cameroun */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --teal:        #00B4A2;
  --teal-dark:   #007A6E;
  --teal-light:  #00D4C0;
  --teal-pale:   #E0FAF8;
  --teal-mid:    #B2EDE8;
  --gold:        #F0A500;
  --gold-light:  #FFD166;
  --dark:        #0D1F1E;
  --dark2:       #132726;
  --dark3:       #1C3532;
  --mid:         #2A4A47;
  --text:        #1A2F2D;
  --text-light:  #5A7B78;
  --white:       #FFFFFF;
  --off-white:   #F6FFFE;
  --border:      #C8EBE8;
  --shadow:      0 4px 24px rgba(0,180,162,0.10);
  --shadow-md:   0 8px 40px rgba(0,180,162,0.15);
  --shadow-lg:   0 16px 60px rgba(0,180,162,0.20);
  --radius:      16px;
  --radius-sm:   8px;
  --radius-lg:   24px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--teal-pale); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,31,30,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,180,162,0.20);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: white;
  letter-spacing: -0.5px;
}

.nav-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
}

.nav-title span { color: var(--teal-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: white;
  background: rgba(0,180,162,0.15);
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(0,180,162,0.5);
  color: var(--teal-light);
}
.btn-outline:hover {
  border-color: var(--teal);
  background: rgba(0,180,162,0.1);
  color: white;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(0,180,162,0.30);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,180,162,0.40);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #E09000);
  color: white;
  box-shadow: 0 4px 16px rgba(240,165,0,0.30);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(240,165,0,0.40);
}

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 12px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 50%, #0a2826 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,180,162,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,212,192,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0,122,110,0.06) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,162,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,162,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,180,162,0.15);
  border: 1px solid rgba(0,180,162,0.30);
  color: var(--teal-light);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-title .accent { color: var(--teal-light); }
.hero-title .gold { color: var(--gold-light); }

.hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--teal-light);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Right - Floating Card */
.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,180,162,0.20);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
}

.hero-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-card-title .icon {
  width: 28px; height: 28px;
  background: rgba(0,180,162,0.20);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.mini-bank-list { display: flex; flex-direction: column; gap: 0.75rem; }

.mini-bank {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,180,162,0.10);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.2s;
}

.mini-bank:hover {
  background: rgba(0,180,162,0.08);
  border-color: rgba(0,180,162,0.25);
}

.mini-bank-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.65rem;
  color: white;
  flex-shrink: 0;
}

.mini-bank-info { flex: 1; }
.mini-bank-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: white;
}
.mini-bank-fee {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}

.mini-bank-rate {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal-light);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
}

.section-dark {
  background: var(--dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-title .accent { color: var(--teal); }

.section-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Dark section overrides */
.section-dark .section-title { color: white; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.55); }
.section-dark .section-tag {
  background: rgba(0,180,162,0.15);
  color: var(--teal-light);
}

/* ===== BANK CARDS ===== */
.banks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.bank-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.bank-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.bank-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.bank-card:hover::before { opacity: 1; }

.bank-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bank-logo-big {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: white;
  flex-shrink: 0;
}

.bank-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.bank-card-type {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

.bank-card-desc {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.bank-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.metric {
  background: var(--teal-pale);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}

.metric-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal-dark);
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

.bank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.tag-gold {
  background: rgba(240,165,0,0.12);
  color: #9A6800;
}

/* ===== COMPARATEUR ===== */
.comparateur-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.comparateur-controls {
  padding: 1.5rem 2rem;
  background: var(--teal-pale);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.comparateur-controls label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal-dark);
}

.comparateur-controls select {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.87rem;
  cursor: pointer;
}

.comp-table-wrapper { overflow-x: auto; }

.comp-table {
  width: 100%;
  border-collapse: collapse;
}

.comp-table th {
  background: var(--dark);
  color: white;
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.comp-table th:first-child { color: var(--teal-light); }

.comp-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
  vertical-align: middle;
}

.comp-table tr:hover td { background: var(--teal-pale); }

.comp-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.comp-check { color: var(--teal); font-weight: 700; }
.comp-cross { color: #E53E3E; }

.best-value {
  font-weight: 700;
  color: var(--teal-dark);
}

/* ===== RECOMMANDATION ===== */
.reco-form-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.reco-form-header {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: 2rem;
  color: white;
}

.reco-form-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.reco-form-header p {
  opacity: 0.8;
  font-size: 0.87rem;
}

.reco-form-body { padding: 2rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,180,162,0.12);
}

/* ===== RÉSULTATS RECOMMANDATION ===== */
.reco-results { margin-top: 2rem; }

.reco-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all 0.2s;
  position: relative;
}

.reco-card.top {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.reco-top-badge {
  position: absolute;
  top: -1px; right: 1rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reco-logo {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: white;
  flex-shrink: 0;
}

.reco-info { flex: 1; }
.reco-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.reco-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.reco-metrics {
  display: flex;
  gap: 1.5rem;
}

.reco-metric .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
}

.reco-metric .lbl {
  font-size: 0.7rem;
  color: var(--text-light);
}

.score-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
}

.score-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--score) * 1%), #E8F5F4 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.score-circle::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: white;
  border-radius: 50%;
}

.score-val {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--teal-dark);
}

.score-lbl {
  font-size: 0.65rem;
  color: var(--text-light);
}

/* ===== AVIS ===== */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.avis-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s;
}

.avis-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--teal-mid);
}

.avis-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.avis-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.avis-meta { flex: 1; }
.avis-email { font-size: 0.8rem; color: var(--text-light); font-weight: 400; }
.avis-bank-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }

.stars { color: var(--gold); font-size: 0.85rem; }

.avis-comment {
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
}

.avis-date {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  padding: 1.75rem 2rem 1.5rem;
  position: relative;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
}

.modal-header p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.25rem;
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover { background: rgba(255,255,255,0.2); }

.modal-body { padding: 2rem; }

.modal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--teal-pale);
  padding: 0.25rem;
  border-radius: 10px;
}

.modal-tab {
  flex: 1;
  padding: 0.55rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-tab.active {
  background: white;
  color: var(--teal-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--dark);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 4px solid var(--teal);
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { border-left-color: var(--teal); }
.toast.error { border-left-color: #E53E3E; }

/* ===== ADMIN ===== */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.stat-card .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--teal);
}

.stat-card .label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 3rem 2rem 1.5rem;
  border-top: 1px solid rgba(0,180,162,0.15);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--teal-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.footer-bottom span { color: var(--teal-light); }

/* ===== LOADING ===== */
.loader {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(0,180,162,0.3);
  border-radius: 50%;
  border-top-color: var(--teal);
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-container { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .hero-stats { gap: 1.25rem; }
  .comparateur-controls { flex-direction: column; align-items: flex-start; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== HISTORIQUE ===== */
.histo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.histo-table th {
  background: var(--teal-pale);
  color: var(--teal-dark);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
}

.histo-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.histo-table tr:hover td { background: var(--teal-pale); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-epargne { background: rgba(0,180,162,0.12); color: var(--teal-dark); }
.badge-credit { background: rgba(240,165,0,0.12); color: #9A6800; }
.badge-credit_scolaire { background: rgba(99,122,255,0.12); color: #3040CC; }
