:root {
    --primary-blue: #fcee8e; 
    --white-pure: #020bfd;
    --white-soft: #2a90f6;
    --text-dark: #2d3436;
    --divider-color: rgba(244, 244, 249, 0.672);
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    min-height: 100%; /* Permet la croissance de la page */
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-blue);
    color: var(--white-pure);
    -webkit-font-smoothing: antialiased;
}

/* Comportement Desktop : Fixe et sans scroll pour l'aspect Splash Page */
@media (min-width: 769px) {
    body, html { overflow: hidden; }
}

.main-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh; /* Couvre tout l'écran au minimum */
    padding: 35px 60px;
}

/* HEADER */
.header { 
    display: flex; 
    justify-content: flex-end; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    align-self: flex-end; 
    z-index: 100;
}

.contact-link { 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 300; 
    font-size: 0.8rem; 
    position: relative; 
    transition: 0.2s; 
}

.contact-link::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 1px; 
    bottom: -3px; 
    left: 0; 
    background: #5001fb; 
    transition: 0.3s; 
}

.icon-mail { width: 20px; height: 20px; fill: #2a90f6; transition: 0.3s; }

.header:hover .contact-link { font-weight: 600; }
.header:hover .contact-link::after { width: 100%; }
.header:hover .icon-mail { transform: translateY(-3px); }

/* LOGO ET DESCRIPTION */
.bottom-section { 
    margin-top: auto; 
    width: 100%;
}

.logo-wrapper { margin-bottom: 15px; display: inline-block; }

.client-logo {
    width: 400px; 
    height: auto;
    display: block;
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    image-rendering: -webkit-optimize-contrast;
}

.client-logo:hover { 
    transform: translateY(-10px); 
    filter: drop-shadow(0 15px 10px rgba(0, 0, 0, 0.3)); 
}

.description {
    font-weight: 400;
    line-height: 1.6;
    font-size: 0.92rem;
    text-align: justify;
    color: var(--white-soft);
    max-width: 650px;
}

.divider { height: 1px; background: var(--divider-color); width: 100%; margin: 25px 0 15px 0; }

footer { 
    font-size: 0.7rem; 
    font-weight: 300; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    opacity: 0.5;
    padding-bottom: 10px;
}

/* MODALE */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.4s; z-index: 999; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: white; padding: 30px; border-radius: 10px; width: 90%; max-width: 420px; position: relative; color: var(--text-dark); transform: translateY(20px); transition: 0.4s; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 25px; cursor: pointer; color: #ccc; }

.modal-content h2 { color: var(--primary-blue); margin-bottom: 20px; font-size: 1.4rem; }

input, textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #eee; 
    border-radius: 5px; 
    font-family: 'Montserrat', sans-serif; 
    margin-bottom: 12px;
    font-size: 1rem;
}

.submit-btn { width: 100%; padding: 14px; background: var(--primary-blue); color: white; border: none; border-radius: 5px; font-weight: 600; cursor: pointer; position: relative; text-transform: uppercase; }

/* LOADER */
.submit-btn .loader { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: #fff; animation: spin 0.8s linear infinite; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -9px; }
.submit-btn.loading .btn-text { visibility: hidden; }
.submit-btn.loading .loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.status-box { display: none; text-align: center; }
.success-icon { width: 40px; height: 40px; background: #2ecc71; color: white; border-radius: 50%; line-height: 40px; margin: 0 auto 10px; display: inline-block; }

/* --- RESPONSIVE MOBILE OPTIMISÉ --- */
@media (max-width: 768px) {
    body, html {
        overflow-y: auto; /* Active le scroll sur mobile */
        height: auto;
    }

    .main-container {
        padding: 30px 25px;
        height: auto; /* Laisse le container grandir verticalement */
        min-height: 100vh;
        justify-content: flex-start; /* Aligne le contenu vers le haut */
        gap: 40px; /* Espace de sécurité entre les blocs */
    }

    .header {
        align-self: flex-end;
    }

    .client-logo {
        width: 150px; /* Taille plus adaptée aux écrans de smartphones */
    }

    .description {
        font-size: 0.9rem;
        text-align: left;
        line-height: 1.5;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .divider {
        margin: 20px 0 10px 0;
    }

    /* Désactive le changement de graisse au hover pour éviter les sauts visuels sur mobile */
    .header:hover .contact-link {
        font-weight: 300;
    }
}