/*
========================================
    ACTIONS.CSS
    Styles spécifiques à la page Actions & Réalisations
    (Doit être inclus après global.css)
========================================
*/

/* --- 2. Mise en page des détails des actions --- */

.actions-details-section {
    padding: 60px 0;
    background-color: #f7f7f7; /* Fond légèrement gris pour détacher les blocs */
}

.action-item-detail {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.action-item-detail:nth-child(even) {
    background-color: var(--couleur-principale-claire); /* Alterner la couleur de fond */
}

/* Inversion de l'ordre pour les sections impaires */
.action-item-detail.reverse {
    flex-direction: row-reverse;
}

.media-content {
    flex: 1 1 45%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.media-content img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}
.action-item-detail:hover .media-content img {
    transform: scale(1.02);
}

.action-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--couleur-secondaire);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.text-content {
    flex: 1 1 50%;
}

.text-content h2 {
    text-align: left;
    color: var(--couleur-principale);
    font-size: 2em;
    margin-top: 0;
}
.action-item-detail:nth-child(even) .text-content h2 {
    color: var(--couleur-tertiaire);
}

.text-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Liste à puces des actions (pour l'Action 2) */
.text-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}
.text-content ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--couleur-tertiaire);
}
.text-content ul li i {
    margin-right: 10px;
    color: var(--couleur-secondaire); /* Coche rouge */
}


/* --- 3. Responsivité --- */

@media (max-width: 992px) {
    .action-item-detail {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
        padding: 20px;
    }
    .action-item-detail.reverse {
        flex-direction: column; /* Annule l'inversion sur petit écran */
    }
    .media-content, .text-content {
        flex: 1 1 100%;
        width: 100%;
    }
    .text-content h2 {
        text-align: center;
    }
    .action-tag {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    /* Centre les boutons et liens sous le texte */
    .text-content > a, .text-content > .link-more {
        display: block;
        text-align: center;
        margin: 20px auto 0 auto;
    }
}