/* ============================================
   DECIPARTNERS — Bold architectural design
   ============================================ */

:root {
    --bg: #f5f1ea;
    --bg-deep: #ebe5d8;
    --ink: #0a0a0a;
    --ink-soft: #1a1a1a;
    --ink-muted: #6b6b6b;
    --line: rgba(10, 10, 10, 0.12);
    --line-strong: rgba(10, 10, 10, 0.2);
    --accent: #c97b4a;
    --accent-deep: #8a4a25;
    --light: #f5f1ea;
    --light-soft: rgba(245, 241, 234, 0.7);

    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --maxw: 1400px;
    --pad: clamp(20px, 5vw, 80px);
    --section-pad: clamp(80px, 12vw, 180px);

    --easing: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Subtle paper grain — tactile architectural feel */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.4;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.04 0 0 0 0 0.04 0 0 0 0 0.04 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--ink); color: var(--bg); }

/* ============================================
   CURSOR
   ============================================ */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--easing), height 0.3s var(--easing), opacity 0.3s;
    opacity: 0;
    mix-blend-mode: difference;
}
@media (hover: hover) and (pointer: fine) {
    .cursor-dot { opacity: 1; }
    .cursor-dot.hover { width: 40px; height: 40px; background: var(--bg); }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px var(--pad);
    transition: background 0.4s var(--easing), padding 0.4s var(--easing), border-color 0.4s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(245, 241, 234, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px var(--pad);
    border-bottom-color: var(--line);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.logo-img {
    display: block;
    height: 108px;
    width: auto;
    transition: opacity 0.3s, height 0.4s var(--easing);
}
.site-header.scrolled .logo-img { height: 82px; }
.logo:hover .logo-img { opacity: 0.6; }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
}
.main-nav a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding: 6px 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width 0.3s var(--easing);
}
.main-nav a:hover::after { width: 100%; }

