:root {
    --black: #050505;
    --black-soft: #0e0f11;
    --graphite: #181a1e;
    --gold: #d8aa36;
    --gold-light: #f2d47d;
    --white: #ffffff;
    --paper: #f4f5f6;
    --ink: #1e2328;
    --muted: #66707a;
    --line: rgba(216, 170, 54, 0.28);
    --radius: 16px;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 4px;
}

.site-nav {
    position: sticky;
    z-index: 40;
    top: 0;
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.7rem max(1rem, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.94);
    color: var(--white);
    backdrop-filter: blur(14px);
}

.brand {
    color: var(--white);
    font-size: 1.03rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.brand span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    list-style: none;
}

.nav-links a {
    color: #f2f3f4;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--gold-light);
}

.nav-cta {
    padding: 0.52rem 0.8rem;
    border: 1px solid var(--gold);
    border-radius: 7px;
}

.holiday-notice {
    position: relative;
    z-index: 35;
    padding: 0.72rem 1rem;
    border-bottom: 1px solid rgba(216, 170, 54, 0.36);
    background: linear-gradient(90deg, #101010, #241b08 50%, #101010);
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 720;
    text-align: center;
}

.holiday-notice strong {
    color: var(--gold-light);
}

.holiday-notice a {
    color: var(--gold-light);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.eyebrow {
    margin-bottom: 0.65rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0.86rem 1.35rem;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: var(--black);
    color: var(--white);
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: var(--gold);
    color: var(--black);
}

.btn-gold {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--black);
}

.btn-gold:hover {
    border-color: var(--gold-light);
    background: var(--gold-light);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.72);
    background: transparent;
    color: var(--white);
}

.wrap {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
}

/* Portail mère */
.portal-body {
    min-height: 100vh;
    background-color: #020202;
    background-image:
        radial-gradient(circle at 50% -10%, rgba(216, 170, 54, 0.14), transparent 35rem),
        linear-gradient(180deg, rgba(2, 2, 2, 0.64), rgba(2, 2, 2, 0.9)),
        url("images/hero-portail-telemetrie-3d-v1.webp");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
}

.portal-body .site-nav {
    position: relative;
}

.portal-main {
    min-height: calc(100vh - 66px);
    padding: clamp(2.1rem, 5vw, 4rem) 1rem 2rem;
}

.portal-intro {
    max-width: 780px;
    margin: 0 auto clamp(1.6rem, 4vw, 2.8rem);
    text-align: center;
}

