/* ============================================================
   aide-fiche.css — Overlay d'aide sur les pages fiches
   ============================================================ */

/* Fond semi-transparent */
.aide-fiche-fond {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 2000;
    pointer-events: none;
    display: none;
}

.aide-fiche-fond.visible {
    display: block;
}

/* Fenêtre-focus : cadre autour de l'élément ciblé */
.aide-fiche-focus {
    position: fixed;
    border: 2px solid var(--vert-3);
    border-radius: 12px;
    pointer-events: none;
    z-index: 2001;
    box-sizing: border-box;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.15);
}

/* Fenêtre-info : texte + boutons */
.aide-fiche-info {
    position: absolute;
    background: white;
    border: 1px solid var(--gris-2);
    border-radius: 12px;
    padding: 25px 20px 25px 20px;
    z-index: 9999;
    box-sizing: border-box;
    transition: top 0.4s ease, left 0.4s ease;
    font-family: var(--font-family);
    display: none;
    cursor: default;
}

.aide-fiche-info.visible {
    display: block;
}

/* Flèche callout */
.aide-fiche-info::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid var(--gris-2);
    transform: rotate(45deg);
    top: 50%;
    margin-top: -8px;
}

/* Masque les bords intérieurs */
.aide-fiche-info::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    top: 50%;
    margin-top: -9px;
}

/* Flèche à gauche (fenêtre-info à droite de la fenêtre-focus) */
.aide-fiche-info.fleche-gauche::before {
    left: -9px;
    border-bottom: none;
    border-right: none;
}

.aide-fiche-info.fleche-gauche::after {
    left: 0px;
}

/* Flèche à droite (fenêtre-info à gauche de la fenêtre-focus) */
.aide-fiche-info.fleche-droite::before {
    right: -9px;
    border-top: none;
    border-left: none;
}

.aide-fiche-info.fleche-droite::after {
    right: 0px;
}

/* Pas de flèche à l'étape bienvenue */
.aide-fiche-info.sans-fleche::before,
.aide-fiche-info.sans-fleche::after {
    display: none;
}

/* Croix de fermeture */
.aide-fiche-btn-fermer {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Compteur étape — points */
.aide-fiche-info-etape {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0 12px 0;
}

.aide-fiche-point {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gris-2);
    display: inline-block;
}

.aide-fiche-point--actif {
    width: 7px;
    height: 7px;
    background: var(--vert-3);
}

/* Titre */
.aide-fiche-info-titre {
    font-size: var(--font-size-3);
    font-weight: 700;
    color: var(--vert-3);
    margin: 40px 0 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gris-2);
    text-align: center;
}

/* Texte descriptif */
.aide-fiche-info-texte {
    font-size: var(--font-size-2);
    color: var(--gris-5);
    line-height: 1.5;
    margin: 0 0 40px 0;
    text-align: justify;
}

/* Zone bouton Précédent + Suivant */
.aide-fiche-info-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aide-fiche-btn-precedent {
    background: var(--vert-1);
    color: white;
    border: none;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: var(--font-size-2);
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family);
    visibility: hidden;
}

.aide-fiche-btn-precedent:hover {
    background: var(--vert-2);
}

.aide-fiche-btn-suivant {
    background: var(--vert-3);
    color: white;
    border: none;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: var(--font-size-2);
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family);
}

.aide-fiche-btn-suivant:hover {
    background: var(--vert-4);
}

.aide-fiche-btn-suivant.terminer {
    background: var(--gris-4);
}

.aide-fiche-btn-suivant.terminer:hover {
    background: var(--gris-5);
}

/* Zone bas : Ne plus afficher + Passer */
.aide-fiche-info-bas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--gris-3);
}

.aide-fiche-btn-passer {
    background: none;
    border: 1px solid var(--gris-3);
    border-radius: 20px;
    font-size: var(--font-size-2);
    color: var(--gris-5);
    cursor: pointer;
    font-family: var(--font-family);
    padding: 5px 14px;
}

.aide-fiche-btn-passer:hover {
    background: var(--gris-2);
}

.aide-fiche-npa {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--font-size-2);
    color: var(--gris-4);
    cursor: pointer;
}

.aide-fiche-npa input[type="checkbox"] {
    cursor: pointer;
    width: 13px;
    height: 13px;
    accent-color: var(--vert-3);
}
