/* ==========================================================================
   ZINHOE V3 — GRAND STUDIO DESIGN SYSTEM
   Inspiré : Locomotive, Resn, Basic/Dept
   ========================================================================== */

/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
    /* Brand */
    --obsidian:   #080A0F;
    --navy:       #0C4896;
    --azure:      #2B78C5;
    --gold:       #C9A96E;

    /* Grayscale */
    --sl-50:  #F7F8FA;
    --sl-100: #F1F5F9;
    --sl-200: #E2E8F0;
    --sl-300: #CBD5E1;
    --sl-400: #94A3B8;
    --sl-500: #64748B;
    --sl-600: #475569;
    --sl-700: #334155;
    --sl-800: #1E293B;
    --white:  #FCFDFF;

    /* Semantic */
    --text-dark:   var(--sl-800);
    --text-body:   var(--sl-600);
    --text-muted:  var(--sl-400);
    --surface:     var(--sl-50);
    --border:      rgba(12, 72, 150, 0.07);
    --border-dark: rgba(255, 255, 255, 0.07);

    /* Typography */
    --f-display: 'Cormorant Garamond', Georgia, serif;
    --f-body:    'Plus Jakarta Sans', system-ui, sans-serif;

    /* Spacing */
    --sp-xs:  0.5rem;
    --sp-sm:  1rem;
    --sp-md:  1.5rem;
    --sp-lg:  3rem;
    --sp-xl:  5rem;
    --sp-xxl: 8rem;

    /* Layout */
    --max-w:   1320px;
    --header-h: 88px;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: all 0.3s var(--ease);
    --t-med:  all 0.6s var(--ease);
    --t-slow: all 0.9s var(--ease);
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--f-body);
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.65;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ─── Scrollbar & Selection ──────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: var(--sl-100); }
::-webkit-scrollbar-thumb { background: var(--navy); }
::selection { background: rgba(12, 72, 150, 0.08); color: var(--navy); }

/* ─── Grain ──────────────────────────────────────────────────────────────── */
.grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.013'/%3E%3C/svg%3E");
}

/* ─── Scroll Progress ────────────────────────────────────────────────────── */
.scroll-progress {
    position: fixed; top: 0; left: 0;
    width: 0%; height: 2px;
    background: linear-gradient(to right, var(--navy), var(--gold));
    z-index: 1001;
    transition: width 0.08s linear;
}

/* ─── Scroll Reveal ──────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

/* ─── Typography Primitives ──────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.06; }

.label {
    font-family: var(--f-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--navy);
    display: inline-block;
    margin-bottom: var(--sp-sm);
}
.label--gold  { color: var(--gold); }
.label--azure { color: var(--azure); }

.section-title {
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    color: var(--navy);
    max-width: 26ch;
}

.rule {
    width: 0%; height: 1px;
    background: var(--border);
    transition: width 1.8s var(--ease);
}
.rule.drawn { width: 100%; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--f-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1.1rem 2.5rem;
    border: 1px solid transparent;
    transition: var(--t-fast);
    min-height: 52px;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-primary:hover {
    background: var(--azure);
    border-color: var(--azure);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(12,72,150,0.18);
}
.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.22);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed; top: 0; left: 0;
    width: 100%; height: var(--header-h);
    display: flex; align-items: center;
    z-index: 100;
    transition: var(--t-slow);
}

.header::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(252,253,255,0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: var(--t-slow);
}
.header.scrolled::before {
    background: rgba(252,253,255,0.9);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom-color: var(--border);
}

.header-inner {
    position: relative; z-index: 1;
    width: 100%; max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-lg);
    display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.logo-link {
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}
.logo-img {
    height: 64px;
    width: auto;
    transition: height 0.5s var(--ease);
}
.header.scrolled .logo-img {
    height: 56px;
}

/* Desktop Nav */
.nav-desktop {
    display: flex; align-items: center; gap: var(--sp-lg);
}
.nav-link {
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.82);
    position: relative; padding: 0.25rem 0;
    transition: color 0.3s ease;
}
.header.scrolled .nav-link { color: var(--sl-700); }
.nav-link::after {
    content: '';
    position: absolute; bottom: -2px; left: 0;
    width: 0%; height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--white); }
