/* --- Styles globaux d'accessibilité --- */
html.codev-monochrome {
    filter: grayscale(100%) !important;
}

/* On applique la police Lexend partout SAUF sur les éléments d'icônes */
body.codev-lexend, 
body.codev-lexend *:not(i):not([class*="icon"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.dashicons) {
    font-family: 'Lexend', sans-serif !important;
}










/* --- Widget UI (Version Menu Header - Intégration fine) --- */
#codev-a11y-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Le bouton d'ouverture dans le menu : Juste l'icône, pas de cercle */
#codev-a11y-trigger {
    background: transparent !important; /* Fond transparent */
    border: none !important; /* Pas de bordure */
    border-radius: 0 !important; /* Pas d'arrondi de cercle */
    padding: 0 !important; /* Pas de padding interne */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none !important; /* Pas d'ombre portée */
    width: auto !important; /* Taille automatique */
    height: auto !important;
    
    /* Couleur bleue forcée pour l'œil */
    color: #1a237e !important; /* Remplace cette couleur hexadécimale si ton bleu est différent */
    
    transition: opacity 0.2s ease;
    line-height: 1;
    margin: 0 10px; /* Ajoute un petit espace autour pour l'aérer des icônes voisines */
}

/* L'icône SVG à l'intérieur */
#codev-a11y-trigger svg {
    width: 22px !important; /* Taille petite et discrète pour s'aligner sur les icônes sociales */
    height: 22px !important;
    fill: currentColor !important; /* Prend la couleur bleue définie sur le parent */
}

#codev-a11y-trigger:hover {
    opacity: 0.7; /* Effet de survol léger */
}

/* La Modale (doit s'ouvrir sous le menu) */
#codev-a11y-panel {
    position: fixed; /* Fixé par rapport à l'écran */
    top: 90px; /* AJUSTE CETTE VALEUR pour que le panneau s'ouvre juste sous ton menu */
    right: 20px;
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 20px;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
    z-index: 999999;
}

#codev-a11y-panel.codev-a11y-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px); /* L'animation vient du haut */
    pointer-events: none;
}
/* ... (Le reste du CSS pour la grille et le footer est inchangé) ... */








.codev-a11y-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.codev-a11y-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2A2F78;
    font-weight: 600;
}

#codev-a11y-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #2A2F78;
    cursor: pointer;
    line-height: 1;
}

.codev-a11y-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Style des boutons modules façon OneTap */
.codev-a11y-module {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.codev-a11y-module:hover {
    background: #f1f3f5;
}

.codev-a11y-module.active {
    border-color: #2A2F78;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.codev-a11y-module .codev-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.codev-a11y-module .codev-text {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

.codev-a11y-footer {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

#codev-a11y-reset {
    width: 100%;
    background: #2A2F78;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

#codev-a11y-reset:hover {
    background: #2A2F78;
}