/* =================================================================
   Agence DADMH — Site vitrine agence web — DESIGN « DARK PREMIUM »
   Réimplémentation propre du modèle Claude Design (essai parqué).
   Charte famille DADMH : palette + typo reprises du master HygièneFacile.
   Profondeur : fond unique #0a0b0e + champ ambiant fixe + cartes verre.
   Polices AUTO-HÉBERGÉES (RGPD) — jamais de CDN Google Fonts.
   ================================================================= */

/* ─── Polices auto-hébergées (RGPD — SIL OFL 1.1) ─────────────── */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Latin.d80df8ff.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 400 500;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Italic-Latin.6f2f5c3b.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 300 400;
    font-display: swap;
    src: url('../fonts/Newsreader-Latin.62981321.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Newsreader';
    font-style: italic;
    font-weight: 300 400;
    font-display: swap;
    src: url('../fonts/Newsreader-Italic-Latin.48bc8861.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/Inter.3100e775.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('../fonts/JetBrainsMono-Latin.83c005d4.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Variables ───────────────────────────────────────────────── */
:root {
    /* Base profonde (dark premium) */
    --abyss: #0a0b0e;
    --charbon: #15171c;
    --charbon-90: #1c1f25;
    --charbon-80: #242831;

    /* Palette artisan (reprise master HygièneFacile) */
    --sauge: #3d6358;
    --sauge-light: #547a6f;
    --sauge-soft: #6b9384;
    --sauge-deep: #2c4a42;

    --canard: #1d3a4d;
    --canard-light: #2d5169;

    --ocre: #b5651d;
    --ocre-warm: #c97a30;
    --ocre-bright: #d98a3a;

    --creme: #e8e1d7;
    --creme-soft: #d8cfbf;
    --creme-deep: #b8ad9b;

    --brique: #c14a2b;

    /* Sémantique */
    --bg: var(--abyss);
    --bg-alt: var(--charbon-90);
    --head: #f1ece3;
    --ink: var(--creme);
    --ink-soft: rgba(232, 225, 215, 0.74);
    /* 0.58 (et non 0.50) : sous 0.55, le texte discret retombait sous le
       contraste 4,5:1 sur le fond le plus clair du site (--charbon-80). */
    --ink-mute: rgba(232, 225, 215, 0.58);
    --rule: rgba(232, 225, 215, 0.13);
    --rule-soft: rgba(232, 225, 215, 0.07);

    /* Verre (glassmorphism) */
    --glass: linear-gradient(158deg, rgba(36, 40, 50, 0.62), rgba(15, 17, 22, 0.50));
    --glass-strong: linear-gradient(158deg, rgba(40, 44, 54, 0.70), rgba(16, 18, 24, 0.56));
    --glass-border: rgba(232, 225, 215, 0.13);
    --glass-shadow: 0 36px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --blur: blur(18px) saturate(140%);

    /* Typographie */
    --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
    --news: 'Newsreader', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, "SF Mono", monospace;

    /* Layout */
    --maxw: 1240px;
}

/* ─── Reset + base ────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
}

/* Grain papier global — texture éditoriale (au-dessus de l'ambiant, sous le contenu) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.91  0 0 0 0 0.88  0 0 0 0 0.84  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.28;
    mix-blend-mode: overlay;
}
main, header, footer { position: relative; z-index: 2; }

::selection { background: var(--ocre-warm); color: var(--abyss); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input { font-family: inherit; }
:focus-visible { outline: 2px solid var(--ocre-warm); outline-offset: 3px; }

/* Skip link accessibilité */
.skip-link {
    position: absolute;
    left: -9999px; top: 0;
    background: var(--ocre);
    color: var(--abyss);
    padding: 0.7rem 1.2rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ─── Champ ambiant (profondeur fixe) ─────────────────────────── */
/* Markup statique : <div class="fx" aria-hidden="true"> … </div> en tête de body.
   Décoratif : si JS off, l'ambiant respire quand même (keyframes CSS). */
.fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fx-aura { position: absolute; inset: -10%; will-change: transform; }
.fx-blob { position: absolute; display: block; border-radius: 50%; filter: blur(44px); }
.fx-blob-1 {
    top: -8%; left: -6%;
    width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(circle at 50% 50%, rgba(181, 101, 29, 0.50), rgba(181, 101, 29, 0) 62%);
    animation: auraA 13s ease-in-out infinite;
}
.fx-blob-2 {
    top: 18%; right: -12%;
    width: 52vw; height: 52vw; max-width: 820px; max-height: 820px;
    background: radial-gradient(circle at 50% 50%, rgba(61, 99, 88, 0.48), rgba(61, 99, 88, 0) 64%);
    animation: auraB 17s ease-in-out infinite;
}
.fx-blob-3 {
    bottom: -14%; left: 24%;
    width: 50vw; height: 50vw; max-width: 760px; max-height: 760px;
    background: radial-gradient(circle at 50% 50%, rgba(29, 58, 77, 0.55), rgba(29, 58, 77, 0) 66%);
    animation: auraA 21s ease-in-out infinite;
}
.fx-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 42vh; perspective: 340px; perspective-origin: 50% 0%; opacity: 0.5; }
.fx-floor::before {
    content: "";
    position: absolute; inset: 0;
    transform: rotateX(66deg);
    transform-origin: 50% 0%;
    background-image:
        linear-gradient(rgba(232, 225, 215, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 225, 215, 0.09) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 92%);
    mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 92%);
}
@keyframes auraA { 0% { opacity: .5; transform: scale(1); } 50% { opacity: .82; transform: scale(1.08); } 100% { opacity: .5; transform: scale(1); } }
@keyframes auraB { 0% { opacity: .35; transform: scale(1.05); } 50% { opacity: .62; transform: scale(.95); } 100% { opacity: .35; transform: scale(1.05); } }

/* ─── Layout ──────────────────────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 2.5rem; }
.container-tight { max-width: 880px; margin: 0 auto; padding: 0 2.5rem; }

/* ─── Typo utilitaires ────────────────────────────────────────── */
.eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--ocre); }
.eyebrow.no-rule::before { display: none; }
.roman { font-family: var(--serif); font-style: italic; color: var(--ocre-bright); font-size: 1.4rem; letter-spacing: 0.02em; }