.header.scrolled .nav-link:hover { color: var(--navy); }

.btn-cta-nav {
    font-size: 0.6875rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border: 1px solid rgba(255,255,255,0.22);
    color: var(--white);
    background: transparent;
    transition: var(--t-fast);
    min-height: 44px;
    display: inline-flex; align-items: center;
    text-decoration: none;
}
.header.scrolled .btn-cta-nav { border-color: var(--navy); color: var(--navy); }
.btn-cta-nav:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.header.scrolled .btn-cta-nav:hover { background: var(--navy); color: var(--white); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column; gap: 6px;
    width: 44px; height: 44px;
    justify-content: center; align-items: center;
    background: none; border: none; z-index: 200;
}
.hamburger span {
    width: 22px; height: 1.5px;
    background: var(--white);
    transition: var(--t-med); transform-origin: center;
    display: block;
}
.header.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1024px) {
    .nav-desktop { display: none; }
    .hamburger   { display: flex; }
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed; inset: 0;
    background: var(--obsidian);
    z-index: 150;
    display: flex; align-items: center; justify-content: center;
    transform: translateX(100%);
    transition: transform 0.75s var(--ease);
}
.mobile-overlay.open { transform: translateX(0); }

.mobile-nav {
    display: flex; flex-direction: column;
    align-items: center; gap: var(--sp-md);
}
.mobile-nav-link {
    font-family: var(--f-display);
    font-size: clamp(2rem, 8vw, 3rem);
    color: var(--sl-100); font-weight: 400;
    transition: color 0.3s ease;
}
.mobile-nav-link:hover { color: var(--gold); }
.mobile-nav-cta {
    margin-top: var(--sp-md);
    font-family: var(--f-body);
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 1rem 2.5rem; min-height: 52px;
    display: inline-flex; align-items: center;
    transition: var(--t-fast);
    text-decoration: none;
}
.mobile-nav-cta:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ==========================================================================
   01 — HERO
   ========================================================================== */
.hero {
    min-height: 100svh;
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background-image: url("assets/hero-architecture.png");
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
    transform: scale(1.06);
    transition: transform 10s ease-out;
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg,
        rgba(8,10,15,0.88) 0%,
        rgba(8,10,15,0.60) 55%,
        rgba(8,10,15,0.35) 100%
    );
}

.hero-blueprint {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background-image:
        linear-gradient(rgba(43,120,197,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43,120,197,0.04) 1px, transparent 1px);
    background-size: 72px 72px;
}

.hero-content {
    position: relative; z-index: 3;
    padding: calc(var(--header-h) + 4rem) 0 220px;
}

/* Badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.625rem;
    margin-bottom: var(--sp-md);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.35s forwards;
}
.badge-pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold); position: relative; flex-shrink: 0;
}
.badge-pulse::before {
    content: '';
    position: absolute; inset: -4px;
    border-radius: 50%; border: 1px solid var(--gold);
    animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(2.4); }
}
.badge-txt {
    font-size: 0.625rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold);
    max-width: 52ch; line-height: 1.45;
}
/* Title */
.hero-title {
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 500;
    color: var(--sl-100);
    line-height: 1.0;
    letter-spacing: -0.025em;
    margin-bottom: var(--sp-md);
}
.hero-title em { font-style: italic; color: var(--gold); }

.mask-wrap  { overflow: hidden; display: block; }
.mask-inner {
    display: block;
    transform: translateY(108%);
    animation: maskReveal 1.1s var(--ease) forwards;
}
.mask-inner:nth-child(1) { animation-delay: 0.5s; }
.mask-inner:nth-child(2) { animation-delay: 0.68s; }

