/* ========================================
   ACCESSIBILITÉ RGAA - EUROGERM
   Basé sur WCAG 2.1, Bootstrap 5, WebAIM
   ======================================== */

/* ========================================
   1. ÉLÉMENTS MASQUÉS VISUELLEMENT
   ======================================== */

/* Classe pour éléments visibles uniquement par lecteurs d'écran */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Variante moderne avec clip-path (optionnel) */
.sr-only-modern {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    white-space: nowrap;
}

/* Permettre le focus des éléments sr-only si nécessaire */
.sr-only:focus,
.sr-only-modern:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    margin: 0;
}

/* ========================================
   2. LIENS D'ÉVITEMENT (Skip Links)
   Critère RGAA 12.7
   ======================================== */

.skip-links {
    position: relative;
    z-index: 10000;
    width: 100%;
}

/* Lien d'évitement - invisible par défaut */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    white-space: nowrap;
    z-index: 10001;
    transition: top 0.3s ease;
}

/* Lien d'évitement visible au focus clavier */
.skip-link:focus {
    top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* Amélioration visibilité au focus */
.skip-link:focus,
.skip-link:active {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* ========================================
   3. FOCUS VISIBLE - Critère RGAA 10.7
   ======================================== */

/* Focus pour tous les éléments interactifs */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

/* Focus visible uniquement au clavier (pas à la souris) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

/* ========================================
   4. BOUTONS ACCESSIBLES
   ======================================== */

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Les images dans les boutons ne doivent pas intercepter les événements */
button img {
    pointer-events: none;
}

/* ========================================
   5. RETOUR EN HAUT DE PAGE
   #back-in-the-past (votre code existant)
   ======================================== */

#back-in-the-past {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none; /* Masqué par défaut */
}

#back-in-the-past.visible {
    display: block;
}

#bloc-return {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#bloc-return:hover {
    background-color: #333;
    transform: scale(1.1);
}

#bloc-return:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

#bloc-return img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Rend l'image blanche */
}

/* ========================================
   6. ÉLÉMENTS DÉCORATIFS
   ======================================== */

/* Les éléments avec aria-hidden ne doivent pas recevoir le focus */
[aria-hidden="true"] {
    pointer-events: none;
}

/* Les éléments décoratifs (classe .deco) */
.deco {
    pointer-events: none;
}

/* ========================================
   7. NAVIGATION RESPONSIVE
   ======================================== */

/* Menu mobile - masquer correctement avec aria-hidden */
#menu-latteral-responsive[aria-hidden="true"],
#search-responsive[aria-hidden="true"] {
    display: none;
}

/* ========================================
   MODULE 7 - ACCESSIBILITÉ RGAA
   ======================================== */

/* ✅ Remplacement du <h4> par une classe .title-style */
.module-7-0-1 .title-style {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
}

