/*
Theme Name: Espace Pantoufle
Theme URI: https://espacepantoufle.org
Author: Espace Pantoufle
Description: Thème accessible basé sur des blocs pour le café solidaire Espace Pantoufle.
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: espace-pantoufle
Tags: full-site-editing, accessibility-ready, one-column, custom-colors, custom-logo, custom-menu
*/

/* Règles d'accessibilité : Focus clavier très visible */
:focus-visible {
    outline: 3px solid #603E38 !important;
    outline-offset: 3px !important;
    border-radius: 2px;
}

/* Lien d'évitement (Skip link) pour lecteurs d'écran et navigation clavier */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background-color: #603E38;
    color: #FFE493;
    font-weight: bold;
    text-decoration: none;
    padding: 1rem 1.5rem;
    z-index: 99999;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    overflow: visible;
}

/* Amélioration de la lisibilité des liens dans le contenu */
.wp-block-post-content a:not(.wp-block-button__link) {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.wp-block-post-content a:not(.wp-block-button__link):hover {
    background-color: #FFE493;
    color: #603E38;
}