/* Guide de test de Mon Hôtel : lisible sur téléphone comme sur ordinateur. */
:root {
  --fond: #f4f5f8; --carte: #fff; --texte: #1c1d24; --texte-2: #4b4d5a; --trait: #d7dae3;
  --menthe: #2f9c8d; --menthe-clair: #e3f4f1; --rose: #e8335f; --orange: #b86a00; --orange-clair: #fff3df;
  --vert: #1f8a4c; --rayon: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 17px/1.55 system-ui, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--menthe); }
h1 { margin: 0 0 8px; font-size: clamp(26px, 6vw, 38px); line-height: 1.15; }
h2 { margin: 40px 0 14px; padding-bottom: 6px; border-bottom: 3px solid var(--menthe); font-size: clamp(22px, 4.5vw, 28px); }
h3 { margin: 0 0 6px; font-size: 20px; }
p { margin: 0 0 12px; }
code { padding: 1px 5px; border-radius: 5px; background: #eceef3; font-size: .92em; }
.discret { color: var(--texte-2); font-size: 15px; }

/* En-tête fixe avec la progression */
.haut { position: sticky; top: 0; z-index: 10; background: var(--texte); color: #fff; }
.barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; max-width: 1180px; margin: 0 auto; padding: 10px 16px; }
.marque { color: #fff; font-weight: 700; text-decoration: none; }
.haut nav { display: flex; gap: 4px; }
.haut nav a { padding: 6px 12px; border-radius: 999px; color: #fff; text-decoration: none; }
.haut nav a:hover, .haut nav a:focus-visible { background: rgba(255,255,255,.15); }
.progression { height: 6px; background: rgba(255,255,255,.18); }
.progression span { display: block; width: 0; height: 100%; background: #5fd3c1; transition: width .3s; }

main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; }
.intro-guide { padding-top: 12px; }
.site { font-size: 18px; }
.encadre { margin: 18px 0; padding: 16px 18px; border-radius: var(--rayon); background: var(--menthe-clair); }
.attention { padding: 16px 18px; border-left: 5px solid var(--orange); border-radius: var(--rayon); background: var(--orange-clair); }
.deux-colonnes { display: grid; gap: 18px; }
.deux-colonnes h2 { margin-top: 0; font-size: 20px; border: 0; }
@media (min-width: 860px) { .deux-colonnes { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Les écrans */
.grille-ecrans { display: grid; gap: 22px; }
@media (min-width: 1000px) { .grille-ecrans { grid-template-columns: 1fr 1fr; } .ecran.large { grid-column: 1 / -1; } }
.ecran { padding: 16px; border-radius: var(--rayon); background: var(--carte); box-shadow: 0 1px 3px rgba(20, 22, 40, .08); }
.intro { color: var(--texte-2); }
.capture { position: relative; display: block; width: 100%; margin: 14px 0 8px; padding: 0; border: 0; background: none; cursor: zoom-in; }
.capture img { display: block; width: 100%; height: auto; border: 1px solid var(--trait); border-radius: 8px; }
.ecran.etroit .capture { max-width: 300px; margin-inline: auto; }
.agrandir { position: absolute; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 22, 40, .78); color: #fff; font-size: 13px; }
.cadre { position: absolute; border: 2px solid var(--rose); border-radius: 5px; pointer-events: none; transition: box-shadow .2s, background .2s; }
.num { position: absolute; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rose); color: #fff; font-size: 12px; font-weight: 700; transform: translate(-70%, -70%); box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.cadre.actif { background: rgba(232, 51, 95, .18); box-shadow: 0 0 0 4px rgba(232, 51, 95, .45); }
.num.actif { transform: translate(-70%, -70%) scale(1.25); }
.legende { margin: 0; padding: 0; list-style: none; }
.ligne-legende { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 6px 4px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.ligne-legende:hover, .ligne-legende:focus-visible, .ligne-legende.actif { background: #fdecef; }
.pastille { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--rose); color: #fff; font-size: 13px; font-weight: 700; }

/* La capture agrandie */
#zoom { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #101117; color: #fff; }
#zoom::backdrop { background: rgba(0, 0, 0, .7); }
.zoom-tete { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #101117; }
.zoom-cadre { overflow: auto; height: calc(100dvh - 60px); padding: 10px; }
.zoom-cadre .capture { width: max(100%, 1100px); max-width: none; margin: 0; cursor: default; }
.zoom-cadre .agrandir { display: none; }

/* Les essais */
.sommaire-essais { display: grid; gap: 8px; margin: 18px 0 8px; }
@media (min-width: 700px) { .sommaire-essais { grid-template-columns: repeat(2, 1fr); } }
.sommaire-essais a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--rayon); background: var(--carte); color: var(--texte); text-decoration: none; }
.mini-compte { margin-left: auto; color: var(--texte-2); font-size: 14px; white-space: nowrap; }
.mini-compte.fini { color: var(--vert); font-weight: 700; }
.lettre { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 8px; border-radius: 8px; background: var(--menthe); color: #fff; font-weight: 700; }
.sommaire-essais .lettre { margin: 0; flex: none; }
.essai { margin-top: 28px; }
.essai header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.essai h3 { display: flex; align-items: center; font-size: 22px; }
.compte { color: var(--texte-2); font-weight: 600; }
.compte.fini { color: var(--vert); }
.qui { color: var(--texte-2); font-style: italic; }
.etapes { margin: 0; padding: 0; list-style: none; }
.etape { display: flex; gap: 12px; margin-bottom: 10px; padding: 14px; border: 2px solid transparent; border-radius: var(--rayon); background: var(--carte); }
.etape.coche-ok { border-color: #bfe6cf; background: #f3fbf6; }
.etape.probleme { border-color: #f5b5c4; background: #fff6f8; }
.coche { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; cursor: pointer; }
.coche input { width: 30px; height: 30px; margin: 0; accent-color: var(--vert); cursor: pointer; }
.numero { font-weight: 700; font-size: 14px; color: var(--texte-2); }
.contenu { flex: 1; min-width: 0; }
.contenu p { margin-bottom: 8px; }
.etiquette { display: block; color: var(--texte-2); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.voir { padding: 8px 10px; border-radius: 8px; background: #f2f3f7; }
.signaler { padding: 6px 14px; border: 1px solid #e3a3b3; border-radius: 999px; background: #fff; color: #b0234a; font: inherit; font-size: 15px; cursor: pointer; }
.signaler[aria-expanded="true"] { background: #fdecef; }
.note-probleme { display: grid; gap: 4px; margin-top: 8px; font-size: 15px; color: var(--texte-2); }
.note-probleme[hidden] { display: none; }
.note-probleme textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--trait); border-radius: 8px; font: inherit; font-size: 16px; color: var(--texte); }
.note { color: var(--texte-2); font-size: 15px; }

/* Bilan */
.resume { font-size: 18px; font-weight: 600; }
.liste-problemes li { margin-bottom: 6px; }
.actions-bilan { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.bouton { min-height: 44px; padding: 0 18px; border: 1px solid var(--trait); border-radius: 10px; background: #fff; color: var(--texte); font: inherit; font-weight: 600; cursor: pointer; }
.bouton.plein { border-color: var(--menthe); background: var(--menthe); color: #fff; }
#zoom .bouton { background: #fff; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .ecran { padding: 12px; }
  .etape { padding: 12px 10px; gap: 10px; }
  .barre { flex-wrap: nowrap; padding: 8px 12px; }
  .marque { font-size: 15px; white-space: nowrap; }
  .marque .long { display: none; }
  .haut nav a { padding: 6px 8px; font-size: 15px; }
}
@media print {
  .haut, .actions-bilan, .signaler, .agrandir, #zoom { display: none !important; }
  body { background: #fff; }
  .ecran, .etape { box-shadow: none; break-inside: avoid; }
}