.nav-cta {
    border: 1px solid var(--ink);
    padding: 10px 18px !important;
    border-radius: 100px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-cta svg { width: 14px; height: 14px; }
.nav-client {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
.nav-client:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}
.mobile-client {
    color: var(--accent) !important;
    font-style: italic;
}

/* GO / NO GO — bouton accès sécurisé */
.nav-gonogo {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.nav-gonogo svg {
    color: var(--accent);
}
.nav-gonogo:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}
.nav-gonogo:hover svg {
    color: var(--bg);
}
.mobile-gonogo {
    color: var(--ink) !important;
    font-style: italic;
    opacity: 0.85;
}
.footer-gonogo {
    display: inline-flex;
    align-items: center;
    color: var(--ink-muted);
    transition: color 0.2s var(--easing);
}
.footer-gonogo:hover {
    color: var(--accent);
}

/* CARBONE — bouton accès sécurisé (vert) */
.nav-carbone {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.nav-carbone svg {
    color: #2e7d32;
}
.nav-carbone:hover {
    background: #2e7d32;
    border-color: #2e7d32;
    color: var(--bg);
}
.nav-carbone:hover svg {
    color: var(--bg);
}
.mobile-carbone {
    color: var(--ink) !important;
    font-style: italic;
    opacity: 0.85;
}
.footer-carbone {
    display: inline-flex;
    align-items: center;
    color: var(--ink-muted);
    transition: color 0.2s var(--easing);
}
.footer-carbone:hover {
    color: #2e7d32;
}

/* CRM — bouton accès interne (bleu) */
.nav-crm {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.nav-crm svg {
    color: #345b8a;
}
.nav-crm:hover {
    background: #345b8a;
    border-color: #345b8a;
    color: var(--bg);
}
.nav-crm:hover svg {
    color: var(--bg);
}
.mobile-crm {
    color: var(--ink) !important;
    font-style: italic;
    opacity: 0.85;
}
.footer-crm {
    display: inline-flex;
    align-items: center;
    color: var(--ink-muted);
    transition: color 0.2s var(--easing);
}
.footer-crm:hover {
    color: #345b8a;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 102;
}
.menu-toggle span {
    width: 26px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--easing), opacity 0.2s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 101;
    transform: translateX(100%);
    transition: transform 0.5s var(--easing);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px var(--pad) 40px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu nav ul { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a {
    font-family: var(--serif);
    font-size: clamp(38px, 9vw, 64px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.mobile-menu-footer {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    color: var(--ink-muted);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px var(--pad) 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line-strong) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-strong) 1px, transparent 1px);
    background-size: clamp(60px, 8vw, 120px) clamp(60px, 8vw, 120px);
    opacity: 0.35;
    mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: 20%; right: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(201, 123, 74, 0.15), transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.hero > * { position: relative; z-index: 1; }

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
}
.meta-line {
    width: 50px;
    height: 1px;
    background: var(--ink);
}

.hero-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(44px, 10.5vw, 168px);
    line-height: 0.96;
    letter-spacing: -0.035em;
    margin: 44px 0;
    max-width: 18ch;
}
.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.05em;
}
.hero-title .word {
    display: inline-block;
    transform: translateY(110%);
    animation: rise 1.05s var(--easing) forwards;
    will-change: transform;
}
.hero-title .line:nth-child(1) .word { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) .word { animation-delay: 0.32s; }
.hero-title .italic {
    font-style: italic;
    color: var(--ink-soft);
    font-weight: 300;
    position: relative;
    opacity: 0.62;
}

@keyframes rise {
    to { transform: translateY(0); }
}

.hero-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    opacity: 0;
    animation: fadeUp 1s var(--easing) 0.7s forwards;
}
.hero-tagline {
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.5;
    max-width: 480px;
    color: var(--ink-soft);
}
.hero-tagline strong {
    font-weight: 600;
    color: var(--ink);
}

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

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--ink);
    color: var(--bg);
    padding: 18px 30px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background 0.3s, transform 0.3s var(--easing), gap 0.3s var(--easing);
}
.btn-primary svg { width: 18px; height: 18px; transition: transform 0.3s var(--easing); }
.btn-primary:hover { background: var(--accent); gap: 16px; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding: 4px 0;
    transition: color 0.3s, border-color 0.3s;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

.hero-locations {
    position: absolute;
    bottom: 90px;
    right: var(--pad);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1;
}
.hero-locations .dot {
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: var(--pad);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.scroll-line {
    width: 60px;
    height: 1px;
    background: var(--ink-muted);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: -50%;
    width: 50%; height: 100%;
    background: var(--ink);
    animation: scrollLine 2s var(--easing) infinite;
}
@keyframes scrollLine {
    0% { transform: translateX(0); }
    100% { transform: translateX(300%); }
}

/* ============================================
   MARQUEE — band fin et éditorial
   ============================================ */
.marquee {
    background: var(--ink);
    color: var(--bg);
    padding: 14px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.marquee-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: marquee 45s linear infinite;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.marquee-track > span { color: rgba(245, 241, 234, 0.85); }
.marquee-track .sep { color: var(--accent); font-style: normal; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================
   SECTION COMMUNES
   ============================================ */
.section-tag {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: 60px;
}
.section-tag .tag-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    color: var(--accent);
}
.section-tag.light { color: rgba(245, 241, 234, 0.6); }

.section-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(36px, 5.5vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    max-width: 14ch;
}
.section-title em {
    font-style: italic;
    color: var(--accent);
}
.section-title.light { color: var(--bg); }
.section-title.light em { color: var(--accent); }

.lead {
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.55;
    color: var(--ink-soft);
}

/* ============================================
   CABINET
   ============================================ */
.cabinet {
    padding: var(--section-pad) var(--pad);
    border-top: 1px solid var(--line);
}
.cabinet-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 100px;
}
.cabinet-text {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 12px;
    color: var(--ink-soft);
    max-width: 540px;
}
.cabinet-text p { font-size: 16px; line-height: 1.7; }
.cabinet-text strong { color: var(--ink); font-weight: 600; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
}
.stats--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
}
.stat {
    padding: 50px 30px 40px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.stat::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}
.stat:last-child { border-right: none; }
.stat-num {
    font-family: var(--serif);
    font-size: clamp(56px, 7vw, 104px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.035em;
}
.stat-label {
    font-size: 12px;
    color: var(--ink-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 14px;
    line-height: 1.5;
}

/* ============================================
   EXPERTISE
   ============================================ */
.expertise {
    padding: var(--section-pad) var(--pad);
    background: var(--ink);
    color: var(--bg);
    position: relative;
    overflow: hidden;
}
.expertise::before {
    content: '';
    position: absolute;
    top: 30%; left: -10%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(201, 123, 74, 0.18), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 80px 0 120px;
    position: relative;
}
.expertise-card {
    padding: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    transition: border-color 0.4s var(--easing), transform 0.4s var(--easing), background 0.4s;
}
.expertise-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
}
.expertise-num {
    font-family: var(--serif);
    font-size: clamp(80px, 10vw, 140px);
    font-weight: 300;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 30px;
    letter-spacing: -0.04em;
}
.expertise-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.expertise-lead {
    color: rgba(245, 241, 234, 0.75);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}
.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}
.expertise-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: rgba(245, 241, 234, 0.85);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.expertise-list li::before {
    content: '→';
    color: var(--accent);
    flex-shrink: 0;
}
.expertise-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(245, 241, 234, 0.6);
    font-weight: 500;
    width: 100%;
}

