/* =================================================================
   AntiGaspi — Landing commerciale (identité « Le Quartier »)
   Miroir structurel de HygieneFacile-Landing, thème CLAIR crème/prune.
   ================================================================= */

/* =================================================================
   Polices auto-hébergées (RGPD SCC art.46 — pas de transfert IP USA).
   Aucune requête vers fonts.googleapis.com. Toutes sous SIL OFL 1.1.
   Bricolage Grotesque + Hanken Grotesk = variables (1 fichier / famille).
   ================================================================= */
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Hanken Grotesk';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/hanken-grotesk-latin-wght-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('fonts/JetBrainsMono-Latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Palette « Le Quartier » (crème kraft + prune aubergine) */
    --creme: #FBF6EE;        /* fond de page */
    --creme-2: #F4EDE1;      /* sections alternées */
    --kraft: #E7DDD0;        /* séparateurs / aplats */
    --card-bd: #EBE2D6;      /* bordure des cartes blanches */
    --white: #FFFFFF;        /* fond des cartes */

    --prune: #6B2D5C;        /* marque, CTA, prix promo */
    --prune-2: #A24E7E;      /* accent, emphase, hover */
    --prune-deep: #54234A;   /* hover CTA */

    --ink: #2A2422;          /* texte principal (encre chaude) */
    --ink-soft: #6B6058;     /* texte secondaire */
    --ink-mute: #9A8F85;     /* labels, légendes */
    --faint: #B3A99E;        /* prix barré, très discret */

    /* Code urgence DLC — VERROUILLÉ (miroir dlcEngine, ne pas renommer) */
    --safe: #1E9E5B;         /* Encore large (>= J+2) */
    --press: #EF8A22;        /* Ça presse (J0 / J+1) — aplat */
    --press-ink: #C96A0E;    /* Ça presse — texte (contraste AA) */
    --last: #E23B36;         /* Dernier moment (< J0) */

    --rule: rgba(42, 36, 34, 0.13);
    --rule-soft: rgba(42, 36, 34, 0.07);
    --shadow-plum: 0 10px 22px -8px rgba(107, 45, 92, 0.45);
    --shadow-card: 0 4px 14px -10px rgba(42, 36, 34, 0.30);

    /* Sémantique */
    --bg: var(--creme);
    --bg-alt: var(--creme-2);

    /* Typographie */
    --display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

* { 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;
}

/* Grain papier kraft global — texture éditoriale (calibrée fond CLAIR) */
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='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.36  0 0 0 0 0.31  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.05;
    mix-blend-mode: multiply;
}
main, header, footer { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

::selection { background: var(--prune); color: var(--creme); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Eyebrow / kicker */
.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: 24px;
    height: 1px;
    background: var(--prune);
}
.eyebrow.no-rule::before { display: none; }

.roman {
    font-family: var(--display);
    font-weight: 600;
    color: var(--prune-2);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* ─── HEADER ─────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 1px solid transparent;
}
header.scrolled {
    background: rgba(251, 246, 238, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom-color: var(--kraft);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}
.nav-links a {
    font-size: 0.9rem;
    color: var(--ink-soft);
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -4px;
    height: 1px;
    background: var(--prune);
    transition: right 0.35s ease;
}
.nav-links a:not(.btn):hover::after { right: 0; }

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    border-radius: 14px;
    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: var(--prune);
    color: var(--creme);
    padding: 0.9rem 1.7rem;
    border-color: var(--prune);
    box-shadow: var(--shadow-plum);
}
.btn-primary:hover {
    background: var(--prune-deep);
    border-color: var(--prune-deep);
    transform: translateY(-2px);
}
.btn-primary .arrow { width: 15px; height: 15px; transition: transform 0.3s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-outline {
    background: transparent;
    color: var(--prune);
    padding: 0.85rem 1.5rem;
    border: 1.5px solid var(--prune);
}
.btn-outline:hover { background: var(--prune); color: var(--creme); }

.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    padding: 0.5rem 0 0.35rem;
    border-bottom: 1.5px solid var(--kraft);
    border-radius: 0;
}
.btn-ghost:hover { color: var(--prune); border-bottom-color: var(--prune); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; border-radius: 11px; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.5rem 2.5rem 2.2rem;
    background: var(--creme-2);
    border-top: 1px solid var(--kraft);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--ink);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.4rem;
}
.mobile-menu .btn { font-family: var(--sans); font-size: 0.95rem; align-self: flex-start; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero { padding: 10.5rem 0 5rem; position: relative; overflow: hidden; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    align-items: end;
}
.hero-meta { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2.2rem; }
.badge-artisan {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--prune);
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(107, 45, 92, 0.35);
    border-radius: 999px;
}
.hero h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 1.8rem;
    text-wrap: balance;
}
.hero h1 .em { color: var(--prune); }
.hero-deck {
    font-family: var(--sans);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 30em;
    margin-bottom: 2.4rem;
    font-weight: 400;
}
.hero-deck strong { color: var(--prune); font-weight: 700; }
.hero-deck em { color: var(--ink); font-style: italic; }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-reassure {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: var(--ink-mute);
    margin-bottom: 1.2rem;
}