/* ✅ Titre de carte visible (en dehors du hover) */
.module-7-0-1 .card-title {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

/* ✅ Liens de carte accessibles */
.module-7-0-1 .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-7-0-1 .card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.module-7-0-1 .card-link:focus {
    outline: 3px solid #0056B3;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ✅ Wrapper pour les cartes non-cliquables */
.module-7-0-1 .card-wrapper {
    display: block;
}

/* ✅ Container d'image avec hover */
.module-7-0-1 .img-hover {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* ✅ Image principale */
.module-7-0-1 .img-hover img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* ✅ Overlay hover (masqué par défaut) */
.module-7-0-1 .hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

/* ✅ Afficher le hover au survol et au focus clavier */
.module-7-0-1 .card-link:hover .hover,
.module-7-0-1 .card-link:focus .hover,
.module-7-0-1 .img-hover:hover .hover {
    opacity: 1;
}

/* ✅ Contenu du hover */
.module-7-0-1 .hover .content {
    width: 100%;
    color: #FFFFFF;
}

.module-7-0-1 .hover .libelle {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* ✅ Zone de lien décoratif */
.module-7-0-1 .lien-deco {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-7-0-1 .lien-deco .deco {
    width: 30px;
    height: 2px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.module-7-0-1 .card-link:hover .lien-deco .deco {
    width: 50px;
}

/* ✅ Amélioration du zoom sur l'image au hover */
.module-7-0-1 .card-link:hover .img-hover img,
.module-7-0-1 .img-hover:hover img {
    transform: scale(1.05);
}

/* ✅ Responsive - Mobile */
@media (max-width: 768px) {
    .module-7-0-1 .display-desktop {
        display: none;
    }

    .module-7-0-1 .display-mobile {
        display: inline;
    }

    /* Afficher le titre de carte en mobile */
    .module-7-0-1 .card-title {
        display: block;
        margin-top: 0.5rem;
        margin-bottom: 0.25rem;
    }

    /* Ajuster la taille du hover sur mobile */
    .module-7-0-1 .hover {
        opacity: 0.9; /* Plus visible par défaut sur mobile */
    }

    .module-7-0-1 .title-style {
        font-size: 1.1rem;
    }

    .module-7-0-1 .hover .libelle {
        font-size: 0.85rem;
    }
}

@media (min-width: 769px) {
    .module-7-0-1 .display-desktop {
        display: inline;
    }

    .module-7-0-1 .display-mobile {
        display: none;
    }
}

/* ✅ Mode sombre (si applicable) */
.module-7-0-1.module-gray {
    background-color: #F5F5F5;
}

.module-7-0-1.module-gray .card-title {
    color: #212529;
}

.module-7-0-1.module-gray .lien-deco .deco {
    background-color: #212529;
}

/* ✅ Amélioration pour la navigation au clavier */
.module-7-0-1 .card-link:focus-visible {
    outline: 3px solid #0056B3;
    outline-offset: 4px;
}

/* ✅ États désactivés (si nécessaire) */
.module-7-0-1 .card-link[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ✅ Animation d'entrée (optionnel) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-7-0-1 .card-link,
.module-7-0-1 .card-wrapper {
    animation: fadeInUp 0.6s ease forwards;
}

.module-7-0-1 .col-md-6:nth-child(1) .card-link {
    animation-delay: 0.1s;
}

.module-7-0-1 .col-md-6:nth-child(2) .card-link {
    animation-delay: 0.2s;
}

.module-7-0-1 .col-lg-6:last-child .card-link {
    animation-delay: 0.3s;
}

/* ========================================
   8. COMPATIBILITÉ INTERNET EXPLORER
   (si vous devez encore le supporter)
   ======================================== */

/* Fallback pour :focus-visible (IE ne le supporte pas) */
@supports not selector(:focus-visible) {
    a:focus,
    button:focus {
        outline: 2px solid #005fcc;
        outline-offset: 2px;
    }
}

/* ========================================
   9. FORMULAIRES ACCESSIBLES - Critère 11.x
   ======================================== */

/* === Labels de formulaire === */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #212529;
}

.form-label abbr {
    color: #d32f2f;
    text-decoration: none;
    font-weight: bold;
    cursor: help;
}

/* === Messages d'aide === */
.form-text {
    display: block;
    font-size: 0.875rem;
    color: #5a5a5a;
    margin-top: 0.25rem;
}

/* === Messages d'erreur Parsley === */
.parsley-errors-list {
    display: block;
    color: #B71C1C;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    padding: 0;
    list-style: none;
}

.parsley-errors-list li {
    margin: 0;
    padding: 0;
}

.parsley-errors-list:empty {
    display: none;
}

/* === État d'erreur sur les champs === */
input.parsley-error,
select.parsley-error,
textarea.parsley-error {
    border-color: #d32f2f !important;
    background-color: #ffebee;
}

/* === État valide === */
input.parsley-success,
select.parsley-success,
textarea.parsley-success {
    border-color: #4caf50 !important;
}

/* === Améliorer la visibilité des checkboxes === */
input[type="checkbox"],
input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    margin-right: 0.5rem;
}

/* === Fieldset et Legend === */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    padding: 0;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
}

/* === Styles spécifiques formulaire Module15 === */

/* Inputs du formulaire de contact */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* États focus spécifiques aux formulaires (complète la section 3) */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #005fcc;
    box-shadow: 0 0 0 0.2rem rgba(0, 95, 204, 0.25);
}

/* Select custom avec flèche */
.select {
    position: relative;
}

.select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    background-color: #fff;
}

.select .select_arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
}

/* Conteneur checkbox avec label à droite */
.check-condition {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.check-condition input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.check-condition label {
    flex: 1;
    cursor: pointer;
    line-height: 1.5;
}

/* Boutons du formulaire */
button[type="submit"] {
    background-color: #005fcc;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

button[type="submit"]:hover {
    background-color: #003d82;
}

button[type="submit"]:active {
    transform: scale(0.98);
}

button[type="submit"]:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ReCAPTCHA container */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

/* Espacement Bootstrap utilitaire */
.mb-3 {
    margin-bottom: 1rem;
}

.text-right {
    text-align: right;
}

/* Responsive - Formulaire sur mobile */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }

    button[type="submit"] {
        width: 100%;
        padding: 1rem;
    }

    .check-condition {
        flex-direction: row;
        align-items: flex-start;
    }
}


/* ========================================
   CORRECTIONS CONTRASTE - FORMULAIRE CONTACT
   Optimisées pour RGAA / WCAG 2.1 AA
   ======================================== */

/* ✅ CORRECTION 1: Astérisques * - Spécificité augmentée */
.module-15-0 .form-label abbr[title],
.module-15-0 .required-legend abbr[title] {
    color: #CC0000;
    font-weight: bold;
    text-decoration: none;
    cursor: help;
}

/* Légende "Champs obligatoires" */
.module-15-0 .required-legend {
    color: #000000;
    font-size: 0.875rem;
}

/* ✅ CORRECTION 2: Labels checkbox - Spécificité sans !important */
.module-15-0 fieldset .promo-label,
.module-15-0 fieldset .cgu-label {
    color: #000000;
    font-weight: 500;
    line-height: 1.6;
}

/* ✅ CORRECTION 3: Description promo - Contraste amélioré */
.module-15-0 .promo-description-text {
    color: #000000;
    background-color: #F5F5F5;
    padding: 12px 16px;
    border-left: 4px solid #2E7D32; /* Vert plus foncé pour meilleur contraste */
    margin-top: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    line-height: 1.6;
    display: block;
    border-radius: 0 4px 4px 0;
}

/* ✅ CORRECTION 4: Lien "En savoir plus" - Meilleur contraste */
.module-15-0 .cgu-link {
    color: #0056B3; /* Contraste 8.59:1 */
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.module-15-0 .cgu-link:hover {
    color: #003D82; /* Contraste 11.6:1 */
    text-decoration: none;
}

.module-15-0 .cgu-link:focus {
    outline: 3px solid #0056B3;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ✅ CORRECTION 5: Messages d'erreur Parsley - Contraste corrigé */
.module-15-0 .parsley-errors-list {
    color: #B71C1C; /* Contraste 7.02:1 au lieu de 3.9:1 */
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.module-15-0 .parsley-errors-list li {
    padding-left: 1.25rem;
    position: relative;
}

/* Icône d'erreur pour renforcer le message visuel */
.module-15-0 .parsley-errors-list li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #B71C1C;
}

/* ✅ CORRECTION 6: Texte d'aide - Contraste amélioré */
.module-15-0 .form-text {
    color: #5A5A5A; /* Contraste 7:1 au lieu de 4.6:1 */
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ✅ CORRECTION 7: États de champs avec erreur */
.module-15-0 input.parsley-error,
.module-15-0 select.parsley-error,
.module-15-0 textarea.parsley-error {
    border-color: #B71C1C;
    border-width: 2px;
    background-color: #FFEBEE;
    box-shadow: 0 0 0 0.2rem rgba(183, 28, 28, 0.15);
}

/* ✅ CORRECTION 8: Bouton submit - Contraste renforcé */
.module-15-0 button[type="submit"] {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.module-15-0 button[type="submit"]:hover {
    background-color: #333333;
    border-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.module-15-0 button[type="submit"]:focus {
    outline: 3px solid #0056B3;
    outline-offset: 3px;
}

.module-15-0 button[type="submit"]:active {
    transform: translateY(0);
}

/* ✅ CORRECTION 9: Alertes - Contraste optimisé */
.module-15-0 .alert-success {
    background-color: #D4EDDA;
    color: #155724; /* Contraste 9.4:1 */
    border-left: 4px solid #28A745;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 500;
}

.module-15-0 .alert-danger {
    background-color: #F8D7DA;
    color: #721C24; /* Contraste 10.7:1 */
    border-left: 4px solid #DC3545;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 500;
}

/* ✅ CORRECTION 10: Politique de confidentialité */
.module-15-0 .privacy-policy-text {
    color: #333333; /* Contraste 12.6:1 */
    font-size: 0.875rem;
    line-height: 1.6;
}

.module-15-0 .privacy-policy-text a {
    color: #0056B3;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.module-15-0 .privacy-policy-text a:hover {
    color: #003D82;
}

/* ✅ BONUS: Amélioration focus visible sur checkboxes */
.module-15-0 input[type="checkbox"]:focus {
    outline: 3px solid #0056B3;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(0, 95, 204, 0.25);
}

/* ✅ BONUS: États visuels plus clairs pour les champs valides */
.module-15-0 input.parsley-success,
.module-15-0 select.parsley-success,
.module-15-0 textarea.parsley-success {
    border-color: #2E7D32;
    border-width: 2px;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
}

/* Responsive - Amélioration tactile sur mobile */
@media (max-width: 768px) {
    /* Augmenter la taille des zones tactiles */
    .module-15-0 input[type="checkbox"] {
        width: 1.5rem;
        height: 1.5rem;
    }

    /* S'assurer que les labels sont facilement cliquables */
    .module-15-0 .check-condition label {
        min-height: 44px; /* Taille minimum tactile recommandée */
        display: flex;
        align-items: center;
    }

    /* Bouton plus grand sur mobile */
    .module-15-0 button[type="submit"] {
        width: 100%;
        padding: 1rem;
        font-size: 1.125rem;
        background-color: #000000 !important;
        color: #FFFFFF !important;
    }
}

/* ========================================
   CORRECTIONS FINALES - CONTRASTE
   Résolution des 3 problèmes de contraste
   ======================================== */

/* ✅ PROBLÈME 1: Lien "Contact" - Jaune sur blanc insuffisant
   Couleur actuelle: #FEDA00 sur #FFFFFF (contraste 1.9:1) ❌
   Solution: Forcer un jaune plus foncé ou une bordure foncée
   ======================================== */

.link-ss[href="/contact"] {
    /* Option 1: Changer la couleur de fond pour du noir */
    background-color: #000000 !important;
    color: #FEDA00 !important; /* Jaune sur noir = 13.7:1 ✅ */
    padding: 8px 16px;
    display: inline-block;
    border-radius: 4px;
    font-weight: 600;
}

/* Alternative si vous devez garder le fond blanc */
.link-ss[href="/contact"].white-bg {
    background-color: #FFFFFF !important;
    color: #000000 !important; /* Noir sur blanc = 21:1 ✅ */
    border: 2px solid #FEDA00;
    padding: 8px 16px;
    display: inline-block;
    border-radius: 4px;
    font-weight: 600;
}

.link-ss[href="/contact"]:hover {
    background-color: #333333 !important;
    color: #FFFFFF !important;
    text-decoration: none;
}

.link-ss[href="/contact"]:focus-visible {
    outline: 3px solid #0056B3;
    outline-offset: 2px;
}


/* ✅ PROBLÈME 2: Select "Select a project" - Gris insuffisant
   Couleur actuelle: #7B7B7B sur #FFFFFF (contraste 4.47:1) ⚠️
   Solution: Forcer un gris plus foncé
   ======================================== */

.module-15-0 select#contact-projet {
    color: #626b69  !important; /* Contraste 7.0:1 ✅ */
    background-color: #FFFFFF !important;
}

/* Option désactivée/placeholder avec contraste suffisant */
.module-15-0 select#contact-projet option[disabled] {
    color: #626b69  !important; /* Contraste 5.74:1 ✅ */
}

/* Options normales */
.module-15-0 select#contact-projet option:not([disabled]) {
    color: #333333  !important; /* Contraste maximum 21:1 ✅ */
}

/* État focus du select */
.module-15-0 select#contact-projet:focus {
    border-color: #0056B3 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 95, 204, 0.25) !important;
    outline: 2px solid #0056B3;
    outline-offset: 2px;
}


/* ✅ PROBLÈME 3: Bouton "Envoyer" - Besoin de contraste garanti
   Solution: Forcer les couleurs avec !important
   ======================================== */

.module-15-0 button[type="submit"],
.module-15-0 .pt-3.pb-3.pr-5.pl-5[type="submit"] {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.module-15-0 button[type="submit"]:hover,
.module-15-0 .pt-3.pb-3.pr-5.pl-5[type="submit"]:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.module-15-0 button[type="submit"]:focus,
.module-15-0 .pt-3.pb-3.pr-5.pl-5[type="submit"]:focus {
    outline: 3px solid #0056B3 !important;
    outline-offset: 3px !important;
}

.module-15-0 button[type="submit"]:active,
.module-15-0 .pt-3.pb-3.pr-5.pl-5[type="submit"]:active {
    transform: translateY(0);
    background-color: #000000 !important;
}


/* ✅ PROBLÈME 4: Masquer "Receive promotional offers"
   La description ne doit apparaître que si la checkbox est cochée
   ======================================== */

.hidden-by-default {
    display: none !important;
}


/* ========================================
   10. CONTRASTE - Critère RGAA 3.3
   ======================================== */

/* Assurez-vous que les placeholders ont un contraste suffisant */
::placeholder {
    color: #6c757d; /* Contraste 4.5:1 minimum */
    opacity: 1;
}

/* Focus sur les placeholders */
input:focus::placeholder,
textarea:focus::placeholder {
    color: #999;
}

/* ========================================
   11. LIENS - Critère RGAA 10.6
   ======================================== */

/* Les liens doivent être visuellement distincts */
a {
    color: #0056b3;
    text-decoration: underline;
}

a:hover {
    color: #003d82;
    text-decoration: none;
}

/* Liens dans le texte principal */
main a:not(.btn):not(.button) {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ========================================
   12. IMAGES RESPONSIVE - Critère 10.4
   ======================================== */

/* Les images ne doivent pas déborder */
img {
    max-width: 100%;
    height: auto;
}

/* Images dans les figures */
figure {
    margin: 1rem 0;
}

figcaption {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* ========================================
   13. TABLEAUX ACCESSIBLES
   ======================================== */

/* Améliorer la lisibilité des tableaux */
table {
    border-collapse: collapse;
    width: 100%;
}

th {
    text-align: left;
    font-weight: 600;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

/* Lignes alternées pour meilleure lisibilité */
tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* ========================================
   14. CAROUSEL ACCESSIBLE
   ======================================== */

/* Les contrôles de carousel doivent être visibles */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-next:focus {
    opacity: 1;
}

/* Focus visible sur les indicateurs */
.carousel-indicators li {
    cursor: pointer;
}

.carousel-indicators li:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ========================================
   15. RESPONSIVE - Mobile First
   Critère RGAA 10.11, 13.9
   ======================================== */

/* Pas de scroll horizontal sur mobile */
body {
    overflow-x: hidden;
}

/* Conteneurs responsive */
.container-fluid,
.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Texte lisible à 200% de zoom */
@media (max-width: 320px) {
    html {
        font-size: 14px; /* Base plus petite sur très petits écrans */
    }
}

/* ========================================
   16. ÉTATS DÉSACTIVÉS
   ======================================== */

/* Éléments désactivés clairement identifiables */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #e9ecef;
}

/* ========================================
   17. ALERTES ET MESSAGES
   ======================================== */

/* Messages d'alerte accessibles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger,
.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #004085;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* ========================================
   18. PRINT - Accessibilité impression
   ======================================== */

@media print {
    /* Masquer les éléments non essentiels à l'impression */
    .skip-link,
    #back-in-the-past,
    nav,
    .btn,
    button {
        display: none !important;
    }

    /* Afficher les URLs des liens */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    /* Éviter les coupures de page dans les éléments */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    img {
        page-break-inside: avoid;
    }
}

/* ========================================
   19. MODULE 11 - TROMBINOSCOPE
   ======================================== */

/* Liste de membres sans puces */
.module-11-0-1 .row {
    list-style: none;
}

/* Améliorer le contraste de la fonction */
.module-11-0-1 .function {
    color: #212529;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Titre du membre - hiérarchie correcte */
.module-11-0-1 h3.name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

/* Améliorer le hover du trombinoscope pour accessibilité clavier */
.module-11-0-1 .one-member .photo:focus-within .hover,
.module-11-0-1 .one-member .photo:hover .hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Transition smooth pour le contenu au survol */
.module-11-0-1 .hover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Focus visible sur les cartes membres */
.module-11-0-1 article:focus-within {
    outline: 2px solid #005fcc;
    outline-offset: 4px;
}

/* ========================================
   20. MODULE 17 - FRISE CHRONOLOGIQUE
   ======================================== */

/* Masquer visuellement mais garder accessible */
.module-17-0-1 .dates-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Liste de dates sans puces */
.module-17-0-1 .dates {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Élément de date focusable */
.module-17-0-1 .one-date:focus {
    outline: 2px solid #005fcc;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Améliorer la visibilité de la date */
.module-17-0-1 time {
    font-weight: 600;
    color: #212529;
}

/* Bouton "Voir plus" accessible */
.module-17-0-1 .btn-frise-see-more {
    position: relative;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.module-17-0-1 .btn-frise-see-more:hover {
    transform: translateY(-2px);
}

.module-17-0-1 .btn-frise-see-more:active {
    transform: translateY(0);
}

.module-17-0-1 .btn-frise-see-more:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* Animation d'apparition des dates */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-17-0-1 #timeline-additional-dates:not([hidden]) {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation progressive pour chaque date */
.module-17-0-1 #timeline-additional-dates:not([hidden]) li {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.module-17-0-1 #timeline-additional-dates:not([hidden]) li:nth-child(1) {
    animation-delay: 0.1s;
}
.module-17-0-1 #timeline-additional-dates:not([hidden]) li:nth-child(2) {
    animation-delay: 0.2s;
}
.module-17-0-1 #timeline-additional-dates:not([hidden]) li:nth-child(3) {
    animation-delay: 0.3s;
}
.module-17-0-1 #timeline-additional-dates:not([hidden]) li:nth-child(4) {
    animation-delay: 0.4s;
}
.module-17-0-1 #timeline-additional-dates:not([hidden]) li:nth-child(5) {
    animation-delay: 0.5s;
}

/* Pour plus de 5 dates supplémentaires */
.module-17-0-1 #timeline-additional-dates:not([hidden]) li:nth-child(n+6) {
    animation-delay: 0.6s;
}

/* Responsive - adapter l'espacement */
@media (max-width: 768px) {
    .module-17-0-1 .one-date {
        flex-direction: column;
    }

    .module-17-0-1 .date {
        margin-bottom: 1rem;
    }

    .module-11-0-1 article {
        margin-bottom: 2rem;
    }
}


/* groupe\top_nav.html.twig */
.btn-close-transparent {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}


