/* Site du Collectif des Obligataires en Crowdfunding. Même famille que PorteVoix : papier chaud, encre prune,
   police Atkinson Hyperlegible ; les accents viennent du logo (rouge, turquoise, bleu). Aucun script, aucune
   ressource externe. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fbf3e6;
  --surface: #fffdf8;
  --sunk: #f6ead7;
  --ink: #3b1f2b;
  --ink-soft: #6b4a55;
  --line: #e8d6bf;
  --rouge: #e8391f;
  --turquoise: #0a9d99;
  --bleu: #0b63c5;
  --rouge-bg: #fde6df;
  --turquoise-bg: #dcf3f1;
  --bleu-bg: #e0ecfa;
  --primary: #3b1f2b;
  --on-primary: #fbf3e6;
  --link: #0b55a8;
  --focus: #f6c453;
  --font: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --page: 64rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1117; --surface: #271820; --sunk: #20141a; --ink: #f3e9dc; --ink-soft: #c2aeb2; --line: #422c36;
    --rouge: #ff6a4d; --turquoise: #2fd0c9; --bleu: #5aa8ff;
    --rouge-bg: #3a1a15; --turquoise-bg: #10302f; --bleu-bg: #12263f;
    --primary: #f6c453; --on-primary: #2a1520; --link: #8cc0ff; --focus: #ff8a5b;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rouge); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem); line-height: 1.05; font-weight: 780; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; font-weight: 750; letter-spacing: -0.012em; margin-bottom: .6em; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 720; }
p { margin: 0 0 1em; max-width: 66ch; }
.wrap { width: 100%; max-width: calc(var(--page) + 40px); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }

/* en-tête */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 720; line-height: 1.15; }
.brand img { width: 44px; height: 44px; }
.brand small { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem; padding: 6px 0; }
.nav a:hover { color: var(--rouge); }

/* boutons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px;
  border: 1.5px solid var(--primary); border-radius: 6px; background: var(--primary); color: var(--on-primary);
  font: 650 1rem/1.2 var(--font); text-decoration: none; }
.button:hover { filter: brightness(1.25); color: var(--on-primary); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.button.ghost:hover { background: var(--surface); color: var(--ink); filter: none; border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ouverture */
.hero { padding: clamp(36px, 7vw, 84px) 0 clamp(32px, 6vw, 72px); }
.hero .wrap { display: grid; gap: 28px 56px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero .lead { font-size: 1.22rem; line-height: 1.55; color: var(--ink-soft); margin-top: 22px; }
.hero-logo { order: -1; width: min(210px, 52vw); }
@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .hero-logo { order: 0; width: 100%; max-width: 380px; justify-self: center; }
}

/* sections */
section { padding: clamp(36px, 6vw, 68px) 0; }
section.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two { display: grid; gap: 20px 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .two { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* trois actions : chacune porte une couleur du logo */
.pillars { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--tone); border-radius: 0 0 10px 10px; padding: 22px 22px 8px; }
.pillar h3 { margin-bottom: .5em; }
.pillar.rouge { --tone: var(--rouge); } .pillar.turquoise { --tone: var(--turquoise); } .pillar.bleu { --tone: var(--bleu); }
.band .pillar { background: var(--paper); }

.two-even { display: grid; gap: 28px 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .two-even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
h3.sub { margin: 1.6em 0 .7em; }
ol.missions { margin: 0; padding: 0; list-style: none; counter-reset: m; max-width: 66ch; }
ol.missions li { counter-increment: m; position: relative; padding: 0 0 14px 44px; }
ol.missions li::before { content: counter(m); position: absolute; left: 0; top: .1em; width: 28px; height: 28px; border-radius: 50%;
  background: var(--rouge-bg); color: var(--ink); font-weight: 720; font-size: .92rem; display: grid; place-items: center; }
ol.missions li:nth-child(4n+2)::before { background: var(--turquoise-bg); } ol.missions li:nth-child(4n+3)::before { background: var(--bleu-bg); }
.board a { color: var(--ink); text-decoration: none; } .board a:hover { text-decoration: underline; }
.band .callout { background: var(--paper); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 14px; list-style: none; }
.platforms li { padding: 7px 16px; border-radius: 999px; font-weight: 650; background: var(--sunk); border: 1px solid var(--line); }
.platforms li:nth-child(3n+1) { background: var(--rouge-bg); } .platforms li:nth-child(3n+2) { background: var(--turquoise-bg); } .platforms li:nth-child(3n) { background: var(--bleu-bg); }

.checks { list-style: none; padding: 0; margin: 0; max-width: 66ch; }
.checks li { position: relative; padding: 0 0 14px 34px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--turquoise); }
.checks li:nth-child(3n+1)::before { background: var(--rouge); } .checks li:nth-child(3n)::before { background: var(--bleu); }

.callout { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--bleu); border-radius: 0 10px 10px 0; padding: 26px 28px; }
.callout.rouge { border-left-color: var(--rouge); }
.callout > :last-child { margin-bottom: 0; }

dl.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
dl.facts div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 620px) { dl.facts div { grid-template-columns: 14rem minmax(0, 1fr); } }
dl.facts dt { color: var(--ink-soft); font-size: .95rem; }
dl.facts dd { margin: 0; font-weight: 600; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .92rem; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer p { margin: 0; }
.legal h2 { margin-top: 1.6em; font-size: 1.3rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
