/* ============================================================
   LEC GROUP — Site CSS
   Identité : « Swiss International moderne » — clair, sobre,
   sans-serif, blanc froid, croix rouge vive comme accent unique.
   Font : Hanken Grotesk (auto-hébergée, latin + latin-ext).
   ============================================================ */

/* ---------- Self-hosted font (latin + latin-ext) ---------- */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/fonts/hanken-grotesk-300-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/fonts/hanken-grotesk-300-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
    /* Palette : blanc froid + encre + rouge suisse vif */
    --bg:        #f7f8fa;
    --bg-alt:    #edf0f4;
    --bg-panel:  #ffffff;
    --ink:       #0b0b0c;
    --ink-soft:  #565c66;
    --ink-faint: #9aa3ae;
    --line:      #e6e9ee;
    --line-2:    #d5dae2;
    --red:       #e11414;
    --red-deep:  #b30f0f;

    /* Type */
    --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Spacing */
    --gutter: clamp(1rem, 3.2vw, 2.5rem);
    --section-y: clamp(4.5rem, 10vw, 9rem);

    /* Motion */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Focus : masquer les défauts, restaurer un anneau élégant pour l'interactif.
   <FocusOnNavigate> déplace le focus clavier vers le H1 — on supprime l'anneau sur les titres. */
:focus,
:focus-visible { outline: none; }
h1, h2, h3, h4, h5, h6 { outline: none !important; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 2px;
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    color-scheme: light only;
}
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'ss01', 'cv11';
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
::selection { background: var(--red); color: #fff; }

/* ---------- Layout primitives ---------- */
.container {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.5rem;
    border-radius: 5px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    line-height: 1;
    border: 1.5px solid transparent;
    transition: background .25s var(--ease), color .25s var(--ease),
                border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--red); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-2px); }
.arrow {
    width: .5rem; height: .5rem;
    border-right: 1.6px solid currentColor;
    border-top: 1.6px solid currentColor;
    transform: rotate(45deg);
    transition: transform .3s var(--ease);
}
.btn:hover .arrow { transform: rotate(45deg) translate(2px, -2px); }

/* ---------- Site Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 1.15rem 0;
    transition: background .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease), padding .25s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom-color: var(--line);
    padding: .75rem 0;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    display: inline-flex;
    align-items: baseline;
    gap: .55rem;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.brand__mark {
    display: inline-block;
    width: .55rem; height: .55rem;
    background: var(--red);
    transform: translateY(-.05rem);
}
.brand__suffix {
    font-family: var(--sans);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--ink-faint);
    margin-left: .15rem;
}
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a {
    font-family: var(--sans);
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-soft);
    position: relative;
    padding: .25rem 0;
    transition: color .25s var(--ease);
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--red);
    transition: right .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }
.nav__cta {
    color: var(--ink) !important;
    padding: .55rem 1rem !important;
    border: 1.5px solid var(--line-2);
    border-radius: 6px;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease) !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--ink); color: #fff !important; border-color: var(--ink); }

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 2.6rem; height: 2.6rem;
    margin-right: -.4rem;
    border-radius: 6px;
    color: var(--ink);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    display: block;
    width: 1.3rem; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; left: 0; top: -6px; }
.nav-toggle__bars::after { position: absolute; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .25rem var(--gutter) 1rem;
        background: color-mix(in srgb, var(--bg) 95%, transparent);
        backdrop-filter: saturate(140%) blur(14px);
        -webkit-backdrop-filter: saturate(140%) blur(14px);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -32px rgba(11, 11, 12, .35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav a {
        display: block;
        padding: .9rem .25rem;
        font-size: .95rem;
        letter-spacing: .08em;
        color: var(--ink);
    }
    .nav a:not(.nav__cta) { border-bottom: 1px solid var(--line); }
    .nav a::after { display: none; }
    .nav__cta {
        margin-top: .75rem;
        text-align: center;
        border: 1.5px solid var(--ink) !important;
        border-radius: 6px !important;
        padding: .85rem 1rem !important;
    }
}
@media (max-width: 480px) {
    .brand { font-size: .88rem; letter-spacing: .12em; }
    .brand__suffix { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.v2-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: clamp(8rem, 16vh, 11rem) 0 clamp(3rem, 8vh, 6rem);
    overflow: hidden;
}
.v2-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
    background-size: clamp(64px, 7vw, 104px) clamp(64px, 7vw, 104px);
    opacity: .55;
    mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 78%);
    animation: v2-grid-in 1.4s var(--ease) .3s both;
}
.v2-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(3rem, 6vw, 4.5rem);
    align-items: center;
}
@media (min-width: 980px) {
    .v2-hero__inner { grid-template-columns: 1.18fr .82fr; }
}

.v2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.v2-eyebrow__dot {
    width: .5rem; height: .5rem;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 45%, transparent);
    animation: v2-pulse 2.4s var(--ease) infinite;
}

.v2-hero__title {
    margin: clamp(1.4rem, 3vw, 2.1rem) 0 0;
    font-weight: 800;
    font-size: clamp(2.4rem, 7.2vw, 5.6rem);
    line-height: .95;
    letter-spacing: -.038em;
    color: var(--ink);
}
/* En deux colonnes, la colonne texte ne fait que ~52% du viewport : on réduit le
   titre pour que « taillés sur mesure. » tienne sur une ligne (980–1300px). */
