/* AEDYS Conseil — design repris de aedys.fr (Source Serif 4 + Libre Franklin, angles droits, papier/bleu/brique) */

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/libre-franklin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-serif-4.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-serif-4-italic.woff2") format("woff2");
}

:root {
  --paper: #F7F6F2;
  --surface: #FDFCFA;
  --ink: #1B1F27;
  --muted: #575C68;
  --primary: #0A2F76;
  --primary-tint: #E7ECF5;
  --navy: #071D47;
  --accent: #9A4A39;
  --accent-soft: #D98B78;
  --accent-tint: #F4E9E5;
  --rule: #D9D5CC;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 72rem;
  --header-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
p { margin: 0; }
blockquote, figure { margin: 0; }
strong { font-weight: 600; color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.muted { color: var(--muted); }
.tiny { font-size: .75rem; }
.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: -9999px; top: 0; background: var(--primary); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow.on-dark { color: var(--accent-soft); }
.kicker { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.num { font-size: .78rem; color: var(--accent); font-variant-numeric: tabular-nums; }

.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.4rem); line-height: 1.18; letter-spacing: -.005em; }
.section-title.on-dark { color: #fff; }
.section-lead { margin-top: 1rem; font-size: 1.075rem; color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 252, 250, .95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand img { height: 2.25rem; width: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .875rem 1.75rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn-sm { padding: .55rem 1rem; font-size: .875rem; white-space: nowrap; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-outline { border-color: var(--rule); color: var(--primary); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, .sit:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.text-link { display: inline-block; margin-top: 1rem; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 3.5rem 0 4rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.015em; }
.h1-accent { color: var(--primary); }
.lead { margin-top: 1.5rem; font-size: 1.15rem; line-height: 1.65; color: var(--muted); max-width: 38rem; }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.proof-line { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; color: var(--muted); }
.proof-line li { display: inline-flex; align-items: center; gap: .45rem; }
.proof-line li::before { content: ""; width: .45rem; height: .45rem; background: var(--accent); }

.shift-card { background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 12px 12px 0 -1px var(--primary-tint); }
.shift-head { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); }
.shift-toggle { display: inline-flex; border: 1px solid var(--rule); }
.shift-btn { font: inherit; font-size: .8rem; font-weight: 600; padding: .4rem .8rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.shift-btn.is-active { background: var(--primary); color: #fff; }
.shift-btn[data-state="before"].is-active { background: var(--accent); }
.shift-list { list-style: none; margin: 0; padding: .5rem 1.25rem; min-height: 15.5rem; }
.shift-list li { display: flex; gap: .85rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.1rem; line-height: 1.35; animation: fadeUp .35s ease both; }
.shift-list li:last-child { border-bottom: 0; }
.shift-list li:nth-child(2) { animation-delay: .05s; }
.shift-list li:nth-child(3) { animation-delay: .1s; }
.shift-list li:nth-child(4) { animation-delay: .15s; }
.mark { flex: none; width: .9rem; height: .9rem; position: relative; top: .1rem; }
.mark-before { border: 2px solid var(--accent); }
.mark-before::after { content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 2px; background: var(--accent); transform: translate(-50%, -50%) rotate(-45deg); }
.mark-after { background: var(--primary); }
.mark-after::after { content: ""; position: absolute; left: 30%; top: 12%; width: 30%; height: 55%; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.shift-foot { padding: .9rem 1.25rem; font-size: .8rem; color: var(--muted); background: var(--paper); border-top: 1px solid var(--rule); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Engagements */
.commit-band { background: var(--navy); color: #fff; padding: 3rem 0; }
.commit-grid { display: grid; gap: 2rem; }
.commit { border-top: 2px solid var(--accent-soft); padding-top: 1rem; }
.commit h2 { font-size: 1.2rem; line-height: 1.3; }
.commit p { margin-top: .5rem; color: rgba(255, 255, 255, .72); font-size: .95rem; }

/* Diagnostic */
.diag { padding: 5rem 0; }
.diag-layout { display: grid; gap: 1.5rem; align-items: start; }
.diag-grid { border: 0; margin: 0; padding: 0; display: grid; gap: .75rem; }
.sit {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; row-gap: .3rem;
  padding: 1.1rem 1.25rem 1.1rem 3.25rem; background: var(--surface); border: 1px solid var(--rule); cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.sit:hover { border-color: var(--primary); }
.sit input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sit::before { content: ""; position: absolute; left: 1.15rem; top: 1.25rem; width: 1.15rem; height: 1.15rem; border: 1.5px solid var(--muted); background: #fff; }
.sit::after { content: ""; position: absolute; left: 1.53rem; top: 1.38rem; width: .35rem; height: .65rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.sit.is-checked { border-color: var(--primary); background: var(--primary-tint); box-shadow: inset 3px 0 0 var(--primary); }
.sit.is-checked::before { background: var(--primary); border-color: var(--primary); }
.sit.is-checked::after { opacity: 1; }
.sit-num { grid-row: 1 / span 2; font-size: .78rem; color: var(--accent); padding-top: .15rem; font-variant-numeric: tabular-nums; }
.sit-title { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.sit-text { font-size: .9rem; color: var(--muted); }

.diag-result { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: 1.5rem; }
.diag-big { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.3; margin: .75rem 0 .5rem; }
.diag-pillars { list-style: none; margin: .5rem 0 1.25rem; padding: 0; display: grid; gap: .4rem; }
.diag-pillars a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; background: var(--primary-tint); color: var(--primary); text-decoration: none; font-weight: 600; font-size: .95rem; }
.diag-pillars a:hover { background: #d9e1f0; }
.diag-note { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.diag-result .tiny { margin-top: .6rem; }

/* Expertises */
.pillars { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 5rem 0; }
.pillar-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.pillar { background: var(--surface); padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; transition: background-color .2s; }
.pillar:target, .pillar.is-highlight { background: var(--primary-tint); }
.pillar h3 { font-size: 1.4rem; color: var(--primary); line-height: 1.25; }
.pillar blockquote { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink); border-left: 2px solid var(--accent); padding-left: .85rem; }
.pillar p { color: var(--muted); font-size: .95rem; }
.outcome { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--rule); color: var(--ink) !important; }
.outcome span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .25rem; }
.aside-note { margin-top: 1.75rem; color: var(--muted); font-size: .95rem; }

/* Méthode */
.method { padding: 5rem 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.timeline li { position: relative; padding: 0 0 2rem 3.5rem; }
.timeline li::before { content: ""; position: absolute; left: 1.05rem; top: 2.2rem; bottom: 0; width: 1px; background: var(--rule); }
.timeline li:last-child::before { display: none; }
.t-num { position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 1px solid var(--primary); color: var(--primary); font-weight: 600; font-size: .8rem; background: var(--paper); }
.timeline li:first-child .t-num { background: var(--primary); color: #fff; }
.timeline h3 { font-size: 1.35rem; color: var(--primary); }
.t-when { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: .2rem 0 .5rem; }
.timeline p:last-child { color: var(--muted); }

/* Parcours */
.track { padding: 5rem 0; background: var(--surface); border-top: 1px solid var(--rule); }
.track-grid { display: grid; gap: 1.25rem; }
.track-item { border: 1px solid var(--rule); background: var(--paper); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.track-tag { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.track-item h3 { font-size: 1.4rem; color: var(--primary); }
.track-item p { color: var(--muted); font-size: .95rem; }
.track-lesson { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--rule); font-family: var(--serif); font-style: italic; color: var(--ink) !important; font-size: 1rem !important; }
.disclaimer { margin-top: 1.25rem; font-size: .8rem; color: var(--muted); }

/* Convictions */
.convictions { background: var(--navy); color: #fff; padding: 5rem 0; }
.conv-grid { margin-top: 2.5rem; display: grid; gap: 1px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .15); }
.conv { background: var(--navy); padding: 1.75rem; }
.conv blockquote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.32; font-weight: 600; }
.conv figcaption { margin-top: .75rem; color: rgba(255, 255, 255, .72); font-size: .95rem; }

/* CTA */
.cta { padding: 5rem 0; }
.cta-grid { display: grid; gap: 2rem; align-items: center; }
.cta-box { background: var(--surface); border: 1px solid var(--rule); padding: 1.75rem; }
.cta-points { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .85rem; }
.cta-points li { position: relative; padding-left: 1.75rem; }
.cta-points li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1rem; height: 1rem; background: var(--primary); }
.cta-points li::after { content: ""; position: absolute; left: .34rem; top: .47rem; width: .28rem; height: .55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .85); padding-top: 3.5rem; font-size: .925rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: #fff; margin-bottom: .75rem; }
.footer-head { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: .8rem; color: rgba(255, 255, 255, .55); }

/* Barre CTA mobile */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(253, 252, 250, .97); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform .25s ease; }
.mobile-cta.is-visible { transform: none; }

/* Apparition au défilement (activée seulement si JS présent) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 640px) {
  .wrap { padding-left: 2rem; padding-right: 2rem; }
  .brand img { height: 2.5rem; }
  .commit-grid { grid-template-columns: 1fr 1fr; }
  .diag-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .conv-grid { grid-template-columns: 1fr 1fr; }
  .track-grid { grid-template-columns: repeat(3, 1fr); }
  .mobile-cta { display: none; }
}
@media (min-width: 1080px) {
}
@media (min-width: 960px) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; }
  .commit-grid { grid-template-columns: repeat(4, 1fr); }
  .diag-layout { grid-template-columns: 1fr 20rem; gap: 2rem; }
  .diag-result { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .pillar-grid { grid-template-columns: repeat(4, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .timeline li { padding: 3.5rem 0 0; }
  .timeline li::before { left: 2.2rem; right: -2rem; top: 1.1rem; bottom: auto; width: auto; height: 1px; }
  .cta-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}
@media (max-width: 639px) {
  body { padding-bottom: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .shift-list li { animation: none; }
  .mobile-cta { transition: none; }
}

/* Outils & IA */
.tools { padding: 5rem 0; }
.tool-grid { display: grid; gap: 1.25rem; }
.tool { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--primary); padding: 1.75rem; display: flex; flex-direction: column; gap: .7rem; }
.tool-tag { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tool h3 { font-size: 1.35rem; line-height: 1.25; color: var(--primary); }
.tool p { color: var(--muted); font-size: .95rem; }

/* Finance immobilière */
.realty { background: var(--navy); color: #fff; padding: 5rem 0; }
.realty-grid { display: grid; gap: 2.5rem; align-items: start; }
.realty .section-head { margin-bottom: 0; }
.section-lead.on-dark { color: rgba(255, 255, 255, .75); }
.realty .btn { margin-top: 2rem; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--accent-tint); }
.realty-list { display: grid; border-top: 1px solid rgba(255, 255, 255, .18); }
.realty-item { display: flex; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.realty-item h3 { font-size: 1.3rem; }
.realty-item p { margin-top: .4rem; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.num.on-dark { color: var(--accent-soft); padding-top: .3rem; }

@media (min-width: 640px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .realty-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* Réalisations */
.cases { padding: 5rem 0; background: var(--surface); border-top: 1px solid var(--rule); }
.case-list { display: grid; gap: 1.25rem; }
.case { display: grid; gap: 1.5rem; background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--primary); padding: 1.75rem; }
.case-tag { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.case-side h3 { margin-top: .5rem; font-size: 1.45rem; line-height: 1.25; color: var(--primary); }
.case-lesson { margin-top: 1rem; font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.45; color: var(--ink); border-left: 2px solid var(--accent); padding-left: .85rem; }
.case-body { margin: 0; display: grid; gap: 1rem; }
.case-body dt { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.case-body dd { margin: 0; color: var(--ink); font-size: .95rem; }
.chips { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-size: .8rem; padding: .25rem .6rem; background: var(--primary-tint); color: var(--primary); font-weight: 500; }
.cases-foot { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.cases-foot .disclaimer { margin-top: 0; max-width: 40rem; }

@media (min-width: 960px) {
  .case { grid-template-columns: 1fr 1.4fr; gap: 3rem; padding: 2rem 2.25rem; }
}

/* Réalisations : missions compactes */
.subhead { margin: 2.75rem 0 1.25rem; font-size: 1.3rem; }
.mini-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.mini { background: var(--paper); padding: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.mini h4 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; line-height: 1.3; color: var(--primary); }
.mini p:last-child { font-size: .88rem; color: var(--muted); }

/* Bandeau de confiance */
.trust { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 2.75rem 0 2.25rem; }
.trust-title { text-align: center; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logo-row { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; align-items: center; justify-items: center; }
.logo-row li { height: 2.4rem; display: flex; align-items: center; justify-content: center; width: 100%; }
.logo-row img { max-height: 100%; max-width: 8.5rem; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .62; mix-blend-mode: multiply; transition: filter .2s, opacity .2s; }
.logo-row li:hover img { filter: none; opacity: 1; }
.logo-row li { height: 3rem; }
.logo-row img { max-height: 1.6rem; }
.logo-row img[alt="Groupama"], .logo-row img[alt="Atalian"], .logo-row img[alt="Crédit Agricole"] { max-height: 2.9rem; }
.logo-row img[alt="SNCF Immobilier"], .logo-row img[alt="Malakoff Humanis"] { max-height: 2.2rem; }
.logo-row img[alt="Atalian"] { filter: grayscale(1) brightness(.45) contrast(1.4); }
.counters { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.counters li { background: var(--paper); padding: 1.1rem 1.25rem; display: flex; align-items: baseline; gap: .85rem; }
.counters strong { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--primary); min-width: 3.5rem; }
.counters span { font-size: .9rem; color: var(--muted); }
.trust-note { margin-top: 1rem; text-align: center; font-size: .75rem; color: var(--muted); }

@media (min-width: 640px) {
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .logo-row { grid-template-columns: repeat(4, 1fr); }
  .counters { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .mini-grid { grid-template-columns: repeat(4, 1fr); }
  .logo-row { grid-template-columns: repeat(8, 1fr); gap: 1rem 2rem; }
}

/* ===== v0.7 — Navigation premium (méga-menus) ===== */
.header-row { gap: 1.5rem; }
.main-nav { display: none; flex: 1; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: .25rem; }
.nav-trigger, .nav-list .nav-link {
  font: inherit; font-size: .92rem; color: rgba(27, 31, 39, .85); background: none; border: 0; cursor: pointer;
  padding: .55rem .8rem; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; position: relative;
}
.nav-trigger::after { content: ""; width: .38rem; height: .38rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-trigger[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.nav-trigger:hover, .nav-list .nav-link:hover, .nav-trigger[aria-expanded="true"] { color: var(--primary); }
.nav-trigger[aria-expanded="true"]::before, .nav-list .nav-link:hover::before {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -.72rem; height: 2px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.header-cta { display: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: .55rem; font: inherit; font-size: .9rem; font-weight: 600; color: var(--primary); background: none; border: 1px solid var(--rule); padding: .5rem .8rem; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 1.05rem; height: 1.5px; background: currentColor; position: relative; transition: transform .2s, background-color .2s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: 0 24px 48px -24px rgba(7, 29, 71, .28); animation: megaIn .18s ease both; max-height: calc(100vh - 5rem); overflow-y: auto; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-grid { display: grid; grid-template-columns: 15rem 1fr 15rem; gap: 2.5rem; padding-top: 2.25rem; padding-bottom: 2.5rem; }
.mega-intro .eyebrow { margin-bottom: .75rem; }
.mega-title { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.25; color: var(--ink); }
.mega-intro p:not(.eyebrow):not(.mega-title) { margin-top: .75rem; color: var(--muted); font-size: .92rem; }
.mega-intro .text-link { margin-top: 1.25rem; font-size: .92rem; }
.mega-cols { display: grid; gap: 1.75rem; border-left: 1px solid var(--rule); padding-left: 2.5rem; align-content: start; }
.mega-cols-2 { grid-template-columns: 1fr 1fr; }
.mega-cols-4 { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2.5rem; }
@media (min-width: 1440px) { .mega-cols-4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.mega-head { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .7rem; }
.mega-head a { color: var(--accent); text-decoration: none; }
.mega-head a:hover { text-decoration: underline; }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.mega-list a { display: block; padding: .38rem 0; color: var(--ink); text-decoration: none; font-size: .93rem; line-height: 1.35; border-bottom: 1px solid transparent; }
.mega-list a:hover { color: var(--primary); }
.mega-cols-2 .mega-list a { font-family: var(--serif); font-size: 1.02rem; padding: .55rem 0; border-bottom-color: var(--rule); }
.mega-feature { display: flex; flex-direction: column; gap: .7rem; background: var(--navy); color: #fff; padding: 1.5rem; text-decoration: none; align-self: start; transition: background-color .2s; }
.mega-feature:hover { background: var(--primary); }
.feature-kicker { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }
.feature-title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
.feature-link { font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.mega-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(7, 29, 71, .18); }

.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--rule); box-shadow: 0 24px 48px -24px rgba(7, 29, 71, .3); max-height: calc(100vh - 4.5rem); overflow-y: auto; padding: .5rem 0 1.5rem; }
.mobile-menu details { border-bottom: 1px solid var(--rule); }
.mobile-menu summary { list-style: none; cursor: pointer; padding: 1rem 0; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; display: flex; justify-content: space-between; align-items: center; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--accent); font-size: 1.3rem; }
.mobile-menu details[open] summary::after { content: "\2013"; }
.mobile-menu details ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .1rem; }
.mobile-menu details a { display: block; padding: .5rem 0; color: var(--ink); text-decoration: none; font-size: .95rem; }
.mobile-link { display: block; padding: 1rem 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.mobile-menu .btn { margin-top: 1.25rem; }

@media (min-width: 640px) {
  .header-cta { display: inline-block; }
}
@media (min-width: 1080px) {
  .main-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none !important; }
}
@media (max-width: 1079px) {
  .mega { display: none !important; }
}

/* Expertises : listes des interventions */
.pillar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.pillar-list li { position: relative; padding-left: 1rem; font-size: .93rem; color: var(--ink); }
.pillar-list li::before { content: ""; position: absolute; left: 0; top: .62rem; width: .45rem; height: 1px; background: var(--accent); }

/* Secteurs */
.sectors { padding: 5rem 0; background: var(--surface); border-top: 1px solid var(--rule); }
.sector-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.sector { background: var(--surface); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; transition: background-color .2s; }
.sector h3 { font-size: 1.25rem; color: var(--primary); }
.sector p { font-size: .92rem; color: var(--muted); }
.sector:target { background: var(--primary-tint); }
.sector-link { text-decoration: none; background: var(--paper); }
.sector-link:hover { background: var(--primary-tint); }
.sector-more { margin-top: auto; padding-top: .5rem; font-size: .85rem; font-weight: 600; color: var(--accent); }

/* Points de vue */
.views { background: var(--navy); color: #fff; padding: 5rem 0; }
.view-grid { display: grid; gap: 1px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .15); }
.view { background: var(--navy); padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.view-tag { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }
.view h3 { font-size: 1.3rem; line-height: 1.32; }
.view p:last-child { color: rgba(255, 255, 255, .72); font-size: .95rem; }

/* Le cabinet : approche sous les formats */
.track .timeline { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }

/* Pied de page */
.footer-grid { grid-template-columns: 1fr; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.legal-links { display: inline-flex; gap: 1.25rem; }
.legal a { color: rgba(255, 255, 255, .55); text-decoration: none; }
.legal a:hover { color: #fff; }

@media (min-width: 640px) {
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .view-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .sector-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mega { animation: none; }
}

/* ===== v0.8 — Logotypes (variante choisie par html[data-logo]) ===== */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--navy); }
.brand > * { display: none; }
html[data-logo="ancien"] .brand .logo-classic,
html:not([data-logo]) .brand .logo-classic { display: block; }
html[data-logo="signature"] .brand .wm-signature,
html[data-logo="cabinet"] .brand .wm-cabinet,
html[data-logo="monogramme"] .brand .wm-monogramme { display: inline-flex; }

.wordmark { align-items: center; font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1; white-space: nowrap; }
.wm-name { font-size: 1.55rem; letter-spacing: .16em; margin-right: -.16em; }

/* A — Signature : nom espacé + carré brique */
.wm-signature { align-items: baseline; }
.wm-signature .wm-dot { width: .4rem; height: .4rem; background: var(--accent); margin-left: .5rem; }

/* B — Cabinet : nom + filet + CONSEIL */
.wm-cabinet .wm-name { font-size: 1.5rem; }
.wm-cabinet .wm-sep { width: 1px; height: 1.6rem; background: var(--rule); margin: 0 .85rem 0 1.05rem; }
.wm-cabinet .wm-sub { font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }

/* C — Monogramme : carré marine + nom */
.wm-mono { width: 2.15rem; height: 2.15rem; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.35rem; font-weight: 600; margin-right: .75rem; position: relative; }
.wm-mono::after { content: ""; position: absolute; right: .32rem; bottom: .32rem; width: .28rem; height: .28rem; background: var(--accent-soft); }
.wm-monogramme .wm-name { font-size: 1.4rem; }

@media (max-width: 639px) {
  .wm-name { font-size: 1.3rem; }
  .wm-cabinet .wm-sub { display: none; }
  .wm-cabinet .wm-sep { display: none; }
}

/* v0.9 — six expertises */
.mega-cols-6 { grid-template-columns: repeat(3, 1fr); gap: 1.75rem 2.25rem; }
@media (min-width: 960px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
}
.mega-cols-6 .mega-list a { padding: .3rem 0; }

/* ===== v0.9.2 — Monogramme retenu : pied de page ===== */
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; letter-spacing: .16em; }
.footer-brand .wm-mono { width: 2rem; height: 2rem; margin: 0; font-size: 1.25rem; letter-spacing: 0; background: #fff; color: var(--navy); }
.footer-brand .wm-mono::after { background: var(--accent); right: .3rem; bottom: .3rem; width: .26rem; height: .26rem; }

/* v0.10 — sept expertises : le dernier pilier comble la ligne */
@media (min-width: 640px) and (max-width: 959px) {
  .pillar-grid > .pillar:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (min-width: 960px) {
  .pillar-grid > .pillar:last-child:nth-child(3n+1) { grid-column: span 3; }
}
@media (min-width: 960px) { .pillar-grid > .pillar:last-child:nth-child(3n+1) .pillar-list { columns: 2; column-gap: 2rem; } }

/* v0.11 — neuf secteurs : grille 3 x 3 (pas de case vide) */
@media (min-width: 640px) and (max-width: 959px) {
  .sector-grid > :last-child:nth-child(odd) { grid-column: span 2; }
}
@media (min-width: 960px) {
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== v0.11.2 — Méga-menu domaines (détail dans les cartes) ===== */
.mega-domains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
.mega-domains a { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.domain-name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.domain-line { font-size: .85rem; color: var(--muted); }
.mega-domains a:hover .domain-name { color: var(--primary); }

/* v0.15.2 — logos non cliquables (plus de fiche nominative) */
.logo-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 100%; height: 100%; padding: .5rem .35rem; }

/* v0.13 — 9 missions compactes, 6 points de vue */
@media (min-width: 960px) {
  .mini-grid { grid-template-columns: repeat(3, 1fr); }
  .view-grid { grid-template-columns: repeat(3, 1fr); }
}

/* v0.13 — expertise sous chaque logo */
.logo-row li { height: auto; }
.logo-img { height: 2.9rem; display: flex; align-items: center; justify-content: center; width: 100%; }
.logo-img img { max-height: 100%; }

/* v0.14 — dix logos : 2 colonnes (mobile), 5 x 2 au-delà */
.logo-row { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .logo-row { grid-template-columns: repeat(5, 1fr); gap: 1.25rem 1.5rem; } }
.logo-row img[alt="Keolis"] { max-height: 1.9rem; }
.logo-row img[alt="Ekwateur"] { max-height: 1.5rem; }
.case-logo[alt="Ekwateur"] { height: 2rem; }

/* v0.15 — prototype de haut de page (?hero=fils) */
.hero-canvas, .hero-switch { display: none; }
[data-hero="fils"] .hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 6rem 0 6.5rem; }
[data-hero="fils"] .hero .wrap { position: relative; z-index: 1; }
[data-hero="fils"] .hero-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
[data-hero="fils"] .hero .eyebrow { color: var(--accent-soft); }
[data-hero="fils"] .hero h1 { color: #fff; }
[data-hero="fils"] .hero .h1-accent { color: var(--accent-soft); }
[data-hero="fils"] .hero .lead { color: rgba(255, 255, 255, .8); }
[data-hero="fils"] .hero .lead strong { color: #fff; }
[data-hero="fils"] .hero .btn-primary { background: #fff; color: var(--navy); }
[data-hero="fils"] .hero .btn-primary:hover { background: var(--accent-tint); }
[data-hero="fils"] .hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
[data-hero="fils"] .hero .btn-outline:hover { border-color: #fff; }
[data-hero="fils"] .hero .proof-line { color: rgba(255, 255, 255, .72); }
[data-hero="fils"] .hero .proof-line li::before { background: var(--accent-soft); }
[data-hero="fils"] .shift-card { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
[data-hero="fils"] .shift-card { color: var(--ink); }

[data-hero-proto] .hero-switch { display: flex; position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 60; gap: .35rem; align-items: center; padding: .4rem .5rem .4rem .9rem; background: var(--ink); color: #fff; font-size: .8rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); white-space: nowrap; }
.hero-switch a { color: #fff; text-decoration: none; padding: .3rem .7rem; border: 1px solid rgba(255, 255, 255, .25); }
[data-hero="actuel"] [data-hero-link="actuel"], [data-hero="fils"] [data-hero-link="fils"] { background: var(--accent); border-color: var(--accent); }
@media (max-width: 639px) { [data-hero-proto] .hero-switch { bottom: 5rem; } .hero-switch span { display: none; } }

/* ===== v0.17 — Formulaire de contact ===== */
.cta .cta-points { margin-top: 1.75rem; }
.cta-alt { margin-top: 1.75rem; display: grid; gap: .9rem; justify-items: start; }
.cta-alt .muted { font-size: .92rem; }
.contact-form { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--primary); padding: 1.75rem; display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  border: 1px solid var(--rule); border-radius: 0; padding: .7rem .8rem; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.1rem) 52%, calc(100% - .8rem) 52%; background-size: .3rem .3rem; background-repeat: no-repeat; padding-right: 2.2rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field input::placeholder { color: #8b8f99; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.form-status { font-size: .9rem; min-height: 1.2em; }
.form-status.is-error { color: var(--accent); }
.form-status.is-success { color: var(--primary); font-weight: 600; }
.contact-form .btn[disabled] { opacity: .6; cursor: progress; }
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .cta-grid { align-items: start; }
}
@media (min-width: 960px) {
  .cta-grid { grid-template-columns: 1fr 1.25fr; gap: 4rem; }
}

/* ===== v0.17 : pages de contenu (mentions, confidentialité) ===== */
.doc { padding: 4rem 0 5rem; }
.doc-wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.15; margin-bottom: 2rem; }
.doc h2 { font-size: 1.35rem; color: var(--primary); margin: 2.25rem 0 .75rem; }
.doc p, .doc li { color: var(--ink); line-height: 1.7; }
.doc p + p { margin-top: .9rem; }
.doc-list { margin: .75rem 0 1rem; padding-left: 1.2rem; display: grid; gap: .35rem; }
.doc-date { margin-top: 3rem !important; font-size: .85rem; color: var(--muted) !important; border-top: 1px solid var(--rule); padding-top: 1.25rem; }

/* Un élément masqué reste masqué, quel que soit son style d affichage */
[hidden] { display: none !important; }

/* ===== v0.18 : pages de contenu (expertises, secteurs, points de vue, réalisations) ===== */
.page-hero { padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--rule); background: var(--paper); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; max-width: 22ch; }
.page-lead { margin-top: 1.25rem; font-size: 1.15rem; line-height: 1.65; color: var(--muted); max-width: 44rem; }
.page-hero .actions { margin-top: 1.75rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.75rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.page-body { padding: 3.5rem 0 4.5rem; background: var(--surface); }
.page-grid { display: grid; gap: 3rem; }
.page-main { max-width: 44rem; }
.page-main > h2 { font-size: 1.6rem; color: var(--primary); margin: 2.75rem 0 1rem; line-height: 1.25; }
.page-main > h2:first-child { margin-top: 0; }
.page-main > p { line-height: 1.75; color: var(--ink); }
.page-main > p + p { margin-top: 1rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 1.75rem; line-height: 1.6; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .8rem; height: .8rem; border: 2px solid var(--accent); }
.item-list { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.item { background: var(--paper); padding: 1.25rem 1.4rem; }
.item h3 { font-size: 1.15rem; color: var(--ink); }
.item p { margin-top: .4rem; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.page-aside { display: grid; gap: 1rem; align-content: start; }
.aside-card { background: var(--paper); border: 1px solid var(--rule); padding: 1.25rem 1.4rem; }
.aside-card .kicker { margin-bottom: .6rem; color: var(--accent); }
.aside-link { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.35; color: var(--primary); text-decoration: none; }
.aside-link:hover { text-decoration: underline; }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.aside-list a { color: var(--primary); text-decoration: none; font-weight: 500; }
.aside-list a:hover { text-decoration: underline; }
.aside-cta { background: var(--navy); border-color: var(--navy); color: #fff; }
.aside-cta p { margin-bottom: 1rem; color: rgba(255, 255, 255, .85); }
.aside-cta .btn-primary { background: #fff; color: var(--navy); }
.prose { max-width: 42rem; }
.prose p { line-height: 1.8; margin-top: 1.1rem; }
.prose h2 { font-size: 1.45rem; color: var(--primary); margin: 2.5rem 0 .25rem; }
.prose ul { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.prose li { line-height: 1.7; }
.article-meta { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.card-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.card { background: var(--surface); padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: inherit; transition: background-color .2s; }
.card:hover { background: var(--primary-tint); }
.card .num, .card .case-tag, .card .view-tag { color: var(--accent); }
.card h2, .card h3 { font-size: 1.3rem; color: var(--primary); line-height: 1.3; }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.card .more { margin-top: auto; padding-top: .5rem; font-size: .88rem; font-weight: 600; color: var(--accent); }
.more-link { display: inline-block; margin-top: .9rem; font-size: .88rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.views .more-link { color: var(--accent-soft); }
@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .page-grid { grid-template-columns: minmax(0, 1fr) 19rem; gap: 4rem; }
  .page-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.hub-note { margin-top: 1.75rem; }
.page-body .wrap > .actions { margin-top: 1.5rem; }
.page-body .subhead { margin-top: 3rem; }
.form-captcha:empty { display: none; }