/* Hero side — chiffres-clés factuels */
.hero-side { position: relative; padding-bottom: 0.5rem; }
.hero-side-rule { height: 1px; background: var(--kraft); margin-bottom: 2rem; }
.hero-side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
.hero-fact { display: flex; flex-direction: column; gap: 0.35rem; }
.hero-fact-label {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.hero-fact-value {
    font-family: var(--display);
    font-size: 2.3rem;
    line-height: 1;
    color: var(--prune);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.hero-fact-value .small { font-size: 1rem; color: var(--ink-soft); font-weight: 700; }
.hero-fact-note { font-family: var(--sans); font-style: italic; font-size: 0.9rem; color: var(--ink-mute); line-height: 1.4; }

/* Masthead vertical */
.section-index {
    position: absolute;
    top: 9rem;
    left: 2.5rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* ─── SECTION HEADERS éditoriaux ─────────────────────────── */
.section { padding: 7rem 0; position: relative; }
.section-mast {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 2rem;
    border-top: 1px solid var(--kraft);
    padding-top: 1.4rem;
    margin-bottom: 3.5rem;
}
.section-mast .roman { font-size: 1rem; }
.section-mast .mast-title {
    font-family: var(--sans);
    font-style: italic;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--ink-soft);
}
.section-mast .mast-meta {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.section-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.022em;
    color: var(--ink);
    margin-bottom: 1.4rem;
    text-wrap: balance;
    max-width: 18em;
}
.section-title em { color: var(--prune); font-style: normal; }
.section-deck {
    font-family: var(--sans);
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 40em;
}
.section-deck em { color: var(--ink); font-style: italic; }

/* ─── APP PREVIEW — texte + maquette téléphone ───────────── */
.preview-section { padding: 4rem 0 7rem; }
.preview-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 4rem; align-items: center; }
.preview-text .pull {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
    color: var(--ink);
    margin: 1.4rem 0 1.4rem;
    text-wrap: balance;
    letter-spacing: -0.02em;
}
.preview-text .pull em { color: var(--prune); font-style: normal; }
.preview-text .signature {
    font-family: var(--sans);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--ink-soft);
    margin-top: 1.2rem;
}
.preview-text .signature::before { content: "— "; color: var(--prune-2); }
.preview-caption {
    margin-top: 1.4rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--ink-mute);
    line-height: 1.5;
}
.preview-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Maquette téléphone (HTML pur — aucune image, données fictives) */
.phone {
    width: 300px;
    max-width: 100%;
    background: #17151a;
    border-radius: 40px;
    padding: 9px;
    box-shadow: 0 30px 60px -24px rgba(42, 22, 36, 0.45);
    flex: 0 0 auto;
}
.phone-screen {
    border-radius: 32px;
    overflow: hidden;
    background: var(--white);
    font-family: var(--sans);
    color: var(--ink);
    display: flex;
    flex-direction: column;
}
.phone-statusbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px 4px;
    font-size: 11px; font-weight: 700; color: #fff;
    background: var(--prune);
}
.phone-head { background: var(--prune); color: var(--creme); padding: 2px 20px 18px; }
.phone-shop { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.phone-shop-meta { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.phone-body { padding: 14px 16px 0; }
.phone-h { font-family: var(--display); font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.promo-card {
    background: var(--white);
    border: 1px solid var(--card-bd);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 10px;
}
.promo-photo {
    height: 84px;
    position: relative;
    background-color: var(--kraft);
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 7px, rgba(0,0,0,.09) 7px 14px);
}
.promo-badge {
    position: absolute; top: 8px; left: 8px;
    padding: 4px 9px; border-radius: 999px;
    color: #fff; font-size: 11px; font-weight: 800;
}
.promo-badge.press { background: var(--press); }
.promo-badge.safe { background: var(--safe); }
.promo-meta { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; }
.promo-name { font-weight: 700; font-size: 14px; }
.promo-stock { font-size: 11px; color: var(--ink-mute); }
.promo-prices { text-align: right; }
.promo-old { font-size: 11px; color: var(--faint); text-decoration: line-through; }
.promo-new { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--prune); }
.phone-cta {
    margin: 6px 14px 14px;
    background: var(--prune); color: var(--creme);
    border-radius: 16px; padding: 14px; text-align: center;
    font-weight: 800; font-size: 15px;
    box-shadow: var(--shadow-plum);
}
.phone-credit { text-align: center; font-size: 10px; color: var(--faint); padding-bottom: 12px; }

/* ─── COMMENT ÇA MARCHE — 3 temps ────────────────────────── */
.steps-section { padding: 7rem 0; }
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 3.5rem;
    position: relative;
}
.steps::before {
    content: "";
    position: absolute;
    top: 30px; left: 16%; right: 16%;
    height: 1px;
    background: var(--kraft);
    z-index: 0;
}
.step { display: flex; flex-direction: column; align-items: flex-start; padding: 0 1.5rem; position: relative; z-index: 1; }
.step-num {
    font-family: var(--mono);
    font-size: 2.8rem;
    line-height: 1;
    color: var(--prune-2);
    font-weight: 500;
    margin-bottom: 1.1rem;
    background: var(--bg);
    padding-right: 0.6rem;
}
.step h3 {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.45rem;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}
.step p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }

