/* ============================================================
   STAM AFRIQUE 2026 — main.css
   Design premium navy/or — Barlow Condensed
   ============================================================ */

:root {
  --navy:       #0a1628;
  --navy-light: #132035;
  --gold:       #f59e0b;
  --gold-dark:  #d97706;
  --white:      #ffffff;
  --gray-50:    #f7f7f5;
  --gray-100:   #f0f0ee;
  --gray-300:   #d1d5db;
  --gray-500:   #6b7280;
  --gray-700:   #374151;
  --green:      #16a34a;
  --red:        #ef4444;
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.14);
  --transition: .2s ease;
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  color: var(--gray-700);
  background: var(--gray-50);
  margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }

/* ── Boutons ─────────────────────────────────────────── */
.btn-stam {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: .5px;
  text-transform: uppercase; border: none; border-radius: 50px;
  padding: 13px 28px; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-stam:hover { transform: translateY(-2px); }

.btn-gold  { background: var(--gold);  color: var(--navy); }
.btn-gold:hover  { background: var(--gold-dark); color: var(--navy); box-shadow: 0 8px 24px rgba(245,158,11,.35); }

.btn-navy  { background: var(--navy);  color: var(--white); }
.btn-navy:hover  { background: var(--navy-light); color: var(--white); box-shadow: 0 8px 24px rgba(10,22,40,.3); }

.btn-outline-navy {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-next {
  background: var(--gold); color: var(--navy);
  font-size: 16px; padding: 16px 40px;
  box-shadow: 0 4px 20px rgba(245,158,11,.3);
}
.btn-next:hover { background: var(--gold-dark); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(245,158,11,.45); }

/* ── Hero ─────────────────────────────────────────────── */
.hero-section {
  position: relative; min-height: 90vh;
  display: flex; align-items: center;
  background: var(--navy); overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg-img {
  width: 100%; height: 100%; object-fit: cover; opacity: .4;
  filter: grayscale(30%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,.9) 0%, rgba(10,22,40,.6) 60%, rgba(10,22,80,.5) 100%);
}

.hero-content { position: relative; z-index: 2; padding: 100px 0 80px; }

.hero-badge-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3);
  color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; line-height: 1; margin-bottom: 16px;
}
.hero-title-stam {
  display: block; font-size: clamp(72px, 12vw, 120px);
  color: var(--white); letter-spacing: -3px;
}
.hero-title-year {
  display: block; font-size: clamp(72px, 12vw, 120px);
  color: var(--gold); letter-spacing: -3px;
}

.hero-subtitle {
  font-size: 16px; color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 36px; font-weight: 500;
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 36px; }
.hero-meta-item {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.85);
}
.hero-meta-item i { font-size: 22px; color: var(--gold); flex-shrink: 0; }
.hero-meta-item strong { display: block; font-size: 15px; font-weight: 700; }
.hero-meta-item span  { display: block; font-size: 12px; color: rgba(255,255,255,.55); }

.hero-logos {
  display: flex; align-items: center; gap: 16px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1);
}
.hero-logo { height: 36px; object-fit: contain; }
.logo-separator { width: 1px; height: 28px; background: rgba(255,255,255,.2); }
.logo-text { font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: 1px; font-weight: 600; }

/* Carte badge hero */
.hero-badge-preview { perspective: 1000px; }
.hero-badge-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 28px; width: 280px;
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}
.hbc-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.hbc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 22px; color: var(--white);
}
.hbc-chip {
  background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 900;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hbc-body { text-align: center; padding: 20px 0; }
.hbc-icon { font-size: 48px; color: var(--gold); margin-bottom: 12px; }
.hbc-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; color: var(--white); }
.hbc-desc  { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }
.hbc-footer {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 14px; text-align: center;
  font-size: 11px; color: rgba(255,255,255,.4);
}

/* ── Section Formulaire ──────────────────────────────── */
.form-section { padding: 80px 0 100px; }

