/* =====================================================================
   C2O Capital — feuille de style du site
   Design system : DESIGN.md (monochrome anthracite, dégradé réservé au
   logo, logo uniquement sur fond blanc, Montserrat uniquement).
   ===================================================================== */
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Montserrat-Regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/Montserrat-Italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Montserrat-Medium.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Montserrat-Bold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/Montserrat-Black.woff2") format("woff2"); }

:root {
  --c2o-ink: #3C3E40;
  --c2o-ink-soft: #55575A;
  --c2o-bg: #FFFFFF;
  --c2o-line: #E3E4E6;       /* dérivé */
  --c2o-bg-alt: #F6F6F7;     /* dérivé */
  --c2o-ink-hover: #2A2C2E;  /* dérivé */
  --c2o-field: #9A9C9E;      /* dérivé : bordure de champ, contraste >= 3:1 */
  /* Couleurs du logo : accents discrets uniquement (filets, puces, bordures),
     jamais sur du texte ni en aplat — DESIGN.md §11 et §12 */
  --c2o-blue: #1333BA;
  --c2o-rose: #D2405E;
  --c2o-red: #FF2102;
  --c2o-orange: #FF6F00;
  --c2o-yellow: #FCB600;
  --c2o-gradient: linear-gradient(90deg, #1333BA 0%, #D2405E 40%, #FF2102 60%, #FF6F00 80%, #FCB600 100%);
  --c2o-gradient-v: linear-gradient(180deg, #1333BA, #D2405E, #FF2102, #FF6F00, #FCB600);
  --c2o-deep: #2A2C2E;       /* dérivé : sections sombres (jamais avec le logo) */
  --on-deep: #FFFFFF;
  --on-deep-soft: #C9CACC;   /* dérivé : texte secondaire sur fond sombre, >= 7:1 */
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --section: 64px;
  --radius: 4px;
  --header-h: 76px;

  /* Photographies d'immeubles (Unsplash, licence libre). Un seul endroit pour
     les remplacer. En cas d'échec de chargement, le fond anthracite prend le relais. */
  --img-hero: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=70");
  --img-facade: url("https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=1600&q=70");
  --img-office: url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=70");
  --img-office-2: url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1600&q=70");
  --img-tower: url("https://images.unsplash.com/photo-1460574283810-2aab119d8511?auto=format&fit=crop&w=1600&q=70");
  --img-glass: url("https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=1600&q=70");
}
@media (min-width: 768px) {
  :root { --gutter: 48px; --section: 96px; --header-h: 88px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--c2o-bg); color: var(--c2o-ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
h1 { font-weight: 700; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; }
h3 { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.3; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--c2o-ink); outline-offset: 3px; }
.on-deep :focus-visible, .hero :focus-visible { outline-color: #FFFFFF; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--c2o-ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }

/* ---------- Typographie utilitaire ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
  color: var(--c2o-ink-soft); margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--c2o-ink-soft); max-width: 62ch; }
.muted { color: var(--c2o-ink-soft); }
.small { font-size: 14px; line-height: 1.55; }
.legal-note { font-size: 12px; font-style: italic; line-height: 1.55; color: var(--c2o-ink-soft); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: 500 15px/1 var(--font-sans); letter-spacing: .04em;
  padding: 16px 28px; border-radius: var(--radius); border: 1px solid var(--c2o-ink);
  background: var(--c2o-ink); color: #FFFFFF; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--c2o-ink-hover); border-color: var(--c2o-ink-hover); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--c2o-ink); }
.btn.ghost:hover { background: var(--c2o-ink); color: #FFFFFF; }
.btn.light { background: #FFFFFF; color: var(--c2o-ink); border-color: #FFFFFF; }
.btn.light:hover { background: transparent; color: #FFFFFF; }
.btn.ghost-light { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.7); }
.btn.ghost-light:hover { background: #FFFFFF; color: var(--c2o-ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.link {
  font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.link:hover { text-decoration-thickness: 2px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 6px;
}
.link-arrow:hover .arrow { transform: translateX(4px); }
.arrow { display: inline-block; transition: transform .2s; }

/* ---------- En-tête (toujours blanc : le logo l'exige ; logo 40–48px, DESIGN.md §4) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #FFFFFF;
  border-bottom: 1px solid var(--c2o-line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand, .brand picture, .footer-brand picture { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
@media (min-width: 768px) { .brand img { height: 48px; } }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--c2o-ink); }
.nav .btn { padding: 12px 22px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--c2o-ink); }
.nav .btn:hover, .nav .btn[aria-current="page"] { border-bottom-color: var(--c2o-ink-hover); }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--c2o-line);
  padding: 10px 14px; font: 500 12px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--c2o-ink); cursor: pointer; border-radius: var(--radius);
}
.menu-toggle .bars { width: 18px; height: 10px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s, top .2s; }
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 8px; }
.menu-open .menu-toggle .bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars::after { top: 4px; transform: rotate(-45deg); }
@media (max-width: 1079px) {
  .menu-open .nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; background: #FFFFFF;
    padding: 24px var(--gutter) 48px; overflow-y: auto; border-top: 1px solid var(--c2o-line);
  }
  .menu-open .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .menu-open .nav li { border-bottom: 1px solid var(--c2o-line); }
  .menu-open .nav a { display: block; padding: 20px 0; font-size: 15px; border: 0; }
  .menu-open .nav li.cta { border: 0; margin-top: 28px; }
  .menu-open .nav .btn { display: flex; padding: 18px; }
  .menu-open { overflow: hidden; }
}
@media (min-width: 1080px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
}

/* ---------- Héros ---------- */
.hero {
  position: relative; color: #FFFFFF; background: var(--c2o-deep);
  min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; background-image: var(--hero-img, var(--img-hero));
  background-size: cover; background-position: center; filter: grayscale(1) contrast(1.05);
  transform: scale(1.02);
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(32, 33, 35, .66); }
.hero .container { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 72px; }
.hero .eyebrow { color: var(--on-deep-soft); }
.hero h1 { max-width: 17ch; margin-bottom: 28px; }
.hero .lead { color: #E6E7E8; max-width: 58ch; }
.hero-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.28);
}
.hero-meta div { font-size: 13px; line-height: 1.5; color: var(--on-deep-soft); }
.hero-meta strong { display: block; font-size: 15px; font-weight: 600; color: #FFFFFF; letter-spacing: .02em; margin-bottom: 4px; }
@media (min-width: 900px) { .hero-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.page-hero { min-height: 0; }
.page-hero .container { padding-top: 140px; padding-bottom: 80px; }
.page-hero h1 { max-width: 20ch; font-size: clamp(32px, 4.4vw, 52px); }
@media (min-width: 768px) { .page-hero .container { padding-top: 180px; padding-bottom: 96px; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section.alt { background: var(--c2o-bg-alt); }
.section.on-deep { background: var(--c2o-deep); color: #FFFFFF; }
.on-deep .eyebrow, .on-deep .muted, .on-deep .lead { color: var(--on-deep-soft); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 88px; } .split.wide-left { grid-template-columns: 1.15fr .85fr; } }
.photo {
  position: relative; min-height: 420px; background: var(--c2o-ink) var(--img, var(--img-facade)) center / cover no-repeat;
  filter: grayscale(1);
}
.photo.tall { min-height: 560px; }
.photo-caption { margin-top: 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c2o-ink-soft); }

/* Bandeau photo plein cadre */
.band {
  position: relative; color: #FFFFFF; background: var(--c2o-deep); overflow: hidden;
}
.band::before { content: ""; position: absolute; inset: 0; background: var(--img, var(--img-tower)) center / cover no-repeat; filter: grayscale(1); }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(32, 33, 35, .72); }
.band .container { position: relative; z-index: 1; padding-top: var(--section); padding-bottom: var(--section); }
.band .eyebrow { color: var(--on-deep-soft); }
.band blockquote { margin: 0; max-width: 30ch; font-size: clamp(24px, 3vw, 38px); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }

/* ---------- Grilles de cartes ---------- */
.grid { display: grid; gap: 1px; background: var(--c2o-line); border: 1px solid var(--c2o-line); }
.grid > * { background: #FFFFFF; }
.alt .grid > * { background: #FFFFFF; }
.grid.cols-2 { grid-template-columns: 1fr; }
.grid.cols-3 { grid-template-columns: 1fr; }
.grid.cols-5 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.cols-2, .grid.cols-3, .grid.cols-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid.cols-5 { grid-template-columns: repeat(5, 1fr); } }
.cell { padding: 36px 32px 40px; }
.cell h3 { margin-bottom: 14px; }
.cell p { color: var(--c2o-ink-soft); font-size: 15px; line-height: 1.65; }
.cell p:last-child { margin-bottom: 0; }
.cell .index { display: block; font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--c2o-ink-soft); margin-bottom: 28px; }
.cell ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.55; }
.cell li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--c2o-line); }
.cell li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--c2o-ink); }
.cell .for { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--c2o-ink-soft); margin-bottom: 12px; }

