/* =================================================================
   L'Atelier des Marchés — éducation financière (France)
   Design: presse écrite française / broadsheet littéraire.
   Papier ivoire, encre noire, accent bleu encre + filet tricolore.
   Lettrines, filets fins, colonnes. Type: Cormorant Garamond / EB Garamond / Archivo.
   ================================================================= */

:root {
  --paper:      #F7F2E7;
  --paper-2:    #EFE8D8;
  --blanc:      #FCFBF6;
  --ink:        #1A1611;
  --ink-soft:   #39332A;
  --muted:      #6B6356;
  --faint:      #9A9080;

  --encre:      #1C3F66;
  --encre-deep: #14304E;
  --encre-wash: #E8EDF3;
  --rouge:      #A8322F;
  --rouge-wash: #F4E7E4;

  --line:       rgba(26, 22, 17, 0.18);
  --line-2:     rgba(26, 22, 17, 0.34);
  --hair:       rgba(26, 22, 17, 0.14);

  --shadow-sm: 0 1px 2px rgba(26,22,17,0.06);
  --shadow-md: 0 16px 40px -24px rgba(26,22,17,0.32);
  --shadow-lg: 0 34px 64px -28px rgba(26,22,17,0.40);

  --maxw: 1180px;
  --maxw-text: 720px;
  --pad: clamp(1.1rem, 4vw, 2.8rem);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "EB Garamond", Georgia, serif;
  --font-label: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

/* Tricolore hairline at the very top of the page */
.tricolore { display: flex; height: 3px; }
.tricolore i { flex: 1; }
.tricolore i:nth-child(1) { background: #2A4C86; }
.tricolore i:nth-child(2) { background: #F3EEE2; }
.tricolore i:nth-child(3) { background: #B23A37; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--ink);
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5.4rem); font-weight: 600; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 500; }
h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 500; }
h4 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--ink-soft); }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

.kicker {
  font-family: var(--font-label); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--rouge);
  display: inline-flex; align-items: center; gap: 0.65rem;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--rouge); display: inline-block; }
.eyebrow { /* alias used by some sections */
  font-family: var(--font-label); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--rouge);
  display: inline-flex; align-items: center; gap: 0.65rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--rouge); display: inline-block; }
.sec-num { font-family: var(--font-label); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

.standfirst, .lead { font-family: var(--font-display); font-size: clamp(1.3rem, 2.1vw, 1.7rem); font-style: italic; font-weight: 400; color: var(--ink-soft); line-height: 1.42; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3.2rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.2rem, 4vw, 3.5rem); }
.section--paper2 { background: var(--paper-2); }
.grid { display: grid; gap: clamp(1.2rem, 2.6vw, 2rem); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-prose { max-width: var(--maxw-text); }
.maxw-mid { max-width: 880px; }
.rule { height: 1px; background: var(--ink); border: 0; opacity: 0.85; }
.rule--thin { height: 1px; background: var(--line); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.82rem 1.5rem; background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: 1px; font-family: var(--font-label);
  font-weight: 600; font-size: 0.86rem; letter-spacing: 0.04em; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { --bg: var(--encre); --fg: #fff; border-color: var(--encre); }
.btn--primary:hover { --bg: var(--encre-deep); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); border-color: var(--ink); }
.btn--light { --bg: var(--paper); --fg: var(--ink); border-color: var(--paper); }
.btn--light:hover { --bg: #fff; }
.btn--lg { padding: 0.98rem 1.85rem; font-size: 0.92rem; }
.btn--block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-label);
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--encre); transition: gap 0.2s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.link-arrow:hover { gap: 0.75rem; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Masthead / Header ---------- */
.folio { background: var(--blanc); border-bottom: 1px solid var(--line); }
.folio .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 1rem; font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.folio a { color: var(--ink); }
.folio a:hover { color: var(--encre); }
@media (max-width: 700px) { .folio__right { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(247, 242, 231, 0.93);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 2px solid var(--ink); transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 0.95; letter-spacing: -0.01em; }
.brand__name b { font-weight: 600; }
.brand__name small { display: block; font-family: var(--font-label); font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 4px; }

.nav__links { display: flex; align-items: center; gap: 0.05rem; }
.nav__links a {
  font-family: var(--font-label); padding: 0.5rem 0.7rem; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); position: relative; transition: color 0.2s;
}
.nav__links a::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.15rem; height: 2px; background: var(--encre); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }
.nav__cta { margin-left: 0.5rem; }
.nav .nav__cta a.btn { color: var(--fg); }
.nav .nav__cta a.btn::after { display: none; }

.nav__toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 1px; background: var(--blanc); cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
body.menu-open .nav__toggle .icon-open { display: none; }
body.menu-open .nav__toggle .icon-close { display: block; }

@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blanc); padding: 0.5rem var(--pad) 1.5rem; border-bottom: 2px solid var(--ink);
    box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  body.menu-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 0.95rem 0.3rem; font-size: 0.95rem; border-bottom: 1px solid var(--hair); }
  .nav__links a::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero (front page) ---------- */
