/*
 * D175 — L'ACCUEIL DES GENS QUI ARRIVENT : les cartes (application, notifications
 * et empreinte) et le tutoriel. Chargé par l'espace équipe ET le portail : les
 * classes sont préfixées (acc-, tuto-) pour ne rien rhabiller d'autre.
 *
 * Ordinateur / cellulaire : la même frontière que les deux gabarits (780 px).
 * Le code QR n'a de sens que sur un écran qu'on photographie avec un autre
 * appareil : sur cellulaire, il disparaît et le geste d'installation le remplace.
 */

/* ── Les cartes ─────────────────────────────────────────────── */

.acc-carte { margin-bottom: 16px; border-left: 3px solid #EEB738; }
.acc-carte h2 { margin: 0 0 6px; }
.acc-carte-corps { display: flex; gap: 20px; align-items: flex-start; }
.acc-carte-texte { flex: 1; min-width: 0; }
.acc-carte-texte .sub + .sub { margin-top: 6px; }
.acc-qr {
    flex: 0 0 auto; width: 156px; height: 156px; padding: 8px;
    background: #FFFFFF; border: 1px solid #E5EAF2; border-radius: 10px;
}
.acc-qr-svg { display: block; width: 100%; height: 100%; }
.acc-adresse { overflow-wrap: anywhere; }
.acc-gestes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.acc-fermer { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-etats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.acc-etats li { padding-left: 22px; position: relative; font-size: 14px; }
.acc-etats li::before { content: "○"; position: absolute; left: 0; color: #6B7280; }
.acc-etats li.acc-ok::before { content: "✓"; color: #0B7A54; font-weight: 700; }
.acc-cellulaire { display: none; }
.acc-aide { margin-top: 16px; }
.acc-details { margin-top: 14px; }
.acc-details summary { cursor: pointer; font-weight: 600; }
.acc-details .acc-carte-corps { margin-top: 12px; }

@media (max-width: 780px) {
    .acc-ordinateur { display: none; }
    .acc-cellulaire { display: block; }
    .acc-carte-corps { display: block; }
}

/* ── Le tutoriel ────────────────────────────────────────────── */

/* Le <dialog> couvre l'écran sans le cacher : c'est le halo qui assombrit
   tout, sauf l'entrée du menu qu'on présente. */
.tuto {
    position: fixed; inset: 0; width: 100%; height: 100%;
    max-width: none; max-height: none; margin: 0; padding: 0;
    border: 0; background: transparent; overflow: hidden;
    color: #111827;
}
.tuto::backdrop { background: transparent; }
.tuto.tuto-centre { background: rgba(10, 10, 12, .62); }

.tuto-halo {
    position: fixed; border-radius: 12px; pointer-events: none;
    box-shadow: 0 0 0 4px #EEB738, 0 0 0 9999px rgba(10, 10, 12, .62);
}
.tuto-halo[hidden] { display: none; }

.tuto-bulle {
    position: fixed; width: 360px; max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px); overflow-y: auto;
    background: #FFFFFF; color: #111827; border-radius: 16px;
    padding: 20px 20px 16px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
    font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.tuto.tuto-centre .tuto-bulle { left: 50%; top: 50%; transform: translate(-50%, -50%); }

.tuto-etape h2 {
    margin: 0 0 8px; font-size: 19px; line-height: 1.3; color: #111827;
    font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.tuto-etape h2:focus { outline: none; }
.tuto-etape p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: #374151; }
.tuto-compte { font-size: 12px !important; letter-spacing: .04em; text-transform: uppercase; color: #8A5A00 !important; }

.tuto-points { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.tuto-points li { width: 8px; height: 8px; border-radius: 50%; background: #D1D5DB; }
.tuto-points li.on { background: #C9951B; width: 20px; border-radius: 4px; }

.tuto-gestes { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.tuto-nav { display: flex; gap: 8px; margin-left: auto; }
.tuto-gestes button {
    font: inherit; font-size: 14px; font-weight: 600; border-radius: 50px;
    padding: 9px 16px; cursor: pointer; min-height: 40px;
}
.tuto-passer { background: none; border: 0; color: #6B7280; padding-left: 0 !important; text-decoration: underline; }
.tuto-precedent { background: #FFFFFF; color: #111827; border: 1px solid #D1D5DB; }
.tuto-suivant { background: #111111; color: #FFFFFF; border: 1px solid #111111; }
.tuto-gestes button:focus-visible { outline: 3px solid #EEB738; outline-offset: 2px; }
.tuto-precedent[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
    .tuto-halo { transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease; }
}

/* ── D222 — une icône d'écran d'accueil par page ───────────────── */

/* Mon compte : les gestes (deux colonnes, une au téléphone) et la liste. */
.ea-etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; margin-top: 10px; }
.ea-os[hidden] { display: none; }
.ea-os h3 { margin: 0 0 6px; font-size: 15px; }
.ea-os ol { margin: 0 0 6px; padding-left: 20px; }
.ea-os li { margin: 2px 0; line-height: 1.45; }
.ea-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.ea-liste li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.ea-liste li:first-child { border-top: 0; }
.ea-liste img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.ea-nom { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ea-nom em { font-style: normal; font-size: 13px; opacity: .75; overflow-wrap: anywhere; }
.ea-liste .btn { flex: none; }

/* Le bouton discret des pages clés : au téléphone seulement. */
.ea-page:not([hidden]) { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.ea-bouton {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
    padding: 4px 10px; border-radius: 50px; border: 1px solid rgba(0, 0, 0, .14);
    background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer;
}
.ea-bouton img { border-radius: 5px; }
.ea-bouton:focus-visible { outline: 3px solid #EEB738; outline-offset: 2px; }
.ea-non {
    min-width: 32px; min-height: 32px; margin-left: 4px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: inherit; font-size: 18px; line-height: 1; opacity: .6; cursor: pointer;
}
.ea-non:focus-visible { outline: 3px solid #EEB738; outline-offset: 2px; }
.ea-fermer .btn + .btn { margin-left: 6px; }
@media (min-width: 781px) { .ea-page { display: none !important; } }

.ea-dialogue {
    width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
    border: 0; border-radius: 16px; padding: 20px; box-sizing: border-box;
    background: #FFFFFF; color: #111827; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
}
.ea-dialogue::backdrop { background: rgba(10, 10, 12, .62); }
.ea-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ea-tete img { border-radius: 12px; flex: none; }
.ea-tete h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.ea-dialogue .ea-etapes { grid-template-columns: 1fr; }
.ea-installer[hidden] { display: none; }
.ea-fermer { margin: 12px 0 0; text-align: right; }
