/* ==============================================
   STYLES D'ACCESSIBILITÉ (WCAG 2.1 AA)
   ============================================== */

/* Skip Link - Visible au focus clavier */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 100000;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #0056b3;
    outline-offset: 2px;
}

/* Screen Reader Only Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus visible amélioré (WCAG 2.1 AA) - Cohérent avec charte magenta */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: 2px solid #e204c3;
    outline-offset: 3px;
}

/* Focus visible pour les éléments interactifs */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #e204c3;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

/* Amélioration du focus pour le menu */
nav a:focus,
nav button:focus {
    background-color: rgba(233, 30, 99, 0.05);
}

/* Contraste amélioré pour les liens */
a {
    text-decoration-skip-ink: auto;
}

/* Hover UNIQUEMENT sur les liens dans le contenu (pas nav, pas boutons) */
.entry-content a:hover,
.post-content a:hover,
article p a:hover,
main p a:hover {
    text-decoration: underline;
    color: #e204c3;
}

/* Navigation : hover subtil sans underline */
nav a:hover,
header a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Boutons : scale léger au lieu de underline */
button:hover:not(:disabled),
.btn:hover:not(:disabled),
input[type="submit"]:hover:not(:disabled),
input[type="button"]:hover:not(:disabled) {
    text-decoration: none;
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Animation réduite pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Amélioration du contraste des boutons */
button,
.btn,
input[type="submit"],
input[type="button"] {
    font-weight: 600;
    cursor: pointer;
}

button:disabled,
.btn:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Amélioration de la lisibilité */
p, li {
    line-height: 1.6;
}

/* Styles pour le fil d'Ariane (breadcrumb) */
.aeb-breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.aeb-breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.aeb-breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.aeb-breadcrumb a:hover,
.aeb-breadcrumb a:focus {
    color: #e204c3;
    text-decoration: underline;
}

.aeb-breadcrumb span {
    margin: 0 8px;
    color: #999;
}

.aeb-breadcrumb p {
    margin: 0;
    line-height: 1.4;
}

/* Amélioration de la navigation au clavier */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Indicateur de focus visible pour navigation clavier */
body.using-keyboard *:focus {
    outline: 3px solid #0056b3 !important;
    outline-offset: 2px !important;
}