/* Encart côté client */
.client-note {
    margin-top: 3.5rem;
    background: var(--prune);
    color: var(--creme);
    border-radius: 20px;
    padding: 2.4rem 2.6rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.8rem;
    align-items: center;
    box-shadow: var(--shadow-plum);
}
.client-note .qr {
    width: 92px; height: 92px;
    border-radius: 14px;
    background: var(--creme);
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.client-note .qr svg { width: 64px; height: 64px; }
.client-note h3 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin-bottom: 0.5rem; }
.client-note p { font-size: 1rem; line-height: 1.6; color: rgba(251, 246, 238, 0.85); max-width: 46em; }
.client-note strong { color: var(--creme); font-weight: 700; }

/* ─── CODE COULEUR — pédagogie urgence DLC ───────────────── */
.code-section { padding: 7rem 0; background: var(--creme-2); border-top: 1px solid var(--kraft); border-bottom: 1px solid var(--kraft); }
.code-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.code-item {
    background: var(--white);
    border: 1px solid var(--card-bd);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: var(--shadow-card);
}
.code-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.9rem; border-radius: 999px;
    font-size: 0.9rem; font-weight: 700;
    margin-bottom: 1rem;
}
.code-pill .dot { width: 9px; height: 9px; border-radius: 50%; }
.code-pill.safe { background: rgba(30,158,91,.13); color: var(--safe); }
.code-pill.safe .dot { background: var(--safe); }
.code-pill.press { background: rgba(239,138,34,.15); color: var(--press-ink); }
.code-pill.press .dot { background: var(--press); }
.code-pill.last { background: rgba(226,59,54,.13); color: var(--last); }
.code-pill.last .dot { background: var(--last); }
.code-item h3 { font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: 0.4rem; color: var(--ink); }
.code-item p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }

/* ─── HORLOGE & MARGE — coquille « urgence » (factuel) ────── */
.horloge-section { padding: 7rem 0; position: relative; }
.horloge-mast { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 3.5rem; text-align: center; }
.horloge-stamp {
    margin: 0 auto 1.2rem;
    width: 80px; height: 80px;
    border: 1px solid var(--prune);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--prune);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    position: relative;
    transform: rotate(-6deg);
}
.horloge-stamp::before { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(107,45,92,.35); border-radius: 50%; }
.horloge-section h2 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.1rem, 4.5vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
    max-width: 17em;
    margin: 0 auto;
}
.horloge-section h2 em { font-style: normal; color: var(--prune); }
.horloge-section .section-deck { margin: 1.4rem auto 0; text-align: center; }
.horloge-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 4rem;
    border-top: 1px solid var(--kraft);
    border-bottom: 1px solid var(--kraft);
}
.horloge-card { padding: 2.4rem 2rem; border-right: 1px solid var(--kraft); display: flex; flex-direction: column; gap: 0.9rem; }
.horloge-card:last-child { border-right: none; }
.horloge-card .num {
    font-family: var(--display);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    color: var(--prune);
    letter-spacing: -0.03em;
}
.horloge-card .num .unit { font-size: 1rem; color: var(--ink-mute); margin-left: 0.3rem; font-weight: 500; }
.horloge-card h3 { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--ink); line-height: 1.15; }
.horloge-card p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; }
.horloge-card .ex { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.horloge-cta { margin-top: 3rem; text-align: center; }
.horloge-cta p { font-family: var(--sans); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.horloge-cta strong { color: var(--ink); font-style: normal; font-weight: 700; }

/* ─── FEATURES (atouts) — bento asymétrique ──────────────── */
.features { padding: 7rem 0; background: var(--creme-2); border-top: 1px solid var(--kraft); border-bottom: 1px solid var(--kraft); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(190px, auto);
    gap: 1rem;
    margin-top: 3rem;
}
.feature {
    background: var(--white);
    border: 1px solid var(--card-bd);
    border-radius: 18px;
    padding: 2.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}
.feature:hover { transform: translateY(-3px); }
.feature-1 { grid-column: span 3; grid-row: span 2; padding: 2.8rem; }
.feature-2 { grid-column: span 3; }
.feature-3 { grid-column: span 2; }
.feature-4 { grid-column: span 1; }
.feature-5 { grid-column: span 3; }
.feature-6 { grid-column: span 3; }
.feature-icon { width: 36px; height: 36px; color: var(--prune); margin-bottom: 0.4rem; }
.feature-1 .feature-icon { width: 52px; height: 52px; }
.feature h3 { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
.feature-1 h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.08; }
.feature-1 h3 em { font-style: normal; color: var(--prune); }
.feature p { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.55; }
.feature-1 p { font-size: 1.05rem; line-height: 1.6; max-width: 28em; }
.feature-tag { margin-top: auto; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
/* Tuile accent (prune plein) */
.feature-4 { background: var(--prune); border-color: var(--prune); color: var(--creme); }
.feature-4 .feature-icon { color: var(--creme); }
.feature-4 h3 { color: var(--creme); font-size: 1.15rem; }
.feature-4 p { color: rgba(251,246,238,0.82); font-size: 0.86rem; }

/* ─── SECTEURS — liste typographique ─────────────────────── */
.sectors-section { padding: 7rem 0; }
.sectors-list { border-top: 1px solid var(--kraft); margin-top: 3rem; }
.sector-row {
    display: grid;
    grid-template-columns: 60px 1fr auto 60px;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 0.5rem;
    border-bottom: 1px solid var(--kraft);
    cursor: pointer;
    transition: padding 0.3s ease, background 0.3s ease;
}
.sector-row:hover { padding-left: 1.5rem; background: rgba(107,45,92,0.03); }
.sector-row:hover .sector-arrow { transform: translateX(6px); color: var(--prune); }
.sector-num { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-mute); letter-spacing: 0.1em; }
.sector-name { font-family: var(--display); font-size: 1.5rem; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.sector-name em { font-style: normal; color: var(--prune-2); font-weight: 600; }
.sector-modules { font-family: var(--sans); font-style: italic; font-size: 0.95rem; color: var(--ink-mute); text-align: right; max-width: 380px; }
.sector-arrow { width: 20px; color: var(--ink-mute); transition: transform 0.3s ease, color 0.3s ease; justify-self: end; }

/* ─── PORTRAIT / ancrage local ───────────────────────────── */
.portrait-section { padding: 6rem 0; overflow: hidden; }
.portrait-grid-single { max-width: 740px; margin: 0 auto; text-align: left; }
.portrait-text p {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.25;
    color: var(--ink);
    margin-top: 1.4rem;
    text-wrap: balance;
    letter-spacing: -0.01em;
}
.portrait-text p em { color: var(--prune); font-style: normal; }

/* ─── PRICING ────────────────────────────────────────────── */
.pricing { padding: 7rem 0; background: var(--creme-2); border-top: 1px solid var(--kraft); }
.price-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 5rem; align-items: center; margin-top: 3rem; }
.price-display { display: flex; flex-direction: column; gap: 0.5rem; }
.price-amount {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(4.5rem, 10vw, 8rem);
    line-height: 1;
    color: var(--prune);
    letter-spacing: -0.04em;
    display: flex;
    align-items: baseline;
    gap: 0.35em;
}
.price-amount .unit {
    font-family: var(--mono);
    font-size: 1.05rem;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
    align-self: flex-end;
    padding-bottom: 0.6em;
    font-weight: 400;
    white-space: nowrap;
}
.price-meta { font-family: var(--sans); font-style: italic; font-size: 1rem; color: var(--ink-mute); margin-top: 1rem; }
.price-cta-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.price-cta-row .note { font-family: var(--sans); font-style: italic; font-size: 0.92rem; color: var(--ink-mute); }
.price-includes { border-left: 1px solid var(--kraft); padding-left: 3rem; }
.price-includes-title { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.5rem; }
.price-list { list-style: none; }
.price-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule-soft);
    font-family: var(--display);
    font-size: 1.1rem;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
}
.price-list li::before { content: "—"; color: var(--prune-2); flex-shrink: 0; }
.price-list li:last-child { border-bottom: none; }
.price-list li strong { color: var(--prune); font-weight: 800; }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list { margin-top: 3rem; border-top: 1px solid var(--kraft); }
.faq-item { padding: 2rem 0; border-bottom: 1px solid var(--kraft); }
.faq-item h3 { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.faq-item p { font-family: var(--sans); font-size: 1.08rem; line-height: 1.6; color: var(--ink-soft); max-width: 46em; }

/* ─── LE QUARTIER — teaser vision ────────────────────────── */
.quartier-section {
    padding: 6.5rem 0;
    background: var(--prune);
    color: var(--creme);
    position: relative;
    overflow: hidden;
}
.quartier-section::before {
    content: "";
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 9px, rgba(255,255,255,.06) 9px 18px);
    pointer-events: none;
}
.quartier-inner { position: relative; max-width: 820px; }
.quartier-section .eyebrow { color: rgba(251,246,238,0.7); }
.quartier-section .eyebrow::before { background: var(--creme); }
.quartier-section h2 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 1.2rem 0 1.2rem;
    text-wrap: balance;
}
.quartier-section p { font-family: var(--sans); font-size: 1.15rem; line-height: 1.6; color: rgba(251,246,238,0.88); max-width: 44em; }
.quartier-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.quartier-chip {
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(251,246,238,0.12);
    border: 1px solid rgba(251,246,238,0.22);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--creme); border-top: 1px solid var(--kraft); padding: 5rem 0 2rem; }