/* PROCESS */
.process {
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.process-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 50px;
    letter-spacing: -0.02em;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.process-step {
    padding: 30px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.3s;
}
.process-step:hover { border-top-color: var(--accent); }
.step-num {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 18px;
}
.process-step h4 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 22px;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.process-step p {
    font-size: 14px;
    color: rgba(245, 241, 234, 0.7);
    line-height: 1.55;
}

/* ============================================
   MÉTRÉS ENTREPRISES
   ============================================ */
.metres {
    padding: var(--section-pad) var(--pad);
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
}
.metres-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 70px;
}
.metres-text {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 12px;
    color: var(--ink-soft);
    max-width: 540px;
}
.metres-text p { font-size: 16px; line-height: 1.7; }
.metres-text strong { color: var(--ink); font-weight: 600; }

.metres-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 50px;
    border-top: 1px solid var(--line-strong);
    margin-bottom: 90px;
}
.metres-list li {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink-soft);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.metres-list li::before {
    content: '↗';
    color: var(--accent);
    flex-shrink: 0;
}

.clients {
    border-top: 1px solid var(--ink);
    padding-top: 40px;
}
.clients-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 38px;
}
.clients-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: clamp(16px, 2.6vw, 30px);
}
.client-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 108px;
    padding: 20px 34px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 12px;
    opacity: 0.82;
    filter: grayscale(32%);
    transition: opacity 0.3s var(--easing), filter 0.3s var(--easing), transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
}
.client-mark img {
    display: block;
    width: auto;
    height: auto;
    max-height: 64px;
    max-width: 188px;
}
.client-mark:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

/* ============================================
   ÉQUIPE
   ============================================ */
.equipe {
    padding: var(--section-pad) var(--pad);
}
.equipe-header {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 80px;
}
.equipe-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 480px;
}

.profiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 100px;
}
.profile {
    overflow: hidden;
    transition: transform 0.5s var(--easing);
}
.profile:hover { transform: translateY(-6px); }
.profile-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
}
.profile-img svg { width: 100%; height: 100%; display: block; }
.profile-img--dark { background: var(--ink); border-color: transparent; }
.profile-img--accent { background: var(--accent); border-color: transparent; }
.profile-img--ink { background: var(--ink); border-color: transparent; }
.profile-img--cream { background: var(--bg-deep); }
.profile-info { padding: 20px 0; }
.profile-role {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}
.profile h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 22px;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.profile p {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}
.value {
    padding: 50px 30px 50px 0;
    border-right: 1px solid var(--line);
}
.value:last-child { border-right: none; }
.value:not(:first-child) { padding-left: 30px; }
.value-mark {
    display: inline-block;
    font-family: var(--serif);
    font-size: 60px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}
.value h4 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 26px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.value p {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* ============================================
   IMPLANTATIONS
   ============================================ */
.implantations {
    padding: var(--section-pad) var(--pad);
    background: var(--ink);
    color: var(--bg);
    position: relative;
}
.numero-unique {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 56px;
    padding: 30px 40px;
    border: 1px solid rgba(245, 241, 234, 0.16);
    background: rgba(245, 241, 234, 0.02);
    transition: background 0.4s, border-color 0.4s;
}
.numero-unique:hover {
    background: rgba(201, 123, 74, 0.07);
    border-color: var(--accent);
}
.numero-unique-label {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 241, 234, 0.55);
}
.numero-unique-tel {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(30px, 4.2vw, 50px);
    letter-spacing: -0.02em;
    color: var(--bg);
    transition: color 0.4s;
}
.numero-unique-tel svg {
    width: 26px;
    height: 26px;
    stroke: var(--accent);
    flex-shrink: 0;
}
.numero-unique:hover .numero-unique-tel { color: var(--accent); }

