/* =====================================================
   miroir.css — styles spécifiques à la page /miroir (page produit)
   Extrait épuré de site.css : uniquement les classes utilisées.
   ===================================================== */

:root {
  --pad: clamp(20px, 4vw, 56px);
  --hair: 1px;

  --grad-a: #1A2F7A;
  --grad-b: #2F5BB7;
  --grad-c: #86A9CE;
  --accent-grad: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 55%, var(--grad-c) 100%);
}

[x-cloak] { display: none !important; }

/* =========== Brand / eyebrow / tag dots — gradient =========== */
.brand .dot,
.eyebrow .dot,
.label-row .dot {
  background-image: var(--accent-grad);
}

/* =========== Italic accent words — gradient text =========== */
.accent-grad-text {
  background-image: var(--accent-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* =========== Cartographic corner ticks =========== */
.frame-tick { position: fixed; width: 18px; height: 18px; z-index: 50; pointer-events: none; }
.frame-tl { top: 14px;    left: 14px;  border-top: var(--hair) solid #5A5246; border-left:  var(--hair) solid #5A5246; }
.frame-tr { top: 14px;    right: 14px; border-top: var(--hair) solid #5A5246; border-right: var(--hair) solid #5A5246; }
.frame-bl { bottom: 14px; left: 14px;  border-bottom: var(--hair) solid #5A5246; border-left:  var(--hair) solid #5A5246; }
.frame-br { bottom: 14px; right: 14px; border-bottom: var(--hair) solid #5A5246; border-right: var(--hair) solid #5A5246; }

/* =========== Buttons (pill style) =========== */
.btn-primary,
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  font-family: inherit; font-size: 13.5px;
  cursor: pointer; text-decoration: none;
  transition: all 160ms ease;
  border: 1px solid #1F1A12;
  color: #1F1A12; background: transparent;
}

.btn-primary { background: #1F1A12; color: #F6F4EF; }
.btn-primary:hover {
  background-image: var(--accent-grad);
  border-color: transparent;
  color: #fff;
}

.btn-ghost { border-color: rgba(31,26,18,0.18); color: #5A5246; }
.btn-ghost:hover { background: #1F1A12; color: #F6F4EF; border-color: #1F1A12; }

/* =========== Mono smol footer text =========== */
.smol { font-family: "Geist Mono", ui-monospace, monospace; font-size: 10.5px; color: #8B8276; letter-spacing: 0.06em; }

/* =========== Variant switcher (segmented pill) =========== */
.var-switch {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid rgba(31,26,18,0.18);
  border-radius: 999px;
  padding: 3px;
  background: #EBE7DD;
}
.var-switch a {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B8276;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
}
.var-switch a:hover { color: #1F1A12; }
.var-switch a.active {
  background: #1F1A12;
  color: #F6F4EF;
}
@media (max-width: 760px) {
  .var-switch a { font-size: 10px; padding: 6px 10px; letter-spacing: 0.06em; }
}

/* =========== Eyebrow & label-row =========== */
.eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #8B8276;
  display: inline-flex; align-items: center;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; display: inline-block; }

.label-row {
  display: flex; align-items: center; gap: 14px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #8B8276;
}
.label-row .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.label-row .rule { height: 1px; background: rgba(31,26,18,0.18); flex: 1; }

/* =========== Strate figure box + subtle blue wash =========== */
.strate-fig {
  position: relative;
  border: 1px solid rgba(31,26,18,0.18);
  border-radius: 6px;
  background: #F6F4EF;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.strate-fig::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(26,47,122,0.18) 0%,
    rgba(47,91,183,0.18) 55%,
    rgba(134,169,206,0.18) 100%);
  mix-blend-mode: multiply;
  opacity: 0.45;
  pointer-events: none;
}

/* =========== KPI block =========== */
.kpi-num { font-family: "Newsreader", serif; font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.025em; font-weight: 400; }
.kpi-unit { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: #8B8276; letter-spacing: 0.05em; }

/* =========== Method grid (data engagements) =========== */
.method-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(31,26,18,0.18);
  border-left: 1px solid rgba(31,26,18,0.18);
}
@media (max-width: 820px) {
  .method-grid { grid-template-columns: 1fr 1fr; }
}
.method-cell {
  padding: 24px;
  border-right: 1px solid rgba(31,26,18,0.18);
  border-bottom: 1px solid rgba(31,26,18,0.18);
  display: flex; flex-direction: column; gap: 10px;
}
.method-cell .ix { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: #8B8276; letter-spacing: 0.08em; }
.method-cell h4 { font-family: "Newsreader", serif; font-style: italic; font-size: 24px; letter-spacing: -0.01em; font-weight: 400; margin: 0; }
.method-cell p  { color: #5A5246; font-size: 13.5px; margin: 0; }

/* =========== Headings reset =========== */
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.015em; }
.serif { font-family: "Newsreader", serif; }

/* =====================================================
   MIROIR — page-specific
   ===================================================== */

/* Hero mockup card */
.miroir-hero-card {
  position: relative;
  border: 1px solid rgba(31,26,18,0.18);
  border-radius: 6px;
  background: #F6F4EF;
  padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow:
    0 1px 0 rgba(31,26,18,0.04),
    0 30px 60px -40px rgba(31,26,18,0.18);
}
.miroir-hero-card::before {
  content: "BILAN-EX.PDF";
  position: absolute; top: -8px; left: 18px;
  background: #F6F4EF; padding: 0 8px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px; color: #8B8276; letter-spacing: 0.08em;
}

/* Process steps */
.miroir-step {
  padding: 28px 28px 24px;
  border-right: 1px solid rgba(31,26,18,0.18);
  border-bottom: 1px solid rgba(31,26,18,0.18);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
}
.miroir-step-num {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1; letter-spacing: -0.02em;
  margin: 2px 0 6px;
}

/* =====================================================
   LECTURE — 5 strates empilées en accordéon
   ===================================================== */
.lecture-wrap {
  border-top: 1px solid rgba(31,26,18,0.18);
  border-bottom: 1px solid rgba(31,26,18,0.18);
  margin-top: 28px;
}
.lecture-strate { border-bottom: 1px solid rgba(31,26,18,0.18); }
.lecture-strate:last-child { border-bottom: 0; }

.lecture-strate-head {
  display: grid;
  grid-template-columns: 90px 1fr auto 28px;
  align-items: baseline;
  gap: clamp(14px, 2.5vw, 28px);
  padding: clamp(20px, 3vw, 32px) 4px;
  cursor: pointer;
  transition: padding 240ms ease, background 240ms ease;
}
.lecture-strate-head:hover { background: rgba(31,26,18,0.02); padding-left: 14px; }
.lecture-strate-head .ix      { font-family: "Geist Mono", monospace; font-size: 11px; color: #8B8276; letter-spacing: 0.08em; }
.lecture-strate-head .title   { font-family: "Newsreader", serif; font-size: clamp(22px, 2.8vw, 32px); letter-spacing: -0.015em; color: #1F1A12; }
.lecture-strate-head .kpi     { font-family: "Geist Mono", monospace; font-size: 11px; color: #5A5246; letter-spacing: 0.06em; white-space: nowrap; }
.lecture-strate-head .chevron { font-family: "Geist Mono", monospace; font-size: 18px; color: #8B8276; transition: transform 240ms ease, color 240ms ease; line-height: 1; }

.lecture-strate.is-open .lecture-strate-head .title {
  background-image: var(--accent-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.lecture-strate.is-open .lecture-strate-head .chevron { transform: rotate(45deg); color: #1A2F7A; }

.lecture-strate-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px);
  padding: 8px 4px clamp(28px, 4vw, 48px);
}
.lecture-strate.flip .lecture-strate-body .left  { order: 2; }
.lecture-strate.flip .lecture-strate-body .right { order: 1; }

@media (max-width: 920px) {
  .lecture-strate-head { grid-template-columns: 70px 1fr 28px; }
  .lecture-strate-head .kpi { display: none; }
  .lecture-strate-body { grid-template-columns: 1fr; gap: 24px; }
  .lecture-strate.flip .lecture-strate-body .left,
  .lecture-strate.flip .lecture-strate-body .right { order: initial; }
}

/* Linklike — lien inline souligné avec arrow (réutilisé par "Lire la méthodologie") */
.linklike {
  color: #1F1A12; text-decoration: none;
  border-bottom: 1px solid #1F1A12; padding-bottom: 1px;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.linklike:hover { color: #1A2F7A; border-color: #2F5BB7; }
.linklike .mono { font-family: "Geist Mono", ui-monospace, monospace; }

/* Dimension figure box — version compacte de strate-fig pour la section "3 dimensions" */
.miroir-dim-fig {
  position: relative;
  border: 1px solid rgba(31,26,18,0.18);
  border-radius: 6px;
  background: #F6F4EF;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 4px 0 12px;
}
.miroir-dim-fig::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(26,47,122,0.12) 0%,
    rgba(47,91,183,0.12) 55%,
    rgba(134,169,206,0.12) 100%);
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
}

/* Tab strip */
.miroir-tabs { border-bottom: 1px solid rgba(31,26,18,0.18); padding-bottom: 8px; }
.miroir-tab {
  appearance: none;
  border: 1px solid rgba(31,26,18,0.18);
  background: transparent;
  color: #5A5246;
  padding: 10px 14px 9px;
  border-radius: 4px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px;
  font-family: inherit;
  min-width: 120px;
  text-align: left;
  transition: all 160ms ease;
}
.miroir-tab .label { font-size: 13.5px; font-weight: 500; color: #1F1A12; }
.miroir-tab .kpi   { font-family: "Geist Mono", ui-monospace, monospace; font-size: 10.5px; color: #8B8276; letter-spacing: 0.04em; }
.miroir-tab:hover { border-color: #1F1A12; }
.miroir-tab.is-active {
  background: #1F1A12;
}
.miroir-tab.is-active .label { color: #F6F4EF; }
.miroir-tab.is-active .kpi {
  background-image: var(--accent-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* Interactive chips (Sonde + mini-calculateur strates) */
.chip {
  display: inline-block;
  font-family: inherit; font-size: 12.5px;
  color: #5A5246;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(31,26,18,0.18);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: all 160ms ease;
  appearance: none;
}
.chip:hover { color: #1F1A12; border-color: #1F1A12; }
.chip.is-active,
.chip.active {
  background: #1F1A12;
  color: #F6F4EF;
  border-color: #1F1A12;
}

/* =====================================================
   SONDE — layout 2 colonnes (prompts à gauche / probe à droite)
   ===================================================== */
.vc-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid rgba(31,26,18,0.18);
  border-radius: 6px;
  overflow: hidden;
  background: #F6F4EF;
}
@media (max-width: 960px) { .vc-wrap { grid-template-columns: 1fr; } }

.vc-left {
  padding: clamp(28px, 4vw, 56px);
  border-right: 1px solid rgba(31,26,18,0.18);
  display: flex; flex-direction: column;
}
.vc-right {
  padding: clamp(28px, 4vw, 56px);
  background: linear-gradient(180deg, #EBE7DD, #F6F4EF);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
@media (max-width: 960px) {
  .vc-left { border-right: 0; border-bottom: 1px solid rgba(31,26,18,0.18); }
}

/* Prompt list */
.vc-prompts {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(31,26,18,0.18);
}
.vc-prompt {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(31,26,18,0.18);
  cursor: pointer;
  transition: padding 240ms ease;
}
.vc-prompt .ix    { font-family: "Geist Mono", monospace; font-size: 11px; color: #8B8276; letter-spacing: 0.08em; }
.vc-prompt .q     { font-family: "Newsreader", serif; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.18; letter-spacing: -0.01em; }
.vc-prompt .arrow { font-family: "Geist Mono", monospace; color: #8B8276; transition: transform 240ms ease, color 240ms ease; }
.vc-prompt:hover  { padding-left: 14px; }
.vc-prompt:hover .arrow { transform: translateX(6px); color: #1A2F7A; }
.vc-prompt.active .q,
.vc-prompt.active .arrow {
  background-image: var(--accent-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* Probe head row */
.probe-head { display: flex; align-items: baseline; gap: 14px; }
.probe-head .rule { flex: 1; height: 1px; background: rgba(31,26,18,0.18); }

/* Big figure box */
.probe-fig {
  position: relative;
  border: 1px solid rgba(31,26,18,0.18);
  border-radius: 6px;
  aspect-ratio: 16 / 10;
  background: #F6F4EF;
  overflow: hidden;
}
.probe-fig::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(26,47,122,0.18) 0%,
    rgba(47,91,183,0.18) 55%,
    rgba(134,169,206,0.18) 100%);
  mix-blend-mode: multiply;
  opacity: 0.30;
  pointer-events: none;
}

/* Probe controls */
.probe-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* KPI strip below the figure */
.probe-kpi {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px;
  padding-block: 20px;
  border-top: 1px solid rgba(31,26,18,0.18);
  border-bottom: 1px solid rgba(31,26,18,0.18);
}
.probe-kpi .kpi { display: flex; flex-direction: column; gap: 2px; }

/* Bilan mockup container */
.bilan-mockup {
  position: relative;
  border: 1px solid rgba(31,26,18,0.18);
  border-radius: 6px;
  background: #F6F4EF;
  padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.bilan-mockup::before {
  content: "BILAN · DÉMO";
  position: absolute; top: -8px; left: 18px;
  background: #F6F4EF; padding: 0 8px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px; color: #8B8276; letter-spacing: 0.08em;
}

/* Final CTA block */
.miroir-cta {
  position: relative;
  padding: clamp(40px, 6vw, 88px) clamp(28px, 5vw, 72px);
  border: 1px solid rgba(31,26,18,0.18);
  border-radius: 6px;
  background:
    radial-gradient(900px 380px at 100% 0%,
      rgba(47,91,183,0.10),
      transparent 65%),
    #EBE7DD;
  overflow: hidden;
}
.miroir-cta::after {
  content: "";
  position: absolute; right: -120px; bottom: -120px;
  width: 320px; height: 320px;
  background: var(--accent-grad);
  opacity: 0.12;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

@media (max-width: 920px) {
  .miroir-step { border-right: 0; }
}

/* =====================================================
   ACCUEIL — classes propres à la home
   ===================================================== */

/* Bouton tiers (entre primary noir et ghost gris) — bord noir, fond transparent */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  font-family: inherit; font-size: 13.5px;
  cursor: pointer; text-decoration: none;
  transition: all 160ms ease;
  border: 1px solid #1F1A12;
  color: #1F1A12; background: transparent;
}
.btn:hover { background: #1F1A12; color: #F6F4EF; }

/* Carte légende du hero — "Un mode de vie moyen, en France" */
.va-legend {
  position: relative;
  border: 1px solid rgba(31,26,18,0.18);
  border-radius: 6px;
  background: #EBE7DD;
  padding: 22px;
}
.va-legend::before {
  content: "FIG. 01 — STRATES DU QUOTIDIEN";
  position: absolute; top: -8px; left: 16px;
  background: #F6F4EF; padding: 0 8px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px; color: #8B8276; letter-spacing: 0.08em;
}
.va-legend-row {
  display: grid; grid-template-columns: 14px 1fr auto;
  align-items: center; gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid rgba(31,26,18,0.08);
}
.va-legend-row:last-child { border-bottom: 0; }
.va-legend-row .swatch { width: 14px; height: 14px; border-radius: 3px; }

/* Carte produit (Le Miroir / L'Atlas) */
.product-card {
  position: relative;
  border: 1px solid rgba(31,26,18,0.18);
  border-radius: 6px; padding: 28px;
  background: #F6F4EF;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 320px;
}
.product-card .badge {
  position: absolute; top: 18px; right: 18px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px; color: #8B8276; letter-spacing: 0.08em;
  padding: 3px 8px;
  border: 1px solid rgba(31,26,18,0.18); border-radius: 999px;
}

/* Citation en exergue avec rail gradient à gauche */
.pullquote {
  position: relative;
  padding-left: 26px;
  font-family: "Newsreader", serif; font-style: italic;
  font-size: clamp(20px, 2vw, 28px); line-height: 1.3;
  color: #5A5246;
}
.pullquote::before {
  content: ""; position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 2px;
  background: var(--accent-grad);
}

