/* Shared styles for editorial and legal pages.
   Mirrors the design system inlined in index.html (fonts, tokens, topbar, footer)
   and adds the editorial selectors (.prose, .page-container, .breadcrumb, .toc,
   .callout, .consent-banner). Quiz-specific selectors stay inline in index.html
   to keep its LCP path unchanged. */

/* ---------- Web fonts ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/fraunces-italic-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/fraunces-italic-500-latin.woff2) format('woff2');
  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: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/fraunces-400-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/fraunces-400-500-latin.woff2) format('woff2');
  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: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/fraunces-400-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/fraunces-400-500-latin.woff2) format('woff2');
  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: 'Inter Tight';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url(/fonts/intertight-italic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url(/fonts/intertight-italic-400-latin.woff2) format('woff2');
  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: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/intertight-400-500-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/intertight-400-500-600-latin.woff2) format('woff2');
  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: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/intertight-400-500-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/intertight-400-500-600-latin.woff2) format('woff2');
  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: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/intertight-400-500-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/intertight-400-500-600-latin.woff2) format('woff2');
  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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrainsmono-400-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrainsmono-400-500-latin.woff2) format('woff2');
  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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrainsmono-400-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrainsmono-400-500-latin.woff2) format('woff2');
  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: 'Fraunces Fallback';
  src: local('Times New Roman'), local('Georgia');
  ascent-override: 92.42%;
  descent-override: 23.11%;
  line-gap-override: 0%;
  size-adjust: 99.2%;
}
@font-face {
  font-family: 'Inter Tight Fallback';
  src: local('Helvetica Neue'), local('Arial');
  ascent-override: 90%;
  descent-override: 22.5%;
  line-gap-override: 0%;
  size-adjust: 107%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Menlo'), local('Monaco'), local('Consolas');
  ascent-override: 100%;
  descent-override: 25%;
  line-gap-override: 0%;
  size-adjust: 90%;
}

/* ---------- Design tokens ---------- */
:root{
  --paper:        #f4ede0;
  --paper-deep:   #ece2cf;
  --paper-edge:   #d9caa9;
  --ink:          #1a1d2e;
  --ink-soft:     #3a3f55;
  --ink-mute:     #6c6f82;
  --rule:         #c9b88b;
  --rule-soft:    #d8c69b;
  --bleu:   #0a2868;
  --bleu-2: #133b8c;
  --rouge:  #c8102e;
  --rouge-2:#e0273f;
  --vert:   #2f6f3f;
  --vert-2: #3a8a4f;
  --shadow-soft: 0 1px 0 rgba(26,29,46,.04), 0 10px 30px -18px rgba(26,29,46,.22);
  --shadow-card: 0 1px 0 rgba(255,255,255,.6) inset, 0 1px 0 rgba(26,29,46,.06), 0 24px 60px -28px rgba(26,29,46,.28);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --display: "Fraunces", "Fraunces Fallback", "Times New Roman", Georgia, serif;
  --sans:    "Inter Tight", "Inter Tight Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Reset and chrome ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; }
body{
  min-height:100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(200,16,46,.05), transparent 60%),
    radial-gradient(1100px 800px at -10% 110%, rgba(10,40,104,.06), transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0 0.05  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-attachment: fixed, fixed, fixed;
}
::selection{ background:#0a2868; color:#f4ede0; }

/* ---------- App container ---------- */
.app{
  min-height:100dvh;
  display:flex; flex-direction:column;
  padding: clamp(16px, 3vw, 32px);
}

/* ---------- Topbar ---------- */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  margin: 0 auto;
  width:100%; max-width: 1080px;
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--rule-soft);
}
.brand{
  display:flex; align-items:center; gap:14px;
  text-decoration:none; color:inherit;
}
.cocarde{
  width:34px; height:34px; border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%,
      var(--bleu) 0 33%,
      #f4ede0 33% 66%,
      var(--rouge) 66% 100%);
  box-shadow: 0 0 0 1px rgba(26,29,46,.18), inset 0 0 0 1px rgba(255,255,255,.4);
  flex:none;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.brand-eyebrow{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.brand-title{
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-title em{ font-style: italic; color: var(--bleu); font-weight:500; }
.topbar-back{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  padding: 6px 14px;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.topbar-back:hover{
  color: var(--bleu);
  border-color: var(--bleu);
  background: rgba(10,40,104,.04);
}

/* ---------- Editorial container & prose ---------- */
.page-container{
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
  padding: clamp(24px, 5vw, 56px) clamp(20px, 4vw, 40px);
}
.breadcrumb{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 clamp(16px, 2.5vw, 22px);
}
.breadcrumb a{
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px dotted rgba(108,111,130,.5);
  transition: color .18s ease, border-color .18s ease;
}
.breadcrumb a:hover{ color: var(--bleu); border-color: var(--bleu); }
.breadcrumb .sep{ margin: 0 8px; opacity: .6; }
.prose{
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.7;
}
.prose .eyebrow{
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 12px;
}
.prose h1{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 clamp(18px, 2.5vw, 28px);
  text-wrap: balance;
}
.prose h1 em{ font-style: italic; color: var(--bleu); font-weight: 500; }
.prose .lede{
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 clamp(28px, 4vw, 40px);
  border-left: 3px solid var(--rule);
  padding-left: 18px;
}
.prose h2{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: clamp(36px, 5vw, 56px) 0 clamp(12px, 1.8vw, 18px);
  text-wrap: balance;
}
.prose h3{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: clamp(28px, 4vw, 36px) 0 10px;
}
.prose p{ margin: 0 0 1.1em; }
.prose strong{ color: var(--ink); font-weight: 600; }
.prose em{ font-style: italic; }
.prose ul, .prose ol{
  margin: 0 0 1.3em;
  padding-left: 1.4em;
}
.prose li{ margin-bottom: .35em; }
.prose li::marker{ color: var(--rouge); }
.prose a{
  color: var(--bleu);
  text-decoration: underline;
  text-decoration-color: rgba(10,40,104,.4);
  text-underline-offset: 3px;
}
.prose a:hover{ text-decoration-color: var(--bleu); }
.prose blockquote{
  margin: 1.6em 0;
  padding: 14px 20px;
  background: #fbf6ea;
  border-left: 3px solid var(--bleu);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink);
  font-style: italic;
}
.prose blockquote cite{
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.prose hr{
  border: 0;
  border-top: 1px dashed var(--rule);
  margin: clamp(28px, 4vw, 40px) 0;
}
.prose .meta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 clamp(28px, 4vw, 40px);
}
.prose .meta-row span + span::before{
  content: "·";
  margin-right: 18px;
  opacity: .55;
}

/* ---------- Callout box ---------- */
.callout{
  background: #fbf6ea;
  border: 1px solid var(--paper-edge);
  border-left: 3px solid var(--bleu);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: clamp(24px, 3.5vw, 32px) 0;
}
.callout > :first-child{ margin-top: 0; }
.callout > :last-child{ margin-bottom: 0; }
.callout-title{
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 8px;
}

/* ---------- Table of contents ---------- */
.toc{
  background: #fbf6ea;
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: clamp(24px, 3.5vw, 32px) 0 clamp(28px, 4vw, 40px);
  font-size: 14.5px;
}
.toc-title{
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.toc ol{
  margin: 0;
  padding-left: 1.2em;
  list-style: decimal;
}
.toc li{ margin: 4px 0; }
.toc a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted rgba(26,29,46,.25);
}
.toc a:hover{ color: var(--bleu); border-color: var(--bleu); }

/* ---------- "Further reading" section ---------- */
.next-up{
  margin: clamp(40px, 6vw, 60px) 0 0;
  padding: clamp(24px, 4vw, 36px) 0 0;
  border-top: 1px dashed var(--rule);
}
.next-up h2{ margin-top: 0; }
.next-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.next-card{
  display: block;
  background: #fbf6ea;
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-md);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.next-card:hover{
  border-color: var(--ink-soft);
  background: #fffaec;
  transform: translateY(-1px);
}
.next-card-host{
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: 4px;
}
.next-card-name{
  font-family: var(--display);
  font-weight: 500;
  font-size: 16.5px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.next-card-desc{
  display: block;
  font-size: 13.5px;
  color: var(--ink-mute);
  margin-top: 4px;
  line-height: 1.5;
}

/* ---------- CTA back to simulator ----------
   Selectors bump specificity (`a.cta-simulator`) and explicitly override the
   `.prose a` defaults (color / text-decoration) so the CTA stays readable on
   the dark background. */
.prose a.cta-simulator,
a.cta-simulator{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(18px, 3vw, 24px);
  padding: 12px 22px;
  background: var(--ink);
  color: #fbf6ea;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  box-shadow: 0 12px 30px -16px rgba(26,29,46,.5);
}
.prose a.cta-simulator:hover,
a.cta-simulator:hover{
  background: var(--bleu);
  border-color: var(--bleu);
  color: #fbf6ea;
  text-decoration: none;
  transform: translateY(-1px);
}
.cta-simulator svg{ width: 14px; height: 14px; }

/* ---------- Page footer ---------- */
.page-footer{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--rule-soft);
  padding: clamp(44px, 6vw, 68px) clamp(20px, 4vw, 40px) clamp(32px, 5vw, 44px);
  text-align: center;
  margin-top: clamp(20px, 4vw, 40px);
  background:
    radial-gradient(900px 240px at 50% 0%, rgba(10,40,104,.025), transparent 60%);
}
.page-footer::before{
  content:"";
  position: absolute; left: 50%; top: -2px;
  transform: translateX(-50%);
  width: 84px; height: 3px;
  background: linear-gradient(to right,
    var(--bleu)   0    33.33%,
    #fbf6ea       33.33% 66.66%,
    var(--rouge)  66.66% 100%);
  border-radius: 2px;
}
.page-footer-brand{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  margin-bottom: clamp(24px, 3.5vw, 32px);
  transition: opacity .18s ease, transform .18s ease;
}
.page-footer-brand:hover{ opacity: .8; transform: translateY(-1px); }
.page-footer-brand .cocarde{
  width: 28px; height: 28px;
  flex: none;
}
.page-footer-brand-text{
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.1;
}
.page-footer-brand-title{
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.page-footer-brand-title em{
  font-style: italic;
  color: var(--bleu);
  font-weight: 500;
}
.page-footer-brand-sub{
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.page-footer-nav{
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 24px;
  margin: 0 0 clamp(26px, 4vw, 36px);
}
.page-footer-nav a{
  position: relative;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color .18s ease;
}
.page-footer-nav a:hover,
.page-footer-nav a:focus-visible{
  color: var(--bleu);
  outline: none;
}
.page-footer-nav a + a::before{
  content: "·";
  position: absolute;
  left: -15px; top: 50%;
  transform: translateY(-58%);
  font-family: var(--display);
  font-size: 14px;
  line-height: 1;
  color: var(--ink-mute);
  opacity: .55;
}
.page-footer-ribbon{
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: clamp(26px, 4vw, 32px);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.page-footer-ribbon .tricolor{
  display: inline-flex;
  align-items: center;
  height: 11px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(26,29,46,.1);
}
.page-footer-ribbon .tricolor i{
  display: inline-block;
  width: 18px; height: 11px;
}
.page-footer-ribbon .tricolor i:nth-child(1){ background: var(--bleu); }
.page-footer-ribbon .tricolor i:nth-child(2){ background: #fbf6ea; }
.page-footer-ribbon .tricolor i:nth-child(3){ background: var(--rouge); }
.page-footer-meta{
  display: block;
  max-width: 62ch;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 12.5px;
  font-style: italic;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* ---------- Consent banner ---------- */
.consent-banner{
  position: fixed;
  left: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
  bottom: clamp(12px, 3vw, 24px);
  max-width: 720px;
  margin: 0 auto;
  background: #fbf6ea;
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px -18px rgba(26,29,46,.35);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  z-index: 9999;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.consent-banner p{
  margin: 0;
  flex: 1 1 280px;
  min-width: 220px;
}
.consent-banner a{
  color: var(--bleu);
  text-decoration: underline;
  text-decoration-color: rgba(10,40,104,.4);
  text-underline-offset: 2px;
}
.consent-banner-actions{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.consent-banner button{
  appearance: none;
  -webkit-appearance: none;
  background: var(--ink);
  color: #fbf6ea;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.consent-banner button:hover{
  background: var(--bleu);
  border-color: var(--bleu);
  transform: translateY(-1px);
}
.consent-banner[hidden]{ display: none; }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px){
  .topbar{ gap: 10px; padding-bottom: 18px; }
  .brand{ gap: 10px; min-width: 0; flex: 1; }
  .brand-text{ min-width: 0; }
  .brand-eyebrow{ font-size: 9.5px; letter-spacing: .14em; }
  .brand-title{ font-size: 15.5px; line-height: 1.15; }
  .cocarde{ width: 30px; height: 30px; }
  .topbar-back{ font-size: 9.5px; letter-spacing: .12em; padding: 5px 11px; }
}
@media (max-width: 520px){
  .page-container{ padding: 24px 18px; }
  .prose{ font-size: 16px; }
  .prose .lede{ font-size: 16.5px; padding-left: 14px; }
  .brand-eyebrow{ display: none; }
  .brand-title{ font-size: 15px; }
  .page-footer{ padding: 36px 18px 28px; margin-top: 12px; }
  .page-footer::before{ width: 60px; }
  .page-footer-brand{ gap: 11px; margin-bottom: 22px; }
  .page-footer-brand .cocarde{ width: 24px; height: 24px; }
  .page-footer-brand-title{ font-size: 16px; }
  .page-footer-brand-sub{ font-size: 9px; letter-spacing: .16em; }
  .page-footer-nav{ gap: 7px 18px; margin-bottom: 22px; }
  .page-footer-nav a{ font-size: 9.5px; letter-spacing: .14em; }
  .page-footer-nav a + a::before{ left: -11px; font-size: 12px; }
  .page-footer-ribbon{ gap: 12px; font-size: 9.5px; letter-spacing: .14em; margin-bottom: 22px; }
  .page-footer-ribbon .tricolor{ height: 9px; }
  .page-footer-ribbon .tricolor i{ width: 14px; height: 9px; }
  .page-footer-meta{ font-size: 11.5px; line-height: 1.55; }
  .consent-banner{
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 16px;
    font-size: 13px;
  }
  .consent-banner-actions{ width: 100%; justify-content: flex-end; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}