.agences {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.agences--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
}
.agence {
    padding: 60px 36px 50px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    transition: background 0.4s;
    display: flex;
    flex-direction: column;
    min-height: 460px;
}
.agence:not(:first-child) { padding-left: 36px; }
.agence:last-child { border-right: none; }
.agence:hover { background: rgba(245, 241, 234, 0.02); }
.agence-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}
.agence h3 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(56px, 7.5vw, 110px);
    line-height: 0.92;
    margin-bottom: 20px;
    letter-spacing: -0.045em;
}
.agence-region {
    font-size: 12px;
    letter-spacing: 0.15em;
    color: rgba(245, 241, 234, 0.55);
    margin-bottom: auto;
    padding-bottom: 40px;
    text-transform: uppercase;
    line-height: 1.6;
}
.agence-contact { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.agence-contact p { color: rgba(245, 241, 234, 0.85); line-height: 1.6; }
.agence-contact a {
    color: rgba(245, 241, 234, 0.85);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}
.agence-contact a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: var(--section-pad) var(--pad);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
}
.contact-intro .lead { margin: 30px 0 50px; max-width: 480px; }
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-top: 1px solid var(--line);
    padding-top: 30px;
}
.contact-info > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.info-label {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.contact-info a {
    font-family: var(--serif);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 400;
    transition: color 0.3s;
    word-break: break-all;
}
.contact-info a:hover { color: var(--accent); }

/* FORM */
.contact-form {
    background: var(--bg-deep);
    padding: clamp(30px, 5vw, 60px);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-field label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-strong);
    padding: 12px 0;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: border-color 0.3s;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}
.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}
.form-field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}
.btn-submit {
    align-self: flex-start;
    margin-top: 14px;
    cursor: pointer;
}
.form-status {
    font-size: 14px;
    color: var(--accent-deep);
    min-height: 20px;
    margin-top: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 80px var(--pad) 30px;
    background: var(--ink);
    color: var(--bg);
}
.footer-mark {
    margin-bottom: 60px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 44px;
}
.footer-logo {
    display: block;
    height: clamp(72px, 13vw, 116px);
    width: auto;
    max-width: 100%;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 241, 234, 0.5);
    margin-bottom: 14px;
}
.footer-grid p {
    color: rgba(245, 241, 234, 0.85);
    font-size: 14px;
    line-height: 1.7;
}
.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: rgba(245, 241, 234, 0.5);
}
.footer-bottom a:hover { color: var(--accent); }

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 8px 14px 8px 12px;
    border: 1px solid rgba(245, 241, 234, 0.18);
    color: rgba(245, 241, 234, 0.85);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-social:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
[data-reveal].in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }

    .hero-bottom { grid-template-columns: 1fr; gap: 30px; }
    .hero-locations { display: none; }

    .cabinet-grid { grid-template-columns: 1fr; gap: 40px; }
    .equipe-header { grid-template-columns: 1fr; gap: 30px; }
    .metres-grid { grid-template-columns: 1fr; gap: 40px; }
    .metres-list { grid-template-columns: repeat(2, 1fr); gap: 0 30px; }

    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

    .expertise-grid { grid-template-columns: 1fr; gap: 24px; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }

    .profiles { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .values { grid-template-columns: 1fr; }
    .value { border-right: none; border-bottom: 1px solid var(--line); padding: 30px 0 !important; }
    .value:last-child { border-bottom: none; }

    .numero-unique { flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 24px; }

    .agences { grid-template-columns: 1fr; }
    .agence { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.15); padding: 40px 0 !important; }
    .agence:last-child { border-bottom: none; }

    .contact-grid { grid-template-columns: 1fr; gap: 50px; }

    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .footer-mark { font-size: clamp(56px, 18vw, 110px); }
}