/* Index de section — bandeau magazine */
.section-index {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
    border-bottom: 1px solid var(--rule-soft);
}
.section-index .container { display: flex; gap: 1.2rem; flex-wrap: wrap; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.section-index .sep { color: var(--ocre); }

/* ─── Header ──────────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
header.scrolled {
    background: rgba(10, 11, 14, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; }
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--head);
    letter-spacing: -0.01em;
}
.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 34px; height: 34px;
    flex-shrink: 0;
    border: 1px solid rgba(201, 122, 48, 0.55);
    border-radius: 9px;
    box-shadow: inset 0 0 18px rgba(201, 122, 48, 0.18);
}
.logo-mark svg { width: 18px; height: 18px; }
.logo .brackets { color: var(--ocre-warm); font-style: italic; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a { font-size: 0.88rem; color: var(--ink-soft); transition: color 0.3s ease; position: relative; }
.nav-links a:not(.btn):hover { color: var(--head); }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--head); }
.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -4px;
    height: 1px;
    background: var(--ocre);
    transition: right 0.35s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]:not(.btn)::after { right: 0; }

/* ─── Boutons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: transform 0.25s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(140deg, #4a766a, #2c4a42);
    color: var(--head);
    padding: 0.85rem 1.7rem;
    border-color: transparent;
    box-shadow: 0 14px 34px -12px rgba(61, 99, 88, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px -12px rgba(61, 99, 88, 1), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-primary .arrow { transition: transform 0.3s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-outline {
    background: transparent;
    color: var(--ink);
    padding: 0.8rem 1.6rem;
    border: 1px solid rgba(232, 225, 215, 0.25);
}
.btn-outline:hover { border-color: var(--creme); color: var(--head); }
.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--ink-mute);
    border-radius: 0;
}
.btn-ghost:hover { color: var(--ocre-bright); border-bottom-color: var(--ocre); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }

/* ─── Hamburger + menu mobile ─────────────────────────────────── */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--head); transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; gap: 1.1rem; padding: 1.5rem 2.5rem 2.2rem; background: #0c0d11; border-top: 1px solid var(--rule); }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--head); font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
/* séparateurs hairline entre items de nav (pas avant le bouton CTA, déjà distinct) */
.mobile-menu a:not(.btn) + a:not(.btn) { border-top: 1px solid var(--rule-soft); padding-top: 1.05rem; }
.mobile-menu .btn { font-family: var(--sans); font-size: 0.92rem; align-self: flex-start; }

