/* ==========================================================================
   BTP Bordes — feuille de style
   ========================================================================== */

:root {
    /* Charte BTP Bordes : bleu marine, vert, blanc, gris argent */
    --asphalt: #031d32;
    --asphalt-2: #042540;
    --steel: #0a3a63;
    --navy-mid: #05325d;
    --line: rgba(255, 255, 255, .1);
    --concrete: #eef1f3;
    --concrete-2: #dde3e7;
    --accent: #398335;
    --accent-2: #4a9a45;
    --accent-text: #62b85c;
    --accent-deep: #398335;
    --on-accent: #ffffff;
    --silver: #b3bbbb;
    --danger: #e5533d;
    --text: #f4f7f9;
    --muted: #9fb0bd;
    --ink: #031d32;
    --ink-muted: #4c6274;

    --f-title: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --ease: cubic-bezier(.2, .7, .1, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --wrap: 1240px;
    --gutter: clamp(20px, 4vw, 48px);
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--asphalt);
    color: var(--text);
    font: 400 17px/1.6 var(--f-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.is-loading, body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
.hero__media picture, .banner__media picture, .metier__img picture { display: block; height: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--on-accent); }

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   Typo & éléments communs
   -------------------------------------------------------------------------- */

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font: 600 14px/1 var(--f-title);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent-text);
}
.kicker--dark { color: var(--ink); }
.kicker__dot {
    width: 10px; height: 10px;
    background: var(--accent);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    animation: blink 1.6s steps(2) infinite;
}
.kicker--dark .kicker__dot { background: var(--accent-deep); }

@keyframes blink { 50% { opacity: .25; } }

.h2 {
    margin: 0;
    font: 800 clamp(42px, 6.4vw, 92px)/.92 var(--f-title);
    text-transform: uppercase;
    letter-spacing: -.01em;
}
.h2 em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-text);
}
.h2--dark em { -webkit-text-stroke-color: var(--ink); }

.h3 {
    margin: 0 0 16px;
    font: 800 clamp(36px, 4.4vw, 60px)/.95 var(--f-title);
    text-transform: uppercase;
}

.section-head { margin-bottom: clamp(48px, 7vw, 96px); }

.section--light { background: var(--concrete); color: var(--ink); }

