.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.custom-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
}

.custom-modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Le `!important` ne servait qu'à passer devant le `p { font-size: 16px
   !important }` global, qui n'existe plus. */
.intro-text {
    font-size: 1.05rem;
    color: #5a5a5a;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* UNE ILLUSTRATION SE RÉDUIT, UN LOGO SE REDIMENSIONNE.
 *
 * La règle était écrite `img { max-width: 100px !important }` : elle visait
 * TOUTES les images sous 768 px, et la seule qu'elle devait viser était
 * l'illustration d'accueil. Le logo NUMTECH du pied de page porte un
 * `height="50"` en attribut : la largeur bridée à 100 px et la hauteur tenue
 * à 50 px, il s'affichait ÉCRASÉ sur tout écran de téléphone — rapport 2,00
 * pour une image qui en vaut 3,00. Mesuré à 390 px, sur toutes les pages,
 * côté client comme côté administration.
 *
 * Chaque image dit maintenant elle-même jusqu'où elle se réduit, et
 * `height: auto` garde les proportions quoi qu'il arrive. */
@media (max-width: 768px) {
    .illustration-accueil {
        max-width: 100px;
    }

    .intro-text {
        font-size: 0.9rem;
    }
}

.custom-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-switch-label {
    display: inline-block;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-switch-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.custom-switch-input:checked+.custom-switch-label {
    background-color: #46AFE8;
}

.custom-switch-input:checked+.custom-switch-label .custom-switch-slider {
    transform: translateX(25px);
}

.custom-switch-text {
    margin-left: 10px;
    font-size: 0.875rem;
    color: #333;
}

/* `.no-pointer` seule (0,1,0) perdait contre le `button:not(:disabled) {
   cursor: pointer }` de Bootstrap (0,1,1) : le bouton restait inerte, mais le
   curseur continuait d'annoncer un clic. Les trois emplois portent `.btn`. */
.btn.no-pointer {
    cursor: default;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.btn.no-pointer:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}