.form-wrapper {
  max-width: 780px; margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Progress bar */
.form-progress {
  display: flex; align-items: center;
  background: var(--navy); padding: 28px 48px;
}
.progress-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex: 1; position: relative;
}
.ps-circle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(255,255,255,.35);
  transition: all .3s;
}
.progress-step span {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,.35);
  transition: all .3s;
}
.progress-step.active .ps-circle {
  background: var(--gold); border-color: var(--gold);
  color: var(--navy); box-shadow: 0 0 0 4px rgba(245,158,11,.25);
}
.progress-step.active span { color: var(--white); }
.progress-step.completed .ps-circle {
  background: var(--green); border-color: var(--green); color: var(--white);
}
.progress-step.completed span { color: rgba(255,255,255,.7); }

.progress-line {
  flex: 1; height: 2px; max-width: 100px;
  background: rgba(255,255,255,.15); border-radius: 2px;
}

/* Étapes */
.form-step { display: none; padding: 48px; }
.form-step.active { display: block; animation: fadeInUp .3s ease; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-header { margin-bottom: 36px; }
.step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 26px; color: var(--navy);
  margin-bottom: 6px;
}
.step-num {
  color: var(--gold); margin-right: 10px;
  font-size: 28px;
}
.step-desc { color: var(--gray-500); font-size: 14px; margin: 0; }

/* Inputs */
.form-group-float { position: relative; }
.form-input {
  width: 100%; padding: 18px 16px 8px 44px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 15px;
  font-family: 'Barlow', sans-serif;
  background: var(--white); color: var(--navy);
  transition: all var(--transition);
  appearance: none; -webkit-appearance: none;
}
.form-input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.form-input.is-valid   { border-color: var(--green); }
.form-input.is-invalid { border-color: var(--red); }

.form-group-float label {
  position: absolute; left: 44px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: var(--gray-500); pointer-events: none;
  transition: all .2s ease; background: transparent;
}
.form-input:focus ~ label,
.form-input:not(:placeholder-shown) ~ label {
  top: 10px; transform: none; font-size: 10px;
  font-weight: 700; letter-spacing: .5px; color: var(--gold);
}
.input-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); color: var(--gray-300);
  font-size: 18px; pointer-events: none; transition: color var(--transition);
}
.form-input:focus ~ .input-icon { color: var(--gold); }

/* Select */
.form-select-custom { cursor: pointer; padding-right: 40px; }

.form-feedback {
  font-size: 11px; margin-top: 4px; padding-left: 4px; min-height: 16px;
}
.invalid-feedback { color: var(--red); }
.valid-feedback   { color: var(--green); }

.form-label-top {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--gray-500); margin-bottom: 10px;
}
.req { color: var(--red); }

/* Sexe radio */
.sexe-group { display: flex; gap: 12px; }
.sexe-option {
  flex: 1; position: relative; cursor: pointer;
}
.sexe-option input { position: absolute; opacity: 0; }
.sexe-option span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  padding: 0 12px; font-size: 14px; font-weight: 600;
  color: var(--gray-500); transition: all var(--transition);
  height: 52px;
}
.sexe-option input:checked + span {
  border-color: var(--gold); background: rgba(245,158,11,.06);
  color: var(--navy);
}

/* Consentement */
.consent-block { padding: 16px 20px; background: var(--gray-50); border-radius: var(--radius-sm); }
.consent-check {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; font-size: 13px; color: var(--gray-500); line-height: 1.5;
}
.consent-check input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0;
  accent-color: var(--gold); cursor: pointer;
}

.step-actions { margin-top: 40px; display: flex; justify-content: flex-end; }

.email-checking {
  font-size: 11px; color: var(--gray-500); margin-top: 4px;
}
.spin { animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Écran succès ────────────────────────────────────── */
.success-screen { text-align: center; padding: 20px 0 40px; }

.success-animation { margin-bottom: 32px; }
.success-circle {
  width: 90px; height: 90px; margin: 0 auto;
}
.success-svg { width: 100%; height: 100%; }
.circle-bg {
  stroke: var(--green); stroke-width: 2;
  stroke-dasharray: 166; stroke-dashoffset: 166;
  animation: none;
}
.checkmark {
  stroke: var(--green); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: none;
}
.success-circle.animate .circle-bg {
  animation: strokeDraw 0.6s ease forwards;
}
.success-circle.animate .checkmark {
  animation: strokeDraw 0.4s ease .5s forwards;
}
@keyframes strokeDraw {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px; font-weight: 800; color: var(--navy);
  margin-bottom: 12px;
}
.success-id {
  margin-bottom: 12px;
}
.success-msg {
  font-size: 14px; color: var(--gray-500);
  max-width: 400px; margin: 0 auto 32px; line-height: 1.6;
}
.success-actions { margin-bottom: 24px; }
.success-note {
  font-size: 12px; color: var(--gray-300);
  background: var(--gray-50); padding: 12px 20px;
  border-radius: 50px; display: inline-block;
}

/* ── Badge Page ──────────────────────────────────────── */
.badge-page-section { padding: 80px 0 100px; min-height: 80vh; }

.badge-page-wrapper {
  max-width: 640px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}

.badge-page-header {
  background: var(--navy); padding: 48px; text-align: center;
}
.badge-page-logo { height: 48px; filter: brightness(10); margin-bottom: 20px; }
.badge-page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px; font-weight: 900; color: var(--white); margin-bottom: 8px;
}
.badge-page-sub { color: rgba(255,255,255,.5); font-size: 14px; margin: 0; }

