/* HOTARÉZA — parcours, pages 1 à 4. Fond noir, textes et champs blancs, épuré.
   Aucune ressource externe : pas de CDN, pas de police en ligne.
   Trois formats, choisis par le RAPPORT largeur/hauteur de l'écran (mêmes seuils dans js/medias.js) :
     portrait  : rapport ≤ 17/20   (téléphone, tablette debout)
     tablette  : entre les deux    (tablette couchée 4/3…)
     large     : rapport ≥ 3/2     (PC)
   La « scène » est un cadre de proportion fixe (16/9 ou 9/16) centré dans l'écran ; ses éléments se mesurent en cqw/cqh
   (pourcentages de la scène), donc tout garde les proportions des maquettes (1920×1080 et 1080×1920). */

:root {
  --noir: #000;
  --blanc: #fff;
  /* Police officielle des identités et titres. Le fichier de police n'est PAS fourni avec le projet (licence à régler). */
  --titre: "Copperplate Gothic Bold", "Copperplate Gothic", Copperplate, serif;
  /* Lueurs des maquettes PC des pages 10 et 11 (mesurées sur PAGE_10_PC.png et PAGE_11_PC.png) : cadre « Appliquer ces horaires » en lilas
     doux ; traits sous « VOS PRESTATIONS » et « Voir les prestations créées » en magenta ; boutons de type de rendez-vous en rose-lilas.
     Tablette et téléphone : aucune lueur (leurs maquettes n'en ont pas), ces variables n'y servent pas. */
  --lueur-cadre: 0 0 0.3cqw rgba(200, 150, 255, 0.3), 0 0 0.75cqw rgba(190, 120, 255, 0.2), inset 0 0 0.3cqw rgba(200, 150, 255, 0.1);
  --lueur-magenta: 0 0 0.25cqw rgba(255, 0, 230, 0.35), 0 0 1cqw rgba(235, 0, 215, 0.55);
  --lueur-trait: 0 0 0.35cqw rgba(255, 0, 230, 0.8), 0 0 1cqw rgba(235, 0, 215, 0.65);
  --lueur-lilas: 0 0 0.25cqw rgba(255, 150, 255, 0.25), 0 0 0.8cqw rgba(240, 120, 255, 0.3);
  /* Étiquettes et champs de la page 3 : les maquettes les montrent en caractères sans empattement gras. */
  --texte: "Gill Sans MT", "Gill Sans", Optima, "Segoe UI", Calibri, "Trebuchet MS", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--noir); color: var(--blanc); overflow: hidden; }
body { font-family: var(--texte); -webkit-text-size-adjust: 100%; }
#racine { position: fixed; inset: 0; background: var(--noir); }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
img { user-select: none; -webkit-user-drag: none; }

/* Sur Windows la famille s'appelle « Copperplate Gothic » (le gras est la graisse 700) : d'où font-weight: 700. */
.titre { font-family: var(--titre); font-weight: 700; }
/* Si Copperplate n'est pas installée (détecté par app.js), la police de remplacement reçoit des petites capitales. */
.police-secours .titre { font-family: "Trajan Pro", Cinzel, "Palatino Linotype", "Book Antiqua", Georgia, serif; font-weight: 700; font-variant-caps: small-caps; }
/* Deux lettrages, selon les maquettes : « .titre » seul = minuscules rendues en petites capitales (première lettre plus grande :
   slogan de la page 1, titre de la page 5 PC et téléphone) ; « .titre.maj » = CAPITALES de hauteur égale (page 4, pages 6 à 9,
   boutons, NIKKA, titre de la page 5 sur tablette). */
.titre.maj { text-transform: uppercase; }
.police-secours .titre.maj { font-variant-caps: normal; }

/* ——— Conteneurs de page et fondu ——— */
.page-conteneur { position: absolute; inset: 0; opacity: 1; transition: opacity 0.5s ease; }
.page-conteneur.sortie, .page-conteneur.entree { opacity: 0; }
.page { position: absolute; inset: 0; background: var(--noir); overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .page-conteneur { transition: none; } }

.scene {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(100vw, calc(100dvh * 16 / 9)); aspect-ratio: 16 / 9;
  container-type: size;
}
@media (max-aspect-ratio: 17/20) {
  .scene { width: min(100vw, calc(100dvh * 9 / 16)); aspect-ratio: 9 / 16; }
}

:focus-visible { outline: 3px solid var(--blanc); outline-offset: 3px; }

/* ═════════════ PAGE 1 — Accueil ═════════════ */
.partout { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; z-index: 2; }
.partout:focus-visible { outline: none; }
.p1-logo-groupe { position: absolute; left: calc(50% + 0.26cqw); transform: translateX(-50%); width: 20.8cqw; top: 11.85cqh; }

/* Logo en deux couches (pages 1 et 2) : le croissant, et le texte « HOTARÉZA — BY HOTANOVA » qu'on peut agrandir à part. Les maquettes
   PC et tablette de ces deux pages dessinent le texte du logo un peu plus grand que le croissant du fichier logo.png (~+14 %). La coupe est
   faite dans l'espace entre le croissant (lignes 0 à 660 sur 901) et l'accent de « É » (ligne 715). */
.logo-deux { display: block; aspect-ratio: 741 / 901; }
.logo-deux img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.p1 { --lt-s: 1.145; --lt-dy: -1.25%; }
.p2 { --lt-s: 1.22; --lt-dy: -4.3%; }
@media (min-aspect-ratio: 17/20) and (max-aspect-ratio: 3/2) { .p1 { --lt-s: 1.16; --lt-dy: -1%; } .p2 { --lt-s: 1.09; --lt-dy: -4.5%; } }
@media (max-aspect-ratio: 17/20) { .p1 { --lt-s: 1.02; --lt-dy: 0%; } .p2 { --lt-s: 1.15; --lt-dy: 3.9%; } }
.logo-deux .logo-lune { clip-path: inset(0 0 23.4% 0); }
.logo-deux .logo-texte { clip-path: inset(76.6% 0 0 0); transform-origin: 50% 90.9%; transform: translateY(var(--lt-dy, 0%)) scale(var(--lt-s, 1)); }
.p1-slogan {
  position: absolute; left: 50%; transform: translateX(-50%); top: 61.8cqh; margin: 0; width: 70cqw; text-align: center;
  font-size: 5.69cqw; line-height: 1.05; color: var(--blanc); text-wrap: balance;
  text-shadow: 0 0 0.35cqw #fff, 0 0 1cqw rgba(255, 255, 255, 0.75), 0 0 2cqw rgba(255, 255, 255, 0.4);
}
@media (max-aspect-ratio: 17/20) {
  .p1-logo-groupe { left: calc(50% + 0.19cqw); width: 26.85cqw; top: 38.3cqh; }
  .p1-slogan { top: 58.6cqh; width: 92cqw; font-size: 6.69cqw; line-height: 1.2; }
}

