/* --- RESET ET STYLES DE BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

a { text-decoration: none; color: inherit; }

/* --- HEADER / CARROUSEL --- */
header {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active { opacity: 1; }

.hero-text {
    text-align: center;
    z-index: 1;
}

.hero-text h1 { font-size: 3rem; margin-bottom: 10px; }
.hero-text p { font-size: 1.5rem; }

/* --- SECTION PRÉSENTATION --- */
.presentation {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    margin-top: -50px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

/* --- SECTION SPLIT SCREEN --- */
.split-container {
    display: flex;
    width: 100%;
    min-height: 500px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.split-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
    transition: all 0.4s ease;
}

/* --- COULEURS COMPLÉMENTAIRES --- */

/* Partie Gauche : Jaune Crème Pâle (Complémentaire du bleu) */
.panel-light {
    background-color: #fff5d7; /* Un jaune très doux, type "Champagne" */
    color: #333;
}

/* Partie Droite : Bleu Vif */
.panel-dark {
    background-color: #413efd; 
    color: #fff;
}

/* Effet au survol */
.split-panel:hover {
    flex: 1.2;
}

.split-panel h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.split-panel p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 400px;
}

/* --- BOUTONS --- */
.btn-split {
    padding: 12px 30px;
    border: 2px solid;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Bouton gauche : On garde le bleu pour faire un rappel visuel joli sur le jaune */
.btn-dark {
    border-color: #413efd;
    color: #413efd;
}
.btn-dark:hover {
    background-color: #413efd;
    color: #fff;
}

/* Bouton droite : Blanc sur fond bleu */
.btn-light {
    border-color: #fff;
    color: #fff;
}
.btn-light:hover {
    background-color: #fff;
    color: #413efd;
}

/* --- SECTION CONTACT --- */
.contact {
    background-color: #333;
    color: white;
    padding: 50px 20px;
    text-align: center;
}

form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 15px;
    border-radius: 5px;
    border: none;
    font-family: inherit;
}

/* Le bouton d'envoi reste bleu pour l'identité visuelle */
button[type="submit"] {
    padding: 15px;
    background-color: #413efd;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover { 
    background-color: #2f2cb8; 
}

footer {
    text-align: center;
    padding: 20px;
    background: #222;
    color: #777;
    font-size: 0.9rem;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2rem; }
    .presentation { margin-top: 20px; }
    
    .split-container {
        flex-direction: column;
    }
    .split-panel {
        min-height: 350px;
    }
    .split-panel:hover {
        flex: 1;
    }
}