/* =========================================================
   RCP EVOLUTION — Version téléphone dédiée (≤ 760px)
   Accueil plein écran · barre d'onglets · accès rapide · carrousels
   ========================================================= */

/* Éléments propres au mobile : cachés sur ordinateur */
.nav__wa, .quick, .hero__chips, .tabbar, .car-ui, .mm-channels, .show-m { display: none; }

@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 76px; }
  html { scroll-padding-top: 72px; }
  body { font-size: 16px; }
  body.has-tabbar { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .hide-m { display: none !important; }
  .show-m { display: block; }
  .mobile-cta { display: none !important; }

  /* ---------- En-tête ---------- */
  .nav { background: linear-gradient(180deg, rgba(10,9,8,.9) 0%, rgba(10,9,8,0) 100%); }
  .nav__inner, .nav.is-scrolled .nav__inner { height: 64px; }
  .brand { gap: 10px; }
  .brand img { width: 46px; }
  .brand__name { font-size: 19px; }
  .brand__name small { font-size: 10px; letter-spacing: .34em; }
  .burger, .nav__cta .btn { display: none !important; }
  .nav__cta .nav__back { display: inline-flex !important; }
  .nav__wa {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); color: var(--gold);
  }
  .nav__wa svg { width: 21px; height: 21px; }

  /* ---------- Typo & sections ---------- */
  h2 { font-size: clamp(40px, 11.5vw, 52px); }
  h3 { font-size: 26px; }
  .lead { font-size: 16.5px; line-height: 1.6; }
  .eyebrow { font-size: 13px; letter-spacing: .24em; margin-bottom: 14px; gap: 10px; }
  .eyebrow::before { width: 24px; }
  .section-head, .section-head--split { margin-bottom: 32px; gap: 14px; }
  .section--tight { padding-block: 56px; }
  .btn { --h: 54px; font-size: 17px; padding: 0 24px; }

  /* ---------- Accueil plein écran ---------- */
  .hero { display: block; min-height: 0; padding: 0 0 36px; }
  .hero__bg .grid { display: none; }
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__visual { order: -1; max-width: none; width: auto; margin: 0 calc(var(--gutter) * -1); }
  .hero__photo {
    aspect-ratio: auto; height: 62svh; min-height: 420px; max-height: 600px;
    border-radius: 0 0 32px 32px; box-shadow: none;
  }
  .hero__photo img { object-position: 38% 30%; }
  .hero__photo::after { background: linear-gradient(180deg, rgba(10,9,8,.55) 0%, rgba(10,9,8,0) 22%, rgba(10,9,8,0) 42%, rgba(10,9,8,.85) 78%, var(--bg) 100%); }
  .hero__caption, .float-card, .scroll-cue { display: none; }
  .hero__content { position: relative; z-index: 2; margin-top: -200px; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero__badge { margin-bottom: 18px; padding: 6px 14px 6px 6px; font-size: 13px; gap: 8px; background: rgba(10,9,8,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .hero__badge b { font-size: 11px; padding: 4px 9px; }
  .hero h1 { font-size: clamp(58px, 17.5vw, 80px); line-height: .86; margin-bottom: 20px; }
  .hero .lead { font-size: 16.5px; margin: 0 auto 24px; max-width: 30ch; }
  .hero__actions { width: 100%; flex-direction: column; gap: 10px; margin-bottom: 22px; }
  .hero__actions .btn { width: 100%; }
  .hero__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; }
  .hero__chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); }
  .hero__chips svg { width: 16px; height: 16px; color: var(--gold); }
  .hero__proof { flex-direction: column; gap: 10px; justify-content: center; }
  .hero__proof p { text-align: center; font-size: 14px; }
  .avatars img { width: 40px; height: 40px; }

  /* ---------- Accès rapide ---------- */
  .quick { display: block; padding: 8px 0 40px; }
  .quick__title { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
  .quick__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick__grid a {
    display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--line); min-height: 118px;
    transition: border-color .2s, background .2s;
  }
  .quick__grid a:active { background: var(--surface-2); border-color: rgba(242,185,67,.5); }
  .quick__grid .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(242,185,67,.1); color: var(--gold); border: 1px solid rgba(242,185,67,.22); margin-bottom: auto; }
  .quick__grid .ico svg { width: 20px; height: 20px; }
  .quick__grid strong { font-family: var(--f-display); font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1; margin-top: 14px; }
  .quick__grid span:not(.ico) { font-size: 13px; color: var(--muted); line-height: 1.3; }

  /* ---------- Bandeau & chiffres ---------- */
  .marquee { padding: 14px 0; }
  .marquee__item { font-size: 26px; }
  .marquee__bolt { width: 20px; height: 20px; }
  .marquee__group { gap: 22px; padding-right: 22px; }
  .stats { grid-template-columns: 1fr 1fr; border-radius: 20px; }
  .stat { padding: 20px 18px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat__num { font-size: 46px; }
  .stat__label { font-size: 13px; margin-top: 6px; }

  /* ---------- Ma transformation : titre, puis photo, puis texte ---------- */
  .story { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .story > div:nth-child(2) { display: contents; }
  .story > div:nth-child(2) > * { order: 5; }
  .story > div:nth-child(2) > .eyebrow { order: 1; align-self: flex-start; }
  .story > div:nth-child(2) > h2 { order: 2; }
  .story > div:first-child { order: 3; margin: 26px 0 6px; }
  .story > div:nth-child(2) > .story__years { order: 4; }
  .story__years { font-size: 44px; margin: 22px 0 18px; gap: 14px; }
  .story .ba { aspect-ratio: 4 / 4.6; }
  .quote { font-size: 23px; padding-left: 18px; margin-top: 24px; }

  /* ---------- Carrousels (clients & formules) ---------- */
  [data-carousel] {
    display: flex !important; position: relative; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1) !important; padding: 18px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    max-width: none !important;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > .reveal { opacity: 1; transform: none; }
  [data-carousel] > * { flex: 0 0 84%; scroll-snap-align: center; min-width: 0; order: 0 !important; }
  .car-ui { display: flex; align-items: center; justify-content: center; gap: 14px; }
  .car-ui--dots { margin-top: 18px; }
  .car-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; color: var(--text); transition: opacity .2s, border-color .2s; }
  .car-arrow svg { width: 18px; height: 18px; }
  .car-arrow:disabled { opacity: .3; }
  .car-dots { display: flex; align-items: center; }
  .car-dot { position: relative; width: 40px; height: 44px; padding: 0; border: 0; background: none; transition: width .3s var(--ease-out); }
  .car-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 8px; transform: translate(-50%, -50%); background: var(--line-strong); transition: width .3s var(--ease-out), background .3s; }
  .car-dot.is-active { width: 52px; }
  .car-dot.is-active::before { width: 28px; background: var(--grad); }
  .car-ui--tabs { margin: 0 0 4px; padding: 5px; gap: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
  .car-tab { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; transition: background .25s, color .25s; }
  .car-tab.is-active { background: var(--grad); color: var(--on-gold); }

  /* Clients */
  .clients > .client { gap: 14px; }
  .client .ba { aspect-ratio: 4 / 5; }
  .client__name { font-size: 26px; }
  .client p { font-size: 14.5px; }
  .ba__knob { width: 44px; height: 44px; }
  .ba__tag { top: 12px; }
  .ba__tag--before { left: 12px; }
  .ba__tag--after { right: 12px; }
  .pill { font-size: 11px; padding: 6px 10px; }

  /* ---------- Le coach ---------- */
  .about { gap: 28px; }
  .about__photo { aspect-ratio: 1 / 1.05; border-radius: 24px; }
  .about__text h2 { margin-bottom: 22px !important; }
  .about__text p { font-size: 16px; }
  .about__text p:first-of-type::first-letter { font-size: 64px; padding-right: 8px; }
  .creds { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .cred { padding: 10px; gap: 10px; border-radius: 16px; }
  .cred strong { font-size: 15px; }
  .cred span span { font-size: 12px; }
  .verify { padding: 14px 16px; font-size: 14px; gap: 12px; }

  /* ---------- Méthode : frise ---------- */
  .steps { gap: 12px; }
  .steps::before { content: ""; position: absolute; left: 39px; top: 40px; bottom: 40px; width: 1px; background: linear-gradient(var(--gold), rgba(242,185,67,.1)); }
  .step { padding: 20px 20px 20px 76px; border-radius: 18px; }
  .step:hover { transform: none; }
  .step::before {
    content: counter(s); position: absolute; left: 20px; top: 20px; right: auto; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; font-size: 19px; font-weight: 800; color: var(--on-gold); -webkit-text-stroke: 0; background: var(--grad);
    box-shadow: 0 0 0 5px var(--bg-2);
  }
  .step__ico { display: none; }
  .step h3 { font-size: 23px; margin-bottom: 8px; }
  .step p { font-size: 15px; }
  .step__time { margin-top: 12px; font-size: 12px; }
  .included { grid-template-columns: 1fr 1fr; margin-top: 12px; }
  .included li { padding: 16px 14px; font-size: 14px; gap: 10px; }
  .included svg { width: 20px; height: 20px; }

  /* ---------- Programmes ---------- */
  .prog { gap: 28px; }
  .tabs { margin-bottom: 24px; }
  .tab { min-height: 44px; font-size: 13.5px; letter-spacing: .03em; padding: 10px 4px; white-space: nowrap; }
  .prog__panel h3 { font-size: 36px; margin-bottom: 12px; }
  .prog__panel > p { font-size: 16px; }
  .checks { margin: 20px 0; gap: 12px; }
  .gyms { font-size: 13px; align-items: flex-start; }
  .sheet { border-radius: 16px; }

  /* ---------- Quiz ---------- */
  .quiz { border-radius: 24px; }
  .quiz__intro { padding: 26px 22px; gap: 14px; }
  .quiz__intro h2 { font-size: 40px; }
  .quiz__body { padding: 24px 20px; min-height: 0; }
  .quiz__progress { margin-bottom: 22px; }
  .quiz__q { font-size: 28px; }
  .quiz__opts { gap: 10px; margin-top: 18px; }
  .opt { min-height: 62px; padding: 14px 16px; }
  .result__plan { font-size: 60px; }
  .result__price b { font-size: 40px; }
  .result__actions { flex-direction: column; }
  .result__actions .btn { width: 100%; }

  /* ---------- Tarifs ---------- */
  #tarifs .section-head { margin-bottom: 22px; }
  .billing { margin-top: 4px; }
  .billing button { padding: 9px 16px; font-size: 14px; }
  .plans { margin-top: 0; }
  .plan { padding: 26px 22px; border-radius: 22px; }
  .plan:hover { transform: none; }
  .plan__name { font-size: 34px; }
  .plan__desc { min-height: 0; margin: 8px 0 18px; }
  .plan__price .amount { font-size: 76px; }
  .plan hr { margin: 20px 0; }
  .plan .checks { margin-bottom: 24px; gap: 10px; font-size: 14.5px; }
  .pay-note { flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; font-size: 13px; }

  /* ---------- Ebook ---------- */
  .ebook { gap: 24px; padding: 30px 22px; border-radius: 26px; text-align: center; }
  .ebook .book__inner { width: 190px; transform: rotateY(-14deg) rotateX(3deg); }
  .ebook h2 { font-size: 34px !important; }
  .ebook .eyebrow { justify-content: center; }
  .ebook__meta { justify-content: center; margin: 18px 0 20px; }
  .ebook .lead { margin: 0 auto 24px !important; font-size: 15.5px; }
  .ebook__actions { flex-direction: column; gap: 16px; }
  .ebook__actions .btn { width: 100%; }

  /* ---------- FAQ ---------- */
  .faq-wrap { gap: 20px; }
  .faq summary { padding: 18px 0; font-size: 16px; gap: 16px; }
  .faq summary .pm { width: 32px; height: 32px; }
  .faq .answer { font-size: 15px; padding: 0 0 20px; }

  /* ---------- Contact ---------- */
  .contact { gap: 28px; }
  .contact h2 { font-size: clamp(44px, 12.5vw, 56px); margin-bottom: 18px; }
  .channels { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
  .channel { flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding: 16px 8px; border-radius: 18px; }
  .channel:hover { transform: none; }
  .channel .ico { width: 46px; height: 46px; }
  .channel strong { font-size: 14px; }
  .channel div span, .channel > svg { display: none; }
  .form { padding: 24px 18px; border-radius: 24px; }
  .form h3 { font-size: 28px; }
  .form > div > p:first-of-type { font-size: 14px; margin-bottom: 20px; }
  .fields { gap: 16px; }
  .chip span { font-size: 14px; padding: 0 14px; }
  .form__submit { grid-template-columns: 1fr; }

  /* ---------- Pied de page ---------- */
  .footer { padding: 56px 0 28px; }
  .footer__big { font-size: 14vw; margin-bottom: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-bottom: 36px; }
  .footer__about { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 6px; font-size: 12.5px; text-align: center; align-items: center; }

  /* ---------- Menu plein écran ---------- */
  .mobile-menu { justify-content: flex-start; padding: 92px var(--gutter) calc(100px + env(safe-area-inset-bottom)); overflow-y: auto; }
  .mobile-menu ul { margin-bottom: 24px; }
  .mobile-menu a.mm-link { font-size: 34px; padding: 13px 0; }
  .mm-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
  .mm-channels a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2); }
  .mm-channels svg { width: 22px; height: 22px; color: var(--gold); }

  /* ---------- Barre d'onglets ---------- */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(14, 12, 10, .92); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
    border-top: 1px solid var(--line);
  }
  .tabbar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 54px; padding: 0;
    background: none; border: 0; color: var(--muted); font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: .01em;
    transition: color .2s;
  }
  .tabbar__item svg { width: 23px; height: 23px; transition: transform .3s var(--ease-out); }
  .tabbar__item.is-active, .menu-open #tabbar-menu { color: var(--gold); }
  .tabbar__item.is-active svg { transform: translateY(-1px); }
  .tabbar__cta { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: -24px; font-size: 11px; font-weight: 700; color: var(--text); }
  .tabbar__cta-btn {
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-gold);
    box-shadow: 0 10px 28px -6px rgba(242,185,67,.65), 0 0 0 5px var(--bg);
    transition: transform .3s var(--ease-out);
  }
  .tabbar__cta:active .tabbar__cta-btn { transform: scale(.94); }
  .tabbar__cta-btn svg { width: 26px; height: 26px; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* ---------- Page Ebook ---------- */
  .ep-hero { padding: 88px 0 56px; }
  .ep-hero__grid { gap: 28px; text-align: center; }
  .ep-hero__grid > .book { order: -1; }
  .ep-hero .book__inner { width: 200px !important; transform: rotateY(-14deg) rotateX(3deg); }
  .ep-hero h1 { font-size: clamp(42px, 12vw, 56px); margin-bottom: 18px; }
  .ep-hero .eyebrow { justify-content: center; }
  .ep-hero .lead { margin-inline: auto; }
  .ep-list { text-align: left; margin-bottom: 26px; }
  .ep-list li { font-size: 15.5px; }
  .ep-hero .hero__actions { flex-direction: column; gap: 10px; }
  .ep-hero .hero__actions .btn { width: 100%; }
  .ep-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; font-size: 13px; }
  .vs__col { padding: 24px 20px; border-radius: 20px; }
  .vs__col h3 { font-size: 24px; margin-bottom: 18px; }
  .vs__col li { font-size: 15px; }
  .chapter { padding: 24px 20px; border-radius: 20px; }
  .buybox { padding: 30px 22px; border-radius: 26px; }
  .buybox::before { border-radius: 27px; }

  /* ---------- Mentions légales ---------- */
  .page-hero { padding: 110px 0 40px; }
  .legal__toc { display: none; }
}