@media (max-width: 600px) {
    :root { --pad: 20px; }

    .logo-img,
    .site-header.scrolled .logo-img { height: 70px; }

    .hero { padding: 110px 20px 60px; }
    .hero-title { margin: 24px 0; }
    .scroll-indicator { display: none; }

    .expertise-card { padding: 30px 24px; }
    .expertise-num { font-size: 72px; margin-bottom: 16px; }

    .profiles { grid-template-columns: 1fr; gap: 24px; }

    .form-row { grid-template-columns: 1fr; }

    .stats { grid-template-columns: 1fr; }
    .stat { border-right: none !important; border-bottom: 1px solid var(--line); }
    .stat:last-child { border-bottom: none; }

    .process-steps { grid-template-columns: 1fr; }
    .metres-list { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-title .word { transform: translateY(0); animation: none; }
    .hero-bottom { opacity: 1; animation: none; }
}

/* ============================================
   HERO SOMBRE — photo d'architecture plein écran
   ============================================ */
.hero { background: var(--ink); }

/* Correctif : la règle .hero > * forçait .hero-bg en position
   relative, ce qui l'effondrait à 0 px de hauteur et rendait la
   photo invisible. On le re-force en plein cadre. */
.hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-photo {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1760081848995-ee37cd4e9553?fm=jpg&q=80&w=2000&auto=format&fit=crop");
    background-size: cover;
    background-position: center 18%;
    filter: brightness(1.32) contrast(1.06);
}
/* Voile sombre léger — la photo reste bien visible */
.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(10, 10, 10, 0.62) 0%,
            rgba(10, 10, 10, 0.26) 28%,
            rgba(10, 10, 10, 0.32) 58%,
            rgba(10, 10, 10, 0.76) 100%),
        linear-gradient(90deg,
            rgba(10, 10, 10, 0.42) 0%,
            rgba(10, 10, 10, 0.05) 55%,
            rgba(10, 10, 10, 0) 100%);
}
/* Trame architecturale claire sur fond sombre */
.hero .hero-grid {
    background-image:
        linear-gradient(rgba(245, 241, 234, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 241, 234, 0.1) 1px, transparent 1px);
}

/* Textes du hero en clair */
.hero-meta { color: rgba(245, 241, 234, 0.72); }
.hero-meta .meta-line { background: var(--light); }
.hero-title { color: var(--light); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.55); }
.hero-title .italic { color: var(--light); opacity: 0.66; }
.hero-tagline { color: rgba(245, 241, 234, 0.82); }
.hero-tagline strong { color: var(--light); }
.hero-locations { color: var(--light); }
.scroll-indicator { color: rgba(245, 241, 234, 0.62); }
.scroll-line { background: rgba(245, 241, 234, 0.3); }
.scroll-line::after { background: var(--light); }

/* Boutons du hero adaptés au fond sombre */
.hero .btn-primary { background: var(--light); color: var(--ink); }
.hero .btn-primary:hover { background: var(--accent); color: var(--light); }
.hero .btn-ghost { color: var(--light); border-bottom-color: rgba(245, 241, 234, 0.55); }
.hero .btn-ghost:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* En-tête claire au-dessus du hero sombre (avant défilement) */
.home .site-header:not(.scrolled) .logo-img g rect,
.home .site-header:not(.scrolled) .logo-img text tspan { fill: var(--light); }
.home .site-header:not(.scrolled) .logo-img line { stroke: var(--light); }
.logo-img g rect, .logo-img line, .logo-img text tspan { transition: fill 0.4s, stroke 0.4s; }
.home .site-header:not(.scrolled) .main-nav a { color: var(--light); }
.home .site-header:not(.scrolled) .nav-cta {
    border-color: rgba(245, 241, 234, 0.45);
    color: var(--light);
}
.home .site-header:not(.scrolled) .nav-cta:hover { background: var(--light); color: var(--ink); }
.home .site-header:not(.scrolled) .nav-client {
    background: var(--light);
    color: var(--ink);
    border-color: var(--light);
}
.home .site-header:not(.scrolled) .nav-client:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--light);
}
.home .site-header:not(.scrolled) .menu-toggle span { background: var(--light); }

/* Bandeau image éditorial — Cabinet & Expertises */
.media-band {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.media-band-img {
    position: relative;
    height: clamp(260px, 38vw, 500px);
    background-size: cover;
    background-position: center;
    transition: transform 1.3s var(--easing);
    will-change: transform;
}
.media-band:hover .media-band-img { transform: scale(1.045); }
.media-band figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 80px 44px 34px;
    background: linear-gradient(transparent, rgba(10, 10, 10, 0.82));
    color: var(--light);
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(19px, 2.1vw, 31px);
    line-height: 1.22;
    letter-spacing: -0.02em;
    z-index: 2;
}
.media-band figcaption span {
    display: block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.cabinet .media-band { margin-bottom: 90px; }
.expertise .media-band { margin: 64px 0 0; }

/* Photo en tête de chaque agence */
.agence-photo {
    height: clamp(150px, 15vw, 196px);
    background-size: cover;
    background-position: center;
    margin-bottom: 34px;
    border-radius: 3px;
}

@media (max-width: 720px) {
    .hero-photo { background-position: center 22%; }
    .media-band figcaption { padding: 60px 24px 26px; }
    .cabinet .media-band { margin-bottom: 64px; }
}
