/* --- RESET & GLOBAL --- */
:root {
    --primary: #2563eb;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --pastry-color: #d4a373;
    --dev-color: #1e293b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* --- NAVBAR --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo { font-weight: 800; font-size: 1.5rem; }
.socials a {
    color: var(--dark);
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: color 0.3s;
}
.socials a:hover { color: var(--primary); }

/* --- HERO SECTION (Présentation) --- */
.hero {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.text-col { flex: 1; }

.badge {
    background: #e0e7ff;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
    margin: 1rem 0;
    line-height: 1.1;
}


.bio {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Photo de profil */
.img-col img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Bouton CV */
.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--dark);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}
.btn-cv:hover { transform: translateY(-2px); background-color: #334155; }

.choice-section {
    padding: 2rem 2rem 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--gray);
}

/* Le conteneur du module */
.dual-card-container {
    display: flex;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.split {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.5s ease;
    cursor: pointer;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 2rem;
}


.split.left { background-color: var(--dev-color); }

.split.right { background-color: var(--pastry-color); }

.split:hover { flex: 2.5; }

.content {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s;
    width: 100%; 
}

.split h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.split p { opacity: 0.8; margin-bottom: 2rem; }

.icon-bg {
    font-size: 10rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.btn-split {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.3s;
}
.btn-split:hover { background: white; color: var(--dark); }

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    
    .bio { margin: 0 auto 2rem auto; }
    
    .dual-card-container {
        flex-direction: column;
        height: auto;
    }
    
    .split {
        height: 250px;
    }
    
    .split:hover { flex: 1; }
}