/* Pages en écrans (22/11/2026, demande de la propriétaire) : js/pages-ecrans.js. Un écran à la fois, une barre
   « ← Retour / Suivant → » toujours visible en bas, une fine barre de progression en haut. Sans JavaScript, la
   classe « ecrans-actif » n'existe pas : la page reste complète.
   (« body.ecrans-actif » : un cran de plus que les styles des pages, chargés après celle-ci, css/luxe.css…) */
body.ecrans-actif main > section.ecran { display: none; }
body.ecrans-actif main > section.ecran.ecran-courant {
  display: block;
  /* (hauteur de l'écran moins l'en-tête du site et la barre du bas : un écran tient sans faire défiler) */
  min-height: calc(100vh - 185px - env(safe-area-inset-bottom, 0px));
  min-height: var(--ecran-dispo, calc(100dvh - 185px - env(safe-area-inset-bottom, 0px)));   /* (mesurée par le script) */
  animation: ecran-arrivee 0.35s ease both;
}
/* (place pour la barre du bas : rien ne se cache derrière) */
body.ecrans-actif { padding-bottom: var(--ecran-barre, calc(100px + env(safe-area-inset-bottom, 0px))); }
/* (23/11/2026, choix de la propriétaire) plus de grand bas de page, même sur le formulaire (on ne « change pas de page ») :
   la petite ligne « Mentions légales · Confidentialité » est dans la barre du bas, sur chaque écran */
body.ecrans-actif .site-footer, body.ecrans-actif .bandeau-integrer { display: none; }
.ecrans-legal { flex: 0 0 100%; max-width: none; order: -1; margin: 0 0 0.35rem; text-align: center; font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.75); }
.ecrans-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ecrans-barre--legal { padding-top: 0.5rem; padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)); }
.ecrans-barre--legal .ecrans-legal { margin: 0; }
.ecrans-barre--legal .ecrans-compteur { display: none; }