.portal-intro h1 {
    font-size: clamp(2.25rem, 6vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.portal-intro p:last-child {
    max-width: 600px;
    margin: 0.9rem auto 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.portal-grid {
    display: grid;
    max-width: 1040px;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 2.25rem);
}

.portal-choice {
    position: relative;
    display: flex;
    min-height: 31rem;
    align-items: center;
    flex-direction: column;
    padding: clamp(1rem, 3vw, 2rem);
    overflow: hidden;
    border: 1px solid rgba(216, 170, 54, 0.24);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(14, 15, 17, 0.92);
    backdrop-filter: blur(9px);
    text-align: center;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 70px rgba(0, 0, 0, 0.32);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.portal-choice::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 30%, rgba(216, 170, 54, 0.12), transparent 18rem);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.portal-choice:hover {
    transform: translateY(-7px);
    border-color: rgba(242, 212, 125, 0.82);
    box-shadow: 0 36px 86px rgba(0, 0, 0, 0.5);
}

.portal-choice:hover::before {
    opacity: 1;
}

.portal-mark {
    position: relative;
    width: min(340px, 72vw);
    aspect-ratio: 1;
    margin: 0 auto 0.7rem;
    overflow: hidden;
    clip-path: circle(47% at 50% 50%);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.portal-mark img {
    width: 200%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.portal-choice--solutions .portal-mark img {
    transform: translateX(-50%);
}

.portal-label {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.portal-label h2 {
    color: var(--white);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.12;
}

.portal-label p {
    max-width: 360px;
    margin: 0.55rem auto 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.97rem;
}

.portal-enter {
    display: inline-block;
    margin-top: 1rem;
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portal-footer {
    padding: 1.2rem 1rem 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.86rem;
    text-align: center;
}

.portal-footer a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.portal-footer a + a::before {
    content: " · ";
    margin: 0 0.45rem;
    color: var(--gold);
}

.easter-egg {
    position: fixed;
    z-index: 20;
    left: 0.75rem;
    bottom: 0.55rem;
    display: inline-flex;
    width: 28px;
    height: 20px;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    opacity: 0.12;
    text-decoration: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.easter-egg:hover,
.easter-egg:focus-visible {
    transform: translateY(-2px);
    opacity: 0.85;
}

.easter-egg svg {
    width: 24px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at 50% 20%, rgba(216, 170, 54, 0.14), transparent 30rem),
        var(--black);
    color: var(--white);
    text-align: center;
}

.error-card {
    width: min(720px, 100%);
}

.error-logo {
    width: min(520px, 92vw);
    margin: 0 auto 1rem;
}

.error-code {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.error-card h1 {
    margin-top: 0.55rem;
    font-size: clamp(2.15rem, 6vw, 4rem);
    line-height: 1.05;
}

.error-card > p:not(.error-code) {
    max-width: 600px;
    margin: 0.9rem auto 0;
    color: rgba(255, 255, 255, 0.67);
}

.error-card .hero-actions {
    justify-content: center;
}

/* Pages de division */
.division-hero {
    position: relative;
    display: flex;
    min-height: 76vh;
    align-items: center;
    padding: clamp(4rem, 9vw, 7.5rem) 1rem;
    overflow: hidden;
    border-bottom: 5px solid var(--gold);
    background-color: var(--black);
    background-position: center;
    background-size: cover;
    color: var(--white);
}

.hero-aerienne {
    background-image:
        linear-gradient(90deg, rgba(3, 4, 5, 0.96) 0%, rgba(3, 4, 5, 0.78) 38%, rgba(3, 4, 5, 0.12) 75%),
        url("images/hero-aerienne.webp");
}

.hero-solutions {
    background-image:
        linear-gradient(90deg, rgba(3, 4, 5, 0.96) 0%, rgba(3, 4, 5, 0.8) 40%, rgba(3, 4, 5, 0.1) 78%),
        url("images/hero-solutions.webp");
}

.hero-content {
    width: min(1160px, calc(100% - 1rem));
    margin: 0 auto;
}

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

.hero-copy h1 {
    max-width: 820px;
    font-size: clamp(2.4rem, 6.4vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 680px;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.04rem, 2.3vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.hero-badge {
    display: inline-flex;
    margin-top: 1.2rem;
    padding: 0.42rem 0.72rem;
    border: 1px solid rgba(216, 170, 54, 0.65);
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.45);
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 850;
}

.trust-strip {
    padding: 1rem;
    background: var(--black);
    color: var(--white);
}

.trust-strip ul {
    display: flex;
    max-width: 1120px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.7rem;
    list-style: none;
    font-size: 0.91rem;
    font-weight: 720;
}

.trust-strip li::before {
    content: "✓";
    margin-right: 0.45rem;
    color: var(--gold);
}

.section {
    padding: clamp(3.4rem, 8vw, 6rem) 0;
}

.section-white {
    background: var(--white);
}

.section-soft {
    background: var(--paper);
}

.section-dark {
    background:
        radial-gradient(circle at 15% 8%, rgba(216, 170, 54, 0.1), transparent 28rem),
        var(--black);
    color: var(--white);
}

.section-head {
    max-width: 820px;
    margin-bottom: 2.2rem;
}

.section-head.centered {
    margin-inline: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.section-head p:last-child {
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 1.06rem;
}

.section-dark .section-head p:last-child {
    color: rgba(255, 255, 255, 0.68);
}

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

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    padding: 1.55rem;
    border: 1px solid #dfe3e6;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 32px rgba(14, 24, 32, 0.07);
}

.card h3 {
    margin-bottom: 0.55rem;
    color: var(--ink);
    font-size: 1.14rem;
    line-height: 1.25;
}

.card p,
.card li {
    color: var(--muted);
    font-size: 0.96rem;
}

.card ul {
    margin-top: 0.8rem;
    padding-left: 1.1rem;
}

.card li + li {
    margin-top: 0.35rem;
}

.section-dark .card {
    border-color: rgba(216, 170, 54, 0.25);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section-dark .card h3 {
    color: var(--white);
}

.section-dark .card p,
.section-dark .card li {
    color: rgba(255, 255, 255, 0.69);
}

.card-number {
    display: inline-flex;
    width: 2.3rem;
    height: 2.3rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    border-radius: 50%;
    background: var(--gold);
    color: var(--black);
    font-weight: 900;
}

.feature-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 3.4rem);
    border-radius: 20px;
    background: var(--black);
    color: var(--white);
    box-shadow: var(--shadow);
}

.feature-panel h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(2rem, 4vw, 3.05rem);
    line-height: 1.08;
}

.feature-panel p {
    color: rgba(255, 255, 255, 0.7);
}

.feature-stat {
    padding: 1.7rem;
    border: 1px solid rgba(216, 170, 54, 0.35);
    border-radius: 14px;
    background: rgba(216, 170, 54, 0.08);
}

.feature-stat strong {
    display: block;
    color: var(--gold-light);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
}

.feature-stat span {
    display: block;
    margin-top: 0.55rem;
    color: rgba(255, 255, 255, 0.75);
}

.link-card {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.link-card .more {
    display: inline-block;
    margin-top: 0.9rem;
    color: #9a6b00;
    font-size: 0.86rem;
    font-weight: 900;
}

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

.video-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card h3 {
    margin-top: 0.8rem;
    color: var(--white);
    font-size: 1rem;
}

.note {
    margin-top: 1.5rem;
    padding: 1.1rem 1.2rem;
    border-left: 5px solid var(--gold);
    border-radius: 8px;
    background: #fff6d8;
    color: #4c3a0c;
}

.section-dark .note {
    background: rgba(216, 170, 54, 0.09);
    color: #f4e7bf;
}

.cta-band {
    padding: clamp(3rem, 7vw, 5rem) 1rem;
    background: linear-gradient(125deg, #d39b16, #f0cc69);
    color: var(--black);
}

.cta-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 1.5rem;
    align-items: center;
}

.cta-band h2 {
    font-size: clamp(2rem, 4.5vw, 3.15rem);
    line-height: 1.08;
}

.cta-band p {
    max-width: 720px;
    margin-top: 0.7rem;
}

.site-footer {
    padding: 2.5rem 1rem 5rem;
    background: var(--black);
    color: var(--white);
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem 1.25rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--white);
    font-weight: 750;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.site-footer p {
    max-width: 850px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.84rem;
}

.sticky-cta {
    position: fixed;
    z-index: 50;
    right: 1rem;
    bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--black);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
    .site-nav {
        position: relative;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.55rem 0.9rem;
    }

    .holiday-notice {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .portal-grid,
    .grid,
    .grid-2,
    .grid-4,
    .feature-panel,
    .cta-layout,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .portal-choice {
        min-height: auto;
    }

    .hero-aerienne,
    .hero-solutions {
        background-position: 64% center;
    }

    .division-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.34);
    }

    .hero-content {
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 620px) {
    .portal-body {
        background-attachment: scroll;
        background-position: center top;
    }

    .portal-main {
        padding-top: 1.8rem;
    }

    .portal-choice {
        padding: 0.8rem 0.8rem 1.4rem;
    }

    .portal-mark {
        width: min(300px, 84vw);
    }

    .hero-actions,
    .hero-actions .btn {
        width: 100%;
    }

    .division-hero {
        min-height: 72vh;
        padding-block: 4rem;
    }

    .trust-strip ul {
        display: grid;
        justify-content: start;
        gap: 0.5rem;
    }

    .sticky-cta {
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 0;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