/* Boutons */
.btn {
    --bg: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 2px solid transparent;
    background: var(--bg);
    font: 700 16px/1 var(--f-title);
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    transition: color .35s var(--ease), border-color .35s var(--ease), transform .25s var(--ease);
    will-change: transform;
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(-45deg, var(--asphalt) 0 14px, var(--navy-mid) 14px 28px);
    transform: translateY(101%);
    transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn--accent { --bg: var(--accent); color: var(--on-accent); }
.btn--accent:hover { color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost::before { background: var(--accent); }
.btn--ghost:hover { color: var(--on-accent); border-color: var(--accent); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--lg { padding: 19px 32px; font-size: 18px; }
.btn--block { width: 100%; }

.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.ico--arrow { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; transition: transform .35s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(5px); }

/* Grille "plan d'architecte" */
.blueprint {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(98,184,92,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(98,184,92,.07) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
}
.blueprint--soft { opacity: .7; mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 70%); }

/* Bande de chantier */
.tape {
    position: relative;
    z-index: 3;
    overflow: hidden;
    background: var(--accent);
    color: var(--on-accent);
    border-block: 6px solid transparent;
    border-image: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--accent) 12px 24px) 6;
}
.tape__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 32s linear infinite;
}
.tape__track span, .tape__track b {
    padding: 14px 28px;
    font: 800 clamp(20px, 2.4vw, 30px)/1 var(--f-title);
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.tape__track b { padding-inline: 0; font-size: 16px; color: var(--silver); }
@keyframes marquee { to { transform: translateX(-50%); } }

.tape--static {
    height: 18px;
    border: 0;
    background: repeating-linear-gradient(-45deg, var(--ink) 0 18px, var(--accent) 18px 36px);
    background-size: 51px 100%;
    animation: tape-slide 2s linear infinite;
}
@keyframes tape-slide { to { background-position: 51px 0; } }

/* --------------------------------------------------------------------------
   Préchargeur
   -------------------------------------------------------------------------- */

.loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: var(--asphalt);
    transition: clip-path 1s var(--ease-out) .1s;
    clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__inner { width: min(420px, 80vw); }
.loader__brand {
    font: 800 clamp(48px, 10vw, 84px)/.9 var(--f-title);
    text-transform: uppercase;
    margin-bottom: 22px;
}
.loader__brand span { color: var(--accent-text); }
.loader__bar {
    height: 14px;
    background: var(--steel);
    overflow: hidden;
}
.loader__bar span {
    display: block;
    height: 100%;
    width: 0;
    background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, var(--ink) 10px 20px);
    background-size: 28.3px 100%;
    animation: tape-slide .6s linear infinite;
    transition: width .35s var(--ease);
}
.loader__label {
    margin-top: 14px;
    font: 600 13px/1 var(--f-title);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Barre de progression de lecture */
.progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    height: 4px;
    pointer-events: none;
}
.progress span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform-origin: 0 50%;
    transform: scaleX(0);
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease);
}
.header.is-scrolled {
    background: rgba(3, 29, 50, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: var(--wrap);
    height: var(--header-h);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: auto;
}
.logo__mark {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    background: var(--accent);
    color: var(--on-accent);
    clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
    transition: transform .5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__mark svg { width: 28px; height: 28px; }
.logo__text {
    font: 600 26px/1 var(--f-title);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.logo__text strong { font-weight: 800; color: var(--accent-text); }

.nav { display: flex; gap: 6px; }
.nav a {
    position: relative;
    padding: 8px 12px;
    font: 600 16px/1 var(--f-title);
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255,255,255,.82);
    transition: color .3s;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.burger {
    display: none;
    width: 48px; height: 48px;
    padding: 12px;
    border: 0;
    background: var(--accent);
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
}
.burger span {
    display: block;
    height: 3px;
    margin: 4px 0;
    background: var(--on-accent);
    transition: transform .4s var(--ease), opacity .3s;
}
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: calc(var(--header-h) + 20px) var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
    background: var(--asphalt);
    background-image: repeating-linear-gradient(-45deg, rgba(98,184,92,.04) 0 30px, transparent 30px 60px);
    animation: menu-in .5s var(--ease-out);
}
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font: 800 clamp(40px, 11vw, 64px)/1 var(--f-title);
    text-transform: uppercase;
    text-decoration: none;
}
.mobile-menu nav a small { font-size: 14px; color: var(--accent-text); letter-spacing: .1em; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: var(--asphalt);
}
.hero__media {
    position: absolute;
    inset: -8% 0 -8%;
    z-index: 0;
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% center;
    transform: scale(1.18);
    animation: kenburns 22s ease-out forwards;
    animation-play-state: paused;
}
.is-ready .hero__media img { animation-play-state: running; }
@keyframes kenburns { to { transform: scale(1.04) translate(-1.5%, 1%); } }

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(3,29,50,.55) 0%, rgba(3,29,50,.15) 35%, rgba(3,29,50,.85) 78%, var(--asphalt) 100%),
        linear-gradient(90deg, rgba(3,29,50,.85) 0%, rgba(3,29,50,.2) 65%);
}
.hero__dust { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

.hero__content {
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: clamp(70px, 10vh, 120px);
}
.hero__title {
    margin: 0 0 28px;
    font: 800 clamp(58px, 11vw, 168px)/.86 var(--f-title);
    text-transform: uppercase;
    letter-spacing: -.015em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span {
    display: inline-block;
    transform: translateY(105%) skewY(6deg);
    transition: transform 1.1s var(--ease-out);
}
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.hero__title .line:nth-child(3) > span { transition-delay: .24s; }
.line--accent { color: var(--accent-text); }
.is-ready .hero__title .line > span { transform: none; }

.hero__kicker, .hero__lead, .hero__ctas {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.is-ready .hero__kicker { opacity: 1; transform: none; }
.is-ready .hero__lead { opacity: 1; transform: none; transition-delay: .45s; }
.is-ready .hero__ctas { opacity: 1; transform: none; transition-delay: .6s; }

.hero__lead {
    max-width: 560px;
    margin: 0 0 36px;
    font-size: clamp(17px, 1.6vw, 20px);
    color: rgba(255,255,255,.85);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue {
    position: absolute;
    right: var(--gutter);
    bottom: 110px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font: 600 12px/1 var(--f-title);
    letter-spacing: .3em;
    text-transform: uppercase;
    text-decoration: none;
    writing-mode: vertical-rl;
}
.scroll-cue i {
    position: relative;
    width: 2px; height: 70px;
    background: rgba(255,255,255,.2);
    overflow: hidden;
}
.scroll-cue i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.intro { padding-block: clamp(90px, 13vw, 170px); position: relative; overflow: hidden; }
.intro::before {
    content: "BTP";
    position: absolute;
    right: -2vw; top: 50%;
    transform: translateY(-50%);
    font: 800 34vw/1 var(--f-title);
    color: rgba(0,0,0,.035);
    pointer-events: none;
}
.intro__text {
    max-width: 1080px;
    margin: 0 0 clamp(60px, 8vw, 100px);
    font: 700 clamp(30px, 4.2vw, 58px)/1.08 var(--f-title);
    text-transform: uppercase;
}
.scrub .w { color: rgba(23,24,26,.14); transition: color .25s; }
.scrub .w.on { color: var(--ink); }
.scrub .w.hl.on { color: var(--accent-deep); }

.intro__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 2px solid var(--ink);
}
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(0,0,0,.15); }
.stat__num {
    display: block;
    font: 800 clamp(64px, 8vw, 120px)/.9 var(--f-title);
    color: var(--ink);
}
.stat__num--text { color: var(--accent-deep); }
.stat__label {
    display: block;
    margin-top: 10px;
    font: 600 15px/1.3 var(--f-title);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Métiers
   -------------------------------------------------------------------------- */

.metiers { padding-block: clamp(90px, 13vw, 170px); position: relative; }

.metier {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
}
.metier + .metier { margin-top: clamp(80px, 12vw, 160px); }
.metier--rev .metier__media { order: 2; }

.metier__media {
    position: relative;
    aspect-ratio: 4 / 3.4;
    max-width: 100%;
}
.metier__img {
    position: absolute;
    inset: -8% 0;
}
.reveal-mask { overflow: hidden; clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease-out); }
.metier--rev .reveal-mask { clip-path: inset(0 0 0 100%); }
.reveal-mask.in { clip-path: inset(0 0 0 0); }
.reveal-mask img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.25);
    transition: transform 1.8s var(--ease-out);
}
.reveal-mask.in img { transform: scale(1); }
.metier__media:hover img { transform: scale(1.04); transition-duration: .9s; }

