/* ═══════════════════════════════════════════════════════════
   LANDING.CSS — Kollecta Landing Page
   Animations Apple-style · Fond blanc · Institutionnel CI
   ═══════════════════════════════════════════════════════════ */

/* ── Assurer le fond blanc sur body pour les pages de login ── */
body.no-sidenav {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

html.no-sidenav,
body.no-sidenav {
  background: #ffffff !important;
}

body.no-sidenav .page-loader.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── Scroll container ──────────────────────────────────────── */
#login-scroll-container {
  position: relative;
  z-index: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #ffffff !important;
  min-height: 100vh;
  color: #000;
}

#login-scroll-container a,
#login-scroll-container a:hover,
#login-scroll-container a:focus,
#login-scroll-container a:active {
  text-decoration: none;
}

/* ══════════════════════════════════
   1. STRIPE TRICOLORE CI
═══════════════════════════════════ */
.ci-stripe {
  height: 3px;
  background: linear-gradient(90deg,
    #E8830A 33.33%,
    #ffffff 33.33% 66.66%,
    #1A6B3A 66.66%
  );
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ══════════════════════════════════
   2. HEADER
═══════════════════════════════════ */
.ld-header {
  position: sticky;
  top: 3px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0 5vw;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ld-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-deep);
}

.ld-brand img {
  height: 30px;
  width: auto;
}

.ld-brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

.ld-brand-name em {
  font-style: italic;
  color: var(--ci-green);
}

.ld-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ld-nav-ghost {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 140ms var(--ease), background 140ms var(--ease);
}

.ld-nav-ghost:hover {
  color: var(--navy-deep);
  background: var(--bg-subtle);
}

.ld-nav-primary {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy-deep);
  padding: 9px 20px;
  border-radius: 10px;
  transition: background 160ms var(--ease), transform 160ms var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ld-nav-primary:hover {
  background: var(--slate-dark);
  transform: translateY(-1px);
  color: #fff;
}

.ld-nav-primary:active {
  transform: translateY(0) scale(0.97);
}

/* ══════════════════════════════════
   3. HERO
═══════════════════════════════════ */
.ld-hero {
  height: calc(100vh - 67px);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  gap: 2rem;
  padding: 3rem 0 3rem 5vw;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* Halo subtil uniquement côté gauche (texte) — droite reste blanc pur
   pour que la vidéo fonde sans rectangle visible */
.ld-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 15% 80%, rgba(26, 107, 58, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 20%, rgba(200, 169, 110, 0.04) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Texte gauche ── */
.ld-hero-text {
  position: relative;
  z-index: 1;
}

.ld-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ci-green);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.1s forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ld-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* Titre principal — révélation ligne par ligne */
.ld-mega {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 7.5vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--navy-deep);
  margin-bottom: 1.75rem;
}

.ld-mega-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.ld-mega-line > span {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  animation: lineReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ld-mega-line:nth-child(1) > span { animation-delay: 0.28s; }
.ld-mega-line:nth-child(2) > span { animation-delay: 0.44s; }
.ld-mega-line:nth-child(3) > span { animation-delay: 0.60s; }

.ld-mega-accent { color: var(--ci-green); }
.ld-mega-gold   { color: var(--gold-civic); }

.ld-hero-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.78s forwards;
}

.ld-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Stagger d'entrée sur chaque bouton */
.ld-hero-ctas .ld-cta-primary {
  opacity: 0;
  animation: fadeUp 0.55s ease 0.92s forwards;
}

.ld-hero-ctas .ld-cta-secondary {
  opacity: 0;
  animation: fadeUp 0.55s ease 1.05s forwards;
}

.ld-cta-primary {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy-deep);
  padding: 14px 28px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 200ms, transform 200ms, box-shadow 200ms;
  box-shadow: 0 4px 20px rgba(13, 24, 33, 0.22);
}

.ld-cta-primary:hover {
  background: var(--slate-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 24, 33, 0.28);
  color: #fff;
}

.ld-cta-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 10px rgba(13, 24, 33, 0.18);
}

.ld-cta-secondary {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy-deep);
  background: transparent;
  border: 1.5px solid var(--border-strong);
  padding: 13px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 180ms, background 180ms, transform 180ms;
}

.ld-cta-secondary:hover {
  border-color: var(--navy-deep);
  background: var(--bg-subtle);
  transform: translateY(-2px);
  color: var(--navy-deep);
}