/* Audience (tabs simples, sans JS requis) */
.audiences { display: grid; gap: 0; border-top: 1px solid var(--c2o-ink); }
.audience { display: grid; gap: 12px 48px; padding: 36px 0; border-bottom: 1px solid var(--c2o-line); }
.audience .who { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.audience .who span { display: block; font-weight: 400; letter-spacing: .04em; text-transform: none; font-size: 14px; color: var(--c2o-ink-soft); margin-top: 6px; }
.audience h3 { margin-bottom: 10px; }
.audience p { color: var(--c2o-ink-soft); margin-bottom: 0; font-size: 15px; }
.audience ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.audience li { padding: 6px 0 6px 22px; position: relative; }
.audience li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 1px; background: var(--c2o-ink); }
@media (min-width: 960px) { .audience { grid-template-columns: 220px 1fr 1fr; align-items: start; } }

/* ---------- Comparatif Capex / Opex ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare caption { text-align: left; font-size: 13px; color: var(--c2o-ink-soft); padding-bottom: 16px; caption-side: bottom; padding-top: 16px; }
.compare th, .compare td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--c2o-line); vertical-align: top; }
.compare thead th { font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid var(--c2o-ink); }
.compare tbody th { font-weight: 600; width: 26%; }
.compare td { color: var(--c2o-ink-soft); }
.compare td.win { color: var(--c2o-ink); font-weight: 500; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 0; }
@media (max-width: 719px) {
  .compare.stack thead { display: none; }
  .compare.stack tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--c2o-line); }
  .compare.stack th, .compare.stack td { display: block; padding: 4px 0; border: 0; width: auto; }
  .compare.stack tbody th { font-size: 16px; margin-bottom: 8px; }
  .compare.stack td::before { content: attr(data-label) " : "; font-weight: 600; color: var(--c2o-ink); }
}

/* ---------- Chiffres clés ---------- */
.figures { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 720px) { .figures { grid-template-columns: repeat(3, 1fr); } }
.figure { padding: 28px 0; border-top: 1px solid var(--c2o-line); }
@media (min-width: 720px) { .figure { padding: 32px 32px 0 0; } }
.on-deep .figure { border-top-color: rgba(255,255,255,.22); }
.figure .value { display: block; font-size: clamp(36px, 4vw, 56px); font-weight: 900; line-height: 1; letter-spacing: -.02em; margin-bottom: 14px; }
.figure .label { font-size: 14px; line-height: 1.55; color: var(--c2o-ink-soft); max-width: 30ch; }
.on-deep .figure .label { color: var(--on-deep-soft); }