.metier__tag {
    position: absolute;
    left: 0; bottom: 0;
    z-index: 2;
    padding: 12px 20px;
    background: var(--accent);
    color: var(--on-accent);
    font: 700 15px/1 var(--f-title);
    letter-spacing: .16em;
    text-transform: uppercase;
}
.metier--rev .metier__tag { left: auto; right: 0; }

.metier__body { position: relative; }
.metier__num {
    display: block;
    margin-bottom: 4px;
    font: 800 clamp(90px, 12vw, 170px)/.8 var(--f-title);
    color: transparent;
    -webkit-text-stroke: 2px rgba(98,184,92,.6);
}
.metier__body p { margin: 0 0 24px; color: rgba(255,255,255,.78); max-width: 480px; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
    position: relative;
    padding: 14px 0 14px 40px;
    border-top: 1px solid var(--line);
    font: 600 18px/1.3 var(--f-title);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 22px; height: 22px;
    margin-top: -11px;
    background: var(--accent);
    clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%);
}

/* Mur de briques animé */
.metier__media--wall {
    background:
        linear-gradient(180deg, transparent 88%, #6b5a45 88%) ,
        linear-gradient(180deg, #08355c, #042540);
    overflow: hidden;
}
.metier__media--wall::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(98,184,92,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(98,184,92,.06) 1px, transparent 1px);
    background-size: 30px 30px;
}
.wall {
    position: absolute;
    left: 8%; right: 8%;
    bottom: 12%;
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
}
.wall__row { display: flex; gap: 6px; }
.wall__row:nth-child(even) { padding-left: 7%; padding-right: 0; margin-left: -1px; }
.wall__row:nth-child(odd) { padding-right: 7%; }
.brick {
    flex: 1;
    height: clamp(22px, 3.4vw, 40px);
    background: linear-gradient(180deg, #c9744a, #a85834);
    box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.12);
    opacity: 0;
    transform: translateY(-260px) rotate(var(--r, 0deg));
}
.brick--stone { background: linear-gradient(180deg, #d8d2c4, #b9b2a2); }
.wall.in .brick {
    animation: brick-drop .7s var(--ease-out) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes brick-drop {
    0% { opacity: 0; transform: translateY(-260px) rotate(var(--r, 0deg)); }
    60% { opacity: 1; }
    80% { transform: translateY(4px) rotate(0); }
    100% { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Méthode
   -------------------------------------------------------------------------- */

.methode {
    position: relative;
    padding-block: clamp(90px, 13vw, 170px);
    background: var(--asphalt-2);
    overflow: hidden;
}
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.steps__rail {
    position: absolute;
    left: 0; right: 0;
    top: 34px;
    height: 4px;
    background: var(--steel);
}
.steps__rail span {
    display: block;
    height: 100%;
    background: repeating-linear-gradient(90deg, var(--accent) 0 22px, transparent 22px 30px);
    transform-origin: 0 50%;
    transform: scaleX(var(--p, 0));
}
.step { position: relative; padding-top: 100px; }
.step__num {
    position: absolute;
    top: 0; left: 0;
    display: grid;
    place-items: center;
    width: 72px; height: 72px;
    background: var(--asphalt-2);
    border: 3px solid var(--accent);
    color: var(--accent-text);
    font: 800 28px/1 var(--f-title);
    transform: rotate(45deg);
    transition: background .4s, color .4s;
}
.step__num i { font-style: normal; transform: rotate(-45deg); }
.step:hover .step__num { background: var(--accent); color: var(--on-accent); }
.step h3 {
    margin: 0 0 10px;
    font: 800 30px/1 var(--f-title);
    text-transform: uppercase;
}
.step p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   Bandeau
   -------------------------------------------------------------------------- */

.banner {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.banner__media { position: absolute; inset: -15% 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3,29,50,.92) 0%, rgba(3,29,50,.55) 60%, rgba(3,29,50,.25) 100%);
}
.banner__content { padding-block: 100px; }
.banner__quote {
    margin: 0 0 40px;
    font: 800 clamp(52px, 9vw, 136px)/.88 var(--f-title);
    text-transform: uppercase;
}
.banner__quote em { font-style: normal; color: var(--accent-text); }

/* --------------------------------------------------------------------------
   Engagements
   -------------------------------------------------------------------------- */

.engagements { padding-block: clamp(90px, 13vw, 170px); }
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.card {
    position: relative;
    padding: 36px 28px 40px;
    background: #fff;
    border-top: 6px solid var(--ink);
    transform-style: preserve-3d;
    transition: border-color .4s, box-shadow .4s var(--ease), transform .2s;
    will-change: transform;
}
.card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -6px;
    height: 6px;
    background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, var(--ink) 10px 20px);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease-out);
}
.card:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.card:hover::after { transform: scaleX(1); }
.card__ico {
    width: 56px; height: 56px;
    margin-bottom: 26px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 3;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.6s var(--ease-out) .3s;
}
.card.in .card__ico { stroke-dashoffset: 0; }
.card:hover .card__ico { stroke: var(--accent-deep); }
.card h3 {
    margin: 0 0 12px;
    font: 800 26px/1.05 var(--f-title);
    text-transform: uppercase;
}
.card p { margin: 0; color: var(--ink-muted); font-size: 16px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
    position: relative;
    padding-block: clamp(90px, 13vw, 170px);
    overflow: hidden;
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
}
.contact__lead { margin: 28px 0 40px; max-width: 440px; color: rgba(255,255,255,.8); font-size: 18px; }

.phone {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}
.phone__ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px; height: 76px;
    flex: none;
    border-radius: 50%;
    background: var(--accent);
}
.phone__ring::before, .phone__ring::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: ring 2.4s var(--ease) infinite;
}
.phone__ring::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.phone__ring svg { width: 32px; height: 32px; fill: var(--on-accent); animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle {
    0%, 60%, 100% { transform: rotate(0); }
    65%, 75%, 85% { transform: rotate(-14deg); }
    70%, 80%, 90% { transform: rotate(14deg); }
}
.phone__txt {
    font: 800 clamp(38px, 4.6vw, 60px)/1 var(--f-title);
    letter-spacing: .01em;
    transition: color .3s;
}
.phone__txt small {
    display: block;
    margin-bottom: 6px;
    font: 600 14px/1 var(--f-title);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}
.phone:hover .phone__txt { color: var(--accent-text); }
.contact__mail { margin: 26px 0 0; color: var(--muted); }
.contact__mail a { color: #fff; text-decoration-color: var(--accent); text-underline-offset: 4px; }

.contact__form-wrap {
    position: relative;
    padding: clamp(28px, 4vw, 48px);
    background: var(--asphalt-2);
    border: 1px solid var(--line);
}
.contact__form-wrap::before {
    content: "";
    position: absolute;
    left: -1px; right: -1px; top: -1px;
    height: 8px;
    background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, var(--ink) 12px 24px);
}

.notice { margin-bottom: 24px; padding: 16px 18px; font-size: 16px; border-left: 5px solid; animation: notice-in .6s var(--ease-out); }
.notice--ok { background: rgba(70, 190, 110, .12); border-color: #46be6e; }
.notice--err { background: rgba(229, 83, 61, .12); border-color: var(--danger); }
@keyframes notice-in { from { opacity: 0; transform: translateY(-10px); } }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea {
    width: 100%;
    padding: 26px 16px 10px;
    border: 0;
    border-bottom: 2px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.04);
    color: #fff;
    font: 500 17px/1.4 var(--f-body);
    border-radius: 0;
    transition: border-color .3s, background .3s;
    resize: vertical;
}
.field textarea { min-height: 150px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); background: rgba(255,255,255,.07); }
.field label {
    position: absolute;
    left: 16px; top: 19px;
    font: 600 15px/1 var(--f-title);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    pointer-events: none;
    transform-origin: 0 0;
    transition: transform .3s var(--ease), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
    transform: translateY(-11px) scale(.72);
    color: var(--accent-text);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }

