/* =============== ACTUALITÉS : LISTE ET ARTICLES =============== */

/* ---------- Introduction de la page Actus ---------- */
.actus-section {
    padding: 60px 15px 70px;
    background-color: var(--light-gray);
}

.actus-container {
    max-width: 1200px;
    margin: 0 auto;
}

.actus-header {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

.actus-header h2 {
    color: var(--navy-blue);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.3;
    margin-bottom: 15px;
}

.actus-header p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ---------- Grille de cartes ---------- */
.actus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 30px;
}

.actu-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(42, 59, 85, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.actu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(42, 59, 85, 0.16);
}

.actu-card:focus-within {
    outline: 3px solid var(--navy-blue);
    outline-offset: 3px;
}

.actu-card__media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #dfe6ee;
}

.actu-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.actu-card:hover .actu-card__media img {
    transform: scale(1.05);
}

.actu-tag {
    display: inline-block;
    background-color: #2a3b55;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    border-left: 4px solid var(--red);
}

.actu-card__media .actu-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.actu-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 26px;
}

.actu-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 12px;
    color: #5b6b80;
    font-size: 0.9rem;
}

.actu-card__meta i {
    margin-right: 6px;
    color: var(--navy-blue);
}

.actu-card__title {
    margin-bottom: 12px;
    color: #2a3b55;
    font-size: 1.25rem;
    line-height: 1.35;
}

.actu-card__title a {
    color: inherit;
}

/* toute la carte est cliquable via le lien du titre */
.actu-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
}

.actu-card__title a:focus-visible {
    outline: none;
}

.actu-card__excerpt {
    flex: 1;
    margin-bottom: 18px;
    color: #444;
    line-height: 1.7;
}

.actu-card__more {
    color: #0f6f96;
    font-weight: 700;
}

.actu-card__more::after {
    content: "\2192";
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.actu-card:hover .actu-card__more::after {
    transform: translateX(6px);
}

/* Carte à la une : pleine largeur sur grand écran */
@media screen and (min-width: 900px) {
    .actu-card--featured {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .actu-card--featured .actu-card__media {
        flex: 0 0 55%;
        aspect-ratio: auto;
        min-height: 360px;
    }

    .actu-card--featured .actu-card__body {
        justify-content: center;
        padding: 40px 45px;
    }

    .actu-card--featured .actu-card__title {
        font-size: 1.7rem;
    }

    .actu-card--featured .actu-card__excerpt {
        flex: 0 1 auto;
        font-size: 1.05rem;
    }
}

/* ---------- Page d'une actu ---------- */
.actu-article-section {
    padding: 60px 15px 40px;
    background-color: var(--white);
}

.actu-article {
    max-width: 900px;
    margin: 0 auto;
}

.actu-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-bottom: 25px;
    color: #5b6b80;
}

.actu-article__meta i {
    margin-right: 6px;
    color: var(--navy-blue);
}

.actu-article__lead {
    color: #2a3b55;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 30px;
}

.actu-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    margin: 0 0 40px;
    background-color: var(--light-gray);
    border-left: 5px solid var(--red);
    border-radius: 10px;
    overflow: hidden;
}

.actu-facts div {
    padding: 18px 22px;
}

.actu-facts dt {
    margin-bottom: 4px;
    color: #5b6b80;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.actu-facts dd {
    margin: 0;
    color: #2a3b55;
    font-weight: 600;
    line-height: 1.5;
}

.actu-article h2 {
    margin: 40px 0 15px;
    color: var(--navy-blue);
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    line-height: 1.3;
}

.actu-article p {
    margin-bottom: 18px;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
}

.actu-article p a,
.actu-facts dd a {
    color: #0f6f96;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.actu-article p a:hover,
.actu-facts dd a:hover {
    color: var(--red);
}

/* Étapes numérotées */
.actu-steps {
    counter-reset: etape;
    margin: 20px 0 10px;
    padding: 0;
    list-style: none;
}

.actu-steps li {
    position: relative;
    counter-increment: etape;
    padding: 6px 0 24px 60px;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.7;
}

.actu-steps li::before {
    content: counter(etape);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2a3b55;
    color: var(--white);
    font-weight: 700;
}

.actu-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;
    bottom: 4px;
    left: 19px;
    width: 2px;
    background-color: #d5dde6;
}

/* Galerie */
.actu-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    margin: 30px 0;
}

.actu-gallery figure {
    margin: 0;
}

.actu-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
}

.actu-gallery figcaption {
    margin-top: 8px;
    color: #5b6b80;
    font-size: 0.9rem;
    text-align: center;
}

.actu-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 0;
    color: #0f6f96;
    font-weight: 700;
}

.actu-back:hover {
    color: var(--red);
}

/* Autres actus */
.actus-related {
    padding: 60px 15px 70px;
    background-color: var(--light-gray);
}

.actus-related h2 {
    margin-bottom: 35px;
    color: var(--navy-blue);
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
}

@media screen and (max-width: 768px) {
    .actus-section,
    .actu-article-section,
    .actus-related {
        padding: 40px 15px 50px;
    }

    .actu-card__body {
        padding: 18px 20px 22px;
    }

    .actu-article__lead {
        font-size: 1.1rem;
    }

    .actu-steps li {
        padding-left: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .actu-card,
    .actu-card__media img,
    .actu-card__more::after {
        transition: none;
    }

    .actu-card:hover,
    .actu-card:hover .actu-card__media img {
        transform: none;
    }
}
