/* ==========================================================================
   Anne — VERSION TÉLÉPHONE (30/10/2026)
   Chargé en dernier sur toutes les pages. Ne s'applique que sous 760 px.
   Objectif : des pages courtes et aérées, lisibles d'une main.
   - [data-swipe] : une pile de cartes devient une rangée à faire glisser
     (points + flèches ajoutés par main.js)
   - [data-more="3"] : liste repliée après 3 éléments, bouton « Voir tout »
   - .m-hide : masqué sur téléphone
   Couleurs : uniquement des variables, pour rester compatible avec la palette bleue.
   ========================================================================== */

/* Vidéos de séance : toujours au format de la vidéo (9:16), jamais rognées.
   Avant, le lecteur passait en 4:5 sur téléphone et coupait les titres en haut et en bas. */
@media (max-width: 899px) {
  .vplayer:not(.is-land):not(.vplayer--land) {
    aspect-ratio: 9 / 16 !important;
    width: min(100%, calc(76svh * 9 / 16));
    margin-inline: auto;
  }
  .vplayer video { object-fit: contain; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  html { overflow-x: clip; }

  /* ---------- Rythme général : sections plus serrées ---------- */
  .section { padding-block: 52px; }
  h2 { font-size: clamp(1.75rem, 7.6vw, 2.15rem); }
  .lead { font-size: 1.1rem; line-height: 1.55; }
  .section-head { margin-bottom: 22px; }
  .eyebrow { margin-bottom: .7rem; font-size: .8rem; }
  .m-hide,
  .hm-doodle, .hm-blob, [class*="doodle"], .hm-round, .hm-portrait-tag { display: none !important; }

  /* ---------- Rangées à faire glisser ---------- */
  [data-swipe] {
    display: flex !important; flex-wrap: nowrap !important; gap: 14px !important;
    grid-template-columns: none !important;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin: 0 calc(-1 * var(--gutter)) !important; padding: 6px var(--gutter) 10px !important;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    list-style: none;
  }
  /* une rangée qui glisse ne doit jamais élargir la colonne qui la contient */
  [class*="grid"] > *, [class*="-wrap"], .container > *, *:has(> [data-swipe]) { min-width: 0; }
  [data-swipe]::-webkit-scrollbar { display: none; }
  [data-swipe] > * {
    flex: 0 0 84% !important; width: auto !important; max-width: none !important; min-width: 0;
    margin: 0 !important; scroll-snap-align: start;
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  [data-swipe] > [aria-hidden="true"]:empty, [data-swipe] > .pa-bx-relay-arrow { display: none !important; }
  [data-swipe="small"] > * { flex-basis: 66% !important; }

  .swipe-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 4px; }
  .swipe-dots { display: flex; gap: 7px; }
  .swipe-dots { gap: 9px; }
  .swipe-dots i { width: 7px; height: 7px; border-radius: 99px; background: currentColor; opacity: .22; transition: transform .35s var(--ease), opacity .35s; }
  .swipe-dots i.on { transform: scale(1.45); opacity: .85; }
  .swipe-nav { color: var(--green); }
  .section--green .swipe-nav { color: #fff; }
  .swipe-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit;
    display: inline-grid; place-items: center; cursor: pointer; opacity: .8; transition: opacity .25s, transform .25s;
  }
  .swipe-btn:disabled { opacity: .2; cursor: default; }
  .swipe-btn svg { width: 18px; height: 18px; }
  .swipe-btn:active:not(:disabled) { transform: scale(.92); }

  /* ---------- Listes repliées ---------- */
  [data-more].is-folded > .is-extra { display: none !important; }
  .more-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 44px; padding: 0 18px;
    border-radius: 999px; border: 1.5px solid var(--green); background: transparent; color: var(--green);
    font: 700 .98rem var(--font-body); cursor: pointer;
  }

  /* ---------- Bandeau « aucun cookie » : une ligne discrète en bas ---------- */
  .info-banner {
    left: 10px; right: 10px; bottom: 10px; width: auto; padding: 12px 14px; gap: 8px; border-radius: 16px;
    grid-template-columns: 1fr auto; align-items: center; font-size: .88rem; line-height: 1.4;
  }
  .info-banner .row { flex-wrap: nowrap; }
  .info-banner .row a { display: none; }
  .info-banner .btn { min-height: 40px; padding: 6px 16px; font-size: .92rem; }
  body.has-banner .mobile-cta { opacity: 0; pointer-events: none; }
  /* le bouton flottant n'apparaît qu'une fois le premier écran passé (le héros a déjà le sien) */
  body:not(.is-past-hero) .mobile-cta { opacity: 0; pointer-events: none; transform: translateY(12px); }
  .mobile-cta { transition: opacity .3s, transform .3s; }

  /* ---------- Pied de page compact ---------- */
  .site-footer { padding-top: 40px; text-align: center; }
  .footer-grid { gap: 22px; padding-bottom: 26px; }
  .footer-grid > div:nth-child(2) { display: none; }
  .footer-brand img { width: 150px; margin: 0 auto 6px; }
  .footer-brand p { font-size: 1.2rem; margin: 0; }
  .footer-grid > div:nth-child(3) h2 { display: none; }
  .footer-grid > div:nth-child(3) ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .footer-grid > div:nth-child(3) ul a { min-height: 42px; padding: 0 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .95rem; }
  .footer-grid > div:nth-child(3) > p { font-size: .9rem; opacity: .8; margin-top: 12px !important; }
  .footer-legal { justify-content: center; text-align: center; font-size: .85rem; padding-block: 12px; }
  .footer-legal ul { justify-content: center; gap: 0 16px; }
  .footer-legal a { min-height: 36px; }

  /* ---------- Appel final ---------- */
  .cta-final { padding-block: 56px 64px; }
  .cta-final h2 { font-size: 2.1rem; }

  /* =====================================================================
     ACCUEIL
     ===================================================================== */
  .hero.hm-lhero { padding-bottom: 70px !important; }
  /* les vidéos commencent sous le menu : plus aucune tête cachée par la barre du haut */
  .hm-lhero-media { margin-top: 84px; height: 40svh; min-height: 260px; }
  .hm-slant video { object-position: 50% 22% !important; }
  .hm-lhero-copy { padding-top: 20px; }
  .hm-lhero .eyebrow { font-size: .74rem; letter-spacing: .12em; }
  .hm-lhero h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); margin-bottom: .3em; }
  .hm-lhero .sport-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: .9rem; }
  .hm-lhero .sport-tags li { padding: 4px 6px; font-size: clamp(.66rem, 3.05vw, .8rem); letter-spacing: 0; white-space: nowrap; }
  .hm-lhero .lead { font-size: 1.05rem; margin-bottom: 1rem; }
  .hm-lhero .btn-row .btn { width: 100%; justify-content: center; }
  .hm-lhero .hero-trust { margin-top: 14px; gap: 4px 14px; font-size: .9rem; }
  .hm-band { bottom: 14px; }

  /* Bonjour : une seule photo en bandeau, texte court, diplômes repliés */
  .hm-hello-grid { gap: 26px; }
  .hm-duo { max-width: none; margin: 0; }
  .hm-duo-main .hm-duo-frame { aspect-ratio: 4 / 3.2; height: auto; border-radius: var(--radius-l); }
  .hm-duo-main img { object-position: 50% 40%; }
  .hm-dipl { padding: 20px; }

  /* Étapes de vie : cartes à faire glisser */
  .hm-cards > .card .card-media { aspect-ratio: 4 / 3.4; }
  .hm-cards > .card { display: flex; flex-direction: column; }
  .hm-cards > .card .card-body { flex: 1; }

  /* 100 % + déroulé */
  .cent-num { font-size: 4.6rem !important; }
  .cent-grid { gap: 26px; }
  .process--stack > li { height: 100%; }

  /* Tarifs : grille 2 × 2 compacte */
  .price-strip { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .price-strip li { padding: 16px 14px !important; }
  .price-strip .v { font-size: 2.1rem !important; }
  .wa-band { padding: 20px !important; gap: 10px !important; }

  /* Montage vidéo */
  .montage-feature { gap: 22px; margin-block: 20px 26px; }
  .montage-card { max-width: none; }

  /* =====================================================================
     PAGES INTÉRIEURES
     ===================================================================== */
  /* Hub coaching : deux tuiles seulement sous le titre */
  .pb-bento--hero { grid-template-columns: 1fr 1fr !important; grid-auto-rows: auto !important; gap: 10px !important; }
  .pb-bento--hero .pb-tile--title { grid-column: 1 / -1 !important; }
  .pb-bento--hero .pb-tile--hero-a, .pb-bento--hero .pb-tile--hero-b { grid-column: auto !important; grid-row: auto !important; min-height: 170px !important; height: 170px; }
  .pb-bento--hero .pb-tile--hero-c, .pb-bento--hero .pb-tile--hero-d { display: none !important; }

  /* Seniors */
  .pa-sx-strip { gap: 8px !important; }
  .pa-sx-strip li { padding: 12px 16px !important; }
  .pa-sx-quals-grid { gap: 28px !important; }
  .pa-sx-auto-anne { display: none !important; }
  .pa-sx-auto-photo { aspect-ratio: 16 / 10 !important; }
  .pa-sx-auto-grid { gap: 26px !important; }
  .pa-sx-figs { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .pa-sx-figs li { padding: 16px 8px !important; font-size: .86rem; line-height: 1.3; }
  .pa-sx-figs .pa-sx-fig { font-size: 2.3rem !important; }

  /* Mon histoire : chiffres en bandeau bas plutôt qu'en grand carré */
  .chap-figure:has(.fig-num) { aspect-ratio: auto !important; min-height: 0 !important; height: auto !important; padding: 26px 18px !important; }
  .chap-figure .fig-num { font-size: 3.2rem !important; margin: 0 !important; }
  .chap { gap: 20px !important; }

  /* Seniors : les 4 qualités en grille 2 × 2, photo décorative retirée */
  .pa-sx-quals-media { display: none !important; }
  .pa-sx-words { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 0 !important; margin-top: 20px !important; }
  .pa-sx-words li { display: block !important; padding: 16px 14px !important; border: 0 !important; border-radius: var(--radius-s); background: var(--ivory); font-size: .92rem; line-height: 1.4; }
  .pa-sx-words .pa-sx-word { display: block; font-size: 1.35rem !important; margin-bottom: 4px; }
}

/* Au-dessus du téléphone : pas de points/flèches ni de bouton « Voir tout » */
@media (min-width: 761px) { .swipe-nav, .more-btn { display: none !important; } }
