/* Cap Zéro · design 2026 (aligné sur l'app Zéro Mise v11) — partagé par l'accueil, /articles/ et /proches/ */
@font-face { font-family: "Inter"; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body.x-body {
  --ink: #0E1A14; --ink2: #56615A; --ink3: #8B958E; --bg: #F6F6F3; --card: #FFFFFF; --line: #E2E5E0;
  --mint: #5EE88A; --mint2: #7DF0A2; --mint-soft: #E2F5E7; --deep: #1F8F4E; --deep2: #17703C;
  --dark: #0E1A14; --dark2: #15241C; --dark3: #1D2F25; --dline: rgba(255,255,255,.1); --red: #D93B2B;
  --sun: #F2E3B3;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.32,.72,0,1);
  --x-green: var(--deep);
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font); letter-spacing: -0.006em; overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01";
}
.x-body a { color: inherit; }
.x-body img { max-width: 100%; height: auto; }
.x-page { min-width: 0; }
.x-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* ---------- nav ---------- */
.x-nav { position: sticky; top: 0; z-index: 50; background: #0E1A14; border-bottom: 1px solid rgba(255,255,255,.06); color: #fff; }
.x-nav__in { max-width: 1200px; margin: 0 auto; height: 76px; padding: 0 32px; display: flex; align-items: center; gap: 28px; }
.x-logo { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; color: #fff !important; flex: none; }
.x-logo i { display: none; }
.x-wm { position: relative; display: inline-flex; flex-direction: column; font-weight: 900; font-size: 21px; line-height: .86; letter-spacing: -.045em; text-transform: uppercase; }
.x-wm span { display: block; }
.x-wm::after { content: ""; position: absolute; left: 1px; top: calc(50% - 1.5px); width: .62em; height: 3px; border-radius: 2px; background: var(--mint); }
.x-nav__links { display: flex; gap: 34px; margin: 0 auto; padding: 0; list-style: none; }
.x-nav__links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.88); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; transition: color .2s; }
.x-nav__links a:hover, .x-nav__links a[aria-current] { color: var(--mint); }
.x-pill { font-size: 14px; font-weight: 650; background: var(--mint); color: var(--ink) !important; text-decoration: none; border-radius: 999px; padding: 0 22px; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; position: relative; transition: background .2s, transform .15s var(--ease); flex: none; }
.x-pill:hover { background: var(--mint2); }
.x-pill:active { transform: scale(.97); }
@media (max-width: 960px) { .x-nav__links { gap: 22px; } .x-nav__in { gap: 18px; padding: 0 22px; } }
@media (max-width: 860px) { .x-nav__links { display: none; } .x-pill { margin-left: auto; min-height: 40px; padding: 0 18px; font-size: 13.5px; } .x-nav__in { height: 64px; } }
@media (max-width: 380px) { .x-pill { padding: 0 14px; font-size: 13px; } .x-wm { font-size: 19px; } }

/* ---------- type ---------- */
.x-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .x-wrap { padding: 0 22px; } }
.x-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.x-eyebrow--mint { color: var(--deep); }
.x-h1 { font-size: clamp(46px, 6.2vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; margin: 0; }
.x-h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.032em; margin: 0; max-width: 18ch; text-wrap: balance; }
.x-h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -0.028em; margin: 0; text-wrap: balance; }
.x-lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--ink2); margin: 18px 0 0; max-width: 44ch; }
.x-lead strong { color: var(--ink); font-weight: 650; }
.x-note { font-size: 13px; color: var(--ink3); margin: 28px 0 0; }
.x-tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--deep); background: var(--mint-soft); border-radius: 999px; padding: 3px 9px; vertical-align: 3px; margin-left: 6px; white-space: nowrap; }
.x-tag--soft { margin: 0 0 14px; }

/* ---------- buttons ---------- */
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 30px; border-radius: 999px; background: var(--mint); color: var(--ink) !important; font: 650 16px/1 var(--font); letter-spacing: -.01em; text-decoration: none !important; border: 0; cursor: pointer; transition: background .2s, transform .15s var(--ease), box-shadow .2s; box-shadow: 0 10px 30px -12px rgba(94,232,138,.55); }
.x-btn:hover { background: var(--mint2); }
.x-btn:active { transform: scale(.97); }
.x-btn svg { width: 18px; height: 18px; flex: none; }
.x-btn--dark { background: var(--ink); color: #fff !important; box-shadow: none; }
.x-btn--dark:hover { background: #22352A; }
.x-more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 650; color: var(--deep); text-decoration: none; min-height: 44px; }
.x-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- cards & icons ---------- */
.x-card { background: var(--card); border: 1px solid #ECEEEA; border-radius: 18px; box-shadow: 0 1px 2px rgba(14,26,20,.04), 0 14px 34px -22px rgba(14,26,20,.22); }
.x-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--mint-soft); color: var(--deep); display: grid; place-items: center; flex: none; }
.x-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- footer ---------- */
.x-foot { background: #0A140F; color: rgba(255,255,255,.72); font-size: 14px; }
.x-foot__in { max-width: 1200px; margin: 0 auto; padding: 56px 32px 28px; }
.x-foot__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--dline); }
.x-foot__brand .x-wm { font-size: 24px; color: #fff; }
.x-foot__note { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 38ch; }
.x-foot__note a { color: var(--mint) !important; text-decoration: none; font-weight: 600; white-space: nowrap; }
.x-foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.x-foot h3 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 4px 0 14px; }
.x-foot ul { list-style: none; margin: 0; padding: 0; }
.x-foot li a { display: inline-flex; align-items: center; min-height: 34px; text-decoration: none; color: rgba(255,255,255,.72); transition: color .2s; }
.x-foot li a:hover { color: var(--mint); }
.x-foot__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 22px; font-size: 13px; color: rgba(255,255,255,.55); }
.x-foot__bar p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.x-foot__bar ul { display: flex; flex-wrap: wrap; gap: 0 22px; }
.x-foot__bar li a { color: rgba(255,255,255,.55); }
.x-foot .fr-flag { box-shadow: 0 0 0 .5px rgba(255,255,255,.3) !important; }
@media (max-width: 760px) {
  .x-foot__in { padding: 44px 22px 26px; }
  .x-foot__top { grid-template-columns: 1fr; gap: 30px; }
  .x-foot__cols { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .x-foot__bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- reveal ---------- */
.x-js .x-r { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease) calc(var(--d, 0) * 90ms), transform .9s var(--ease) calc(var(--d, 0) * 90ms); }
.x-js .x-r.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .x-js .x-r { opacity: 1; transform: none; transition: none; } }

/* ---------- mobile menu (menu.js) ---------- */
.x-menu { background: rgba(14,26,20,.97) !important; color: #fff; padding-top: 88px !important; }
.x-menu li a { color: #fff !important; border-bottom-color: rgba(255,255,255,.1) !important; font-weight: 700 !important; }
.x-menu li a::after { color: var(--mint) !important; }
.x-menu li a[aria-current] { color: var(--mint) !important; }
.x-menu__cta { background: var(--mint) !important; color: var(--ink) !important; font-weight: 700 !important; }
.x-menu__help { color: rgba(255,255,255,.6) !important; }
.x-menu__help a { color: var(--mint) !important; }
@media (min-width: 861px) { .x-menu { display: none !important; } }
