/* Section des missions */
.section-missions {
    padding: 50px 0 0;
    background-color: #f5f5f5;
}

/* Titre de la section des missions */
.section-title-missions {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 600;
}

/* Container des cartes de missions */
.container-missions {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
}

/* Carte de mission */
.mission-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* En-tête de la mission */
.mission-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    position: relative;
}

.mission-header::after {
    content: '▼';
    position: absolute;
    right: 20px;
    color: #666;
    transition: transform 0.3s ease;
}

.mission-card.active .mission-header::after {
    transform: rotate(180deg);
}

/* Image de la mission */
.mission-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: white;
    padding: 5px;
}

/* Texte de la mission */
.mission-text {
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
}

/* Contenu de la mission */
.mission-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: white;
}

.mission-card.active .mission-content {
    max-height: 2000px;
}

/* Description de la mission */
.mission-description {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mission-description p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.mission-description ul {
    list-style-type: none;
    padding: 0;
}

.mission-description li {
    color: #666;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.mission-description li::before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

/* Détails de la mission */
.mission-details {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Élément de la galerie */
.gallery-item {
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 10px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

/* Légende de l'image */
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px;
    font-size: 0.9em;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .image-caption {
    transform: translateY(0);
}

/* MEDIA QUERIES POUR LES ÉCRANS PLUS PETITS */

/* Pour les tablettes (max-width: 768px) */
@media (max-width: 768px) {
    .mission-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .mission-text {
        font-size: 1.1em;
    }

    .mission-details {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }
}

/* Pour les smartphones (max-width: 480px) */
@media (max-width: 480px) {
    .section-title-missions {
        font-size: 1.8rem;
    }

    .mission-image {
        width: 60px;
        height: 60px;
    }
}