/* ---------- Étapes ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--c2o-ink); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 8px 24px; padding: 36px 0; border-bottom: 1px solid var(--c2o-line); }
.steps > li::before { content: counter(step, decimal-leading-zero); font-size: 14px; font-weight: 600; letter-spacing: .1em; padding-top: 4px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--c2o-ink-soft); margin-bottom: 0; font-size: 15px; }
.steps .deliv { grid-column: 2; font-size: 13px; color: var(--c2o-ink-soft); margin-top: 8px; }
.steps .deliv strong { color: var(--c2o-ink); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; margin-right: 8px; }
@media (min-width: 960px) {
  .steps > li { grid-template-columns: 96px 1fr 1.1fr; gap: 0 48px; }
  .steps .deliv { grid-column: 3; grid-row: 1 / span 2; margin-top: 4px; font-size: 14px; }
}

/* Schéma de flux (Capex -> Opex) */
.flow { display: grid; gap: 0; border: 1px solid var(--c2o-line); background: #FFFFFF; }
.flow-node { padding: 28px; border-bottom: 1px solid var(--c2o-line); position: relative; }
.flow-node:last-child { border-bottom: 0; }
.flow-node .role { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--c2o-ink-soft); margin-bottom: 8px; }
.flow-node h3 { font-size: 18px; margin-bottom: 6px; }
.flow-node p { font-size: 14px; color: var(--c2o-ink-soft); margin: 0; }
.flow-node.key { background: var(--c2o-ink); color: #FFFFFF; }
.flow-node.key .role, .flow-node.key p { color: var(--on-deep-soft); }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow-node { border-bottom: 0; border-right: 1px solid var(--c2o-line); }
  .flow-node:last-child { border-right: 0; }
  .flow-node:not(:last-child)::after {
    content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; display: grid; place-items: center; background: #FFFFFF;
    border: 1px solid var(--c2o-line); border-radius: 50%; font-size: 12px; color: var(--c2o-ink); z-index: 1;
  }
}

