/* Moi président — feuille de style unique, sans framework.
   Palette et typographie issues des maquettes docs/propositions (v3). */

:root {
  --cream: #fbf5e7;
  --cream-2: #eee5d2;
  --ink: #203d35;
  --ink-2: #55665b;
  --ink-3: #819085;
  --orange: #dc4826;
  --orange-2: #b53c20;
  --mustard: #efbf4f;
  --mustard-2: #f5c95e;
  --paper: #fffcf4;
  --line: rgba(32, 61, 53, 0.18);
  --social: #0b8a5f;
  --services: #2f5da8;
  --debt: #b5451b;
  --other: #8a8882;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --text: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--cream-2); }
body { margin: 0; color: var(--ink); font: 16px/1.5 var(--text); }
.page { max-width: 960px; margin: 0 auto; background: var(--cream); min-height: 100vh; }
main { display: block; }
a { color: var(--ink); }
h1, h2, .display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.5px; line-height: 0.95; }
h1 { font-size: clamp(52px, 10vw, 92px); margin: 0; }
h2 { font-size: clamp(32px, 6vw, 44px); margin: 0 0 8px; }
h1 span, h2 span { color: var(--orange); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #147ab3; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* En-tête et pied */
.site-header { padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.logo { font: 800 27px/0.9 var(--display); text-transform: uppercase; transform: rotate(-3deg); text-decoration: none; color: var(--ink); }
.logo span { color: var(--orange); }
.site-header nav { display: flex; gap: 18px; align-items: center; font-size: 13px; }
.site-header nav a { text-decoration: none; border-bottom: 1px solid; }
.who { font-weight: 700; }
.link-button { background: none; border: none; padding: 0; font: inherit; font-size: 13px; color: var(--ink); border-bottom: 1px solid; cursor: pointer; }
.site-footer { border-top: 1px solid var(--line); padding: 16px 28px 28px; font-size: 11px; color: var(--ink-2); }
.site-footer p { margin: 0 0 4px; }
.flash { margin: 0; padding: 12px 28px; font-weight: 600; background: var(--mustard); }
.flash--alert { background: var(--orange); color: var(--cream); }

/* Boutons */
.cta, .submit {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 21px; border: 2px solid var(--ink); border-radius: 4px; background: var(--mustard); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink); text-decoration: none; font: 700 14px var(--text); cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta:hover, .submit:hover { transform: translateY(-2px); box-shadow: 4px 6px 0 var(--ink); }
.cta .arrow { font-size: 23px; line-height: 1; }

/* Landing : hero */
.hero { padding: 26px 28px 0; }
.kicker { display: flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; margin: 0; }
.dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; }
.headline { position: relative; margin-top: 16px; }
.headline h1 { max-width: 90%; }
.headline h1 span { display: inline-block; transform: rotate(-2deg); margin: 8px 0 2px; }
.stamp { position: absolute; right: 0; bottom: 5px; width: 85px; height: 85px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--mustard); color: var(--ink); font: 800 18px/1 var(--display); transform: rotate(12deg); border: 2px solid var(--ink); outline: 4px solid var(--mustard); }
.intro { max-width: 440px; margin: 20px 0; font-size: 16px; }
.micro { font-size: 11px; color: var(--ink-2); margin: 12px 0 0; }
.art { position: relative; margin: 12px -28px 0; }
.scene-stack { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-2); isolation: isolate; }
.scene-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.36s ease-out; pointer-events: none; }
.scene-image.is-active { opacity: 1; z-index: 1; }
.quote { position: absolute; bottom: 15px; right: 24px; max-width: 235px; padding: 12px 15px; background: var(--cream); border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); transform: rotate(2deg); font-size: 12px; font-weight: 600; z-index: 2; pointer-events: none; }
.quote span { font-weight: 400; }

/* Landing : galerie */
.cast { padding: 18px 28px 24px; }
.selection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.selection-heading h2 { font-size: 25px; margin: 0; }
.selection-heading p { font-size: 11px; margin: 0; color: var(--ink-2); }
.roster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.person { padding: 0; background: var(--cream-2); border: 2px solid var(--ink); border-radius: 3px; cursor: pointer; overflow: hidden; transition: transform 0.15s; min-height: 44px; }
.person:hover { transform: translateY(-5px) rotate(-2deg); }
.person[aria-pressed="true"] { outline: 3px solid var(--orange); outline-offset: 3px; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.2; object-fit: cover; }
.selected { font-size: 12px; margin: 15px 0 0; min-height: 18px; }