/* ─── Sections génériques (fonds transparents → l'ambiant respire) */
.section { padding: 6.5rem 0; }
.section-alt { background: transparent; }
.section-head { max-width: 48rem; margin-bottom: 3.5rem; }
.section-head .eyebrow { margin-bottom: 1.4rem; }
.section-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--head);
    text-wrap: balance;
}
.section-title .em { font-style: italic; color: var(--ocre-bright); font-weight: 400; }
.section-deck { font-family: var(--news); font-size: 1.2rem; font-weight: 300; line-height: 1.6; color: var(--ink-soft); max-width: 40em; margin-top: 1.3rem; }
.section-deck em { color: var(--head); font-style: italic; }

/* ─── En-tête de page intérieure ──────────────────────────────── */
.page-header { padding: 11rem 0 3.5rem; border-bottom: 1px solid var(--rule); }
.page-header .eyebrow { margin-bottom: 1.5rem; }
.page-header h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
    line-height: 1.0;
    letter-spacing: -0.022em;
    color: var(--head);
    text-wrap: balance;
    max-width: 16em;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.page-header h1 .em {
    font-style: italic;
    color: var(--ocre-bright);
    background: linear-gradient(96deg, #d98a3a, #c97a30 45%, #e8a04d);
    -webkit-background-clip: text;
    background-clip: text;
}
.page-header .deck { font-family: var(--news); font-size: 1.3rem; font-weight: 300; line-height: 1.55; color: var(--ink-soft); max-width: 36em; margin-top: 1.6rem; }
.page-header .deck em { color: var(--head); font-style: italic; }

/* ─── Pages légales ───────────────────────────────────────────── */
.legal { padding-bottom: 1rem; }
.legal-meta { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-mute); margin-bottom: 3rem; }
.legal-article { padding: 2.6rem 0; border-top: 1px solid var(--rule); }
.legal-article:first-of-type { border-top: none; padding-top: 0; }
.legal-article h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--head);
    letter-spacing: -0.01em;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
}
.legal-num { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--ocre-bright); flex-shrink: 0; }
.legal-article p { font-size: 1rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 1rem; max-width: 64ch; }
.legal-article p:last-child { margin-bottom: 0; }
.legal-article .label { color: var(--head); font-weight: 600; }
.legal-article a { color: var(--ocre-bright); border-bottom: 1px solid var(--ocre); padding-bottom: 1px; transition: color 0.3s ease, border-color 0.3s ease; }
.legal-article a:hover { color: var(--head); border-bottom-color: var(--creme); }
.legal-article ul { list-style: none; margin: 0.4rem 0 1.2rem; }
.legal-article li { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); padding: 0.35rem 0 0.35rem 1.5rem; position: relative; max-width: 64ch; }
.legal-article li::before { content: "—"; position: absolute; left: 0; color: var(--ocre); }

