:root {
    --esip-black: #05080d;
    --esip-ink: #07111f;
    --esip-navy: #0b1d33;
    --esip-panel: #101a28;
    --esip-panel-soft: #142235;
    --esip-border: #26384f;
    --esip-text: #f7fafc;
    --esip-muted: #9fb0c3;
    --esip-accent: #d6a34a;
    --esip-accent-strong: #f2c75a;
    --esip-warning: #d6a34a;
    --esip-radius: 8px;
    --esip-shadow: 0 20px 60px rgba(0, 0, 0, .32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--esip-black);
    color: var(--esip-text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--esip-accent);
}

:focus-visible {
    outline: 3px solid var(--esip-accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: .75rem;
    z-index: 2000;
    transform: translateY(-150%);
    border-radius: var(--esip-radius);
    background: var(--esip-accent);
    color: #031017;
    font-weight: 700;
    padding: .65rem .9rem;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    max-width: 1180px;
}

.site-header .container {
    max-width: 1320px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.topbar {
    background: #03070c;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: var(--esip-muted);
    font-size: .88rem;
}

.topbar-inner {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-inner > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

.topbar a {
    color: var(--esip-text);
    font-weight: 700;
    text-decoration: none;
}

.esip-navbar {
    min-height: 74px;
    background: rgba(7, 17, 31, .96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-right: 1rem;
    text-decoration: none;
}

.navbar-brand img {
    display: block;
}

.brand-mark {
    width: 64px;
    height: 46px;
    object-fit: contain;
}

.brand-name {
    display: flex;
    flex-direction: column;
    color: var(--esip-text);
    line-height: .95;
}

.brand-name strong {
    color: var(--esip-accent-strong);
    font-size: 1.12rem;
    letter-spacing: .04em;
}

.brand-name small {
    color: #d7c498;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.navbar-toggler {
    border: 1px solid var(--esip-border);
    border-radius: var(--esip-radius);
    background: rgba(214, 163, 74, .1);
    width: 64px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler-icon {
    width: 22px;
    height: 16px;
    background-image: linear-gradient(var(--esip-text), var(--esip-text)), linear-gradient(var(--esip-text), var(--esip-text)), linear-gradient(var(--esip-text), var(--esip-text));
    background-position: 0 0, 0 7px, 0 14px;
    background-repeat: no-repeat;
    background-size: 22px 2px;
}

.navbar-menu-label {
    color: var(--esip-text);
    font-size: .78rem;
    font-weight: 800;
}

.nav-link {
    color: rgba(247, 250, 252, .86);
    font-size: .95rem;
    font-weight: 700;
    padding: .85rem .58rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.dropdown-item.active,
.dropdown-item:active {
    color: var(--esip-accent);
}

.dropdown-menu {
    border: 1px solid var(--esip-border);
    border-radius: var(--esip-radius);
    background: #0b1726;
    box-shadow: var(--esip-shadow);
    padding: .55rem;
}

.dropdown-item {
    color: rgba(247, 250, 252, .86);
    border-radius: 6px;
    padding: .62rem .8rem;
}

.dropdown-item:hover {
    background: rgba(214, 163, 74, .14);
    color: var(--esip-text);
}

@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
    .esip-navbar .dropdown:hover > .dropdown-menu,
    .esip-navbar .dropdown:focus-within > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .esip-navbar .dropdown:hover > .dropdown-toggle,
    .esip-navbar .dropdown:focus-within > .dropdown-toggle {
        color: var(--esip-accent);
    }
}

.btn {
    border-radius: var(--esip-radius);
    font-weight: 800;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    text-decoration: none;
    white-space: normal;
}

.btn-accent {
    color: #031017;
    background: var(--esip-accent);
    border-color: var(--esip-accent);
}

.btn-accent:hover,
.btn-accent:focus {
    color: #031017;
    background: var(--esip-accent-strong);
    border-color: var(--esip-accent-strong);
}

.btn-outline-light {
    border-color: rgba(247, 250, 252, .42);
}

.btn-outline-light:hover {
    color: #031017;
    background: var(--esip-text);
}

.navbar-quote {
    margin-left: auto;
    margin-right: .75rem;
    min-height: 40px;
    padding: .45rem .75rem;
}

.nav-cta {
    min-width: 170px;
    padding-left: 1rem;
    padding-right: 1rem;
    white-space: nowrap;
}

.navbar-nav {
    gap: .12rem;
}

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(5, 8, 13, .98) 0%, rgba(7, 17, 31, .9) 44%, rgba(7, 17, 31, .38) 100%), url("../images/esip/hero-securite-privee.webp") center right / cover no-repeat;
}

.hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(5, 8, 13, 0), var(--esip-black));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 6rem 0 7rem;
}

.eyebrow {
    margin: 0 0 .9rem;
    color: var(--esip-accent);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3 {
    color: var(--esip-text);
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    max-width: 820px;
    margin: 0 0 1.25rem;
    font-size: 4rem;
    font-weight: 900;
}

h2 {
    font-size: 2.25rem;
    font-weight: 850;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.16rem;
    font-weight: 820;
}

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

.lead {
    color: rgba(247, 250, 252, .88);
    font-size: 1.12rem;
}

.hero .lead {
    max-width: 650px;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.8rem;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
    max-width: 760px;
    margin-top: 2.4rem;
}

.proof-item {
    min-height: 96px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--esip-radius);
    background: rgba(9, 23, 39, .72);
}

.proof-item strong {
    display: block;
    color: var(--esip-text);
    font-size: 1.1rem;
}

.proof-item span {
    color: var(--esip-muted);
    font-size: .92rem;
}

.content-section,
.surface-section {
    padding: 5.8rem 0;
}

.surface-section {
    background: linear-gradient(180deg, #08101b, #0b1726);
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.3rem;
}

.section-heading.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.service-card,
.info-card,
.news-card,
.testimonial-card,
.zone-card {
    height: 100%;
    border: 1px solid var(--esip-border);
    border-radius: var(--esip-radius);
    background: var(--esip-panel);
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.service-card-body,
.news-card,
.testimonial-card,
.zone-card,
.info-card {
    padding: 1.35rem;
}

.service-card-body p:last-child,
.info-card p:last-child,
.news-card p:last-child,
.testimonial-card p:last-child,
.zone-card p:last-child {
    margin-bottom: 0;
}

.zone-card {
    position: relative;
}

.zone-kicker {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin-bottom: 1rem;
    padding: .25rem .55rem;
    border-radius: 6px;
    color: #031017;
    background: var(--esip-accent);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.service-card-body {
    display: flex;
    min-height: 240px;
    flex-direction: column;
}

.service-card .text-link {
    margin-top: auto;
}

.text-link {
    color: var(--esip-accent);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    color: var(--esip-accent-strong);
}

.card-mark {
    display: inline-block;
    width: 34px;
    height: 4px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--esip-accent);
}

.feature-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--esip-radius);
    border: 1px solid var(--esip-border);
    box-shadow: var(--esip-shadow);
}

.panel-block {
    height: 100%;
    padding: 2rem;
    border: 1px solid var(--esip-border);
    border-radius: var(--esip-radius);
    background: linear-gradient(180deg, var(--esip-panel), #0d1827);
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.2rem;
}

.area-tags span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: .45rem .75rem;
    border: 1px solid rgba(214, 163, 74, .35);
    border-radius: 6px;
    color: #f4d487;
    background: rgba(214, 163, 74, .1);
    font-weight: 800;
}

.checked-list,
.step-list,
.plain-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.checked-list li,
.plain-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: .85rem;
    color: rgba(247, 250, 252, .86);
}

