/* =====================================================
   CHAFCORP — Design System
   Formation Solaire PV
   ===================================================== */

/* ─── 1. Variables ─────────────────────────────────── */
:root {
  /* Couleurs principales */
  --navy:         #1A3C6E;
  --navy-deep:    #0D2347;
  --blue-mid:     #2563A8;
  --blue-light:   #EBF1FB;
  --blue-pastel:  #AECEF5;
  --orange:       #E67E22;
  --orange-hover: #C0620A;
  --orange-light: #F5A55A;
  --orange-pale:  #FEF3E8;

  /* Fond de page */
  --bg:           #F8FAFF;
  --bg-alt:       #F5F5F5;

  /* Textes */
  --text:         #1A1A1A;
  --text-sec:     #4A4A4A;
  --text-muted:   #888888;
  --border:       #C8C8C8;
  --white:        #FFFFFF;

  /* Typographie */
  --font-display: 'Poppins', 'Inter', sans-serif;
  --font-body:    'Inter', 'DM Sans', sans-serif;

  /* Mise en page */
  --max-width:      1200px;
  --section-pad:    5rem 5%;
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --radius-full:    9999px;

  /* Ombres */
  --shadow-card:  0 4px 24px rgba(26, 60, 110, 0.08);
  --shadow-btn:   0 4px 16px rgba(230, 126, 34, 0.28);
  --shadow-nav:   0 2px 20px rgba(13, 35, 71, 0.18);
}

/* ─── 2. Reset & base ──────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-mid);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--orange); }

ul { list-style: none; }

/* ─── 3. Typographie ───────────────────────────────── */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

.heading-md {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

.text-muted    { color: var(--text-muted); }
.text-accent   { color: var(--orange); }
.text-navy     { color: var(--navy); }
.text-white    { color: var(--white); }
.text-center   { text-align: center; }
.text-sm       { font-size: 0.9rem; }
.font-600      { font-weight: 600; }

/* ─── 4. Layout ────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: var(--section-pad);
}

.section--alt {
  background: var(--blue-light);
}

.section--dark {
  background: var(--navy);
}

.section--deeper {
  background: var(--navy-deep);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-gap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── 5. Navbar ────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
  box-shadow: var(--shadow-nav);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar__logo {
  display: flex;
  flex-direction: column;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.navbar__logo:hover { color: var(--white); }

.navbar__logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links a {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.navbar__links a:hover { color: var(--orange-light); }

.navbar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Panel desktop (liens + CTAs) */
.navbar__panel {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
  justify-content: flex-end;
}

/* Hamburger mobile */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 8px;
  transition: background 0.2s;
}

.navbar__toggle:hover { background: rgba(255,255,255,0.18); }

.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── 6. Boutons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.15s, box-shadow 0.22s;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192, 98, 10, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--secondary-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn--secondary-white:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: var(--white);
}

.btn--full { width: 100%; }

.btn--lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* ─── 7. Cards ─────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,60,110,0.13);
}

.card--blue {
  background: var(--blue-light);
  border-color: var(--blue-pastel);
}

.card--orange {
  background: var(--orange-pale);
  border-color: var(--orange-light);
}

.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: none; }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.card__text {
  color: var(--text-sec);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ─── 8. Formulaires ───────────────────────────────── */
.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-input::placeholder,
.form-select::placeholder { color: var(--text-muted); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 60, 110, 0.1);
}

.form-input.error,
.form-select.error { border-color: #E74C3C; }

.form-error {
  color: #C0392B;
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.form-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Checkbox custom */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-sec);
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
}

/* ─── 9. Alertes & Badges ──────────────────────────── */
.alert {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.alert--error {
  background: #FEE2E2;
  color: #991B1B;
  border-left: 4px solid #EF4444;
}

.alert--success {
  background: #DCFCE7;
  color: #166534;
  border-left: 4px solid #22C55E;
}

.alert--info {
  background: var(--orange-pale);
  color: var(--navy);
  border-left: 4px solid var(--orange);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--blue   { background: var(--blue-pastel);  color: var(--navy-deep); }
.badge--orange { background: var(--orange-pale);  color: var(--orange-hover); }
.badge--green  { background: #DCFCE7; color: #166534; }
.badge--gray   { background: var(--bg-alt); color: var(--text-muted); }
.badge--white  { background: rgba(255,255,255,0.15); color: var(--white); }

/* ─── 10. Footer ───────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
  border-top: 4px solid var(--orange);
  padding: 3.5rem 5% 1.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.3rem;
  line-height: 1.5;
}

.footer__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--orange-light); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.6rem;
}

.footer__contact-item .icon { color: var(--orange-light); flex-shrink: 0; }

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer__bottom a { color: var(--orange-light); }

/* ─── 11. Auth Layout (login/register) ─────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 45% 55%;
}

.auth-layout__left {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  min-height: 100vh;
}

.auth-layout__left-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.auth-layout__left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,35,71,0.3) 0%,
    rgba(13,35,71,0.75) 60%,
    rgba(13,35,71,0.95) 100%
  );
}

.auth-layout__left-content {
  position: relative;
  z-index: 2;
}

.auth-layout__brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.auth-layout__brand-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.auth-layout__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.auth-layout__tagline em {
  font-style: normal;
  color: var(--orange-light);
}

.auth-layout__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.auth-layout__bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.4;
}

.auth-layout__bullet .bullet-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: white;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-layout__right {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 440px;
}

.auth-form-wrap .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.auth-form-wrap .back-link:hover { color: var(--navy); }

.auth-form-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.auth-form-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-footer-text a {
  color: var(--navy);
  font-weight: 600;
}

/* ─── 12. Stepper (register) ───────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}

.stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  flex: 1;
}

.stepper__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.stepper__step.active .stepper__circle {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.stepper__step.done .stepper__circle {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.stepper__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.stepper__step.active .stepper__label { color: var(--navy); font-weight: 600; }
.stepper__step.done .stepper__label   { color: var(--orange); }

.stepper__line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 -1px;
  margin-bottom: 22px;
  transition: background 0.3s;
}

.stepper__line.done { background: var(--orange); }

/* ─── 13. Progress bar ─────────────────────────────── */
.progress-track {
  background: var(--blue-light);
  border-radius: var(--radius-full);
  height: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

/* ─── 14. Dashboard ────────────────────────────────── */
.dash-page {
  background: var(--bg);
  min-height: 100vh;
  padding-top: 70px;
}

.dash-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 2.5rem 5%;
  border-bottom: 3px solid var(--orange);
}

.dash-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-header__greeting {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.dash-header__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.dash-header__name em {
  font-style: normal;
  color: var(--orange-light);
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,60,110,0.12);
}

.stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.stat-card__icon--orange { background: var(--orange-pale); }
.stat-card__icon--blue   { background: var(--blue-light);  }
.stat-card__icon--green  { background: #DCFCE7; }

.stat-card__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.module-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(26,60,110,0.14);
}

.module-card__header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.module-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  flex-shrink: 0;
}

.module-card__header-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white);
  line-height: 1.3;
}

