/* ============ BASE GLOBALE ============ */

body {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    background-color: #F5F7FF;
    color: #1F2633;
}

h1 {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
    color: #1B2559;
}

header {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Footer */

footer {
    height: 80px;
    padding-top: 30px;
    text-align: center;
    background-color: #E4E8FF;
    border-top: 3px solid #2952E3;
    font-size: 14px;
    color: #1B2559;
}

/* ============ NAVIGATION ============ */

nav {
    width: 100%;
    background: linear-gradient(90deg, #2952E3, #4C8DFF);
}

nav ul {
    margin: 0;
    padding: 0;
}

nav li {
    list-style: none;
    float: left;
}

nav a {
    display: inline-block;
    text-decoration: none;
    padding: 18px 28px;
    /* taille fixe */
    color: #FFFFFF;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.05em;
}

/* centrage du menu */
.table {
    display: table;
    margin: 0 auto;
    clear: both;
}

/* état normal : même bordure partout mais transparente */
.menu-debu,
.menu-expe,
.menu-hob,
.menu-con {
    border-top: 2px solid transparent;
}

/* Hovers (seule la couleur change, pas la taille) */

.menu-debu:hover {
    background-color: #4C8DFF;
    border-top-color: #7B3EFF;
}

.menu-expe:hover {
    background-color: #3C6CF5;
    border-top-color: #FFC868;
}

.menu-hob:hover {
    background-color: #2952E3;
    border-top-color: #7B3EFF;
}

.menu-con:hover {
    background-color: #1B2559;
    border-top-color: #FFC868;
}

/* texte des liens au survol */

.sp1:hover,
.sp2:hover,
.sp3:hover,
.sp4:hover {
    color: #FFC868;
}

/* hover du lien : on NE change pas le padding */

nav li:hover a {
    padding: 18px 28px;
    /* identique à l'état normal */
    background-color: rgba(0, 0, 0, 0.05);
    /* léger fond pour l'effet */
}

/* ============ IMAGES ============ */

img {
    height: auto;
    width: 100%;
    max-width: 200px;
    float: left;
    margin: 10px;
    border-radius: 20px;
}

/* ============ SECTIONS GÉNÉRALES ============ */

section {
    width: 100%;
    min-height: 300px;
    padding-bottom: 10px;
    margin-bottom: 0;
}

.sec {
    margin: 0 10%;
}

/* Colonnes */

.left {
    float: left;
    width: 30%;
}

.right {
    float: left;
    width: 70%;
}

.cleft {
    width: 50%;
    float: left;
}

/* Clearfix */

.sec::after,
.exp::after,
.reco::after {
    content: "";
    display: table;
    clear: both;
}

/* ============ SECTIONS PAR PAGE ============ */

/* Accueil */

.presentation {
    background: radial-gradient(circle at top, #4C8DFF, #F5F7FF);
    color: #1B2559;
}

/* Parcours */

.parcours {
    background-color: #d3dcfa;
    border-top: 3px solid #7B3EFF;
    color: #1F2633;
}

/* Compétences */

.competences {
    background-color: #E4E8FF;
    border-top: 3px solid #2952E3;
    color: #1B2559;
}

/* Recommandations */

.recommandation {
    background-color: #F6ECFF;
    border-top: 3px solid #7B3EFF;
    color: #2B2340;
}

/* EXPÉRIENCES */

.orange {
    border-top: 3px solid #e9cb98;
    background-color: #FFF7E6;
    margin-bottom: 0;
}

.rose {
    border-top: 3px solid #f599c4;
    background-color: #FFE9F4;
    margin-bottom: 0;
}

/* LOISIRS */

.cornail {
    background-color: #E4E8FF;
    border-top: 3px solid #7B3EFF;
    margin-bottom: 0;
}

.brun {
    background-color: #D7E0FF;
    border-top: 3px solid #2952E3;
    margin: 0;
}

/* ============ CONTACT – PAGE STAR ============ */

.contmoi {
    background: radial-gradient(circle at top, #FFF3EB, #F9B28E);
    border-top: 4px solid #FF8A4A;
    padding: 60px 0 40px 0;
    text-align: center;
    color: #2B1A12;
}

.contmoi h1 {
    color: #2B1A12;
    font-size: 34px;
    margin-bottom: 25px;
}

/* conteneur qui centre le formulaire */

.form-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* bloc formulaire (desktop) */

.form-contact {
    width: 420px;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
    background-color: #FFFFFF;
    padding: 25px 28px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* lignes du formulaire */

.form-contact p {
    margin: 12px 0;
}

/* labels + champs */

.form-contact label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 1.05rem;
    color: #2B1A12;
}

.form-contact input[type="text"],
.form-contact input[type="email"],
.form-contact textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #E0C5B4;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-contact input[type="text"]:focus,
.form-contact input[type="email"]:focus,
.form-contact textarea:focus {
    outline: none;
    border-color: #FF8A4A;
    box-shadow: 0 0 0 2px rgba(255, 138, 74, 0.3);
}

.form-contact textarea {
    resize: vertical;
    min-height: 120px;
}

/* boutons */

.btn-row {
    text-align: center;
}

.push {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #FF8A4A, #FFB86C);
    color: #FFFFFF;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.1s, box-shadow 0.1s, opacity 0.1s;
}

.push:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
    opacity: 0.95;
}

/* bouton reset */

.push[type="reset"] {
    background: #FFFFFF;
    color: #FF8A4A;
    border: 1px solid #FF8A4A;
    box-shadow: none;
}

.push[type="reset"]:hover {
    background: #FFF3EB;
}

/* ============ COLONNES EXPÉ / LOISIRS ============ */

.lefexp {
    float: left;
    width: 45%;
    max-width: 400px;
}

.rightexp {
    float: left;
    width: 55%;
}

.lefsec {
    width: 55%;
    float: left;
}

.rightsec {
    width: 45%;
    float: left;
}

/* ============ RESPONSIVE ============ */

@media screen and (max-width: 780px) {
    header {
        height: auto;
        padding: 10px 0;
    }

    h1 {
        font-size: 24px;
        margin: 10px 0;
    }

    nav li a {
        font-size: 12px;
        padding: 10px;
    }

    nav li:hover a {
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.05);
    }

    .sec {
        margin: 0 5%;
    }

    .left,
    .right,
    .cleft,
    .lefexp,
    .rightexp,
    .lefsec,
    .rightsec {
        float: none;
        width: 100%;
    }

    img {
        max-width: 150px;
        margin: 10px auto;
        float: none;
        display: block;
    }

    .sec1 {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .contmoi {
        padding: 40px 0 30px 0;
    }

    .form-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .form-contact {
        width: 100%;
        max-width: 75%;
        padding: 20px 18px;
    }
}