/* ========================================
   SECTION ACTUALITÉS
   ======================================== */

.body-page-1 .block {
}

.actualites-contain {
    position: relative;
    width: 100%;
    /* max-width: 1400px;
    margin: 0 auto;
    padding: 0 2em; */
}

.actualites {
    position: relative;
    width: 100%;
}


/* ========================================
   ARTICLE
   ======================================== */

.actualites article {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5em;
    width: 100%;
    align-items: center;
}

/* ========================================
   IMAGE
   ======================================== */

.actualites .cell.photo {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-position: center center;
    background-size: cover;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.actualites .cell.photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(var(--color4_rgb), 0.3) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.actualites .cell.photo:hover::before {
    opacity: 1;
}

.actualites .cell.photo:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 8px 25px rgba(var(--color4_rgb), 0.15);
}

.actualites .cell.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -o-object-fit: cover;
}

.actualites .cell.photo a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 10;
}

.actualites .date-article,
.date-article {
    position: absolute;
    top: 1px;
    left: 1px;
    display: inline-block;
    padding: 0.8em 1.2em;
    font-family: var(--font_family_2);
    background: var(--color0);
    border-radius: 0 0 var(--border-radius) 0;
    box-shadow: 0 4px 12px rgba(var(--color4_rgb), 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.actualites .cell.photo a:hover .date-article {
    background: var(--color1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--color1_rgb), 0.25);
}

.date-article span {
    display: block;
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.date-article .time_day {
    font-size: calc(var(--taille_font) * 2);
    color: var(--color4);
    font-weight: 700;
    margin-bottom: 0.1em;
}

.date-article .time_month {
    font-size: calc(var(--taille_font) * 1.2);
    color: var(--color4);
    text-transform: capitalize;
    font-weight: 500;
}

.date-article .time_year {
    font-size: calc(var(--taille_font) * 1);
    color: var(--color4);
    opacity: 0.7;
    margin-top: 0.1em;
}

.actualites .cell.photo a:hover .time_day,
.actualites .cell.photo a:hover .time_month,
.actualites .cell.photo a:hover .time_year {
    color: var(--color0);
}

/* ========================================
   CONTENU TEXTE
   ======================================== */

.actualites .cell.texte {
    width: 100%;
    position: relative;
}

.actualites .cell.texte .contenu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
    padding: 2em;
    text-align: left;
    background: transparent;
    border: 1px solid rgba(var(--color4_rgb), 0.08);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    /* Fix flou */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* Barre latérale accent */
.actualites .cell.texte .contenu::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--color1), var(--color2));
    transition: height 0.4s ease;
}

.actualites .cell.texte .contenu:hover::before {
    height: 100%;
}

.actualites .cell.texte .contenu:hover {
    border-color: rgba(var(--color1_rgb), 0.15);
    box-shadow: 0 8px 24px rgba(var(--color4_rgb), 0.1);
    transform: translate3d(0, -3px, 0);
}

.actualites .cell.texte .contenu .titre-secondaire {
    color: var(--color1);
    font-family: var(--font_family_2);
    font-size: calc(var(--taille_font) * 1.8);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    padding: 0 0 0.8em 0.5em;
    border-bottom: 2px solid rgba(var(--color2_rgb), 0.3);
    transition: color 0.3s ease;
}

.actualites .cell.texte .contenu:hover .titre-secondaire {
    color: var(--color2);
}

.actualites .cell.texte .contenu .titre-secondaire a {
    text-decoration: none;
    color: inherit;
}

.actualites .cell.texte .contenu .content {
    color: var(--color4);
    font-family: var(--font_family_3);
    font-size: calc(var(--taille_font) * 1.05);
    line-height: 1.7;
    opacity: 0.85;
    padding-left: 0.5em;
    margin: 0;
}

/* .actualites .bouton-principal:nth-child(2) {
    background: var(--color0);
    color: var(--color1);
    border-color: var(--color1);
}

.actualites .bouton-principal:nth-child(2):hover {
    color: var(--color0);
}
.actualites .hvr-shutter-out-horizontal:nth-child(2):before {
    background-color: var(--color1);
} */

