* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #192b45;
}

a {
    text-decoration: none;
}

/* EN-TETE */
.entete {
    height: 82px;
    background: #0c1930;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6% 0 100px;
}

.logo {
    color: white;
    font-size: 25px;
    font-weight: bold;
}

.logo span {
    color: #56b9ff;
}

.entete-info {
    color: #9eafc8;
    font-size: 13px;
}

/* MENU HAMBURGER */
.menu {
    position: fixed;
    top: 18px;
    left: 20px;
    z-index: 1000;
}

.menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #213b60;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 24px;
    list-style: none;
    transition: background 0.2s;
}

.menu summary::-webkit-details-marker {
    display: none;
}

.menu summary:hover {
    background: #326399;
}

.menu .fermer {
    display: none;
}

.menu[open] .hamburger {
    display: none;
}

.menu[open] .fermer {
    display: inline;
}

.menu nav {
    position: fixed;
    top: 82px;
    left: 0;
    width: 265px;
    height: calc(100vh - 82px);
    background: #122641;
    padding: 35px 20px;
    box-shadow: 8px 0 25px rgba(0,0,0,0.15);
    animation: ouvrir 0.25s ease;
}

@keyframes ouvrir {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.menu-titre {
    color: #82a6ce;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.menu nav a {
    display: block;
    padding: 15px;
    margin-bottom: 8px;
    color: #e3edfa;
    border-radius: 9px;
    transition: background 0.2s;
}

.menu nav a:hover {
    background: #24466e;
}

/* SECTION PRINCIPALE */
.hero {
    background: #0c1930;
    color: white;
    padding: 75px 6% 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.etiquette {
    color: #319eea;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.13;
    margin: 20px 0;
    max-width: 650px;
}

.hero .description {
    color: #b5c4d9;
    line-height: 1.8;
    font-size: 17px;
    max-width: 540px;
}

.hero-image img {
    width: 100%;
    height: 410px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.bouton-principal,
.bouton-secondaire {
    display: inline-block;
    padding: 15px 22px;
    border-radius: 9px;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.2s, background 0.2s;
}

.bouton-principal {
    background: #258be0;
    color: white;
}

.bouton-principal:hover {
    background: #1673c1;
    transform: translateY(-2px);
}

.bouton-secondaire {
    color: white;
    border: 1px solid #5d7394;
}

.bouton-secondaire:hover {
    background: #203b60;
}

/* AVANTAGES */
.avantages {
    max-width: 1200px;
    margin: auto;
    padding: 85px 25px;
}

.section-titre {
    text-align: center;
    margin-bottom: 40px;
}

.section-titre h2 {
    font-size: 34px;
    margin: 12px 0;
}

.section-titre > p:last-child {
    color: #66758b;
}

.cartes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.carte {
    background: white;
    border: 1px solid #e5eaf1;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.035);
    transition: transform 0.2s, box-shadow 0.2s;
}

.carte:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #e9f3ff;
    color: #247bd0;
    border-radius: 12px;
    font-size: 25px;
    margin-bottom: 20px;
}

.carte h3 {
    margin: 0 0 12px;
}

.carte p {
    color: #66758b;
    line-height: 1.7;
}

/* SECTION CONTACT */
.appel-action {
    background: #e8f1fc;
    text-align: center;
    padding: 65px 20px;
}

.appel-action h2 {
    font-size: 30px;
}

.appel-action p {
    color: #5d6e84;
    margin-bottom: 30px;
}

/* PAGE SERVICES */
.services-intro {
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(37, 139, 224, 0.22),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #0c1930,
            #162f53
        );

    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.services-intro h1 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 15px auto;
    max-width: 750px;
}

.services-intro > p:last-child {
    color: #b5c4d9;
}

/* PIED DE PAGE */
footer {
    background: #0c1930;
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 6%;
}

footer strong {
    font-size: 20px;
}

footer p {
    color: #aebed3;
    font-size: 13px;
    line-height: 1.7;
}

/* TABLETTE */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 50px 5% 70px;
        gap: 30px;
    }

    .hero-image img {
        height: 330px;
    }

    .cartes {
        grid-template-columns: 1fr 1fr;
    }
}

/* TELEPHONE */
@media (max-width: 600px) {
    .entete {
        height: 72px;
        padding: 0 15px 0 75px;
    }

    .logo {
        font-size: 21px;
    }

    .entete-info {
        display: none;
    }

    .menu {
        top: 13px;
        left: 12px;
    }

    .menu nav {
        top: 72px;
        height: calc(100vh - 72px);
        width: min(280px, 85vw);
    }

    .hero {
        padding: 45px 20px 60px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero .description {
        font-size: 15px;
    }

    .hero-image img {
        height: 240px;
    }

    .cartes {
        grid-template-columns: 1fr;
    }

    .avantages {
        padding: 55px 20px;
    }

    .section-titre h2 {
        font-size: 27px;
    }

    .boutons {
        flex-direction: column;
    }

    .boutons a {
        text-align: center;
    }

    .appel-action h2 {
        font-size: 25px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
}
