/* ==========================================================================
= VARIABLES & ROOT
========================================================================== */
:root {
  --bg:#ffffff;
  --text:#141414;
  --muted:#6b7280;
  --border:#eaeaea;
  --primary:#6C5CE7;
  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.06);
  --transition: all 0.4s cubic-bezier(.25,.8,.25,1);
  --container-width: 1400px;
  --section-padding: 80px 0;
  --card-padding: 24px;
}

/* ==========================================================================
= RESET & BASE
========================================================================== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'Inter', system-ui, Roboto, Arial, sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; }

/* ==========================================================================
= TOUCH SUPPORT (mobile hover handling)
========================================================================== */
@media (hover: none) and (pointer: coarse) {
  .challenge-card-mini:hover { transform: none; }
  .challenge-card-mini:active { transform: scale(0.98); }
  .card:hover { transform: none; }
  .card:active { transform: scale(0.98); }
}

/* ==========================================================================
= LAYOUT & CONTAINERS
========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: var(--section-padding); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 20px;
}

/* ==========================================================================
= TYPOGRAPHY HELPERS (sections & headings)
========================================================================== */
h2 {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  margin: 0 0 10px;
  font-weight: 800;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 38px;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ==========================================================================
= GENERIC CARDS
========================================================================== */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-padding);
  background: #fff;
  transition: var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ==========================================================================
= HEADER & NAVIGATION
========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  padding-bottom: 14px;
  padding-left: 1.5rem;
  padding-right: 1rem;
}

.main-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  min-width: 0;
  margin: 0 16px;
  overflow: hidden;
}