/* ─── Hero (accueil) ──────────────────────────────────────────── */
.hero { padding: 11rem 0 5.5rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 4rem; align-items: center; }
.hero-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.badge-artisan {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ocre-bright);
    padding: 0.5rem 0.95rem;
    border: 1px solid rgba(201, 122, 48, 0.4);
    border-radius: 999px;
    background: rgba(201, 122, 48, 0.07);
}
.hero-place { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); }
.hero h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.9rem, 6.4vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.024em;
    color: var(--head);
    margin-bottom: 1.7rem;
    text-wrap: balance;
    text-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.hero h1 .em {
    font-style: italic;
    font-weight: 400;
    color: var(--ocre-bright);
    background: linear-gradient(96deg, #d98a3a, #c97a30 45%, #e8a04d);
    -webkit-background-clip: text;
    background-clip: text;
}
/* Le fill transparent (qui révèle le dégradé clippé) n'est appliqué QUE si
   background-clip:text est supporté → sinon repli sur la color ocre pleine
   (le texte n'est jamais invisible). Couvre hero + en-têtes de page. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero h1 .em, .page-header h1 .em { -webkit-text-fill-color: transparent; }
}
.hero h1 .alt { font-family: var(--news); font-style: italic; font-weight: 300; color: var(--sauge-soft); }
.hero-deck { font-family: var(--news); font-size: 1.3rem; line-height: 1.55; color: var(--ink-soft); max-width: 33em; margin-bottom: 1.9rem; font-weight: 300; }
.hero-deck em { color: var(--head); font-style: italic; }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero-reassure { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--ink-mute); margin-top: 1.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-reassure .sep { color: var(--ocre-warm); }

/* Côté droit : formulaire flottant + pills */
.hero-side { position: relative; }
.hero-pill {
    position: absolute;
    z-index: 3;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.6rem 1rem;
    border-radius: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}
.hero-pill-a {
    top: -2.4rem; left: -1.4rem;
    color: #cfe0d8;
    background: linear-gradient(150deg, rgba(61, 99, 88, 0.55), rgba(20, 30, 27, 0.4));
    border: 1px solid rgba(120, 160, 148, 0.35);
    animation: drift 8s ease-in-out infinite;
}
.hero-pill-b {
    bottom: 1.2rem; right: -1.6rem;
    color: #f0c79a;
    background: linear-gradient(150deg, rgba(181, 101, 29, 0.45), rgba(40, 24, 10, 0.4));
    border: 1px solid rgba(201, 122, 48, 0.4);
    animation: driftB 10s ease-in-out infinite;
}

/* Indice de défilement */
.scroll-cue {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}
.scroll-cue span {
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.scroll-cue .cue-arrow { font-size: 0.9rem; animation: cue 1.8s ease-in-out infinite; }

@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes driftB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(18px); } }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .3; } 50% { transform: translateY(6px); opacity: 1; } }

/* ─── Grille piliers / valeur (cartes verre) ──────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
    padding: 2.2rem 1.9rem;
    border-radius: 20px;
    background: var(--glass);
    border: 1px solid rgba(232, 225, 215, 0.1);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.7);
    transition: border-color 0.35s ease, transform 0.35s ease;
}
.pillar:hover { border-color: rgba(201, 122, 48, 0.4); transform: translateY(-3px); }
.pillar-num { font-family: var(--mono); font-size: 1.6rem; font-weight: 500; color: var(--ocre-warm); }
.pillar h3 { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; color: var(--head); margin: 0.5rem 0 0.7rem; letter-spacing: -0.01em; }
.pillar p { font-size: 0.97rem; line-height: 1.65; color: var(--ink-soft); }

/* ─── Bloc souveraineté ───────────────────────────────────────── */
.sov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.sov-list { list-style: none; }
.sov-list li { padding: 1.2rem 0; border-top: 1px solid var(--rule); display: flex; gap: 1.1rem; align-items: flex-start; }
.sov-list li:last-child { border-bottom: 1px solid var(--rule); }
.sov-mark { color: var(--ocre-bright); font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.2; flex-shrink: 0; }
.sov-list h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: var(--head); margin-bottom: 0.3rem; }
.sov-list p { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.55; }
.sov-aside {
    position: relative;
    font-family: var(--news);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    line-height: 1.42;
    color: var(--creme);
    padding: 2.8rem 2.6rem;
    border-radius: 24px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
}
.sov-aside::before {
    content: "\201C";
    position: absolute;
    top: -0.6rem; left: 1.8rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: 4rem;
    line-height: 1;
    color: rgba(201, 122, 48, 0.5);
}
.sov-aside .sign { display: block; font-family: var(--mono); font-style: normal; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 1.4rem; }

