/* ═══════════════════════════════════════════════════════
   RESPONSIVE — overrides cohérents tablette + mobile
   Chargé APRÈS styles.css → priorité par ordre du cascade

   Breakpoints :
   - Desktop  : 1025px+   (défaut, dans styles.css)
   - Tablet   : ≤ 1024px
   - Mobile   : ≤ 640px
═══════════════════════════════════════════════════════ */


/* ═════════════════════════════════════════════════════════
   TABLETTE  ≤ 1024px
═════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* ── Top banner ── */
  .top-banner__inner {
    gap: 1rem;
    padding: 0.6rem 2rem;
  }
  .top-banner__sub { display: none; }

  /* ── Hero — colonnes plus compactes ── */
  .hero {
    padding: 4rem 3rem;
  }
  .hero__inner {
    gap: 3rem;
    max-width: 100%;
  }
  .hero__title { font-size: clamp(2.6rem, 7vw, 4.5rem); }
  .hero__desc  { font-size: 0.92rem; }

  /* ── Recognition — badge plus petit, padding réduit ── */
  .recognition       { padding: 6rem 2.5rem; }
  .recognition__badge-wrap {
    width: 170px;
    height: 170px;
    right: 2rem;
  }
  .recognition__title { font-size: clamp(2.4rem, 6vw, 4rem); }

  /* ── Stats ── */
  .stats         { padding: 4rem 2.5rem; }
  .stats__number { font-size: clamp(2.4rem, 6vw, 3.5rem); }

  /* ── Manifeste ── */
  .manifeste__stage    { display: none; }
  .manifeste__fallback { display: block; padding: 5rem 2.5rem; }

  /* ── Timeline ── */
  .timeline                { padding: 7rem 2.5rem 0; }
  .timeline__section-title { font-size: clamp(2.4rem, 6vw, 4rem); }
  .timeline__track         { max-width: 100%; }
  .timeline__body          { max-width: 100%; padding-left: 56px; }

  /* ── Golden Class (ticket + texte) ── */
  .golden-class        { padding: 3rem 2.5rem 8rem; }
  .ticket-wrap         { width: min(80%, 460px); margin-bottom: 2.5rem; }
  .golden-class__title { font-size: clamp(2.4rem, 6vw, 4rem); }

  /* ── Section 6 — Circle feed ── */
  .circle-feed         { padding: 5rem 0 6rem; }
  .circle-feed__title  { font-size: clamp(2.4rem, 6vw, 3.8rem); }

  /* ── Section 7 — Live final ── */
  .live-final        { padding: 6rem 2.5rem 7rem; }
  .live-final__title { font-size: clamp(2.4rem, 6vw, 4rem); }

  /* ── CTA Final ── */
  .cta-final       { padding: 5rem 2.5rem; }
  .cta-final__card { padding: 2.5rem 2rem; }

  /* ── FAQ ── */
  .faq              { padding: 5rem 2.5rem; }
  .faq__title       { font-size: clamp(2.4rem, 6vw, 3.8rem); }

  /* ── Outro ── */
  .outro { padding: 4rem 2rem; }
}


