/* Styles pour le modal d'image */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2vw;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
    color: #ccc;
    transform: scale(1.1);
}

#modalImage {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* Section principale */
.actions-section {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    position: relative;
    overflow: hidden;
}

.actions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.container {
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
}

/* En-tête de section
.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    position: relative;
    z-index: 2;
} */

/* .section-header .subtitle {
    color: #6eb1ff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    margin-bottom: 0.9375rem;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #20212B;
    margin-bottom: 1.25rem;
}

.section-header .description {
    color: #6c757d;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    max-width: min(600px, 90%);
    margin: 0 auto;
} */

/* Actions container */
.actions-container {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 3rem);
}

/* Action item */
.action-item {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.action-item:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.12);
}

.action-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: clamp(20rem, 50vw, 30rem);
}

/* Zone d'images */
.action-media {
    position: relative;
    padding: clamp(1rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
}

.media-carousel {
    position: relative;
    flex: 1;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #f8f9fa;
    min-height: clamp(15rem, 40vw, 25rem);
}

.media-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.media-item.active {
    opacity: 1;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-item:hover img {
    transform: scale(1.05);
}

.media-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 0.9375rem;
    border-radius: 1.25rem;
    font-size: clamp(0.7rem, 1.5vw, 0.75rem);
    font-weight: 600;
}

/* Navigation des médias */
.media-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
}

.nav-btn {
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    width: clamp(2rem, 5vw, 2.5rem);
    height: clamp(2rem, 5vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.nav-btn:hover {
    background: #6eb1ff;
    color: white;
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.media-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #6eb1ff;
    transform: scale(1.3);
}

/* Zone de texte */
.action-text {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.action-header h3 {
    color: #20212B;
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.action-meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.5rem, 2vw, 1.25rem);
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #f8f9fa;
}

.meta-item {
    color: #6c757d;
    font-size: clamp(0.8rem, 2vw, 0.875rem);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: #6eb1ff;
    width: 1rem;
}

.action-description {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.action-highlights {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    padding: 1.25rem;
    border-radius: 0.9375rem;
    border-left: 0.25rem solid #6eb1ff;
}

.action-highlights h4 {
    color: #20212B;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li {
    color: #495057;
    padding: 0.3125rem 0;
    position: relative;
    padding-left: 1.25rem;
    font-size: clamp(0.8rem, 2vw, 0.875rem);
}

.highlights-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Modal pour agrandissement d'image */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: clamp(1rem, 3vw, 1.5rem);
    width: 95%;
    height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.625rem;
    box-shadow: 0 1rem 3rem rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1366px) {
    .action-content {
        grid-template-columns: 1fr 1fr;
        min-height: clamp(18rem, 45vw, 25rem);
    }

    .media-carousel {
        min-height: clamp(12rem, 35vw, 20rem);
    }

    .modal {
        padding: 1.5vw;
    }

    #modalImage {
        max-width: 92%;
        max-height: 92%;
    }
}

@media (max-width: 1024px) {
    .action-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .action-media {
        order: 1;
        padding: clamp(0.8rem, 2.5vw, 1.5rem);
    }

    .action-text {
        order: 2;
        padding: clamp(1rem, 3vw, 2rem);
    }

    .media-carousel {
        min-height: clamp(12rem, 30vw, 18rem);
    }
}

@media (max-width: 768px) {
    .actions-section {
        padding: clamp(2rem, 6vw, 3rem) 0;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .action-header h3 {
        font-size: clamp(1.1rem, 3vw, 1.5rem);
    }

    .action-meta {
        flex-direction: column;
        gap: 0.625rem;
    }

    .actions-container {
        gap: clamp(1.5rem, 4vw, 2.5rem);
    }

    .modal {
        padding: 1vw;
    }

    .modal-close {
        top: 0.8rem;
        right: 1.2rem;
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    }

    #modalImage {
        max-width: 98%;
        max-height: 90%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 clamp(0.8rem, 2vw, 1rem);
    }

    .action-media {
        padding: clamp(0.6rem, 2vw, 1rem);
    }

    .action-text {
        padding: clamp(0.8rem, 2.5vw, 1.5rem);
    }

    .media-carousel {
        min-height: clamp(10rem, 25vw, 15rem);
    }

    .modal-close {
        top: 0.6rem;
        right: 0.8rem;
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .modal-content {
        padding: 0.8rem;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .action-content {
        min-height: 35rem;
    }

    .media-carousel {
        min-height: 30rem;
    }

    .modal {
        padding: 3vw;
    }

    #modalImage {
        max-width: 90%;
        max-height: 90%;
    }
}