/* ═══════════════════════════════════════════════════════════════════
   MODUM × MOENIO — Main Stylesheet
   Pixel-perfect transposition du design handoff Claude Design (JSX → CSS).
   Classes hf-* alignées sur le code source des maquettes hi-fi.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══ Follana ═══ */
@font-face {
    font-family: 'Follana';
    src: url('../fonts/follana.woff2') format('woff2');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

/* ═══════════════ TOKENS — extraits exacts du JSX v11-hifi.jsx HF object ═══════════════ */
:root {
    --modum: #255FA8;
    --modum-deep: #1A4A86;
    --modum-soft: #8BBDF0;
    --modum-wash: #EEF4FB;
    --moenio: #4B8278;
    --moenio-soft: #9CCFB8;

    --bg: #FAFBFC;
    --paper: #FFFFFF;
    --paper-2: #F4F6F9;
    --paper-3: #ECEFF4;

    --ink: #0E263B;
    --ink-soft: #3A4F63;
    --muted: #6B7585;

    /* Couleur des surfaces sombres (topbar/footer/héros/CTA dark) — overridable par marque (MOENIO = vert foncé) */
    --surface-dark: #0E263B;

    /* RGB triplets pour box-shadows et radial-gradients colorés — overridable par marque */
    --brand-rgb: 37, 95, 168;          /* MODUM bleu | MOENIO 75, 130, 120 */
    --brand-soft-rgb: 139, 189, 240;   /* MODUM bleu clair | MOENIO 156, 207, 184 */

    --line: #DDE3EA;
    --line-strong: #A8B3C2;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    --font-brand: 'Follana', 'Fraunces', serif;

    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ═══ Reset ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 200ms var(--ease); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--modum); color: #fff; }

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; padding: 12px 20px; background: var(--modum); color: #fff; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; outline: 2px solid #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   CLASSES HF — Reproduction fidèle du JSX
   ═══════════════════════════════════════════════════════════════════ */

.hf-root { line-height: 1.5; }
.hf-root * { box-sizing: border-box; }

/* ─── Reveal on scroll ─── */
.hf-reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.hf-reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .hf-reveal { opacity: 1; transform: none; } }

/* ─── Buttons ─── */
.hf-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
    cursor: pointer;
    transition: transform 200ms, box-shadow 200ms, background 200ms, border-color 200ms, color 200ms;
    border: 1.5px solid transparent;
    white-space: nowrap;
    font-family: var(--font-sans);
}
.hf-btn.primary { background: var(--modum); color: #fff; }
.hf-btn.primary:hover { background: var(--modum-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.28); }
.hf-btn.outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.hf-btn.outline:hover { border-color: var(--modum); color: var(--modum); transform: translateY(-1px); }
.hf-btn.ghost-light { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(6px); }
.hf-btn.ghost-light:hover { background: rgba(255,255,255,0.18); }
.hf-btn.white { background: #fff; color: var(--modum); }
.hf-btn.white:hover { background: var(--paper-2); transform: translateY(-1px); }
.hf-btn--sm { padding: 10px 18px; font-size: 13px; }

/* ─── Links ─── */
.hf-link {
    color: var(--modum); font-weight: 600; font-size: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    transition: gap 180ms;
    cursor: pointer;
}
.hf-link:hover { gap: 12px; }
.hf-link--soft { color: var(--modum-soft); }

/* ─── Typography helpers ─── */
.hf-mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.04em; }
.hf-kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--modum);
    letter-spacing: 0.2em;
    font-weight: 600;
    text-transform: uppercase;
}
.hf-kicker--soft { color: var(--modum-soft); }
.hf-kicker--muted { color: var(--muted); }

.display-brand { font-family: var(--font-brand); font-weight: 400; letter-spacing: -0.005em; }

/* ─── Card base ─── */
.hf-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 250ms, box-shadow 250ms;
}
.hf-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(14,38,59,0.08); }

/* ─── Chips ─── */
.hf-chip {
    display: inline-flex; align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 13px; font-weight: 500;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    transition: all 180ms;
    white-space: nowrap;
}
.hf-chip:hover { border-color: var(--line-strong); }
.hf-chip.active { background: var(--surface-dark); color: #fff; border-color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════════
   TOPBAR — fond ink #0E263B, mono uppercase, 10px 60px desktop
   ═══════════════════════════════════════════════════════════════════ */
.hf-topbar {
    background: var(--surface-dark);
    color: rgba(255,255,255,0.78);
    padding: 10px 60px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px;
}
.hf-topbar__left {
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
}
.hf-topbar__sibling {
    display: inline-flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: color 200ms;
}
.hf-topbar__sibling:hover { color: var(--modum-soft); }
.hf-topbar__sibling img { height: 16px; width: auto; display: inline-block; vertical-align: middle; }
.hf-topbar__sibling-arrow { color: var(--modum-soft); }

/* ═══════════════════════════════════════════════════════════════════
   HEADER — sticky, blur, bg rgba(255,255,255,0.85), padding 18px 60px
   ═══════════════════════════════════════════════════════════════════ */
.hf-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 18px 60px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
}
.hf-header__logo { display: inline-flex; align-items: center; gap: 14px; }
.hf-header__logo img { height: 38px; width: auto; display: block; }

.hf-nav { display: flex; align-items: center; gap: 32px; }
.hf-nav a {
    color: var(--ink);
    font-size: 14px; font-weight: 500;
    letter-spacing: -0.005em;
    display: inline-flex; align-items: center; gap: 4px;
    transition: color 200ms;
}
.hf-nav a:hover, .hf-nav .current-menu-item > a { color: var(--modum); }
.hf-nav__caret { font-size: 9px; opacity: 0.5; }

.hf-burger {
    display: none;
    place-items: center;
    width: 44px; height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hf-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 250ms var(--ease), opacity 250ms; }
