/* Formulaire public de dépôt Passeport Prévention */

/* Honeypot : hors écran, jamais display:none (certains robots le détectent) */
.webp-pp__hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.webp-pp__intro p:last-child {
    margin-bottom: 0;
}

.webp-pp__rgpd-text {
    line-height: 1.4;
}

/* Champ fichier : le thème dessine le bouton « Parcourir » en ::after
   (absolu, hauteur auto) sur un label de 42px, d'où un bouton qui déborde.
   On aligne conteneur, label et bouton sur la même hauteur. */
.webp-pp .custom-file,
.webp-pp .custom-file-input,
.webp-pp .custom-file-label {
    height: 42px;
}

.webp-pp .custom-file-label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: 0 150px 0 1rem;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.webp-pp .custom-file-label::after {
    top: 0;
    right: 0;
    bottom: 0;
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 18px 0 38px;
    line-height: 1;
    margin: 0;
}

.webp-pp .cf-turnstile {
    min-height: 65px;
}

.webp-pp__success-icon {
    font-size: 64px;
    color: #28a745;
}

.webp-pp .form-footer .btn + .btn {
    margin-left: .5rem;
}

/* Page de confirmation : boutons côte à côte et centrés (le thème met
   ses .btn en bloc), empilés sur mobile. */
.webp-pp__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: .5rem;
}

.webp-pp__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 220px;
    margin: 0;
}

@media (max-width: 575.98px) {
    .webp-pp__actions .btn {
        width: 100%;
    }
}

/* Espace pro : la page s'affiche dans l'espace client. La feuille de l'Espace
   pro retire le remplissage des cartes (elles contiennent des tableaux) :
   un formulaire en a besoin. */
.espace-rh-container.webp-pp--espacepro .card-body {
    padding: 24px;
}

.webp-pp--espacepro .webp-pp__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}


/* Modèle CSV à télécharger */
.webp-pp__template {
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.webp-pp__template--highlight {
    border-color: #ffc107;
    background-color: #fff8e1;
}

.webp-pp__template-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.webp-pp__template-link .material-icons {
    font-size: 20px;
}

/* Liste des informations attendues (08/10/2026). */
.webp-pp__fields { padding-left: 1.2rem; }
.webp-pp__fields li { margin-bottom: 4px; }
