/* ==========================================================
   layout.css — compléments accessibilité et landmarks HTML5
   chargé après style.css pour override propre.
   ========================================================== */

/* Masquage accessible : visible seulement pour les lecteurs d'écran */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Skip-link (cible: #main-content dans <main>) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
}
.skip-link:focus {
    left: 8px;
    top: 8px;
}

/* Item menu courant — surligne comme un hover figé (cohérent avec altawayama) */
#menu li.active > a,
#menu li.active > a:hover {
    background-color: #20a7dd;
    color: #fff;
}
/* Sous-menu : item actif egalement marque */
#menu .sub-menu li.active > a {
    background-color: #2abdf7;
    color: #fff;
}

/* Ne pas casser le h1 qui contient le logo */
h1.site-title { margin: 0; padding: 0; font-size: 1em; line-height: 1; }
h1.site-title a { display: inline-block; }
h1.site-title img { display: block; }

/* Landmarks HTML5 conservent le layout inline historique */
header, nav, main, footer { display: block; }

/* Espacement entre blocs "Infos & actus" (partenaires) de l'accueil */
table.forest {
    margin-top: 10px;
    margin-bottom: 28px;
}
table.forest + table.forest {
    /* évite de cumuler top + bottom quand deux blocs s'enchainent */
    margin-top: 0;
}

/* ==========================================================
   Page legale (mentions-legales, politique de confidentialite)
   Pleine largeur du wrapper, contenu centre avec ligne lisible.
   ========================================================== */
.legal-page {
    background-color: rgb(24, 39, 57);
    padding: 30px 0 50px 0;
}
.legal-page .legal-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 28px;
    color: #FFF;
    line-height: 1.55;
    font-size: 0.95rem;
}
.legal-page h1 {
    font-family: 'Open Sans', sans-serif;
    color: #FF5E8D;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.legal-page h2 {
    font-family: 'Open Sans', sans-serif;
    color: #5dcaf7;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 28px 0 6px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #3a5371;
}
.legal-page h3 {
    color: #FF5E8D;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 18px 0 4px 0;
}
.legal-page p {
    margin: 8px 0 12px 0;
    text-align: justify;
}
.legal-page ul {
    margin: 8px 0 16px 24px;
    padding: 0;
}
.legal-page ul li {
    margin-bottom: 6px;
}
.legal-page a {
    color: #5dcaf7;
}
.legal-page a:hover {
    color: #2abdf7;
}
.legal-page hr {
    display: none; /* on se passe des hr, les border-bottom sur h2 suffisent */
}
.legal-page code {
    background: rgba(255,255,255,0.08);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.85em;
}
.legal-page .legal-meta {
    color: #8aa6c2;
    font-size: 0.85em;
    margin-bottom: 24px;
}
.legal-page .legal-back {
    display: inline-block;
    margin-top: 40px;
    padding: 8px 18px;
    background: #20a7dd;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}
.legal-page .legal-back:hover {
    background: #147fa9;
    color:#fff;
}

/* Focus visible pour clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #1E7FB2;
    outline-offset: 2px;
}

.link-cgu {color:inherit;font-weight:400;margin:0;padding:0;}
.link-cgu:hover {color: inherit;font-weight: 400;text-decoration: underline;}