.checked-list li::before,
.plain-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: var(--esip-accent);
}

.step-list {
    counter-reset: steps;
}

.step-list li {
    counter-increment: steps;
    position: relative;
    min-height: 58px;
    padding-left: 3.4rem;
    margin-bottom: 1rem;
    color: rgba(247, 250, 252, .86);
}

.step-list li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: -.1rem;
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: var(--esip-radius);
    color: #031017;
    background: var(--esip-accent);
    font-weight: 900;
}

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

.stat-card {
    min-height: 150px;
    padding: 1.4rem;
    border: 1px solid var(--esip-border);
    border-radius: var(--esip-radius);
    background: #0c1725;
}

.stat-card strong {
    display: block;
    color: var(--esip-text);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: .8rem;
}

.stat-card span {
    color: var(--esip-muted);
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, #05080d 0%, #0b1d33 65%, #113147 100%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 5.8rem;
    padding-bottom: 6.6rem;
}

.compact-hero .container {
    padding-top: 4.6rem;
    padding-bottom: 5.4rem;
}

.page-hero p:not(.eyebrow) {
    max-width: 720px;
    font-size: 1.08rem;
}

.breadcrumb-wrap {
    background: #07111f;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.breadcrumb {
    margin: 0;
    padding: .9rem 0;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: var(--esip-muted);
}