.ld-cta-secondary:active {
  transform: translateY(0) scale(0.97);
  background: var(--bg-subtle);
}

/* ── Visuel droite (vidéo) ── */
.ld-hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: heroMediaIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  /* Débordement à droite : l'éléphant sort de la grille, effet immersif */
  margin-right: -8vw;
}

/* Anneaux masqués — éléphant fond directement dans la page */
.ld-video-ring { display: none; }

/* Conteneur vidéo qui flotte */
.ld-video-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  animation: heroFloat 7s ease-in-out 1.5s infinite;
}

.ld-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  /* Pas de border-radius ni box-shadow : le fond blanc de la vidéo
     se fond dans le fond blanc de la page — éléphant flottant */
}

/* Badge statut système flottant sous la vidéo */
.ld-sys-badge {
  position: absolute;
  bottom: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.73rem;
  color: var(--text-secondary);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  animation: fadeUp 0.5s ease 1.3s forwards;
}

.ld-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ══════════════════════════════════
   4. STATS DARK BAND
═══════════════════════════════════ */
.ld-stats {
  background: var(--navy-deep);
  padding: 6rem 5vw;
  position: relative;
  overflow: hidden;
}

.ld-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(200, 169, 110, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

.ld-stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.ld-stat-block {
  text-align: center;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ld-stat-block.in-view { opacity: 1; transform: translateY(0); }
.ld-stat-block:nth-child(2) { transition-delay: 0.12s; }
.ld-stat-block:nth-child(3) { transition-delay: 0.24s; }
.ld-stat-block:nth-child(4) { transition-delay: 0.36s; }

.ld-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--gold-civic);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ld-stat-unit {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--gold-light);
}

.ld-stat-prefix {
  font-size: 0.65em;
  vertical-align: baseline;
  color: var(--gold-light);
  margin-right: 2px;
}

.ld-stat-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ══════════════════════════════════
   5. SECTION MAP — Carte CI interactive
═══════════════════════════════════ */

.map-trigger-outer {
  height: 220vh;
  position: relative;
  background: #ffffff;
}

.map-sticky-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
}

/* ── CTAs aux 4 coins ──────────────────────────────────────── */
.map-cta {
  position: absolute;
  width: clamp(250px, 18.5vw, 300px);
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  border-left-width: 4px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  z-index: 10;
  opacity: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.map-cta:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.11);
}

/* Couleur de la bordure gauche + fond teinté par thème */
#cta-recensement { border-left-color: var(--ci-green);   background: #f5faf7; }
#cta-collecte    { border-left-color: var(--ci-orange);  background: #fff8f2; }
#cta-vision      { border-left-color: var(--navy-deep);  background: #f5f6f8; }
#cta-conformite  { border-left-color: #C8A96E;           background: #fdf9f3; }

.map-cta--tl { left: 3vw;  top: 15vh; }
.map-cta--bl { left: 3vw;  bottom: 14vh; }
.map-cta--tr { right: 3vw; top: 15vh; }
.map-cta--br { right: 3vw; bottom: 14vh; }

.map-cta-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  margin-bottom: 12px;
}

#cta-recensement .map-cta-icon { background: rgba(26,107,58,0.10);  color: var(--ci-green);  }
#cta-collecte    .map-cta-icon { background: rgba(232,131,10,0.12); color: var(--ci-orange); }
#cta-vision      .map-cta-icon { background: rgba(13,24,33,0.08);   color: var(--navy-deep); }
#cta-conformite  .map-cta-icon { background: rgba(200,169,110,0.15);color: #9a7040;          }

.map-cta strong {
  display: block;
  font-family: var(--font-body);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.28;
  margin-bottom: 8px;
}

.map-cta p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #435468;
  line-height: 1.68;
  max-width: 34ch;
  margin: 0;
}

/* ── Centre : SVG carte ────────────────────────────────────── */
.map-center-stage {
  position: relative;
  width:  min(58vh, 520px);
  height: min(65vh, 585px);
}

#ci-map-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
}

/* ── Sections suivantes (partagent ces classes) ───────────── */
.ld-section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ci-orange);
  display: block;
  margin-bottom: 0.9rem;
}

.ld-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--navy-deep);
  margin-bottom: 1rem;
}

.ld-section-title em {
  font-style: italic;
  color: var(--ci-green);
}

