/* ========================================
   HÉBERGEPRO - IDENTITÉ VISUELLE
   ======================================== */

:root {
    --background: #080e19;
    --surface: #101a2b;
    --surface-light: #15243a;
    --blue-dark: #153c65;
    --blue: #3986d9;
    --blue-pale: #a9d8ff;
    --text: #edf4fc;
    --text-muted: #a7b8cc;
    --border: #25364d;
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;

    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header header"
        "nav main"
        "nav footer";

    min-height: 100vh;
}

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

.site-header {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 5%;
    background: #0b1423;
    border-bottom: 1px solid var(--border);
}

.brand {
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
}

.brand::first-letter {
    color: var(--blue-pale);
}

.site-header p {
    margin: 0;
    color: var(--blue-pale);
    font-size: 0.95rem;
}

/* ========================================
   MENU LATÉRAL
   ======================================== */

nav {
    grid-area: nav;
    background: #0b1423;
    border-right: 1px solid var(--border);
    padding: 30px 20px;
}

nav h2 {
    margin: 0 0 25px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    margin-bottom: 10px;
}

nav a {
    display: block;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a.active {
    color: white;
    background: var(--blue-dark);
}

nav a.active {
    box-shadow: inset 3px 0 var(--blue-pale);
}

.nav-info {
    margin-top: 45px;
    padding: 15px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--blue-pale);
}

/* ========================================
   CONTENU PRINCIPAL
   ======================================== */

main {
    grid-area: main;
    min-width: 0;
    padding: 45px 5%;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

h1 {
    margin: 12px 0 20px;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    letter-spacing: -1.5px;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    color: var(--text-muted);
}

.eyebrow {
    color: var(--blue-pale);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ========================================
   ACCUEIL
   ======================================== */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.8fr);
    align-items: center;
    gap: 40px;
    padding: 45px;
    background:
        radial-gradient(
            ellipse at top right,
            #173d64 0%,
            transparent 55%
        ),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
}

.hero-content {
    min-width: 0;
}

.hero-text {
    max-width: 600px;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.hero-logo {
    text-align: center;
}

.hero-logo img {
    display: block;
    width: min(100%, 220px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 18px;
}

.hero-logo p {
    font-size: 0.85rem;
}

/* ========================================
   BOUTONS
   ======================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 21px;
    border: 1px solid var(--blue);
    border-radius: 10px;
    background: var(--blue);
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.button:hover {
    background: #286bb4;
    transform: translateY(-2px);
}

.button-secondary {
    background: transparent;
    border-color: var(--blue-pale);
    color: var(--blue-pale);
}

.button-secondary:hover {
    background: var(--blue-dark);
    color: white;
}

/* ========================================
   AVANTAGES
   ======================================== */

.section {
    margin-top: 75px;
}

.section-heading {
    max-width: 750px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin-bottom: 12px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--blue-dark);
    color: var(--blue-pale);
    font-weight: 800;
}

.feature-card h3 {
    margin-top: 22px;
}

/* ========================================
   PAGE DES SERVICES
   ======================================== */

.page-intro {
    max-width: 850px;
    margin-bottom: 40px;
}

.page-intro h1 {
    font-size: clamp(2rem, 3.5vw, 3.1rem);
}

.page-intro p {
    max-width: 750px;
    font-size: 1.05rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
}

.service-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--blue-dark);
    color: var(--blue-pale);
    font-weight: 800;
}

.service-tag {
    color: var(--blue-pale);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.service-card h2 {
    margin: 12px 0;
    font-size: 1.45rem;
}

.service-list {
    padding-left: 20px;
    color: var(--text-muted);
}

.service-list li {
    margin-bottom: 8px;
}

.service-list li::marker {
    color: var(--blue-pale);
}

/* ========================================
   BANNIÈRE ET APPEL À L'ACTION
   ======================================== */

.service-banner,
.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 35px;
    padding: 30px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.service-banner > div,
.cta-panel > div {
    flex: 1;
    min-width: 0;
}

.service-banner h2,
.cta-panel h2 {
    margin: 10px 0;
}

.service-banner img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
}

/* ========================================
   PIED DE PAGE
   ======================================== */

footer {
    grid-area: footer;
    padding: 25px 5% 15px;
    border-top: 1px solid var(--border);
    background: #0b1423;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.footer-content strong {
    color: var(--text);
    font-size: 1.1rem;
}

.footer-content p,
.footer-bottom p {
    margin: 5px 0;
    font-size: 0.85rem;
}

.footer-bottom {
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

/* ========================================
   ADAPTATION AUX ÉCRANS PLUS PETITS
   ======================================== */

@media (max-width: 1050px) {
    .hero {
        padding: 30px;
        gap: 25px;
    }

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

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

@media (max-width: 700px) {
    body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto 1fr auto;
        grid-template-areas:
            "header"
            "nav"
            "main"
            "footer";
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 18px 22px;
    }

    nav {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 15px 20px;
    }

    nav h2 {
        margin-bottom: 10px;
    }

    nav ul {
        display: flex;
        gap: 10px;
    }

    nav li {
        margin: 0;
    }

    .nav-info {
        margin-top: 12px;
    }

    main {
        padding: 25px 18px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .hero-logo img {
        width: 150px;
    }

    .section {
        margin-top: 45px;
    }

    .service-banner,
    .cta-panel,
    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-banner img {
        width: 90px;
        height: 90px;
    }

    footer {
        padding: 25px 20px 15px;
    }
}