.hf-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hf-burger.is-active span:nth-child(2) { opacity: 0; }
.hf-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.hf-mobile-menu {
    position: fixed; inset: 0; z-index: 200;
    background: #fff;
    transform: translateX(100%);
    transition: transform 350ms var(--ease);
    display: flex; flex-direction: column;
    padding: 28px 28px 40px;
    overflow-y: auto;
}
.hf-mobile-menu.is-open { transform: translateX(0); }
.hf-mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.hf-mobile-menu__head img { height: 32px; }
.hf-mobile-menu__close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.hf-mobile-menu__list a { display: block; padding: 16px 0; font-size: 22px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.hf-mobile-menu__cta { margin-top: 28px; align-self: flex-start; }

/* ═══════════════════════════════════════════════════════════════════
   HERO — Accueil (background photo + grad blanc)
   ═══════════════════════════════════════════════════════════════════ */
.hf-hero {
    position: relative;
    min-height: 720px;
    background: var(--paper);
    overflow: hidden;
}
.hf-hero__bg { position: absolute; inset: 0; }
.hf-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.95) 38%, rgba(255,255,255,0.4) 60%, rgba(14,38,59,0.15) 100%);
}
.hf-hero-grid {
    position: relative;
    padding: 100px 80px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: end;
    min-height: 680px;
}
.hf-hero-grid > div:first-child { padding-bottom: 90px; }
.hf-hero-title {
    font-size: 88px; font-weight: 700;
    letter-spacing: -0.03em; line-height: 0.98;
    margin: 24px 0 0; color: var(--ink);
    max-width: 880px;
}
.hf-hero-title__accent { color: var(--modum); }
.hf-hero-subtitle {
    font-size: 20px; color: var(--ink-soft);
    margin-top: 32px; max-width: 580px; line-height: 1.5;
    text-align: left;
}
.hf-hero-ctas { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.hf-stats-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(14,38,59,0.08);
    margin-bottom: 90px;
}
.hf-stats-card__kicker {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
}
.hf-stats-card__grid {
    margin-top: 18px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.hf-stats-card__item { padding-top: 14px; border-top: 2px solid var(--modum); }
.hf-stats-card__num { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.hf-stats-card__lbl { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.3; }

.hf-hero__scroll {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--muted); font-size: 11px;
}
.hf-hero__scroll-label { font-family: var(--font-mono); letter-spacing: 0.18em; font-weight: 500; }
.hf-hero__scroll-line { width: 1px; height: 36px; background: linear-gradient(180deg, var(--line-strong), transparent); }

/* ═══════════════════════════════════════════════════════════════════
   SECTION GENERIQUE — padding 120px 80px
   ═══════════════════════════════════════════════════════════════════ */
.hf-section { padding: 120px 80px; background: var(--paper); }
.hf-section--paper2 { background: var(--paper-2); }
.hf-section--paper3 { background: var(--paper-3); }
.hf-section--dark { background: var(--surface-dark); color: rgba(255,255,255,0.85); }
.hf-section--dark h1, .hf-section--dark h2, .hf-section--dark h3 { color: #fff; }

.hf-section-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.hf-section-split--inverse { grid-template-columns: 1.4fr 1fr; }
.hf-section-split--center { align-items: center; }

.hf-section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; flex-wrap: wrap; gap: 24px; }

/* Headings standards utilisés sur les pages */
.hf-h1-page { font-size: 64px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.0; margin: 24px 0 0; max-width: 1100px; }
.hf-h1-page__accent { color: var(--modum); }
.hf-h1-large { font-size: 76px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin: 32px 0 0; color: var(--ink); max-width: 1100px; }
.hf-h2-section { font-size: 44px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin-top: 16px; }
.hf-h2-large { font-size: 52px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin-top: 16px; }
.hf-lead { font-size: 17px; color: var(--ink-soft); line-height: 1.65; margin-top: 24px; max-width: 760px; }
.hf-lead--lg { font-size: 18px; color: var(--ink); }

/* Watermark Follana grand format (Hero intérieurs) */
.hf-watermark {
    position: absolute; right: -40px; top: 40px;
    font-size: 360px; line-height: 1;
    color: var(--modum-wash);
    font-family: var(--font-brand);
    pointer-events: none; user-select: none;
    white-space: nowrap;
}
.hf-page-hero {
    position: relative;
    padding: 90px 80px 70px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.hf-page-hero > .hf-container { position: relative; }

/* ═══════════════════════════════════════════════════════════════════
   PRESTATIONS HOME — 2 cartes côte à côte
   ═══════════════════════════════════════════════════════════════════ */
.hf-presta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* Variante 4 cartes (MOENIO) — 4 cols desktop, 2x2 tablette + mobile */
.hf-presta-cards--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hf-presta-card {
    padding: 32px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    height: 100%;
    display: flex; flex-direction: column;
    transition: transform 250ms, box-shadow 250ms;
}
.hf-presta-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(14,38,59,0.08); }
.hf-presta-card__code { font-family: var(--font-mono); font-size: 11px; color: var(--modum); letter-spacing: 0.18em; font-weight: 700; text-transform: uppercase; }
.hf-presta-card__title { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; margin-top: 14px; line-height: 1.15; }
.hf-presta-card__quote { margin-top: 12px; font-size: 14px; font-style: italic; color: var(--modum); line-height: 1.5; }
.hf-presta-card__desc { margin-top: 16px; font-size: 14px; color: var(--ink-soft); line-height: 1.65; flex: 1; }
.hf-presta-card__link { margin-top: 22px; }

/* Mobile accordéon variant */
.hf-presta-accordion { display: none; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.hf-presta-accordion__item { border-top: 1px solid var(--line); }
.hf-presta-accordion__item:first-child { border-top: 0; }
.hf-presta-accordion__head {
    width: 100%; padding: 18px;
    background: #fff;
    display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: background 180ms;
}
.hf-presta-accordion__item.is-open .hf-presta-accordion__head { background: var(--modum-wash); }
.hf-presta-accordion__code { font-family: var(--font-mono); font-size: 11px; color: var(--modum); letter-spacing: 0.14em; font-weight: 700; }
.hf-presta-accordion__title { font-size: 16px; font-weight: 700; color: var(--ink); }
.hf-presta-accordion__plus {
    width: 26px; height: 26px; border-radius: 999px;
    background: var(--paper-2); color: var(--modum);
    display: grid; place-items: center;
    font-size: 16px; font-weight: 600;
    transition: background 180ms, transform 200ms;
}
.hf-presta-accordion__item.is-open .hf-presta-accordion__plus { background: var(--modum); color: #fff; transform: rotate(45deg); }
.hf-presta-accordion__body { overflow: hidden; max-height: 0; transition: max-height 320ms var(--ease); }
.hf-presta-accordion__item.is-open .hf-presta-accordion__body { max-height: 600px; }
.hf-presta-accordion__body-inner { padding: 4px 18px 22px; }
.hf-presta-accordion__quote { font-size: 13px; font-style: italic; color: var(--modum); line-height: 1.5; }
.hf-presta-accordion__desc { margin-top: 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════════
   PROJECT CARD — Grille références + accueil
   Card avec hover overlay (7 infos)
   ═══════════════════════════════════════════════════════════════════ */
.hf-projects-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}
.hf-projects-grid--3col { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 22px; }

.hf-project-card {
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--paper-3);
}
.hf-projects-grid--3col .hf-project-card { aspect-ratio: 4 / 3; grid-column: auto; }
.hf-project-card { grid-column: span 2; }
.hf-project-featured { grid-column: span 4; grid-row: span 2; }
/* Layout 5 projets sans CTA — cards 4&5 prennent 3 cols pour remplir la dernière rangée */
.hf-projects-grid > .hf-project-card:nth-child(4):not(.hf-project-featured),
.hf-projects-grid > .hf-project-card:nth-child(5):not(.hf-project-featured) { grid-column: span 3; }

.hf-project-card__img {
    position: absolute; inset: 0;
    transition: transform 600ms var(--ease);
}
.hf-project-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-project-card:hover .hf-project-card__img,
.hf-project-card.is-open .hf-project-card__img { transform: scale(1.05); }

.hf-project-card__grad {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,38,59,0) 50%, rgba(14,38,59,0.85) 100%);
    transition: background 250ms;
}
.hf-project-card:hover .hf-project-card__grad,
.hf-project-card.is-open .hf-project-card__grad {
    background: linear-gradient(180deg, rgba(14,38,59,0.55) 0%, rgba(14,38,59,0.96) 100%);
}

.hf-project-status {
    position: absolute; top: 16px; right: 16px;
    z-index: 2;
    padding: 5px 12px;
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    background: rgba(255,255,255,0.95);
    color: var(--ink);
}
.hf-project-status--live { background: var(--modum); color: #fff; }

.hf-project-title {
    position: absolute; inset: auto 0 0 0;
    padding: 20px;
    color: #fff;
    transition: opacity 200ms, transform 200ms;
    z-index: 1;
}
.hf-project-featured .hf-project-title { padding: 32px; }
.hf-project-card:hover .hf-project-title,
.hf-project-card.is-open .hf-project-title { opacity: 0; transform: translateY(8px); }

.hf-project-title__cat { font-family: var(--font-mono); font-size: 10px; opacity: 0.85; letter-spacing: 0.14em; text-transform: uppercase; }
.hf-project-title__name { font-size: 17px; font-weight: 700; margin-top: 8px; letter-spacing: -0.01em; line-height: 1.15; }
.hf-project-featured .hf-project-title__name { font-size: 30px; }
.hf-project-title__loc { font-size: 11px; opacity: 0.85; margin-top: 4px; }
.hf-project-featured .hf-project-title__surface { margin-top: 6px; opacity: 0.9; font-size: 14px; }

.hf-project-overlay {
    position: absolute; inset: 0;
    padding: 18px;
    display: flex; flex-direction: column; justify-content: flex-end;
    gap: 10px;
    color: #fff;
    opacity: 0; transition: opacity 220ms;
    pointer-events: none;
    z-index: 1;
}
.hf-project-featured .hf-project-overlay { padding: 28px; gap: 14px; }
.hf-project-card:hover .hf-project-overlay,
.hf-project-card.is-open .hf-project-overlay { opacity: 1; }

.hf-project-overlay__cat { font-family: var(--font-mono); font-size: 9px; opacity: 0.7; letter-spacing: 0.14em; text-transform: uppercase; }
.hf-project-featured .hf-project-overlay__cat { font-size: 11px; }
.hf-project-overlay__name { font-size: 15px; font-weight: 700; margin-top: 6px; letter-spacing: -0.01em; line-height: 1.15; }
.hf-project-featured .hf-project-overlay__name { font-size: 24px; }

.hf-project-overlay__grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 10.5px; line-height: 1.35;
}
.hf-project-featured .hf-project-overlay__grid { gap: 10px 18px; font-size: 12px; }
.hf-project-overlay__grid dt { font-family: var(--font-mono); color: rgba(255,255,255,0.5); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.hf-project-overlay__grid dd { margin-top: 2px; font-weight: 500; }
.hf-project-overlay__grid .full { grid-column: 1 / -1; }

/* CTA card "+218 projets" */
.hf-project-cta-card {
    height: 100%;
    background: var(--modum); color: #fff;
    border-radius: 14px; padding: 28px;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
    transition: transform 250ms, box-shadow 250ms;
}
.hf-project-cta-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(var(--brand-rgb), 0.30); }
.hf-project-cta-card::before {
    content: ''; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 14px);
    pointer-events: none;
}
.hf-project-cta-card__kicker { font-family: var(--font-mono); font-size: 11px; opacity: 0.85; letter-spacing: 0.18em; position: relative; }
.hf-project-cta-card__title { font-size: 26px; font-weight: 700; line-height: 1.15; position: relative; }
.hf-project-cta-card__link { margin-top: 18px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; position: relative; }

