/* Omega Consulting v2 : couleur du logo (vert #0f2d23), ivoire, Newsreader + Public Sans */

@font-face { font-family: "Newsreader"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/newsreader-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/public-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --green: #0f2d23;      /* vert du logo */
  --green-2: #1d4a3a;    /* survol, liens */
  --sage: #e3e9e2;       /* sections teintées */
  --sage-line: #c9d4ca;
  --ivory: #f7f4ee;      /* fond principal */
  --paper: #fffdf9;
  --ink: #17221d;
  --muted: #4d5a53;
  --line: #ddd6c9;
  --on-green: #f7f4ee;
  --on-green-muted: #b9c8bf;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --space: clamp(64px, 9vw, 112px);   /* rythme vertical unique entre sections */
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: clamp(16px, 1.05vw + 12px, 18px); line-height: 1.65; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-2); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--green); margin: 0; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 4.2vw + 14px, 62px); }
h2 { font-size: clamp(28px, 2.4vw + 14px, 44px); }
h3 { font-size: clamp(21px, .6vw + 17px, 25px); line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.tint { background: var(--sage); }
.dark { background: var(--green); color: var(--on-green); }
.dark h2, .dark h3 { color: var(--on-green); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--paper); padding: 8px 12px; }
.kicker { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-2); margin: 0 0 14px; }
.dark .kicker { color: var(--on-green-muted); }
.lead { font-size: clamp(17px, .5vw + 15px, 20px); color: var(--muted); max-width: 40em; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 + p { margin-top: 18px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); background: var(--green); color: var(--on-green); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--green); transition: background-color .15s, color .15s; }
.btn:hover { background: var(--green-2); border-color: var(--green-2); color: var(--on-green); }
.btn-light { background: var(--on-green); color: var(--green); border-color: var(--on-green); }
.btn-light:hover { background: #fff; color: var(--green); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--green); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--green-2); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--green); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 148px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--on-green-muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-green); }
.nav .btn { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.nav .btn-light { color: var(--green); }
.menu-toggle { display: none; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.hero-figure figcaption { position: absolute; left: 0; bottom: 0; max-width: 86%; background: var(--green); color: var(--on-green); padding: 14px 18px; font-size: 14px; line-height: 1.45; border-radius: 0 var(--radius) 0 var(--radius); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 34px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; color: var(--muted); }
.facts li { padding-left: 16px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--green); border-radius: 1px; }

/* Signes (liste numérotée en deux colonnes) */
.signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.signs li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--sage-line); }
.signs li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--green-2); }
.signs strong { display: block; color: var(--green); font-size: 17px; margin-bottom: 4px; }
.signs span { color: var(--muted); font-size: 16px; }

/* Domaines : rangées éditoriales */
.domain { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.domain:first-of-type { border-top: 0; padding-top: 0; }
.domain:nth-of-type(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.domain:nth-of-type(even) .domain-media { order: 2; }
.domain-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.domain h3 { font-size: clamp(24px, 1.4vw + 16px, 32px); margin-bottom: 14px; }
.domain ul { margin: 18px 0 24px; padding-left: 1.1em; color: var(--muted); }
.domain li { margin-bottom: 6px; }
.domain li::marker { color: var(--green-2); }

/* Méthode */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: st; border-top: 1px solid rgba(247,244,238,.25); }
.steps li { counter-increment: st; padding: 28px 24px 8px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid rgba(247,244,238,.25); }
.steps li::before { content: counter(st); display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--on-green-muted); margin-bottom: 18px; }
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p { color: var(--on-green-muted); font-size: 16px; }
.steps .dur { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--on-green); }

/* Indicateurs */
.kpis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.kpi-table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.kpi-table th, .kpi-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kpi-table th { font-weight: 600; color: var(--green); width: 42%; }
.kpi-table tr:last-child th, .kpi-table tr:last-child td { border-bottom: 0; }
.kpi-table td { color: var(--muted); }