@keyframes maskReveal { to { transform: translateY(0); } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
    font-size: 1.0625rem; color: var(--sl-400);
    max-width: 52ch; line-height: 1.65;
    margin-bottom: var(--sp-lg);
    opacity: 0;
    animation: fadeUp 0.85s var(--ease) 0.9s forwards;
}

.hero-actions {
    display: flex; gap: var(--sp-sm); flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.85s var(--ease) 1.1s forwards;
}

/* Proof Strip */
.hero-strip {
    position: absolute; bottom: 0; left: 0;
    width: 100%; z-index: 3;
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-dark);
    background: rgba(8,10,15,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.strip-item {
    padding: 1.625rem var(--sp-lg);
    border-right: 1px solid var(--border-dark);
    display: flex; flex-direction: column; gap: 0.4rem;
}
.strip-item:last-child { border-right: none; }
.strip-val {
    font-family: var(--f-display);
    font-size: clamp(1rem, 1.8vw, 1.375rem);
    color: var(--gold); font-weight: 500;
    letter-spacing: -0.01em; line-height: 1;
}
.strip-lbl {
    font-size: 0.6875rem; font-weight: 500;
    color: var(--sl-400); letter-spacing: 0.04em;
    line-height: 1.45;
}

/* ==========================================================================
   02 — MISSION (ex-manifeste)
   ========================================================================== */
.manifeste {
    background: var(--obsidian);
    padding: var(--sp-xl) 0 var(--sp-xxl);
    position: relative; overflow: hidden;
    border-top: 1px solid var(--border-dark);
}
.manifeste-header { margin-bottom: var(--sp-lg); }
.manifeste-header .label { color: var(--gold); }
.manifeste-title {
    color: var(--sl-100);
    max-width: 18ch;
}

.manifeste-marquee {
    position: absolute; bottom: var(--sp-md); left: 0;
    width: 100%; overflow: hidden;
    pointer-events: none; opacity: 0.045;
}
.marquee-track {
    display: flex; gap: var(--sp-lg);
    white-space: nowrap;
    animation: marquee 28s linear infinite;
}
.marquee-track span {
    font-family: var(--f-display); font-size: 1.25rem;
    color: var(--white); flex-shrink: 0;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.manifeste-body {
    position: relative; z-index: 1;
    max-width: 880px;
}
.manifeste-eyebrow {
    font-family: var(--f-display); font-size: 1rem;
    color: var(--gold); letter-spacing: 0.06em; font-style: italic;
    display: block; margin-bottom: var(--sp-md);
}
.manifeste-copy {
    display: flex; flex-direction: column; gap: var(--sp-md);
}
.manifeste-copy p {
    font-family: var(--f-display);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-style: italic; font-weight: 400;
    color: var(--sl-100);
    line-height: 1.45; letter-spacing: -0.01em;
    max-width: 52ch;
}
.manifeste-copy strong {
    font-style: normal; color: var(--white); font-weight: 500;
}

/* ==========================================================================
   03 — EXPERTISE
   ========================================================================== */
.expertise {
    padding: var(--sp-xxl) 0;
    background: var(--white);
}
.expertise-grid {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: var(--sp-xl);
    align-items: start;
}
.expertise-visual .about-img { height: 520px; }
.expertise-content { display: flex; flex-direction: column; }
.expertise-lead {
    font-family: var(--f-display);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-style: italic; color: var(--navy);
    line-height: 1.4; margin-bottom: var(--sp-md); max-width: 50ch;
}
.expertise-body {
    font-size: 0.9375rem; color: var(--sl-600);
    line-height: 1.7; max-width: 60ch; margin-bottom: var(--sp-sm);
}
.expertise-list {
    display: flex; flex-direction: column; gap: 0.65rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border);
}
.expertise-list li {
    font-size: 0.9375rem; color: var(--sl-600);
    display: flex; align-items: baseline; gap: 0.75rem; line-height: 1.5;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
}
.expertise-list li::before {
    content: '—'; color: var(--gold); flex-shrink: 0; font-size: 0.75rem;
}

/* ==========================================================================
   04 — PROCESS (accordion)
   ========================================================================== */
.services {
    padding: var(--sp-xxl) 0 var(--sp-xl);
    background: var(--white);
}

.section-header { margin-bottom: var(--sp-xl); }

.services-list { border-top: 1px solid var(--border); }

.svc-row {
    border-bottom: 1px solid var(--border);
    transition: background 0.4s var(--ease);
    overflow: hidden;
}
.svc-row:hover, .svc-row.open { background: var(--sl-50); }

.svc-header {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    padding: var(--sp-md) 0;
    cursor: pointer; gap: var(--sp-md);
}
.svc-num {
    font-family: var(--f-display);
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 400; color: var(--sl-200);
    line-height: 1; font-variant-numeric: tabular-nums;
    transition: color 0.4s var(--ease);
}
.svc-row.open .svc-num,
.svc-row:hover .svc-num { color: var(--gold); }

.svc-title {
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--navy); font-weight: 500; line-height: 1.15;
    transition: transform 0.45s var(--ease);
}
.svc-row.open .svc-title,
.svc-row:hover .svc-title { transform: translateX(8px); }

