* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Texte réservé aux 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;
}

/* Lien d'évitement : invisible tant qu'il n'a pas le focus clavier */
.skip-link {
    position: absolute;
    top: -4rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.7rem 1.1rem;
    border-radius: 10px;
    background: #fff;
    color: #1d3520;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 28, 18, 0.35);
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 0.75rem;
    outline: 3px solid #d98a52;
    outline-offset: 2px;
}

/* Le contenu principal reçoit le focus par le lien d'évitement : pas de cadre parasite */
[id="main"]:focus { outline: none; }

/* Pied de page commun (pages à fond sombre) */
.site-footer {
    max-width: 68rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
    color: rgba(243, 240, 230, 0.9);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.85rem;
    text-align: center;
}

.site-footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.25rem;
    margin-bottom: 0.5rem;
    list-style: none;
}

.site-footer a {
    color: inherit;
    text-underline-offset: 3px;
}

.site-footer a:hover { color: #f0aa78; }

/* Mouvement réduit : les animations et transitions se terminent aussitôt (état final conservé) */
@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;
    }
}

/* Logo « épi de blé » : prend la taille du texte qui l'entoure (1em), comme le faisait l'emoji */
.logo-mark {
    display: inline-block;
    width: 1em;
    height: 1em;
    object-fit: contain;
    vertical-align: -0.15em;
}
