/* =========================================================
   SID ENGINEERS — SERVICE: INGÉNIERIE NUMÉRIQUE
   File: assets/css/sid-service-numerique.css
   Standalone: does not depend on sid-home.css
   ========================================================= */

/* ---------- 01. TOKENS & BASE ---------- */

.sid-home {
    --sid-navy: #101f30;
    --sid-navy-deep: #0b1725;
    --sid-ink: #172534;
    --sid-muted: #687480;
    --sid-gold: #b99b65;
    --sid-gold-light: #d2bc8f;
    --sid-paper: #f8f7f3;
    --sid-white: #ffffff;
    --sid-border: #e4e2dc;
    --sid-border-dark: rgba(255, 255, 255, 0.15);
    --sid-container: 1200px;
    --sid-font-body: "DM Sans", Arial, sans-serif;
    --sid-font-heading: "Manrope", Arial, sans-serif;

    color: var(--sid-ink);
    background: var(--sid-white);
    font-family: var(--sid-font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow: clip;
}

.sid-home *,
.sid-home *::before,
.sid-home *::after {
    box-sizing: border-box;
}

.sid-home a {
    color: inherit;
    text-decoration: none;
}

.sid-home p,
.sid-home h1,
.sid-home h2,
.sid-home h3 {
    margin-top: 0;
}

.sid-home h1,
.sid-home h2,
.sid-home h3 {
    color: inherit;
    font-family: var(--sid-font-heading);
    font-weight: 500;
    font-style: normal;
    letter-spacing: -0.035em;
}

.sid-home p:last-child {
    margin-bottom: 0;
}

.sid-home a:focus-visible {
    outline: 2px solid var(--sid-gold);
    outline-offset: 5px;
}

/* ---------- 02. LAYOUT ---------- */

.sid-container {
    width: min(var(--sid-container), calc(100% - 64px));
    margin-inline: auto;
}

.sid-section {
    padding-block: 112px;
}

.sid-home .sid-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #77796f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.17em;
    line-height: 1.5;
    text-transform: uppercase;
}

.sid-home .sid-eyebrow-light {
    color: #bdc4ca;
}

.sid-eyebrow-mark {
    display: inline-block;
    width: 24px;
    height: 1px;
    flex: 0 0 24px;
    background: var(--sid-gold);
}

.sid-section-heading {
    margin-bottom: 52px;
}

.sid-section-heading h2,
.sid-split-head h2 {
    margin: 20px 0 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
}

.sid-heading-accent {
    color: #a38b5d;
}

.sid-split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.sid-split-head {
    position: sticky;
    top: 120px;
}

/* ---------- 03. BUTTON ---------- */

.sid-home .sid-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 13px 17px 13px 21px;
    border: 1px solid transparent;
    font-family: var(--sid-font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.sid-button-arrow {
    display: inline-grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 13px;
    transition: transform 220ms ease;
}

.sid-button:hover .sid-button-arrow {
    transform: translate(2px, -2px);
}

.sid-home .sid-button-gold {
    color: var(--sid-navy-deep);
    background: var(--sid-gold-light);
    border-color: var(--sid-gold-light);
}

.sid-home .sid-button-gold:hover {
    background: #e0cda5;
    border-color: #e0cda5;
}

/* ---------- 04. PAGE HERO ---------- */

.sid-home .sid-hero {
    position: relative;
    display: flex;
    align-items: center;
    max-height: 400px;
    padding: 80px 0 90px;
    color: var(--sid-white);
    background:
        linear-gradient(
            90deg,
            rgba(11, 23, 37, 0.94) 0%,
            rgba(11, 23, 37, 0.78) 55%,
            rgba(11, 23, 37, 0.48) 100%
        ),
        url("../images/hero.jpg") center / cover no-repeat;
}

.sid-home .sid-hero .sid-container {
    width: min(1400px, calc(100% - 100px));
    margin-inline: auto;
}

.sid-home .sid-hero-layout {
    display: block;
}

.sid-home .sid-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    padding-block: 25px;
}

.sid-home .sid-hero h1 {
    max-width: 950px;
    margin: 28px 0 24px;
    font-size: clamp(44px, 6vw, 80px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.sid-home .sid-hero-title-accent {
    display: block;
    color: var(--sid-gold-light);
    font-weight: 600;
}

.sid-home .sid-hero-description {
    max-width: 700px;
    margin-bottom: 0;
    color: #d0d7de;
    font-size: 17px;
    line-height: 1.9;
}

.sid-home .sid-hero-bottom {
    position: absolute;
    right: 0;
    bottom: 30px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(1400px, calc(100% - 100px));
    margin: 0 auto;
    color: #a5b0ba;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.17em;
}

.sid-hero-bottom-rule {
    width: 50px;
    height: 1px;
    background: var(--sid-gold);
}

.sid-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    color: #9da8b1;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sid-breadcrumb a {
    transition: color 220ms ease;
}

.sid-breadcrumb a:hover,
.sid-breadcrumb [aria-current="page"] {
    color: var(--sid-gold-light);
}

/* ---------- 05. INTERVENTIONS (3 x 3) ---------- */

.sid-interventions {
    background: var(--sid-paper);
}

.sid-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--sid-border);
    border-left: 1px solid var(--sid-border);
    background: var(--sid-white);
}

