/* ===========================
   GLOBAL VARIABLES & RESET
   =========================== */
   :root {
    --bg: #F7FAFD;
    --panel: #fff;
    --text: #1D2735;
    --muted: #6A7386;
    --muted2: #363636;
    --line: #E6ECF4;
    --brand: #4F46E5;
    --brand2: #6366F1;
    --accent: #2FB67C;
    --radius: 18px;
    --shadow: 0 8px 28px rgba(20, 40, 80, 0.08);
  }
  
  * {
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, Arial, sans-serif;
    color: var(--text);
    background:
      radial-gradient(900px 600px at 15% -10%, rgba(79,70,229,.06), transparent 60%),
      radial-gradient(900px 600px at 85% -10%, rgba(47,182,124,.06), transparent 60%),
      var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: grid;
    place-items: center;
  }
  
  /* ===========================
     HERO SECTION
     =========================== */
  .hero {
    width: min(100%, 980px);
    padding: clamp(12px, 3vw, 20px);
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.8rem;
  }
  
  /* ===========================
     TITLES
     =========================== */
  
  /* Nouveau titre principal "Play & Move" */
  .playmove-title {
    font-family: "Poppins", "Nunito", sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw + 1rem, 3.5rem);
    color: var(--brand); /* violet principal */
    text-align: center;
    letter-spacing: -0.02em;
    margin: 0.4rem 0 0.3rem;
    line-height: 1.1;
  }
  
  .playmove-title span {
    color: var(--brand2); /* violet plus clair pour le "&" */
  }
  
  /* Ancien petit titre vert (optionnel si tu veux le garder ailleurs) */
  .eyebrow {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent); /* vert doux */
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
  }
  
  /* Sous-titres et sous-lignes */
  .subheader {
    display: block;
    font-family: "Inter", "Poppins", sans-serif;
    font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
    font-weight: 700;
    color: #1d2735; /* dark text */
    margin-top: 0;
    line-height: 1.2;
  }

  .subline {
    display: block;
    font-size: 1.35rem;
    font-weight: 400;
    color: #6a7386; /* same as original soft gray */
    margin-top: 0.3rem;
  }
  
  
  .subhead {
    margin-top: 0.4rem;
    font-size: clamp(1.2rem, 1.6vw + 0.8rem, 1.6rem);
    font-weight: 500;
    color: var(--brand);
  }

  .subhead-gray {
    color: var(--muted2);
  }

  .bold-black {
    color: #000;
    font-weight: 700;
  }

  /* Message "Arrive bientôt" */
  .coming-soon-message {
    margin: 1.2rem auto 0.8rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(47, 182, 124, 0.08) 100%);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    font-size: clamp(1.1rem, 1.4vw + 0.6rem, 1.4rem);
    line-height: 1.6;
    color: var(--text);
    max-width: 700px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .coming-soon-message strong {
    color: var(--brand);
    font-weight: 700;
  }

  .reassurance-text {
    color: var(--muted2);
    font-size: 0.95em;
    font-style: italic;
    display: block;
    margin-top: 0.5rem;
  }
  
  /* ===========================
     IMAGE CAROUSEL
     =========================== */
  .hero-image-container {
    width: min(100%, 900px);
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: #fff;
    position: relative;
  }

  .hero-image-wrapper {
    display: flex;
    width: 200%;
    height: 100%;
    animation: slide-horizontal 10s infinite ease-in-out;
  }

  @keyframes slide-horizontal {
    0% {
      transform: translateX(0);
    }
    47.5% {
      transform: translateX(0);
    }
    52.5% {
      transform: translateX(-50%);
    }
    97.5% {
      transform: translateX(-50%);
    }
    100% {
      transform: translateX(0);
    }
  }

  .hero-image {
    width: 50%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  /* ===========================
     FORM
     =========================== */
  .signup {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    width: min(100%, 560px);
  }
  
  .signup input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color 0.2s ease;
  }

  .signup input[type="email"].error {
    border-color: #dc2626;
    border-width: 2px;
  }
  
  .btn {
    padding: 0.9rem 1.2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.2px;
    background: linear-gradient(180deg, var(--brand), var(--brand2) 92%);
    box-shadow: 0 6px 16px rgba(79,70,229,0.22);
    transition: filter 0.2s ease;
  }
  
  .btn:hover {
    filter: brightness(1.05);
  }
  
  .privacy,
  .disclaimer {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
  }

  .error-message {
    flex-basis: 100%;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #dc2626;
    text-align: center;
  }

  /* Success Popup */
  .success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .success-popup-content {
    background: var(--panel);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s ease;
  }

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

  .success-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
    transition: color 0.2s ease;
  }

  .success-popup-close:hover {
    color: var(--text);
  }

  .success-popup-text {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 500;
  }
  
  /* ===========================
     DOWNLOAD BUTTON
     =========================== */
  .download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: min(100%, 560px);
    margin-top: 0.5rem;
  }

  .download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.4rem 2.8rem;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 50%, var(--accent) 100%);
    color: #fff;
    font-size: clamp(1.4rem, 2vw + 0.5rem, 1.8rem);
    font-weight: 700;
    text-decoration: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35), 0 4px 12px rgba(47, 182, 124, 0.25);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
  }

  .download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
  }

  .download-btn:hover::before {
    left: 100%;
  }

  .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.4), 0 6px 16px rgba(47, 182, 124, 0.3);
    filter: brightness(1.05);
  }

  .download-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3), 0 3px 8px rgba(47, 182, 124, 0.2);
  }

  .download-icon {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
    animation: bounce 2s infinite;
    flex-shrink: 0;
  }

  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-6px);
    }
    60% {
      transform: translateY(-3px);
    }
  }

  .download-text {
    font-size: inherit;
    font-weight: inherit;
  }

  .download-subtitle {
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.2rem);
    color: var(--muted2);
    font-weight: 500;
    margin: 0;
    text-align: center;
    line-height: 1.4;
  }
  
  /* ===========================
     RESPONSIVE
     =========================== */
  @media (min-height: 700px) {
    .hero {
      padding-block: 24px;
    }
  }

  @media (max-width: 600px) {
    .download-btn {
      padding: 1.2rem 2rem;
      gap: 0.8rem;
    }

    .download-icon {
      width: 28px;
      height: 28px;
    }
  }
  