:root {
    --ink: #07101e;
    --ink-soft: #1f2a3a;
    --muted: #5f6b7b;
    --paper: #f7f8fb;
    --white: #ffffff;
    --line: rgba(7, 16, 30, .12);
    --yellow: #ffd84d;
    --red: #ef4b4b;
    --blue: #2f80ed;
    --green: #80c342;
    --green-dark: #55981e;
    --shadow: 0 22px 60px rgba(7, 16, 30, .14);
    --header-bg: rgba(255, 255, 255, .94);
    --header-text: #07101e;
    --header-muted: rgba(7, 16, 30, .74);
    --header-border: rgba(7, 16, 30, .12);
    --footer-bg: #e8eef4;
    --footer-text: rgba(7, 16, 30, .75);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

#contact,
#services,
#partenaires,
#apropos {
    scroll-margin-top: 96px;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px clamp(18px, 5vw, 70px);
    color: var(--header-text);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 10px 32px rgba(7, 16, 30, .18);
    backdrop-filter: blur(18px);
}

.top-contact,
.brand-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
}

.top-contact {
    gap: 10px;
    color: var(--header-muted);
    font-size: .9rem;
    font-weight: 600;
}

.top-contact a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--header-border);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(7, 16, 30, .035);
}

.top-contact svg {
    width: 18px;
    height: 18px;
    fill: var(--green);
    flex: 0 0 auto;
}

.top-contact .contact-jump {
    margin-left: auto;
    color: #07101e;
    border-color: var(--yellow);
    background: var(--yellow);
    font-weight: 800;
}

.top-contact a:hover,
.site-footer a:hover {
    color: var(--green);
}

.brand {
    display: flex;
    width: 150px;
    height: 36px;
    align-items: center;
}

.brand img {
    width: 150px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 86vh;
    display: grid;
    align-items: center;
    padding: clamp(54px, 8vw, 110px) clamp(18px, 6vw, 86px);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .78)),
        url("assets/hero-keyboard.jpg") center / cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto -10vw -22vw auto;
    width: 52vw;
    height: 52vw;
    border-radius: 50%;
    background: var(--yellow);
    opacity: .88;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 12% auto auto -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: var(--blue);
    opacity: .18;
}

.hero-media {
    display: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1220px, 100%);
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(26px, 6vw, 78px);
    align-items: center;
    margin: 0 auto;
}

.hero-copy {
    max-width: 920px;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 18px;
    border-radius: 999px;
    padding: 7px 12px;
    color: #07101e;
    background: var(--green);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    margin-bottom: 18px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 960px;
    margin: 0 0 22px;
    color: var(--ink);
    font-size: clamp(3.1rem, 7vw, 6.6rem);
    line-height: .9;
    letter-spacing: 0;
}

h1 em,
h1 span,
h2 em,
h2 span {
    color: var(--blue);
    font-style: normal;
}

.hero-title {
    max-width: 720px;
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
}

.hero-title em {
    color: var(--red);
    font-style: normal;
    font-weight: 800;
}

.lead {
    max-width: 700px;
    color: var(--muted);
    font-size: clamp(1.04rem, 2vw, 1.18rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    border-radius: 8px;
    padding: 13px 18px;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    color: #ffffff;
    background: #07101e;
}

.button.primary:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.button.ghost {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--white);
}

.button.ghost:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.hero-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
}

.panel-label {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    color: #07101e;
    background: var(--yellow);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-panel strong {
    display: block;
    margin: 14px 0 10px;
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1.08;
}

.hero-panel p {
    margin: 0;
    color: var(--muted);
}

.hero + .section::before {
    content: "";
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 12px;
    margin: -86px calc(clamp(18px, 5vw, 42px) * -1) 74px;
    background:
        linear-gradient(90deg, var(--yellow) 0 25%, var(--red) 25% 50%, var(--blue) 50% 75%, var(--green) 75% 100%);
}

.section,
.service-grid,
.hosting-section,
.apple-section,
.partners-section,
.contact-section {
    max-width: 1220px;
    margin: 0 auto;
    padding: 86px clamp(18px, 5vw, 42px);
}

.split,
.about,
.contact-section {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, 1fr);
    gap: clamp(30px, 6vw, 80px);
    align-items: start;
}

h2 {
    margin: 0 0 20px;
    color: var(--ink);
    font-size: clamp(2.2rem, 5vw, 4.1rem);
    line-height: 1;
    letter-spacing: 0;
}

.section-intro,
.about-copy p,
.contact-copy,
.service-card p,
.apple-section p,
.hosting-copy p {
    color: var(--muted);
    font-size: 1.04rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding-top: 0;
}