/* ═════════════════════════════════════════════════════════
   MOBILE  ≤ 640px
═════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── Top banner — compact, le label disparaît, focus countdown + CTA ── */
  .top-banner__inner {
    padding: 0.5rem 1.1rem;
    gap: 0.6rem;
  }
  .top-banner__label { display: none; }
  .top-banner__countdown { gap: 0.4rem; }
  .top-banner__cd-num { font-size: 0.82rem; }
  .top-banner__cd-lbl { font-size: 0.55rem; letter-spacing: 0.06em; }
  .top-banner__cd-sep { font-size: 0.75rem; }
  .top-banner__cta {
    font-size: 0.68rem;
    padding: 0.5rem 0.85rem;
    letter-spacing: 0.04em;
  }

  /* ── Hero — 1 seule colonne, photo en bas, padding mobile ── */
  .hero {
    padding: 3rem 1.25rem 4rem;
    min-height: auto;
  }
  .hero__inner {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }
  .hero__left {
    text-align: left;
  }
  .hero__brand { font-size: 0.6rem; margin-bottom: 1.5rem; }
  .hero__save-the-date { margin-bottom: 1rem; }
  .hero__save-the-date-line { font-size: 0.68rem; letter-spacing: 0.18em; }
  .hero__opener { font-size: 1rem; }
  .hero__title  { font-size: clamp(2.2rem, 12vw, 3.4rem); margin-bottom: 1.5rem; }
  .hero__desc   { font-size: 0.88rem; max-width: 100%; margin-bottom: 1.5rem; }
  .hero__cta-group { width: 100%; }
  .hero__cta {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    font-size: 0.82rem;
  }
  .hero__envelope-wrap { display: none; } /* on cache l'enveloppe sur mobile */
  .hero__right { max-width: 320px; margin: 0 auto; }
  .hero__photo { max-width: 100%; }

  /* ── Recognition — badge masqué, contenu centré ── */
  .recognition          { padding: 4rem 1.25rem; }
  .recognition__badge-wrap { display: none; }
  .recognition__title   { font-size: clamp(2rem, 11vw, 3rem); }
  .recognition__intro,
  .recognition__pre,
  .recognition__closing { font-size: 0.92rem; }
  .recognition__list    { padding-left: 0; }
  .recognition__item    { font-size: 0.9rem; }

  /* ── Stats — stack vertical ── */
  .stats { padding: 3rem 1.25rem; }
  .stats__inner {
    flex-direction: column;
    gap: 2.5rem;
  }
  .stats__divider { display: none; }
  .stats__number  { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .stats__label   { font-size: 0.78rem; max-width: 240px; }

  /* ── Manifeste — fallback uniquement ── */
  .manifeste__fallback { padding: 3.5rem 1.5rem; }
  .manifeste__fb-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .manifeste__fb-body  { font-size: 0.92rem; }
  .manifeste__fb-quote { font-size: clamp(1.2rem, 5vw, 1.6rem); }

  /* ── Timeline ── */
  .timeline { padding: 4rem 1.25rem 0; }
  .timeline__section-title { font-size: clamp(2rem, 10vw, 3rem); }
  .timeline__body { padding-left: 42px; }
  .timeline__dot  { left: -36px; width: 8px; height: 8px; }
  .timeline__line { left: 20px; }
  .timeline__item { padding-bottom: 5rem; }
  .timeline__title    { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .timeline__tagline  { font-size: 0.95rem; }
  .timeline__text     { font-size: 0.88rem; }
  .timeline__objective{ font-size: 0.88rem; }
  .timeline__day-pill { font-size: 0.62rem; padding: 0.3rem 0.7rem; }
  .timeline__cta {
    width: 100%;
    justify-content: center;
    font-size: 0.78rem;
    padding: 0.85rem 1.25rem;
  }

  /* Cadenas J4 — discret sur mobile (sinon vole l'attention au texte) */
  .timeline__lock-bg {
    height: 160px !important;
  }
  .timeline__item--locked.is-visible .timeline__lock-bg {
    opacity: 0.14 !important;
    transform: translate(35%, -50%) rotate(-7deg) scale(1) !important;
    animation: none !important;
  }

  /* ── Golden Class — ticket réduit + CTA full-width ── */
  .golden-class        { padding: 2rem 1.25rem 6rem; }
  .ticket-wrap         { width: 90%; margin-bottom: 2rem; }
  .golden-class__title { font-size: clamp(2rem, 10vw, 3rem); }
  .golden-class__body  { font-size: 0.92rem; }
  .golden-class__cta {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.95rem 1.25rem;
  }

  /* ── Section 6 — Circle feed ── */
  .circle-feed         { padding: 3.5rem 0 4.5rem; }
  .circle-feed__header { margin-bottom: 2rem; padding: 0 1.25rem; }
  .circle-feed__title  { font-size: clamp(1.8rem, 10vw, 2.8rem); }
  .circle-feed__sub    { font-size: 0.85rem; }
  .circle-bubble {
    width: 260px;
    padding: 1.1rem 1.1rem 0.9rem;
  }
  .circle-bubble__text { font-size: 0.88rem; }

  /* ── Section 7 — Live final ── */
  .live-final          { padding: 4rem 1.25rem 5rem; }
  .live-final__title   { font-size: clamp(2rem, 10vw, 3rem); }
  .live-final__sub     { font-size: 1.1rem; margin-bottom: 2rem; }
  .live-final__body    { font-size: 0.9rem; }
  .live-final__quote   { margin: 2rem auto; padding: 0.5rem 0; }
  .live-final__quote-text { font-size: clamp(1.2rem, 6vw, 1.6rem); }
  .live-final__cta {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.95rem 1.25rem;
  }

  /* ── CTA Final ── */
  .cta-final       { padding: 3.5rem 1.25rem; }
  .cta-final__card { padding: 2rem 1.25rem; border-radius: 16px; }
  .cta-final__hook { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .cta-final__body { font-size: 0.88rem; }
  .cta-final__dates-value { font-size: 1.05rem; }
  .cta-final__countdown { gap: 0.4rem; }
  .cta-final__unit-num   { font-size: 1.6rem; }
  .cta-final__unit-label { font-size: 0.55rem; }
  .cta-final__sep        { font-size: 1.4rem; }
  .cta-final__btn {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.95rem 1rem;
  }

  /* ── FAQ ── */
  .faq               { padding: 3.5rem 1.25rem; }
  .faq__title        { font-size: clamp(2rem, 10vw, 3rem); }
  .faq__question     { font-size: 0.92rem; padding: 1.1rem 0; }
  .faq__answer-inner { font-size: 0.88rem; }
  .faq__outro-cta {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.95rem 1.25rem;
  }

  /* ── Outro ── */
  .outro       { padding: 3rem 1.25rem; }
  .outro__text { font-size: 0.95rem; }
  .outro__brand{ font-size: 1.4rem; }
}


/* ═════════════════════════════════════════════════════════
   ULTRA-MOBILE  ≤ 380px (iPhone SE, anciens petits écrans)
═════════════════════════════════════════════════════════ */
@media (max-width: 380px) {

  .top-banner__cd-num { font-size: 0.75rem; }
  .top-banner__cd-lbl { display: none; } /* on garde juste les chiffres */
  .top-banner__cta    { font-size: 0.62rem; padding: 0.45rem 0.7rem; }

  .hero { padding: 2.5rem 1rem 3rem; }
  .hero__title { font-size: clamp(2rem, 14vw, 2.8rem); }

  .recognition, .stats, .timeline, .golden-class,
  .live-final,  .cta-final, .faq,
  .circle-feed__header { padding-left: 1rem; padding-right: 1rem; }

  .circle-bubble { width: 240px; }
}


/* ═════════════════════════════════════════════════════════
   TOUCH DEVICES — hover-less interactions
   (les hover effects gardent un fallback gracieux)
═════════════════════════════════════════════════════════ */
@media (hover: none) {
  /* Désactive les effets coûteux qui ne fonctionnent pas au touch */
  .ticket-parallax { transition: none; }
  .circle-feed__marquee:hover .circle-feed__track { animation-play-state: running; }
}