.footer-mast { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--kraft); }
.footer-brand .logo { font-size: 1.5rem; margin-bottom: 1rem; }
.footer-tag { font-family: var(--sans); font-style: italic; font-size: 1rem; color: var(--ink-soft); line-height: 1.55; max-width: 24em; }
.footer-tag strong { font-style: normal; color: var(--prune); font-weight: 700; }
.footer-meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-mute); margin-top: 0.6rem; line-height: 1.5; }
.footer-col-title { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.4rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col a { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); transition: color 0.3s ease; width: fit-content; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.footer-col a:hover { color: var(--prune); border-bottom-color: var(--prune); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--ink-mute); }
.footer-bottom .made-in { font-family: var(--sans); font-style: italic; font-size: 0.95rem; color: var(--ink-soft); }
.footer-bottom .made-in .breizh { color: var(--prune); border-bottom: 1px solid var(--prune); padding-bottom: 1px; }

/* ─── COOKIE BANNER ──────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: rgba(42, 36, 34, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.7rem 1.5rem;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.cookie-banner.visible { opacity: 1; transform: translateY(0); }
.cookie-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 1240px; margin: 0 auto; min-height: 44px; }
.cookie-banner p { flex: 1; font-family: var(--sans); font-size: 0.88rem; line-height: 1.4; color: rgba(251,246,238,0.85); margin: 0; }
.cookie-banner strong { color: var(--creme); font-weight: 700; }
.cookie-banner a { color: var(--creme); border-bottom: 1px solid var(--prune-2); padding-bottom: 1px; }
.cookie-banner .btn { flex-shrink: 0; }

/* ─── FORMULAIRE DE CAPTURE (lead) ───────────────────────── */
.contact-section { background: var(--bg-alt); border-top: 1px solid var(--kraft); }
.lead-form { max-width: 640px; margin: 3rem auto 0; text-align: left; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.lead-field { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.lead-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.lead-req { color: var(--prune); }
.lead-form input, .lead-form textarea, .lead-form select {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--card-bd);
    border-radius: 10px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.8rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--ink-mute); }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus {
    outline: none;
    border-color: var(--prune);
    box-shadow: 0 0 0 3px rgba(107, 45, 92, 0.15);
}
.lead-form textarea { resize: vertical; min-height: 110px; }
.lead-hint { font-size: 0.85rem; color: var(--ink-mute); margin: -0.5rem 0 1.25rem; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 0.5rem; }
.lead-consent { font-size: 0.8rem; color: var(--ink-mute); line-height: 1.5; max-width: 48ch; }
.lead-consent a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.lead-feedback { margin-top: 1.25rem; padding: 0.85rem 1.1rem; border-radius: 10px; font-size: 0.95rem; line-height: 1.5; }
.lead-feedback.is-ok { background: rgba(30, 158, 91, 0.12); border: 1px solid var(--safe); color: var(--ink); }
.lead-feedback.is-error { background: rgba(226, 59, 54, 0.10); border: 1px solid var(--last); color: var(--ink); }
.lead-noscript { max-width: 640px; margin: 2rem auto 0; padding: 1rem 1.25rem; border: 1px solid var(--kraft); border-radius: 10px; color: var(--ink-soft); text-align: center; }
.lead-noscript a { color: var(--prune); text-decoration: underline; }