/* ---------- Réassurance ---------- */
.trust { display: grid; gap: 40px; }
@media (min-width: 960px) { .trust { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.trust-item { border-top: 1px solid currentColor; padding-top: 28px; }
.on-deep .trust-item { border-top-color: rgba(255,255,255,.4); }
.trust-item .tag { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--on-deep-soft); margin-bottom: 18px; display: block; }
.trust-item h3 { margin-bottom: 14px; }
.trust-item p { font-size: 15px; color: var(--on-deep-soft); margin-bottom: 0; }
.badge-orias {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.4); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 22ch; margin: 0 auto 20px; }
.cta-final .lead { margin: 0 auto; }
.cta-final .btn-row { justify-content: center; }

/* ---------- Pied de page (clair : le logo l'exige) ---------- */
.site-footer { background: var(--c2o-bg-alt); border-top: 1px solid var(--c2o-line); padding: 72px 0 32px; font-size: 14px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 24px; }
.footer-brand p { color: var(--c2o-ink-soft); max-width: 34ch; }
.site-footer h2 { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { text-decoration: none; color: var(--c2o-ink-soft); }
.site-footer a:hover { color: var(--c2o-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--c2o-line); display: grid; gap: 12px; }
.footer-legal p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--c2o-ink-soft); }
@media (min-width: 900px) { .footer-legal { grid-template-columns: 1fr auto; align-items: end; gap: 48px; } }
.todo { font-style: normal; font-weight: 600; color: var(--c2o-ink); background: #ECEDEE; padding: 0 4px; }

/* ---------- Blog / articles ---------- */
.posts { display: grid; gap: 48px; }
@media (min-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); } }
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-card .thumb { aspect-ratio: 16 / 10; background: var(--c2o-ink) var(--img) center / cover no-repeat; filter: grayscale(1); margin-bottom: 24px; transition: filter .3s; }
.post-card:hover .thumb { filter: grayscale(.6); }
.post-meta { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--c2o-ink-soft); margin-bottom: 12px; }
.post-card h2, .post-card h3 { font-size: clamp(21px, 2vw, 26px); margin-bottom: 12px; }
.post-card p { color: var(--c2o-ink-soft); font-size: 15px; }
.post-card .link-arrow { margin-top: auto; align-self: flex-start; }

.article { padding: 64px 0 var(--section); }
.article-body { font-size: 17px; line-height: 1.75; }
.article-body h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 2.2em 0 .7em; }
.article-body h3 { font-size: 19px; margin: 1.8em 0 .6em; }
.article-body ul, .article-body ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote { margin: 2em 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--c2o-ink); font-size: 19px; font-weight: 500; line-height: 1.55; }
.article-body .table-wrap { margin: 1.6em 0; }
.article-body .compare { font-size: 14px; }
.article-body .compare td { font-variant-numeric: tabular-nums; }
.callout { background: var(--c2o-bg-alt); border-top: 2px solid var(--c2o-ink); padding: 24px 28px; margin: 2em 0; font-size: 15px; line-height: 1.65; }
.callout p:last-child { margin-bottom: 0; }
.callout .t { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.article-foot { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--c2o-line); }
.breadcrumb { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-soft); margin-bottom: 28px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Études de cas ---------- */
.case { display: grid; gap: 0; border: 1px solid var(--c2o-line); background: #FFFFFF; }
.case .photo { min-height: 260px; border-radius: 0; }
.case-body { padding: 32px; }
.case dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--c2o-line); }
.case dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c2o-ink-soft); }
.case dd { margin: 4px 0 0; font-weight: 600; }
.status { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--c2o-ink); padding: 6px 10px; margin-bottom: 18px; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 22px; }
.form .row { display: grid; gap: 22px; }
@media (min-width: 720px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field label, .field .label { display: block; font-size: 13px; font-weight: 500; letter-spacing: .04em; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--c2o-ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font-sans); color: var(--c2o-ink); background: #FFFFFF;
  border: 1px solid var(--c2o-field); border-radius: var(--radius); padding: 14px 16px; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233C3E40' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c2o-ink); outline-offset: 0; border-color: var(--c2o-ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-width: 2px; border-color: var(--c2o-ink); }
.hint { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--c2o-ink-soft); margin: 8px 0 0; line-height: 1.45; }
.hint svg { flex: none; margin-top: 1px; }
.hint.error { color: var(--c2o-ink); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--c2o-ink-soft); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c2o-ink); flex: none; }
.form-status { font-size: 14px; font-weight: 600; min-height: 1.5em; }
.hp { position: absolute; left: -9999px; }
.contact-aside { border-top: 1px solid var(--c2o-ink); padding-top: 28px; }
.contact-aside h2 { font-size: 20px; }
.contact-aside dl { margin: 24px 0; }
.contact-aside dt { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--c2o-ink-soft); margin-top: 18px; }
.contact-aside dd { margin: 4px 0 0; }