/* ═══════════════════════════════════════════════════════════════════
   ACCOMPAGNONS (accueil) — 4 cards typo + bloc clients
   ═══════════════════════════════════════════════════════════════════ */
.hf-accompagnons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hf-typo-card {
    appearance: none; font: inherit; text-align: left;
    width: 100%;
    padding: 26px;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: all 220ms;
    position: relative;
}
.hf-typo-card.is-active {
    background: var(--modum); color: #fff;
    border-color: var(--modum);
    box-shadow: 0 16px 36px rgba(var(--brand-rgb), 0.24);
}
.hf-typo-card.is-active::after {
    content: ''; position: absolute; bottom: -10px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 18px; height: 18px; background: var(--modum);
}
.hf-typo-card__code {
    width: 40px; height: 40px; border-radius: 8px;
    background: var(--modum); color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-mono);
    font-weight: 800; font-size: 13px; letter-spacing: 0.05em;
}
.hf-typo-card.is-active .hf-typo-card__code { background: rgba(255,255,255,0.18); }
.hf-typo-card__title { margin-top: 18px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.hf-typo-card__desc { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.hf-typo-card.is-active .hf-typo-card__desc { color: rgba(255,255,255,0.78); }
.hf-typo-card__count {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--modum);
    font-weight: 700;
}
.hf-typo-card.is-active .hf-typo-card__count { color: rgba(255,255,255,0.85); }

.hf-clients-panel {
    margin-top: 36px;
    padding: 44px 40px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--line);
}
.hf-clients-panel__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.hf-clients-panel__kicker { font-family: var(--font-mono); font-size: 11px; color: var(--modum); letter-spacing: 0.18em; font-weight: 700; }
.hf-clients-panel__title { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; margin-top: 10px; }
.hf-clients-panel__count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.12em; }
.hf-clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hf-client-tile {
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--paper-3);
    border-radius: 8px;
    font-family: var(--font-sans); font-weight: 800; font-size: 14px;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
    padding: 12px !important;
    overflow: hidden !important;
    box-sizing: border-box;
}
.hf-client-tile img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: grayscale(1) opacity(0.65);
    transition: filter 250ms var(--ease);
}
.hf-client-tile:hover img { filter: grayscale(0) opacity(1); }

/* ═══════════════════════════════════════════════════════════════════
   PROCESS RAIL — 6 cercles fond noir
   ═══════════════════════════════════════════════════════════════════ */
.hf-process {
    padding: 140px 80px;
    background: var(--surface-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hf-process::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 15% 25%, rgba(var(--brand-rgb), 0.30) 0%, transparent 50%), radial-gradient(circle at 85% 75%, rgba(var(--brand-soft-rgb), 0.10) 0%, transparent 50%);
    pointer-events: none;
}
.hf-process__inner { position: relative; }
.hf-process__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 80px; gap: 32px; }
.hf-process__rail { position: relative; }
.hf-process__line {
    position: absolute; top: 36px; left: 5%; right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--modum-soft) 8%, var(--modum-soft) 92%, transparent);
    opacity: 0.4;
}
.hf-process__steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; }
.hf-process__step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hf-process__circle {
    width: 74px; height: 74px; border-radius: 999px;
    background: var(--surface-dark); border: 2px solid var(--modum-soft);
    display: grid; place-items: center;
    position: relative; z-index: 2;
}
.hf-process__circle-code { font-family: var(--font-mono); color: var(--modum-soft); font-size: 14px; font-weight: 700; letter-spacing: 0.05em; }
.hf-process__num { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 18px; letter-spacing: 0.18em; }
.hf-process__lbl { font-size: 15px; font-weight: 600; margin-top: 10px; letter-spacing: -0.005em; line-height: 1.25; }
.hf-process__desc { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 8px; line-height: 1.55; max-width: 180px; }
.hf-process__footer { margin-top: 80px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hf-process__footer-mono { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.15em; }

/* ═══════════════════════════════════════════════════════════════════
   CARTE INTERACTIVE — Split text/iframe
   ═══════════════════════════════════════════════════════════════════ */
.hf-carte-split { display: grid; grid-template-columns: 1fr 1.6fr; min-height: 620px; }
.hf-carte-split__left {
    padding: 90px 60px 90px 80px;
    background: var(--modum-wash);
    display: flex; flex-direction: column; justify-content: center;
}
.hf-carte-split__title { font-size: 40px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin-top: 16px; }
.hf-carte-split__desc { margin-top: 22px; font-size: 16px; color: var(--ink-soft); line-height: 1.6; max-width: 400px; }
.hf-carte-split__right {
    position: relative;
    background: var(--paper-3);
    overflow: hidden;
    min-height: 620px;
}
.hf-carte-split__iframe-wrap { position: absolute; inset: 0; overflow: hidden; }
.hf-carte-split__iframe-wrap iframe {
    position: absolute; top: -100px; left: 0;
    width: 100%; height: calc(100% + 100px);
    border: 0; display: block;
}
.hf-carte-legend {
    position: absolute; top: 20px; right: 20px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    font-size: 12px;
    display: flex; flex-direction: column; gap: 10px;
    border: 1px solid var(--line);
    box-shadow: 0 6px 20px rgba(14,38,59,0.08);
    z-index: 2;
}
.hf-carte-legend__title { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--muted); font-weight: 700; }
.hf-carte-legend__item { display: flex; align-items: center; gap: 10px; }
.hf-carte-legend__dot { width: 12px; height: 12px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }

/* ═══════════════════════════════════════════════════════════════════
   VALEURS — 3 cards avec borderLeft
   ═══════════════════════════════════════════════════════════════════ */
.hf-valeurs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hf-valeur-card {
    padding: 36px;
    background: var(--paper-2);
    border-radius: 16px;
    border-left: 3px solid var(--modum);
    height: 100%;
    display: flex; flex-direction: column;
}
.hf-valeur-card__code { font-family: var(--font-mono); font-size: 11px; color: var(--modum); letter-spacing: 0.18em; font-weight: 700; }
.hf-valeur-card__title { font-size: 28px; font-weight: 700; margin-top: 14px; letter-spacing: -0.015em; }
.hf-valeur-card__desc { margin-top: 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════════
   GROUPE SYNERGY (accueil) — 2 tiles + texte
   ═══════════════════════════════════════════════════════════════════ */
.hf-groupe-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hf-groupe-tile {
    display: block;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    transition: transform 200ms, box-shadow 200ms;
}
.hf-groupe-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(14,38,59,0.08); }
.hf-groupe-tile--current { cursor: default; background: var(--paper-2); border-style: dashed; }
.hf-groupe-tile--current:hover { transform: none; box-shadow: none; }
.hf-groupe-tile--current .hf-groupe-tile__cta { color: var(--muted) !important; }
.hf-groupe-tile img { height: 48px; width: auto; display: block; }
.hf-groupe-tile__name { margin-top: 18px; font-weight: 700; font-size: 18px; }
.hf-groupe-tile__sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hf-groupe-tile__cta { margin-top: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--modum); font-weight: 700; letter-spacing: 0.1em; }
.hf-groupe-tile__cta--moenio { color: var(--moenio); }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.hf-footer { background: var(--surface-dark); color: rgba(255,255,255,0.7); padding: 80px 80px 28px; }
.hf-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 64px; }
.hf-footer__logo img { height: 40px; filter: brightness(0) invert(1); display: block; }
.hf-footer__address { margin-top: 22px; font-size: 14px; line-height: 1.7; font-style: normal; }
.hf-footer__heading { color: #fff; font-weight: 600; font-size: 13px; margin-bottom: 18px; }
.hf-footer__nav a { font-size: 13px; color: rgba(255,255,255,0.7); display: block; margin-bottom: 10px; }
.hf-footer__nav a:hover { color: var(--modum-soft); }
.hf-footer__group { display: flex; flex-direction: column; gap: 10px; }
.hf-footer__group-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,0.05); border-radius: 8px; color: inherit; }
.hf-footer__group-item:hover { background: rgba(255,255,255,0.10); color: inherit; }
.hf-footer__group-item img { height: 22px; width: auto; }
.hf-footer__group-name { color: #fff; font-weight: 600; font-size: 12px; }
.hf-footer__group-sub { font-size: 10px; opacity: 0.6; }
.hf-footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 12px; }

/* ═══════════════════════════════════════════════════════════════════
   QUI — Hero stats, timeline, valeurs tableau, team grid
   ═══════════════════════════════════════════════════════════════════ */
.hf-qui-hero { padding: 110px 80px 100px; background: #fff; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hf-qui-hero__intro {
    display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
    margin-top: 56px; max-width: 1180px;
}
.hf-qui-hero__intro p { margin: 0; }
.hf-qui-hero__intro p:first-child { font-size: 18px; color: var(--ink); line-height: 1.65; }
.hf-qui-hero__intro p:last-child { font-size: 15px; color: var(--ink-soft); line-height: 1.75; }

