/* ================= Maquette téléphone (16 nov. 2026) =================
   Tout est dans une règle « max-width: 860px » : l'ordinateur ne change pas.
   Le contenu (textes, photos, prix) est identique au site. */

/* Onglets des forfaits : visibles seulement sur téléphone */
.plan-tabs { display: none; }

@media (max-width: 860px) {
  :root { --gutter: 20px; --band: 56px; }
  html { -webkit-tap-highlight-color: transparent; }
  body { font-size: 1.0625rem; }
  h2,
  .chapter__title, .vision h2, .suivi__head h2, .center-head h2, .resale h2 { font-size: 2rem; }
  .breather h2 { font-size: 2.5rem; }
  .pill:active, .bridge a:active { transform: scale(0.97); }

  /* Le grain reste, mais ne bouge plus : moins de batterie, défilement plus fluide */
  body::after { animation: none; }

  /* ---------- Menu : une barre en bas, sous le pouce ---------- */
  .nav__end { position: fixed; z-index: 30; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); gap: 4px; padding: 5px; border-radius: 99px; background: #151515e6; border: 1px solid #ffffff26; box-shadow: 0 14px 34px #000000cc, inset 0 1px 0 #ffffff1a; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .nav__end > a:not(.pill) { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 99px; color: var(--soft); font-size: 1rem; white-space: nowrap; transition: background-color 0.25s, color 0.25s; }
  .nav__end > a.is-on:not(.pill) { background: var(--text); color: var(--bg); text-decoration: none; }
  .footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .footer nav { flex-direction: column; align-items: center; gap: 0; }
  .footer a { display: flex; align-items: center; min-height: 44px; }

  /* ---------- Accueil : tout tient sur un écran ---------- */
  .hero { min-height: 100svh; }
  .hero__text { padding-top: calc(76px + env(safe-area-inset-top)); }
  .hero h1 { font-size: 3.2rem; }
  .hero .slides { flex: 1 1 auto; height: auto; min-height: 40svh; margin-top: -5svh; }
  .stores { flex-direction: column; align-items: center; }
  .stores .pill { width: min(300px, 100%); }

  /* ---------- Pièces suivies : une rangée à faire glisser ---------- */
  .parts { display: flex; grid-template-columns: none; gap: 10px; margin: 28px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .parts::-webkit-scrollbar { display: none; }
  .parts li { flex: 0 0 96px; scroll-snap-align: start; padding: 14px 4px 12px; gap: 8px; border-radius: 18px; font-size: 0.9rem; }
  .parts li:hover { transform: none; }
  .pring { width: 60px; height: 60px; }
  .parts__vtt::before { top: 7px; right: 8px; font-size: 0.62rem; }

  /* ---------- Les trois étapes : une frise verticale, lisible d'un coup d'œil ---------- */
  .flow { gap: 0; text-align: left; }
  #pieces .flow, #comment .flow { margin-top: 32px; }
  .flow li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0 0 26px; }
  .flow li:last-child { padding-bottom: 0; }
  .flow li::before { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border-radius: 50%; border: 1px solid #ffffff38; background: linear-gradient(180deg, #1c1c1c, #0d0d0d); font-size: 1.15rem; }
  .flow li::after { inset: 50px auto 6px 21px; width: 2px; height: auto; background: linear-gradient(#52525b, #27272a); border-radius: 2px; }
  .flow li:last-child::after { content: none; }
  .flow h3 { align-self: end; padding-top: 9px; margin-bottom: 4px; font-size: 1.3rem; }
  .flow p { grid-column: 2; }

  /* ---------- Exemple de suivi : plus de vide, l'alerte arrive sous le tableau ---------- */
  .sync__pin { gap: 0; padding-block: 40px 28px; }
  .sync .sync__text { display: contents; }
  .sync .sync__text .eyebrow { justify-self: start; }
  .sync__lead { margin: 0 0 20px; }
  .sync__demo { padding: 16px; }
  .notif { order: 3; justify-self: center; margin-top: 14px; padding: 12px 14px; gap: 12px; border-radius: 20px; }
  .notif img { width: 44px; height: 44px; border-radius: 11px; }
  .notif__body { font-size: 1.05rem; }
  .bridge a { border-radius: 22px; }

  /* ---------- Chiffres du contrôle : deux côte à côte, le troisième dessous ---------- */
  .stats { grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .stats li { padding: 16px 8px; }
  .stats li + li { border-top: 0; border-left: 1px solid var(--line); }
  .stats li:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .stats b { font-size: 2.2rem; }

  /* ---------- Contrôle : le texte reste au-dessus de la barre du bas ---------- */
  .stop { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .stop h2 { font-size: 1.9rem; }
  .ask { font-size: 1.1rem; }

  /* ---------- Forfaits : trois cartes à faire glisser, avec des onglets ---------- */
  .plans-stage { padding-top: 20px; padding-bottom: 20px; }
  .plan-tabs { position: relative; z-index: 2; display: flex; gap: 4px; width: fit-content; margin: 0 auto 16px; padding: 4px; border-radius: 99px; background: #111111e6; border: 1px solid #ffffff24; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .plan-tabs button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 99px; background: none; color: var(--soft); font: 600 1rem Nunito, system-ui, sans-serif; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
  .plan-tabs button[aria-current='true'] { background: var(--text); color: var(--bg); }
  .plans { display: flex; grid-template-columns: none; max-width: none; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 86%; scroll-snap-align: center; padding: 22px 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 14px 22px -12px rgba(0,0,0,0.9); }
  .plan h3 { font-size: 2rem; }
  .plan .price { font-size: 1.7rem; }
  .for { font-size: 1.1rem; }
  .plan li { padding: 10px 0; }
  .plan__end .pill { width: 100%; }

  /* ---------- Contrôle à l'unité : les deux prix côte à côte ---------- */
  #offres .resale { margin-top: 28px; padding-top: 40px; }
  .prices { flex-wrap: nowrap; gap: 16px; }
  .prices .resale__price { flex: 1 1 0; flex-direction: column; gap: 2px; }
  .resale__price b { font-size: 2rem; }
  .resale__sell { margin-top: 28px; }
  .resale__grid { gap: 36px; }

  /* ---------- Chat et fin de page ---------- */
  .chat { margin-bottom: 0; padding: 16px; border-radius: 22px; }
  .ai-ring { width: 108px; }
  .bubble { max-width: 92%; padding: 11px 15px; font-size: 1rem; }
  #chat { padding-bottom: 40px; }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .plans, .parts { scroll-behavior: auto; }
}