/* ─── Services (cartes verre) ─────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.svc-card {
    padding: 2.4rem;
    border-radius: 20px;
    background: var(--glass);
    border: 1px solid rgba(232, 225, 215, 0.1);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.7);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.svc-card:hover { border-color: rgba(201, 122, 48, 0.4); transform: translateY(-3px); }
.svc-card h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--head); margin: 0.4rem 0 0.8rem; letter-spacing: -0.01em; }
.svc-card p { font-size: 0.98rem; line-height: 1.65; color: var(--ink-soft); }
.svc-card strong { color: var(--head); font-weight: 600; }
.svc-card ul { list-style: none; margin-top: 1.3rem; }
.svc-card li { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-mute); padding: 0.5rem 0; border-top: 1px solid var(--rule-soft); }
.svc-card.wide { grid-column: 1 / -1; }

/* ─── Réalisations ────────────────────────────────────────────── */
.work { display: grid; grid-template-columns: 1fr; gap: 5rem; }
.work-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.work-card.reverse > .work-visual, .work-card.reverse .work-gallery { order: 2; }
.work-gallery { display: grid; gap: 1rem; min-width: 0; align-self: start; }
.work-shots { display: grid; grid-template-columns: 1.8fr 1fr; gap: 1rem; align-items: start; min-width: 0; }
.work-shots img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.75);
}
/* ratios appariés aux colonnes 1.8fr/1fr → les 2 vignettes gardent la même hauteur */
.work-shots .shot-wide { aspect-ratio: 16 / 7; }
.work-shots .shot-mobile { aspect-ratio: 127 / 100; }
.work-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    background: linear-gradient(150deg, var(--canard) 0%, #0d0f13 100%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 36px 80px -30px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.work-visual::before {
    content: "";
    position: absolute; inset: 0;
    opacity: 0.5;
    background-image: repeating-linear-gradient(135deg, rgba(232, 225, 215, 0.06) 0 2px, transparent 2px 14px);
}
.work-visual > a { position: absolute; inset: 0; z-index: 1; }
.work-visual img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.work-visual.work-contain img { object-fit: contain; }
.work-visual .placeholder-note {
    position: relative;
    z-index: 1;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    text-align: center;
    padding: 1.2rem;
    line-height: 1.8;
}
.work-tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ocre-bright); }
.work-card h3 { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 500; color: var(--head); margin: 0.5rem 0 0.3rem; letter-spacing: -0.01em; }
.work-sub { font-family: var(--news); font-style: italic; font-size: 1.2rem; color: var(--sauge-soft); margin-bottom: 1rem; font-weight: 300; }
.work-card p { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 1rem; }
.work-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.work-meta span { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-mute); }