.ld-section-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════
   7. FEATURES GRID
═══════════════════════════════════ */
.ld-features {
  padding: 7rem 5vw;
  background: var(--bg-subtle);
}

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

.ld-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.ld-feat-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 220ms, border-color 220ms;
}

.ld-feat-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.ld-feat-card:nth-child(2) { transition-delay: 0.08s; }
.ld-feat-card:nth-child(3) { transition-delay: 0.16s; }
.ld-feat-card:nth-child(4) { transition-delay: 0.04s; }
.ld-feat-card:nth-child(5) { transition-delay: 0.12s; }
.ld-feat-card:nth-child(6) { transition-delay: 0.20s; }

.ld-feat-card:hover {
  box-shadow: 0 10px 40px rgba(13, 24, 33, 0.10);
  border-color: var(--border-strong);
  transform: translateY(-4px) !important;
}

.ld-feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.ld-feat-icon--green  { background: rgba(26, 107, 58, 0.10);  color: var(--ci-green); }
.ld-feat-icon--orange { background: rgba(232, 131, 10, 0.10); color: var(--ci-orange); }
.ld-feat-icon--navy   { background: rgba(13, 24, 33, 0.07);   color: var(--navy-deep); }
.ld-feat-icon--gold   { background: rgba(200, 169, 110, 0.15); color: #9a7040; }

.ld-feat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.5rem;
}

.ld-feat-desc {
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════
   8. HOW IT WORKS
═══════════════════════════════════ */
.ld-how {
  padding: 7rem 5vw;
  background: #fff;
}

.ld-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 3.5rem auto 0;
  position: relative;
}

/* Ligne connectrice horizontale */
.ld-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--border-light) 0%, var(--gold-civic) 50%, var(--border-light) 100%);
}

.ld-step {
  text-align: center;
  padding: 0 0.75rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ld-step.in-view { opacity: 1; transform: translateY(0); }
.ld-step:nth-child(2) { transition-delay: 0.10s; }
.ld-step:nth-child(3) { transition-delay: 0.20s; }
.ld-step:nth-child(4) { transition-delay: 0.30s; }

.ld-step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--gold-civic);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(13, 24, 33, 0.22);
}

.ld-step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.4rem;
}

.ld-step-desc {
  font-family: var(--font-body);
  font-size: 0.79rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════
   9. CTA BAND FINAL (fond sombre)
═══════════════════════════════════ */
.ld-cta-band {
  background: var(--navy-deep);
  padding: 7rem 5vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ld-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(200, 169, 110, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.ld-cta-band-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 16px rgba(200,169,110,0.35));
}

.ld-cta-band-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  line-height: 1.08;
  margin-bottom: 1rem;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.ld-cta-band-title.in-view {
  opacity: 1;
  transform: translateY(0);
}

.ld-cta-band-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.55) !important;
  margin-bottom: 2.25rem;
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}
.ld-cta-band-sub.in-view {
  opacity: 1;
  transform: translateY(0);
}

.ld-cta-band-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-deep);
  background: var(--gold-civic);
  padding: 16px 38px;
  border-radius: 14px;
  position: relative;
  /* Entrée au scroll */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              background 200ms,
              box-shadow 200ms;
}

.ld-cta-band-btn.in-view {
  opacity: 1;
  transform: translateY(0);
}

.ld-cta-band-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  color: var(--navy-deep);
  box-shadow: 0 8px 32px rgba(200, 169, 110, 0.40);
  transition: background 200ms, transform 200ms, box-shadow 200ms;
}

.ld-cta-band-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
  transition: background 200ms, transform 100ms, box-shadow 100ms;
}

/* ══════════════════════════════════
   10. FOOTER
═══════════════════════════════════ */
.ld-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.25rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ld-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.ld-footer-brand img {
  height: 34px;
  width: 34px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ld-footer-brand-accent {
  font-style: italic;
  color: var(--gold-civic);
}

.ld-footer-links {
  display: flex;
  gap: 1.5rem;
}

.ld-footer-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 140ms;
}

.ld-footer-links a:hover {
  color: #ffffff;
}

