/* VB Safety · pages métier : réglages téléphone (voir metier-tel.js). Sur ordinateur, rien ne change. */
.bascule { display: none; }

@media (max-width: 700px) {
  /* Tout centré */
  .hero .wrap > div, .sec-tete, .final .bande, .final .bande > div, .sec > .wrap > h2.kicker { text-align: center; }
  .hero .ariane { justify-content: center; }
  .hero .h1-kw, .sec-tete .titre, .sec-tete .chapeau, .hero h1, .hero .chapeau { margin-left: auto; margin-right: auto; }
  .hero .trait { margin-left: auto; margin-right: auto; }
  .hero .cta, .final .cta { justify-content: center; }
  .offre { text-align: center; align-items: center; }
  .offre ul { text-align: left; justify-self: center; }
  .offre .lien { justify-content: center; }
  .textes li { text-align: center; }
  .textes li .d { justify-items: center; }
  .bref { text-align: left; }

  /* Les enjeux : grands blocs empilés, même format que les textes réglementaires */
  .grille-3.pile-enjeux { display: flex; flex-direction: column; gap: 14px; background: none; border: 0; border-radius: 0; overflow: visible; }
  .pile-enjeux .enjeu { position: relative; overflow: hidden; text-align: center; padding: 26px 22px 28px; border: 1px solid var(--ligne); border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); }
  .pile-enjeux .enjeu::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(.18); transition: transform .9s cubic-bezier(.2, .7, .2, 1) .2s; }
  .pile-enjeux .enjeu .n { font: 700 13px/1 var(--sans); letter-spacing: .02em; }
  .pile-enjeux .enjeu h3 { font-size: 20px; margin-top: 12px; }
  .pile-enjeux .enjeu p { text-align: center; }
  .pile-enjeux.apparition .enjeu { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .pile-enjeux.apparition .enjeu.vu { opacity: 1; transform: none; }
  .pile-enjeux.apparition .enjeu.vu::before, .pile-enjeux:not(.apparition) .enjeu::before { transform: scaleX(1); }

  /* Bascules : un bloc à la fois */
  .bascule { display: grid; grid-template-columns: repeat(var(--n), 1fr); position: relative; gap: 0; margin: 0 0 18px; padding: 4px; border-radius: 12px; background: rgba(20, 36, 56, .82); border: 1px solid rgba(255, 255, 255, .1); }
  .bascule button { position: relative; z-index: 1; min-height: 42px; padding: 6px 6px; border: 0; background: none; color: #B8BCC6; font: 600 13px/1.25 var(--sans); cursor: pointer; transition: color .25s; }
  .bascule button[aria-selected="true"] { color: #0E1E30; }
  .bascule-curseur { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 9px; background: #FAFAFA; transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .a-bascule > *:not(.actif) { display: none; }
  .a-bascule > .actif { display: flex; }
  .frise.a-bascule > .fr-row.actif { display: block; }
  .a-bascule > .de-droite { animation: tel-droite .4s cubic-bezier(.2, .7, .2, 1); }
  .a-bascule > .de-gauche { animation: tel-gauche .4s cubic-bezier(.2, .7, .2, 1); }
  .frise.a-bascule .fr-lab { display: none; }
}
@keyframes tel-ouvre { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes tel-droite { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes tel-gauche { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bascule-curseur, .bascule button { transition: none; } .a-bascule > *, .enjeu.repli.ouvert p { animation: none !important; } }
@media (max-width: 700px) {
  main .hero .chapeau, main .sec-tete .chapeau { text-align: center; }
  /* Textes réglementaires : blocs empilés */
  .textes.pile-textes { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; overflow: visible; }
  .textes.pile-textes li { flex: none; position: relative; overflow: hidden; }
  .textes.pile-textes li::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(.18); transition: transform .9s cubic-bezier(.2, .7, .2, 1) .2s; }
  .textes.pile-textes + .rail-points { display: none; }
  .textes.pile-textes.apparition li { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .textes.pile-textes.apparition li.vu { opacity: 1; transform: none; }
  .textes.pile-textes.apparition li.vu::before { transform: scaleX(1); }
}
@media (max-width: 700px) {
  /* Textes réglementaires : tout centré dans chaque bloc */
  .textes.pile-textes li, .textes.pile-textes li > div { align-items: center; text-align: center; }
  .textes.pile-textes .statut { align-self: center; }
  /* Haut de page aéré : fil d'Ariane masqué, chapeau réduit à sa première phrase, plus d'espace */
  .hero .ariane { display: none; }
  .hero .ch-plus { display: none; }
  .hero h1 { margin-top: 18px; }
  .hero .trait { margin-top: 28px; margin-bottom: 4px; }
  .hero .chapeau { margin-top: 22px; }
  .hero .cta { margin-top: 32px; }
  .hero { padding-top: 40px; padding-bottom: 48px; }
}

/* ---------- Téléphone : densité de lecture ----------
   Le centrage systématique et la grande typographie faisaient paraître chaque section deux
   fois plus longue qu'elle ne l'est. Les titres restent centrés, les paragraphes et les
   cartes repassent au fer à gauche, et tout se resserre d'un cran. */
@media (max-width: 700px) {
  .sec { padding: 40px 0; }
  .sec-tete { margin-bottom: 20px; }
  .sec-tete .titre { font-size: 25px; line-height: 1.16; }
  main .sec-tete .chapeau { font-size: 15.5px; line-height: 1.55; text-align: left; }

  /* Enjeux : texte au fer à gauche, carte resserrée */
  .pile-enjeux .enjeu { padding: 20px 18px 22px; text-align: left; }
  .pile-enjeux .enjeu h3 { font-size: 17.5px; line-height: 1.3; margin-top: 9px; }
  .pile-enjeux .enjeu p { text-align: left; font-size: 14.5px; line-height: 1.55; }

  /* Offre : même traitement, le titre et le lien restent centrés */
  .offre { text-align: left; align-items: stretch; padding: 22px 18px 20px; }
  .offre .statut, .offre h3 { text-align: center; }
  .offre h3 { font-size: 21px; margin-top: 11px; }
  .offre > p { font-size: 14.5px; line-height: 1.55; }
  .offre ul { margin-top: 14px; gap: 7px; }
  .offre li { font-size: 14px; }
  .offre .lien { padding-top: 16px; }

  /* Textes réglementaires : idem */
  .textes.pile-textes li, .textes.pile-textes li > div { align-items: flex-start; text-align: left; }
  .textes.pile-textes .statut { align-self: flex-start; }

  /* le libellé du métier sort du bandeau collant et laissait passer le texte dessous ;
     le menu indique déjà le métier en cours */
  .top .marque-sub { display: none; }

  /* le bouton fixé en bas ne doit pas manger la dernière ligne */
  main { padding-bottom: 72px; }
}