/* ═══ RESPONSIVE ═════════════════════════════════════════ */
@media (max-width: 980px) {
    .container { padding: 0 1.5rem; }
    .hero { padding: 9rem 0 4rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .section-index { display: none; }
    .preview-grid { grid-template-columns: 1fr; gap: 3rem; }
    .preview-stage { order: -1; }
    .steps { grid-template-columns: 1fr; gap: 2.5rem; }
    .steps::before { display: none; }
    .client-note { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .code-grid { grid-template-columns: 1fr; }
    .horloge-cards { grid-template-columns: 1fr; }
    .horloge-card { border-right: none; border-bottom: 1px solid var(--kraft); }
    .horloge-card:last-child { border-bottom: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-1, .feature-2, .feature-3, .feature-4, .feature-5, .feature-6 { grid-column: span 2; grid-row: auto; }
    .price-grid { grid-template-columns: 1fr; gap: 3rem; }
    .price-includes { border-left: none; border-top: 1px solid var(--kraft); padding-left: 0; padding-top: 2.5rem; }
    .footer-mast { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .sector-row { grid-template-columns: 40px 1fr 30px; }
    .sector-modules { display: none; }
    .section-mast { grid-template-columns: 1fr; gap: 0.5rem; }
    .section-mast .mast-meta { display: none; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-menu {
        position: fixed; inset: 0;
        padding: 5.5rem 2rem 2.5rem;
        background: var(--creme);
        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(2rem, 8vw, 3rem); line-height: 1.08; }
    .hero-main { min-width: 0; max-width: 100%; }
    .hero-deck { font-size: 1rem; }
    .container { padding: 0 1rem; }
    .hero-side-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .section { padding: 5rem 0; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-1, .feature-2, .feature-3, .feature-4, .feature-5, .feature-6 { grid-column: span 1; }
    .footer-mast { grid-template-columns: 1fr; }
    .price-amount { font-size: 4.5rem; }
    .sector-name { font-size: 1.2rem; }
    .step-num { font-size: 3rem; }
    .client-note { padding: 1.8rem; }
    .cookie-banner { padding: 0.6rem 1rem; }
    .cookie-banner-inner { gap: 0.75rem; min-height: 56px; }
    .cookie-banner p { font-size: 0.78rem; }
    .cookie-banner .btn-sm { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
    .lead-grid { grid-template-columns: 1fr; gap: 0; }
}

/* Garde-fous Safari iOS — éviter débordements */
.hero-deck, .section-title, .section-deck, .feature h3, .feature p,
.faq-item h3, .faq-item p, .horloge-card h3, .step h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