/* ─── Tarifs (cartes verre) ───────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-card {
    display: flex;
    flex-direction: column;
    padding: 2.6rem 2.2rem;
    border-radius: 22px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.75);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
    border-color: rgba(181, 101, 29, 0.55);
    background: radial-gradient(120% 80% at 50% 0%, rgba(181, 101, 29, 0.16), transparent 55%), var(--glass-strong);
    box-shadow: 0 40px 90px -28px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(201, 122, 48, 0.12);
}
@media (min-width: 981px) { .price-card.featured { transform: translateY(-10px); } .price-card.featured:hover { transform: translateY(-14px); } }
.price-badge { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ocre-bright); margin-bottom: 1rem; min-height: 1rem; }
.price-name { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--head); letter-spacing: -0.01em; }
.price-desc { font-size: 0.92rem; color: var(--ink-soft); margin: 0.5rem 0 1.6rem; line-height: 1.5; min-height: 3em; }
.price-amount { font-family: var(--serif); font-size: 3.4rem; font-weight: 600; color: var(--head); line-height: 1; display: flex; align-items: baseline; gap: 0.35rem; }
.price-amount .cur { font-size: 1.5rem; color: var(--ocre-bright); }
.price-setup { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-mute); margin-top: 0.7rem; }
.price-monthly { font-family: var(--news); font-style: italic; font-size: 1.1rem; color: var(--sauge-soft); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.price-monthly strong { color: var(--head); font-weight: 400; font-style: normal; }
.price-features { list-style: none; margin: 1.6rem 0 2rem; flex: 1; }
.price-features li { font-size: 0.92rem; color: var(--ink-soft); padding: 0.6rem 0; border-bottom: 1px solid var(--rule-soft); display: flex; gap: 0.7rem; line-height: 1.5; }
.price-features li::before { content: "—"; color: var(--ocre); flex-shrink: 0; }
.price-card .btn { width: 100%; }
.price-note { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: rgba(232, 225, 215, 0.62); text-align: center; margin-top: 2.5rem; max-width: 60ch; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ─── Formulaire rappel (verre) ───────────────────────────────── */
.lead-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.lead-form {
    position: relative;
    z-index: 2;
    padding: 2.6rem;
    border-radius: 24px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow: var(--glass-shadow);
}
.lead-form.in-hero { padding: 2.4rem 2.2rem; }
.lead-form .form-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.15; color: var(--head); margin-bottom: 1.5rem; letter-spacing: -0.01em; }
.lead-form .field { margin-bottom: 1.2rem; }
.lead-form label { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.lead-form input {
    width: 100%;
    background: rgba(10, 11, 14, 0.6);
    border: 1px solid rgba(232, 225, 215, 0.16);
    border-radius: 11px;
    color: var(--head);
    font-family: var(--sans);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.lead-form input:focus { outline: none; border-color: var(--ocre-warm); box-shadow: 0 0 0 3px rgba(201, 122, 48, 0.18); }
.lead-form input::placeholder { color: var(--ink-mute); }
.lead-form .btn-primary { width: 100%; margin-top: 0.5rem; }
.lead-rgpd { font-size: 0.78rem; color: rgba(232, 225, 215, 0.62); line-height: 1.5; margin-top: 1.1rem; }
.lead-noscript { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; margin-top: 1.1rem; }
.lead-noscript a { color: var(--ocre-bright); border-bottom: 1px solid var(--ocre); }
.lead-rgpd a { color: var(--ocre-bright); border-bottom: 1px solid rgba(201, 122, 48, 0.6); }
.form-success {
    display: none;
    background: rgba(61, 99, 88, 0.22);
    border: 1px solid rgba(74, 118, 106, 0.7);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    font-family: var(--news);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--head);
    margin-top: 1.2rem;
}
.form-success.visible { display: block; }
.lead-aside h2 { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 500; color: var(--head); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.4rem; }
.lead-aside .em { font-style: italic; color: var(--ocre-bright); }
.lead-aside p { font-family: var(--news); font-size: 1.2rem; font-weight: 300; line-height: 1.6; color: var(--ink-soft); margin-bottom: 1.2rem; }
.lead-contact { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.lead-contact .line { display: flex; gap: 1rem; padding: 0.5rem 0; font-size: 0.95rem; color: var(--ink-soft); align-items: baseline; }
.lead-contact .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); min-width: 6rem; flex-shrink: 0; }
.lead-contact .line a { color: var(--ocre-bright); border-bottom: 1px solid rgba(201, 122, 48, 0.6); }

/* ─── Bande CTA (carte verre + lueur) ─────────────────────────── */
.cta-band { padding: 4rem 0 6rem; }
.cta-band .inner {
    position: relative;
    overflow: hidden;
    text-align: center;
    max-width: none;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5.5rem) 2rem;
    border-radius: 28px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cta-band .inner::before {
    content: "";
    position: absolute;
    top: -40%; left: 50%;
    transform: translateX(-50%);
    width: 80%; height: 120%;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 122, 48, 0.25), transparent 60%);
    pointer-events: none;
}
.cta-band .inner > * { position: relative; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 500; color: var(--head); line-height: 1.05; letter-spacing: -0.02em; margin: 0 auto 1.2rem; max-width: 16em; text-wrap: balance; }
.cta-band h2 .em { font-style: italic; color: var(--ocre-bright); }
.cta-band p { font-family: var(--news); font-size: 1.25rem; font-weight: 300; color: var(--ink-soft); margin: 0 auto 2.2rem; max-width: 42rem; }
.cta-band .hero-actions { justify-content: center; }

