/* ==========================================================
   B612 — ACTUALITÉS ET ALERTES (10 nov. 2026)
   1. Bandeau d'alerte (toutes les pages)
   2. Zone « À la une » de l'accueil (galet), à droite des Nouveautés
   3. Page /actualites/ (liste)
   4. Page d'un article
   Module : inc/actualites.php. Couleurs de la charte ; contrastes ≥ 4,5:1.
========================================================== */


/* ==========================================================
   1. BANDEAU D'ALERTE
========================================================== */

.b612-alerte {
    --b612-focus-color: #ffd500;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 9px 56px 9px 20px;

    background: #28367f;
    color: #ffffff;

    font-family: var(--b612-next-font-body, "Filson Pro", sans-serif);
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
}

.b612-alerte[hidden] {
    display: none;
}

.b612-alerte__point {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffd618;
    box-shadow: 0 0 0 4px rgba(255, 214, 24, .25);
}

.b612-alerte__texte {
    margin: 0;
}

.b612-alerte__texte a {
    margin-left: 6px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.b612-alerte__fermer {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);

    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .b612-alerte__fermer:hover {
        background: rgba(255, 255, 255, .14);
    }
}

@media (max-width: 767px) {
    .b612-alerte {
        justify-content: flex-start;
        padding: 10px 50px 10px 16px;
        font-size: 14px;
        text-align: left;
    }

    .b612-alerte__point {
        align-self: flex-start;
        margin-top: 5px;
    }
}


/* ==========================================================
   2. ZONE « À LA UNE » (accueil)
========================================================== */

/* Mise en page : Nouveautés à gauche, « À la une » à droite */
.b612-news--une .b612-news__layout {
    width: calc(100% - (var(--b612-container-gutter, 40px) * 2));
    max-width: var(--b612-container-width, 1280px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 64px;
    align-items: center;
}

.b612-news--une .b612-news__editorial {
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
    align-items: flex-start;
    text-align: left;
}

/* Titre un peu réduit à côté du galet (ordinateur seulement :
   sous 900 px, la taille mobile habituelle s'applique) */
@media (min-width: 901px) {
    .b612-news--une .b612-news__editorial .b612-carousel-title {
        font-size: clamp(36px, 3.4vw, 46px);
    }
}

/* Le galet : coins arrondis de tailles fixes (px), tous différents,
   pour que la forme garde ses courbes quelle que soit la largeur */
.b612-une {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    padding: 46px 40px 44px;
    color: #25283a;
    font-family: var(--b612-next-font-body, "Filson Pro", sans-serif);
}

.b612-une::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: #fdf0b6;              /* jaune de la charte à 25 % sur le crème */
    border-radius: 150px 210px 170px 230px / 130px 170px 210px 150px;
    pointer-events: none;
}

.b612-une__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #625c58;
}

.b612-une__titre {
    margin: 0;
    font-family: var(--b612-next-font-heading, "Formiga", serif);
    font-weight: 900;
    font-size: 32px;
    line-height: 1.02;
    color: #17182d;
}

.b612-une__liste {
    display: grid;
    gap: 20px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.b612-une__date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #625c58;
}

/* Petit point jaune devant la date (forme ronde de la charte) */
.b612-une__date::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e8b800;
}

.b612-une__item-titre {
    margin: 6px 0 3px;
    font-family: var(--b612-next-font-heading, "Formiga", serif);
    font-weight: 900;
    font-size: 18.5px;
    line-height: 1.15;
}

/* Lien étendu : tout l'élément est cliquable, un seul lien par actualité */
.b612-une__item {
    position: relative;
}

.b612-une__item-titre a {
    color: #17182d;
    text-decoration: none;
}

.b612-une__item-titre a::after {
    content: "";
    position: absolute;
    inset: -6px -8px;
    border-radius: 12px;
}

@media (hover: hover) and (pointer: fine) {
    .b612-une__item-titre a:hover {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 3px;
    }
}