/* ---------- Simulateur ---------- */
.simu-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .simu-grid { grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; } }
.panel { background: #FFFFFF; border: 1px solid var(--c2o-line); padding: 32px; }
@media (min-width: 768px) { .panel { padding: 40px; } }
.panel > h2 { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--c2o-line); }
.panel .field + .field { margin-top: 22px; }
.input-wrap { position: relative; }
.input-wrap .unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--c2o-ink-soft); font-size: 15px; pointer-events: none; }
.input-wrap input { padding-right: 52px; }
.computed { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; background: var(--c2o-bg-alt); border: 1px solid var(--c2o-line); font-weight: 600; font-variant-numeric: tabular-nums; }
.computed.invalid { border-color: var(--c2o-ink); }
.result-panel > h2 { border-bottom: 0; padding-bottom: 0; }
.keyfig { position: relative; padding-top: 28px; }
.keyfig::before { content: ""; position: absolute; top: 0; left: 0; width: 72px; height: 3px; background: var(--c2o-gradient); border-radius: 2px; }
.keyfig .value { font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: 1; letter-spacing: -.02em; margin: 0; font-variant-numeric: tabular-nums; }
.keyfig .value small { display: block; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c2o-ink-soft); margin-top: 12px; }
.keyfig .label { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c2o-ink-soft); margin-bottom: 14px; }
.recap { margin: 24px 0; padding: 16px 20px; background: var(--c2o-bg-alt); border-radius: var(--radius); font-size: 15px; color: var(--c2o-ink); }
.figs { display: grid; grid-template-columns: 1fr; gap: 0; margin: 28px 0 0; border-top: 1px solid var(--c2o-line); }
@media (min-width: 560px) { .figs { grid-template-columns: repeat(3, 1fr); } }
.figs div { padding: 18px 16px 0 0; }
.figs dt { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--c2o-ink-soft); }
.figs dd { margin: 6px 0 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.scope-title { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.scope { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 6px 24px; font-size: 15px; }
@media (min-width: 560px) { .scope { grid-template-columns: 1fr 1fr; } }
.starter { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--c2o-line); border-left: 3px solid var(--c2o-orange); border-radius: var(--radius); }
.starter .head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.starter .name { font-weight: 600; margin: 0; }
.starter .name small { font-weight: 400; color: var(--c2o-ink-soft); margin-left: 6px; }
.starter .price { font-weight: 700; font-size: 22px; margin: 0; font-variant-numeric: tabular-nums; }
.starter .price small { font-size: 13px; font-weight: 500; color: var(--c2o-ink-soft); margin-left: 6px; }
.starter p { font-size: 14px; color: var(--c2o-ink-soft); margin: 8px 0 0; }
.table-dur { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.table-dur th, .table-dur td { padding: 16px; text-align: right; border-bottom: 1px solid var(--c2o-line); white-space: nowrap; }
.table-dur th:first-child, .table-dur td:first-child { text-align: left; }
.table-dur thead th { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid var(--c2o-ink); }
.table-dur tbody tr { cursor: pointer; }
.table-dur tbody tr:hover { background: var(--c2o-bg-alt); }
.table-dur tbody tr.selected { background: var(--c2o-bg-alt); font-weight: 600; box-shadow: inset 3px 0 0 var(--c2o-ink); }

/* ---------- Accents couleur (DESIGN.md §12) ----------
   Repris du simulateur : filets dégradés, puces rondes, bordures de cartes.
   Le texte, les fonds et les boutons restent anthracite. */
.site-header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c2o-gradient); }
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--c2o-gradient); }