/* ─── Footer (translucide) ────────────────────────────────────── */
footer {
    background: rgba(8, 9, 12, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--rule);
    padding: 4.5rem 0 2rem;
}
.footer-mast { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--rule); }
.footer-brand .logo { font-size: 1.6rem; margin-bottom: 1.1rem; }
.footer-tag { font-family: var(--news); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); line-height: 1.55; max-width: 26em; font-weight: 300; }
.footer-meta { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--ink-mute); margin-top: 1rem; line-height: 1.8; }
.footer-col-title { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.3rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col a { font-family: var(--serif); font-size: 1.1rem; color: var(--head); width: fit-content; border-bottom: 1px solid transparent; padding-bottom: 1px; transition: color 0.3s ease, border-color 0.3s ease; }
.footer-col a:hover { color: var(--ocre-bright); border-bottom-color: var(--ocre); }
/* Adresse e-mail affichée mais non cliquable (le formulaire est le canal). */
.footer-mail { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-soft); margin-top: 0.8rem; width: fit-content; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; flex-wrap: wrap; gap: 1rem; }
.footer-legal { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--ink-mute); line-height: 1.8; }
.footer-legal a { color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.footer-legal a:hover { color: var(--ocre-bright); }
.made-in { font-family: var(--news); font-style: italic; font-size: 0.98rem; color: var(--ink-soft); }
.made-in .fr { color: var(--ocre-bright); border-bottom: 1px solid rgba(201, 122, 48, 0.6); padding-bottom: 1px; }

/* ─── Reveal au scroll (progressive enhancement) ──────────────── */
/* Masqué uniquement si JS actif (html.js) ET pas encore révélé → contenu visible si JS off/échoue.
   :not(.visible) évite la guerre de spécificité : une fois .visible posé, l'élément ne matche
   plus la règle masquée et reprend son opacité naturelle (1). */
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal:not(.visible) { opacity: 0; transform: translateY(24px); }
.reveal.visible { opacity: 1; transform: none; }

/* ─── Garde-fous débordement (cohérence HF) ───────────────────── */
.hero h1, .hero-deck, .section-title, .section-deck, .page-header h1, .page-header .deck,
.work-card h3, .work-card p, .pillar h3, .pillar p, .svc-card h3, .svc-card p,
.price-name, .price-desc, .lead-aside h2, .sov-aside, .cta-band h2 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.hero-grid, .sov-grid, .svc-grid, .work-card, .price-grid, .lead-wrap, .pillars { min-width: 0; }
.hero-grid > *, .lead-wrap > * { min-width: 0; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 980px) {
    .container, .container-tight { padding: 0 1.5rem; }
    .hero { padding: 9rem 0 4rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-pill, .scroll-cue { display: none; }
    .page-header { padding: 8.5rem 0 3rem; }
    .section { padding: 5rem 0; }
    .section-index { display: none; }
    .pillars { grid-template-columns: 1fr; }
    .sov-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .svc-grid { grid-template-columns: 1fr; }
    .work-card, .work-card.reverse { grid-template-columns: 1fr; gap: 2rem; }
    .work-card.reverse > .work-visual, .work-card.reverse .work-gallery { order: 0; }
    .price-grid { grid-template-columns: 1fr; }
    .lead-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-mast { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-brand { grid-column: 1 / -1; }

    /* Perf mobile : ambiant figé + sol coupé, verre opacifié sans blur */
    .fx-floor { display: none; }
    .fx-blob { animation: none; opacity: 0.4; filter: blur(60px); }
    .pillar, .svc-card, .price-card, .lead-form, .sov-aside, .cta-band .inner, .work-visual,
    header.scrolled, footer {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .pillar, .svc-card, .price-card, .lead-form, .sov-aside, .cta-band .inner {
        background: rgba(20, 22, 28, 0.92);
    }
    .price-card.featured {
        background: radial-gradient(120% 80% at 50% 0%, rgba(181, 101, 29, 0.16), transparent 55%), rgba(22, 24, 30, 0.94);
    }
    header.scrolled { background: rgba(10, 11, 14, 0.94); }
    footer { background: rgba(9, 10, 13, 0.94); }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-menu {
        position: fixed;
        inset: 0;
        padding: 5.5rem 2rem 2.5rem;
        background: #0a0b0e;
        border-top: none;
        gap: 1.6rem;
        justify-content: flex-start;
        overflow-y: auto;
        z-index: 90;
    }
    .header-inner { position: relative; z-index: 101; }
    .hero { padding: 8rem 0 3rem; }
    .hero h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1.04; }
    .hero-deck { font-size: 1.05rem; }
    .container, .container-tight { padding: 0 1.1rem; }
    .section { padding: 4rem 0; }
    .price-amount { font-size: 3rem; }
    .footer-mast { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal:not(.visible), .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    .fx-blob, .hero-pill, .scroll-cue .cue-arrow { animation: none !important; }
    * { transition: none !important; }
}