.hf-qui-stats { padding: 70px 80px; background: var(--surface-dark); color: #fff; }
.hf-qui-stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.hf-qui-stat { padding: 0 28px; }
.hf-qui-stat + .hf-qui-stat { border-left: 1px solid rgba(255,255,255,0.12); }
.hf-qui-stat__num { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.hf-qui-stat__lbl { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,0.62); line-height: 1.45; }

.hf-timeline { margin-top: 72px; position: relative; }
.hf-timeline__rail { position: absolute; left: 9px; right: 0; top: 24px; height: 2px; background: var(--line); }
.hf-timeline__rail-fg { position: absolute; left: 9px; top: 24px; height: 2px; background: var(--modum); width: 80%; }
.hf-timeline__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.hf-timeline__item { position: relative; padding-top: 56px; padding-right: 24px; }
.hf-timeline__dot {
    position: absolute; top: 14px; left: 0;
    width: 20px; height: 20px; border-radius: 999px;
    background: var(--modum); border: 2.5px solid var(--modum);
    box-shadow: 0 0 0 4px #fff;
}
.hf-timeline__dot--future { background: #fff; }
.hf-timeline__year { font-family: var(--font-mono); font-size: 13px; color: var(--modum); font-weight: 700; }
.hf-timeline__title { font-size: 18px; font-weight: 700; margin-top: 10px; letter-spacing: -0.01em; line-height: 1.25; }
.hf-timeline__desc { font-size: 13px; color: var(--ink-soft); margin-top: 10px; line-height: 1.6; }

.hf-valeurs-table { margin-top: 56px; }
.hf-valeurs-row {
    display: grid; grid-template-columns: 80px 1fr 1.4fr 80px;
    gap: 36px; align-items: baseline;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}
.hf-valeurs-row:last-child { border-bottom: 1px solid var(--line); }
.hf-valeurs-row__code { font-family: var(--font-mono); font-size: 13px; color: var(--modum); font-weight: 700; }
.hf-valeurs-row__name { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.hf-valeurs-row__desc { font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin: 0; }
.hf-valeurs-row__counter { text-align: right; font-family: var(--font-mono); font-size: 11px; color: var(--modum); letter-spacing: 0.15em; font-weight: 700; }

.hf-team-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.hf-portrait-card { border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; }
.hf-portrait-card__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.hf-portrait-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms, filter 250ms; }
.hf-portrait-card:hover img { transform: scale(1.06); }
.hf-portrait-card__initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 700; letter-spacing: -0.03em; opacity: 0.5; }
.hf-portrait-card__badge {
    position: absolute; top: 10px; left: 10px;
    font-family: var(--font-mono);
    font-size: 9px; padding: 3px 7px;
    border-radius: 3px; color: #fff;
    letter-spacing: 0.12em; font-weight: 700;
}
.hf-portrait-card[data-entity="direction"] .hf-portrait-card__badge { background: var(--ink); }
/* Couleurs hardcodées : un badge MODUM reste bleu même sur le site MOENIO, et inverse */
.hf-portrait-card[data-entity="modum"] .hf-portrait-card__badge { background: #255FA8 !important; }
.hf-portrait-card[data-entity="moenio"] .hf-portrait-card__badge { background: #4B8278 !important; }

.hf-portrait-card__overlay {
    position: absolute; inset: auto 0 0 0;
    padding: 14px;
    background: linear-gradient(180deg, transparent, rgba(14,38,59,0.92));
    color: #fff;
    opacity: 0; transition: opacity 200ms;
}
.hf-portrait-card:hover .hf-portrait-card__overlay { opacity: 1; }
.hf-portrait-card__overlay-entity { font-family: var(--font-mono); font-size: 9px; opacity: 0.7; letter-spacing: 0.14em; }
.hf-portrait-card__overlay-name { font-size: 13px; font-weight: 700; margin-top: 4px; }
.hf-portrait-card__overlay-role { font-size: 11px; opacity: 0.85; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hf-portrait-card__info { padding: 12px 4px; }
.hf-portrait-card__info-name { font-size: 13px; font-weight: 700; }
.hf-portrait-card__info-role { font-family: var(--font-mono); font-size: 8px; color: var(--muted); margin-top: 3px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hf-team-cta {
    display: flex;
    flex-direction: column;
    color: var(--ink);
    transition: transform 200ms var(--ease);
}
.hf-team-cta:hover { transform: translateY(-4px); }
.hf-team-cta__box {
    aspect-ratio: 4 / 5;
    background: var(--paper-2);
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms, border-color 200ms;
}
.hf-team-cta:hover .hf-team-cta__box { background: var(--modum-wash); border-color: var(--modum); }
.hf-team-cta__plus {
    width: 44px; height: 44px; border-radius: 999px;
    background: var(--modum); color: #fff;
    display: grid; place-items: center;
    font-size: 22px; font-weight: 300;
}
.hf-team-cta__info { padding: 12px 4px; }
.hf-team-cta__lbl { font-size: 13px; font-weight: 700; color: var(--modum); letter-spacing: -0.005em; }

.hf-team-legend { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.hf-team-legend__item { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.hf-team-legend__dot { width: 10px; height: 10px; border-radius: 999px; border: 1.5px solid #fff; }
.hf-team-legend__dot--direction { background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.hf-team-legend__dot--modum { background: var(--modum); box-shadow: 0 0 0 1px var(--modum); }
.hf-team-legend__dot--moenio { background: var(--moenio); box-shadow: 0 0 0 1px var(--moenio); }

/* ═══════════════════════════════════════════════════════════════════
   PRESTATIONS — Hero rail + fiches détaillées
   ═══════════════════════════════════════════════════════════════════ */
.hf-presta-hero {
    padding: 110px 80px 90px;
    background: var(--surface-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hf-presta-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 18% 25%, rgba(var(--brand-rgb), 0.35) 0%, transparent 55%), radial-gradient(circle at 82% 75%, rgba(var(--brand-soft-rgb), 0.12) 0%, transparent 50%);
    pointer-events: none;
}
.hf-presta-hero__inner { position: relative; }
.hf-presta-hero h1 {
    font-size: 64px; font-weight: 700;
    letter-spacing: -0.03em; line-height: 1.0;
    margin: 24px 0 0;
    max-width: 1080px;
    color: #fff;
}
.hf-presta-hero h1 span { color: var(--modum-soft); }
.hf-presta-hero__lead { margin-top: 24px; font-size: 17px; color: rgba(255,255,255,0.78); max-width: 760px; line-height: 1.65; }

.hf-presta-rail { margin-top: 72px; position: relative; }
.hf-presta-rail__line {
    position: absolute; top: 40px; left: 5%; right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--modum-soft) 10%, var(--modum-soft) 90%, transparent);
    opacity: 0.35;
}
.hf-presta-rail__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; position: relative; }
/* Variante MOENIO : 4 expertises au lieu de 6 */
.hf-presta-rail__grid--4 { grid-template-columns: repeat(4, 1fr); }
.hf-presta-rail__step {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    color: inherit;
    cursor: pointer;
    transition: transform 200ms;
}
.hf-presta-rail__step:hover { transform: translateY(-3px); }
.hf-presta-rail__circle {
    width: 80px; height: 80px; border-radius: 999px;
    background: var(--surface-dark); border: 2px solid var(--modum-soft);
    display: grid; place-items: center;
    position: relative; z-index: 2;
    transition: background 200ms;
}
.hf-presta-rail__step:hover .hf-presta-rail__circle { background: var(--modum-soft); }
.hf-presta-rail__circle span { font-family: var(--font-mono); color: var(--modum-soft); font-size: 15px; font-weight: 700; letter-spacing: 0.05em; transition: color 200ms; }
.hf-presta-rail__step:hover .hf-presta-rail__circle span { color: var(--ink); }
.hf-presta-rail__num { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.42); margin-top: 18px; letter-spacing: 0.18em; font-weight: 500; }
.hf-presta-rail__lbl { font-size: 15px; font-weight: 600; margin-top: 10px; letter-spacing: -0.005em; line-height: 1.25; max-width: 170px; }

.hf-fiche {
    padding: 100px 80px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.hf-fiche:nth-child(even) { background: var(--paper-2); }
.hf-fiche:last-child { border-bottom: 0; }
.hf-fiche__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    grid-template-areas: "toggle media" "body media";
    gap: 36px 72px;
    align-items: start;
}
.hf-fiche__toggle { grid-area: toggle; }
.hf-fiche__head { display: flex; align-items: flex-start; gap: 18px; }
.hf-fiche__code-badge {
    width: 84px; height: 84px;
    border-radius: 16px;
    background: var(--modum);
    display: grid; place-items: center;
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--brand-rgb), 0.22);
    flex: 0 0 auto;
}
.hf-fiche__code-badge span { font-family: var(--font-mono); font-size: 18px; font-weight: 700; letter-spacing: 0.04em; }
.hf-fiche__title-wrap { flex: 1 1 auto; min-width: 0; }
.hf-fiche__counter { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; }
.hf-fiche__title { font-size: 36px; font-weight: 700; margin-top: 14px; letter-spacing: -0.02em; line-height: 1.1; }

.hf-fiche__body { grid-area: body; }
.hf-fiche__quote { margin-top: 14px; font-style: italic; color: var(--modum); font-size: 17px; line-height: 1.5; }
.hf-fiche__desc { margin-top: 20px; font-size: 15px; color: var(--ink-soft); line-height: 1.7; }

.hf-fiche__media { grid-area: media; }
.hf-fiche__photo {
    position: relative;
    border-radius: 14px; overflow: hidden;
    background: var(--paper-3);
    aspect-ratio: 16 / 9;
}
.hf-fiche__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms; }
.hf-fiche:hover .hf-fiche__photo img { transform: scale(1.04); }
.hf-fiche__photo-badge {
    position: absolute; top: 16px; left: 16px;
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.18em;
    padding: 5px 10px; border-radius: 4px;
    background: rgba(14,38,59,0.85); color: #fff;
    font-weight: 700;
    backdrop-filter: blur(6px);
}
.hf-fiche__info {
    margin-top: 22px;
    display: grid; grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.hf-fiche__info-cell { padding: 20px; }
.hf-fiche__info-cell + .hf-fiche__info-cell { border-left: 1px solid var(--line); }
.hf-fiche__info-lbl { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.15em; font-weight: 700; text-transform: uppercase; }
.hf-fiche__info-val { margin-top: 10px; font-size: 13px; color: var(--ink); font-weight: 500; }
.hf-fiche__phases { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.hf-fiche__phase {
    font-family: var(--font-mono); font-size: 10px;
    padding: 4px 10px; background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink);
}

/* CTA dark sur prestations */
.hf-cta-dark {
    padding: 90px 80px;
    background: var(--surface-dark); color: #fff;
    position: relative; overflow: hidden;
}
.hf-cta-dark::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 80% 50%, rgba(var(--brand-rgb), 0.35) 0%, transparent 55%);
    pointer-events: none;
}
.hf-cta-dark__inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.hf-cta-dark--center { text-align: center; }
.hf-cta-dark--center .hf-cta-dark__inner { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.hf-cta-dark__title { font-size: 40px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 16px 0 0; color: #fff; }
.hf-cta-dark__desc { margin-top: 18px; font-size: 16px; color: rgba(255,255,255,0.78); line-height: 1.65; max-width: 640px; }
.hf-cta-dark--center .hf-cta-dark__desc { margin-left: auto; margin-right: auto; }
.hf-cta-dark__ctas { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
.hf-cta-dark--center .hf-cta-dark__ctas { justify-content: center; margin-top: 32px; }

/* ═══════════════════════════════════════════════════════════════════
   RÉFÉRENCES — Filtres + grille
   ═══════════════════════════════════════════════════════════════════ */
.hf-ref-filters {
    padding: 24px 80px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 76px; z-index: 30;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hf-ref-filters__inner { display: flex; gap: 24px; align-items: center; flex-wrap: nowrap; }
.hf-ref-filters__label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; font-weight: 700; }
.hf-ref-filters__chips { display: flex; gap: 8px; flex: 1; flex-wrap: nowrap; overflow-x: auto; }
.hf-ref-filters__chips::-webkit-scrollbar { display: none; }
.hf-ref-filters__views { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.hf-view-btn {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px; font-weight: 500;
    background: #fff; color: var(--ink);
    cursor: pointer;
    transition: all 180ms;
}
.hf-view-btn.is-active { background: var(--surface-dark); color: #fff; border-color: var(--ink); }
.hf-view-btn--highlight {
    padding: 10px 16px;
    border: 1.5px solid var(--modum);
    background: var(--modum); color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.32);
    display: inline-flex; align-items: center; gap: 10px;
}
.hf-view-btn--highlight.is-active { background: var(--surface-dark); border-color: var(--ink); box-shadow: none; }
.hf-view-btn__dot { width: 7px; height: 7px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.25); }
.hf-view-btn__new { font-family: var(--font-mono); font-size: 9px; padding: 2px 6px; background: rgba(255,255,255,0.2); border-radius: 3px; letter-spacing: 0.12em; font-weight: 700; }

.hf-ref-results { padding: 60px 80px; }
.hf-ref-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    cursor: pointer;
    background: #fff;
    transition: transform 220ms, box-shadow 220ms;
}
.hf-ref-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(14,38,59,0.12); }
.hf-ref-card__photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.hf-ref-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 280ms, transform 500ms; }
.hf-ref-card.is-hover img, .hf-ref-card:hover img { filter: grayscale(1) brightness(0.45); transform: scale(1.06); }
.hf-ref-card__status {
    position: absolute; top: 14px; right: 14px;
    padding: 5px 11px;
    font-family: var(--font-mono);
    background: rgba(255,255,255,0.95); color: var(--ink);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; border-radius: 4px;
    z-index: 2;
}
.hf-ref-card__status--live { background: var(--modum); color: #fff; }
.hf-ref-card__overlay {
    position: absolute; inset: 0;
    padding: 20px;
    display: flex; flex-direction: column;
    justify-content: flex-end; gap: 10px;
    color: #fff;
    opacity: 0; transition: opacity 220ms;
    pointer-events: none;
}
.hf-ref-card.is-hover .hf-ref-card__overlay, .hf-ref-card:hover .hf-ref-card__overlay { opacity: 1; }
.hf-ref-card__overlay-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; color: #fff; }
.hf-ref-card__overlay-loc { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: rgba(255,255,255,0.72); text-transform: uppercase; }
.hf-ref-card__overlay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 11px; line-height: 1.35; }
.hf-ref-card__overlay-grid > div { }
.hf-ref-card__overlay-lbl { color: rgba(255,255,255,0.55); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-mono); }
.hf-ref-card__overlay-val { margin-top: 3px; font-weight: 500; }
.hf-ref-card__overlay-grid .full { grid-column: 1 / -1; }

