/* =========================================================
   RÉINITIALISATION GÉNÉRALE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1d2733;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}


/* =========================================================
   EN-TÊTE ET MENU
========================================================= */

.site-header {
    position: relative;
    z-index: 1000;
    min-height: 80px;
    background: #0b1f3a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0 60px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.main-navigation a:hover {
    color: #4db8ff;
}

.site-header nav a.active {
    color: #4db8ff;
    border-bottom: 3px solid #4db8ff;
    padding-bottom: 8px;
}


/* =========================================================
   BOUTON MENU MOBILE
========================================================= */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 6px 0;
    border-radius: 3px;
    background: white;
    transition: transform 0.25s ease, opacity 0.25s ease;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 520px;
    background: linear-gradient(135deg, #0b1f3a, #143d73);
    color: white;
    display: flex;
    align-items: center;
    padding: 80px 60px;
}

.hero-content {
    width: 100%;
    max-width: 760px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 35px;
    color: #dce8f7;
}


/* =========================================================
   BOUTONS
========================================================= */

.btn-primary {
    display: inline-block;
    background: #4db8ff;
    color: #0b1f3a;
    padding: 15px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn-primary:hover {
    background: white;
    transform: translateY(-2px);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 70px 60px;
}

.section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 45px;
    color: #0b1f3a;
}

.section-intro {
    max-width: 850px;
    margin: -20px auto 45px;
    text-align: center;
    color: #5d6978;
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   CARTES
========================================================= */

.cards {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.card {
    flex: 1;
    background: white;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.card h3 {
    margin-bottom: 15px;
    color: #0b1f3a;
    font-size: 23px;
}

.card p {
    line-height: 1.7;
    color: #5d6978;
}

.card ul {
    margin-top: 18px;
    padding-left: 20px;
    color: #5d6978;
}

.card li {
    margin-bottom: 9px;
}


/* =========================================================
   FORMULAIRE DE CONTACT
========================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.contact-form {
    display: grid;
    gap: 15px;
}

.contact-form label {
    font-weight: bold;
    color: #0b1f3a;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d6dde8;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #4db8ff;
    box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.15);
}

.contact-form button {
    width: fit-content;
    border: none;
    cursor: pointer;
}

.form-message {
    max-width: 1050px;
    margin: 0 auto 30px;
    background: white;
    padding: 18px;
    border-left: 5px solid #4db8ff;
    border-radius: 8px;
}


/* =========================================================
   ANTI-SPAM
========================================================= */

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}


/* =========================================================
   PIED DE PAGE
========================================================= */

.site-footer {
    background: #071527;
    color: white;
    text-align: center;
    padding: 30px 20px;
}


/* =========================================================
   TABLETTE ET MOBILE
========================================================= */

@media screen and (max-width: 900px) {

    .site-header {
        min-height: 72px;
        padding: 0 20px;
        flex-wrap: wrap;
    }

    .logo {
        max-width: calc(100% - 65px);
        font-size: 18px;
        line-height: 1.2;
        white-space: normal;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        z-index: 1000;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 20px 18px;
        background: #0b1f3a;
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    }

    .main-navigation.is-open {
        display: flex;
    }

    .main-navigation a {
        display: block;
        width: 100%;
        padding: 14px 5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .main-navigation a:last-child {
        border-bottom: none;
    }

    .site-header nav a.active {
        color: #4db8ff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        padding-bottom: 14px;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        min-height: auto;
        padding: 65px 25px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 1.08;
        margin-bottom: 22px;
    }

    .hero p {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 28px;
    }

    .section {
        padding: 55px 25px;
    }

    .section h2 {
        font-size: 30px;
        margin-bottom: 35px;
    }

    .section-intro {
        margin-top: -15px;
        font-size: 17px;
    }

    .cards {
        flex-direction: column;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   PETITS MOBILES
========================================================= */

@media screen and (max-width: 480px) {

    .site-header {
        padding: 0 18px;
    }

    .logo {
        font-size: 17px;
    }

    .hero {
        padding: 55px 20px;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.08;
    }

    .hero p {
        font-size: 17px;
    }

    .section {
        padding: 45px 20px;
    }

    .section h2 {
        font-size: 28px;
    }

    .card {
        padding: 25px;
    }

    .btn-primary {
        padding: 14px 22px;
    }

    .site-footer {
        font-size: 14px;
    }
}