.hero { padding-block: clamp(2.2rem, 5vw, 4rem) 0; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: end; }
.hero h1 { margin: 1.1rem 0 1.3rem; }
.hero h1 em { font-style: italic; color: var(--encre); }
.hero__lead { max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); }
.hero__caption { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 0.6rem; padding-left: 0.1rem; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16/10; }
}

.hero__strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(2rem,4vw,3rem); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.hero__strip div { padding: 1.2rem 1.4rem 1.2rem 0; border-right: 1px solid var(--line); }
.hero__strip div:last-child { border-right: 0; }
.hero__strip dt { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hero__strip dd { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); margin-top: 0.3rem; }
@media (max-width: 620px) { .hero__strip { grid-template-columns: 1fr; } .hero__strip div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; } }

/* ---------- Section heads ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { margin: 0.9rem 0 0.8rem; }
.rubrique { display: flex; align-items: baseline; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.7rem; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.rubrique h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.rubrique .sec-num { margin-left: auto; }

/* ---------- Teasers (newspaper articles, rule-separated) ---------- */
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.teaser { padding: 0 1.6rem; border-left: 1px solid var(--line); }
.teaser:first-child { padding-left: 0; border-left: 0; }
.teaser:last-child { padding-right: 0; }
.teaser__num { font-family: var(--font-display); font-size: 2.2rem; color: var(--encre); line-height: 1; }
.teaser h3 { margin: 0.6rem 0 0.55rem; }
.teaser p { font-size: 0.97rem; color: var(--muted); }
.teaser .link-arrow { margin-top: 1rem; }
@media (max-width: 820px) { .teasers { grid-template-columns: 1fr; gap: 1.8rem; } .teaser { padding: 1.8rem 0 0; border-left: 0; border-top: 1px solid var(--line); } .teaser:first-child { padding-top: 0; border-top: 0; } }

/* ---------- Cards (kept for compatibility, editorial flavour) ---------- */
.card { background: var(--blanc); border: 1px solid var(--line); border-top: 3px solid var(--encre); padding: clamp(1.5rem, 2.6vw, 2.1rem); height: 100%; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 1.1rem; color: var(--encre); border: 1px solid var(--line); border-radius: 1px; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.45rem; }
.card p { font-size: 1rem; color: var(--muted); }
.card__foot { margin-top: 1.1rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.split img { width: 100%; object-fit: cover; aspect-ratio: 4/3; border: 1px solid var(--line); }
.split__media { position: relative; }
.split__tag { position: absolute; left: 0; bottom: -1px; background: var(--ink); color: var(--paper); font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; padding: 0.45rem 0.9rem; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.checklist { display: grid; gap: 0.85rem; margin-top: 1.4rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 1.02rem; color: var(--ink-soft); }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--encre); margin-top: 4px; }