.hf-ref-card__meta { padding: 22px; }
.hf-ref-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hf-ref-card__tag {
    font-family: var(--font-mono); font-size: 9px;
    padding: 3px 8px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 3px;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
}
.hf-ref-card__title { font-size: 18px; font-weight: 700; margin-top: 12px; letter-spacing: -0.01em; }
.hf-ref-card__sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

.hf-ref-pagination { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hf-ref-pagination__count { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.18em; font-weight: 700; text-transform: uppercase; }

/* Vue carte */
.hf-ref-map {
    position: relative;
    min-height: 680px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--paper-3);
}
.hf-ref-map iframe {
    position: absolute; top: -100px; left: 0;
    width: 100%; height: calc(100% + 100px);
    border: 0; display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   GROUPE — Comparaison MODUM × MOENIO
   ═══════════════════════════════════════════════════════════════════ */
.hf-groupe-compare {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
    position: relative;
}
.hf-groupe-cross {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
    display: grid; place-items: center;
    box-shadow: 0 10px 24px rgba(14,38,59,0.08);
    font-size: 26px; color: var(--line-strong);
    z-index: 2;
}
.hf-entity-card {
    padding: 44px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--modum);
    border-radius: 16px;
    height: 100%;
    display: flex; flex-direction: column;
    transition: transform 250ms, box-shadow 250ms;
}
.hf-entity-card--moenio { border-top-color: var(--moenio); }
.hf-entity-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(14,38,59,0.10); }
.hf-entity-card__head { display: flex; align-items: center; gap: 18px; }
.hf-entity-card__logo {
    width: 64px; height: 64px;
    background: var(--modum-wash);
    border-radius: 12px;
    display: grid; place-items: center;
}
.hf-entity-card--moenio .hf-entity-card__logo { background: #EAF3EE; }
.hf-entity-card__logo img { height: 40px; width: auto; }
.hf-entity-card__name { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--modum); }
.hf-entity-card--moenio .hf-entity-card__name { color: var(--moenio); }
.hf-entity-card__founded { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 4px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.hf-entity-card__tag { margin-top: 22px; font-size: 13px; color: var(--muted); font-weight: 500; }
.hf-entity-card__desc { margin-top: 16px; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
.hf-entity-card__exp-label { margin-top: 28px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.18em; font-weight: 700; text-transform: uppercase; }
.hf-entity-card__exp { margin-top: 14px; }
.hf-entity-card__exp li {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 15px; font-weight: 600;
    display: flex; align-items: center; gap: 10px;
}
.hf-entity-card__exp li::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--modum); }
.hf-entity-card--moenio .hf-entity-card__exp li::before { background: var(--moenio); }
.hf-entity-card__cta { margin-top: auto; padding-top: 30px; }