.ld-footer-copy {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.ld-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.ld-footer-signature {
  font-size: 0.68rem;
  font-style: italic;
}

/* ══════════════════════════════════
   11. KEYFRAMES
═══════════════════════════════════ */
@keyframes lineReveal {
  from { opacity: 0; transform: translateY(110%); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes heroMediaIn {
  from { opacity: 0; transform: scale(0.93) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-14px) rotate(0.4deg); }
  66%       { transform: translateY(-8px) rotate(-0.3deg); }
}

/* ══════════════════════════════════
   12. RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1024px) {
  .ld-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3.5rem;
    gap: 3rem;
  }
  .ld-hero-text { order: 2; }
  .ld-hero-media { order: 1; max-width: 420px; margin: 0 auto; }
  .ld-hero-sub { margin: 0 auto 2rem; }
  .ld-hero-ctas { justify-content: center; }
  .ld-eyebrow { justify-content: center; }

  .ld-stats-inner { grid-template-columns: repeat(2, 1fr); }

  /* Map section : CTAs cachés sur tablette/mobile */
  .map-cta { display: none; }
  .map-center-stage {
    width:  min(80vw, 380px);
    height: min(90vw, 430px);
  }

  .ld-features-grid { grid-template-columns: repeat(2, 1fr); }
  .ld-steps { grid-template-columns: repeat(2, 1fr); }
  .ld-steps::before { display: none; }
}

@media (max-width: 1366px) {
  .map-cta {
    width: 250px;
    padding: 18px 20px;
  }

  .map-cta strong {
    font-size: 0.98rem;
  }

  .map-cta p {
    font-size: 0.9rem;
  }

  .map-center-stage {
    width: min(54vh, 500px);
    height: min(62vh, 560px);
  }
}

@media (max-width: 768px) {
  #login-scroll-container {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #ffffff !important;
  }
  
  .ld-header { padding: 0 4vw; height: 56px; }
  .ld-nav { gap: 6px; }
  .ld-nav-ghost { display: none; }
  .ld-nav-primary { font-size: 0.8rem; padding: 8px 16px; }
  
  .ld-hero { 
    padding: 2rem 3vw 2rem;
    gap: 2rem;
    min-height: auto;
  }
  
  .ld-mega {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.25rem;
  }
  
  .ld-hero-ctas { 
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .ld-cta-primary, .ld-cta-secondary {
    font-size: 0.85rem;
    padding: 11px 18px;
  }
  
  .ld-video-wrap {
    max-width: 280px;
  }
  
  .ld-sys-badge {
    font-size: 0.65rem;
    padding: 6px 12px;
    bottom: -0.8rem;
  }
  
  .ld-stats { padding: 3rem 3vw; }
  .ld-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  
  .ld-stat-num {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  
  .ld-stat-label {
    font-size: 0.65rem;
  }
}

@media (max-width: 640px) {
  .ld-header { 
    padding: 0 3vw;
    height: 52px;
  }
  
  .ld-header .d-flex {
    gap: 8px;
  }
  
  .ld-brand-name {
    font-size: 1rem;
  }
  
  .ld-hero { 
    padding: 1.5rem 3vw 2rem;
    gap: 1.5rem;
  }
  
  .ld-mega {
    font-size: clamp(1.8rem, 5.5vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1;
  }
  
  .ld-mega-line > span {
    transform: translateY(100%);
  }
  
  .ld-eyebrow {
    font-size: 0.6rem;
    margin-bottom: 1rem;
  }
  
  .ld-hero-sub {
    font-size: 0.9rem;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .ld-cta-primary, .ld-cta-secondary {
    font-size: 0.8rem;
    padding: 10px 16px;
    flex: 1;
    min-width: 130px;
  }
  
  .ld-hero-ctas {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }
  
  .ld-video-wrap {
    max-width: 100%;
    width: 100%;
  }
  
  .ld-sys-badge {
    font-size: 0.6rem;
    padding: 5px 10px;
    bottom: -0.6rem;
  }
  
  .ld-stats { padding: 2rem 3vw; }
  .ld-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  
  .ld-stat-num {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  }
  
  .ld-stat-label {
    font-size: 0.6rem;
    margin-top: 4px;
  }
  
  .ld-nav-ghost { display: none; }
  .ld-features { padding: 3rem 3vw; }
  .ld-features-grid { grid-template-columns: 1fr; }
  .ld-how { padding: 3rem 3vw; }
  .ld-steps { grid-template-columns: 1fr; }
  .ld-cta-band { padding: 3rem 3vw; }
  .ld-footer { flex-direction: column; text-align: center; gap: 0.75rem; }
  .ld-footer-links { justify-content: center; }
  .ld-footer-meta { align-items: center; }
}

/* ── Carte CI : rythme plus vidéo + cartes visibles sur mobile ── */
.map-trigger-outer {
  height: 185vh;
}

@media (max-width: 1024px) {
  .map-trigger-outer {
    height: 175vh;
  }

  .map-sticky-panel {
    min-height: 100svh;
    padding: clamp(3.75rem, 8vh, 5.5rem) clamp(0.75rem, 3vw, 1.25rem) clamp(3rem, 7vh, 4.5rem);
  }

  .map-center-stage {
    width: min(88vw, 410px);
    height: min(96vw, 462px);
  }

  .map-cta {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    width: clamp(138px, 31vw, 184px);
    padding: 0.62rem 0.72rem;
    border-left-width: 3px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 8px 22px rgba(13, 24, 33, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .map-cta-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    margin: 0;
    border-radius: 8px;
    font-size: 0.82rem;
  }

  .map-cta strong {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.16;
  }

  .map-cta p {
    display: none;
  }

  .map-cta--tl { left: max(10px, 3vw); top: clamp(66px, 9vh, 96px); }
  .map-cta--tr { right: max(10px, 3vw); top: clamp(66px, 9vh, 96px); }
  .map-cta--bl { left: max(10px, 3vw); bottom: clamp(34px, 7vh, 72px); }
  .map-cta--br { right: max(10px, 3vw); bottom: clamp(34px, 7vh, 72px); }
}

@media (max-width: 640px) {
  .map-trigger-outer {
    height: 165vh;
  }

  .map-sticky-panel {
    padding: 4.2rem 0.75rem 4.75rem;
  }

  .map-center-stage {
    width: min(92vw, 360px);
    height: min(102vw, 410px);
  }

  .map-cta {
    width: clamp(126px, 43vw, 166px);
    gap: 0.45rem;
    padding: 0.52rem 0.58rem;
  }

  .map-cta-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 0.72rem;
  }

  .map-cta strong {
    font-size: 0.67rem;
  }

  .map-cta--tl,
  .map-cta--tr {
    top: clamp(58px, 8vh, 76px);
  }

  .map-cta--bl,
  .map-cta--br {
    bottom: clamp(24px, 6vh, 48px);
  }
}

@media (max-width: 380px) {
  .map-cta {
    width: 44vw;
    padding: 0.48rem 0.5rem;
  }

  .map-cta strong {
    font-size: 0.62rem;
  }
}


/* ── Signature Comafrique ── */
.ld-comafrique-sig {
  font-size: 0.75rem;
  font-style: italic;
  margin-top: 1.5rem;
  opacity: 0;
  animation: ld-sig-fadein 0.6s ease-out 1.1s forwards;
}

@keyframes ld-sig-fadein {
  to { opacity: 1; }
}

/* ── Shining text — redéfini avec variables disponibles sur la landing ── */
.shining-text {
  background: linear-gradient(
    90deg,
    #64748b 0%,
    #c8a96e 34%,
    #f6dfaa 50%,
    #c8a96e 66%,
    #64748b 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shining-ld 2.7s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(200, 169, 110, 0.18);
}

#login-scroll-container .ld-sys-badge .shining-text {
  background: linear-gradient(
    90deg,
    #0d1821 0%,
    #0d1821 26%,
    #9c8456 39%,
    #f6dfaa 50%,
    #c8a96e 61%,
    #0d1821 74%,
    #0d1821 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 12px rgba(200, 169, 110, 0.22);
}

@keyframes shining-ld {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Header : logo éléphant 3D ── */
.ld-brand img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  border-radius: 50%;
}

/* ── Header : signature Comafrique ── */
.ld-comafrique-header {
  font-size: 0.72rem;
  font-style: italic;
  margin-right: 0.5rem;
}

/* ── Footer : logo éléphant ── */
.ld-footer-brand img {
  height: 42px !important;
  width: 42px !important;
  object-fit: contain !important;
  filter: none !important;
  opacity: 1 !important;
  border-radius: 50% !important;
  background: #ffffff;
  padding: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ld-eyebrow,
  .ld-mega-line > span,
  .ld-hero-sub,
  .ld-hero-ctas .ld-cta-primary,
  .ld-hero-ctas .ld-cta-secondary,
  .ld-hero-media,
  .ld-sys-badge,
  .ld-comafrique-sig {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
