/* ============================= */
/* RESET                         */
/* ============================= */

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

/* ============================= */
/* BASE                          */
/* ============================= */

body {
    font-family: 'Syne', sans-serif;
    overflow-x: hidden;
    background: white;
}

/* ============================= */
/* NAVIGATION (SANS LIENS)       */
/* ============================= */

nav {
    display: flex;
    align-items: center;
    padding: 20px 80px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    height: 30px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* ============================= */
/* SECTION (RÉUTILISÉE)          */
/* ============================= */

.problem {
    padding: 55px 80px;
}

.problem h2 {
    color: #FF640A;
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
}

/* ============================= */
/* DIVIDER (AFFINÉ – PREMIUM)    */
/* ============================= */

.divider {
    width: 100%;
    height: 0.5px;
    background-color: rgba(46, 54, 136, 0.25);
    margin-top: 10px;
}

/* ============================= */
/* ANIMATIONS                    */
/* ============================= */

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

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

/* Animation de l'oiseau - Entrée douce depuis la droite */
.right img {
    animation: slideInBird 1s ease-out forwards;
    opacity: 0;
}

@keyframes slideInBird {
    from {
        opacity: 0;
        transform: translateX(50px) translateY(-32px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-32px);
    }
}

/* ============================= */
/* ANIMATION OISEAU              */
/* ============================= */

@keyframes float {
    0%, 100% {
        transform: translateX(0) translateY(-32px);
    }
    50% {
        transform: translateX(0) translateY(-48px);
    }
}

/* ============================= */
/* LAYOUT DESKTOP                */
/* ============================= */

.englob-contenus {
    height: 60vh;
    width: 100%;
    display: flex;
}

.left {
    height: 100%;
    width: 58%;
    display: flex;
    flex-direction: column;
}

.right {
    height: 100%;
    width: 42%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.right img {
    width: 110%;
    max-width: none;
    animation: float 4s ease-in-out infinite, slideInFromRight 0.8s ease forwards;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(80px) translateY(-32px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-32px);
    }
}

/* ============================= */
/* BLOCS GAUCHE                  */
/* ============================= */

.left-second {
    width: 90%;
    height: 18%;
}

.left-three {
    width: 90%;
    height: 82%;
}

/* ============================= */
/* TEXTE VISION / MANIFESTE      */
/* ============================= */

.vision-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.25em;
    line-height: 1.5;
    color: #2E3688;
    margin-left: calc(10% + 24px);
    max-width: 520px;
    opacity: 0.9;
}

/* ============================= */
/* FORMULAIRE – STEP 1           */
/* ============================= */

.form-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 40px;
    padding-left: calc(10% + 24px);
}

.form-row {
    display: flex;
    gap: 8px;
}

.form-row-full {
    margin-top: 14px;
}

.form-input {
    width: 220px;
    height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.4px solid #2E3688;
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    color: rgba(255, 100, 10, 0.85);
    background: white;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: #FF640A;
}

.form-input-full {
    width: 448px;
}

.form-input::placeholder {
    color: rgba(255, 100, 10, 0.65);
}

/* ============================= */
/* BOUTON                        */
/* ============================= */

.form-actions {
    margin-top: 26px;
    width: 448px;
    display: flex;
    justify-content: flex-end;
}

.form-button {
    height: 48px;
    padding: 0 36px;
    border-radius: 999px;
    border: 1.4px solid #2E3688;
    background: white;
    color: rgba(255, 100, 10, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-button:hover {
    background: #FF640A;
    color: white;
    border-color: #FF640A;
}

/* ===================================================== */
/* ================= RESPONSIVE TABLET ================= */
/* ===================================================== */

@media (max-width: 1024px) {
    nav {
        padding: 20px 40px;
    }

    .problem {
        padding: 45px 40px;
    }

    .problem h2 {
        font-size: 2em;
    }

    .englob-contenus {
        height: auto;
        min-height: 60vh;
    }

    .left {
        width: 60%;
    }

    .right {
        width: 40%;
    }

    .right img {
        width: 100%;
    }

    .vision-text {
        font-size: 1.1em;
        margin-left: 40px;
    }

    .form-container {
        padding-left: 40px;
    }

    .form-input {
        width: 200px;
    }

    .form-input-full {
        width: 408px;
    }

    .form-actions {
        width: 408px;
    }
}

/* ===================================================== */
/* ================= RESPONSIVE MOBILE ================= */
/* ===================================================== */

@media (max-width: 768px) {

    /* NAV */
    nav {
        padding: 16px 24px;
    }

    .logo {
        height: 26px;
    }

    /* SECTION TITRE */
    .problem {
        padding: 40px 24px;
    }

    .problem h2 {
        font-size: 1.8em;
        text-align: left;
    }

    /* CONTENEUR PRINCIPAL */
    .englob-contenus {
        height: auto;
        min-height: auto;
        flex-direction: column;
        padding: 0 24px 60px 24px;
    }

    /* 🔥 OISEAU DISPARAÎT */
    .right {
        display: none;
    }

    /* 🔥 CONTENEUR PREND TOUTE LA LARGEUR */
    .left {
        width: 100%;
        align-items: flex-start;
    }

    .left-second,
    .left-three {
        width: 100%;
        height: auto;
    }

    /* 🔥 TEXTE ALIGNÉ À GAUCHE COMME LE TITRE */
    .vision-text {
        margin-left: 0;
        text-align: left;
        max-width: 100%;
        font-size: 1.1em;
        padding: 0;
        margin-bottom: 32px;
    }

    /* 🔥 FORMULAIRE ALIGNÉ À GAUCHE */
    .form-container {
        padding: 0;
        padding-top: 20px;
        align-items: flex-start;
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        width: 100%;
        gap: 16px;
        align-items: stretch;
    }

    .form-input,
    .form-input-full {
        width: 100%;
        max-width: 360px;
    }

    /* 🔥 BOUTON ALIGNÉ À GAUCHE */
    .form-actions {
        width: 100%;
        max-width: 360px;
        justify-content: flex-start;
        margin-top: 24px;
    }

    .form-button {
        width: 100%;
    }
}

/* ===================================================== */
/* ============= RESPONSIVE TRÈS PETIT ================ */
/* ===================================================== */

@media (max-width: 480px) {
    nav {
        padding: 14px 20px;
    }

    .logo {
        height: 24px;
    }

    .problem {
        padding: 32px 20px;
    }

    .problem h2 {
        font-size: 1.5em;
    }

    .englob-contenus {
        padding: 0 20px 50px 20px;
    }

    .vision-text {
        font-size: 1em;
        line-height: 1.6;
    }

    .form-input,
    .form-input-full {
        max-width: 100%;
        font-size: 0.9em;
        height: 46px;
    }

    .form-button {
        font-size: 0.9em;
        height: 46px;
    }
}