/* ==========================================================================
   PROJET IMF — FEUILLE DE STYLE OFFICIELLE MULTI-APPAREILS (2026)
   Optimisée pour Smartphones (Android & iOS), Tablettes & Écrans Larges
   ========================================================================== */

:root {
  --navy: #0B1E38;
  --navy-deep: #06152B;
  --navy-light: #162E52;
  --gold: #D4AF37;
  --gold-deep: #B8912A;
  --gold-light: #F3E5AB;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --paper: #F8FAFC;
  --paper-card: #FFFFFF;
  --paper-deep: #F1F5F9;
  --ink: #0F172A;
  --ink-soft: #64748B;
  --ink-muted: #94A3B8;
  --line: #E2E8F0;
  --line-light: #F1F5F9;
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --danger: #EF4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 30, 56, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(11, 30, 56, 0.08);
  --shadow-lg: 0 20px 45px -10px rgba(11, 30, 56, 0.12);
  --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset universel & Prévention des bugs mobiles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Typographie */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul, ol {
  list-style: none;
}

.accent {
  color: var(--gold-deep);
}

/* ===================== Barre de progression ===================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ===================== Barre d'annonce supérieure ===================== */
.announcement-bar {
  background: linear-gradient(90deg, #06152B, #0B1E38, #162E52);
  color: #F8FAFC;
  font-size: 0.84rem;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 1001;
  text-align: center;
}

.announcement-pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.announcement-tag {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.announcement-link {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===================== Navigation Principale (Header) ===================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(11, 30, 56, 0.15);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}

.main-nav a:not(.btn-primary):hover {
  color: var(--navy);
}

.main-nav a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.main-nav a:not(.btn-primary):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===================== Boutons ===================== */
.btn-primary {
  background: linear-gradient(135deg, #DFB945 0%, #B8912A 100%);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, #E6C454 0%, #C49B2F 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-small {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(11, 30, 56, 0.04);
}

.btn-secondary {
  background: var(--paper-deep);
  color: var(--navy);
  border: 1px solid var(--line);
  font-weight: 600;
}

/* ===================== Hero Section ===================== */
.hero {
  padding: 70px 24px 60px;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
              linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-deep);
  border: 1px solid rgba(212, 175, 55, 0.28);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stat-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.3;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* ===================== Sections Générales ===================== */
.section {
  padding: 80px 24px;
}

.section-tint {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.eyebrow.center, h2.center, .section-lead.center {
  display: block;
  text-align: center;
}

h2 {
  font-size: 2.3rem;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 44px;
  line-height: 1.6;
}

.section-lead.center {
  margin-left: auto;
  margin-right: auto;
}

/* ===================== Section À Propos ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.about-media img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  max-height: 440px;
  width: 100%;
  object-fit: cover;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 500;
}

.check-list li i {
  color: var(--success);
  margin-top: 3px;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ===================== Section Programme ===================== */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.programme-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

.programme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.programme-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.programme-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.funds-origin-banner {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 40px;
}

.funds-origin-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  margin-bottom: 10px;
}

.funds-origin-header i {
  color: var(--gold-deep);
}

.funds-origin-header h3 {
  font-size: 1.15rem;
}

.funds-origin-banner p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===================== Section Éligibilité ===================== */
.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.eligibility-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
}

.eligibility-card.card-eligible {
  border-top: 4px solid var(--success);
}

.eligibility-card.card-ineligible {
  border-top: 4px solid var(--danger);
}

.eligibility-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.eligibility-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.card-eligible .eligibility-icon {
  background: var(--success-bg);
  color: var(--success);
}

.card-ineligible .eligibility-icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.eligibility-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eligibility-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.5;
}

.eligibility-list li i {
  margin-top: 3px;
  flex-shrink: 0;
}

.card-eligible .eligibility-list li i { color: var(--success); }
.card-ineligible .eligibility-list li i { color: var(--danger); }

/* ===================== Section Témoignages ===================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #F59E0B;
  font-size: 0.9rem;
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 22px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-name {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}

.author-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ===================== Section Processus (Timeline) ===================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.timeline-item {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.timeline-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--gold);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 18px;
}

.timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ===================== LE FORMULAIRE DE CANDIDATURE ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: start;
}

.funding-form {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.form-urgency-box {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 26px;
}

.form-urgency-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.form-urgency-count {
  color: var(--gold-deep);
  font-weight: 700;
}

.form-urgency-bar {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.form-urgency-fill {
  height: 100%;
  width: 82%;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  border-radius: 999px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field--full {
  margin-bottom: 18px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.label-opt {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea,
.custom-select {
  width: 100%;
  padding: 0 16px;
  height: 52px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
}

.field textarea {
  height: auto;
  min-height: 105px;
  padding: 14px 16px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.custom-select:focus {
  border-color: var(--gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.custom-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B1E38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

/* Boutons de sélection rapide du montant */
.amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.amount-chip {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.amount-chip:hover {
  background: var(--line);
}

.amount-chip.active {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--gold);
}

/* Zone de glisser-déposer de fichier */
.file-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  background: var(--paper);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--gold);
  background: #FFFDF7;
}

.file-input-hidden {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.dropzone-prompt i {
  font-size: 2rem;
  color: var(--gold-deep);
  margin-bottom: 4px;
}

.dropzone-text {
  font-size: 0.95rem;
  color: var(--navy);
}

.dropzone-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.file-preview {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.file-preview.active {
  display: flex;
}

.file-preview-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.file-preview-left i {
  color: var(--navy);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.file-preview-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.file-preview-size {
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-left: 6px;
}

.file-remove-btn {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
}

/* Validation et case de consentement */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 24px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--gold-deep);
  cursor: pointer;
  flex-shrink: 0;
}

.field.has-error input, .field.has-error textarea, .field.has-error select {
  border-color: var(--danger) !important;
  background: #FEF2F2;
}

.field-error-msg {
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 4px;
  display: none;
}

.field.has-error .field-error-msg {
  display: block;
}

.form-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

/* Colonne d'accompagnement (Aside) */
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-media-card img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  max-height: 220px;
  width: 100%;
  object-fit: cover;
}

