/* Fixe la hauteur maximale du panneau Tarteaucitron et active le scroll */
#tarteaucitronRoot #tarteaucitron {
    max-height: 85vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* S'assure que la modale centrée ne dépasse pas de l'écran sur petit écran */
#tarteaucitronAlertBig#tarteaucitronCenter {
    max-height: 90vh !important;
    max-width: 90vw !important;
    overflow-y: auto !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Garantit que le bouton de fermeture/validation reste accessible */
#tarteaucitronClosePanel {
    position: sticky !important;
    top: 0;
    z-index: 10;
}