/* hero section is same as other page templates, reuse existing rules from page-evenement */
.about-hero{
    position: relative;
    background: url('../images/actualite-hero.png') center/cover no-repeat;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* simple horizontal line used between headers */
.events-line{
    flex:1;
    height:1px;
    background:#ddd;
    margin-left:30px;
}

/* overlay */
.about-hero .overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-content{
    position: relative;
    z-index: 2;
    color: white;
}

.about-hero h1{
    font-size: 38px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-hero p{
    max-width: 900px;
    margin: auto;
    font-size: 18px;
    line-height: 1.6;
    text-transform: uppercase;
}

/* reuse articles styles from page-evenement */
.articles-section{
    padding:60px 0;
    background:#E6E6E6;
    margin-bottom: 40px;
}

.articles-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.articles-header h1{
    font-size:32px;
    font-weight:600;
}

.articles-search form{
    display:flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.articles-search input{
    padding:18px 20px;
    border:1px solid #ddd;
    width:900px;
}

.filter-btn{
    background:#1f8f3a;
    color:#fff;
    border:none;
    padding:18px 20px;
    cursor:pointer;
    width:90px;
}

.articles-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:40px;
}

.article-card{
    background:#fff;
    box-shadow:0 5px 12px rgba(0,0,0,0.08);
    border-radius:6px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
}

.article-image{
    position:relative;
}

.article-image img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.article-category{
    position:absolute;
    bottom:0;
    left:0;
    background:#2aa84a;
    color:#fff;
    padding:6px 14px;
    font-size:14px;
}

.article-content{
    padding:20px;
}

.article-title{
    font-size:18px;
    margin-bottom:10px;
}

.article-title a{
    text-decoration:none;
    color:#222;
}

.article-date{
    font-size:14px;
    color:#777;
    margin-bottom:10px;
}

.article-excerpt{
    font-size:14px;
    color:#444;
    margin-bottom:20px;
}

.article-btn{
    background:#e50000;
    color:#fff;
    padding:8px 15px;
    text-decoration:none;
    border-radius:3px;
    float:right;
}

.articles-pagination{
    display: flex;
    margin-top:40px;
    align-items: center;
}

.page-numbers{
    display:inline-block;
    padding:8px 12px;
    background:#ddd;
    margin:3px;
    text-decoration:none;
    color:#333;
}

.page-numbers.current{
    background:#bbb;
    color:#fff;
}

@media(max-width:900px){
    .articles-grid{
        grid-template-columns:1fr;
    }
}

/* communique section*/
/* Conteneur principal de la liste */
.communiques-list2 {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px 0;
}

/* Chaque élément */
.communique-item2 {
    display: flex;
    justify-content: space-between;  /* pousse .communique-actions2 à droite */
    align-items: center;
    background: #f9f9f9;              /* fond très clair (à ajuster) */
    border-bottom: 1px solid #ddd;
    padding: 15px 20px;
    border-radius: 4px;               /* optionnel */
}

/* Bloc icône */
.communique-icon {
    width: 40px;
    height: 40px;
    background: url('../images/communique-icon.png') center/contain no-repeat;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Bloc informations (titre + date) */
.communique-info2 {
    flex: 1;                           /* prend tout l’espace disponible */
    margin-right: 20px;                /* espace avant les actions */
}

.communique-info2 h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #333;
}

.communique-date2 {
    font-size: 13px;
    color: #777;
}

/* Bloc actions (liens) */
.communique-actions2 {
    display: flex;
    gap: 10px;                         /* espace entre les liens */
    flex-shrink: 0;                    /* empêche la réduction */
}

/* Liens d’action */
.communique-actions2 a {
    margin-left: 0;                     /* on utilise gap pour l’espacement */
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;                /* évite le retour à la ligne */
}

.btn-read2 {
    background-color: #e53935;          /* rouge */
    color: #ffffff;
}

.btn-read2:hover {
    background-color: #c62828;
}

.btn-download2 {
    background-color: #2e7d32;          /* vert */
    color: #ffffff;
}

.btn-download2:hover {
    background-color: #1f5b3a;
}

/* Responsive : sur mobile, on passe en colonne */
@media (max-width: 768px) {
    .communique-item2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .communique-actions2 {
        align-self: flex-end;           /* aligne les actions à droite */
        width: 100%;
        justify-content: flex-end;
    }

    .communique-info2 {
        margin-right: 0;
        width: 100%;
    }
}