/* -- VARIABLES & STYLES GLOBAUX -- */
:root {
    --primary-color: #0d2d5e;
    --secondary-color: #4a90e2;
    --accent-color: #28a745;
    --dark-grey: #333;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --font-title: 'Lato', sans-serif;
    --font-text: 'Roboto', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-text); line-height: 1.6; color: var(--dark-grey); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; }
.section-padding { padding: 60px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 40px; color: var(--primary-color); }
.bg-light { background-color: var(--light-grey); }
.bg-dark { background-color: var(--primary-color); }
.text-white { color: var(--white); }

/* HEADER & NAVIGATION */
.main-header { background: var(--white); box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo img { height: 150px; width: auto; vertical-align: middle; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 25px; }
.nav-links a { text-decoration: none; color: var(--dark-grey); font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--secondary-color); }
.hamburger { display: none; }

/* HERO */
.hero { background: linear-gradient(rgba(13, 45, 94, 0.8), rgba(13, 45, 94, 0.8)), url(https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fGNvbnNlaWwlMjBlbiUyMGluZm9ybWF0aXF1ZXxlbnwwfHwwfHx8MA%3D%3D) no-repeat center center/cover; color: var(--white); height: 60vh; display: flex; align-items: center; text-align: center; }
.hero h1 { font-size: 3rem; }
.hero .subtitle { font-size: 1.2rem; max-width: 700px; margin: 20px auto; }

/* BOUTONS */
.btn { display: inline-block; padding: 12px 25px; text-decoration: none; border-radius: 5px; font-weight: 700; transition: all 0.3s ease; }
.btn-primary { background: var(--secondary-color); color: var(--white); border: 2px solid var(--secondary-color); }
.btn-primary:hover { background: transparent; color: var(--secondary-color); }
.btn-secondary { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); margin-top: 15px; font-weight: 500; padding: 8px 20px; }
.btn-secondary:hover { background: var(--primary-color); color: var(--white); }

/* CARTES & GRILLES */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 30px; border-radius: 5px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: center;}
.card h3 { color: var(--primary-color); margin-bottom: 15px; }

/* CARTES CLICABLES & POP-UPS */
.card-clickable { cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-clickable:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.card-more { display: block; margin-top: 1rem; color: var(--secondary-color); font-weight: 700; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(13, 45, 94, 0.85); z-index: 2000; display: flex; justify-content: center; align-items: center; padding: 20px; }
.modal-content { background-color: var(--white); padding: 2.5rem; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); width: 100%; max-width: 700px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2.5rem; color: #aaa; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--dark-grey); }
.modal-body h2 { color: var(--primary-color); margin-bottom: 0.5rem; }
.modal-body h3 { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--dark-grey); font-weight: 500; }
.modal-body h4 { color: var(--primary-color); margin-top: 2rem; margin-bottom: 1rem; }
.modal-body p { margin-bottom: 1rem; }
.modal-list { list-style: none; padding-left: 0; }
.modal-list li { padding-left: 1.5em; position: relative; margin-bottom: 1rem; }
.modal-list li::before { content: '✔'; color: var(--accent-color); position: absolute; left: 0; top: 2px; }
.modal-contact-btn { display: block; width: fit-content; margin: 2rem auto 0 auto; }

/* CARROUSEL */
.mySwiper { max-width: 800px; width: 100%; padding-top: 20px; padding-bottom: 50px; }
.swiper-slide { background-position: center; background-size: cover; width: 600px; height: auto; }
.swiper-slide .mission-card { display: block; width: 100%; min-height: 440px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); padding: 2rem; text-align: left; }
.swiper-button-next, .swiper-button-prev { color: var(--primary-color) !important; opacity: 0; transition: opacity 0.3s ease; }
.mySwiper:hover .swiper-button-next, .mySwiper:hover .swiper-button-prev { opacity: 1; }
.swiper-button-prev { left: var(--swiper-navigation-sides-offset, -10px); }
.swiper-button-next { right: var(--swiper-navigation-sides-offset, -10px); }
.swiper-pagination-bullet-active { background: var(--primary-color) !important; }

/* FICHES MISSION & TÂCHES */
.mission-details h3, .mission-details h4 { margin-top: 1rem; }
.mission-tasks { list-style: none; padding-left: 0; margin-top: 10px; }
.mission-tasks li { padding-left: 1.5em; position: relative; margin-bottom: 8px; }
.mission-tasks li::before { content: '✔'; color: var(--accent-color); font-weight: bold; position: absolute; left: 0; top: 0; }
.mission-result { margin-top: auto; padding-top: 20px; }

/* CONTACT */
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; }
.contact-form input, .contact-form textarea { margin-bottom: 15px; padding: 15px; border: 1px solid #ddd; border-radius: 5px; font-family: var(--font-text); }

/* ACCORDÉON (pour pages légales) */
.accordion { width: 100%; max-width: 800px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid #ddd; }
.accordion-header { width: 100%; background-color: transparent; border: none; padding: 1.5rem 1rem; font-size: 1.25rem; color: var(--primary-color); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s ease; }
.accordion-header:hover { background-color: #f4f4f4; }
.accordion-icon { font-size: 2rem; font-weight: 300; transition: transform 0.3s ease; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease; padding: 0 1rem; }
.accordion-item.active .accordion-header { font-weight: 700; }
.accordion-item.active .accordion-content { max-height: 1000px; padding: 1rem 1rem 2rem 1rem; transition: max-height 0.5s ease-in, padding 0.5s ease; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }

/* FOOTER */
.main-footer { background: var(--dark-grey); color: #ccc; padding: 40px 0 20px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.main-footer h4 { color: var(--white); margin-bottom: 15px; }
.main-footer ul { list-style: none; }
.main-footer a { color: #ccc; text-decoration: none; }
.main-footer a:hover { color: var(--secondary-color); }
.footer-bottom { text-align: center; border-top: 1px solid #444; padding-top: 20px; font-size: 0.9rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 70px; left: 0; background: var(--white); }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; text-align: center; }
    .hamburger { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; }
    .hamburger span { width: 100%; height: 3px; background: var(--dark-grey); border-radius: 5px; transition: all 0.3s ease; }
    .hero h1 { font-size: 2.2rem; }
    .swiper-button-next, .swiper-button-prev { display: none !important; }
}