.svc-arrow {
    color: var(--sl-400);
    transition: transform 0.45s var(--ease), color 0.3s ease;
    flex-shrink: 0;
}
.svc-row.open .svc-arrow { transform: rotate(90deg); color: var(--navy); }

/* Accordion body — CSS grid trick */
.svc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s var(--ease);
}
.svc-row.open .svc-body { grid-template-rows: 1fr; }

.svc-body-inner { overflow: hidden; }

.svc-body-content {
    padding: var(--sp-sm) 0 var(--sp-lg) 90px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
    align-items: start;
}
.svc-body-content--text {
    grid-template-columns: 1fr;
    max-width: 62ch;
}

.svc-lead {
    font-size: 0.9375rem; font-weight: 700;
    color: var(--navy); margin-bottom: var(--sp-sm); line-height: 1.4;
}
.svc-items { display: flex; flex-direction: column; gap: 0.5rem; }
.svc-items li {
    font-size: 0.875rem; color: var(--sl-600);
    display: flex; align-items: baseline; gap: 0.625rem; line-height: 1.5;
}
.svc-items li::before {
    content: '—'; color: var(--gold); flex-shrink: 0; font-size: 0.75rem;
}

.svc-img-block { height: 220px; overflow: hidden; }
.svc-img-block img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.svc-row.open .svc-img-block img { transform: scale(1.05); }