/* ═════════════ PAGE 2 — Choix du métier ═════════════ */
.p2 .zone { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; outline: none; overflow: hidden; }
.p2 .zone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.p2 .zone.actif video { opacity: 1; }
.p2 .picto { position: absolute; pointer-events: none; transition: opacity 0.25s ease; }
.p2 .zone.actif .picto { opacity: 0.55; }
.p2 .zone:focus-visible .picto { filter: drop-shadow(0 0 1cqw #fff); }
.p2 .armature { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.p2 .rond-logo { position: absolute; pointer-events: none; }

/* ═════════════ PAGE 3 — Connexion ═════════════ */
/* Format large : la vidéo occupe le cadre de la maquette (marges noires comme sur PAGE_03_PC.png) ; le bloc noir est à droite. */
.p3 .fond { position: absolute; left: 6.406%; top: 6.389%; width: 87.083%; height: 87.13%; object-fit: cover; background: var(--noir); }
.p3 .bloc {
  position: absolute; left: 65.625%; top: 50%; transform: translateY(-50%); width: 26.25%; background: var(--noir);
  --lg-w: 55cqw; --lg-haut: 4.8cqw; --lg-bas: 6cqw;
  --et: 5.7cqw; --ch-w: 86cqw; --ch-h: 12.1cqw; --ch-saisie: 5.6cqw; --entre-champs: 3.8cqw;
  --tg: 4.4cqw; --bt-w: 86cqw; --bt-h: 15.5cqw; --bt-f: 6.4cqw; --bt-b: 0.8cqw; --bt-r: 2.9cqw; --pied: 5cqw;
}
.p3 .bloc-logo, .p3 .bloc-form { container-type: inline-size; width: 100%; }
/* Les marges se mettent sur les ENFANTS des conteneurs : cqw se mesure sur le bloc, pas sur la scène. */
.p3 .bloc-logo { text-align: center; }
.p3-logo { display: block; width: var(--lg-w); height: auto; margin: var(--lg-haut) auto var(--lg-bas); }
.p3 .bloc-form { text-align: center; display: flex; flex-direction: column; align-items: center; }
.p3 .bloc-form > :last-child { margin-bottom: var(--pied); }

.p3 .etiquette { display: block; font-family: var(--texte); font-weight: 700; font-size: var(--et); line-height: 1.25; letter-spacing: 0.01em; color: var(--blanc); margin: 0 0 1.4cqw; }
.p3 .champ {
  display: block; width: var(--ch-w); height: var(--ch-h); min-height: 44px; border: 0; border-radius: 0; padding: 0 2.5cqw; margin: 0 0 var(--entre-champs);
  background: var(--blanc); color: var(--noir); font-family: var(--texte); font-weight: 600; font-size: var(--ch-saisie); text-align: left; outline-offset: 2px;
}
.p3 .champ:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #000; }
.p3 .etiquette + .champ { margin-top: 0; }

.p3 .afficher {
  display: flex; align-items: center; justify-content: space-between; gap: 2.5cqw; width: var(--ch-w); margin: 0.6cqw 0 0; padding: 1cqw 0;
  background: transparent; border: 0; color: var(--blanc); cursor: pointer; font-family: var(--texte); font-weight: 700; font-size: max(var(--tg), 12px); letter-spacing: 0.01em; text-align: left; white-space: nowrap;
}
.p3 .afficher .oeil { width: 8cqw; height: auto; flex: none; }

.p3 .message { margin: 2cqw 0 0; width: var(--ch-w); min-height: 0; font-family: var(--texte); font-weight: 600; font-size: max(3.7cqw, 13px); line-height: 1.3; color: var(--blanc); text-align: center; }
.p3 .message:empty { display: none; }

.p3 .bouton {
  display: block; width: var(--bt-w); height: var(--bt-h); min-height: 44px; margin: 5cqw 0 0; padding: 0;
  background: var(--noir); color: var(--blanc); border: var(--bt-b) solid var(--blanc); border-radius: var(--bt-r);
  font-family: var(--texte); font-weight: 700; font-size: var(--bt-f); letter-spacing: 0.015em; cursor: pointer;
}
.p3 .bouton:hover:not(:disabled) { background: var(--blanc); color: var(--noir); }
.p3 .secondaires button { white-space: nowrap; }
.p3 .secondaires { display: flex; flex-direction: column; align-items: center; width: var(--ch-w); }
.p3 .bouton.petit { width: auto; height: 9.5cqw; min-height: 40px; margin-top: 2.6cqw; padding: 0 3.5cqw; border-width: 0.5cqw; border-radius: 2.2cqw; font-size: max(3.9cqw, 12px); }
.p3 .mention { margin: 1.6cqw 0 0; width: var(--ch-w); font-family: var(--texte); font-weight: 600; font-size: max(2.9cqw, 11px); line-height: 1.3; color: rgba(255, 255, 255, 0.8); }
.p3 .lien { margin: 1cqw 0 0; padding: 1.2cqw 2cqw; background: transparent; border: 0; color: var(--blanc); cursor: pointer; font-family: var(--texte); font-weight: 700; font-size: max(3.7cqw, 12px); letter-spacing: 0.01em; text-decoration: underline; text-underline-offset: 0.7cqw; }
.p3 button:disabled { opacity: 0.55; cursor: progress; }

/* Grand écran : les deux contrôles discrets se mettent sur une même ligne (le bloc doit tenir dans le cadre de la maquette). */
@media (min-aspect-ratio: 3/2) {
  .p3 .secondaires { flex-direction: row; justify-content: space-between; align-items: center; }
  .p3 .secondaires .bouton.petit { font-size: 3.3cqw; padding: 0 2.4cqw; }
  .p3 .secondaires .lien { margin-top: 2.6cqw; font-size: 3.2cqw; padding: 1cqw 0 1cqw 1cqw; }
}

/* Format tablette : vidéo plein écran, bloc noir au centre (PAGE_03_*_TABLETTE.png). */
@media (min-aspect-ratio: 17/20) and (max-aspect-ratio: 3/2) {
  .p3 .scene { left: 0; top: 0; transform: none; width: 100%; height: 100%; aspect-ratio: auto; }
  .p3 .fond { left: 0; top: 0; width: 100%; height: 100%; }
  .p3 .bloc {
    left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(320px, 37.6%, 520px);
    --lg-w: 42.9cqw; --lg-haut: 7.8cqw; --lg-bas: 4.5cqw;
    --et: 6.6cqw; --ch-w: 76.6cqw; --ch-h: 12.5cqw; --ch-saisie: 5.6cqw; --entre-champs: 4.4cqw;
    --tg: 4.7cqw; --bt-w: 67cqw; --bt-h: 13.5cqw; --bt-f: 6cqw; --bt-b: 0.5cqw; --bt-r: 0.3cqw; --pied: 4cqw;
  }
}

/* Format portrait : vidéo plein écran, deux blocs noirs séparés, logo en haut et formulaire en bas (PAGE_03_*_TEL.png). */
@media (max-aspect-ratio: 17/20) {
  .p3 .scene { left: 0; top: 0; transform: none; width: 100%; height: 100%; aspect-ratio: auto; }
  .p3 .fond { left: 0; top: 0; width: 100%; height: 100%; }
  .p3 .bloc { display: contents; }
  .p3 .bloc-logo {
    position: absolute; left: 50%; transform: translateX(-50%); top: 1.04%; width: clamp(200px, 59.8%, 420px); background: var(--noir);
    --lg-w: 65.8cqw; --lg-haut: 12.4cqw; --lg-bas: 2.3cqw;
  }
  .p3 .bloc-form {
    position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.6%; width: clamp(250px, 58%, 460px); background: var(--noir);
    --et: 5.75cqw; --ch-w: 85.8cqw; --ch-h: 14cqw; --ch-saisie: 5.8cqw; --entre-champs: 5.6cqw;
    --tg: 4.6cqw; --bt-w: 85.8cqw; --bt-h: 14cqw; --bt-f: 6.4cqw; --bt-b: 0.7cqw; --bt-r: 2.6cqw; --pied: 5cqw;
  }
  .p3 .bloc-form > :first-child { margin-top: 3.2cqw; }
}

/* ═════════════ PAGE 4 — Détection des sites ═════════════ */
.p4-logo { position: absolute; left: 50%; transform: translateX(-50%); width: 14.48cqw; top: 6.02cqh; height: auto; }
.p4-titre, .p4-bouton { position: absolute; margin: 0; padding: 0; background: transparent; border: 0; color: var(--blanc); text-align: center; }
.p4 .l { display: block; }
.p4 .l[data-i~="p"] { display: inline; }
.p4-titre { left: 50%; transform: translateX(-50%); width: 90cqw; }
.p4-bouton { cursor: pointer; }
.p4-bouton:hover { text-decoration: underline; text-underline-offset: 0.5cqw; }

.p4 .scene[data-etat="aucun"] .p4-titre { top: 39.2cqh; font-size: 3.71cqw; line-height: 1.406; }
.p4 .scene[data-etat="aucun"] .p4-bouton.seul { left: 50%; transform: translateX(-50%); top: 68cqh; font-size: 3.50cqw; line-height: 1.440; width: 60cqw; }
.p4 .scene[data-etat="un"] .p4-titre { top: 39.6cqh; font-size: 3.69cqw; line-height: 1.406; }
.p4 .scene[data-etat="plusieurs"] .p4-titre { top: 36.3cqh; font-size: 3.30cqw; line-height: 1.417; }
.p4 .scene:is([data-etat="un"], [data-etat="plusieurs"]) .p4-bouton.gauche { left: 27.1cqw; transform: translateX(-50%); top: 67.3cqh; font-size: 2.25cqw; line-height: 1.382; width: 40cqw; }
.p4 .scene:is([data-etat="un"], [data-etat="plusieurs"]) .p4-bouton.droite { left: 72.7cqw; transform: translateX(-50%); top: 69.2cqh; font-size: 2.66cqw; line-height: 1.406; width: 40cqw; }

.p4-erreur { position: absolute; left: 50%; transform: translateX(-50%); top: 42cqh; width: 70cqw; margin: 0; text-align: center; font-family: var(--texte); font-weight: 600; font-size: 2.2cqw; line-height: 1.4; }
.p4-reessayer { position: absolute; left: 50%; transform: translateX(-50%); top: 55cqh; padding: 1cqw 3cqw; background: var(--noir); border: 0.3cqw solid var(--blanc); border-radius: 1cqw; font-family: var(--texte); font-weight: 700; font-size: 2.2cqw; cursor: pointer; }

@media (max-aspect-ratio: 17/20) {
  .p4-logo { width: 26.85cqw; top: 2.86cqh; }
  .p4-titre { width: 96cqw; }
  .p4 .scene[data-etat="aucun"] .p4-titre { top: 29.7cqh; font-size: 5.21cqw; line-height: 1.498; }
  .p4 .scene[data-etat="aucun"] .p4-bouton.seul { top: 57cqh; font-size: 5.36cqw; line-height: 1.382; width: 90cqw; }
  .p4 .scene[data-etat="un"] .p4-titre { top: 29.7cqh; font-size: 5.19cqw; line-height: 1.498; }
  .p4 .scene[data-etat="plusieurs"] .p4-titre { top: 29.7cqh; font-size: 5.18cqw; line-height: 1.498; }
  .p4 .scene:is([data-etat="un"], [data-etat="plusieurs"]) .p4-bouton.gauche { left: 50%; top: 48.7cqh; font-size: 3.76cqw; width: 90cqw; line-height: 1.406; }
  .p4 .scene:is([data-etat="un"], [data-etat="plusieurs"]) .p4-bouton.droite { left: 50%; top: 79cqh; font-size: 3.74cqw; width: 90cqw; line-height: 1.406; }
  .p4-erreur { top: 30cqh; width: 86cqw; font-size: 4.2cqw; }
  .p4-reessayer { top: 40cqh; font-size: 4.2cqw; padding: 2cqw 6cqw; border-width: 0.5cqw; border-radius: 2cqw; }
}

/* Format tablette : la maquette empile les deux choix au centre, sur l'écran entier (PAGE_04_*_TABLETTE.png). */
@media (min-aspect-ratio: 17/20) and (max-aspect-ratio: 3/2) {
  .p4 .scene { left: 0; top: 0; transform: none; width: 100%; height: 100%; aspect-ratio: auto; }
  .p4 .l[data-i~="p"] { display: block; }
  .p4 .l[data-i~="t"] { display: inline; }
  .p4-logo { width: 12.2cqw; top: 3.9cqh; }
  .p4-titre { width: 90cqw; }
  .p4 .scene[data-etat="aucun"] .p4-titre, .p4 .scene[data-etat="un"] .p4-titre, .p4 .scene[data-etat="plusieurs"] .p4-titre { top: 29.7cqh; font-size: 2.68cqw; line-height: 1.2; }
  .p4 .scene[data-etat="aucun"] .p4-bouton.seul { left: 50%; transform: translateX(-50%); top: 62cqh; font-size: 2.39cqw; line-height: 1; width: 60cqw; }
  .p4 .scene:is([data-etat="un"], [data-etat="plusieurs"]) .p4-bouton.gauche { left: 50%; transform: translateX(-50%); top: 48.8cqh; font-size: 1.97cqw; line-height: 1.1; width: 60cqw; }
  .p4 .scene:is([data-etat="un"], [data-etat="plusieurs"]) .p4-bouton.droite { left: 50%; transform: translateX(-50%); top: 64.5cqh; font-size: 2.39cqw; line-height: 1; width: 60cqw; }
  .p4-erreur { top: 36cqh; width: 80cqw; font-size: 2.4cqw; }
  .p4-reessayer { top: 48cqh; font-size: 2.4cqw; padding: 1.4cqw 4cqw; }
}

/* ═════════════ NIKKA (pages 5 à 13) — visuel seulement, aucune assistance réelle ═════════════ */
.nikka { position: absolute; left: var(--n-left); top: var(--n-top); width: var(--n-img-w); height: var(--n-img-h); margin: 0; }
.nikka-photo { position: absolute; left: 0; top: 0; width: var(--n-img-w); height: var(--n-img-h); object-fit: fill; display: block; }
.nikka-texte { position: absolute; left: var(--n-txt-left); top: var(--n-txt-top); margin: 0; color: var(--blanc); font-size: var(--n-f); line-height: var(--n-lh); text-align: left; white-space: nowrap; }
.nikka-l { display: block; }
.nikka-abo { display: block; margin-top: var(--n-abo-dy, 0cqh); font-size: var(--n-abo-f); line-height: var(--n-abo-lh); font-weight: 700; }
.nikka-abo span { display: inline; }
/* Disposition « grande » (page 5 PC et téléphone) : texte empilé, centré à droite du portrait. */
.nikka-grand .nikka-texte { text-align: center; transform: translateX(-50%); }
.nikka-grand .nikka-m, .nikka-grand .nikka-abo span { display: block; }

/* ═════════════ PAGES 5 À 9 — nom, logo, couleurs, slogan, adresse ═════════════ */
.gp-form { display: contents; }
.gp-logo { position: absolute; left: calc(50% + var(--logo-dx, 0cqw)); transform: translateX(-50%); top: var(--logo-top); width: var(--logo-w); height: auto; }
.gp-titre {
  position: absolute; left: 50%; transform: translateX(-50%); top: var(--t-top); width: 92cqw; margin: 0; text-align: center;
  color: var(--blanc); font-size: var(--t-f); line-height: var(--t-lh);
}
.gp-l { display: block; }
.gp-champ, .gp-fichier, .gp-couleur {
  position: absolute; left: var(--c-left); top: var(--c-top); width: var(--c-w); height: var(--c-h); margin: 0;
}
.gp-champ {
  border: 0; border-radius: 0; padding: 0 2cqw; background: var(--blanc); color: var(--noir); text-align: center;
  font-family: var(--texte); font-weight: 600; font-size: var(--c-f);
}
.gp-champ:focus-visible { outline: 3px solid var(--blanc); outline-offset: 3px; box-shadow: 0 0 0 6px var(--noir); }
.gp-fichier {
  display: flex; align-items: center; justify-content: center; padding: 0 3cqw; background: var(--noir); color: var(--blanc);
  border: var(--c-bord, 0.16cqw) solid var(--blanc); border-radius: 0; cursor: pointer; font-size: var(--c-f); line-height: 1.2;
}
.gp-fichier-texte { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-fichier:hover:not(:disabled) { background: var(--blanc); color: var(--noir); }
.gp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Page 7 : cadre blanc + pastille de couleur (le sélecteur natif couvre tout le cadre, invisible) */
.gp-couleur { display: flex; align-items: center; justify-content: center; border: var(--c-bord, 0.16cqw) solid var(--blanc); background: var(--noir); cursor: pointer; }
.gp-couleur:focus-within { outline: 3px solid var(--blanc); outline-offset: 4px; }
.gp-couleur-entree { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.gp-pastille { display: block; width: 76.5%; height: 63%; border: 1px solid var(--blanc); background: #000; pointer-events: none; }
.gp-hex { position: absolute; left: 50%; transform: translateX(-50%); top: var(--hex-top); margin: 0; display: none; font-family: var(--texte); font-weight: 600; font-size: var(--hex-f); color: var(--blanc); }

.gp-bouton {
  position: absolute; left: var(--b-left); top: var(--b-top); width: var(--b-w); height: var(--b-h); margin: 0; padding: 0;
  background: var(--blanc); color: var(--noir); border: 0; border-radius: 0; cursor: pointer; font-size: var(--b-f); line-height: 1;
}
.gp-bouton:hover:not(:disabled) { background: #d9d9d9; }
.gp button:disabled, .gp input:disabled { opacity: 0.55; cursor: progress; }
.gp-message {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100cqh - var(--c-top) + 0.8cqh); width: 80cqw; margin: 0; text-align: center;
  font-family: var(--texte); font-weight: 600; font-size: var(--m-f); line-height: 1.25; color: var(--blanc);
}
.gp-message:empty { display: none; }

/* ——— PC (maquettes 1920×1080) ——— */
.gp { --n-left: 39.32cqw; --n-top: 88.61cqh; --n-img-w: 4.79cqw; --n-img-h: 8.8cqh; --n-txt-left: 5.94cqw; --n-txt-top: 0cqh; --n-f: 1.19cqw; --n-lh: 3.43cqh; --n-abo-f: 0.73cqw; --n-abo-lh: 2.5cqh; --n-abo-dy: -0.55cqh; --m-f: 1.2cqw; --hex-f: 0.82cqw; --hex-top: 58.9cqh; }
.gp { --logo-w: 9.44cqw; --logo-top: 4.1cqh; --logo-dx: 0.3cqw; --t-top: 41.76cqh; --t-f: 2.43cqw; --t-lh: 1.2; --c-left: 30.47cqw; --c-top: 50.37cqh; --c-w: 38.96cqw; --c-h: 6.48cqh; --c-f: 1.5cqw; --b-left: 43.49cqw; --b-top: 64.44cqh; --b-w: 13.07cqw; --b-h: 4.63cqh; --b-f: 1.05cqw; }
.gp5 { --logo-w: 13.31cqw; --logo-top: 3.27cqh; --logo-dx: 0cqw; --t-top: 32.72cqh; --t-f: 3.84cqw; --t-lh: 8.24cqh; --c-left: 26.15cqw; --c-top: 60.37cqh; --c-w: 47.66cqw; --c-h: 8.7cqh; --c-f: 1.7cqw; --b-top: 71cqh; --b-h: 4cqh;
  --n-left: 37.97cqw; --n-top: 77.04cqh; --n-img-w: 9.48cqw; --n-img-h: 16.85cqh; --n-txt-left: 16.93cqw; --n-txt-top: -1.67cqh; --n-f: 1.9cqw; --n-lh: 4.07cqh; --n-abo-f: 0.95cqw; --n-abo-lh: 2.25cqh; --n-abo-dy: -0.46cqh; }
.gp7 { --c-left: 46.04cqw; --c-w: 7.97cqw; --c-h: 8.24cqh; }
.gp7 .gp-hex { display: block; }
.gp-titre.p5-titre { width: 60cqw; }

/* ——— Tablette : scène plein écran, mises en page des maquettes 1024×768 ——— */
@media (min-aspect-ratio: 17/20) and (max-aspect-ratio: 3/2) {
  .gp .scene { left: 0; top: 0; transform: none; width: 100%; height: 100%; aspect-ratio: auto; }
  .gp { --logo-w: 12.2cqw; --logo-top: 3.9cqh; --logo-dx: 0.35cqw; --t-top: 31.1cqh; --t-f: 2.9cqw; --t-lh: 1.2; --c-left: 24.41cqw; --c-top: 46.22cqh; --c-w: 51.37cqw; --c-h: 7.16cqh; --c-f: 1.9cqw; --c-bord: 0.2cqw;
    --b-left: 39.36cqw; --b-top: 57.9cqh; --b-w: 21.39cqw; --b-h: 5.99cqh; --b-f: 1.65cqw; --m-f: 1.7cqw;
    --n-left: 35.74cqw; --n-top: 86.46cqh; --n-img-w: 6.05cqw; --n-img-h: 7.42cqh; --n-txt-left: 8cqw; --n-txt-top: 0.65cqh; --n-f: 1.9cqw; --n-lh: 2.6cqh; --n-abo-f: 0.98cqw; --n-abo-lh: 1.9cqh; --n-abo-dy: -0.4cqh; }
  .gp5 { --t-top: 29.65cqh; --t-f: 2.93cqw; --t-lh: 4.82cqh; --b-top: 57.3cqh; }
  .gp5 .nikka-grand .nikka-texte { transform: none; text-align: left; }
  .gp5 .nikka-grand .nikka-m, .gp5 .nikka-grand .nikka-abo span { display: inline; }
  .gp-titre.p5-titre { width: 92cqw; text-transform: uppercase; font-variant-caps: normal; }
  .gp-colle { display: inline; }
  .gp7 .gp-hex { display: none; }
  .gp-pastille { border-color: transparent; }
  .gp6 { --c-left: 29.3cqw; --c-top: 44.27cqh; --c-w: 41.5cqw; --c-h: 7.68cqh; --b-top: 57.94cqh; --b-h: 5.99cqh; }
  .gp7 { --c-left: 45.9cqw; --c-top: 45.57cqh; --c-w: 8.4cqw; --c-h: 8.46cqh; --b-top: 60.16cqh; }
  .gp8 { --c-top: 45.57cqh; --c-h: 7.8cqh; --b-top: 58.85cqh; }
  .gp9 { --c-top: 44.8cqh; --c-h: 8.2cqh; --b-top: 58.6cqh; }
}

/* ——— Téléphone (maquettes 1080×1920) ——— */
@media (max-aspect-ratio: 17/20) {
  .gp { --logo-w: 20.97cqw; --logo-top: 3.19cqh; --logo-dx: 0.65cqw; --t-top: 31.6cqh; --t-f: 4.3cqw; --t-lh: 1.2; --c-left: 14.8cqw; --c-top: 41.67cqh; --c-w: 70.46cqw; --c-h: 4.74cqh; --c-f: 3.4cqw; --c-bord: 0.3cqw;
    --b-left: 30.83cqw; --b-top: 52.08cqh; --b-w: 38.43cqw; --b-h: 4.22cqh; --b-f: 3.4cqw; --m-f: 3cqw;
    --n-left: 13.52cqw; --n-top: 81.25cqh; --n-img-w: 19.17cqw; --n-img-h: 10.78cqh; --n-txt-left: 22.87cqw; --n-txt-top: 0.2cqh; --n-f: 2.8cqw; --n-lh: 2.24cqh; --n-abo-f: 1.87cqw; --n-abo-lh: 1.6cqh; --n-abo-dy: 1.15cqh; }
  .gp5 { --logo-w: 27cqw; --logo-top: 2.93cqh; --logo-dx: 0.8cqw; --t-top: 23.27cqh; --t-f: 6.05cqw; --t-lh: 4.12cqh; --c-left: 12.96cqw; --c-top: 37.08cqh; --c-w: 74.07cqw; --c-h: 4.32cqh; --c-f: 3.6cqw; --b-top: 46.5cqh; --b-h: 4.22cqh;
    --n-left: 15.46cqw; --n-top: 80.57cqh; --n-img-w: 25cqw; --n-img-h: 14.06cqh; --n-txt-left: 47.1cqw; --n-txt-top: 0cqh; --n-f: 4.38cqw; --n-lh: 2.97cqh; --n-abo-f: 2.18cqw; --n-abo-lh: 1.6cqh; --n-abo-dy: 0cqh; }
  .gp-titre.p5-titre { width: 96cqw; }
  .gp7 .gp-hex { display: none; }
  .gp-pastille { border-color: transparent; }
  .gp .nikka-abo span { display: block; }
  .gp6 { --c-left: 14.8cqw; --c-top: 41.67cqh; --c-w: 70.46cqw; --c-h: 4.74cqh; --b-top: 52.08cqh; --b-h: 4.22cqh; }
  .gp7 { --c-left: 42.1cqw; --c-top: 42.2cqh; --c-w: 15.8cqw; --c-h: 7.86cqh; --b-top: 55.7cqh; --b-h: 4.74cqh; }
  .gp8 { --c-left: 13.4cqw; --c-top: 41.4cqh; --c-w: 73.2cqw; --c-h: 4.95cqh; --b-top: 55.2cqh; --b-h: 4.22cqh; }
  .gp9 { --c-left: 13.4cqw; --c-top: 41.15cqh; --c-w: 73.2cqw; --c-h: 5.7cqh; --b-top: 54.7cqh; --b-h: 4.22cqh; }
}

/* ═════════════ PAGES 10 À 12 — horaires, prestations, vidéo ═════════════
   Mesures : maquettes PAGE_10/11/12 (PC 1920×1080, tablette 1024×768, téléphone 1080×1920). Les icônes (.gp-ico) n'existent que
   sur les maquettes PC : masquées ailleurs. Les listes déroulantes sont les <select> du navigateur. */
.gp-ico { display: none; }
@media (min-aspect-ratio: 3/2) { .gp-ico { display: block; } }
.gp-select, .h-heure, .v-champ input, .v-champ textarea { border-radius: 0; }

/* Liste déroulante : cadre blanc plein, texte noir, petit triangle à droite (comme les maquettes). */
.gp-sel { position: relative; display: block; width: var(--s-w); height: var(--s-h); font-size: var(--s-f); }
.gp-sel::after { content: ''; position: absolute; right: 0.75em; top: 50%; transform: translateY(-25%); border: 0.42em solid transparent; border-top: 0.62em solid var(--noir); border-bottom: 0; pointer-events: none; }
.gp-select {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 100%; margin: 0; padding: 0 1.9em 0 0.6em; border: 0; background: var(--blanc); color: var(--noir);
  font-size: inherit; line-height: 1; text-align: center; text-align-last: center; cursor: pointer; overflow: hidden; text-overflow: ellipsis;
}
.gp-select:focus-visible, .h-heure:focus-visible, .v-champ input:focus-visible, .v-champ textarea:focus-visible { outline: 3px solid var(--blanc); outline-offset: 3px; box-shadow: 0 0 0 6px var(--noir); }
.gp-select option { font-family: var(--texte); font-weight: 600; text-transform: uppercase; }
.gp-sel:has(.gp-select:disabled)::after { opacity: 0.55; }

/* ——— Page 10 ——— */
.gp10 .gp-entete { position: absolute; left: 50%; transform: translateX(-50%); top: var(--e-top); display: flex; align-items: var(--e-al, center); flex-direction: var(--e-dir, row); gap: var(--e-gap); white-space: nowrap; }
.gp10 .gp-entete .gp-titre { position: static; transform: none; width: auto; margin: var(--e-tm, 0) 0 0; font-size: var(--t-f); }
.gp10 .gp-entete .gp-sel { --s-w: var(--j-w); --s-h: var(--j-h); --s-f: var(--j-f); }
.h-heure {
  position: absolute; top: var(--h-top); width: var(--h-w); height: var(--h-h); margin: 0; padding: 0; border: 0; background: var(--blanc); color: var(--noir);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif; font-weight: 500; font-size: var(--h-f); text-align: center; text-align-last: center;
}
.h-heure::-webkit-calendar-picker-indicator { display: none; }
.h-heure::-webkit-datetime-edit { padding: 0; }
.h-debut { left: var(--h1-left); }
.h-fin { left: var(--h2-left); }
.h-a, .h-au { position: absolute; margin: 0; color: var(--blanc); line-height: 1; transform: translate(-50%, -50%); text-align: center; }
.h-a { left: 50%; top: var(--a-top); font-size: var(--a-f); }
.h-au { left: var(--au-left); top: var(--au-top); font-size: var(--au-f); }
.h-cadre { display: none; }
.h-appliquer {
  position: absolute; left: var(--ap-left); top: var(--ap-top); transform: var(--ap-tf, none); height: var(--ap-h); margin: 0; padding: 0; display: flex; align-items: center; gap: 1cqw;
  background: transparent; border: 0; color: var(--blanc); cursor: pointer; font-size: var(--ap-f); line-height: 1; white-space: nowrap;
}
.h-appliquer:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 0.5em; }
.h-ico { width: 2.03cqw; height: 2.03cqw; flex: none; }
.h-du, .h-jusqua { position: absolute; top: var(--d-top); --s-h: var(--d-h); --s-f: var(--d-f); }
.h-du { left: var(--du-left); --s-w: var(--du-w); }
.h-jusqua { left: var(--ju-left); --s-w: var(--ju-w); }
.gp10 .gp-message, .gp12 .gp-message { bottom: auto; top: calc(var(--b-top) + var(--b-h) + 1.6cqh); }

/* ——— Page 12 ——— */
.gp-legende { position: absolute; left: 50%; transform: translateX(-50%); top: var(--l-top); margin: 0; width: 90cqw; text-align: center; color: var(--blanc); font-size: var(--l-f); line-height: 1.2; text-transform: uppercase; font-family: var(--titre); font-weight: 700; }
.police-secours .gp-legende { font-family: "Trajan Pro", Cinzel, "Palatino Linotype", "Book Antiqua", Georgia, serif; }
.gp-legende .v-tel { display: inline; }
.gp-legende .v-pc { display: none; }

/* ——— Page 11 ——— */
.gp11 .gp-message { bottom: calc(100cqh - var(--c-top) + var(--m-dy, 0.8cqh)); }
.v-saisie { display: contents; }
.v-sep { display: none; }
.v-champ { position: absolute; display: block; margin: 0; }
.v-champ input, .v-champ textarea {
  display: block; width: 100%; height: 100%; margin: 0; border: 0; background: var(--blanc); color: var(--noir); font-family: var(--texte); font-weight: 500;
  font-size: var(--c-f); text-align: center; padding: 0 2cqw; resize: none;
}
.v-champ textarea { text-align: left; padding: var(--dp-top) 1.8cqw 1cqh; line-height: 1.3; }
.v-champ input::placeholder, .v-champ textarea::placeholder { color: #555; opacity: 1; }
.v-nom { left: var(--c-left); top: var(--c-top); width: var(--c-w); height: var(--c-h); }
.v-duree { left: var(--c-left); top: var(--d2-top); width: var(--d2-w); height: var(--d2-h); }
.v-prix { left: var(--p-left); top: var(--d2-top); width: var(--p-w); height: var(--d2-h); }
.v-desc { left: var(--c-left); top: var(--ds-top); width: var(--c-w); height: var(--ds-h); }
.v-i-type { display: none; }
.v-type-titre { position: absolute; left: var(--tt-left); top: var(--tt-top); transform: var(--tt-tf, none); margin: 0; color: var(--blanc); font-size: var(--tt-f); line-height: 1; white-space: nowrap; }
.v-types { display: contents; }
.v-type {
  position: absolute; top: var(--ty-top); height: var(--ty-h); margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 0.9cqw;
  background: var(--noir); color: var(--blanc); border: var(--ty-b) solid var(--blanc); border-radius: 0; cursor: pointer; font-size: var(--ty-f); line-height: 1; white-space: nowrap;
}
.v-type[aria-checked="true"] { background: var(--blanc); color: var(--noir); }
.v-type:hover:not([aria-checked="true"]):not(:disabled) { background: #1c1c1c; }
.v-t-rdv { left: var(--t1-left); width: var(--t1-w); }
.v-t-dom { left: var(--t2-left); width: var(--t2-w); }
.v-t-deux { left: var(--t3-left); width: var(--t3-w); }
.v-voir, .v-ajouter {
  position: absolute; top: var(--r-top); height: var(--r-h); margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 1.1cqw; border-radius: 0;
  font-size: var(--r-f); line-height: 1; cursor: pointer; white-space: nowrap;
}
.v-voir { left: var(--v-left); width: var(--v-w); background: var(--noir); color: var(--blanc); border: var(--ty-b) solid var(--blanc); }
.v-ajouter { left: var(--a-left); width: var(--a-w); background: var(--blanc); color: var(--noir); border: 0; }
.v-voir:hover:not(:disabled) { background: #1c1c1c; }
.v-ajouter:hover:not(:disabled) { background: #d9d9d9; }
.v-i-grand { width: 1.9cqw; height: 1.9cqw; flex: none; }
.v-i-btn { width: 1.7cqw; height: 1.7cqw; flex: none; }
.v-i-deux { width: 2.7cqw; }

/* Liste des prestations créées : remplace les champs, jamais un aperçu du site. */
.v-liste { display: none; list-style: none; margin: 0; padding: 0; position: absolute; left: var(--c-left); top: var(--c-top); width: var(--c-w); height: calc(var(--ds-top) + var(--ds-h) - var(--c-top)); overflow-y: auto; }
.v-en-liste .v-liste { display: block; }
.v-en-liste .v-saisie, .v-en-liste .v-type-titre { display: none; }
.v-ligne { display: flex; align-items: center; gap: 1cqw; min-height: 5cqh; margin: 0 0 1cqh; padding: 0.8cqh 1.2cqw; background: var(--blanc); color: var(--noir); }
.v-ligne-texte { display: flex; flex-wrap: wrap; gap: 0.2cqh 1.4cqw; align-items: baseline; flex: 1; min-width: 0; font-family: var(--texte); font-weight: 600; font-size: var(--lt-f); line-height: 1.25; overflow-wrap: anywhere; text-align: left; }
.v-ligne-texte > span { white-space: nowrap; }
.v-ligne-texte > .v-p-nom { white-space: normal; font-weight: 700; }
.v-act { flex: none; margin: 0; padding: 0.7cqh 1cqw; background: var(--noir); color: var(--blanc); border: 0; border-radius: 0; font-size: var(--la-f); line-height: 1; cursor: pointer; }
.v-act:hover:not(:disabled) { background: #333; }

/* ——— PC (maquettes 1920×1080) ——— */
.gp10 { --t-f: 2.28cqw; --e-top: 41.85cqh; --e-gap: 0.83cqw; --j-w: 12.14cqw; --j-h: 4.9cqh; --j-f: 1.45cqw;
  --h-top: 50.37cqh; --h-w: 8.39cqw; --h-h: 5.65cqh; --h-f: 1.3cqw; --h1-left: 38.33cqw; --h2-left: 53.39cqw; --a-top: 53cqh; --a-f: 1.2cqw;
  --ap-left: 30.05cqw; --ap-top: 60.28cqh; --ap-h: 6.3cqh; --ap-f: 0.85cqw; --d-top: 61.39cqh; --d-h: 3.98cqh; --d-f: 0.95cqw;
  --du-left: 49cqw; --du-w: 8.23cqw; --au-left: 59.3cqw; --au-top: 63.6cqh; --au-f: 0.96cqw; --ju-left: 61.15cqw; --ju-w: 8.85cqw;
  --b-top: 72.22cqh; --b-h: 4.81cqh; --b-f: 0.92cqw; }
.gp10 .h-cadre { display: block; position: absolute; left: 29.01cqw; top: 60.28cqh; width: 41.98cqw; height: 6.3cqh; border: 2px solid var(--blanc); border-radius: 0.73cqw; box-shadow: var(--lueur-cadre); pointer-events: none; }
.gp11 { --logo-top: 3.05cqh; --logo-w: 9.2cqw; --t-top: 24.8cqh; --t-f: 3cqw; --c-left: 29.32cqw; --c-top: 36.76cqh; --c-w: 41.41cqw; --c-h: 5.37cqh; --c-f: 1.04cqw;
  --d2-top: 43.61cqh; --d2-w: 20.05cqw; --d2-h: 5cqh; --p-left: 50.68cqw; --p-w: 20.05cqw; --ds-top: 50.09cqh; --ds-h: 10.93cqh; --dp-top: 1.3cqh;
  --tt-left: 25.99cqw; --tt-top: 65cqh; --tt-tf: translateY(-50%); --tt-f: 1.12cqw; --ty-top: 62.87cqh; --ty-h: 5.19cqh; --ty-b: 2px; --ty-f: 0.95cqw;
  --t1-left: 40.78cqw; --t1-w: 12.66cqw; --t2-left: 54.9cqw; --t2-w: 10.78cqw; --t3-left: 67.14cqw; --t3-w: 10.31cqw;
  --r-top: 70.93cqh; --r-h: 5.4cqh; --r-f: 0.96cqw; --v-left: 25.16cqw; --v-w: 23.8cqw; --a-left: 51.93cqw; --a-w: 23.02cqw;
  --b-left: 41.04cqw; --b-top: 79.17cqh; --b-w: 17.97cqw; --b-h: 5.19cqh; --b-f: 1.1cqw; --m-f: 1cqw; --m-dy: 0.3cqh; --lt-f: 1.05cqw; --la-f: 0.8cqw; }
.gp11 .v-sep { display: flex; align-items: center; gap: 1.1cqw; position: absolute; left: 34.1cqw; top: 31.3cqh; width: 32.3cqw; height: 3.3cqh; }
.v-trait { flex: 1; height: 2px; background: var(--blanc); box-shadow: var(--lueur-trait); }
.v-i-ciseaux { width: 1.9cqw; height: 1.9cqw; flex: none; }
.v-champ .v-i-champ { position: absolute; left: var(--ico-x, 1cqw); top: 50%; transform: translateY(-50%); width: 1.55cqw; height: 1.55cqw; color: var(--noir); }
.v-nom, .v-duree { --ico-x: 1cqw; }
.v-prix { --ico-x: 1.5cqw; }
.v-desc .v-i-champ { top: 1.1cqh; transform: none; --ico-x: 1cqw; }
.v-nom input { padding-left: 4.1cqw; text-align: left; }
.v-duree input { padding-left: 3.9cqw; text-align: left; }
.v-prix input { padding-left: 4.9cqw; text-align: left; }
.v-desc textarea { padding-left: 3.9cqw; }
.v-i-type { display: block; position: absolute; left: 23.44cqw; top: 63.5cqh; width: 1.72cqw; height: 1.72cqw; color: var(--blanc); }
.gp11 .v-type { border-radius: 0.65cqw; box-shadow: var(--lueur-lilas); }
.gp11 .v-voir { border-radius: 0.65cqw; box-shadow: var(--lueur-magenta); }
.gp11 .v-voir { border-radius: 0.5cqw; }
.gp11 .v-ajouter { border-radius: 0.4cqw; }
.gp11 .gp-bouton { border-radius: 0.4cqw; }
.gp12 { --t-top: 41.3cqh; --t-f: 2.39cqw; --c-left: 30.47cqw; --c-top: 50.37cqh; --c-w: 38.96cqw; --c-h: 6.48cqh; --c-f: 0.9cqw; --l-top: 59.3cqh; --l-f: 0.86cqw; --b-top: 64.44cqh; --b-h: 4.63cqh; }
.gp12 .gp-legende { font-family: var(--texte); font-weight: 500; }
.gp12 .gp-legende .v-pc { display: inline; }
.gp12 .gp-legende .v-tel { display: none; }

/* ——— Tablette (maquettes 1024×768) ——— */
@media (min-aspect-ratio: 17/20) and (max-aspect-ratio: 3/2) {
  .gp10 { --t-f: 2.7cqw; --e-top: 30.2cqh; --e-gap: 5.86cqw; --e-al: flex-start; --e-tm: -1.4cqh; --j-w: 19.14cqw; --j-h: 7.16cqh; --j-f: 1.7cqw;
    --h-top: 42.45cqh; --h-w: 13.28cqw; --h-h: 7.16cqh; --h-f: 1.9cqw; --h1-left: 31.25cqw; --h2-left: 55.18cqw; --a-top: 45.96cqh; --a-f: 1.85cqw;
    --ap-left: 12.5cqw; --ap-top: 54.56cqh; --ap-h: 5.34cqh; --ap-f: 1.65cqw; --d-top: 54.56cqh; --d-h: 5.34cqh; --d-f: 1.4cqw;
    --du-left: 48.83cqw; --du-w: 12.01cqw; --au-left: 65.14cqw; --au-top: 57.2cqh; --au-f: 1.65cqw; --ju-left: 68.65cqw; --ju-w: 15.82cqw;
    --b-left: 39.45cqw; --b-top: 68.36cqh; --b-w: 21.19cqw; --b-h: 5.99cqh; --b-f: 1.8cqw; }
  .gp10 .h-cadre { display: none; }
  .gp11 { --logo-top: 3.9cqh; --logo-w: 12.2cqw; --t-top: 24.1cqh; --t-f: 2.93cqw; --c-left: 25.68cqw; --c-top: 33.85cqh; --c-w: 48.73cqw; --c-h: 6.25cqh; --c-f: 1.6cqw;
    --d2-top: 41.67cqh; --d2-w: 24.22cqw; --d2-h: 6.25cqh; --p-left: 51.17cqw; --p-w: 23.24cqw; --ds-top: 49.61cqh; --ds-h: 10.16cqh; --dp-top: 3.8cqh;
    --tt-left: 18.75cqw; --tt-top: 65.6cqh; --tt-f: 1.59cqw; --ty-top: 62.76cqh; --ty-h: 5.73cqh; --ty-b: 0.2cqw; --ty-f: 1.45cqw;
    --t1-left: 39.06cqw; --t1-w: 16.21cqw; --t2-left: 55.86cqw; --t2-w: 12.5cqw; --t3-left: 69.14cqw; --t3-w: 12.5cqw;
    --r-top: 70.96cqh; --r-h: 5.6cqh; --r-f: 1.35cqw; --v-left: 20.12cqw; --v-w: 29.88cqw; --a-left: 51.66cqw; --a-w: 29.79cqw;
    --b-left: 39.75cqw; --b-top: 78.39cqh; --b-w: 20.6cqw; --b-h: 5.34cqh; --b-f: 1.8cqw; --m-f: 1.4cqw; --lt-f: 1.5cqw; --la-f: 1.1cqw; }
  .gp11 .v-sep, .gp11 .v-i-type { display: none; }
  .gp11 .v-champ input { text-align: center; padding: 0 1.8cqw; }
  .gp11 .v-champ textarea { padding-left: 1.8cqw; }
  .gp11 .v-type, .gp11 .v-voir, .gp11 .v-ajouter, .gp11 .gp-bouton { border-radius: 0; box-shadow: none; }
  .gp12 { --t-top: 31.6cqh; --t-f: 3.05cqw; --c-left: 29.3cqw; --c-top: 45.05cqh; --c-w: 41.5cqw; --c-h: 7.29cqh; --c-f: 1.75cqw; --c-bord: 0.2cqw; --l-top: 54.95cqh; --l-f: 1.22cqw;
    --b-left: 39.84cqw; --b-top: 59.24cqh; --b-w: 20.5cqw; --b-h: 5.86cqh; --b-f: 1.8cqw; }
  .gp12 .gp-legende { font-family: var(--titre); font-weight: 700; }
  .gp12 .gp-legende .v-pc { display: none; }
  .gp12 .gp-legende .v-tel { display: inline; }
}

/* ——— Téléphone (maquettes 1080×1920) ——— */
@media (max-aspect-ratio: 17/20) {
  .gp10 { --t-f: 4.5cqw; --e-top: 28.9cqh; --e-dir: column; --e-gap: 1.8cqh; --j-w: 38.98cqw; --j-h: 4.22cqh; --j-f: 2.6cqw;
    --h-top: 41.93cqh; --h-w: 25.56cqw; --h-h: 4.58cqh; --h-f: 2.6cqw; --h1-left: 18.06cqw; --h2-left: 56.48cqw; --a-top: 43.1cqh; --a-f: 2.1cqw;
    --ap-left: 50%; --ap-tf: translateX(-50%); --ap-top: 48.4cqh; --ap-h: 5.3cqh; --ap-f: 2.42cqw; --d-top: 54.17cqh; --d-h: 3.96cqh; --d-f: 2.2cqw;
    --du-left: 16.2cqw; --du-w: 27.87cqw; --au-left: 50cqw; --au-top: 54.7cqh; --au-f: 2cqw; --ju-left: 57.87cqw; --ju-w: 27.87cqw;
    --b-left: 32.87cqw; --b-top: 61.98cqh; --b-w: 34.35cqw; --b-h: 4.64cqh; --b-f: 2.9cqw; }
  .gp10 .h-cadre { display: none; }
  .gp11 { --logo-top: 3.19cqh; --logo-w: 20.97cqw; --t-top: 21.7cqh; --t-f: 5.31cqw; --c-left: 9.26cqw; --c-top: 28.13cqh; --c-w: 81.57cqw; --c-h: 4.64cqh; --c-f: 3.3cqw;
    --d2-top: 33.85cqh; --d2-w: 38.98cqw; --d2-h: 4.74cqh; --p-left: 50.46cqw; --p-w: 40.37cqw; --ds-top: 39.58cqh; --ds-h: 9.43cqh; --dp-top: 3.7cqh;
    --tt-left: 50%; --tt-tf: translate(-50%, -50%); --tt-top: 51.2cqh; --tt-f: 2.91cqw; --ty-top: 54.69cqh; --ty-h: 4.32cqh; --ty-b: 0.28cqw; --ty-f: 2.4cqw;
    --t1-left: 6.02cqw; --t1-w: 25.83cqw; --t2-left: 33.8cqw; --t2-w: 25.83cqw; --t3-left: 61.57cqw; --t3-w: 32.5cqw;
    --r-top: 61.46cqh; --r-h: 4.32cqh; --r-f: 1.95cqw; --v-left: 8.33cqw; --v-w: 46.39cqw; --a-left: 56.48cqw; --a-w: 38.98cqw;
    --b-left: 30.09cqw; --b-top: 69.27cqh; --b-w: 39.91cqw; --b-h: 4.375cqh; --b-f: 2.5cqw; --m-f: 2.6cqw; --lt-f: 3cqw; --la-f: 2cqw; }
  .gp11 .v-sep, .gp11 .v-i-type { display: none; }
  .gp11 .v-champ input { text-align: center; padding: 0 3cqw; }
  .gp11 .v-champ textarea { padding-left: 3cqw; }
  .gp11 .v-type, .gp11 .v-voir, .gp11 .v-ajouter, .gp11 .gp-bouton { border-radius: 0; box-shadow: none; }
  .gp12 { --t-top: 30.9cqh; --t-f: 4.53cqw; --c-left: 13.89cqw; --c-top: 41.67cqh; --c-w: 72.31cqw; --c-h: 5.05cqh; --c-f: 2.39cqw; --c-bord: 0.28cqw; --l-top: 49.5cqh; --l-f: 1.87cqw;
    --b-left: 31.94cqw; --b-top: 54.17cqh; --b-w: 36.2cqw; --b-h: 4.22cqh; --b-f: 3.4cqw; }
  .gp12 .gp-legende { font-family: var(--titre); font-weight: 700; }
  .gp12 .gp-legende .v-pc { display: none; }
  .gp12 .gp-legende .v-tel { display: inline; }
}

/* Page 12 : le nom du fichier reçu s'affiche tel qu'il a été écrit (sans capitales forcées). */
.gp12 .gp-fichier-texte.nom-fichier { text-transform: none; font-family: var(--texte); font-weight: 600; }
.gp12 .gp-legende { word-spacing: 0.12em; }

/* ═════════════ PAGE 14 — finalisation (maquettes PAGE_14 PC, tablette, téléphone) ═════════════
   Logo, titre sur deux lignes, un bouton blanc : même logo et mêmes mesures de logo que les pages 5 à 12 (.gp). Pas de NIKKA. */
.gp14 { --t-top: 34.8cqh; --t-f: 2.36cqw; --t-lh: 6.57cqh; --b-left: 30.52cqw; --b-top: 50.56cqh; --b-w: 39cqw; --b-h: 6.48cqh; --b-f: 1.17cqw; }
.gp14 .gp-titre { width: 70cqw; }
.gp14 .gp-bouton { border-radius: 0; }
.gp14 .gp-bouton[aria-disabled="true"] { cursor: progress; }
.gp14 .gp-message { bottom: auto; top: calc(var(--b-top) + var(--b-h) + 1.6cqh); }
@media (min-aspect-ratio: 17/20) and (max-aspect-ratio: 3/2) {
  .gp14 { --t-top: 35cqh; --t-f: 3.56cqw; --t-lh: 4.95cqh; --b-left: 25.4cqw; --b-top: 52.1cqh; --b-w: 49.3cqw; --b-h: 8.85cqh; --b-f: 1.74cqw; }
}
@media (max-aspect-ratio: 17/20) {
  .gp14 { --t-top: 32.3cqh; --t-f: 4.82cqw; --t-lh: 2.92cqh; --b-left: 14.8cqw; --b-top: 46.1cqh; --b-w: 70.46cqw; --b-h: 5.78cqh; --b-f: 2.3cqw; }
}

/* Écran « nouveau mot de passe » (.p3-reinit) : même dessin que la page 3. Le formulaire est plus court (pas de « créer mon compte » ni de lien) :
   on lui ajoute en bas (::after) la hauteur manquante pour que le cadre noir et le logo restent exactement à la même place (PC et tablette ; sur téléphone
   le logo est en haut et le formulaire en bas, rien à compenser). */
.p3-reinit .bloc-form::after { content: ''; display: block; flex: none; height: 36.5cqw; }
@media (min-aspect-ratio: 17/20) and (max-aspect-ratio: 3/2) { .p3-reinit .bloc-form::after { height: 47.1cqw; } }
@media (max-aspect-ratio: 17/20) { .p3-reinit .bloc-form::after { display: none; } }

/* Écran « nouveau mot de passe » : attribut hidden respecté malgré les règles d'affichage des étiquettes, champs et boutons de .p3. */
.p3 [hidden] { display: none !important; }

/* ═════════════ TABLEAU DE BORD (hors parcours, avenant « page 15 ») — pas de maquette : suite naturelle des pages 4, 6 et 14 ═════════════
   Même logo que les pages 5 à 12 (variables .gp), mêmes titres Copperplate en capitales, mêmes grands boutons blancs que la page 14.
   Tout le contenu d'un écran vit dans UNE colonne centrée (.td-corps) qui commence sous le logo et s'arrête au-dessus du bouton du bas (RETOUR ou
   SE DÉCONNECTER) ; elle ne défile que si la liste est vraiment trop longue (Store).
   Bouton d'un service non raccordé : VRAI attribut disabled ; fond noir, trait et texte blancs atténués mais lisibles. */
.td { --c-top: 26cqh; --c-w: 40cqw; --bas-top: 93cqh; --t-f: 2.3cqw; --l-f: 1.5cqw; --e-f: 1.05cqw; --v-f: 1.55cqw; --d-f: 1.2cqw; --s-f: 1.05cqw; --m-f: 0.9cqw;
  --l-h: 5.4cqh; --gap: 1.9cqh; --l-gap: 1.5cqh; --l-bord: 0.16cqw; --bas-f: 1.05cqw; --msg-f: 1.2cqw; --pad-b: 0.7cqh; }
.td-corps { position: absolute; left: 50%; transform: translateX(-50%); top: var(--c-top); width: var(--c-w); bottom: calc(100cqh - var(--bas-top) + 1.6cqh); display: flex; flex-direction: column; gap: var(--gap); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.55) transparent; }
.td-titre { flex: none; margin: 0; text-align: center; color: var(--blanc); font-size: var(--t-f); line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.td-titre.td-long { font-size: max(15px, calc(var(--t-f) * 0.6)); line-height: 1.25; }
.td-liste { flex: none; display: flex; flex-direction: column; gap: var(--l-gap); }
.td-btn { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: var(--l-h); margin: 0; padding: var(--pad-b) 2cqw; border: var(--l-bord) solid var(--blanc); border-radius: 0; background: var(--blanc); color: var(--noir); font-size: var(--l-f); line-height: 1.15; text-align: center; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.td .td-btn:hover:not(:disabled) { background: #d9d9d9; }
.td .td-btn:disabled { background: var(--noir); color: rgba(255, 255, 255, 0.62); border-color: rgba(255, 255, 255, 0.4); opacity: 1; cursor: not-allowed; }
.td .td-btn.td-principal { min-height: calc(var(--l-h) * 1.22); }
.td-libelle { display: block; }
.td-sous { display: block; margin-top: 0.3em; font-family: var(--texte); font-weight: 600; font-size: var(--s-f); line-height: 1.25; text-transform: none; font-variant-caps: normal; letter-spacing: 0; }
.td-mention { display: block; margin-top: 0.35em; font-family: var(--texte); font-weight: 700; font-size: var(--m-f); letter-spacing: 0.1em; line-height: 1.2; text-transform: uppercase; font-variant-caps: normal; }
/* Blocs d'information (rendez-vous, « MON SITE ») : du texte, jamais un bouton. */
.td-bloc { flex: none; margin: 0; text-align: center; }
.td-etiquette { margin: 0; font-size: var(--e-f); letter-spacing: 0.1em; line-height: 1.2; color: rgba(255, 255, 255, 0.75); }
.td-valeur { margin: 0.25em 0 0; font-family: var(--texte); font-weight: 700; font-size: var(--v-f); line-height: 1.2; color: var(--blanc); overflow-wrap: anywhere; }
.td-detail { margin: 0.2em 0 0; font-family: var(--texte); font-weight: 600; font-size: var(--d-f); line-height: 1.3; color: rgba(255, 255, 255, 0.85); overflow-wrap: anywhere; }
.td-texte { flex: none; margin: 0; text-align: center; font-family: var(--texte); font-weight: 600; font-size: var(--v-f); line-height: 1.35; color: var(--blanc); }
.td-bas { position: absolute; left: 50%; transform: translateX(-50%); top: var(--bas-top); margin: 0; padding: 0.8cqh 3cqw; background: transparent; border: 0; color: var(--blanc); font-size: var(--bas-f); white-space: nowrap; cursor: pointer; }
.td-bas:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 0.5cqw; }
.td .td-bas:disabled { opacity: 0.55; cursor: progress; }
.td-message { flex: none; margin: 0; text-align: center; font-family: var(--texte); font-weight: 600; font-size: var(--msg-f); line-height: 1.25; color: var(--blanc); }
.td-message:empty { display: none; }
/* Store : une application = son nom, une phrase, un bouton (ou « BIENTÔT DISPONIBLE » sans bouton). */
.td-groupe { flex: none; margin: 0.6cqh 0 0; text-align: center; font-size: var(--e-f); letter-spacing: 0.1em; line-height: 1.2; color: rgba(255, 255, 255, 0.75); }
.td-app { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 0.9cqh; padding: 1.5cqh 0 0; border-top: 1px solid rgba(255, 255, 255, 0.3); text-align: center; }
.td-app-nom { margin: 0; font-size: var(--l-f); line-height: 1.2; color: var(--blanc); }
.td-app-texte { margin: 0; font-family: var(--texte); font-weight: 600; font-size: var(--d-f); line-height: 1.3; color: rgba(255, 255, 255, 0.85); }
.td-app .td-btn { min-height: calc(var(--l-h) * 0.85); }
.td-app-bientot { margin: 0; padding: 0.6cqh 0; font-family: var(--texte); font-weight: 700; font-size: var(--m-f); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
@media (min-aspect-ratio: 17/20) and (max-aspect-ratio: 3/2) {
  .td { --c-top: 25.6cqh; --c-w: 64cqw; --bas-top: 92.5cqh; --t-f: 3.2cqw; --l-f: 2.1cqw; --e-f: 1.55cqw; --v-f: 2.15cqw; --d-f: 1.7cqw; --s-f: 1.55cqw; --m-f: 1.5cqw;
    --l-h: 6cqh; --gap: 1.6cqh; --l-gap: 1.3cqh; --l-bord: 0.2cqw; --bas-f: 1.6cqw; --msg-f: 1.7cqw; --pad-b: 0.5cqh; }
}
@media (max-aspect-ratio: 17/20) {
  .td { --c-top: 19.5cqh; --c-w: 88cqw; --bas-top: 92cqh; --t-f: 5.4cqw; --l-f: 4cqw; --e-f: 3.85cqw; --v-f: 4.3cqw; --d-f: 3.9cqw; --s-f: 3.85cqw; --m-f: 3.85cqw;
    --l-h: 6.6cqh; --gap: 1.8cqh; --l-gap: 1.3cqh; --l-bord: 0.3cqw; --bas-f: 3.85cqw; --msg-f: 3.9cqw; --pad-b: 0.6cqh; }
}
.td .p4-erreur, .td .p4-reessayer { color: var(--blanc); }