.badge-found-card {
  padding: 36px 48px;
  border-bottom: 1px solid var(--gray-100);
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
}
.bfc-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold); font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bfc-info { flex: 1; min-width: 180px; }
.bfc-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 22px; color: var(--navy); margin-bottom: 2px; }
.bfc-org  { font-size: 13px; color: var(--gray-500); margin-bottom: 2px; }
.bfc-fonction { font-size: 12px; color: var(--gray-300); margin-bottom: 8px; }
.bfc-id {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gray-50); padding: 4px 12px; border-radius: 50px;
  font-size: 12px; font-family: monospace; color: var(--navy); font-weight: 700;
}
.bfc-actions { width: 100%; }

.badge-search-block { padding: 36px 48px; }
.badge-search-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin-bottom: 6px;
}
.badge-search-desc { font-size: 13px; color: var(--gray-500); margin-bottom: 20px; }
.badge-search-row {
  display: flex; gap: 10px; align-items: stretch;
}
.badge-search-row .form-input {
  flex: 1; padding: 14px 16px; font-size: 14px;
}
.badge-search-error {
  font-size: 12px; color: var(--red); margin-top: 8px;
}
.badge-search-result { margin-top: 20px; }
.search-result-card {
  background: var(--gray-50); border-radius: var(--radius);
  padding: 24px; border-left: 4px solid var(--gold);
}
.src-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.src-id { font-size: 12px; color: var(--gray-500); }

.badge-page-back { padding: 24px 48px; border-top: 1px solid var(--gray-100); text-align: center; }

/* ── Alerts ──────────────────────────────────────────── */
.alert-stam {
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: 13px; margin: 24px 48px;
  display: flex; align-items: center; gap: 10px;
}
.alert-danger { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { background: var(--navy); padding: 48px 0 24px; margin-top: 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 24px;
}
.footer-brand {
  flex: 1; min-width: 200px;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-tagline { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-info {
  flex: 1; min-width: 200px;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-info span { font-size: 13px; color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 8px; }
.footer-legal { flex: 1; min-width: 200px; }
.footer-legal p { font-size: 11px; color: rgba(255,255,255,.3); margin-bottom: 4px; }
.footer-partners {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.footer-partners span {
  font-size: 10px; color: rgba(255,255,255,.2);
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid rgba(255,255,255,.06);
  border-radius: 50px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-content { padding: 80px 0 60px; }
  .hero-title-stam, .hero-title-year { font-size: 72px; }
  .form-step { padding: 28px 20px; }
  .form-progress { padding: 20px 24px; }
  .badge-found-card, .badge-search-block, .badge-page-back { padding: 24px 20px; }
  .badge-search-row { flex-direction: column; }
  .step-actions { justify-content: center; }
  .btn-next { width: 100%; }
}

/* ── Succès email box ────────────────────────────────── */
.success-email-box {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac; border-radius: var(--radius);
  padding: 20px 24px; margin: 0 auto 24px;
  max-width: 440px; text-align: left;
}
.success-email-box i {
  font-size: 32px; color: var(--green); flex-shrink: 0;
}
.success-email-box strong {
  display: block; font-size: 14px; color: var(--navy); margin-bottom: 4px;
}
.success-email-box span {
  font-size: 13px; color: var(--green); font-weight: 700;
}