/* Desktop floating preview */
.svc-preview {
    position: fixed; width: 340px; height: 210px;
    pointer-events: none;
    opacity: 0; transform: scale(0.88) translateY(12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    z-index: 500; overflow: hidden;
    box-shadow: 0 40px 80px rgba(8,10,15,0.3);
    border: 1px solid var(--border);
}
.svc-preview.visible { opacity: 1; transform: scale(1) translateY(0); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   04 — À PROPOS
   ========================================================================== */
.about {
    padding: var(--sp-xl) 0 var(--sp-xxl);
    background: var(--sl-50);
}
.about-grid {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: var(--sp-xl); align-items: center;
}
.about-img-frame {
    position: relative;
    padding: var(--sp-sm); border: 1px solid var(--border);
}
.about-img {
    width: 100%; height: 560px; object-fit: cover; display: block;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.3s var(--ease) 0.25s;
}
/* Reveal triggered by parent gaining .visible from scroll observer */
.about-visual.visible .about-img { clip-path: inset(0 0 0 0); }

/* Crosshairs */
.ch { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.ch::before, .ch::after {
    content: ''; position: absolute; background: var(--navy);
}
.ch::before { width: 100%; height: 1px; top: 50%; }
.ch::after  { height: 100%; width: 1px; left: 50%; }
.ch--tl { top: -7px; left: -7px; }
.ch--tr { top: -7px; right: -7px; }
.ch--bl { bottom: -7px; left: -7px; }
.ch--br { bottom: -7px; right: -7px; }

.about-lead {
    font-family: var(--f-display);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-style: italic; color: var(--navy);
    line-height: 1.4; margin-bottom: var(--sp-md); max-width: 50ch;
}
.about-body {
    font-size: 0.9375rem; color: var(--sl-600);
    line-height: 1.7; max-width: 60ch; margin-bottom: var(--sp-sm);
}
.values-block {
    margin-top: var(--sp-lg);
    padding-top: var(--sp-md); border-top: 1px solid var(--border);
}
.values-lbl {
    font-size: 0.6875rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--navy); display: block; margin-bottom: var(--sp-sm);
}
.values-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v-tag {
    font-size: 0.75rem; font-weight: 700;
    color: var(--sl-700); background: var(--sl-100);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    transition: var(--t-fast);
}
.v-tag:hover { border-color: var(--navy); color: var(--navy); background: var(--white); transform: translateY(-2px); }

/* ==========================================================================
   05 — CLIENTS
   ========================================================================== */
.clients {
    background: var(--obsidian);
    padding: var(--sp-xxl) 0;
}
.clients .label { color: var(--gold); }
.clients .section-title { color: var(--sl-100); }

.clients-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1px; margin-top: var(--sp-xl);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.07);
}
.client-card {
    background: var(--obsidian); overflow: hidden;
    transition: background 0.4s var(--ease);
}
.client-card:hover { background: var(--sl-800); }
.client-img {
    width: 100%; height: 240px; object-fit: cover; display: block;
    transition: transform 0.7s var(--ease);
}
.client-card:hover .client-img { transform: scale(1.05); }
.client-meta { padding: var(--sp-md) var(--sp-md) var(--sp-lg); }
.client-cat {
    font-size: 0.625rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); display: block; margin-bottom: 0.5rem;
}
.client-name {
    font-family: var(--f-display);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    color: var(--sl-100); margin-bottom: var(--sp-sm); line-height: 1.15;
}
.client-copy {
    font-size: 0.875rem; color: var(--sl-400);
    line-height: 1.6; max-width: 48ch;
}

/* ==========================================================================
   06 — PREUVES
   ========================================================================== */
.preuves {
    background: var(--navy);
    padding: var(--sp-xl) 0;
}
.preuves-header { margin-bottom: var(--sp-lg); }
.preuves-header .label { color: var(--gold); margin-bottom: 0; }
.preuves-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(255,255,255,0.1);
}
.preuve-item {
    padding: var(--sp-lg) var(--sp-md);
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column; gap: 0.75rem;
}
.preuve-item:nth-child(3) { border-right: none; }
.preuve-item:nth-child(4),
.preuve-item:nth-child(5),
.preuve-item:nth-child(6) {
    border-top: 1px solid rgba(255,255,255,0.1);
}
.preuve-item:nth-child(6) { border-right: none; }
.preuve-val {
    font-family: var(--f-display);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    color: var(--gold); font-weight: 500;
    letter-spacing: -0.02em; line-height: 1.15;
    text-transform: uppercase;
}
.preuve-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6; max-width: 36ch;
}

/* ==========================================================================
   07 — ENGAGEMENT (ex-citation)
   ========================================================================== */
.citation {
    background: var(--obsidian);
    padding: var(--sp-xxl) 0;
    position: relative; overflow: hidden;
}
.cite-inner { position: relative; z-index: 1; max-width: 840px; }
.cite-mark {
    font-family: var(--f-display);
    font-size: 8rem; line-height: 0.7;
    color: var(--gold); opacity: 0.22;
    display: block; margin-bottom: var(--sp-md);
}
.cite-text {
    font-family: var(--f-display);
    font-size: clamp(1.35rem, 2.6vw, 2.1rem);
    font-style: italic; font-weight: 400;
    color: var(--sl-100); line-height: 1.38;
    margin-bottom: var(--sp-md);
}
.cite-text p { margin-bottom: 0.85rem; }
.cite-text p:last-child { margin-bottom: 0; }
.cite-attr {
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold);
}