/* ---------- Dark band ---------- */
.band-dark { background: var(--ink); color: #E7E0D2; position: relative; overflow: hidden; }
.band-dark h2, .band-dark h3, .band-dark h4 { color: var(--paper); }
.band-dark p { color: #B7AE9D; }
.band-dark .kicker, .band-dark .eyebrow { color: #D98E83; }
.band-dark .kicker::before, .band-dark .eyebrow::before { background: var(--rouge); }
.band-dark .sec-num { color: #8C8170; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; padding: 1.3rem 0; border-top: 1px solid rgba(255,255,255,0.16); align-items: start; }
.step:first-child { border-top: 0; }
.step__n { counter-increment: s; font-family: var(--font-display); font-size: 1.8rem; color: #D98E83; line-height: 1; }
.step__n::before { content: counter(s, decimal-leading-zero); }
.steps { counter-reset: s; }
.step h4 { margin-bottom: 0.3rem; color: var(--paper); }
.step p { font-size: 0.98rem; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3,1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.facts > div { padding: 1.8rem 1.6rem 1.8rem 0; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; padding-right: 0; }
.facts .fact__num { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.02; color: var(--encre); margin-bottom: 0.4rem; }
.facts .fact__lbl { display: block; font-size: 0.95rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } .facts > div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; } .facts > div:last-child { border-bottom: 0; } }

/* ---------- Prose (article) ---------- */
.prose { max-width: var(--maxw-text); font-size: 1.06rem; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.prose h3 { margin-top: 2rem; font-size: clamp(1.35rem, 2vw, 1.6rem); }
.prose p, .prose li { color: var(--ink-soft); }
.prose > p:first-of-type::first-letter,
.prose .dropcap::first-letter { font-family: var(--font-display); font-size: 3.6em; font-weight: 600; float: left; line-height: 0.82; padding: 0.05em 0.12em 0 0; color: var(--encre); }
.prose ul { list-style: none; padding-left: 0; display: grid; gap: 0.5rem; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 9px; height: 1px; background: var(--rouge); }
.prose ol { padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.prose ol li::marker { color: var(--encre); font-weight: 600; }
.prose a { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 2px solid var(--rouge); padding: 0.3rem 0 0.3rem 1.4rem; font-family: var(--font-display); font-style: italic; font-size: 1.55rem; color: var(--ink); line-height: 1.32; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; margin-top: 0.6rem; }
.prose table th, .prose table td { text-align: left; padding: 0.72rem 0.9rem; border: 1px solid var(--line); vertical-align: top; }
.prose table th { background: var(--paper-2); font-weight: 600; color: var(--ink); font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-block: clamp(2.6rem, 5vw, 4.4rem) clamp(1.6rem, 3vw, 2.4rem); border-bottom: 2px solid var(--ink); }
.page-hero h1 { margin: 1rem 0 1.1rem; max-width: 16ch; }
.page-hero .lead, .page-hero .standfirst { max-width: 56ch; }
.breadcrumb { font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 600; display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--encre); }

/* ---------- Blog / post cards ---------- */
.post-card { display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); filter: saturate(0.92); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.tag { font-family: var(--font-label); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rouge); font-weight: 600; }
.post-card h3 { margin: 0.55rem 0 0.5rem; font-size: 1.4rem; }
.post-card p { font-size: 0.98rem; color: var(--muted); flex: 1; }
.post-card .link-arrow { margin-top: 1.1rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-label); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.field .req { color: var(--rouge); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.82rem 0.95rem; background: var(--blanc); border: 1px solid var(--line-2);
  border-radius: 1px; font-family: var(--font-body); font-size: 1.02rem; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 144px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6356' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px var(--encre-wash); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--rouge); box-shadow: 0 0 0 3px var(--rouge-wash); }
.field__error { font-family: var(--font-label); font-size: 0.74rem; color: var(--rouge); display: none; }
.field.invalid .field__error { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--encre); flex: none; }
.check label { font-size: 0.95rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
.check.invalid label { color: var(--rouge); }
.check a { color: var(--encre); text-decoration: underline; text-underline-offset: 2px; }

.form-note { font-family: var(--font-label); font-size: 0.74rem; color: var(--faint); }
.form-success { display: none; align-items: flex-start; gap: 0.8rem; background: var(--encre-wash); border: 1px solid var(--encre); border-left-width: 3px; border-radius: 1px; padding: 1.1rem 1.2rem; }
.form-success.show { display: flex; }
.form-success svg { width: 24px; height: 24px; flex: none; color: var(--encre); margin-top: 2px; }
.form-success b { color: var(--ink); display: block; font-family: var(--font-display); font-size: 1.25rem; }
.form-success span { color: var(--ink-soft); }
.form-card { background: var(--blanc); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: clamp(1.5rem, 3vw, 2.4rem); }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--blanc); border: 1px solid var(--line); border-left: 3px solid var(--encre); padding: 1.15rem 1.3rem; }
.callout svg { width: 22px; height: 22px; flex: none; color: var(--encre); margin-top: 3px; }
.callout p { font-size: 0.98rem; color: var(--ink-soft); margin: 0; }
.callout b { color: var(--ink); }
.callout--info { border-left-color: var(--muted); }
.callout--info svg { color: var(--muted); }
.callout--risk { background: var(--rouge-wash); border-left-color: var(--rouge); }
.callout--risk svg { color: var(--rouge); }

/* ---------- Contact list ---------- */
.contact-list { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.contact-list li { display: flex; gap: 0.95rem; align-items: flex-start; }
.contact-list__ic { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 1px; color: var(--encre); display: grid; place-items: center; }
.contact-list__ic svg { width: 20px; height: 20px; }
.contact-list__txt { padding-top: 1px; }
.contact-list b { display: block; font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.contact-list__txt a { color: var(--encre); text-decoration: underline; text-underline-offset: 2px; }
.contact-list__txt > span { font-size: 1rem; color: var(--ink-soft); }

/* ---------- TOC / pill ---------- */
.toc { background: var(--blanc); border: 1px solid var(--line); border-top: 3px solid var(--rouge); padding: 1.3rem 1.5rem; }
.toc h4 { font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; font-weight: 600; }
.toc ul { display: grid; gap: 0.5rem; }
.toc a { font-size: 1rem; color: var(--ink-soft); }
.toc a:hover { color: var(--encre); }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--encre); border: 1px solid var(--line-2); padding: 0.35rem 0.75rem; font-weight: 600; }

/* ---------- CTA ---------- */
.cta-panel { padding: clamp(2.5rem, 5vw, 4.2rem); text-align: center; }
.cta-panel .btn { margin-top: 1.7rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B7AE9D; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: #B7AE9D; transition: color 0.2s; }
.site-footer a:hover { color: var(--paper); }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer__brand .brand__name { color: var(--paper); }
.footer__brand .brand__name small { color: #8C8170; }
.footer__brand p { color: #8C8170; font-size: 0.96rem; margin-top: 1.1rem; max-width: 38ch; }
.footer__col h4 { color: var(--paper); font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col a { font-size: 0.98rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.8rem; font-family: var(--font-label); font-size: 0.74rem; letter-spacing: 0.03em; color: #7E7363; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer__disclaimer { font-size: 0.92rem; color: #8C8170; line-height: 1.6; margin-top: 1.6rem; max-width: 86ch; }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 50%; bottom: clamp(0.8rem, 2vw, 1.4rem); transform: translateX(-50%) translateY(150%); z-index: 80; width: min(660px, calc(100% - 1.6rem)); background: var(--blanc); border: 1px solid var(--ink); border-top: 3px solid var(--encre); box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem; transition: transform 0.45s var(--ease); }
.cookie.show { transform: translateX(-50%) translateY(0); }
.cookie__head { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.55rem; }
.cookie__head svg { width: 22px; height: 22px; color: var(--encre); }
.cookie__head h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.cookie p { font-size: 0.95rem; color: var(--muted); margin-bottom: 1rem; }
.cookie p a { color: var(--encre); text-decoration: underline; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie__actions .btn { padding: 0.7rem 1.1rem; font-size: 0.78rem; }
.cookie__actions .btn--ghost { flex: 1; min-width: 150px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.show { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(26,22,17,0.5); backdrop-filter: blur(3px); }
.modal__panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(560px, calc(100% - 1.6rem)); max-height: 90vh; overflow-y: auto; background: var(--blanc); border: 1px solid var(--ink); border-top: 3px solid var(--encre); box-shadow: var(--shadow-lg); padding: 1.8rem; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.modal__head h3 { font-weight: 600; }
.modal__close { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 1px; background: var(--paper); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.modal__close svg { width: 18px; height: 18px; }
.modal__sub { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.2rem; }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); align-items: center; }
.pref h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.pref p { grid-column: 1 / -1; font-size: 0.9rem; color: var(--muted); margin: 0; }
.pref__locked { font-family: var(--font-label); font-size: 0.7rem; color: var(--encre); letter-spacing: 0.05em; font-weight: 600; text-transform: uppercase; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: #C9C0AE; border-radius: 100px; transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.2s var(--ease); box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--encre); }
.switch input:checked + span::after { transform: translateX(20px); }
.modal__actions { display: flex; gap: 0.6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.modal__actions .btn { flex: 1; min-width: 140px; }

/* ---------- Toast ---------- */
.kw-toast { position: fixed; left: 50%; bottom: clamp(0.8rem,2vw,1.4rem); transform: translateX(-50%) translateY(170%); z-index: 95; display: flex; align-items: center; gap: 0.6rem; background: var(--ink); color: var(--paper); border-radius: 1px; padding: 0.8rem 1.2rem; box-shadow: var(--shadow-lg); font-family: var(--font-label); font-size: 0.84rem; max-width: calc(100% - 1.6rem); transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); opacity: 0; }
.kw-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.kw-toast svg { width: 20px; height: 20px; color: #D98E83; flex: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:0.6rem}.mt-2{margin-top:1.2rem}.mt-3{margin-top:2rem}.mt-4{margin-top:3rem}
.mb-2{margin-bottom:1.2rem}
.text-muted{color:var(--muted)}
.divider{height:1px;background:var(--line);border:0;margin-block:clamp(2rem,5vw,3.5rem)}
.skip-link{position:absolute;left:-999px;top:0;background:var(--encre);color:#fff;padding:0.6rem 1rem;border-radius:0 0 2px 0;z-index:200;font-family:var(--font-label);font-weight:600}
.skip-link:focus{left:0}
:focus-visible{outline:2px solid var(--encre);outline-offset:2px;border-radius:1px}
