/* 
   Bloc Nos Actions - Styles
    */

.nos-actions-block {
    position: relative;
    width: 100%;
    padding: 20px 20px 40px 20px;
    background-color: var(--nos-actions-bg, #f8f8f8);
    overflow: hidden;
}

/* 
   Image de fond décorative
    */

.nos-actions-bg-image {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 400px;
    height: 400px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.nos-actions-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
}



.nos-actions-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}


.nos-actions-header {
    margin-bottom: 2rem;
}

.nos-actions-titre {
    font-family: 'Degular Text', sans-serif;
    font-size: 48px;
    line-height: 64px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nos-actions-titre::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #000000;
    opacity: 1;
}

.nos-actions-sous-titre {
    font-family: 'Degular Text', sans-serif;
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    margin-top: 0.5rem;
    margin-bottom: 0;
}



.nos-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}



.action-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}


.action-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.action-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(100%);
}

.action-card:hover .action-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}


.action-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background 0.3s ease;
}

.action-card:hover .action-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.action-titre {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    text-transform: none;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.action-card:hover .action-titre {
    transform: scale(1.05);
}

/* ============================================
   Message si aucune action
   ============================================ */

.no-actions {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}



@media (max-width: 992px) {
    .nos-actions-titre {
        font-size: 36px;
        line-height: 48px;
    }
}

@media (max-width: 768px) {
    .nos-actions-block {
        padding: 40px 15px;
    }

    .nos-actions-bg-image {
        width: 250px;
        height: 250px;
        top: -15px;
        left: -15px;
        opacity: 0.05;
    }

    .nos-actions-titre {
        font-size: 28px;
        line-height: 36px;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nos-actions-titre::after {
        width: 100%;
    }

    .nos-actions-sous-titre {
        font-size: 1rem;
    }

    /* Passage à 2 colonnes sur tablette/mobile */
    .nos-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .action-titre {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .nos-actions-titre {
        font-size: 24px;
        line-height: 32px;
    }
}

@media (max-width: 480px) {
    .nos-actions-grid {
        grid-template-columns: repeat(2, 1fr); /* toujours 2 colonnes */
        gap: 10px;
    }

    .nos-actions-bg-image {
        width: 180px;
        height: 180px;
        top: -10px;
        left: -10px;
        opacity: 0.04;
    }

    .action-titre {
        font-size: 1.2rem; /* titre plus petit */
    }

    .action-card {
        min-height: auto; /* on laisse le ratio 1/1 gérer la hauteur */
    }
}


.nos-actions-grid.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.nos-actions-grid.grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 968px) {
    .nos-actions-grid.grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nos-actions-grid.grid-2-cols,
    .nos-actions-grid.grid-4-cols {
        grid-template-columns: 1fr; /* si on force une seule colonne, on l'applique ici */
    }
}


.nos-actions-block.bg-right .nos-actions-bg-image {
    left: auto;
    right: -20px;
}

.nos-actions-block.bg-center .nos-actions-bg-image {
    left: 50%;
    transform: translateX(-50%);
}

.nos-actions-block.bg-bottom .nos-actions-bg-image {
    top: auto;
    bottom: -20px;
}