/* ==========================================================================
   09 — CONTACT
   ========================================================================== */
.contact {
    padding: var(--sp-xxl) 0;
    background: var(--sl-50);
}
.contact-grid {
    display: grid; grid-template-columns: 0.9fr 1.1fr;
    gap: var(--sp-xl); align-items: start;
}
.contact-title {
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    color: var(--navy);
    margin-top: var(--sp-sm); margin-bottom: var(--sp-md);
}
.contact-intro {
    font-size: 1rem; color: var(--sl-500);
    max-width: 44ch; line-height: 1.65; margin-bottom: var(--sp-lg);
}
.contact-info {
    display: flex; flex-direction: column; gap: var(--sp-md);
    border-top: 1px solid var(--border); padding-top: var(--sp-md);
}
.info-item {
    display: flex; flex-direction: column; gap: 0.25rem;
    padding-bottom: var(--sp-sm); border-bottom: 1px solid var(--border);
}
.info-lbl {
    font-size: 0.625rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--sl-600); /* was sl-400 → 2.4:1 | now sl-600 → 7.0:1 ✅ */
}
.info-val {
    font-family: var(--f-display);
    font-size: 1.25rem;
    color: var(--navy);
}
a.info-val {
    text-decoration: none;
    transition: color 0.3s ease;
}
a.info-val:hover { color: var(--azure); }

.info-reveal {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
    touch-action: manipulation;
    transition: color 0.3s ease;
}
.info-reveal:hover .info-val,
.info-reveal:focus-visible .info-val { color: var(--azure); }
.info-reveal:focus-visible {
    outline: 2px solid var(--azure);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Form Card */
.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: var(--sp-lg); position: relative;
    box-shadow: 0 20px 60px rgba(12,72,150,0.04);
}
/* Draft corners */
.corner {
    position: absolute; width: 10px; height: 10px;
    border: 1px solid var(--navy);
    transition: all 0.4s var(--ease);
}
.corner--tl { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.corner--tr { top: -5px; right: -5px; border-left: none; border-bottom: none; }
.corner--bl { bottom: -5px; left: -5px; border-right: none; border-top: none; }
.corner--br { bottom: -5px; right: -5px; border-left: none; border-top: none; }
.form-card:hover .corner--tl { top: -9px; left: -9px; }
.form-card:hover .corner--tr { top: -9px; right: -9px; }
.form-card:hover .corner--bl { bottom: -9px; left: -9px; }
.form-card:hover .corner--br { bottom: -9px; right: -9px; }

.form-head { margin-bottom: var(--sp-md); padding-bottom: var(--sp-sm); border-bottom: 1px solid var(--border); }
.form-head h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--navy); margin-bottom: 0.5rem; }
.form-head p  { font-size: 0.8125rem; color: var(--sl-500); line-height: 1.55; }

.form { display: flex; flex-direction: column; gap: var(--sp-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }

.field { display: flex; flex-direction: column; position: relative; }
.field label {
    font-size: 0.625rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--navy); margin-bottom: 0.35rem;
}
.field-hint {
    font-size: 0.75rem; font-weight: 400;
    letter-spacing: 0.01em; text-transform: none;
    color: var(--sl-500); line-height: 1.45;
    margin-bottom: 0.35rem;
}
.field-required { color: var(--azure); }
.field-optional {
    font-weight: 500; text-transform: none;
    letter-spacing: 0.02em; color: var(--sl-500);
}
.field input, .field select, .field textarea {
    font-family: var(--f-body);
    font-size: 0.9375rem; color: var(--sl-800);
    background: transparent; border: none;
    border-bottom: 1px solid var(--sl-200);
    padding: 0.75rem 0; outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0; appearance: none; -webkit-appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-bottom-color: var(--navy);
}
.field-line {
    position: absolute; bottom: 0; left: 0;
    width: 0%; height: 1px; background: var(--azure);
    transition: width 0.55s var(--ease);
}
.field input:focus ~ .field-line,
.field textarea:focus ~ .field-line { width: 100%; }

