/* ============================================================
   CARTABILIS — custom.css pour Helix Ultimate
   ============================================================ */

/* ── IMPORTS POLICES ── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── VARIABLES GLOBALES ── */
:root {
  --beige:        #f7f4ef;
  --white:        #ffffff;
  --amber:        #d97706;
  --amber-hover:  #b45309;
  --amber-light:  #fef3c7;
  --amber-mid:    #fde68a;
  --slate-900:    #0f172a;
  --slate-700:    #334155;
  --slate-500:    #64748b;
  --slate-300:    #cbd5e1;
  --slate-200:    #e2e8f0;
  --slate-50:     #f8fafc;

  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 2px 16px rgba(15,23,42,0.07);
  --shadow-hover: 0 8px 32px rgba(15,23,42,0.13);
  --transition:   .2s ease;
}

/* ── RESET DE BASE ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── TYPOGRAPHIE GLOBALE ── */
body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--beige);
  color: var(--slate-900);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate-900);
}

p { color: var(--slate-700); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--amber); }

/* ── CONTENEUR ── */
.container, .container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════════════════
   SECTIONS COMMUNES
════════════════════════════════════════ */
.section-padding { padding: 72px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.section-subtitle { color: var(--slate-500); font-size: 15px; }

.link-all {
  color: var(--slate-700);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color var(--transition);
}
.link-all:hover { color: var(--amber); }

/* ════════════════════════════════════════
   BOUTONS
════════════════════════════════════════ */
.btn-cartabilis,
.btn-cartabilis-amber,
.btn-cartabilis-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background var(--transition), transform var(--transition);
}
.btn-cartabilis { background: var(--slate-900); color: var(--white); }
.btn-cartabilis:hover { background: var(--slate-700); color: var(--white); transform: translateY(-1px); }
.btn-cartabilis-amber { background: var(--amber); color: var(--white); }
.btn-cartabilis-amber:hover { background: var(--amber-hover); color: var(--white); transform: translateY(-1px); }
.btn-cartabilis-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn-cartabilis-outline:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); color: var(--white); transform: translateY(-1px); }

/* ════════════════════════════════════════
   CARTES
════════════════════════════════════════ */
.card-cartabilis {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  overflow: hidden;
}
.card-cartabilis:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: transparent;
}

/* ════════════════════════════════════════
   BADGES NIVEAUX (pistes de ski — 3 niveaux)
════════════════════════════════════════ */
.badge-cartabilis {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
}
.badge-facile        { background: #4ade80; color: #14532d; }
.badge-intermediaire { background: #38bdf8; color: #0c4a6e; }
.badge-difficile     { background: #f87171; color: #7f1d1d; }
.badge-neutre        { color: var(--slate-700); border: 1.5px solid var(--slate-200); background: var(--slate-50); }

.niveau-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-facile        { background: #14532d; }
.dot-intermediaire { background: #0c4a6e; }
.dot-difficile     { background: #7f1d1d; }

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-up { animation: fadeUp .6s ease forwards; }
.delay-1 { animation-delay: .05s; }
.delay-2 { animation-delay: .12s; }
.delay-3 { animation-delay: .20s; }
.delay-4 { animation-delay: .28s; }
.delay-5 { animation-delay: .36s; }

/* ════════════════════════════════════════
   SECTIONS SPÉCIFIQUES
════════════════════════════════════════ */
.hero-section {
  background: linear-gradient(180deg, var(--beige) 60%, var(--white) 100%);
  padding: 80px 24px 72px;
  text-align: center;
}

.cta-signup-section {
  background: linear-gradient(90deg, #fefce8, #fef3c7, #fefce8);
  border-top: 1px solid var(--amber-mid);
  border-bottom: 1px solid var(--amber-mid);
  padding: 40px 24px;
}

.cta-final-section {
  background: var(--slate-900);
  padding: 72px 24px;
  text-align: center;
}
.cta-final-section h2 { color: var(--white); }
.cta-final-section p  { color: #94a3b8; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

.footer-brand h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 12px;
}
.footer-brand p { color: var(--slate-500); line-height: 1.7; }

.footer-col h4 {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a  { color: var(--slate-500); font-size: 14px; transition: color var(--transition); }
.footer-col a:hover { color: var(--slate-900); }

.footer-bottom {
  text-align: center;
  padding: 20px 24px 0;
  border-top: 1px solid var(--slate-200);
  color: var(--slate-500);
  font-size: 13px;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .hero-section { padding: 60px 20px 52px; }
}

@media (max-width: 480px) {
  .section-padding { padding: 52px 0; }
}#sp-header { padding: 0 !important; }
#sp-header .sp-header-inner { padding: 0 !important; }

/* Supprimer l'espace blanc sous le header */
#sp-main-body { margin-top: 0 !important; padding-top: 0 !important; }
#sp-content { margin-top: 0 !important; padding-top: 0 !important; }
.sp-main-body { margin-top: 0 !important; }
/* Supprimer l'espace blanc entre header et contenu */
#sp-bottom,
.hero-search-row,
#sp-top,
.sp-top {
  padding: 0 !important;
  margin: 0 !important;
}