/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #F4F4F4;
    color: #000;
    line-height: 1.6;
}

/* Header / Navbar */
header {
    background-color: #257579;
    padding: 20px;
    position: relative;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    width: 100px;
    height: 47px;
}

.logo img {
    width: 100%;
    height: auto;
}

.menu-icon {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.menu-icon span {
    width: 100%;
    height: 2px;
    background-color: #F4F4F4;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-icon:hover span {
    background-color: #A0C4C2;
}

/* ===== MENU BURGER ===== */
/* Overlay avec blur (bande verticale à droite) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Burger principal */
.menu-burger {
    position: fixed;
    top: 0;
    left: -334px;
    width: 334px;
    height: 100vh;
    background-color: #257579;
    box-shadow: 34px 0px 60px rgba(0, 0, 0, 0.08);
    border-radius: 0 10px 10px 0;
    padding: 30px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
}

.menu-burger.active {
    left: 0;
}

/* Bouton fermer (X) */
.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: -10px;
    margin-bottom: 60px;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.1);
}

.close-btn svg {
    display: block;
}

/* Navigation du menu */
.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 100px;
}

.menu-link {
    color: #F4F4F4;
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.menu-link:hover {
    color: #A0C4C2;
    transform: translateX(5px);
}

.menu-link.active {
    color: #A0C4C2;
}

/* Services avec chevron */
.menu-link-services {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-link-services .menu-link {
    margin: 0;
}

.menu-link-services svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.menu-link-services:hover svg {
    transform: translateX(3px);
}

/* Bloquer le scroll quand menu ouvert */
body.menu-open {
    overflow: hidden;
}

/* Section titre avec fond coloré */
.page-title-section {
    background-color: #2E7579;
    padding: 30px 20px 25px;
    text-align: center;
}

.page-title-section h1 {
    color: #F4F4F4;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.title-divider {
    width: 177px;
    height: 1px;
    background-color: #A0C4C2;
    margin: 0 auto 15px;
}

.page-title-section p {
    color: #F4F4F4;
    font-size: 12px;
    font-weight: 400;
    max-width: 300px;
    margin: 0 auto;
    padding: 0;
}

/* Contenu principal */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 60px;
}

/* Container pour le formulaire */
.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* Formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Groupes de champs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: #8D8D8D;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #8D8D8D;
    border-radius: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background-color: transparent;
    color: #8D8D8D;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #257579;
    color: #000;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8D8D8D;
    font-weight: 500;
}

/* Section QCM */
.qcm-section {
    margin: 20px 0;
}

.qcm-section h3 {
    color: #000;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkbox-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #E0E0E0;
    border-radius: 50%;
    background-color: #E0E0E0;
    position: relative;
    transition: all 0.3s;
}

.checkbox-item input[type="checkbox"]:checked {
    background-color: #000;
    border-color: #000;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-item label {
    color: #000;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    cursor: pointer;
}

/* Zone de message */
.form-group textarea {
    min-height: 80px;
    resize: vertical;
    padding-top: 8px;
}

/* Captcha */
.captcha {
    background-color: #FAFAFA;
    border: 1px solid #D6D6D6;
    border-radius: 3px;
    padding: 10px 12px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 280px;
    margin: 20px 0;
    height: 70px;
}

.captcha-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.captcha-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #C1C1C1;
    border-radius: 3px;
    background-color: #FFF;
    cursor: pointer;
    flex-shrink: 0;
}

.captcha-text {
    color: #000;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

.captcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-left: 10px;
}

.captcha-logo-image {
    width: 32px;
    height: 32px;
}

.captcha-logo-text {
    color: #555;
    font-size: 7px;
    font-weight: 400;
    white-space: nowrap;
}

/* Bouton d'envoi */
.submit-button {
    background-color: #A0C4C2;
    color: #FFF;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    padding: 20px 40px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    max-width: 500px;
    width: 100%;
    margin: 20px auto;
    display: block;
}

.submit-button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* ===========================
   FOOTER
   =========================== */
.main-footer {
    background-color: #257579;
    color: #FFFFFF;
    padding: 20px 22px 30px;
    text-align: center;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 60px;
    max-width: 348px;
    margin-left: auto;
    margin-right: auto;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2.52px;
    text-transform: uppercase;
    padding: 16px 0;
    transition: opacity 0.3s ease;
    text-align: left;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 150px;
    margin-bottom: 24px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.footer-contact-item:hover {
    opacity: 0.8;
}

.footer-contact-item svg {
    fill: #F4F4F4;
}

.footer-copyright {
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: 400;
    opacity: 1;
    color: #FFFFFF;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title-section h1 {
        font-size: 26px;
    }

    main {
        padding: 25px 30px;
    }

    .checkbox-row {
        flex-direction: column;
        gap: 15px;
    }

    .submit-button {
        max-width: 100%;
    }

    .footer-links a {
        font-size: 16px;
        letter-spacing: 2px;
    }
}

/* Mise en page mobile-first (comme dans Figma - 394px) */
@media (max-width: 400px) {
    body {
        max-width: 394px;
        margin: 0 auto;
    }

    .page-title-section h1 {
        font-size: 24px;
    }

    main {
        padding: 15px 20px;
    }

    .captcha {
        max-width: 100%;
    }
}

/* ===========================
   MENU DÉROULANT SERVICES
   =========================== */
   .services-dropdown {
    display: flex;
    flex-direction: column;
}

.menu-link-services span {
    color: #F4F4F4;
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
}

.services-submenu {
    max-height: 0;
    overflow: hidden;
    padding-left: 30px;
    transition: max-height 0.3s ease;
}

.services-submenu.open {
    max-height: 300px;
    margin-top: 20px;
}

.submenu-link {
    display: block;
    color: #A0C4C2;
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-decoration: none;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.submenu-link:hover {
    color: #F4F4F4;
    transform: translateX(5px);
}

#servicesChevron {
    transition: transform 0.3s ease;
}

#servicesChevron.rotate {
    transform: rotate(90deg);
}