/* Filet vertical dégradé à gauche des textes d'introduction */
.section-head:not(.center) .lead, .accent-intro {
  padding-left: 20px; border-left: 3px solid; border-image: var(--c2o-gradient-v) 1;
}
.hero .lead { padding-left: 20px; border-left: 3px solid; border-image: var(--c2o-gradient-v) 1; }

/* Puces rondes de couleur */
.dots li::before, .cell li::before, .audience li::before, .scope li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--c2o-blue);
}
.cell li::before { top: calc(9px + .55em); }
.audience li::before { top: calc(6px + .55em); }
.scope li { position: relative; padding-left: 20px; }
.dots li { position: relative; padding-left: 20px; list-style: none; }
.dots li:nth-child(5n+2)::before, .cell li:nth-child(5n+2)::before, .audience li:nth-child(5n+2)::before, .scope li:nth-child(5n+2)::before { background: var(--c2o-rose); }
.dots li:nth-child(5n+3)::before, .cell li:nth-child(5n+3)::before, .audience li:nth-child(5n+3)::before, .scope li:nth-child(5n+3)::before { background: var(--c2o-red); }
.dots li:nth-child(5n+4)::before, .cell li:nth-child(5n+4)::before, .audience li:nth-child(5n+4)::before, .scope li:nth-child(5n+4)::before { background: var(--c2o-orange); }
.dots li:nth-child(5n+5)::before, .cell li:nth-child(5n+5)::before, .audience li:nth-child(5n+5)::before, .scope li:nth-child(5n+5)::before { background: var(--c2o-yellow); }

/* Bordure supérieure colorée des cartes (bleu, rouge, jaune… comme le pitch du simulateur) */
.grid.cols-2 > *, .grid.cols-3 > *, .grid.cols-5 > *, .case { border-top: 3px solid var(--c2o-blue); }
.grid > :nth-child(5n+2), .case:nth-child(5n+2) { border-top-color: var(--c2o-red); }
.grid > :nth-child(5n+3), .case:nth-child(5n+3) { border-top-color: var(--c2o-yellow); }
.grid > :nth-child(5n+4) { border-top-color: var(--c2o-rose); }
.grid > :nth-child(5n+5) { border-top-color: var(--c2o-orange); }
.grid.cols-3 > :nth-child(3n+1) { border-top-color: var(--c2o-blue); }
.grid.cols-3 > :nth-child(3n+2) { border-top-color: var(--c2o-red); }
.grid.cols-3 > :nth-child(3n+3) { border-top-color: var(--c2o-yellow); }
.on-deep .trust-item { border-top: 3px solid var(--c2o-blue); }
.on-deep .trust-item:nth-child(2) { border-top-color: var(--c2o-red); }
.on-deep .trust-item:nth-child(3) { border-top-color: var(--c2o-yellow); }

/* Chiffres clés : filet dégradé court au-dessus */
.figure { position: relative; }
.figure::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--c2o-gradient); border-radius: 2px; }

/* Étape clé du schéma de flux */
.flow-node.key { box-shadow: inset 0 3px 0 0 var(--c2o-orange); }

/* Encadrés d'article et Starter Pack */
.callout { border-top: 0; border-left: 3px solid var(--c2o-orange); }
.callout.key { border-left: 3px solid; border-image: var(--c2o-gradient-v) 1; }

/* CTA « Simuler un loyer », « Simulateur », « Contact » : filet dégradé sous le bouton */
.btn.accent { position: relative; overflow: hidden; }
.btn.accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c2o-gradient); }
.link-arrow.accent { border-bottom: 0; position: relative; }
.link-arrow.accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c2o-gradient); }