.service-card {
    min-height: 300px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 26px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(7, 16, 30, .07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-card:nth-child(1) {
    border-top: 8px solid var(--green);
}

.service-card:nth-child(2) {
    border-top: 8px solid var(--blue);
}

.service-card:nth-child(3) {
    border-top: 8px solid var(--yellow);
}

.service-card:nth-child(4) {
    border-top: 8px solid var(--red);
}

.service-card:nth-child(5) {
    border-top: 8px solid var(--ink);
}

.service-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    margin-bottom: 46px;
    border-radius: 10px;
    color: var(--ink);
    background: rgba(127, 143, 163, .12);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1.12;
}

.hosting-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: clamp(30px, 6vw, 80px);
    align-items: center;
    padding-top: 0;
}

.hosting-copy {
    border-radius: 14px;
    padding: 38px;
    color: #ffffff;
    background: var(--blue);
    box-shadow: var(--shadow);
}

.hosting-copy .eyebrow {
    background: var(--yellow);
}

.hosting-copy h2,
.hosting-copy p {
    color: #ffffff;
}

.hosting-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hosting-list li {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 17px 20px;
    color: var(--ink-soft);
    background: var(--white);
    font-weight: 800;
}

.apple-section {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: clamp(28px, 6vw, 76px);
    align-items: center;
    padding-top: 0;
}

.apple-section h2 {
    max-width: 900px;
}

.apple-section p:last-child {
    max-width: 760px;
    margin-bottom: 0;
}

.apple-mark {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.apple-mark img {
    width: 66px;
}

.about {
    align-items: center;
    border-radius: 20px;
    margin-block: 40px;
    color: #ffffff;
    background: #07101e;
}

.about .eyebrow {
    background: var(--green);
}

.about h2,
.about p {
    color: #ffffff;
}

.partners-section {
    padding-top: 0;
}

.partners-heading {
    max-width: 680px;
    margin-bottom: 32px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.partner-logo-card {
    display: grid;
    min-height: 150px;
    align-items: center;
    justify-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(7, 16, 30, .07);
}

.partner-logo-card img {
    width: min(220px, 100%);
}

.partner-brand img {
    width: min(150px, 74%);
    max-height: 70px;
    object-fit: contain;
}

.synology-brand img {
    width: 220px;
    max-height: none;
}

.apple-brand img,
.ubiquiti-brand img {
    width: 70px;
}

.microsoft-brand img {
    width: min(190px, 82%);
}

.ubiquiti-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--ink);
    font-weight: 800;
    font-size: 1.42rem;
}

.ubiquiti-wordmark img {
    width: 48px;
}

.contact-section {
    max-width: none;
    padding-inline: clamp(20px, 7vw, 90px);
    color: #ffffff;
    background: #07101e;
}

.contact-section h2,
.contact-copy,
.contact-copy a {
    color: #ffffff;
}

address {
    margin: 30px 0 22px;
    font-style: normal;
}

.contact-form {
    display: grid;
    gap: 16px;
    border-radius: 14px;
    padding: 28px;
    color: #07101e;
    background: #ffffff;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: #1f2a3a;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(7, 16, 30, .12);
    border-radius: 8px;
    padding: 13px 14px;
    color: #07101e;
    background: #f8fafc;
    font: inherit;
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(128, 195, 66, .38);
    border-color: var(--green-dark);
}

.hidden-field {
    position: absolute;
    left: -9999px;
}

.form-message {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.form-message.success {
    color: #215c06;
    background: #e8f8dc;
}

.form-message.error {
    color: #8b1e1e;
    background: #fde8e8;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 26px clamp(20px, 5vw, 72px);
    color: var(--footer-text);
    background: var(--footer-bg);
}

.live-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: var(--footer-text);
    background: rgba(255, 255, 255, .06);
    font-size: .92rem;
}

.live-counter[hidden] {
    display: none;
}

.live-counter-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e60012;
    box-shadow: 0 0 0 4px rgba(230, 0, 18, .16);
}

@media (max-width: 1100px) {
    .service-grid,
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: clamp(3rem, 9vw, 5.4rem);
    }
}

@media (max-width: 820px) {
    .site-header {
        position: static;
    }

    .top-contact {
        flex-wrap: wrap;
    }

    .top-contact .contact-jump {
        margin-left: 0;
    }

    .hero-grid,
    .split,
    .about,
    .contact-section,
    .hosting-section,
    .apple-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 58px;
    }

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

    .section,
    .service-grid,
    .hosting-section,
    .apple-section,
    .partners-section,
    .contact-section {
        padding-block: 66px;
    }

    .hero + .section::before {
        margin-top: -66px;
        margin-bottom: 54px;
    }

    .brand {
        width: 140px;
    }

    .brand img {
        width: 140px;
    }

    .apple-mark {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 520px) {
    .top-contact a {
        width: 100%;
        justify-content: center;
    }

    .hero-panel,
    .hosting-copy,
    .contact-form {
        padding: 22px;
    }

    h1 {
        font-size: 3.1rem;
    }
}