.module-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.module-card__duration {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.module-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Cert banner */
.cert-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--orange);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cert-banner__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.cert-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.cert-banner__text { color: rgba(255,255,255,0.65); font-size: 0.88rem; }

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

/* ─── 15. Hero image overlay ───────────────────────── */
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,35,71,0.25) 0%, transparent 60%);
  pointer-events: none;
}

/* Image de fond section */
.section-bg-img {
  position: relative;
  overflow: hidden;
}

.section-bg-img > .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.section-bg-img > .bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.section-bg-img > .container {
  position: relative;
  z-index: 2;
}

/* ─── 16. Feature list ─────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-sec);
  line-height: 1.5;
}

.feature-list__item .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── 17. Section header centered ──────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header .heading-lg { margin-bottom: 0.75rem; }

.section-header p {
  color: var(--text-sec);
  font-size: 1rem;
  line-height: 1.7;
}

.section-sep {
  width: 56px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0.75rem auto 1rem;
}

/* ─── 18. Stat strip ───────────────────────────────── */
.stat-strip {
  background: var(--orange-pale);
  border-top: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  padding: 2rem 5%;
}

.stat-strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-strip__value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-strip__label {
  font-size: 0.82rem;
  color: var(--text-sec);
  margin-top: 0.3rem;
}

/* ─── 19. Pricing card ─────────────────────────────── */
.pricing-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
}

.pricing-card__promo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--orange);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.pricing-card__old-price {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.25rem;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-card__price sup {
  font-size: 1.2rem;
  vertical-align: super;
}

.pricing-card__price-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 2rem;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-sec);
}

.pricing-feature .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: white;
  flex-shrink: 0;
}

/* ─── 20. Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 3rem 5%; }

  /* ── Navbar mobile ── */
  .navbar__panel  { display: none; }
  .navbar__toggle { display: flex; }

  .navbar__panel.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    padding: 1.25rem 5% 1.5rem;
    gap: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 999;
  }

  .navbar__panel.open .navbar__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .navbar__panel.open .navbar__links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
  }

  .navbar__panel.open .navbar__right {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    padding-top: 1rem;
  }

  .navbar__panel.open .navbar__right .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
  }

  /* ── Grilles ── */
  .auth-layout { grid-template-columns: 1fr; }
  .auth-layout__left { display: none; }
  .auth-layout__right { padding: 2rem 1.5rem; min-height: 100vh; }

  .grid-2  { grid-template-columns: 1fr; }
  .grid-3  { grid-template-columns: 1fr; }
  .grid-4  { grid-template-columns: repeat(2, 1fr); }

  .stat-strip__inner { grid-template-columns: repeat(2, 1fr); }

  /* ── Footer ── */
  .footer__inner  { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  /* ── Formulaires ── */
  .form-row { grid-template-columns: 1fr; }

  /* ── Typo ── */
  .heading-xl { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .heading-lg { font-size: clamp(1.4rem, 5vw, 2rem); }

  /* ── Dashboard user ── */
  .dash-header__inner { flex-direction: column; align-items: flex-start; }
  .cert-banner { flex-direction: column; text-align: center; }

  /* ── Module grid : 2 colonnes sur tablette ── */
  .modules-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* ── Hero image min-height ── */
  .hero-img-wrap img { min-height: 240px; }
}

@media (max-width: 480px) {
  :root { --section-pad: 2.5rem 4%; }

  .grid-4            { grid-template-columns: 1fr 1fr; }
  .stat-strip__inner { grid-template-columns: 1fr 1fr; }
  .modules-grid      { grid-template-columns: 1fr !important; }

  .pricing-card       { padding: 1.75rem 1.25rem; }
  .pricing-card__price { font-size: 2.4rem; }

  .btn--lg { padding: 0.9rem 1.5rem; font-size: 0.95rem; }

  /* Auth — supprime le padding latéral excessif */
  .auth-layout__right { padding: 1.5rem 1.25rem; }
  .auth-form-wrap     { max-width: 100%; }

  /* Stepper compact */
  .stepper__label { font-size: 0.65rem; }

  /* Stat strip : 1 colonne en très petit */
  .stat-strip__value { font-size: 1.8rem; }
}