.b612-une__resume {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #3f4150;

    /* Deux lignes au plus : le galet garde sa silhouette */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.b612-une__tout {
    display: inline-block;
    margin-top: 24px;
    color: #17182d;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Alerte : seulement si le visiteur a fermé le bandeau (pas de doublon) */
.b612-une__alerte {
    display: none;
    gap: 10px;
    align-items: flex-start;
    margin: 18px 0 2px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px -10px rgba(23, 24, 45, .35);
}

.b612-alerte-fermee .b612-une__alerte {
    display: flex;
}

.b612-une__alerte-point {
    flex: none;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: #28367f;
    box-shadow: 0 0 0 3px #ffd618;
}

.b612-une__alerte p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.b612-une__alerte strong {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 500;                 /* plus léger que le message */
    letter-spacing: .04em;            /* lettres moins espacées : lecture plus directe */
    text-transform: uppercase;
    color: #28367f;
}

.b612-une__alerte a {
    color: #17182d;
    font-weight: 700;
    text-decoration: none;            /* plus léger ; soulignement au survol seulement */
    text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .b612-une__alerte a:hover {
        text-decoration: underline;
    }
}

/* Tablette large : colonne un peu plus étroite */
@media (max-width: 1180px) {
    .b612-news--une .b612-news__layout {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 44px;
    }

    .b612-une {
        padding: 42px 34px 40px;
    }
}

/* Sous 900 px : « À la une » au-dessus des livres, largeur limitée
   (le galet ne s'aplatit jamais), 2 actualités */
@media (max-width: 900px) {
    /* Toute la largeur : la section Nouveautés garde ses marges mobiles habituelles */
    .b612-news--une .b612-news__layout {
        width: 100%;
        max-width: none;
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .b612-une {
        order: -1;
        justify-self: center;
        width: calc(100% - 32px);
        max-width: 460px;
        padding: 38px 32px 36px;
    }

    .b612-une__item:nth-child(3) {
        display: none;
    }

    .b612-news--une .b612-news__editorial {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .b612-une {
        padding: 34px 26px 32px;
    }

    .b612-une::before {
        border-radius: 110px 150px 130px 160px / 100px 130px 150px 110px;
    }

    .b612-une__titre {
        font-size: 28px;
    }
}


/* ==========================================================
   3. PAGE /actualites/
========================================================== */

.b612-actus__liste {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.b612-actus__item {
    position: relative;
    padding: 24px 0;
    /* Filet en points japonais (charte) */
    background: radial-gradient(circle, rgba(40, 54, 127, .45) 1.05px, transparent 1.45px) 0 100% / 6px 3px repeat-x;
}

.b612-actus__date {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #625c58;
}

.b612-actus__titre {
    margin: 8px 0 6px;
    font-family: var(--b612-next-font-heading, "Formiga", serif);
    font-weight: 900;
    font-size: 24px;
    line-height: 1.15;
}

.b612-actus__titre a {
    color: #17182d;
    text-decoration: none;
}

.b612-actus__item .b612-actus__titre a::after {
    content: "";
    position: absolute;
    inset: 0;
}

@media (hover: hover) and (pointer: fine) {
    .b612-actus__titre a:hover {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
    }
}

.b612-actus__resume {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #3f4150;
}

/* Alerte en cours, en tête de liste */
.b612-actus__alerte {
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: 18px;
    background: #28367f;
    color: #ffffff;
    --b612-focus-color: #ffd500;
}

.b612-actus__alerte .b612-actus__titre a,
.b612-actus__alerte .b612-actus__resume {
    color: #ffffff;
}

.b612-actus__alerte-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.b612-actus__alerte-label span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffd618;
}

.b612-actus__pages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    font-size: 15px;
}

.b612-actus__pages a {
    color: #17182d;
    font-weight: 700;
    text-underline-offset: 4px;
}


/* ==========================================================
   4. PAGE D'UN ARTICLE
========================================================== */

.b612-actu__image {
    margin: 0 0 28px;
}

.b612-actu__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.b612-actu__retour {
    margin: 40px 0 0;
}

.b612-actu__retour a {
    color: #17182d;
    font-weight: 700;
    text-underline-offset: 4px;
}
