/* =========================================
   HÉBERGEPRO — FEUILLE DE STYLE
   ========================================= */

/* ---------- RÉINITIALISATION ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f7fb;
    color: #1f2937;
    line-height: 1.6;
}


/* ---------- MENU DE NAVIGATION ---------- */

nav {
    position: fixed;
    left: 0;
    top: 0;

    width: 240px;
    height: 100vh;

    padding: 30px 20px;

    background-color: #0b1736;
    color: white;

    z-index: 1000;
}

.logo {
    margin-bottom: 45px;

    color: #35d0ba;

    font-size: 25px;
    font-weight: bold;

    text-align: center;
}

nav ul {
    list-style: none;
}

nav li {
    margin-bottom: 12px;
}

nav a {
    display: block;

    padding: 14px 16px;

    color: #dbeafe;
    text-decoration: none;

    border-radius: 8px;

    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #123064;
    color: #35d0ba;

    transform: translateX(4px);
}


/* ---------- EN-TÊTE ---------- */

header {
    margin-left: 240px;

    min-height: 230px;

    padding: 55px 8%;

    display: flex;
    align-items: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            rgba(10, 30, 70, 0.9),
            rgba(0, 150, 180, 0.8)
        ),
        url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1600&q=80")
        center / cover;
}

.header-content h1 {
    margin-bottom: 12px;

    font-size: 48px;
    line-height: 1.2;
}

.header-content p {
    font-size: 20px;
    opacity: 0.95;
}


/* ---------- CONTENU PRINCIPAL ---------- */

main {
    margin-left: 240px;
}

section {
    min-height: 500px;

    padding: 70px 8%;
}

.section-title {
    margin-bottom: 45px;

    color: #0b1736;

    font-size: 34px;

    text-align: center;
}


/* ---------- ACCUEIL ---------- */

.intro {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 45px;

    align-items: center;
}

.intro-text h2 {
    margin-bottom: 20px;

    color: #0b1736;

    font-size: 36px;
    line-height: 1.2;
}

.intro-text p {
    margin-bottom: 25px;

    font-size: 18px;
    line-height: 1.8;
}


/* ---------- BOUTONS ---------- */

.button {
    display: inline-block;

    padding: 14px 25px;

    background-color: #00a99d;
    color: white;

    border-radius: 8px;

    font-weight: bold;
    text-decoration: none;

    transition: all 0.3s ease;
}

.button:hover {
    background-color: #078477;

    transform: translateY(-2px);
}


/* ---------- IMAGE ---------- */

.hero-image {
    display: block;

    width: 100%;
    max-width: 600px;

    border-radius: 15px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15);
}


/* ---------- SERVICES ---------- */

#services {
    background-color: white;
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.service-card {
    padding: 35px 25px;

    background-color: #f7fafc;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    text-align: center;

    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;

    font-size: 42px;
}

.service-card h3 {
    margin-bottom: 15px;

    color: #0b1736;

    font-size: 22px;
}

.service-card p {
    color: #64748b;

    line-height: 1.6;
}


/* ---------- CONTACT ---------- */

#contact {
    background-color: #eaf6f7;
}

.contact-container {
    max-width: 850px;

    margin: 0 auto;

    padding: 40px;

    background-color: white;

    border-radius: 15px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-container p {
    margin-bottom: 20px;

    line-height: 1.8;
}

form {
    display: grid;

    gap: 15px;
}

input,
textarea {
    width: 100%;

    padding: 14px;

    border: 1px solid #d1d5db;
    border-radius: 7px;

    background-color: white;

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition: border-color 0.3s ease,
                box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #00a99d;

    box-shadow:
        0 0 0 3px rgba(0, 169, 157, 0.15);
}

textarea {
    min-height: 130px;

    resize: vertical;
}

button {
    padding: 14px;

    border: none;
    border-radius: 7px;

    background-color: #00a99d;
    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition: all 0.3s ease;
}

button:hover {
    background-color: #078477;

    transform: translateY(-2px);
}


/* ---------- PIED DE PAGE ---------- */

footer {
    margin-left: 240px;

    padding: 35px 8%;

    background-color: #0b1736;
    color: #dbeafe;

    text-align: center;
}

footer p {
    margin: 8px 0;
}

footer strong {
    color: #35d0ba;
}


/* =========================================
   RESPONSIVE — TABLETTES
   ========================================= */

@media (max-width: 900px) {

    nav {
        position: relative;

        width: 100%;
        height: auto;

        padding: 15px;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        display: flex;

        justify-content: center;

        flex-wrap: wrap;

        gap: 5px;
    }

    nav li {
        margin-bottom: 0;
    }

    nav a {
        padding: 10px 14px;
    }

    header {
        margin-left: 0;

        min-height: 250px;
    }

    main {
        margin-left: 0;
    }

    footer {
        margin-left: 0;
    }

    .intro {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        margin: 0 auto;
    }
}


/* =========================================
   RESPONSIVE — TÉLÉPHONES
   ========================================= */

@media (max-width: 600px) {

    header {
        padding: 45px 6%;
    }

    .header-content h1 {
        font-size: 36px;
    }

    .header-content p {
        font-size: 17px;
    }

    section {
        padding: 50px 6%;
    }

    .section-title {
        font-size: 29px;
    }

    .intro-text h2 {
        font-size: 29px;
    }

    .intro-text p {
        font-size: 16px;
    }

    .contact-container {
        padding: 25px;
    }

    footer {
        padding: 30px 6%;
    }
}