.chips { margin: 4px 0 22px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend {
    margin-bottom: 12px;
    padding: 0;
    font: 600 14px/1 var(--f-title);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
    display: inline-block;
    padding: 10px 16px;
    border: 2px solid rgba(255,255,255,.18);
    font: 600 15px/1 var(--f-title);
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: all .25s var(--ease);
}
.chips label:hover span { border-color: var(--accent); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.footer { background: #021526; }
.footer__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px 40px;
    padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px));
}
.logo--footer { margin: 0; }
.footer__tagline {
    margin: 0;
    font: 600 14px/1.3 var(--f-title);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { text-decoration: none; font-weight: 600; transition: color .3s; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: #7f93a3; }

/* Bouton d'appel flottant (mobile) */
.fab-call {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--accent);
    color: var(--on-accent);
    font: 800 17px/1 var(--f-title);
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 12px 30px -8px rgba(0,0,0,.6);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    transform: translateY(150%);
    transition: transform .5s var(--ease-out);
}
.fab-call.is-visible { transform: none; }
.fab-call svg { width: 20px; height: 20px; fill: currentColor; animation: wiggle 2.4s ease-in-out infinite; }

/* --------------------------------------------------------------------------
   Apparitions au scroll
   -------------------------------------------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }
.card[data-reveal].in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
    .steps__rail { display: none; }
}

@media (max-width: 900px) {
    :root { --header-h: 66px; }
    .nav, .header__call { display: none; }
    .burger { display: block; }
    .fab-call { display: inline-flex; }
    .metier, .metier--rev { grid-template-columns: 1fr; }
    .metier--rev .metier__media { order: 0; }
    .contact__grid { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; }
    .scroll-cue { display: none; }
    .logo__text { font-size: 23px; }
    .logo__mark { width: 38px; height: 38px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .cards, .steps { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; gap: 0; }
    .intro__stats { grid-template-columns: 1fr; }
    .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid rgba(0,0,0,.15); margin-top: 24px; }
    .hero__ctas .btn { width: 100%; }
    .phone__ring { width: 60px; height: 60px; }
    .phone__ring svg { width: 26px; height: 26px; }
    .banner { min-height: 64vh; }
    .h2 em { -webkit-text-stroke-width: 1.5px; }
}

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

/* --------------------------------------------------------------------------
   Éléments de la charte : courbes et trames de points
   -------------------------------------------------------------------------- */

.swoosh {
    position: absolute;
    top: 0; right: 0;
    z-index: 2;
    width: clamp(120px, 22vw, 360px);
    height: 100%;
    pointer-events: none;
}
.swoosh__fill { fill: var(--navy-mid); opacity: .55; }
.swoosh__green, .swoosh__silver {
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    transition: stroke-dashoffset 2.2s var(--ease-out) .5s;
}
.swoosh__green { stroke: var(--accent); stroke-width: 16; }
.swoosh__silver { stroke: var(--silver); stroke-width: 5; transition-delay: .75s; }
.is-ready .swoosh__green, .is-ready .swoosh__silver { stroke-dashoffset: 0; }

.dots {
    position: absolute;
    z-index: 1;
    width: clamp(180px, 30vw, 420px);
    aspect-ratio: 1;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--accent-text) 1.6px, transparent 2.2px);
    background-size: 14px 14px;
    opacity: .45;
    animation: dots-drift 14s linear infinite;
}
.dots--tl { top: 0; left: 0; mask-image: radial-gradient(circle at 0 0, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(circle at 0 0, #000 0%, transparent 65%); }
.dots--tr { top: 0; right: 0; mask-image: radial-gradient(circle at 100% 0, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(circle at 100% 0, #000 0%, transparent 65%); }
.dots--br { bottom: 0; right: 0; mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 65%); }
@keyframes dots-drift { to { background-position: 14px 14px; } }

@media (max-width: 600px) {
    .swoosh { width: 90px; opacity: .8; }
}
