.actualites-wrapper {
    position: relative;
    margin: 0;
    color: var(--color-dark, #111);
}

/* ==========================================================================
   A11YSlider : éléments d'accessibilité injectés par la bibliothèque
   (inutile si le CSS de la bibliothèque est déjà chargé, sans danger sinon)
   ========================================================================== */

/* Textes réservés aux lecteurs d'écran : bouton « passer », statut, marqueur de fin */
.a11y-slider-sr-only,
.a11y-slider-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Le bouton « Passer le carrousel » devient visible quand on tabule dessus */
button.a11y-slider-sr-only:focus,
button.a11y-slider-sr-only:focus-visible {
    z-index: 10;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 16px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    background: #fff;
    color: var(--color-dark, #000);
    font-weight: 700;
    border: 2px solid var(--color-dark, #000);
    outline: 3px solid var(--color-orange, #ee7203);
    outline-offset: 2px;
}

/* ==========================================================================
   Slider : défilement horizontal avec accroche (scroll-snap)
   ========================================================================== */
.actus-container {
    display: flex;
    height: 450px;
    max-height: 450px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    background: var(--color-base-classic, #fff);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.actus-container::-webkit-scrollbar {
    display: none;
}

.actu-slide {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
}

/* Focus visible quand la slide reçoit le focus (navigation clavier) */
.actu-slide:focus-visible {
    outline: 3px solid var(--color-dark, #000);
    outline-offset: -3px;
}

/* Colonne image */
.actu-image-col {
    flex: 1 1 55%;
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.actu-image-col .img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Titre en bandeau sur l'image */
.badge-title {
    position: absolute;
    bottom: 30px;
    left: 0;
    max-width: 80%;
    margin: 0;
    padding: 12px 25px;
    background: var(--color-teal, #2d989e);
    color: var(--color-dark, #000);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.26;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Colonne texte */
.actu-content-col {
    flex: 1 1 45%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 40px 90px;
    background: var(--color-base-classic, #fff);
}

.excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-dark-teal, #333);
}

.excerpt p {
    margin: 0;
}

.btn-lire {
    align-self: flex-start;
    display: inline-block;
    padding: 12px 25px;
    background: var(--color-teal, #2d989e); /* corrigé : --color--teal (double tiret) */
    color: var(--color-dark, #000);
    border: 1px solid color-mix(in srgb, var(--color-teal, #2d989e) 85%, black 15%);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: filter 0.2s ease;
}

.btn-lire:hover, .btn-lire:focus-visible {
    filter: brightness(0.9);
}

/* ==========================================================================
   Barre de navigation
   ========================================================================== */
.slider-nav {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45%; /* même largeur que .actu-content-col */
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    margin: 0;
    padding: 20px 40px;
    pointer-events: none;
}

.slider-nav > * {
    pointer-events: auto; /* ...mais le lien et les pastilles restent cliquables */
}

.all-news {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-dark, #000);
    font-weight: 700;
    font-size: 0.8em;
    text-decoration: none;
}

.plus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-dark, #000);
    color: #fff;
    font-size: 14px;
}

/* ==========================================================================
   Pastilles : la bibliothèque génère <ul class="a11y-slider-dots"><li><button class="dot">
   ========================================================================== */
.actualites-wrapper .a11y-slider-dots {
    position: absolute;
    z-index: 1;
    right: 40px;
    bottom: 20px;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.actualites-wrapper .a11y-slider-dots li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.actualites-wrapper .a11y-slider-dots li::before {
    content: none; /* au cas où le thème ajoute des puces personnalisées */
}

/* Zone cliquable de 24 px, pastille visible de 12 px */
.dot {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

/* Le numéro (aria-hidden) reste dans le DOM mais n'est pas affiché : seule la pastille est visible */
.dot span {
    display: none;
}

.dot::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--color-dark, #000);
    opacity: 0.55; /* 0.3 donnait un contraste insuffisant (3:1 requis pour les composants d'interface) */
    transition: opacity 0.3s, transform 0.3s;
}

.dot.active::before,
.dot[aria-current="true"]::before {
    background: var(--color-orange, #ee7203);
    opacity: 1;
    transform: scale(1.3);
}

.dot:focus-visible {
    outline: 3px solid var(--color-dark, #000);
    outline-offset: 2px;
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .actus-container {
        height: 450px;
    }
    .actu-slide {
        flex-direction: column;
    }
    .actu-image-col {
        flex: 0 0 200px;
        height: 200px;
    }
    .actu-content-col {
        flex: 1 1 auto;
        padding: 20px 20px 80px;
    }
    .excerpt {
        -webkit-line-clamp: 4;
    }
    .actualites-wrapper .a11y-slider-dots {
        right: 20px;
        bottom: 15px;
    }
}

/* Respect des préférences de mouvement */
@media (prefers-reduced-motion: reduce) {
    .actus-container {
        scroll-behavior: auto;
    }
    .dot::before,
    .btn-lire {
        transition: none;
    }
}