/* ====== DESIGN GLOBAL ====== */
:root {
    --bg: #0b0b0b;
    --bg-soft: #121212;
    --txt: #f5f5f5;
    --muted: #bdbdbd;
    --line: #1f1f1f;
    --accent: #e6b400;
    --accent-2: #7ee787;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%
}

body {
    font-family: Inter, system-ui, Arial, sans-serif;
    background: var(--bg);
    color: var(--txt);
    line-height: 1.6
}

img,
video {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px
}

.section {
    padding: 80px 0
}

h1,
h2,
h3 {
    line-height: 1.2
}

h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    margin-bottom: 12px
}

p.lead {
    color: var(--muted);
    max-width: 820px
}

.btn {
    background: var(--accent);
    color: #111;
    padding: .9rem 1.2rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer
}

.btn.ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--txt)
}

.grid {
    display: grid;
    gap: 20px
}

.card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow)
}

.muted {
    color: var(--muted)
}

/* ====== HEADER ====== */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .2), transparent);
    backdrop-filter: saturate(1.2) blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #111;
    display: grid;
    place-items: center
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.brand small {
    color: var(--muted);
    display: block;
    margin-top: 2px
}

.links a {
    margin-left: 16px;
    color: var(--muted)
}

.links a:hover {
    color: var(--txt)
}

.menu-btn {
    display: none
}

@media (max-width:900px) {
    .links {
        display: none
    }

    .menu-btn {
        display: inline-flex;
        gap: 8px;
        align-items: center;
        border: 1px solid var(--line);
        padding: .55rem .85rem;
        border-radius: 10px;
        background: #161616;
        color: #fff;
        cursor: pointer
    }
}

/* ====== MENU MOBILE ====== */
.mobile {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100%;
    background: #0e0e0e;
    border-left: 1px solid var(--line);
    padding: 88px 20px;
    transition: right .32s ease-in-out;
    z-index: 100;
}

.mobile.open {
    right: 0
}

.mobile ul {
    list-style: disc;
    margin-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px
}

.mobile a {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 90
}

.overlay.active {
    opacity: 1;
    visibility: visible
}

/* ====== HERO ====== */
.hero {
    position: relative;
    padding: 140px 0 120px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    overflow: hidden
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .35;
    z-index: -2;
    filter: grayscale(.1)
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 50% 40%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .8) 70%, rgba(0, 0, 0, 1) 100%);
    z-index: -1
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    max-width: 900px
}

.hero .sub {
    margin-top: 12px;
    color: var(--muted);
    max-width: 820px
}

.cta {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

/* ====== ICONES ====== */
.service-icon,
.step-icon,
.stat-icon {
    width: 40px;
    height: 40px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.service h3 {
    margin-top: 8px;
    font-size: 1.05rem
}

/* ====== SERVICES ====== */
.services {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 28px
}

/* ====== PROJETS ====== */
.projects {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 28px
}

.project {
    overflow: hidden;
    padding: 0
}

.project img {
    aspect-ratio: 16/10;
    width: 100%;
    object-fit: cover;
    transition: transform .4s ease
}

.project:hover img {
    transform: scale(1.04)
}

.project .info {
    padding: 14px 16px;
    border-top: 1px solid var(--line)
}

/* ====== ENGAGEMENTS ====== */
.steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 22px
}

.step h3 {
    display: flex;
    align-items: center;
    gap: 8px
}

/* ====== CHIFFRES CLES ====== */
.stats {
    margin-top: 24px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: stretch
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center
}

.stat .num {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: .5px
}

.stat p {
    color: var(--muted)
}

/* ====== FORM ====== */
form input,
form textarea,
form select {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid var(--line);
    color: var(--txt);
    border-radius: 12px;
    padding: .9rem;
    font-size: 1rem;
    margin-bottom: 10px
}

form textarea {
    min-height: 130px
}

form button {
    margin-top: 8px
}

/* ====== FOOTER ====== */
footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    margin-top: 40px;
    background: #0b0b0b
}

.footer-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: space-between
}

@media(min-width:820px) {
    .footer-wrap {
        flex-direction: row
    }
}

/* Offset sticky header */
:target::before {
    content: "";
    display: block;
    height: 88px;
    margin-top: -88px;
    visibility: hidden
}