@media (min-width: 980px) { .v2-hero__title { font-size: clamp(2.6rem, 6.3vw, 5.6rem); } }
.v2-line { display: block; overflow: hidden; padding-bottom: .04em; }
.v2-line > span { display: block; animation: v2-up .95s var(--ease) both; animation-delay: var(--d, 0s); }
.v2-dot { color: var(--red); font-style: normal; }

.v2-hero__sub {
    margin: clamp(1.4rem, 2.4vw, 1.9rem) 0 0;
    max-width: 40ch;
    font-size: clamp(1.06rem, 1.4vw, 1.28rem);
    line-height: 1.5;
    font-weight: 430;
    color: var(--ink-soft);
}

.v2-hero__ctas { margin-top: clamp(2rem, 3.4vw, 2.6rem); display: flex; flex-wrap: wrap; gap: .8rem; }

.v2-stats { margin-top: clamp(2.5rem, 5vw, 3.6rem); display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; align-items: start; }
.v2-stat { min-width: 0; padding: 0 clamp(.9rem, 2.4vw, 2.6rem); }
.v2-stat:first-child { padding-left: 0; }
.v2-stat:last-child { padding-right: 0; }
.v2-stat:not(:last-child) { border-right: 1px solid var(--line); }
.v2-stat__num { display: block; font-weight: 700; font-size: clamp(1.95rem, 3vw, 2.7rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.v2-stat__num sup { font-size: .5em; color: var(--red); margin-left: .06em; }
.v2-stat__lbl { display: block; margin-top: .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 479px) {
    .v2-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .v2-stat { padding-inline: .75rem; }
    .v2-stat__lbl { font-size: .64rem; letter-spacing: .1em; }
}

/* Hero — panneau modulaire + croix fédérale */
.v2-hero__art { display: flex; flex-direction: column; gap: 1rem; }
.v2-art__panel {
    position: relative;
    width: 100%;
    max-width: 30rem;
    aspect-ratio: 1;
    margin-inline: auto;
    background: var(--bg-panel);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 36px 70px -44px rgba(11, 11, 12, .35);
    animation: v2-panel-in .9s var(--ease) .35s both;
}
.v2-art__qr {
    position: absolute;
    inset: clamp(1.1rem, 6%, 1.9rem);
    animation: v2-cross-in 1s var(--ease) .6s both;
}
.v2-art__qr svg { width: 100%; height: 100%; display: block; }
.v2-art__scan {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--red) 24%, var(--red) 76%, transparent);
    box-shadow: 0 0 10px 1px color-mix(in srgb, var(--red) 38%, transparent);
    opacity: .4;
    animation: v2-scan 2.3s ease-in-out .6s infinite alternate;
}
.v2-art__tick { position: absolute; width: 12px; height: 12px; animation: v2-rise .6s var(--ease) 1.15s both; }
.v2-art__tick--tl { top: 12px; left: 12px; border-top: 1.5px solid var(--ink-faint); border-left: 1.5px solid var(--ink-faint); }
.v2-art__tick--tr { top: 12px; right: 12px; border-top: 1.5px solid var(--ink-faint); border-right: 1.5px solid var(--ink-faint); }
.v2-art__tick--bl { bottom: 12px; left: 12px; border-bottom: 1.5px solid var(--ink-faint); border-left: 1.5px solid var(--ink-faint); }
.v2-art__tick--br { bottom: 12px; right: 12px; border-bottom: 1.5px solid var(--ink-faint); border-right: 1.5px solid var(--ink-faint); }
.v2-art__caption { align-self: center; font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); animation: v2-rise .7s var(--ease) 1.25s both; }