.nav-links .nav-item {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links .nav-item:hover {
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* ========================================================================== 
= PROFILE MENU (avatar + dropdown)
========================================================================== */
.role-pills {
  display: inline-flex;
  gap: 10px;
  background: #f6f7f9;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
}
.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  transition: var(--transition);
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.role-pill i { font-size: 18px; color: var(--primary); }
.role-pill:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.role-pill:focus-visible { outline: 3px solid rgba(108, 92, 231, 0.35); outline-offset: 2px; }
.role-pill.is-active { border-color: var(--primary); box-shadow: 0 6px 20px rgba(108,92,231,.12); }
.role-pill.is-active i { color: var(--primary); }
.role-pill[aria-pressed="true"] { border-color: var(--primary); }
.is-hidden { display: none !important; }
.profile-menu {
  position: relative;
}
.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  color: var(--text);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.profile-btn .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(108,92,231,.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.profile-btn .name {
  font-weight: 600;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-btn .caret {
  opacity: .7;
  font-size: 16px;
  line-height: 1;
  color: var(--text);
}

.profile-dropdown {
  position: absolute;
  /* Overlap slightly with the button to avoid losing :hover when moving cursor */
  top: calc(100% - 4px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 10px 6px 6px;
  z-index: 1000;
  display: none;
}

/* Show on hover, focus within, or when toggled via JS */
.profile-menu:hover .profile-dropdown,
.profile-menu:focus-within .profile-dropdown,
.profile-menu.is-open .profile-dropdown {
  display: block;
}

.profile-dropdown .dropdown-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.profile-dropdown .dropdown-item:hover {
  background: #f6f7f9;
}

/* ==========================================================================
= BUTTONS (generic + variants) & CTAs
========================================================================== */
.btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }

.cta {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #fff;
  transition: var(--transition);
}
.cta.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.cta.secondary { background: #f6f7f9; }
.cta:hover { transform: translateY(-3px); box-shadow: var(--shadow); opacity: 0.95; }

/* ==========================================================================
= HERO
========================================================================== */
.hero { padding: 80px 0 0; text-align: center; }

h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead { max-width: 700px; margin: 0 auto 26px; color: var(--muted); }

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-illustration { margin-top: 46px; }
.art { width: 100%; max-width: 1200px; margin: 0 auto; border-radius: 22px; overflow: hidden; }

/* ==========================================================================
= COMBINED SECTIONS (value + how it works)
========================================================================== */
.combined-sections {
  padding-top: 40px;
  padding-bottom: 80px;
  background: #fff;
}

.sections-wrapper {
  display: flex;
  flex-direction: row;
  gap: 180px;
  align-items: center;
  justify-content: space-around;
  margin: 0 auto;
}

.value-section {
  flex: 1;
  max-width: 600px;
}

.how-section {
  flex: 1;
  max-width: 700px;
}

.value-section .value-content {
  display: flex;
  flex-direction: column;
  gap: 0px;
  text-align: center;
}

.value-section .value-visual {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Combined sections responsive behavior */
@media (max-width: 1000px) {
  .sections-wrapper { gap: 56px; }
   .sections-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .how-item{
    grid-template-columns: none !important;
    text-align: center !important;
  }
  .how-num{
    margin: 0 auto !important;
  }
  /* Center the separator line under each item on mobile */
  .how-sep {
    margin: 18px auto !important;
    width: 90% !important;
  }
  .value-section, .how-section { max-width: 720px; width: 90%; }
}

/* ==========================================================================
= HOW-IT-WORKS SLIDER (composant slider cartes étapes)
========================================================================== */
.how-it-works-slider { padding: 100px 0 90px 0; background: #fff; }

.how-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* Focus-visible rings for accessibility */
.how-slider:focus-visible {
  outline: 3px solid rgba(108, 92, 231, 0.35);
  outline-offset: 4px;
  border-radius: 14px;
}

.how-step-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(30,30,60,0.10);
  border: none;
  padding: 48px 32px;
  min-width: 0;
  width: 100%;
  max-width: 420px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .3s, opacity .4s cubic-bezier(.4,0,.2,1), transform .4s cubic-bezier(.4,0,.2,1);
  opacity: 1;
  will-change: opacity, transform;
}

.how-step-card h3 {
  margin: 0 0 18px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #23234c;
  text-align: center;
  letter-spacing: -0.01em;
}

.how-step-card p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  text-align: center;
  margin: 0;
}

.how-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.how-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d9d9e8;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.how-dot[aria-pressed="true"] { background: var(--primary); transform: scale(1.25); }
.how-dot:focus-visible { outline: 2px solid rgba(108, 92, 231, 0.45); outline-offset: 2px; }

.how-arrow {
  background: #f5f5fa;
  color: #23234c;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(30,30,60,0.06);
  border: 1px solid #ececf6;
}
.how-arrow:hover { background: #ececf6; }
.how-arrow:focus-visible {
  outline: 3px solid rgba(108, 92, 231, 0.45);
  outline-offset: 2px;
}

/* ==========================================================================
= HOW-IT-WORKS STARTUP STYLE (cards)
========================================================================== */
.how-startup { margin-top: 20px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.how-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(20,20,40,0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.how-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 34px rgba(20,20,40,0.10);
  border-color: rgba(108, 92, 231, 0.25);
}
.how-card h3 {
  margin: 12px 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.how-card p { color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.how-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.how-pill {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f7f7fb;
  color: #4b5563;
  font-size: .8rem; font-weight: 600;
  border: 1px solid #ececf6;
}

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .how-card { padding: 20px; }
}

/* ==========================================================================
= HOW-IT-WORKS VERTICAL STEPS
========================================================================== */
.how-vertical { margin-top: 16px; }
.how-list { max-width: 780px; margin: 0 auto; }
.how-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 20px;
  padding: 10px 0;
}
.how-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
}
.how-content h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.how-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.how-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0 18px 68px; /* aligns with content after number pill */
}

@media (max-width: 600px) {
  .how-num { width: 44px; height: 44px; border-radius: 10px; }
  .how-sep { margin-left: 64px; }
}

/* ==========================================================================
= CHALLENGES (section & carrousel)
========================================================================== */
.challenges { padding: 72px 0; background: #ffffff; }

/* Full-bleed carousel wrapper */
.challenges-carousel {
  padding: 80px 0;
  background: #ffffff;
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.challenges-carousel .container {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

.carousel-wrapper {
  overflow-x: hidden;
  overflow-y: visible;
  margin-top: 40px;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  position: static;
  left: unset;
  right: unset;
  /* Disable momentum/gesture scroll to avoid touch dragging */
  -webkit-overflow-scrolling: auto;
  touch-action: none;
  background: transparent;
  scrollbar-width: none; /* Firefox */
  transform: translateZ(0);
  backface-visibility: hidden;
}
.carousel-wrapper::-webkit-scrollbar { display: none; } /* Chrome, Safari, Opera */

.carousel-track {
  display: flex;
  gap: 40px;
  animation: scroll-left 15s linear infinite;
  /* Let the track size to its content to avoid white gaps on wide screens */
  width: max-content;
  min-width: max-content;
  padding: 20px 0;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  flex-wrap: nowrap;
  contain: content; /* contain layout/paint for smoother perf */
  /* iOS GPU hack: force composite layer, prevent flicker */
  -webkit-transform: translateZ(0) scale(1.01);
  transform: translateZ(0) scale(1.01);
  -webkit-perspective: 1000;
  perspective: 1000;
}
.carousel-track:hover { animation-play-state: running; }

@keyframes scroll-left {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* When JS marquee is active, disable CSS animation to avoid desync/gaps */
.carousel-track.js-marquee {
  animation: none !important;
}

/* Mini challenge card (carrousel items) */
.challenge-card-mini {
  flex: 0 0 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  height: 400px;
  display: flex;
  flex-direction: column;
}
.challenge-card-mini:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  border-color: rgba(108, 92, 231, 0.2);
}

.card-media-mini {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.card-media-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.challenge-card-mini:hover .card-media-mini img { transform: scale(1.05); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}

.card-media-mini .tag.brand-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.card-media-mini .tag.prize-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
  font-weight: 700;
}

.card-content-mini {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-content-mini h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-description {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 3.1em;
  padding-bottom: 2px;
}

.platforms-mini {
  display: flex;
  gap: 8px;
  margin-bottom: auto;
  flex-wrap: wrap;
}
.platforms-mini .tag {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: calc(var(--radius) / 2);
}

.stats-mini {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 0.85rem !important;
  color: var(--muted) !important;
  font-weight: 500 !important;
  padding: 12px 0 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  margin-top: 12px !important;
  min-height: 1.5em !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Remove artificial filler to prevent blank gaps */
.carousel-track::after { content: none; flex: 0 0 0; width: 0; }

/* ==========================================================================
= HERO STATS (cartes statistiques modernes)
========================================================================== */
.hero-stats { padding: 80px 0; background: #fff; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: #fff;
  padding: 40px 32px;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #8B7CF6);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15); }

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}
.stat-text { color: var(--text); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.stat-description { color: var(--muted); font-size: 0.9rem; margin-top: 8px; line-height: 1.5; }

/* ==========================================================================
= VALUE PROPOSITION (texte + cartes flottantes visuelles)
========================================================================== */
.value-proposition { padding: 100px 0; background: #fff; }

.value-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.value-text h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 24px;
  color: var(--text);
}
.value-lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.6;
}
.value-features { display: flex; flex-direction: column; gap: 24px; }

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: rgba(108, 92, 231, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(108, 92, 231, 0.1);
  transition: var(--transition);
}
.feature-item:hover { background: rgba(108, 92, 231, 0.06); transform: translateX(8px); }

.feature-icon {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

.feature-content h4 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.feature-content p { margin: 0; color: var(--muted); line-height: 1.5; }

/* Visuels flottants */
.value-visual {
  position: relative;
  width: 330px;
  height: 400px;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto; margin-right: auto;
}
.floating-cards {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: row;
  align-items: center; justify-content: center;
  gap: 32px; max-width: 330px; max-height: 320px;
  margin: 0 auto; overflow-x: visible;
}

.mini-card {
  position: absolute;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  min-width: 140px;
  animation: float 6s ease-in-out infinite;
}
.mini-card.card-1 { top: 20%; left: 10%; animation-delay: 0s; }
.mini-card.card-2 {
  top: 45%; right: 15%; animation-delay: 2s;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}
.mini-card.card-3 { bottom: 20%; left: 30%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-size: 0.85rem; color: var(--muted); font-weight: 600;
}
.brand-logo { width: 24px; height: 24px; border-radius: 4px; object-fit: contain; background: #fff; padding: 2px; }
.card-metric { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.card-label { font-size: 0.8rem; color: var(--muted); }

/* ==========================================================================
= PROCESS (How it works moderne en timeline)
========================================================================== */
.how-it-works-modern {
  padding: 100px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}
.how-it-works-modern .section-header {
  text-align: center;
  margin-bottom: 60px;
}
.how-it-works-modern h2 { color: var(--text); margin-bottom: 16px; }
.how-it-works-modern .section-lead { color: var(--muted); }

.process-timeline { max-width: 900px; margin: 0 auto; position: relative; }

.timeline-item {
  display: grid; grid-template-columns: auto 1fr;
  gap: 40px; align-items: center;
  margin-bottom: 60px; padding: 32px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.timeline-item:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-number {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary), #8B7CF6);
  color: #fff; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
  flex-shrink: 0;
}

.timeline-content h3 { margin: 0 0 12px; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.timeline-content p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 1rem; }
.timeline-connector { display: none; }

/* ==========================================================================
= CHALLENGE CARD (système de cartes principal)
========================================================================== */
.challenge-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  max-width: 780px;
  margin-inline: auto;
}
.challenge-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); }

/* Media + Overlays */
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-overlay-top {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.card-overlay-bottom {
  position: absolute; bottom: 12px; left: 12px;
}

/* Content */
.card-content { padding: 20px; }

.challenge-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.challenge-description {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Platforms (tags) */
.challenge-platforms { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

/* Stats */
.challenge-stats {
  display: flex; justify-content: space-between; gap: 16px;
  margin-bottom: 24px; padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-group {
  display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1;
}
.stat-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 1.1rem; font-weight: 700; color: var(--text); }

/* Actions */
.card-actions { display: flex; gap: 12px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #f8f9fa; color: var(--text); border: 1px solid var(--border); }
.btn { padding: 12px 20px; border-radius: 10px; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; font-size: 0.9rem; flex: 1; text-align: center; text-decoration: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Tags generic + variants */
.tag {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
  backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.3);
}
.brand-tag { background: rgba(255,255,255,0.95); color: var(--text); font-weight: 700; }
.prize-tag { background: var(--primary); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3); }
.deadline-tag { background: rgba(0,0,0,0.8); color: #fff; font-size: 0.8rem; }
.platform-tag { background: #f8f9fa; border: 1px solid var(--border); color: var(--text); font-size: 0.8rem; font-weight: 500; }
.platform-tag.tiktok { background: #000; color: #fff; }
.platform-tag.youtube { background: #ff0000; color: #fff; }
.platform-tag.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; }

/* ==========================================================================
= STATS SECTION (liste verticale)
========================================================================== */
.stats-section { padding: 100px 0 90px 0; background: #ffffff; }
.stats-list { max-width: 700px; margin: 0 auto; padding-top: 40px; }

.stat-item {
  display: flex; align-items: flex-start; gap: 30px;
  padding: 30px 0; border-bottom: 1px solid var(--border);
}
.stat-item:last-child { border-bottom: none; }

.stat-number {
  font-size: 3.5rem; font-weight: 800; color: var(--primary);
  line-height: 1; min-width: 120px; flex-shrink: 0;
}
.stat-content h4 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.stat-content p { color: var(--muted); margin: 0; line-height: 1.6; }

/* ==========================================================================
= HOW-IT-WORKS LISTE (processus simple)
========================================================================== */
.how-it-works { padding: 80px 0; background: #ffffff; }
.process-steps { max-width: 700px; margin: 0 auto; padding-top: 40px; }

.process-step { padding: 30px 0; border-bottom: 1px solid var(--border); }
.process-step:last-child { border-bottom: none; }

.step-header { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; }
.step-number {
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
  background: rgba(108, 92, 231, 0.1); padding: 8px 12px; border-radius: 6px;
  min-width: 50px; text-align: center;
}
.step-header h3 { font-size: 1.3rem; font-weight: 700; margin: 0; color: var(--text); }
.process-step p { color: var(--muted); line-height: 1.6; margin: 0; padding-left: 70px; }

/* ==========================================================================
= CONTACT SECTION
========================================================================== */
.contact-section {
  padding: 100px 0 90px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
}
.contact-content { max-width: 700px; margin: 0 auto; text-align: center; }

.contact-text h2 {
  color: var(--text);
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
}
.contact-text .lead { color: var(--muted); margin-bottom: 40px; font-size: 1.1rem; }

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 0 auto;
}
.contact-form h3 {
  color: var(--text);
  margin: 0 0 24px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.form-group { margin-bottom: 20px; text-align: left; }
.form-group label {
  display: block; font-weight: 600; color: var(--text);
  margin-bottom: 8px; font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 16px; border: 2px solid var(--border);
  border-radius: 10px; font-size: 1rem; transition: var(--transition);
  font-family: inherit; background: #fff; box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.contact-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px; margin-top: 40px;
}
.benefit {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 16px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); transition: var(--transition); text-align: center;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.benefit-icon {
  width: 56px; height: 56px; background: rgba(108, 92, 231, 0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--primary); flex-shrink: 0;
}
.benefit-text { font-weight: 600; color: var(--text); font-size: 0.95rem; }

.btn-primary { background: var(--primary); color: #fff; width: 100%; }

/* ==========================================================================
= RESPONSIVE (groupé du plus large au plus étroit)
========================================================================== */
@media (max-width: 1200px) {
  :root { --container-width: 95vw; }
  .carousel-wrapper { padding: 0 10px; }
  .challenge-card-mini { flex: 0 0 300px; }
  .container { padding: 0 15px; }
}

@media (max-width: 900px) {
  .main-navbar { gap: 0; }
  .nav-links{ display: none; }

  /* How slider responsive (premier passage) */
  .how-slider { gap: 8px; }
  .how-step-card { padding: 32px 8px; max-width: 98vw; }

  /* Value content responsive (premier passage) */
  .value-content {
    flex-direction: column; gap: 40px;
    align-items: center; justify-content: center; text-align: center;
  }
  .value-visual {
    height: 260px; min-width: 180px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
  }
  .floating-cards { flex-direction: column; gap: 24px; }
  .value-text h2 { text-align: center; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat-card { padding: 32px 24px; }
  .stat-number { font-size: 2.2rem; }

  .value-content { display: grid; grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .value-text h2 { text-align: center; }
  .value-visual { height: 300px; }

  .timeline-item {
    grid-template-columns: 1fr; text-align: center; gap: 24px; padding: 24px;
  }
  .timeline-number { width: 60px; height: 60px; font-size: 1.4rem; margin: 0 auto; }

  .feature-item { text-align: left; flex-direction: row; gap: 16px; padding: 20px; }
  .feature-item:hover { transform: translateX(0); }
}

@media (max-width: 750px) {
  .nav-links .nav-savoir { display: none; }
}

@media (max-width: 650px) {
  .nav-links .nav-contact { display: none; }
}

@media (max-width: 600px) {
  /* How slider responsive (second pass) */
  .how-it-works-slider { padding: 48px 0 24px 0; }
  .how-step-card { padding: 16px 2vw; min-height: 120px; }
  .how-arrow { width: 34px; height: 34px; font-size: 1rem; }

  /* Floating cards horizontal scroll variant */
  .floating-cards {
    flex-direction: row; gap: 12px; overflow-x: auto;
    justify-content: flex-start; align-items: stretch; padding-bottom: 8px;
  }

  /* Another how-it-works slider variant (from later) */
  .how-it-works-slider { padding: 60px 0 40px 0; }
  .how-step-card { padding: 20px 4vw; min-height: 160px; }
  .how-arrow { width: 38px; height: 38px; font-size: 1.1rem; }
}

@media (max-width: 500px) {
  .btn-signup { display: none; }
  .main-navbar { padding-left: 4px; padding-right: 4px; }
  .nav-links { margin: 0 4px; padding: 4px 4px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .stat-card { padding: 24px 20px; }
  .value-content { gap: 40px; }
  .feature-item { flex-direction: column; text-align: center; gap: 12px; }
  .timeline-item { padding: 20px; }
  .timeline-number { width: 50px; height: 50px; font-size: 1.2rem; }
}

/* ==========================================================================
= FIX: prevent clipping of floating mini-cards shadows
========================================================================== */
.sections-wrapper,
.value-section,
.value-section .value-content,
.value-section .value-visual,
.value-section .floating-cards {
  overflow: visible !important;
}
.value-section .value-visual { height: 360px; }
.floating-cards .mini-card { z-index: 2; }

/* ==========================================================================
= OVERRIDES (RÉPÉTITIONS ORIGINALES POUR PRÉSERVER LA CASCADE)
= NOTE : Ces blocs répètent volontairement des règles déjà présentes,
= pour conserver exactement l’ordre et les effets de l’original.
= Tu peux les fusionner plus tard si tu souhaites minifier/optimiser.
========================================================================== */

/* ---- Sections re-déclarées (mêmes sélecteurs) : Structure/Sections ---- */
section { padding:100px 0 90px 0; }
h2 { text-align:center; font-size:1.9rem; margin:0 0 10px; }
.section-lead { text-align:center; color:var(--muted); max-width:640px; margin:0 auto 38px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; }
.card { border:1px solid var(--border); border-radius:16px; padding:22px; background:#fff; transition:var(--transition); }
.card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
@keyframes scroll-left {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.challenge-card-mini {
  flex: 0 0 320px; background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07); height: 400px; display: flex; flex-direction: column;
}
.challenge-card-mini:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  border-color: rgba(108, 92, 231, 0.2);
}
.card-media-mini { position: relative; aspect-ratio: 16 / 9; overflow: hidden; flex-shrink: 0; }
.card-media-mini img { width:100%; height:100%; object-fit: cover; transition: transform 0.3s ease; }
.challenge-card-mini:hover .card-media-mini img { transform: scale(1.05); }
.card-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}
.card-media-mini .tag.brand-tag {
  position: absolute; top: 12px; left: 12px; font-size: 0.8rem; padding: 6px 10px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: var(--shadow); font-weight: 600;
}
.card-media-mini .tag.prize-tag {
  position: absolute; top: 12px; right: 12px; font-size: 0.8rem; padding: 6px 10px; border-radius: var(--radius);
  background: var(--primary); color: white; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3); font-weight: 700;
}
.card-content-mini { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-content-mini h4 {
  font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; color: var(--text);
  line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-description {
  font-size: 0.95rem; color: var(--muted); margin: 0 0 16px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; height: 3.1em; padding-bottom: 2px;
}
.platforms-mini { display: flex; gap: 8px; margin-bottom: auto; flex-wrap: wrap; }
.platforms-mini .tag { font-size: 0.75rem; padding: 4px 8px; border-radius: calc(var(--radius) / 2); }
.stats-mini {
  display: flex !important; justify-content: space-between !important; font-size: 0.85rem !important; color: var(--muted) !important; font-weight: 500 !important;
  padding: 12px 0 0 !important; border-top: 1px solid rgba(0, 0, 0, 0.05) !important; margin-top: 12px !important; min-height: 1.5em !important; visibility: visible !important; opacity: 1 !important;
}
.carousel-track::after { content: none; flex: 0 0 0; width: 0; }
/* ---- Value proposition (duplicate block, variante grid) ---- */
.value-proposition { padding: 100px 0; background: white; }
.value-content { display: grid; gap: 80px; align-items: center; max-width: 1200px; margin: 0 auto; }
.value-text h2 {font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 24px; color: var(--text); }
.value-lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 40px; line-height: 1.6; }
.value-features { display: flex; flex-direction: column; gap: 24px; }
.feature-item {
  display: flex; gap: 20px; align-items: flex-start; padding: 24px;
  background: rgba(108, 92, 231, 0.03); border-radius: 12px; border: 1px solid rgba(108, 92, 231, 0.1); transition: var(--transition);
}
.feature-item:hover { background: rgba(108, 92, 231, 0.06); transform: translateX(8px); }
.feature-icon { width: 48px; height: 48px; background: var(--primary); color: white; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.feature-content h4 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.feature-content p { margin: 0; color: var(--muted); line-height: 1.5; }

/* Mini cards (duplicate simplified positions) */
.value-visual { position: relative; height: 400px; }
.floating-cards { position: relative; width: 100%; height: 100%; }
.mini-card {
  position: absolute; background: white; padding: 20px; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); border: 1px solid var(--border); min-width: 140px; animation: float 6s ease-in-out infinite;
}
.mini-card.card-1 { top: 20px; left: 10px; animation-delay: 0s; }
.mini-card.card-2 { top: 45px; right: 15px; animation-delay: 2s; background: linear-gradient(135deg, #f8f9ff 0%, white 100%); }
.mini-card.card-3 { bottom: 10px; left: 70px; animation-delay: 4s; }
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.brand-logo { width: 24px; height: 24px; border-radius: 4px; object-fit: contain; background: white; padding: 2px; }
.card-metric { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.card-label { font-size: 0.8rem; color: var(--muted); }

/* ---- How-it-works modern (duplicate block) ---- */
.how-it-works-modern { padding: 100px 0; background: white; border-top: 1px solid var(--border); }
.how-it-works-modern .section-header { text-align: center; margin-bottom: 60px; }
.how-it-works-modern h2 { color: var(--text); margin-bottom: 16px; }
.how-it-works-modern .section-lead { color: var(--muted); }
.process-timeline { max-width: 900px; margin: 0 auto; position: relative; }
.timeline-item {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-bottom: 60px; padding: 32px;
  background: white; border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); border: 1px solid var(--border); transition: var(--transition);
}
.timeline-item:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-number {
  width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), #8B7CF6);
  color: white; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3); flex-shrink: 0;
}
.timeline-content h3 { margin: 0 0 12px; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.timeline-content p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 1rem; }
.timeline-connector { display: none; }

/* ---- How-it-works (liste) (duplicate block) ---- */
.how-it-works { padding: 80px 0; background: #ffffff; }
.process-steps { max-width: 700px; margin: 0 auto; padding-top: 40px; }
.process-step { padding: 30px 0; border-bottom: 1px solid var(--border); }
.process-step:last-child { border-bottom: none; }
.step-header { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; }
.step-number {
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
  background: rgba(108, 92, 231, 0.1); padding: 8px 12px; border-radius: 6px; min-width: 50px; text-align: center;
}
.step-header h3 { font-size: 1.3rem; font-weight: 700; margin: 0; color: var(--text); }
.process-step p { color: var(--muted); line-height: 1.6; margin: 0; padding-left: 70px; }

/* ---- Contact (duplicate block) ---- */
.contact-section { padding: 100px 0 90px 0; background: #ffffff; border-top: 1px solid var(--border); }
.contact-content { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-text h2 { color: var(--text); margin-bottom: 16px; font-size: clamp(1.8rem, 4vw, 2.2rem); }
.contact-text .lead { color: var(--muted); margin-bottom: 40px; font-size: 1.1rem; }
.contact-form {
  background: white; padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
  max-width: 500px; margin: 0 auto;
}
.contact-form h3 { color: var(--text); margin: 0 0 24px; text-align: center; font-size: 1.3rem; font-weight: 700; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-weight: 600; color: var(--text); margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 1rem; transition: var(--transition); font-family: inherit; background: #fff; box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1); }
.contact-benefits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 40px;
}
.benefit {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 16px; background: white; border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition); text-align: center;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit-icon {
  width: 56px; height: 56px; background: rgba(108, 92, 231, 0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--primary); flex-shrink: 0;
}
.benefit-text { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.btn-primary { background: var(--primary); color: #fff; width: 100%; }

/* ---- Responsive duplicates (maintain original cascade) ---- */
@media (max-width: 1200px) {
  :root { --container-width: 95vw; }
  .carousel-wrapper { padding: 0 10px; }
  .challenge-card-mini { flex: 0 0 300px; }
  .container { padding: 0 15px; }
}

@media (max-width: 900px) {
  .main-navbar { gap: 0; }
  .nav-links .nav-exemple { display: none; }
  .how-slider { gap: 12px; }
  .how-step-card { padding: 32px 12px; max-width: 98vw; }
}

@media (max-width: 750px) { .nav-links .nav-savoir { display: none; } }
@media (max-width: 650px) { .nav-links .nav-contact { display: none; } }

@media (max-width: 600px) {
  .how-it-works-slider { padding: 60px 0 40px 0; }
  .how-step-card { padding: 20px 4vw; min-height: 160px; }
  .how-arrow { width: 38px; height: 38px; font-size: 1.1rem; }
}

@media (max-width: 500px) {
  .btn-signup { display: none; }
  .main-navbar { padding-left: 4px; padding-right: 4px; }
  .nav-links { margin: 0 4px; padding: 4px 4px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .stat-card { padding: 24px 20px; }
  .value-content { gap: 40px; }
  .feature-item { flex-direction: column; text-align: center; gap: 12px; }
  .timeline-item { padding: 20px; }
  .timeline-number { width: 50px; height: 50px; font-size: 1.2rem; }
}

/* ======================================================================
= Carousel performance tweaks: mobile speed + less stutter
====================================================================== */
@media (max-width: 600px) {
  /* Calmer animation and tighter spacing on phones */
  .carousel-track {
    animation-duration: 12s !important;
    gap: 16px !important;
  }
  /* Keep card size same as desktop as requested */
}

/* =======================================================================
= AUTH MODAL (Connexion / Inscription)s
======================================================================= */
.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: max(env(safe-area-inset-top, 16px), 16px) 12px max(env(safe-area-inset-bottom, 16px), 16px);
}
.auth-modal.is-open { display: flex; }
.auth-backdrop {
  position: absolute; inset: 0; background: rgba(20,20,30,0.45);
  backdrop-filter: blur(6px);
}
.auth-card {
  position: relative;
  width: min(520px, 92vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  padding: 24px;
  max-height: min(92vh, 92dvh);
  display: flex;
  flex-direction: column;
  animation: auth-pop .18s ease-out;
}
@keyframes auth-pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-close {
  position: absolute; top: 10px; right: 10px;
  z-index: 200;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.auth-header { text-align: center; margin-bottom: 14px; position: sticky; top: 0; background: #fff; padding-top: 6px; z-index: 1; }
.auth-header h3 { margin: 4px 0 10px; font-weight: 800; font-size: 1.3rem; }
.auth-tabs { display: inline-flex; gap: 8px; background: #fafafa; border: 1px solid var(--border); border-radius: 999px; padding: 6px; }
.auth-tab { padding: 8px 12px; border-radius: 999px; border: none; background: transparent; font-weight: 700; cursor: pointer; }
.auth-tab.is-active { background: #fff; box-shadow: var(--shadow); }
.auth-body { margin-top: 10px; overflow: auto; padding-right: 4px; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-form input { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 1rem; transition: var(--transition); font-family: inherit; }
.auth-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1); }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-error { color: #d12; min-height: 1.2em; font-size: .9rem; margin: 4px 0 0; }
.auth-note { text-align: center; color: var(--muted); font-size: .85rem; margin: 8px 0 0; }
.auth-form.is-hidden { display: none; }

/* Password strength meter */
.pw-meter { margin-top: 8px; }
.pw-bar { height: 8px; background: #f1f3f5; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.pw-fill { display: block; height: 100%; width: 0%; background: #e5e7eb; transition: width .25s ease, background .25s ease; }
.pw-hint { margin-top: 6px; font-size: .85rem; color: var(--muted); }

.pw-weak .pw-fill { width: 25%; background: #ef4444; }
.pw-fair .pw-fill { width: 50%; background: #f59e0b; }
.pw-good .pw-fill { width: 75%; background: #10b981; }
.pw-strong .pw-fill { width: 100%; background: #059669; }

/* Disabled state */
.auth-form .auth-submit[disabled] {
  opacity: .6; cursor: not-allowed; filter: grayscale(.15);
}

/* Inline hints and invalid states */
.field-hint { min-height: 1.1em; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.field-hint.error { color: #d12; }
.auth-form input.is-invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }

/* iOS Safari: prevent blue tint on buttons inside auth modal */
.auth-tab,
.auth-close {
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--text);
}
.auth-tab.is-active { color: var(--text); }
.auth-tab,
.auth-close {
  text-decoration: none;
}
.auth-tab:hover,
.auth-tab:focus,
.auth-tab:active,
.auth-close:hover,
.auth-close:focus,
.auth-close:active {
  color: var(--text);
  text-decoration: none;
  outline-color: rgba(108, 92, 231, 0.45);
}

/* =======================================================================
= FOOTER (minimaliste)
======================================================================= */
.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  font-weight: 800;
  color: var(--text);
}
.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 8px;
  border-radius: 8px;
  transition: var(--transition);
}
.footer-link:hover { color: var(--text); background: #f7f7fb; }
.footer-copy { font-size: 0.95rem; white-space: nowrap; }

@media (max-width: 700px) {
  .site-footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Footer responsive refinements */
@media (max-width: 900px) {
  .site-footer { padding: 22px 0; }
  .footer-nav { gap: 10px; }
  .footer-link { font-size: 0.9rem; }
}

@media (max-width: 700px) {
  .footer-brand { margin-bottom: 4px; }
  .footer-nav { justify-content: center; }
  .footer-copy { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .site-footer { padding: 18px 0; }
  .footer-link { padding: 4px 6px; font-size: 0.88rem; }
  .footer-nav { gap: 8px; }
}