.breadcrumb-item.active {
    color: var(--esip-text);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--esip-muted);
}

.form-shell {
    padding: 2rem;
    border: 1px solid var(--esip-border);
    border-radius: var(--esip-radius);
    background: var(--esip-panel);
    box-shadow: var(--esip-shadow);
}

.form-label {
    color: var(--esip-text);
    font-weight: 750;
}

.form-control,
.form-select {
    min-height: 48px;
    color: var(--esip-text);
    border-color: #36516d;
    border-radius: var(--esip-radius);
    background-color: #0a1421;
}

.form-control:focus,
.form-select:focus {
    color: var(--esip-text);
    background-color: #0d1a2a;
    border-color: var(--esip-accent);
    box-shadow: 0 0 0 .25rem rgba(214, 163, 74, .2);
}

.form-control::placeholder {
    color: #71849a;
}

textarea.form-control {
    min-height: 160px;
}

.form-check-input {
    border-color: #55708d;
    background-color: #0a1421;
}

.form-check-input:checked {
    border-color: var(--esip-accent);
    background-color: var(--esip-accent);
}

.form-text,
.form-check-label {
    color: var(--esip-muted);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    border-radius: var(--esip-radius);
    border: 0;
}

.alert-success {
    color: #052f25;
    background: #a7f3d0;
}

.alert-danger {
    color: #3d0710;
    background: #fecdd3;
}

.final-cta {
    padding: 5rem 0;
    background: #07111f;
}

.final-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border: 1px solid var(--esip-border);
    border-radius: var(--esip-radius);
    background: linear-gradient(120deg, #0b1d33, #0d1827);
}

.site-footer {
    padding: 4rem 0 0;
    background: #03070c;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.site-footer h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: .55rem;
}

.site-footer a {
    color: var(--esip-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--esip-accent);
}

.footer-logo {
    width: min(220px, 100%);
    height: auto;
    margin-bottom: 1rem;
}

.footer-placeholder {
    font-size: .88rem;
    color: #bdc7d4;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-top: 3rem;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .92rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-box {
    border-left: 4px solid var(--esip-warning);
    border-radius: var(--esip-radius);
    background: rgba(214, 163, 74, .1);
    padding: 1rem 1.2rem;
}

.mobile-stack {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        padding: 1rem 0 1.25rem;
    }

    .nav-cta {
        width: 100%;
        margin-top: .6rem;
        min-width: 0;
    }
}

@media (max-width: 991.98px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .topbar-inner {
        flex-wrap: wrap;
        padding: .55rem 0;
    }

    .hero {
        min-height: 620px;
        background-position: 62% center;
    }

    .hero-proof,
    .stats-grid,
    .final-cta-inner {
        grid-template-columns: 1fr;
    }

    .content-section,
    .surface-section {
        padding: 4.2rem 0;
    }
}

@media (max-width: 575.98px) {
    h1 {
        font-size: 1.78rem;
        line-height: 1.12;
    }

    .topbar {
        font-size: .78rem;
    }

    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: .2rem;
        padding: .45rem .85rem;
    }

    .esip-navbar .container {
        display: grid;
        grid-template-columns: 150px 72px 64px;
        justify-content: start;
        align-items: center;
        gap: .45rem;
    }

    .navbar-brand .brand-mark {
        width: 46px;
        height: 38px;
    }

    .brand-name strong {
        font-size: 1rem;
    }

    .brand-name small {
        font-size: .66rem;
    }

    .navbar-brand {
        margin-right: 0;
    }

    .navbar-quote {
        flex: 0 0 auto;
        max-width: 72px;
        margin-left: 0;
        margin-right: 0;
        padding-left: .65rem;
        padding-right: .65rem;
    }

    .navbar-toggler {
        flex: 0 0 64px;
        margin-left: 0;
    }

    .hero-content {
        max-width: calc(100vw - 24px);
        padding: 4rem 0 5rem;
    }

    .hero h1,
    .hero p,
    .hero .lead,
    .hero-proof {
        max-width: 330px;
    }

    .hero-actions {
        flex-direction: column;
        max-width: 330px;
    }

    .navbar-toggler {
        border-color: var(--esip-accent);
        background: #0b1726;
    }

    .navbar-toggler-icon {
        display: none;
    }

    .navbar-collapse {
        grid-column: 1 / -1;
    }

    .hero-actions .btn,
    .cta-actions .btn,
    .mobile-stack .btn {
        width: 100%;
        justify-content: center;
    }

    .form-shell,
    .panel-block,
    .final-cta-inner {
        padding: 1.25rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