.field-captcha {
    margin-top: var(--sp-xs);
}
.field-captcha .h-captcha {
    min-height: 78px;
}

.btn-submit {
    width: 100%; justify-content: space-between;
    margin-top: var(--sp-sm);
}

.contact-slogan {
    margin-top: var(--sp-xl); padding: var(--sp-md) 0;
    border-top: 1px dashed var(--border);
    text-align: center;
    font-family: var(--f-display);
    font-size: clamp(1.05rem, 2vw, 1.65rem);
    color: var(--navy); font-style: italic;
    letter-spacing: 0.01em;
}

/* ==========================================================================
   10 — FOOTER
   ========================================================================== */
.footer {
    background: var(--obsidian);
    padding: var(--sp-xl) 0 var(--sp-lg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: var(--sp-xl);
}
.footer-logo {
    height: 56px; width: auto; margin-bottom: var(--sp-sm);
    box-sizing: content-box;
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
}
.footer-tagline { font-size: 0.8125rem; color: var(--sl-400); max-width: 30ch; line-height: 1.6; } /* was sl-500 → 4.2:1 | now sl-400 → 7.7:1 ✅ */
.footer-col-title {
    font-size: 0.625rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: #7DB4E0; display: block; margin-bottom: var(--sp-md); /* was azure #2B78C5 → 4.3:1 | now lightened → 7.1:1 ✅ */
}
.footer-link {
    display: block; font-size: 0.875rem;
    color: var(--sl-400); margin-bottom: var(--sp-xs);
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-link:hover { color: var(--white); transform: translateX(4px); }
.footer-bottom {
    margin-top: var(--sp-xl); padding-top: var(--sp-md);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: var(--sp-sm);
}
.footer-copy { font-size: 0.6875rem; color: var(--sl-400); } /* was sl-600 → 2.6:1 | now sl-400 → 7.7:1 ✅ */

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
    position: fixed; bottom: var(--sp-lg); right: var(--sp-lg);
    background: var(--navy); color: var(--white);
    padding: var(--sp-md) var(--sp-lg); z-index: 1000;
    display: flex; align-items: center; gap: var(--sp-sm);
    font-size: 0.875rem; font-weight: 500;
    box-shadow: 0 20px 50px rgba(12,72,150,0.22);
    opacity: 0; transform: translateY(16px);
    transition: var(--t-fast); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor {
    width: 8px; height: 8px;
    background: var(--azure); border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transition: transform 0.05s linear, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(43,120,197,0.5);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998;
    transition: transform 0.12s ease-out, width 0.3s ease, height 0.3s ease;
}
@media (max-width: 1024px) { .cursor, .cursor-ring { display: none !important; } }

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
:focus-visible { outline: 2px solid var(--azure); outline-offset: 4px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .cursor, .cursor-ring, .grain { display: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .mask-inner { transform: none !important; animation: none !important; }
    .hero-badge { opacity: 1 !important; animation: none !important; }
    .hero-sub, .hero-actions { opacity: 1 !important; animation: none !important; }
}

/* ==========================================================================
   RESPONSIVE — ≤ 768px
   ========================================================================== */
@media (max-width: 768px) {
    :root { --sp-lg: 1.5rem; }
    .container { padding: 0 1.25rem; }

    /* Hero — hauteur naturelle, contenu en haut */
    .hero {
        min-height: auto;
        justify-content: flex-start;
    }
    .hero-content {
        padding: calc(var(--header-h) + 1.5rem) 0 1.25rem;
    }
    .hero-badge { margin-bottom: 1.25rem; }
    .hero-title {
        font-size: clamp(2.25rem, 10vw, 3rem);
        line-height: 1.08;
        margin-bottom: 1.375rem;
    }
    .hero-title .mask-wrap + .mask-wrap { margin-top: 0.1em; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
        width: 100%;
        margin-top: 0.25rem;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    /* Hero strip stacks */
    .hero-strip { grid-template-columns: 1fr; position: static; margin-top: 1.25rem; background: rgba(8,10,15,0.7); }
    .strip-item {
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
        padding: 1.25rem 1.25rem;
        gap: 0.5rem;
    }
    .strip-item:last-child { border-bottom: none; }

    /* Mission */
    .manifeste { padding: 2.25rem 0 var(--sp-xl); }
    .manifeste-header { margin-bottom: 1.375rem; }
    .manifeste-header .label { margin-bottom: 0.875rem; }
    .manifeste-title {
        max-width: none;
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.18;
    }
    .manifeste-copy { gap: 1.375rem; }

    /* Services */
    .svc-header { grid-template-columns: 56px 1fr auto; gap: var(--sp-sm); }
    .svc-num { font-size: 2rem; }
    .svc-body-content { grid-template-columns: 1fr; padding-left: 0; }
    .svc-img-block { height: 180px; }

    /* Expertise */
    .expertise-grid { grid-template-columns: 1fr; }
    .expertise-visual .about-img { height: 320px; }

    /* Clients */
    .clients-grid { grid-template-columns: 1fr; }

    /* Preuves / valeur ajoutée */
    .preuves-grid { grid-template-columns: 1fr; }
    .preuve-item,
    .preuve-item:nth-child(3),
    .preuve-item:nth-child(4),
    .preuve-item:nth-child(5),
    .preuve-item:nth-child(6) {
        border-right: none;
        border-top: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: var(--sp-md) var(--sp-sm);
    }
    .preuve-item:last-child { border-bottom: none; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; }
    .form-card { padding: var(--sp-md); }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: var(--sp-lg); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }
    .field input, .field select, .field textarea {
        font-size: 16px !important; min-height: 44px;
    }
    .btn-submit { min-height: 52px; }
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        justify-content: flex-start;
    }
    .hero-content {
        padding: calc(var(--header-h) + 1.5rem) 0 1.25rem;
    }
    .hero-strip { position: static; margin-top: 0; }
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-page {
    padding: calc(var(--header-h) + 3rem) 0 var(--sp-xl);
    min-height: 70vh;
}
.legal-page h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.legal-updated {
    font-size: 0.875rem;
    color: var(--sl-500);
    margin-bottom: var(--sp-lg);
}
.legal-page section {
    margin-bottom: var(--sp-lg);
    max-width: 65ch;
}
.legal-page h2 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.legal-page p,
.legal-page li {
    color: var(--sl-600);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.legal-page ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}
.legal-page a {
    color: var(--azure);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-back {
    margin-top: var(--sp-lg);
    padding-top: var(--sp-md);
    border-top: 1px solid var(--border);
}
.legal-back a {
    font-weight: 600;
    text-decoration: none;
    color: var(--navy);
}
.legal-back a:hover { color: var(--azure); }

/* Visible branding with tightly cropped artwork */
.logo-link { flex-shrink: 0; background: transparent; padding: 0; border-radius: 0; }
.header-inner { gap: 1rem; }
.logo-img { display: block; height: 64px; width: auto; filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,.65)); transition: height .5s var(--ease), filter .3s ease; }
.header.scrolled .logo-img { height: 56px; filter: none; }
.footer-logo { height: 72px; width: auto; max-width: 100%; background: transparent; padding: 0; border-radius: 0; filter: brightness(0) invert(1); }
.cite-mark--closing { text-align: right; margin-bottom: var(--sp-md); }
.client-img[src="assets/secteur-public.webp"] { object-position: center 35%; }
@media (max-width: 768px) {
    .logo-img, .header.scrolled .logo-img { height: 64px; }
}