/* Landing : bandeau, étapes, match */
.ticker { background: var(--orange); color: #fff6e6; padding: 13px 18px; font: 800 clamp(15px, 3vw, 21px) var(--display); text-transform: uppercase; display: flex; justify-content: space-around; gap: 12px; }
.ticker i { color: var(--mustard-2); font-style: normal; }
.small-kicker { font-size: 10px; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; margin: 0 0 11px; color: var(--orange-2); }
.play { padding: 30px 28px; background: var(--ink); color: var(--cream); }
.play .small-kicker { color: var(--mustard); }
.play h2 { max-width: 420px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 27px; }
.num { color: var(--mustard); font: 800 46px/0.9 var(--display); }
.steps h3 { font: 700 14px var(--text); margin: 12px 0 8px; }
.steps p { font-size: 12px; color: #e1e5d9; margin: 0; }
.bottom { padding: 32px 28px; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 15px; align-items: center; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 18px 0; margin: 22px 0; }
.match strong { display: block; font: 800 27px var(--display); text-transform: uppercase; }
.match small { font-size: 11px; }
.vs { font: 800 34px var(--display); color: var(--orange); transform: rotate(-10deg); }
.bottom p { font-size: 13px; max-width: 550px; }
.note { font-size: 11px !important; color: var(--ink-2); }
.closing { padding: 25px 0 12px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.closing h2 { font-size: 35px; max-width: 280px; }

/* Inscription et connexion */
.journey { display: flex; justify-content: space-between; gap: 12px; background: var(--ink); color: #cad3c6; padding: 12px 28px; font-size: 11px; }
.journey strong { color: var(--mustard-2); }
.victory { position: relative; background: var(--ink); }
.victory-title { position: absolute; bottom: 20px; left: 28px; z-index: 3; padding: 10px 15px 12px; background: var(--mustard); transform: rotate(-2deg); border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); font: 800 clamp(28px, 6vw, 48px)/0.95 var(--display); text-transform: uppercase; pointer-events: none; }
.identity { padding: 16px 28px; border-bottom: 1px solid var(--line); font-size: 13px; }
.identity summary { cursor: pointer; list-style: none; }
.identity summary::-webkit-details-marker { display: none; }
.identity b { color: var(--orange-2); }
.identity .change { margin-left: 12px; text-decoration: underline; font-size: 12px; }
.identity .roster { margin: 14px 0 4px; }
.live { font-size: 11px; color: var(--ink-2); margin: 0 28px; padding-top: 8px; min-height: 1em; }
.enrollment { padding: 32px 28px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 35px; }
.enrollment h1 { font-size: clamp(35px, 6vw, 50px); margin: 0 0 20px; }
.eyebrow { font-size: 10px; letter-spacing: 1.4px; font-weight: 700; text-transform: uppercase; color: var(--orange-2); margin: 0 0 13px; }
.pitch p { font-size: 13px; max-width: 300px; }
.aside { border-left: 3px solid var(--mustard); padding-left: 14px; margin-top: 27px !important; color: #52675b; }
.aside em { font-style: normal; font-weight: 600; }
.aside small { display: block; margin-top: 5px; font-size: 11px; }
.fields { min-width: 0; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.field input { display: block; width: 100%; min-width: 0; border: 1px solid var(--ink-3); border-radius: 4px; padding: 12px; background: var(--paper); color: var(--ink); font: 16px var(--text); }
.hint { font-size: 11px; color: #57695f; margin: 6px 0 0; }
.submit { width: 100%; }
.save-note { font-size: 11px; color: #57695f; text-align: center; margin-top: 14px; }
.errors { background: var(--paper); border: 2px solid var(--orange); border-radius: 4px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.errors p { margin: 0 0 4px; font-weight: 700; }
.errors ul { margin: 0; padding-left: 18px; }

/* Carte des chiffres (prose) */
.prose { padding: 26px 28px 40px; font-size: 16px; }
.prose h1 { font-size: clamp(40px, 7vw, 60px); margin: 0 0 16px; }
.prose h2 { margin: 40px 0 12px; }
.prose .small-kicker { margin-bottom: 6px; }
.muted { color: var(--ink-2); }
.fig { white-space: nowrap; }
.fig-source { font-size: 0.65em; margin-left: 0.15em; color: var(--ink-3); text-decoration: none; border-bottom: 1px dotted var(--ink-3); }
.fig-source:hover { color: var(--services); border-bottom-color: var(--services); }
.fig-source--computed { cursor: help; }
.map { width: 100%; height: auto; margin: 1rem 0; color: var(--ink-3); }
.map a { text-decoration: none; }
.map .box rect { fill: var(--paper); stroke: var(--line); stroke-width: 0.75; }
.map .box text { text-anchor: middle; dominant-baseline: central; font-family: var(--text); }
.map .box-title { font-size: 14px; font-weight: 600; fill: var(--ink); }
.map .box-sub { font-size: 12px; fill: var(--ink-2); }
.map .box--frame rect { stroke-dasharray: 4 3; }
.map .box--social rect { fill: #e1f5ee; stroke: var(--social); }
.map .box--social .box-title { fill: #085041; }
.map .box--social .box-sub { fill: var(--social); }
.map .box--services rect { fill: #e6edf9; stroke: var(--services); }
.map .box--services .box-title { fill: #1d3d73; }
.map .box--services .box-sub { fill: var(--services); }
.map .box--debt rect { fill: #faece7; stroke: var(--debt); }
.map .box--debt .box-title { fill: #712b13; }
.map .box--debt .box-sub { fill: var(--debt); }
.map a:hover rect, .map a:focus rect { stroke-width: 2; }
.map .arrow { stroke: var(--ink-3); stroke-width: 1.5; fill: none; }
.map .arrow-label { font-size: 11px; fill: var(--ink-2); }
.details details { border-top: 1px solid var(--line); padding: 0.5rem 0; }
.details details:last-child { border-bottom: 1px solid var(--line); }
.details summary { cursor: pointer; font-weight: 600; }
.details p { margin: 0.5rem 0 0.25rem; color: var(--ink-2); }
.spending { margin: 1.5rem 0; }
.legend { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.9rem; }
.legend li { display: flex; align-items: center; gap: 0.4rem; }
.swatch { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 3px; }
.swatch--social, .bar--social { background: var(--social); }
.swatch--services, .bar--services { background: var(--services); }
.swatch--interest, .bar--interest { background: var(--debt); }
.swatch--other, .bar--other { background: var(--other); }
.bars { list-style: none; padding: 0; margin: 0; }
.bar-row { display: grid; grid-template-columns: 11rem 1fr 9rem; gap: 0.6rem; align-items: center; padding: 0.2rem 0; font-size: 0.9rem; }
.bar-row:hover { background: rgba(32, 61, 53, 0.05); }
.bar-label { text-align: right; color: var(--ink-2); line-height: 1.2; }
.bar-track { display: block; height: 0.9rem; background: rgba(32, 61, 53, 0.07); border-radius: 3px; }
.bar { display: block; height: 100%; border-radius: 0 3px 3px 0; min-width: 2px; }
.bar-value { white-space: nowrap; }
figcaption { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.75rem; }
.levers { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.6rem; }
.levers li { border: 2px solid var(--ink); border-radius: 4px; padding: 0.6rem 0.8rem; background: var(--paper); }
.levers strong { display: block; font-family: var(--display); text-transform: uppercase; font-size: 20px; }
.levers span { color: var(--ink-2); font-size: 0.9rem; }

/* Mobile */
@media (max-width: 600px) {
  .site-header { padding: 17px 18px; }
  .site-header nav { gap: 12px; font-size: 12px; }
  .hero { padding: 24px 18px 0; }
  h1 { font-size: 60px; }
  .headline h1 { max-width: 100%; }
  .stamp { display: none; }
  .intro { font-size: 14px; max-width: 290px; }
  .art { margin: 20px -18px 0; }
  .quote { display: none; }
  .ticker { gap: 7px; padding: 12px 10px; font-size: 14px; }
  .cast, .play, .bottom, .prose { padding-left: 18px; padding-right: 18px; }
  .selection-heading { display: block; }
  .roster { gap: 6px; }
  .steps { grid-template-columns: 1fr; gap: 23px; }
  .closing { display: block; }
  .closing .cta { margin-top: 12px; }
  .match strong { font-size: 23px; }
  .journey { padding: 12px 18px; font-size: 10px; gap: 8px; }
  .journey span:last-child { display: none; }
  .victory-title { left: 15px; bottom: 12px; font-size: 27px; padding: 8px 10px; }
  .identity, .live { padding-left: 18px; padding-right: 18px; margin-left: 0; margin-right: 0; }
  .enrollment { grid-template-columns: 1fr; padding: 26px 18px; gap: 16px; }
  .pitch p { max-width: none; }
  .aside { display: none; }
  .bar-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .bar-label { text-align: left; }
}
