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

body {
    font-family: 'Nunito Sans', sans-serif; 
    background-color: #ffffff;
    color: #000000;
    
    /* MODIFICATION CLÉ : On permet au site de grandir si besoin */
    min-height: 100vh; 
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    /* On garde "hidden" pour ordi, mais on le changera pour mobile plus bas */
    overflow-x: hidden; 
}

/* --- LE CONTAINER (Gère les marges Ordinateur & Tablette) --- */
.layout-container {
    width: 100%;
    /* 90% pour coller aux bords comme vous aimez */
    max-width: 92%; 
    margin: 0 auto;    
    padding: 0;
}

/* --- HEADER & LOGO --- */
header {
    padding-top: 3rem; 
    width: 100%;
    flex-shrink: 0;
}

.logo {
    width: 200px;
    height: auto;
    display: block;
}

/* --- MAIN & STRUCTURE --- */
main {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0; 
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5vw; 
}

/* Colonne Texte */
.text-column {
    flex: 1;
    max-width: 50%; 
}

/* Colonne Formulaire (WRAPPER) - Mise à jour pour le nouveau système */
.form-wrapper {
    flex: 1;
    max-width: 45%; 
    margin-top: 0.5rem; 
    position: relative;
}

/* --- TYPOGRAPHIE --- */
h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 5vw, 5rem); 
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: #000;
}

.accent {
    color: #2e00ff;
}

p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    margin-bottom: 0;
}

/* --- FORMULAIRE & UX --- */
.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    gap: 30px;
    width: 100%;
}

/* NOUVEAU : Container pour chaque champ (gère l'erreur en dessous) */
.field-container {
    width: 100%;
    position: relative;
    margin-bottom: 25px; /* L'espace est géré ici maintenant */
}

input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 12px 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    color: #000;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 0;
    margin-bottom: 0; /* On enlève la marge de l'input direct */
}

input:focus {
    border-bottom: 2px solid #2e00ff;
    padding-left: 10px;
}

input::placeholder {
    color: #999;
}

/* --- VALIDATION & ERREURS (ROUGE) --- */
input.invalid-input {
    border-bottom: 2px solid #ff0000; /* Ligne Rouge */
    color: #ff0000;
}

/* Animation de tremblement */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

input.invalid-input {
    animation: shake 0.3s ease-in-out;
}

/* Le petit texte "Requis" rouge */
.error-msg {
    display: none; /* Caché par défaut */
    font-size: 0.7rem;
    color: #ff0000;
    position: absolute;
    bottom: -18px;
    left: 0;
    font-weight: 600;
}

/* Affiche le message quand l'input est invalide */
input.invalid-input + .error-msg {
    display: block;
}

/* --- BOUTON LIQUID --- */
.liquid-btn {
    position: relative;
    padding: 18px 50px;
    background: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    margin-top: 15px;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.liquid-btn .btn-text {
    position: relative;
    z-index: 5;
    color: #fff;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.liquid-btn .liquid-bg {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 250%;
    background: #2e00ff;
    border-radius: 40%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    transform: translate(0, 0) scale(1.1);
}

.liquid-btn:hover .liquid-bg {
    transform: translate(0, -90%) scale(1.2);
}

.liquid-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(46, 0, 255, 0.25);
}

/* --- MESSAGE DE SUCCÈS (Brand Partners Style) --- */
.success-box {
    text-align: left;
    padding: 2rem 0;
    animation: fadeIn 0.8s ease;
}

.check-icon {
    font-size: 3rem;
    color: #2e00ff;
    margin-bottom: 1rem;
}

.success-box h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.success-box p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- IMAGE BAS & FOOTER --- */
@keyframes slideUpReveal {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- SLIDER SOPHISTIQUÉ (IMAGE BAS) --- */

.bottom-visual {
    width: 100%;
    height: 35vh; /* Hauteur fixe */
    position: relative; /* Nécessaire pour empiler les images */
    background-color: #f0f0f0; /* Couleur de fond pendant le chargement */
    overflow: hidden; /* Cache ce qui dépasse */
    flex-shrink: 0;
    
    /* Animation d'entrée globale du bloc (Optionnelle) */
    animation: slideUpReveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Le style commun à toutes les diapositives */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(110%); /* Votre filtre Noir & Blanc */
    
    opacity: 0; /* Caché par défaut */
    transform: scale(1.05); /* Légèrement zoomé par défaut */
    
    /* LA MAGIE DE LA TRANSITION : */
    /* On anime l'opacité ET le zoom (scale) pour un effet cinématique */
    transition: opacity 2s ease-in-out, transform 8s linear;
    z-index: 1;
}

/* Le style quand la diapositive est active */
.slide.active {
    opacity: 1; /* Visible */
    transform: scale(1); /* Revient doucement à sa taille normale */
    z-index: 2;
}

/* Le copyright reste au dessus des images */
.copyright {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
    pointer-events: none;
    z-index: 10; /* Très haut pour être toujours visible */
}

@keyframes slideUpReveal {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Mobile : Ajustement de la hauteur */
@media (max-width: 768px) {
    .bottom-visual {
        height: 250px;
        margin-top: 2rem;
    }
}

.copyright {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
    pointer-events: none;
}

/* --------------------------------------------------------- */
/* --- MOBILE (SCROLL, ESPACES & UX) --- */
/* --------------------------------------------------------- */
@media (max-width: 768px) {
    
    /* 1. SCROLL ACTIVÉ */
    body {
        height: auto; 
        min-height: 100vh;
        overflow-y: auto; 
        display: block; 
    }

    /* 2. Container Mobile */
    .layout-container {
        max-width: 90%; 
        margin: 0 auto;
    }

    /* 3. Header */
    header {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .logo {
        width: 160px; 
    }

    /* 4. Structure Verticale */
    main {
        display: block; 
        padding-bottom: 3rem;
    }

    .content-wrapper {
        flex-direction: column; 
        gap: 3rem; 
    }

    /* Mise à jour pour cibler .form-wrapper au lieu de .contact-form */
    .text-column, .form-wrapper {
        max-width: 100%; 
    }

    /* 5. Typo Mobile */
    h1 {
        font-size: 3.5rem; 
        margin-bottom: 1rem;
    }

    p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    /* 6. Formulaire Mobile */
    .input-group {
        flex-direction: column; 
        gap: 0; 
    }
    
    /* Espace entre les champs sur mobile */
    .field-container {
        margin-bottom: 30px; 
    }

    .liquid-btn {
        width: 100%; 
        text-align: center;
    }

    /* 7. Image Bas Mobile */
    .bottom-visual {
        height: 250px; 
        margin-top: 2rem;
    }
}