/* ========================================
   LISTE D'ARTICLES (si plusieurs)
   ======================================== */

.actualites ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.actualites ul li {
    padding: 0.5em 0 0.5em 2em;
    background: url(../images/ico-puce.svg) no-repeat 0 0.9em;
    background-size: 0.7em auto;
    color: var(--color4);
    line-height: 1.6;
}

/* ========================================
   DATE SANS IMAGE
   ======================================== */

.actualites .cell.texte .contenu .date-noimg {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 1em;
    border-bottom: 1px solid rgba(var(--color4_rgb), 0.1);
}

.actualites .cell.texte .contenu .date-noimg .date_post {
    font-size: calc(var(--taille_font) * 0.9);
    color: var(--color4);
    font-family: var(--font_family_3);
    padding: 0.5em 1em;
    background: rgba(var(--color2_rgb), 0.1);
    border-radius: 0 0 var(--border-radius) 0;
    opacity: 0.95;
}

/* ========================================
   RESPONSIVE - TABLETTES
   ======================================== */

@media (max-width: 1024px) {
    .actualites article {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .actualites .cell.photo {
        min-height: 350px;
    }

    .actualites .cell.texte .contenu .titre-secondaire {
        font-size: calc(var(--taille_font) * 1.6);
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .body-page-1 .block {
        padding: 3em 0;
    }

    .actualites-contain {
        padding: 0 1em;
    }

    .actualites h2.h1 {
        font-size: calc(var(--taille_font) * 2);
        margin-bottom: 1.5em;
    }

    .actualites article {
        gap: 1.5em;
    }

    .actualites .cell.photo {
        min-height: 280px;
    }

    .actualites .cell.photo a {
        left: 1em;
        top: 1em;
    }

    .actualites .date-article {
        padding: 0.6em 1em;
    }

    .date-article .time_day {
        font-size: calc(var(--taille_font) * 1.7);
    }

    .date-article .time_month {
        font-size: calc(var(--taille_font) * 1.1);
    }

    .actualites .cell.texte .contenu {
        padding: 1.5em;
        gap: 0.8em;
    }

    .actualites .cell.texte .contenu .titre-secondaire {
        font-size: calc(var(--taille_font) * 1.5);
        padding-left: 0.3em;
    }

    .actualites .cell.texte .contenu .content {
        font-size: var(--taille_font);
        padding-left: 0.3em;
    }

    .actualites .cell.texte .contenu .text-left {
        flex-direction: column;
        padding-left: 0.3em;
    }

    .actualites .bouton-principal {
        width: 100%;
        padding: 0.8em 1.5em;
        font-size: var(--taille_font);
    }
}

@media (max-width: 480px) {
    .actualites .cell.photo {
        min-height: 240px;
    }

    .actualites h2.h1 {
        font-size: calc(var(--taille_font) * 1.8);
    }

    .actualites .cell.texte .contenu .titre-secondaire {
        font-size: calc(var(--taille_font) * 1.3);
    }
}



/* ========================================
   CONTENEUR DÉTAIL ACTUALITÉ
   ======================================== */

.detail-actu {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3em;
    margin-bottom: 3em;
}

/* ========================================
   IMAGE ET DATE
   ======================================== */

.detail_actu-img {
    position: relative;
}

.detail_actu-img .propor {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(var(--color4_rgb), 0.12);
}

.detail_actu-img .propor-cont {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.detail_actu-img .imagecont {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.detail_actu-img .imagecont img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.detail_actu-img .imagecont:hover img {
    transform: scale(1.05);
}

.detail_actu-img .masque {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail_actu-img .imagecont:hover .masque {
    opacity: 1;
}

/* Date Article */
.date-article {
    position: absolute;
    top: 1px;
    left: 1px;
    background: var(--color0);
    color: var(--color0);
    padding: 1em;
    border-radius: 0 0 var(--border-radius) 0;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(var(--color1_rgb), 0.3);
    z-index: 10;
}

.date-article time {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.time_day {
    font-size: calc(var(--taille_font) * 2.2);
    font-weight: 700;
    line-height: 1;
    font-family: var(--font_family_2);
}

.time_month {
    font-size: calc(var(--taille_font) * 0.95);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time_year {
    font-size: calc(var(--taille_font) * 0.85);
    opacity: 0.8;
}

/* ========================================
   CONTENU TEXTE
   ======================================== */

.detail_actu-txt {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.contenu-article {
    padding: 0 0 1em;
    font-family: var(--font_family_3);
    font-size: calc(var(--taille_font) * 1.05);
    line-height: 1.8;
    color: var(--color4);
}

.contenu-article p {
    margin-bottom: 1.5em;
}

.contenu-article strong {
    color: var(--color2);
    font-weight: 600;
}

.contenu-article br {
    margin-bottom: 1em;
}

/* ========================================
   PARTAGE SOCIAL
   ======================================== */

.div-rs {
    display: flex;
    align-items: center;
    gap: 1.5em;
    padding: 1.5em;
    background: rgba(var(--color1_rgb), 0.05);
    border-left: 3px solid var(--color1);
    border-radius: var(--border-radius);
}

.div-rs b {
    color: var(--color2);
    font-family: var(--font_family_2);
    font-size: calc(var(--taille_font) * 1.1);
    font-weight: 600;
}

/* ========================================
   NAVIGATION AVANT/APRÈS
   ======================================== */

.news_avant_apres {
    margin: 3em 0 2em;
    padding-top: 2em;
    border-top: 1px solid rgba(var(--color4_rgb), 0.1);
}

/* ========================================
   BOUTON RETOUR
   ======================================== */

.retour-news {
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    padding: 1em 2.5em;
    font-size: calc(var(--taille_font) * 1);
    font-family: var(--font_family_2);
    text-decoration: none;
    margin-top: 2em;
}

.retour-news .glyphicon {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.retour-news:hover .glyphicon {
    transform: translateX(-5px);
}

/* ========================================
   RESPONSIVE - TABLETTES
   ======================================== */

@media (max-width: 1024px) {
    .detail-actu {
        grid-template-columns: 1fr;
        gap: 2em;
    }
    
    .news .h1 {
        font-size: calc(var(--taille_font) * 2.2);
    }
    
    .news .h1 .titre-secondaire {
        font-size: calc(var(--taille_font) * 1.3);
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .corps {
        padding: 3em 0;
    }
    
    .news {
        padding: 0 1em;
    }
    
    .news .h1 {
        font-size: calc(var(--taille_font) * 1.8);
        margin-bottom: 1.5em;
    }
    
    .news .h1 .titre-secondaire {
        font-size: calc(var(--taille_font) * 1.2);
        margin-top: 0.4em;
    }
    
    .detail-actu {
        gap: 1.5em;
    }
    
    .date-article {
        top: 1em;
        left: 1em;
        padding: 0.8em;
        min-width: 70px;
    }
    
    .time_day {
        font-size: calc(var(--taille_font) * 2);
    }
    
    .time_month {
        font-size: calc(var(--taille_font) * 0.85);
    }
    
    .contenu-article {
        font-size: var(--taille_font);
    }
    
    .div-rs {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
        padding: 1.2em;
    }
    
    .btn-partage {
        width: 100%;
        justify-content: flex-start;
    }
    
    .retour-news {
        padding: 0.9em 2em;
        font-size: calc(var(--taille_font) * 0.95);
    }
}

@media (max-width: 480px) {
    .news .h1 {
        font-size: calc(var(--taille_font) * 1.6);
    }
    
    .news .h1 .titre-secondaire {
        font-size: calc(var(--taille_font) * 1.1);
    }
    
    .date-article {
        padding: 0.6em;
        min-width: 60px;
    }
    
    .time_day {
        font-size: calc(var(--taille_font) * 1.8);
    }
    
    .btnp {
        width: 2.2em;
        height: 2.2em;
    }
}