.sid-step {
    min-width: 0;
    padding: 30px 28px 34px;
    border-right: 1px solid var(--sid-border);
    border-bottom: 1px solid var(--sid-border);
    transition: background-color 220ms ease;
}

.sid-step:hover {
    background: var(--sid-paper);
}

.sid-step-number {
    display: block;
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sid-border);
    color: var(--sid-gold);
    font-family: var(--sid-font-heading);
    font-size: 27px;
    font-weight: 500;
    line-height: 1.2;
}

.sid-step h3 {
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.3;
}

.sid-step p {
    margin: 0;
    color: var(--sid-muted);
    font-size: 13px;
    line-height: 1.85;
}

.sid-scope-note {
    max-width: 760px;
    margin: 36px 0 0;
    padding-left: 22px;
    border-left: 2px solid var(--sid-gold);
    color: #59636d;
    font-size: 14px;
    line-height: 1.9;
}

/* ---------- 06. DELIVERABLES ---------- */

.sid-deliverables {
    color: var(--sid-white);
    background:
        radial-gradient(ellipse at 85% 10%, rgba(56, 76, 93, 0.22), transparent 40%),
        var(--sid-navy);
}

.sid-deliverables .sid-split-head h2 {
    color: var(--sid-white);
}

.sid-deliverables .sid-split-head h2 span {
    color: var(--sid-gold-light);
}

.sid-check-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--sid-border-dark);
    list-style: none;
}

.sid-check-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--sid-border-dark);
    color: #e0e4e7;
    font-size: 16px;
    line-height: 1.6;
}

.sid-check-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--sid-gold-light);
    border-radius: 50%;
    color: var(--sid-gold-light);
    font-size: 13px;
}

/* ---------- 07. CTA ---------- */

.sid-cta {
    position: relative;
    overflow: hidden;
    color: var(--sid-white);
    background:
        radial-gradient(ellipse at 82% 45%, rgba(56, 76, 93, 0.22), transparent 36%),
        var(--sid-navy-deep);
}

.sid-cta-layout {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 380px;
    padding-top: 90px;
    padding-bottom: 110px;
}

.sid-cta-content {
    position: relative;
    z-index: 2;
}

.sid-cta-content h2 {
    margin: 25px 0 34px;
    color: var(--sid-white);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.sid-cta-content h2 span {
    color: var(--sid-gold-light);
}

.sid-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.sid-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #e2e5e7;
    font-size: 12px;
    font-weight: 600;
}

.sid-cta-link span {
    color: var(--sid-gold-light);
    font-size: 17px;
    transition: transform 220ms ease;
}

.sid-cta-link:hover span {
    transform: translateX(4px);
}

.sid-cta-footer {
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #a7b0b8;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.sid-cta-footer-line {
    width: 45px;
    height: 1px;
    background: var(--sid-gold);
}

/* ---------- 08. TABLET ---------- */

@media (max-width: 1050px) {
    .sid-section {
        padding-block: 85px;
    }

    .sid-container {
        width: min(var(--sid-container), calc(100% - 48px));
    }

    .sid-split {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sid-split-head {
        position: static;
    }

    .sid-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- 09. MOBILE ---------- */

@media (max-width: 700px) {
    .sid-container {
        width: calc(100% - 40px);
    }

    .sid-section {
        padding-block: 68px;
    }

    .sid-section-heading {
        margin-bottom: 32px;
    }

    .sid-home .sid-hero {
        min-height: 0;
        padding: 53px 0 70px;
    }

    .sid-home .sid-hero .sid-container,
    .sid-home .sid-hero-bottom {
        width: calc(100% - 40px);
    }

    .sid-home .sid-hero-content {
        padding-block: 0;
    }

    .sid-home .sid-hero h1 {
        margin-top: 23px;
        margin-bottom: 20px;
        font-size: clamp(38px, 10.5vw, 56px);
    }

    .sid-home .sid-hero-description {
        font-size: 14px;
    }

    .sid-breadcrumb {
        margin-bottom: 24px;
    }

    .sid-steps-grid {
        grid-template-columns: 1fr;
    }

    .sid-step {
        padding: 22px 20px 26px;
    }

    .sid-step-number {
        margin-bottom: 22px;
    }

    .sid-scope-note {
        margin-top: 28px;
        padding-left: 16px;
        font-size: 13px;
    }

    .sid-check-list li {
        padding: 18px 0;
        font-size: 14px;
    }

    .sid-cta-layout {
        min-height: 0;
        padding-top: 67px;
        padding-bottom: 100px;
    }

    .sid-cta-content h2 {
        font-size: clamp(37px, 10vw, 51px);
    }

    .sid-cta-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .sid-cta-footer {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 7px;
    }
}

/* ---------- 10. SMALL MOBILE ---------- */

@media (max-width: 380px) {
    .sid-container {
        width: calc(100% - 30px);
    }

    .sid-home .sid-button {
        gap: 12px;
        padding-inline: 14px;
        font-size: 11px;
    }
}

/* ---------- 11. REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    .sid-home *,
    .sid-home *::before,
    .sid-home *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}