/* À propos */
.about { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-mark { width: 100%; max-width: 220px; aspect-ratio: 1; display: grid; place-items: center; background: var(--green); border-radius: var(--radius); }
.about-mark img { width: 46%; }
.about p { max-width: 42em; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: clamp(19px, .5vw + 16px, 22px); color: var(--green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 26px; line-height: 1; color: var(--green-2); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 44em; }

/* Appel à l'action */
.cta { text-align: left; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.cta p { color: var(--on-green-muted); margin-top: 16px; max-width: 34em; }
.cta .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta .actions a:not(.btn) { color: var(--on-green); }

/* Pied de page */
.site-footer { background: #0a2119; color: var(--on-green-muted); padding: 56px 0 40px; font-size: 15px; }
.site-footer .grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer img { width: 132px; margin-bottom: 16px; }
.site-footer h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-green); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--on-green-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-green); text-decoration: underline; }
.site-footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(247,244,238,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Articles */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); }
.post-head { padding: 28px 0 clamp(32px, 4vw, 48px); }
.post-head .grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.post-head h1 { font-size: clamp(32px, 2.8vw + 16px, 52px); margin-bottom: 18px; }
.meta { font-size: 14px; color: var(--muted); }
.post-head img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.post { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 700px); gap: clamp(28px, 6vw, 88px); padding-bottom: var(--space); }
.toc { position: sticky; top: 100px; align-self: start; font-size: 15px; }
.toc p { font-weight: 600; color: var(--green); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1em; color: var(--muted); }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--green); text-decoration: underline; }
.summary { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px; }
.summary p:first-child { font-weight: 600; color: var(--green); margin-bottom: 8px; }
.summary ul { margin: 0; padding-left: 1.1em; }
.prose h2 { font-size: clamp(24px, 1vw + 18px, 30px); margin: 44px 0 14px; }
.prose p { margin-bottom: 1.1em; }
.author { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.author span.mark { width: 56px; height: 56px; display: grid; place-items: center; background: var(--green); border-radius: var(--radius); }
.author span.mark img { width: 50%; }
.author strong { color: var(--green); display: block; }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.related a { display: block; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.related a:hover { border-color: var(--green-2); }
.related small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green-2); margin-bottom: 6px; }
.related span { font-family: var(--serif); font-size: 21px; color: var(--green); line-height: 1.25; }

.page { padding: 40px 0 var(--space); }
.page .prose { max-width: 760px; }
.page h1 { font-size: clamp(32px, 2.5vw + 18px, 48px); margin-bottom: 28px; }
.todo { background: #fff3cd; padding: 0 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid rgba(247,244,238,.25); }
  .post { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 18px 22px; }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--green); padding: 8px var(--gutter) 24px; border-top: 1px solid rgba(247,244,238,.14); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(247,244,238,.1); }
  .nav .btn { margin-top: 16px; min-height: 50px; border-bottom: 0; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: transparent; color: var(--on-green); border: 1px solid rgba(247,244,238,.35); border-radius: var(--radius); font: 600 15px var(--sans); cursor: pointer; }
  .hero .grid, .kpis, .cta .wrap, .post-head .grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure img { aspect-ratio: 4 / 3; }
  .domain, .domain:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .domain:nth-of-type(even) .domain-media { order: 0; }
  .signs { grid-template-columns: minmax(0, 1fr); }
  .site-footer .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .brand img { width: 124px; }
  .hero-actions .btn { width: 100%; }
  .hero-figure figcaption { position: static; max-width: none; border-radius: 0 0 var(--radius) var(--radius); }
  .hero-figure img { border-radius: var(--radius) var(--radius) 0 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 24px 0 8px; border-left: 0; }
  .steps li + li { border-top: 1px solid rgba(247,244,238,.25); }
  .kpi-table th, .kpi-table td { display: block; width: 100%; padding: 12px 16px; }
  .kpi-table th { padding-bottom: 2px; border-bottom: 0; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-mark { max-width: 120px; }
  .related { grid-template-columns: minmax(0, 1fr); }
  .cta .actions .btn { width: 100%; }
  .site-footer .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