/* ---------- Divers ---------- */
.prose-2 { columns: 1; }
.divider { height: 1px; background: var(--c2o-line); border: 0; margin: 0; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .no-print, .hero::before, .hero::after { display: none !important; }
  .hero { background: #FFFFFF !important; color: var(--c2o-ink) !important; }
}

/* ---------- Lexique ---------- */
.glossary { margin: 0; border-top: 1px solid var(--c2o-ink); }
.glossary .term { display: grid; gap: 6px 40px; padding: 24px 0; border-bottom: 1px solid var(--c2o-line); }
.glossary dt { font-weight: 600; font-size: 17px; position: relative; padding-left: 20px; }
.glossary dt::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--c2o-blue); }
.glossary .term:nth-child(5n+2) dt::before { background: var(--c2o-rose); }
.glossary .term:nth-child(5n+3) dt::before { background: var(--c2o-red); }
.glossary .term:nth-child(5n+4) dt::before { background: var(--c2o-orange); }
.glossary .term:nth-child(5n+5) dt::before { background: var(--c2o-yellow); }
.glossary dd { margin: 0; color: var(--c2o-ink-soft); font-size: 15px; line-height: 1.65; }
@media (min-width: 860px) { .glossary .term { grid-template-columns: 240px 1fr; } }

/* ---------- Page de connexion au simulateur (club) ---------- */
.login-body { background: #FFFFFF; }
.login { display: grid; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 960px) { .login { grid-template-columns: 1.05fr .95fr; } }
.login-visual {
  position: relative; color: #FFFFFF; background: var(--c2o-deep); overflow: hidden;
  display: flex; align-items: flex-end; min-height: 300px;
}
.login-visual::before { content: ""; position: absolute; inset: 0; background: var(--img-hero) center / cover no-repeat; filter: grayscale(1) contrast(1.05); }
.login-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32,33,35,.55) 0%, rgba(32,33,35,.88) 70%); }
.login-visual-inner { position: relative; z-index: 1; padding: 48px var(--gutter); max-width: 620px; }
.login-visual-inner::before { content: ""; display: block; width: 72px; height: 3px; background: var(--c2o-gradient); border-radius: 2px; margin-bottom: 28px; }
.login-visual .eyebrow { color: var(--on-deep-soft); }
.login-visual h2 { font-size: clamp(26px, 3vw, 40px); max-width: 16ch; margin-bottom: 28px; }
.login-points { margin: 0 0 32px; padding: 0; font-size: 15px; line-height: 1.55; color: #E6E7E8; }
.login-points li { margin-bottom: 14px; }
.login-points strong { color: #FFFFFF; }
.login-quote { margin: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); font-size: 15px; font-style: italic; color: var(--on-deep-soft); }
@media (max-width: 959px) { .login-points, .login-quote { display: none; } .login-visual { min-height: 220px; } .login-visual-inner { padding-top: 40px; padding-bottom: 32px; } .login-visual h2 { margin-bottom: 0; font-size: 24px; } }
@media (min-width: 960px) { .login-visual-inner { padding: 64px 64px 72px; } }

.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px var(--gutter) 40px; position: relative; }
.login-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c2o-gradient); }
@media (min-width: 960px) { .login-panel::before { display: none; } .login-visual { border-top: 4px solid; border-image: var(--c2o-gradient) 1; } }
.login-panel-inner { width: 100%; max-width: 420px; }
.login-brand { display: inline-block; margin-bottom: 48px; }
.login-brand picture, .login-brand img { display: block; height: 56px; width: auto; }
.login-panel h1 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 14px; }
.login-panel .muted { font-size: 15px; margin-bottom: 32px; }
.login-form { gap: 20px; }
.pwd-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 8px 10px; cursor: pointer;
  font: 500 12px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--c2o-ink-soft);
}
.pwd-toggle:hover { color: var(--c2o-ink); }
.login-form .input-wrap input { padding-right: 96px; }
.login-submit { width: 100%; margin-top: 8px; padding: 18px 28px; }
.login-error {
  display: flex; gap: 10px; align-items: center; margin: 0; padding: 14px 16px;
  background: var(--c2o-bg-alt); border-left: 3px solid var(--c2o-orange); border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
}
.login-error[hidden] { display: none; }
.login-request { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--c2o-line); }
.login-request p { margin: 0; font-size: 15px; color: var(--c2o-ink-soft); }
.login-legal { margin: 32px 0 0; }
.login-legal a { color: inherit; }