.side-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.side-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.side-value {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.side-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ===================== FAQ Accordéon ===================== */
.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.faq-chevron {
  font-size: 0.9rem;
  color: var(--gold-deep);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  padding-bottom: 22px;
}

.faq-answer p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ===================== Footer ===================== */
.site-footer {
  background: var(--navy-deep);
  color: #F8FAFC;
  padding: 60px 24px 30px;
  border-top: 2px solid var(--gold);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 380px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ===================== Modal de confirmation (Le Reçu) ===================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 21, 43, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  padding: 36px 32px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s var(--ease);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.modal-window h3 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.modal-subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.receipt-box {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 22px;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.receipt-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.receipt-ref {
  font-family: monospace;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy-deep);
  background: #FFFFFF;
  border: 1px solid var(--gold);
  padding: 3px 10px;
  border-radius: 6px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.receipt-label {
  color: var(--ink-soft);
}

.receipt-value {
  font-weight: 600;
  color: var(--navy);
  text-align: right;
}

.receipt-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--success-bg);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ===================== Barre Tactile Mobile Permanente ===================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  z-index: 1050;
  box-shadow: 0 -4px 20px rgba(11, 31, 58, 0.08);
  gap: 10px;
}

.mobile-bar-btn-wa {
  flex: 0 0 50px;
  height: 50px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.mobile-bar-btn-cta {
  flex: 1;
  height: 50px;
  background: linear-gradient(135deg, #DFB945 0%, #B8912A 100%);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.94rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
}

/* Floating WhatsApp desktop */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: all 0.25s ease;
}

.fab-whatsapp:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   RESPONSIVE SPÉCIFIQUE TABLETTES (iPad, Tablette Android 768px - 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 20px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #0B1E38;
    border-bottom: 2px solid var(--gold);
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px 24px;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  
  .main-nav.open {
    display: flex;
  }
  
  .main-nav a {
    color: #FFFFFF;
    font-size: 1.05rem;
    padding: 8px 0;
    width: 100%;
    text-align: center;
  }
  
  .main-nav a:not(.btn-primary):hover {
    color: var(--gold-light);
  }

  .main-nav .btn-primary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Hero Tablette */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    max-width: 720px;
    margin: 0 auto;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-media {
    max-width: 680px;
    margin: 0 auto;
  }

  /* Grilles Tablette 2 Colonnes */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-media {
    max-width: 680px;
    margin: 0 auto;
  }

  .programme-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .eligibility-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Formulaire Centré Élégant */
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* ==========================================================================
   RESPONSIVE SPÉCIFIQUE SMARTPHONES (Android, iPhone < 768px)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Espace pour la barre tactile mobile */
  }

  .fab-whatsapp {
    display: none; /* Remplacé par la barre tactile permanente */
  }

  .mobile-bottom-bar {
    display: flex;
  }

  /* Announcement bar */
  .announcement-bar {
    font-size: 0.78rem;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .announcement-link {
    display: none;
  }

  /* Header mobile */
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .main-nav {
    top: 64px;
  }

  /* Hero mobile */
  .hero {
    padding: 40px 16px 36px;
  }

  .hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 28px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 18px;
  }

  .stat-card {
    padding: 12px 6px;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .hero-media img {
    max-height: 260px;
    border-radius: var(--radius-lg);
  }

  /* Sections mobile */
  .section {
    padding: 50px 16px;
  }

  h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }

  .section-lead {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .programme-grid,
  .testimonials-grid,
  .timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Formulaire mobile */
  .funding-form {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .field label {
    font-size: 0.85rem;
  }

  .amount-presets {
    gap: 6px;
  }

  .amount-chip {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .file-dropzone {
    padding: 16px 12px;
  }

  .dropzone-prompt i {
    font-size: 1.6rem;
  }

  .dropzone-text {
    font-size: 0.88rem;
  }

  .dropzone-hint {
    font-size: 0.72rem;
  }

  .check-row {
    font-size: 0.82rem;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .modal-window {
    padding: 26px 18px;
  }

  .modal-window h3 {
    font-size: 1.4rem;
  }

  .receipt-box {
    padding: 16px 14px;
  }

  .receipt-row {
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   PETITS ÉCRANS ANDROID (Largeur <= 390px)
   ========================================================================== */
@media (max-width: 390px) {
  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    text-align: left;
  }

  .stat-number {
    margin-bottom: 0;
    font-size: 1.4rem;
  }

  .amount-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .amount-chip {
    text-align: center;
  }
}

/* ===================== Vue de succès moderne & épurée (Style Stripe / Apple) ===================== */
.form-success-view {
  text-align: center;
  padding: 30px 10px;
  animation: fadeInSuccess 0.4s var(--ease);
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.form-success-view h3 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.success-message {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.success-details-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  max-width: 480px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.success-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.detail-label {
  color: var(--ink-soft);
}

.detail-value {
  font-weight: 700;
  color: var(--navy);
}

.success-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.success-actions-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.btn-wa-direct {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.btn-wa-direct:hover {
  background: #20BA5A;
  transform: translateY(-1px);
}

.btn-reset-light {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 12px;
  text-decoration: underline;
}