/* Benefits 01/02/03 */
.hf-benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.hf-benefit {
    padding: 32px;
    background: var(--paper-2);
    border-radius: 14px;
    height: 100%;
}
.hf-benefit__num { font-size: 56px; font-weight: 200; color: var(--modum); letter-spacing: -0.03em; line-height: 1; }
.hf-benefit__title { font-size: 22px; font-weight: 700; margin-top: 18px; letter-spacing: -0.01em; line-height: 1.2; }
.hf-benefit__desc { margin-top: 12px; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════════
   REJOINDRE — Offres, Process steps
   ═══════════════════════════════════════════════════════════════════ */
.hf-rej-offers { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hf-rej-offer {
    display: grid; grid-template-columns: 2.3fr 1fr 1.1fr 1fr auto;
    gap: 24px; padding: 24px 32px;
    align-items: center;
    cursor: pointer;
    transition: background 180ms;
}
.hf-rej-offer + .hf-rej-offer { border-top: 1px solid var(--line); }
.hf-rej-offer:hover { background: var(--modum-wash); }
.hf-rej-offer__title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.hf-rej-offer__ref { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 5px; letter-spacing: 0.14em; }
.hf-rej-offer__loc { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.hf-rej-offer__loc-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--modum); }
.hf-rej-offer__badge {
    display: inline-flex; padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px; font-weight: 600;
    background: var(--modum-wash);
    color: var(--modum);
    border: 1px solid #B5CFF0;
}
.hf-rej-offer__badge--stage { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.hf-rej-offer__exp { font-size: 13px; color: var(--ink-soft); }
.hf-rej-offer__cta {
    font-size: 13px; font-weight: 700; color: var(--modum);
    display: inline-flex; align-items: center; gap: 6px;
    transition: gap 180ms;
}
.hf-rej-offer:hover .hf-rej-offer__cta { gap: 12px; }

.hf-rej-process { margin-top: 72px; position: relative; }
.hf-rej-process__rail-bg { position: absolute; left: 6%; right: 6%; top: 32px; height: 2px; background: var(--line); }
.hf-rej-process__rail-fg { position: absolute; left: 6%; top: 32px; height: 2px; background: var(--modum); width: 70%; }
.hf-rej-process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.hf-rej-step { padding-top: 80px; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 180px; }
.hf-rej-step__num {
    position: absolute; top: 16px; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 36px; border-radius: 999px;
    background: var(--modum); color: #fff;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 800;
    box-shadow: 0 6px 14px rgba(var(--brand-rgb), 0.30);
}
.hf-rej-step__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0; line-height: 1.2; }
.hf-rej-step__desc { margin-top: 10px; font-size: 13px; color: var(--ink-soft); line-height: 1.55; }

/* RH Values cards */
.hf-rh-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.hf-rh-value {
    padding: 32px;
    background: #fff;
    border-radius: 14px;
    border-left: 3px solid var(--modum);
    height: 100%;
}
.hf-rh-value__code { font-family: var(--font-mono); font-size: 11px; color: var(--modum); letter-spacing: 0.18em; font-weight: 700; }
.hf-rh-value__title { font-size: 24px; font-weight: 700; margin-top: 14px; letter-spacing: -0.015em; }
.hf-rh-value__desc { margin-top: 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* Modal offre */
.hf-modal {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(14,38,59,0.78);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 80px;
    overflow-y: auto;
    opacity: 0; pointer-events: none;
    transition: opacity 250ms;
}
.hf-modal.is-open { opacity: 1; pointer-events: auto; }
.hf-modal__nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 56px; height: 56px; border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 22px;
    backdrop-filter: blur(8px);
}
.hf-modal__nav--prev { left: 28px; }
.hf-modal__nav--next { right: 28px; }
.hf-modal__content {
    width: 100%; max-width: 900px;
    background: var(--paper-2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(14,38,59,0.5);
    position: relative;
    animation: hf-pop 320ms var(--ease);
}
@keyframes hf-pop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.hf-modal__close {
    position: absolute; top: 18px; right: 18px; z-index: 4;
    width: 40px; height: 40px; border-radius: 999px;
    background: rgba(255,255,255,0.18); color: #fff;
    display: grid; place-items: center;
    font-size: 18px;
    backdrop-filter: blur(6px);
}
.hf-modal__header {
    padding: 40px 44px 32px;
    background: var(--surface-dark); color: #fff;
    position: relative; overflow: hidden;
}
.hf-modal__header::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 80% 50%, rgba(var(--brand-rgb), 0.35) 0%, transparent 55%);
    pointer-events: none;
}
.hf-modal__header-inner { position: relative; }
.hf-modal__ref { font-family: var(--font-mono); font-size: 10px; color: var(--modum-soft); letter-spacing: 0.18em; font-weight: 700; text-transform: uppercase; }
.hf-modal__title { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 14px 0 0; color: #fff; }
.hf-modal__tags { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.hf-modal__tag { padding: 6px 14px; background: rgba(255,255,255,0.12); border-radius: 999px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.hf-modal__tag-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--modum); }
.hf-modal__body { padding: 36px 44px 40px; }
.hf-modal__quote { font-size: 15px; color: var(--ink-soft); line-height: 1.7; font-style: italic; }
.hf-modal__section { margin-top: 30px; }
.hf-modal__section-label { font-family: var(--font-mono); font-size: 10px; color: var(--modum); letter-spacing: 0.18em; font-weight: 700; text-transform: uppercase; }
.hf-modal__list { margin-top: 14px; padding: 0; list-style: none; }
.hf-modal__list li { padding: 10px 0; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink); line-height: 1.55; }
.hf-modal__list li::before { content: ''; margin-top: 8px; width: 6px; height: 6px; border-radius: 999px; background: var(--modum); flex-shrink: 0; }
.hf-modal__perks { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.hf-modal__perk { padding: 7px 14px; background: var(--modum-wash); border: 1px solid #B5CFF0; border-radius: 999px; font-size: 12px; color: var(--modum); font-weight: 600; }
.hf-modal__footer { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

body.hf-modal-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════════
   CONTACT — Formulaire + sidebar
   ═══════════════════════════════════════════════════════════════════ */
.hf-contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 80px; align-items: start; }
.hf-form { display: grid; gap: 22px; margin-top: 28px; }
.hf-form__row { display: grid; gap: 16px; }
.hf-form__row--2 { grid-template-columns: 1fr 1fr; }
.hf-form__row--14 { grid-template-columns: 1.4fr 1fr; }
.hf-form__field { display: flex; flex-direction: column; }
.hf-form__label { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.hf-form__input, .hf-form__textarea {
    width: 100%;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 14px; color: var(--ink);
    transition: border-color 180ms, box-shadow 180ms;
    outline: none;
}
.hf-form__input { height: 48px; }
.hf-form__textarea { padding: 14px 16px; min-height: 150px; line-height: 1.6; resize: vertical; }
.hf-form__input:focus, .hf-form__textarea:focus { border-color: var(--modum); box-shadow: 0 0 0 4px var(--modum-wash); }
.hf-form__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hf-form__chip {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 13px; font-weight: 500;
    color: var(--ink); background: #fff;
    cursor: pointer;
    transition: all 180ms;
}
.hf-form__chip:hover { border-color: var(--line-strong); }
.hf-form__chip.is-active { background: var(--modum); color: #fff; border-color: var(--modum); }
.hf-form__upload {
    padding: 14px 18px;
    border: 1.5px dashed var(--line-strong);
    border-radius: 8px;
    background: var(--paper-2);
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: var(--ink-soft);
}
.hf-form__upload-icon { width: 32px; height: 32px; border-radius: 6px; background: #fff; display: grid; place-items: center; color: var(--modum); font-size: 16px; }
.hf-form__consent { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.hf-form__consent input { width: 16px; height: 16px; }
.hf-form__success { padding: 16px; border-radius: 8px; background: #ECFDF5; border: 1px solid #6EE7B7; color: #065F46; font-size: 14px; }
.hf-form__error { padding: 16px; border-radius: 8px; background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; font-size: 14px; }

.hf-contact-info { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.hf-bureau-card { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.hf-bureau-card--annexe { padding: 20px 28px; border-style: dashed; background: var(--paper-2); }
.hf-bureau-card__kicker { font-family: var(--font-mono); font-size: 10px; color: var(--modum); letter-spacing: 0.18em; font-weight: 700; text-transform: uppercase; }
.hf-bureau-card--annexe .hf-bureau-card__kicker { color: var(--muted); }
.hf-bureau-card__title { font-size: 22px; font-weight: 700; margin-top: 10px; letter-spacing: -0.01em; }
.hf-bureau-card--annexe .hf-bureau-card__title { font-size: 16px; margin-top: 6px; }
.hf-bureau-card__address { margin-top: 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; font-style: normal; }
.hf-bureau-map {
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line);
    background: var(--paper-2);
}
.hf-bureau-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ═══════════════════════════════════════════════════════════════════
   COMPACT WP (article, 404, search)
   ═══════════════════════════════════════════════════════════════════ */
.hf-entry { max-width: 760px; margin: 0 auto; padding: 60px 80px; }
.hf-entry h2 { margin: 40px 0 16px; }
.hf-entry h3 { margin: 32px 0 12px; }
.hf-entry p { margin-bottom: 16px; }
.hf-entry img { border-radius: 14px; margin: 24px 0; }
.hf-error-404 { padding: 120px 80px; text-align: center; }
.hf-error-404 h1 { font-size: clamp(80px, 14vw, 160px); margin-bottom: 16px; }
.hf-pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0; }
.hf-pagination .page-numbers { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--ink-soft); }
.hf-pagination .page-numbers:hover, .hf-pagination .current { background: var(--modum); border-color: var(--modum); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablette ≤ 1024px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hf-topbar { padding: 10px 28px; font-size: 11px; }
    .hf-topbar__sibling { display: none; }
    .hf-topbar { justify-content: center; }

    .hf-header { padding: 16px 28px; }
    .hf-nav { display: none; }
    .hf-burger { display: grid; }

    .hf-section { padding: 80px 28px; }
    .hf-page-hero { padding: 70px 28px 60px; }
    .hf-presta-hero { padding: 80px 28px 70px; }
    .hf-qui-hero { padding: 80px 28px; }
    .hf-qui-stats { padding: 50px 28px; }
    .hf-process { padding: 100px 28px; }
    .hf-cta-dark { padding: 70px 28px; }
    .hf-ref-filters { padding: 18px 28px; }
    .hf-ref-results { padding: 40px 28px; }
    .hf-fiche { padding: 80px 28px; }
    .hf-footer { padding: 60px 28px 24px; }
    .hf-carte-split__left { padding: 60px 28px; }
    .hf-watermark { font-size: 280px; }

    .hf-hero-grid { grid-template-columns: 1fr; padding: 70px 28px 60px; gap: 36px; min-height: auto; }
    .hf-hero-grid > div:first-child { padding-bottom: 0; }
    .hf-hero-title { font-size: 64px; line-height: 1.0; }
    .hf-stats-card { margin-bottom: 0; }
    .hf-hero__scroll { display: none; }

    .hf-section-split, .hf-section-split--inverse { grid-template-columns: 1fr; gap: 40px; }
    .hf-presta-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
    .hf-presta-cards--4 { grid-template-columns: 1fr 1fr; gap: 16px; }
    .hf-projects-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
    .hf-project-featured { grid-column: span 2; grid-row: span 1; }
    /* Tablette : projet phare avec même police que les autres */
    .hf-project-featured .hf-project-title { padding: 20px !important; }
    .hf-project-featured .hf-project-title__name { font-size: 17px !important; }
    .hf-project-featured .hf-project-title__surface { display: none !important; }
    .hf-project-featured .hf-project-overlay { padding: 18px !important; gap: 10px !important; }
    .hf-project-featured .hf-project-overlay__cat { font-size: 9px !important; }
    .hf-project-featured .hf-project-overlay__name { font-size: 15px !important; }
    .hf-project-featured .hf-project-overlay__grid { font-size: 10.5px !important; gap: 6px 12px !important; }
    .hf-project-featured .hf-project-overlay__grid dt { font-size: 9px !important; }

    /* Tablette : cartes de référence — overlay infos remontées et compactées */
    .hf-ref-card__overlay { padding: 14px 16px !important; gap: 6px !important; justify-content: flex-start !important; }
    .hf-ref-card__overlay-name { font-size: 14px !important; line-height: 1.15 !important; margin-bottom: 2px !important; }
    .hf-ref-card__overlay-loc { font-size: 9px !important; letter-spacing: 0.14em !important; }
    .hf-ref-card__overlay-grid { font-size: 10px !important; line-height: 1.3 !important; gap: 6px 12px !important; }
    .hf-ref-card__overlay-lbl { font-size: 8px !important; letter-spacing: 0.12em !important; }
    .hf-accompagnons-grid { grid-template-columns: 1fr 1fr; }
    .hf-process__steps { grid-template-columns: repeat(3, 1fr); gap: 30px; row-gap: 50px; }
    .hf-valeurs-grid { grid-template-columns: 1fr; }
    .hf-groupe-tiles { grid-template-columns: 1fr 1fr; }
    .hf-team-grid { grid-template-columns: repeat(4, 1fr); }
    .hf-clients-grid { grid-template-columns: repeat(4, 1fr); }
    .hf-projects-grid--3col { grid-template-columns: 1fr 1fr; }

    .hf-fiche__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "toggle toggle" "body media"; gap: 24px; }
    .hf-presta-rail__grid { grid-template-columns: repeat(3, 1fr); gap: 22px 10px; }

    .hf-qui-stats__grid { grid-template-columns: repeat(5, 1fr); }
    .hf-qui-stat__num { font-size: 36px; }

    .hf-timeline__grid { grid-template-columns: repeat(5, 1fr); }
    .hf-valeurs-row { grid-template-columns: 60px 1fr 1.4fr 60px; gap: 22px; padding: 22px 0; }
    .hf-valeurs-row__name { font-size: 26px; }

    .hf-groupe-compare { grid-template-columns: 1fr; }
    .hf-groupe-cross { display: none; }
    .hf-benefits-grid { grid-template-columns: 1fr; }

    .hf-rej-offer { grid-template-columns: 1fr; gap: 8px; }
    .hf-rej-process__steps { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .hf-rej-process__rail-bg, .hf-rej-process__rail-fg { display: none; }
    .hf-rh-values { grid-template-columns: 1fr; }

    .hf-contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .hf-form__row--2, .hf-form__row--14 { grid-template-columns: 1fr; }

    .hf-cta-dark__inner { grid-template-columns: 1fr; gap: 32px; }
    .hf-cta-dark__ctas { justify-content: flex-start; }

    .hf-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }

    .hf-carte-split { grid-template-columns: 1fr; }
    .hf-carte-split__right { min-height: 420px; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile ≤ 640px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .hf-topbar { padding: 6px 10px; font-size: 8px; letter-spacing: 0; gap: 0; flex-wrap: nowrap; justify-content: center; }
    .hf-topbar__left { white-space: nowrap; letter-spacing: 0.02em; font-size: 9px; }

    .hf-header { padding: 12px 16px; }
    .hf-header__logo img { height: 30px; }

    .hf-section { padding: 32px 16px; }
    .hf-page-hero { padding: 48px 16px 40px; }
    .hf-presta-hero { padding: 56px 16px 40px; }
    .hf-qui-hero { padding: 56px 16px 40px; }
    .hf-qui-stats { padding: 30px 12px; }
    .hf-process { padding: 56px 16px; }
    .hf-cta-dark { padding: 48px 16px; }
    .hf-ref-filters { padding: 14px 16px; top: 60px; }
    .hf-ref-results { padding: 28px 16px; }
    .hf-fiche { padding: 40px 16px; }
    .hf-footer { padding: 28px 16px 14px; }
    .hf-carte-split__left { padding: 40px 16px; }
    .hf-watermark { font-size: 180px; top: 20px; right: -20px; }

    /* Typography */
    h1 { font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; }
    h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
    h3 { font-size: 18px; }
    p { font-size: 14px; line-height: 1.55; }
    .hf-h1-page, .hf-h1-large, .hf-hero-title, .hf-presta-hero h1 { font-size: 34px; line-height: 1.05; }
    .hf-h2-section, .hf-h2-large { font-size: 26px; line-height: 1.15; }
    .hf-kicker { font-size: 9px; letter-spacing: 0.16em; }
    .hf-lead { font-size: 14px; }

    /* Hero */
    .hf-hero-grid { padding: 24px 16px 18px; gap: 16px; min-height: auto; }
    .hf-hero-subtitle { font-size: 14px; line-height: 1.55; max-width: 100%; margin-top: 12px; color: var(--ink); }
    .hf-hero-ctas { margin-top: 20px; }
    .hf-hero-overlay { background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.92) 60%, rgba(255,255,255,0.85) 100%); }
    .hf-stats-card { padding: 14px 12px; }
    .hf-stats-card__num { font-size: 24px; }
    .hf-stats-card__lbl { font-size: 11px; }

    /* Btn */
    .hf-btn { padding: 11px 16px; font-size: 12px; }

    /* Grid resets */
    .hf-presta-cards { grid-template-columns: 1fr; gap: 14px; }
    .hf-presta-cards { display: none; } /* On mobile, accordion replaces cards */
    .hf-presta-accordion { display: flex; }
    /* Variante 4 cartes (MOENIO) : on garde la grille 2x2 sur mobile, pas d'accordéon */
    .hf-presta-cards.hf-presta-cards--4 { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .hf-presta-cards--4 + .hf-presta-accordion { display: none !important; }

    .hf-projects-grid {
        display: flex !important; flex-direction: column !important;
        grid-template-columns: none !important; grid-auto-rows: auto !important;
        gap: 10px !important;
    }
    .hf-projects-grid > * { height: 150px !important; grid-column: auto !important; grid-row: auto !important; }
    .hf-project-card.hf-project-featured { grid-column: auto !important; grid-row: auto !important; }

    /* Overlay project mobile */
    .hf-project-overlay { padding: 8px 10px !important; gap: 3px !important; justify-content: center !important; }
    .hf-project-overlay__cat, .hf-project-overlay__name { display: none; }
    .hf-project-overlay__grid { font-size: 8px !important; line-height: 1.15 !important; gap: 2px 8px !important; }
    .hf-project-overlay__grid dt { font-size: 6.5px !important; letter-spacing: 0.08em !important; }
    .hf-project-title { padding: 10px 12px !important; }
    .hf-project-title__cat { font-size: 9px !important; }
    .hf-project-title__name { font-size: 15px !important; margin-top: 3px !important; line-height: 1.15 !important; }
    .hf-project-featured .hf-project-title__name { font-size: 15px !important; }
    .hf-project-title__loc { font-size: 10px !important; margin-top: 2px !important; }
    .hf-project-status { top: 10px !important; right: 10px !important; padding: 3px 8px !important; font-size: 9px !important; }

    /* CTA card mobile : devient simple lien */
    .hf-project-cta-card { background: transparent; color: var(--modum); border-radius: 0; padding: 16px 0; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; overflow: visible; min-height: 0 !important; height: auto !important; }
    .hf-project-cta-card::before { display: none; }
    .hf-project-cta-card > * { display: none; }
    .hf-project-cta-card::after { content: 'Voir toutes nos références →'; font-size: 14px; font-weight: 600; color: var(--modum); }

    .hf-accompagnons { display: none; } /* Hide whole "Nous accompagnons" on mobile */
    .hf-process { display: none; }       /* Hide process rail on mobile (info already on prestations page) */
    .hf-valeurs-grid { grid-template-columns: 1fr; gap: 12px; }
    .hf-valeurs { display: none; } /* Home : hide valeurs on mobile */
    .hf-groupe-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hf-groupe-tiles .hf-groupe-tile { padding: 18px; }
    .hf-groupe-tiles .hf-groupe-tile img { height: 32px; }
    .hf-groupe-tiles .hf-groupe-tile__name { margin-top: 12px; font-size: 15px; }
    .hf-groupe-tiles .hf-groupe-tile__sub { font-size: 10px; }
    .hf-groupe-tiles .hf-groupe-tile__cta { margin-top: 10px; font-size: 10px; }

    .hf-team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

    /* Qui */
    .hf-qui-hero__intro { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
    .hf-qui-stats__grid { grid-template-columns: repeat(5, 1fr); gap: 0; }
    .hf-qui-stat { padding: 0 6px; }
    .hf-qui-stat__num { font-size: 22px; }
    .hf-qui-stat__lbl { font-size: 8px; margin-top: 6px; line-height: 1.25; }
    .hf-timeline { margin-top: 32px; }
    .hf-timeline__rail, .hf-timeline__rail-fg { display: none; }
    .hf-timeline__grid { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 28px; }
    .hf-timeline__grid::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--modum); opacity: 0.35; }
    .hf-timeline__item { padding: 0 0 14px 0; }
    .hf-timeline__dot { top: 2px; left: -25px; width: 14px; height: 14px; border-width: 2px; }
    .hf-valeurs-row { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; }
    .hf-valeurs-row__counter { display: none; }
    .hf-valeurs-row__name { font-size: 22px; }

    /* Prestations */
    .hf-presta-hero h1 { font-size: 30px; }
    .hf-presta-rail__line { display: none; }
    .hf-presta-rail__grid { grid-template-columns: repeat(3, 1fr); gap: 22px 10px; }
    .hf-presta-rail__grid--4 { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
    .hf-presta-rail__circle { width: 56px; height: 56px; }
    .hf-presta-rail__circle span { font-size: 11px; }
    .hf-presta-rail__lbl { font-size: 11px; max-width: 100px; line-height: 1.2; }
    .hf-presta-rail__num { font-size: 9px; margin-top: 10px; }

    /* Prestations mobile : section sans padding horizontal, indent uniquement texte */
    .hf-fiche { padding: 40px 0 !important; }
    .hf-fiche__toggle { padding: 0 16px !important; }
    .hf-fiche__body { padding: 0 16px !important; }
    .hf-fiche__grid { display: flex !important; flex-direction: column !important; gap: 14px !important; padding: 0 !important; margin: 0 !important; }
    .hf-fiche__code-badge { width: 56px; height: 56px; border-radius: 10px; }
    .hf-fiche__code-badge span { font-size: 14px; }
    .hf-fiche__title { font-size: 22px; }
    /* Pleine largeur : photo + encart Pour qui/Phases */
    .hf-fiche__media { padding: 0 !important; margin: 0 !important; width: 100% !important; }
    .hf-fiche__photo { border-radius: 0 !important; aspect-ratio: 16 / 10; margin: 0 !important; width: 100% !important; }
    .hf-fiche__info { grid-template-columns: 1fr !important; margin: 0 !important; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; width: 100% !important; }
    .hf-fiche__info-cell + .hf-fiche__info-cell { border-left: none !important; border-top: 1px solid var(--line); }

    /* Nos références mobile : cards en pleine largeur écran */
    .hf-ref-results { padding-left: 0 !important; padding-right: 0 !important; }
    .hf-ref-results .hf-projects-grid { padding: 0 !important; margin: 0 !important; }
    .hf-ref-results .hf-ref-card { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; margin: 0 !important; width: 100% !important; }
    .hf-ref-results .hf-ref-card__photo { border-radius: 0 !important; margin: 0 !important; }
    .hf-ref-results .hf-ref-card__meta { padding-left: 16px !important; padding-right: 16px !important; }
    .hf-ref-map { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; }
    /* Mobile : overlay infos depuis le haut, plus compact */
    .hf-ref-card__overlay { padding: 10px 14px !important; gap: 4px !important; justify-content: flex-start !important; }
    .hf-ref-card__overlay-name { font-size: 13px !important; line-height: 1.15 !important; margin-bottom: 2px !important; }
    .hf-ref-card__overlay-loc { font-size: 8px !important; letter-spacing: 0.12em !important; }
    .hf-ref-card__overlay-grid { font-size: 9px !important; line-height: 1.2 !important; gap: 3px 10px !important; }
    .hf-ref-card__overlay-lbl { font-size: 7px !important; letter-spacing: 0.08em !important; }

    /* Rejoindre */
    .hf-rh-values { grid-template-columns: 1fr; gap: 12px; }
    .hf-rej-process__steps { grid-template-columns: 1fr; }
    .hf-rej-step { min-height: auto; padding-top: 60px; }
    .hf-modal { padding: 20px 12px; }
    .hf-modal__nav { display: none; }
    .hf-modal__header { padding: 28px 24px 24px; }
    .hf-modal__title { font-size: 24px; }
    .hf-modal__body { padding: 24px 24px 28px; }

    /* Contact */
    .hf-contact-grid { gap: 28px; }
    .hf-form__row--2, .hf-form__row--14 { grid-template-columns: 1fr; }
    .hf-bureau-card { padding: 20px 22px; }
    .hf-bureau-card__title { font-size: 18px; }

    /* Footer */
    .hf-footer-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "nav groupe"; gap: 22px 24px; }
    .hf-footer-grid > div:nth-of-type(1) { grid-area: brand; display: flex; align-items: center; gap: 16px; }
    .hf-footer-grid > div:nth-of-type(1) > div { margin-top: 0; }
    .hf-footer-grid > div:nth-of-type(2) { grid-area: nav; }
    .hf-footer-grid > div:nth-of-type(3) { grid-area: groupe; }
    .hf-footer__bottom { flex-direction: column; align-items: flex-start; }

    /* CTA dark */
    .hf-cta-dark__title { font-size: 26px; }
    .hf-cta-dark__ctas { width: 100%; flex-direction: column; align-items: stretch; }
    .hf-cta-dark__ctas .hf-btn { justify-content: center; width: 100%; }

    /* Compact spacing */
    section + section { padding-top: 28px; }
    .hf-section { padding-top: 32px; padding-bottom: 32px; }
}