.ecrans-progression {
  position: sticky; top: 0; z-index: 40; height: 3px; background: var(--rouge-mat-a50, rgba(255, 255, 255, 0.15));
}
.ecrans-progression span { display: block; height: 100%; width: 0; background: var(--or, #d8b26a); transition: width 0.35s ease; }

.ecrans-barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 0.75rem;
  padding: 0.5rem max(1rem, env(safe-area-inset-left, 0px)) calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--bordeaux-fonce, #5e1820);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}
.ecrans-barre[hidden] { display: none; }
.ecrans-barre .btn { min-height: 48px; margin: 0; }
/* (22/11/2026, demande de la propriétaire : « trop bruts, carrés ») les boutons de la barre sont ceux des pages luxe :
   arrondis avec un reflet (classe lx-boutons posée par js/pages-ecrans.js, css/luxe.css) ; couleurs du bouton unique
   (css/bouton-ma2m.css). Ici seulement la taille, pour que tout tienne sur un téléphone. */
.ecrans-barre { --bouton-rayon: 999px; }
/* flèches rondes (choix de la propriétaire) : ← à gauche, → à droite, compteur au milieu */
.ecrans-barre .btn.btn { width: 56px; height: 56px; min-height: 56px; padding: 0; line-height: 1; letter-spacing: 0; }
.ecrans-barre .btn svg { width: 26px; height: 26px; flex: none; }
.ecrans-barre .ecrans-compteur { flex: 1; text-align: center; }
.ecrans-barre .ecrans-retour[hidden] + .ecrans-compteur { margin-left: 56px; }
.ecrans-barre .ecrans-retour[hidden], .ecrans-barre .ecrans-suivant[hidden] { display: none; }
.ecrans-barre .ecrans-suivant { margin-left: auto; }
.ecrans-compteur { font-size: 0.85rem; letter-spacing: 0.08em; opacity: 0.8; white-space: nowrap; }
/* (23/11/2026, visite du site en ligne) ordinateur et tablette couchée : la petite ligne légale passe à gauche, sur la même
   rangée que les flèches (sur deux rangées, la barre était trop haute et cachait le bouton « Suivant » du formulaire) */
@media (min-width: 900px) and (orientation: landscape) {
  .ecrans-barre .ecrans-legal { position: absolute; left: max(1.5rem, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); flex: none; margin: 0; text-align: left; }
  body.ecrans-actif .ecran-formulaire .lx-titre-section { font-size: 2.4rem; margin-bottom: 0.6rem; }
}
@media (min-width: 900px) {
  .ecrans-barre { justify-content: center; column-gap: 2rem; }
  .ecrans-barre .ecrans-suivant { margin-left: 0; }
  .ecrans-barre .ecrans-compteur { flex: 0 0 auto; }
}
/* le bouton WhatsApp flottant passe au-dessus de la barre */
body.ecrans-actif .whatsapp-flottant { bottom: calc(var(--ecran-barre, 100px) + 0.8rem); }

/* (une section = un écran : les grands espaces prévus pour la page longue sont réduits) */
body.ecrans-actif main > section.ecran.ecran-courant:not(.lx-hero) { padding-top: 1.6rem; padding-bottom: 1.6rem; margin-top: 0; margin-bottom: 0; }
body.ecrans-actif main > section.ecran .lx-titre-section { margin-bottom: 1rem; }
/* Intégrer l'agence : cartes des parcours, étapes et avantages plus serrées */
body.ecrans-actif .ia-parcours { gap: 0.8rem; }
body.ecrans-actif .ia-parcours-carte { padding: 1rem 1.1rem; }
body.ecrans-actif .ia-parcours-carte h3 { font-size: 1.5rem; }
body.ecrans-actif .ia-consigne { margin-bottom: 0.8rem; font-size: 0.92rem; }
body.ecrans-actif .ia-etapes, body.ecrans-actif .ia-avantages { gap: 0.6rem; }
body.ecrans-actif .ia-etapes > li, body.ecrans-actif .ia-avantage { padding: 0.9rem 1rem; }
/* accueil : la photo en haut, le texte remonté pour tenir dans l'écran au-dessus de la barre */
/* (23/11/2026) accueil : la photo remplit tout l'écran, le texte posé en bas sur le voile rouge */
body.ecrans-actif main > section.ecran.ecran-courant.lx-hero { display: flex; align-items: flex-end; padding-top: 30vh; padding-bottom: 1.5rem; }
body.ecrans-actif .lx-hero-photo { height: 100%; }
@media (min-width: 900px) {
  body.ecrans-actif main > section.ecran.ecran-courant.lx-hero { align-items: center; padding-top: 3rem; padding-bottom: 2rem; }
  body.ecrans-actif .lx-hero-photo { height: 100%; }
  body.ecrans-actif .lx-hero h1 { font-size: min(5rem, 10vh); }
  body.ecrans-actif .lx-hero .lx-chapeau { margin-top: 0.8rem; font-size: 1rem; line-height: 1.6; }
  body.ecrans-actif .lx-hero .ct-avertissement { margin: 1rem 0 0; padding: 0.8rem 1.1rem; font-size: 0.88rem; line-height: 1.5; }
  body.ecrans-actif .lx-hero .ct-avertissement p { margin: 0.3rem 0 0.4rem; }
}
/* (23/11/2026) le contenu de chaque écran est centré en hauteur : l'écran est rempli, pas tassé en haut (tablette surtout) */
body.ecrans-actif main > section.ecran.ecran-courant:not(.lx-hero):not(.ecran-formulaire) { display: flex; flex-direction: column; justify-content: center; }
body.ecrans-actif main > section.ecran.ecran-courant:not(.lx-hero):not(.ecran-formulaire) > * { width: 100%; }
/* Cours de talons : une formule par écran, centrée */
body.ecrans-actif .ct-cartes { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
/* vidéo : entière dans l'écran, au milieu, au-dessus de la barre ; écran debout (téléphone, tablette) : la version
   verticale, écran couché (ordinateur) : la version horizontale */
body.ecrans-actif main > section.ecran.ecran-courant.video-pleine { padding: 0; margin: 0; }
body.ecrans-actif .video-pleine video { width: auto; max-width: 100%; height: calc(var(--ecran-dispo, 70vh) - 1rem); margin: 0 auto; object-fit: contain; }
@media (orientation: portrait) {
  body.ecrans-actif .video-pleine .vp-verticale { display: block; }
  body.ecrans-actif .video-pleine .vp-horizontale { display: none; }
}
@media (orientation: landscape) {
  body.ecrans-actif .video-pleine .vp-verticale { display: none; }
  body.ecrans-actif .video-pleine .vp-horizontale { display: block; }
}
/* (23/11/2026, retour de la propriétaire : « un peu trop petit au milieu ») les photos qui défilent prennent tout l'écran,
   en grands rectangles debout */
body.ecrans-actif .lx-galerie-grille { margin-top: 1rem; padding-bottom: 0; }
body.ecrans-actif .lx-galerie-grille .lx-tapis .lx-galerie-photo { width: auto; height: calc(var(--ecran-dispo, 70vh) - 9rem); aspect-ratio: 3 / 4; max-height: none; }
body.ecrans-actif .lx-galerie .lx-grand-titre { font-size: clamp(1.5rem, 4.6vw, 2.4rem); }
/* programme : une ligne par mois (un écran par niveau, data-ecran-coupe) */
body.ecrans-actif .lx-prog-section .lx-prog.lx-prog { grid-template-columns: 1fr; gap: 0.4rem; }
body.ecrans-actif .lx-prog-section .lx-prog .lx-prog-mois { flex-direction: row; align-items: center; gap: 0.75rem; padding: 0.5rem 0.9rem; border-radius: 14px; }
body.ecrans-actif .lx-prog-section .lx-prog .lx-prog-num { flex: none; width: 2rem; height: 2rem; font-size: 0.85rem; }
body.ecrans-actif .lx-prog-section .lx-prog .lx-prog-quand { margin: 0; font-size: 0.62rem; }
body.ecrans-actif .lx-prog-section .lx-prog .lx-prog-mois h3 { margin: 0; font-size: 1rem; line-height: 1.25; }
body.ecrans-actif .lx-prog-section .lx-prog-intro { font-size: 0.95rem; }
@media (min-width: 900px) { body.ecrans-actif .lx-prog-section .lx-prog.lx-prog { grid-template-columns: repeat(3, 1fr); } }

/* formulaire : la 1re étape et son bouton « Suivant » tiennent dans l'écran */
body.ecrans-actif :is(.lx-formulaire, .ct-inscription) .lx-progression { margin-bottom: 1rem; }
body.ecrans-actif :is(.lx-formulaire, .ct-inscription) .lx-progression li { font-size: 0.62rem; gap: 0.35rem; }
body.ecrans-actif :is(.lx-formulaire, .ct-inscription) .lx-progression li::before { width: 2.1rem; height: 2.1rem; }
body.ecrans-actif :is(.lx-formulaire, .ct-inscription) .lx-progression li + li::after { top: 1.05rem; }
body.ecrans-actif :is(.lx-formulaire, .ct-inscription) :is(.lx-etape-titre, .ct-etape-titre) { margin-bottom: 0.7rem; }
body.ecrans-actif :is(.lx-formulaire, .ct-inscription) :is(.lx-etape-titre, .ct-etape-titre) h3 { font-size: 1.45rem; }
body.ecrans-actif .lx-formulaire .ca-2 { padding: 0.8rem 1rem; font-size: 0.82rem; line-height: 1.5; margin-bottom: 0.9rem; }
body.ecrans-actif .lx-formulaire .ca-3 { margin-bottom: 0.5rem; }
body.ecrans-actif .lx-formulaire .lx-etape-boutons { margin-top: 1rem; }
/* Téléphone : chaque écran tient au-dessus de la barre du bas (textes et cartes resserrés, rien n'est retiré) */
@media (max-width: 899px) {
  /* (le bas du texte laisse la place à la bulle WhatsApp) */
  body.ecrans-actif main > section.ecran.ecran-courant.lx-hero { padding-top: 12vh; padding-bottom: 4.6rem; }
  body.ecrans-actif .lx-hero h1 { font-size: 2.3rem; margin-bottom: 0; }
  /* (le texte est remonté sur la photo : le voile rouge descend plus tôt, pour qu'il reste bien lisible,
     contrôle test-lisibilite-photos.js) */
  body.ecrans-actif .lx-hero .lx-hero-voile { background: linear-gradient(180deg, rgba(90, 20, 27, 0.1) 0%, rgba(90, 20, 27, 0.25) 30%, rgba(90, 20, 27, 0.85) 52%, rgba(90, 20, 27, 1) 66%, rgba(90, 20, 27, 1) 100%); }
  body.ecrans-actif .lx-hero .lx-chapeau { font-size: 0.9rem; line-height: 1.5; margin-top: 0.6rem; }
  body.ecrans-actif .lx-hero p.u-mt-1-2 { margin-top: 0.6rem; font-size: 0.88rem; }
  body.ecrans-actif .ia-etapes > li { padding: 0.8rem 1rem; }
  body.ecrans-actif .ia-etapes h3 { margin: 0.3rem 0 0.2rem; font-size: 1.35rem; }
  body.ecrans-actif .ia-etapes p, body.ecrans-actif .ia-avantage p { line-height: 1.45; font-size: 0.9rem; }
  body.ecrans-actif .ia-critere { padding: 1rem 0.8rem; }
  body.ecrans-actif .ia-avantage { padding: 0.8rem 1rem; }
  body.ecrans-actif .ia-avantage::after { display: none; }
  body.ecrans-actif .ia-avantage h3 { margin: 0.2rem 0 0.2rem; font-size: 1.3rem; }
  body.ecrans-actif .ia-avantage .ia-icone { font-size: 1.3rem; }
  body.ecrans-actif main > section.ecran .lx-titre-section { font-size: 2rem; }
  body.ecrans-actif .ia-consigne { font-size: 0.85rem; line-height: 1.45; }
  body.ecrans-actif .ia-parcours { gap: 0.6rem; }
  body.ecrans-actif .ia-parcours-carte { padding: 0.7rem 0.9rem; }
  body.ecrans-actif .ia-parcours-tete h3 { font-size: 1.35rem; margin: 0; }
  body.ecrans-actif .ia-parcours-tete p { font-size: 0.88rem; margin: 0.1rem 0 0; line-height: 1.4; }
  /* (les deux temps du parcours côte à côte) */
  body.ecrans-actif .ia-ligne { margin: 0.6rem 0 0.7rem; padding: 0; border: 0; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  body.ecrans-actif .ia-ligne li { align-content: start; padding-left: 0.6rem; border-left: 1px solid rgba(255, 255, 255, 0.5); }
  body.ecrans-actif .ia-ligne li::before { display: none; }
  body.ecrans-actif .ia-ligne b { font-size: 1.15rem; }
  body.ecrans-actif .ia-ligne span { font-size: 0.85rem; line-height: 1.4; }
  body.ecrans-actif .ia-parcours-carte .btn { min-height: 40px; padding: 0.45rem 1.2rem; }
  /* « Trois étapes » (Postuler à un casting, Cours de talons) : chiffre à gauche, texte à droite */
  body.ecrans-actif .lx-promesse .lx-grand-titre { font-size: 2rem; }
  body.ecrans-actif .lx-promesse .lx-ornement { margin-top: 0.8rem; }
  body.ecrans-actif .lx-piliers { margin-top: 1.2rem; gap: 0.9rem; }
  body.ecrans-actif .lx-piliers li { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 0.8rem; align-items: start; padding: 0.9rem 0 0; text-align: left; }
  body.ecrans-actif .lx-piliers .lx-chiffre { grid-row: span 2; margin: 0; font-size: 2rem; text-align: center; }
  body.ecrans-actif .lx-piliers h3 { margin: 0 0 0.2rem; font-size: 1.3rem; }
  body.ecrans-actif .lx-piliers p { margin: 0; max-width: none; font-size: 0.9rem; line-height: 1.45; }
  /* Cours de talons : l'avertissement de l'accueil et les thèmes du programme, resserrés */
  body.ecrans-actif .lx-hero .ct-avertissement { margin: 0.9rem 0 0; padding: 0.8rem 1rem; font-size: 0.85rem; line-height: 1.45; }
  body.ecrans-actif .lx-hero .ct-avertissement strong { font-size: 0.92rem; }
  body.ecrans-actif .lx-hero .ct-avertissement p { margin: 0.3rem 0 0.4rem; }
  body.ecrans-actif .lx-prog-section .lx-prog-mois ol { gap: 0.1rem; }
  body.ecrans-actif .lx-prog-section .lx-prog-mois ol li { font-size: 0.84rem; line-height: 1.3; }
  body.ecrans-actif .lx-prog-section .lx-prog-pied { margin-top: 0.8rem; font-size: 1.05rem; }
  body.ecrans-actif .ct-carte { padding: 1.2rem 1.3rem 1.1rem; }
  body.ecrans-actif .ct-carte h3 { margin: 0.5rem 0 0.2rem; font-size: 2rem; }
  body.ecrans-actif .ct-carte p { margin-top: 0.4rem; margin-bottom: 0.4rem; font-size: 0.9rem; line-height: 1.45; }
  body.ecrans-actif .ct-apprendre { margin-top: 0.9rem; gap: 0.4rem; }
  body.ecrans-actif .ct-apprendre li { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
  /* programme : le chiffre romain donne déjà le mois, la mention « Mois N » n'est plus répétée */
  body.ecrans-actif .lx-prog-section .lx-prog .lx-prog-mois:not(.lx-prog-mois--suite) .lx-prog-quand { display: none; }
  body.ecrans-actif .lx-prog-section .lx-prog .lx-prog-mois { padding: 0.25rem 0.7rem; gap: 0.6rem; }
  body.ecrans-actif .lx-prog-section .lx-prog.lx-prog { gap: 0.3rem; }
  body.ecrans-actif .lx-prog-section .lx-prog .lx-prog-num { width: 1.7rem; height: 1.7rem; font-size: 0.75rem; }
  body.ecrans-actif .lx-prog-section .lx-prog .lx-prog-mois h3 { font-size: 0.84rem; line-height: 1.25; font-weight: 600; }
  body.ecrans-actif .lx-prog-section .lx-titre-section { font-size: 1.65rem; margin-bottom: 0.5rem; }
  body.ecrans-actif .lx-prog-section .lx-prog-intro { font-size: 0.8rem; line-height: 1.45; margin-bottom: 0.6rem; }
  body.ecrans-actif .lx-prog-section .lx-prog-niveau { margin: 0.3rem 0 0.4rem; font-size: 1.3rem; }
  body.ecrans-actif .lx-prog-section .lx-surtitre { margin-bottom: 0.3rem; }
}

/* Tablette debout (23/11/2026, retour de la propriétaire : « ça sort trop petit, ça prend juste un peu en haut ») :
   tout est agrandi d'un quart, les cartes passent l'une sous l'autre, l'accueil prend la photo en plein écran */
@media (min-width: 700px) and (max-width: 1199px) and (orientation: portrait) {
  html:has(body.ecrans-actif) { font-size: 135%; }
  body.ecrans-actif main > section.ecran.ecran-courant.lx-hero { align-items: flex-end; padding-top: 30vh; padding-bottom: 6rem; }
  body.ecrans-actif .lx-hero-photo { left: 0; width: 100%; height: 100%; object-position: 50% 15%; }
  body.ecrans-actif .lx-hero .lx-hero-voile { background: linear-gradient(180deg, rgba(90, 20, 27, 0.1) 0%, rgba(90, 20, 27, 0.25) 35%, rgba(90, 20, 27, 0.85) 58%, rgba(90, 20, 27, 1) 72%, rgba(90, 20, 27, 1) 100%); }
  body.ecrans-actif .lx-hero-texte { max-width: none; }
  body.ecrans-actif .lx-hero-lieu { display: none; }
  body.ecrans-actif .ia-etapes, body.ecrans-actif .ia-parcours { grid-template-columns: 1fr; }
  body.ecrans-actif .ia-avantages, body.ecrans-actif .ia-criteres { grid-template-columns: repeat(2, 1fr); }
  body.ecrans-actif .lx-prog-section .lx-prog.lx-prog { grid-template-columns: 1fr; }
  body.ecrans-actif .ecrans-barre .btn.btn { width: 64px; height: 64px; }
}

@keyframes ecran-arrivee { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  body.ecrans-actif main > section.ecran.ecran-courant { animation: none; }
  .ecrans-progression span { transition: none; }
}