@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; line-height: 1.15; letter-spacing: .05em; padding: 12px 20px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 54px; }
  .quick__grid strong { font-size: 18px; }
  .tabbar__item { font-size: 10px; }
}

/* =========================================================
   STABILITÉ MOBILE & TABLETTE
   Certains navigateurs mobiles dessinent une « copie fantôme » décalée
   de la page avec les flous de fond (backdrop-filter), les calques en
   fusion (mix-blend-mode) et la 3D. On les coupe sur tous les écrans
   tactiles et ≤ 1100px, et on les remplace par des fonds pleins.
   ========================================================= */
@media (max-width: 1100px), (hover: none), (pointer: coarse) {
  html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
  body::after { display: none !important; content: none !important; }
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

  .nav.is-scrolled { background: rgba(10, 9, 8, .97); }
  .mobile-menu { background: #0a0908; pointer-events: none; }
  .menu-open .mobile-menu { pointer-events: auto; }
  .tabbar { background: #0e0c0a; }
  .pill { background: rgba(10, 9, 8, .85); }
  .hero__badge { background: rgba(10, 9, 8, .82); }
  .btn--ghost { background: #15120f; }
  .float-card { background: #16130f; }
  .form { background: var(--surface); }
  .channel { background: var(--surface); }
  .mobile-cta { background: #16130f; }
  .lightbox { background: #050403; }

  /* Pas de 3D ni de grosses animations floues */
  .hero__bg .glow { animation: none; filter: blur(60px); }
  .hero__photo img { animation: none; transform: none; }
  .book__inner, .book:hover .book__inner { transform: none !important; transform-style: flat; }
  .book__inner::before { display: none; }
  .sheet, .sheet:hover { transform: none; }
  [data-carousel] { -webkit-overflow-scrolling: auto; }
}