.v2-rise { animation: v2-rise .8s var(--ease) both; animation-delay: var(--d, 0s); }

/* ============================================================
   SECTIONS
   ============================================================ */
.v2-section { padding: var(--section-y) 0; position: relative; }
.v2-section--alt { background: var(--bg-alt); }

.v2-head { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) { .v2-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 3rem; } }
.v2-idx { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.v2-idx__n { color: var(--red); font-weight: 700; }
.v2-h2 { font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 3.4rem); line-height: 1.0; letter-spacing: -.035em; color: var(--ink); max-width: 20ch; text-wrap: balance; }
@media (max-width: 479px) { .v2-h2 br { display: none; } }
.v2-lead { color: var(--ink-soft); font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; max-width: 54ch; font-weight: 430; }

/* Bande secteurs */
.v2-sectors { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-panel); }
.v2-sectors__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .7rem 1.4rem; padding: 1.3rem 0; }
.v2-sectors__row span { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.v2-sectors__row i { width: .3rem; height: .3rem; border-radius: 50%; background: var(--red); }
@media (max-width: 639px) {
    .v2-sectors__row { gap: .55rem 1.1rem; padding: 1.1rem 0; }
    .v2-sectors__row i { display: none; }
}

/* Services */
.v2-services { display: grid; grid-template-columns: 1fr; background: var(--bg-panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
@media (min-width: 640px)  { .v2-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .v2-services { grid-template-columns: repeat(4, 1fr); } }
.v2-service { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 2.25rem 1.6rem; border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
@media (min-width: 640px) and (max-width: 1023.98px) { .v2-service:nth-child(2n+1) { border-right: 1px solid var(--line); } }
@media (min-width: 1024px) { .v2-service:not(:nth-child(4n)) { border-right: 1px solid var(--line); } .v2-service { min-height: 19rem; } }
.v2-service:hover { background: #f4f6f9; }
.v2-service__bar { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.v2-service:hover .v2-service__bar { transform: scaleX(1); }
.v2-service__n { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.v2-service__t { font-weight: 700; font-size: 1.2rem; line-height: 1.2; letter-spacing: -.012em; color: var(--ink); }
.v2-service__d { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.v2-service__tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4rem; }
.v2-tag { font-size: .7rem; font-weight: 500; letter-spacing: .02em; padding: .28rem .55rem; border: 1px solid var(--line-2); border-radius: 5px; color: var(--ink-soft); }

/* Approche / piliers */
.v2-pillars { display: grid; grid-template-columns: 1fr; margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line-2); }
@media (min-width: 640px)  { .v2-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .v2-pillars { grid-template-columns: repeat(4, 1fr); } }
.v2-pillar { display: flex; flex-direction: column; gap: .65rem; padding: 2rem 1.5rem 2.25rem 0; border-bottom: 1px solid var(--line-2); }
@media (min-width: 640px) and (max-width: 1023.98px) {
    .v2-pillar { padding-left: 1.5rem; padding-right: 0; }
    .v2-pillar:nth-child(odd) { padding-left: 0; padding-right: 2rem; border-right: 1px solid var(--line-2); }
}
@media (min-width: 1024px) {
    .v2-pillar:nth-child(n) { padding-left: 1.5rem; padding-right: 1.5rem; border-right: 1px solid var(--line-2); }
    .v2-pillar:first-child { padding-left: 0; }
    .v2-pillar:last-child  { border-right: 0; padding-right: 0; }
}
.v2-pillar__n { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; color: var(--red); }
.v2-pillar__t { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); }
.v2-pillar__d { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }

/* Réalisations */
.v2-works { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 900px) { .v2-works { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.v2-work { display: flex; flex-direction: column; gap: 1.4rem; padding: clamp(1.5rem, 2.5vw, 2.2rem); background: var(--bg-panel); border: 1px solid var(--line-2); border-radius: 14px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.v2-work:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -45px rgba(11, 11, 12, .4); border-color: var(--line); }
.v2-work__head { display: flex; flex-direction: column; gap: .35rem; }
.v2-work__kicker { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.v2-work__name { font-weight: 800; font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -.02em; color: var(--ink); }
.v2-work__d { color: var(--ink-soft); font-size: .98rem; line-height: 1.5; }
.v2-work__meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.v2-work__url { color: var(--ink); display: inline-flex; align-items: center; gap: .45rem; padding: .4rem 0; margin: -.4rem 0; transition: color .25s var(--ease); }
.v2-work__url:hover { color: var(--red); }
.v2-work__url .arrow { width: .42rem; height: .42rem; }

/* Cadre navigateur */
.v2-browser { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.v2-browser__bar { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; background: #fbfcfd; border-bottom: 1px solid var(--line); }
.v2-browser__dots { display: flex; gap: .35rem; flex: 0 0 auto; }
.v2-browser__dots span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--line-2); }
.v2-browser__url { flex: 1; font-size: .68rem; letter-spacing: .04em; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: .25rem .6rem; }
.v2-browser__body { position: relative; overflow: hidden; padding: 1rem; background: linear-gradient(180deg, #fff, #f6f8fb); }
@media (min-width: 900px) { .v2-browser__body { aspect-ratio: 16 / 10; min-height: max-content; } }

/* Maquette Bordero */
.v2-mock-bordero { display: flex; flex-direction: column; gap: .5rem; height: 100%; }
.v2-mb__head { display: flex; align-items: center; justify-content: space-between; }
.v2-mb__title { font-weight: 700; font-size: .78rem; color: var(--ink); }
.v2-mb__badge { font-size: .58rem; font-weight: 700; letter-spacing: .08em; color: #fff; background: var(--red); padding: .15rem .4rem; border-radius: 3px; }
.v2-doc-row { display: flex; align-items: center; gap: .55rem; padding: .45rem .55rem; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.v2-doc-row__ic { width: 1.05rem; height: 1.35rem; flex: 0 0 auto; border: 1px solid var(--line-2); border-radius: 2px; background: linear-gradient(#fff, #f1f4f8); }
.v2-doc-row__lines { flex: 1; display: flex; flex-direction: column; gap: .28rem; }
.v2-doc-row__lines i { display: block; height: .3rem; background: var(--line); border-radius: 2px; }
.v2-doc-row__lines i:first-child { width: 55%; }
.v2-doc-row__lines i:last-child  { width: 85%; }
.v2-doc-row__ok { position: relative; width: 1rem; height: 1rem; flex: 0 0 auto; border-radius: 50%; border: 1.5px solid var(--red); }
.v2-doc-row__ok::after { content: ""; position: absolute; left: 50%; top: 46%; width: .42rem; height: .22rem; border-left: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red); transform: translate(-50%, -50%) rotate(-45deg); }
.v2-mb__cta { margin-top: auto; text-align: center; font-size: .72rem; font-weight: 600; color: var(--red); border: 1.5px dashed color-mix(in srgb, var(--red) 45%, var(--line-2)); border-radius: 7px; padding: .5rem; }

/* Maquette YodaBill (facture) */
.v2-mock-invoice { height: 100%; display: flex; flex-direction: column; gap: .65rem; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: .85rem 1rem; }
.v2-mi__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.v2-mi__brand { font-weight: 800; font-size: 1rem; letter-spacing: -.01em; color: var(--red); }
.v2-mi__num { font-size: .66rem; font-weight: 600; letter-spacing: .1em; color: var(--ink-faint); }
.v2-mi__grid { display: flex; gap: 1rem; align-items: flex-end; justify-content: space-between; }
.v2-mi__rows { flex: 1; display: flex; flex-direction: column; gap: .32rem; font-size: .72rem; }
.v2-mi__row { display: flex; justify-content: space-between; color: var(--ink-soft); }
.v2-mi__row span:last-child { color: var(--ink); font-weight: 500; }
.v2-mi__total { display: flex; justify-content: space-between; margin-top: .3rem; padding-top: .45rem; border-top: 1px solid var(--line); font-weight: 800; font-size: .82rem; color: var(--ink); }
/* Fondateur */
.v2-founder { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .v2-founder { grid-template-columns: minmax(260px, 1fr) 1.6fr; } }
.v2-founder__fig { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 899px) { .v2-founder__fig { max-width: 24rem; } }
.v2-founder__photo { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border: 1px solid var(--line-2); border-radius: 14px; filter: grayscale(100%) contrast(1.03); transition: filter .5s var(--ease); }
.v2-founder__photo:hover { filter: grayscale(75%) contrast(1.06) brightness(1.03); }
.v2-founder__cap { display: flex; flex-direction: column; gap: .15rem; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.v2-founder__cap b { color: var(--ink); font-weight: 700; }
.v2-founder__body { display: flex; flex-direction: column; gap: 1.4rem; }
.v2-founder__lede { font-weight: 600; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.4; letter-spacing: -.015em; color: var(--ink); }
.v2-founder__p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.v2-founder__creds { margin-top: .5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 1rem; }
.v2-cred { display: grid; grid-template-columns: 1fr; gap: .25rem; }
@media (min-width: 640px) { .v2-cred { grid-template-columns: 8.5rem 1fr; gap: 1.25rem; align-items: baseline; } }
.v2-cred__l { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.v2-cred__v { font-size: 1.02rem; font-weight: 500; color: var(--ink); }
.v2-cred__v a { color: var(--ink); border-bottom: 1px solid var(--line-2); transition: color .25s var(--ease), border-color .25s var(--ease); }
.v2-cred__v a:hover { color: var(--red); border-bottom-color: var(--red); }

/* Contact */
.v2-contact { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .v2-contact { grid-template-columns: 1.2fr 1fr; } }
.v2-contact__intro { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 2.5rem); }
.v2-contact__title { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.0; letter-spacing: -.035em; color: var(--ink); }
.v2-contact__title em { font-style: normal; color: var(--red); }
.v2-contact__details { display: flex; flex-direction: column; gap: 1.75rem; }
.v2-detail__l { display: block; margin-bottom: .4rem; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.v2-detail__v { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.v2-detail__v a { color: var(--ink); border-bottom: 1px solid var(--line-2); transition: color .25s var(--ease), border-color .25s var(--ease); }
.v2-detail__v a:hover { color: var(--red); border-bottom-color: var(--red); }
.v2-detail__s { margin-top: .3rem; font-size: .9rem; color: var(--ink-soft); }

/* Formulaire */
.v2-form { display: flex; flex-direction: column; gap: 1.1rem; background: var(--bg-panel); border: 1px solid var(--line-2); border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.2rem); }
.v2-form__row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 560px) { .v2-form__row { grid-template-columns: 1fr 1fr; } }
.v2-field { display: flex; flex-direction: column; gap: .4rem; }
.v2-field__l { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.v2-field__opt { letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink-faint); }
.v2-input { width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 7px; padding: .75rem .85rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.v2-input::placeholder { color: var(--ink-faint); }
.v2-input:hover { border-color: var(--ink-faint); }
.v2-input:focus, .v2-input:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 14%, transparent); }
.v2-textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.v2-input.invalid, .v2-input.modified.invalid { border-color: var(--red); background: color-mix(in srgb, var(--red) 4%, #fff); }
.v2-msg { font-size: .74rem; font-weight: 500; color: var(--red-deep); }
.v2-form__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: .25rem; }
.v2-form__note { font-size: .85rem; color: var(--ink-soft); }
.v2-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.v2-form-error { font-size: .9rem; color: var(--red-deep); background: color-mix(in srgb, var(--red) 8%, #fff); border: 1px solid color-mix(in srgb, var(--red) 25%, transparent); border-radius: 7px; padding: .7rem .9rem; }
.v2-form-success { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 0; }
.v2-form-success__mark { position: relative; width: 2.5rem; height: 2.5rem; margin-bottom: .5rem; border-radius: 50%; border: 1.5px solid var(--red); }
.v2-form-success__mark::after { content: ""; position: absolute; left: 50%; top: 46%; width: .85rem; height: .45rem; border-left: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red); transform: translate(-50%, -50%) rotate(-45deg); }
.v2-form-success h3 { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: var(--ink); }
.v2-form-success p { color: var(--ink-soft); max-width: 38ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0b0b0c; color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--red) 50%, transparent); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: end; margin-bottom: 3rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__lead { font-family: var(--sans); font-weight: 700; font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.2; letter-spacing: -.02em; color: #fff; max-width: 24ch; }
.footer__lead em { color: var(--red); font-style: normal; }
@media (max-width: 639px) { .footer__lead { max-width: none; text-wrap: balance; } .footer__lead br { display: none; } }
.footer__col-title { font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: #8b9099; margin-bottom: 1rem; }
.footer__list { display: flex; flex-direction: column; gap: .5rem; }
.footer__list a, .footer__list span { color: color-mix(in srgb, #fff 78%, transparent); font-size: .92rem; transition: color .25s var(--ease); }
.footer__list a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid color-mix(in srgb, #fff 12%, transparent); padding-top: 1.75rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, #fff 55%, transparent); }
.footer__brand { font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: #fff; font-size: .95rem; }

/* ============================================================
   404 — Page introuvable
   ============================================================ */
.not-found { position: relative; overflow: hidden; min-height: calc(100vh - 5rem); display: flex; align-items: center; padding: clamp(5rem, 12vh, 9rem) 0 clamp(3rem, 6vh, 5rem); }
.not-found__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.not-found__grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: .6;
    mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 78%);
}
.not-found__cross { position: absolute; right: -8%; top: -12%; width: clamp(18rem, 32vmin, 28rem); opacity: .08; rotate: 22deg; }
.not-found__ghost { position: absolute; right: clamp(-3rem, -2vw, -1rem); bottom: clamp(-2rem, -3vh, -1rem); font-family: var(--sans); font-weight: 800; font-size: clamp(14rem, 38vw, 30rem); line-height: .85; color: var(--red); opacity: .06; letter-spacing: -.05em; user-select: none; }
.not-found .container { position: relative; z-index: 1; width: 100%; }
.not-found__inner { max-width: 58rem; }
.not-found__meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.not-found__meta-num { color: var(--red); font-weight: 700; }
.not-found__meta-sep { display: inline-block; width: 2rem; height: 1px; background: var(--ink-faint); }
.not-found__title { font-weight: 800; font-size: clamp(2.5rem, 6.5vw, 5rem); line-height: 1.0; letter-spacing: -.035em; margin: 0 0 1.5rem; color: var(--ink); }
.not-found__title em { font-style: normal; color: var(--red); }
.not-found__lede { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); max-width: 48ch; margin: 0 0 clamp(2rem, 4vw, 3rem); font-weight: 430; }
.not-found__ctas { margin-top: clamp(1rem, 2vw, 1.5rem); display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   Reveal & keyframes
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes v2-up    { from { transform: translateY(112%); } to { transform: translateY(0); } }
@keyframes v2-rise  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes v2-panel-in { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes v2-grid-in  { from { opacity: 0; } to { opacity: .8; } }
@keyframes v2-cross-in { from { opacity: 0; clip-path: inset(50% 50% 50% 50%); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes v2-pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 45%, transparent); }
    60%      { box-shadow: 0 0 0 7px color-mix(in srgb, var(--red) 0%, transparent); }
}
@keyframes v2-scan {
    from { top: 0; }
    to   { top: calc(100% - 4px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .v2-line > span, .v2-rise, .v2-hero__grid, .v2-art__panel,
    .v2-art__qr, .v2-art__tick, .v2-art__caption, .v2-eyebrow__dot { animation: none !important; }
    .v2-art__qr { opacity: 1; clip-path: none; }
    .v2-art__scan { display: none; }
}

/* ============================================================
   Page « œuf de Pâques » — /croix (accessible via le QR du hero)
   ============================================================ */
.egg {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: clamp(7rem, 16vh, 11rem) 0 clamp(4rem, 8vh, 6rem);
}
.egg__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.egg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
    background-size: clamp(64px, 7vw, 104px) clamp(64px, 7vw, 104px);
    opacity: .5;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 22%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 22%, transparent 78%);
}
.egg__inner { position: relative; z-index: 1; max-width: 46rem; }
.egg--term .egg__inner { max-width: 52rem; width: 100%; }

/* Terminal — fausse console (page /croix) */
.term {
    --term-bg: #0d0e12;
    --term-fg: #f2f4f7;
    --term-dim: #aab1bd;
    border-radius: 12px;
    overflow: hidden;
    background: var(--term-bg);
    border: 1px solid #23262e;
    box-shadow: 0 40px 80px -50px rgba(11, 11, 12, .6);
    font-family: ui-monospace, 'SFMono-Regular', 'Cascadia Code', 'JetBrains Mono', Menlo, Consolas, monospace;
    animation: v2-panel-in .8s var(--ease) .15s both;
}
.term__bar {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem .9rem;
    background: #16181f;
    border-bottom: 1px solid #23262e;
}
.term__dots { display: inline-flex; gap: .4rem; }
.term__dots i { width: .7rem; height: .7rem; border-radius: 50%; background: #3a3f4b; }
.term__dots i:first-child { background: #ec6a5e; }
.term__dots i:nth-child(2) { background: #f4be4f; }
.term__dots i:nth-child(3) { background: #61c554; }
.term__title { font-size: .78rem; letter-spacing: .04em; color: #8a92a0; }
.term__body {
    padding: clamp(1.1rem, 2.5vw, 1.8rem) clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.4rem, 3vw, 2rem);
    font-size: clamp(.85rem, 1.6vw, 1rem);
    line-height: 1.85;
}
.term__line { margin: 0; color: var(--term-dim); white-space: pre-wrap; word-break: break-word; }
.term__line[data-line="cmd"] { color: var(--term-fg); }
.term__line[data-line="cmd"]::before { content: "\276F\A0"; color: var(--red); font-weight: 700; }
.term__line--ok::before { content: "\25CF\A0"; color: #61c554; }
.term__prompt { color: var(--term-fg); }
.term__prompt::before { content: "\276F\A0"; color: var(--red); font-weight: 700; }
.term__prompt::after,
.term__line.is-active::after {
    content: "";
    display: inline-block;
    width: .55em; height: 1.05em;
    margin-left: .1em;
    vertical-align: -.18em;
    background: var(--red);
}
.term__cta { margin: .7rem 0 .5rem; }
.term__cta .btn--primary { background: var(--red); color: #fff; }
.term__cta .btn--primary:hover { background: #fff; color: var(--term-bg); transform: translateY(-2px); }

/* Mode animé (ajouté par JS) : on masque jusqu'à la frappe */
.term--anim [data-line] { display: none; }
.term--anim [data-line].is-shown { display: block; }

@media (prefers-reduced-motion: no-preference) {
    .term__prompt::after,
    .term__line.is-active::after { animation: term-blink 1.05s steps(1) infinite; }
}
@keyframes term-blink { 50% { opacity: 0; } }

.egg__back {
    display: inline-block;
    margin-top: 1.6rem;
    font-size: .85rem;
    color: var(--ink-faint);
    transition: color .25s var(--ease);
}
.egg__back:hover { color: var(--ink); }
