/* Wealth Parrainage · système « sauge et lime » : bandes sauge, cartes blanches très arrondies, une seule couleur d'action. */
@font-face { font-family: 'Manrope'; src: url(assets/fonts/manrope-var-latin.woff2) format('woff2'); font-weight: 200 800; 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: 'Manrope'; src: url(assets/fonts/manrope-var-latin-ext.woff2) format('woff2'); font-weight: 200 800; font-display: swap; 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'; src: url(assets/fonts/inter-var-latin.woff2) format('woff2'); font-weight: 100 900; 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: 'Inter'; src: url(assets/fonts/inter-var-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap; 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; }

:root {
  color-scheme: light;
  --canvas: #ffffff; --sauge: #e8ebe6; --pale: #e2f6d5; --lime: #9fe870; --lime-actif: #cdffad; --lime-neutre: #c5edab;
  --encre: #0e0f0c; --profond: #163300; --corps: #454745; --muet: #646862; --filet: #d9ddd5;
  --peche: #ffc091; --cyan: #38c8ff; --positif-profond: #054d28;
  --sur-encre: #e8ebe6; --carte-sombre: #0e0f0c;
  --display: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --texte: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 9999px;
  --marge: clamp(20px, 3vw, 32px); --bande: clamp(48px, 7vw, 96px);
  --ease: cubic-bezier(.22, 1, .36, 1); --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --hauteur-entete: 72px;
 --vagues: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%201400%20900%22%20fill=%22none%22%20stroke-linecap=%22round%22%20stroke-width=%222.5%22%3E%3Cg%20stroke=%22%23fff%22%20stroke-opacity=%22.95%22%3E%3Cpath%20d=%22M-40%20110C300%2020%20520%20250%20820%20150S1220%20-10%201440%20100%22/%3E%3Cpath%20d=%22M-40%20390C380%20300%20600%20530%20900%20430S1300%20270%201440%20380%22/%3E%3Cpath%20d=%22M-40%20670C340%20580%20560%20810%20860%20710S1260%20550%201440%20660%22/%3E%3C/g%3E%3Cg%20stroke=%22%239fe870%22%20stroke-opacity=%22.75%22%3E%3Cpath%20d=%22M-40%20250C340%20160%20560%20390%20860%20290S1260%20130%201440%20240%22/%3E%3Cpath%20d=%22M-40%20530C300%20440%20520%20670%20820%20570S1220%20410%201440%20520%22/%3E%3Cpath%20d=%22M-40%20810C380%20720%20600%20950%20900%20850S1300%20690%201440%20800%22/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-theme="dark"] { color-scheme: dark; --canvas: #14160f; --sauge: #1d2118; --pale: #233120; --encre: #eef1ea; --profond: #cdffad; --corps: #c4c8bf; --muet: #9a9f95; --filet: #2d322a; --sur-encre: #e8ebe6; --carte-sombre: #0e0f0c; --filtre-icone: invert(1); --vagues: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%201400%20900%22%20fill=%22none%22%20stroke-linecap=%22round%22%20stroke-width=%222.5%22%3E%3Cg%20stroke=%22%23fff%22%20stroke-opacity=%22.3%22%3E%3Cpath%20d=%22M-40%20110C300%2020%20520%20250%20820%20150S1220%20-10%201440%20100%22/%3E%3Cpath%20d=%22M-40%20390C380%20300%20600%20530%20900%20430S1300%20270%201440%20380%22/%3E%3Cpath%20d=%22M-40%20670C340%20580%20560%20810%20860%20710S1260%20550%201440%20660%22/%3E%3C/g%3E%3Cg%20stroke=%22%239fe870%22%20stroke-opacity=%22.4%22%3E%3Cpath%20d=%22M-40%20250C340%20160%20560%20390%20860%20290S1260%20130%201440%20240%22/%3E%3Cpath%20d=%22M-40%20530C300%20440%20520%20670%20820%20570S1220%20410%201440%20520%22/%3E%3Cpath%20d=%22M-40%20810C380%20720%20600%20950%20900%20850S1300%20690%201440%20800%22/%3E%3C/g%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --canvas: #14160f; --sauge: #1d2118; --pale: #233120; --encre: #eef1ea; --profond: #cdffad; --corps: #c4c8bf; --muet: #9a9f95; --filet: #2d322a; --sur-encre: #e8ebe6; --carte-sombre: #0e0f0c; --filtre-icone: invert(1); --vagues: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%201400%20900%22%20fill=%22none%22%20stroke-linecap=%22round%22%20stroke-width=%222.5%22%3E%3Cg%20stroke=%22%23fff%22%20stroke-opacity=%22.3%22%3E%3Cpath%20d=%22M-40%20110C300%2020%20520%20250%20820%20150S1220%20-10%201440%20100%22/%3E%3Cpath%20d=%22M-40%20390C380%20300%20600%20530%20900%20430S1300%20270%201440%20380%22/%3E%3Cpath%20d=%22M-40%20670C340%20580%20560%20810%20860%20710S1260%20550%201440%20660%22/%3E%3C/g%3E%3Cg%20stroke=%22%239fe870%22%20stroke-opacity=%22.4%22%3E%3Cpath%20d=%22M-40%20250C340%20160%20560%20390%20860%20290S1260%20130%201440%20240%22/%3E%3Cpath%20d=%22M-40%20530C300%20440%20520%20670%20820%20570S1220%20410%201440%20520%22/%3E%3Cpath%20d=%22M-40%20810C380%20720%20600%20950%20900%20850S1300%20690%201440%20800%22/%3E%3C/g%3E%3C/svg%3E"); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hauteur-entete) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--canvas); color: var(--encre); font: 400 16px/1.5 var(--texte); font-feature-settings: 'calt'; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .16em; text-decoration-thickness: .07em; }
p { max-width: 64ch; text-wrap: pretty; margin: 0; }
p + p { margin-top: .9em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; hyphens: none; color: var(--profond); }
h1 { font-size: clamp(2.25rem, 1rem + 4.3vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); }
h3 { font-family: var(--texte); font-weight: 600; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); letter-spacing: -.01em; line-height: 1.25; color: var(--encre); }
ul, ol { padding-left: 1.2em; } li { margin: .3em 0; }
strong { font-weight: 600; }
::selection { background: var(--lime); color: #0e0f0c; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 6px; }
.saut { position: absolute; left: -999px; top: 8px; background: var(--encre); color: var(--canvas); padding: 10px 16px; border-radius: var(--r-pill); }
.saut:focus { left: var(--marge); z-index: 60; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--marge); }
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.25rem); line-height: 1.5; color: var(--corps); max-width: 40ch; }
.mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-36 { margin-top: 36px; }
.bande-sauge .tete { padding-block: 24px 48px; }
#guides { padding-bottom: 0; }
#fin .flotte { max-width: 300px; justify-self: center; } #fin .flotte .illu { width: 100%; height: auto; margin: 0; }
.doux { color: var(--corps); } .petit { font-size: .875rem; line-height: 1.45; }
.bande { padding-block: var(--bande); }
.bande-sauge { background: var(--sauge); }
#haut { background-image: var(--vagues), radial-gradient(closest-side, var(--pale), transparent); background-repeat: no-repeat; background-position: right center, -18% 120%; background-size: 52% auto, 70% 90%; }
@media (max-width: 900px) { #haut { background-image: none; } }
.bande-sombre { background: var(--carte-sombre); color: var(--sur-encre); }
.bande-sombre h1, .bande-sombre h2 { color: var(--lime); } .bande-sombre .doux { color: #c4c8bf; }
.bande-sombre ::selection { background: var(--lime); color: #0e0f0c; } .bande-sombre :focus-visible { outline-color: var(--lime); }
.en-tete-section { max-width: 60ch; margin-bottom: clamp(24px, 3vw, 40px); }
.en-tete-section p { margin-top: 12px; color: var(--corps); }

/* Boutons : pastilles 24 px, une seule couleur d'action. */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: var(--r-xl); font: 600 1rem/1.5 var(--texte); text-decoration: none; cursor: pointer; background: var(--lime); color: #0e0f0c; transition: background-color .18s ease, transform .14s var(--ease), color .18s ease; }
.bouton:active { transform: scale(.97); }
.bouton-secondaire { background: var(--sauge); color: var(--encre); }
.bouton-tertiaire { background: var(--canvas); color: var(--encre); border: 1px solid var(--encre); padding: 11px 23px; }
.bande-sombre .bouton-secondaire, .carte-sombre .bouton-secondaire, .encart-parrainage .bouton-secondaire { background: #262a22; color: var(--sur-encre); }
.bouton img { width: 18px; height: 18px; }
.icone-ui { filter: var(--filtre-icone, none); }
.bande-sombre .bouton-secondaire .icone-ui, .carte-sombre .bouton-secondaire .icone-ui, .encart-parrainage .bouton-secondaire .icone-ui { filter: invert(1); }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { background: var(--lime-actif); color: #0e0f0c; }
  .bouton-secondaire:hover { background: var(--pale); color: #0e0f0c; }
  .bouton-tertiaire:hover { background: var(--sauge); color: var(--encre); }
}

/* En-tête collant, blanc. */
.entete { position: sticky; top: 0; z-index: 30; background: var(--canvas); }
.entete-int { display: flex; align-items: center; gap: 24px; min-height: 72px; padding-block: 12px; position: relative; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--profond); font: 800 1.25rem/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.marque img { width: 34px; height: 34px; border-radius: 10px; }
.actions-entete { display: flex; gap: 8px; margin-left: auto; order: 3; }
.bascule-theme, .bascule-menu { width: 44px; height: 44px; display: inline-grid; place-items: center; background: var(--sauge); color: var(--encre); border: 0; border-radius: var(--r-pill); cursor: pointer; padding: 0; transition: background-color .18s ease; }
.bascule-theme[hidden], .bascule-menu[hidden] { display: none; }
.bascule-theme .soleil { display: none; } .bascule-theme[aria-pressed="true"] .lune { display: none; } .bascule-theme[aria-pressed="true"] .soleil { display: block; }
.nav-principale { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); margin-left: auto; }
.nav-principale a { text-decoration: none; color: var(--encre); font: 600 1rem/1.4 var(--texte); padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .18s ease; }
@media (hover: hover) { .nav-principale a:not(.nav-action):hover { border-color: var(--lime); } }
.nav-principale .nav-action { background: var(--lime); color: #0e0f0c; padding: 10px 20px; border-radius: var(--r-xl); border: 0; display: inline-flex; align-items: center; gap: 8px; transition: background-color .18s ease; }
.nav-action img { width: 16px; height: 16px; }
@media (hover: hover) { .nav-action:hover { background: var(--lime-actif); } }
@media (max-width: 960px) {
  .nav-principale { position: absolute; left: calc(-1 * var(--marge)); right: calc(-1 * var(--marge)); top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--canvas); padding: 8px var(--marge) 20px; max-height: calc(100dvh - var(--hauteur-entete)); overflow: auto; border-radius: 0 0 var(--r-xl) var(--r-xl); }
  .js .nav-principale:not(.ouverte) { display: none; }
  .nav-principale a { padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid var(--filet); }
  .nav-action { margin-top: 12px; justify-content: center; }
  html:not(.js) .entete { position: static; }
  html:not(.js) .entete-int { flex-wrap: wrap; }
  html:not(.js) .nav-principale { position: static; flex: 1 0 100%; max-height: none; padding-inline: 0; }
}
html:not(.js) [data-copier]:not(.code-bouton) { display: none; }
@media (min-width: 961px) { .bascule-menu { display: none; } }
@media (max-width: 360px) { .marque { font-size: 1rem; } .entete-int { gap: 12px; } }
.fil { font-size: .875rem; color: var(--corps); display: flex; flex-wrap: wrap; gap: 8px; }
.fil a { color: inherit; }

/* Cartes. */
.carte { background: var(--canvas); border-radius: var(--r-xl); padding: 24px; }
.carte-sauge { background: var(--sauge); } .carte-pale { background: var(--pale); }
.carte-sombre { background: var(--carte-sombre); color: var(--sur-encre); }
.carte-sombre h2, .carte-sombre h3 { color: var(--lime); } .carte-sombre .doux { color: #c4c8bf; } .carte-sombre p { color: var(--sur-encre); }
.carte-sombre :focus-visible { outline-color: var(--lime); }
.carte h3 + p { margin-top: 8px; }
.illu { width: 88px; height: 88px; display: block; margin-bottom: 16px; }
.pastille { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--pale); color: var(--positif-profond); font: 600 .875rem/1.4 var(--texte); }
:root[data-theme="dark"] .pastille { color: #cdffad; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pastille { color: #cdffad; } }

/* Accueil : bande sauge, titre, carte du code. */
.heros { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.3fr .7fr; }
.heros .faits { grid-column: 1 / -1; margin-top: 8px; }
.heros .lead { margin-top: 20px; }
.heros .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.carte-code { background: var(--canvas); border-radius: var(--r-xl); padding: 28px; border: 1px solid var(--encre); position: relative; }
.carte-code .intitule { display: block; font: 600 .875rem/1.4 var(--texte); color: var(--muet); margin: 0 0 18px; }
.carte-code .code { display: block; font: 800 clamp(2.5rem, 2rem + 2.4vw, 3.5rem)/1 var(--display); letter-spacing: .06em; color: var(--profond); margin: 0 0 6px; }
.carte-code .lignes div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--filet); font-size: 1rem; color: var(--corps); }
.carte-code .lignes b { font-weight: 600; text-align: right; color: var(--encre); white-space: nowrap; margin-left: auto; }
.carte-code .controles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.carte-code > p { margin-top: 14px; font-size: .875rem; color: var(--muet); max-width: none; }
.faits { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.faits li { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
@media (max-width: 900px) { .heros { grid-template-columns: minmax(0, 1fr); gap: 28px; } .heros h1 { font-size: clamp(2rem, 8.2vw, 3rem); } .heros h1 br { display: none; } p { max-width: none; } }

/* Chiffres qui comptent. */
.chiffres { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.chiffres .carte b { display: block; margin-top: 14px; font: 800 clamp(2.2rem, 1.8rem + 1.6vw, 3rem)/1 var(--display); color: var(--profond); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chiffres .carte span { display: block; margin-top: 8px; color: var(--corps); }
.carte-sombre b, .chiffres .carte-sombre b { color: var(--lime); }
.chiffres .carte-sombre span { color: #c4c8bf; }

/* Table des conditions : rangées à filet, pas de bordure verticale. */
.conditions { width: 100%; border-collapse: collapse; margin-top: 8px; }
.conditions caption { text-align: left; font-size: .875rem; color: var(--muet); padding: 0 0 14px; }
.conditions th, .conditions td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-top: 1px solid var(--filet); font-weight: 400; color: var(--corps); }
.conditions thead th { border-top: 0; font: 600 .875rem/1.4 var(--texte); color: var(--muet); padding-bottom: 10px; }
.conditions tbody th { font-weight: 600; width: 22%; color: var(--encre); }
.conditions .pour-vous { color: var(--profond); font-weight: 500; }
@media (max-width: 760px) {
  .conditions thead { display: none; }
  .conditions caption { display: block; width: auto; }
  .conditions, .conditions tbody, .conditions tr, .conditions tbody th, .conditions td { display: block; width: auto; }
  .conditions tr { border-top: 1px solid var(--filet); padding: 12px 0; } .conditions th, .conditions td { border: 0; padding: 6px 0; }
  .conditions td::before { content: attr(data-label); display: block; font-size: .875rem; font-weight: 600; color: var(--muet); margin-bottom: 2px; }
}
.defilement { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Étapes : quatre cartes avec vecteur, ordre réel. */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: etape; }
.etapes li { margin: 0; counter-increment: etape; }
.etapes .carte { height: 100%; }
.etapes h3::before { content: counter(etape) ". "; color: var(--muet); font-weight: 600; }

/* Vos dates : carte sombre, texte lime, une saisie. */
.vos-dates { margin-top: 24px; display: grid; gap: 28px; grid-template-columns: 1fr 1fr; align-items: start; }
.vos-dates .saisie { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 20px; }
.vos-dates label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; color: var(--sur-encre); }
.vos-dates input { min-height: 48px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--sur-encre); background: #ffffff; color: #0e0f0c; font: inherit; color-scheme: light; }
.resultats-dates { margin: 24px 0 0; display: grid; gap: 14px; }
.resultats-dates[hidden] { display: none; }
.resultats-dates div { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid #2d322a; }
.resultats-dates dt { font-size: .875rem; color: #c4c8bf; } .resultats-dates dd { margin: 0; font: 800 1.35rem/1.2 var(--display); color: var(--lime); }
.erreur-dates { margin-top: 12px; color: #ffd11a; font-weight: 600; } .erreur-dates[hidden] { display: none; }
@media (max-width: 900px) { .vos-dates { grid-template-columns: 1fr; } }

/* Québec : carte sauge + carte sombre avec silhouette. */
.quebec { display: grid; gap: 20px; grid-template-columns: 1.1fr .9fr; }
.quebec .carte-sombre { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.quebec .carte-sombre .illu { width: 100%; height: auto; max-width: 220px; margin: 0 auto; }
.quebec dl { margin: 0; display: grid; gap: 12px; }
.quebec dt { font-size: .875rem; color: #c4c8bf; } .quebec dd { margin: 0; font: 800 1.5rem/1.1 var(--display); color: var(--lime); }
@media (max-width: 900px) { .quebec { grid-template-columns: 1fr; } .quebec .carte-sombre { grid-template-columns: 1fr; } }

/* Deux colonnes de texte (vocabulaire, avis). */
.deux-colonnes { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 900px) { .deux-colonnes { grid-template-columns: 1fr; gap: 24px; } }
.avis-trois { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.avis-trois .carte { padding: 20px 24px; } .avis-trois p { max-width: none; color: var(--corps); }

/* Bibliothèque : cartes blanches sur sauge. */
.programme { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.programme li { margin: 0; }
.programme .carte { height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; }
.programme .carte .illu { width: 64px; height: 64px; margin: 0; }
.programme .titre a { text-decoration: none; color: var(--encre); font: 600 1.125rem/1.3 var(--texte); }
.programme .titre a:hover { text-decoration: underline; }
.programme .note { font-size: 1rem; color: var(--corps); }
.programme .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .875rem; color: var(--muet); }
.programme .meta .duree { margin-left: auto; font-variant-numeric: tabular-nums; }

/* FAQ : questions en gras, réponses en texte courant, deux colonnes larges. */
.faq { columns: 2; column-gap: 48px; }
.colonne-lecture .faq { columns: 1; }
.colonne-lecture #faq { margin-top: 40px; }
.carte-auteur, .a-lire { margin-top: 32px; }
.pied .marque-pied nav { display: grid; gap: 8px; }
.entete-page, .en-tete-article .heros { margin-top: 24px; }
.en-tete-article .flotte { max-width: 260px; justify-self: center; }
.en-tete-article .flotte .illu { width: 100%; height: auto; margin: 0; }
.faq p { break-inside: avoid; max-width: none; margin: 0 0 18px; color: var(--corps); }
.faq .question { display: block; color: var(--encre); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 900px) { .faq { columns: 1; } }

/* Fin : bande sombre. */
.fin .enonce { font-size: clamp(1.125rem, 1rem + .6vw, 1.25rem); line-height: 1.45; max-width: 48ch; margin-top: 16px; color: var(--sur-encre); }
.fin .deux-colonnes { align-items: center; }
.fin .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Pied : encre, texte sauge. */
.pied { background: var(--carte-sombre); color: var(--sur-encre); padding: var(--bande) 0 32px; font-size: 1rem; }
.pied a { color: inherit; }
.pied .haut-pied { display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr; align-items: start; }
.pied .notes { display: grid; gap: 14px; line-height: 1.5; color: #c4c8bf; }
.pied .notes p { max-width: 62ch; } .pied .notes strong { color: var(--sur-encre); }
.pied .marque-pied { display: grid; gap: 16px; justify-items: start; }
.pied .marque-pied .marque { color: var(--lime); }
.pied .titre-pied { margin-top: 48px; }
.pied .titre-pied a { display: inline-block; font: 800 clamp(2.6rem, 2rem + 4vw, 5rem)/1 var(--display); letter-spacing: .06em; color: var(--lime); text-decoration: none; transition: transform .3s var(--ease); }
@media (hover: hover) { .pied .titre-pied a:hover { transform: translateX(6px); } }
.pied .titre-pied p { margin-top: 14px; max-width: 54ch; color: #c4c8bf; }
.pied .meta-pied { margin-top: 40px; display: grid; gap: 16px; font-size: .875rem; border-top: 1px solid #2d322a; padding-top: 24px; }
.pied .meta-pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied .credits { color: #a3a89e; max-width: none; line-height: 1.5; }
@media (max-width: 760px) { .pied .haut-pied { grid-template-columns: 1fr; } }

/* Avis flottant, barre mobile, toast. */
.avis-flottant { position: relative; margin: 24px var(--marge) 0; background: var(--canvas); color: var(--encre); width: min(420px, calc(100% - 2 * var(--marge))); border-radius: var(--r-lg); box-shadow: 0 4px 18px rgba(14, 15, 12, .08), inset 0 0 0 1px var(--filet); }
.js .avis-flottant { position: fixed; left: var(--marge); bottom: 16px; z-index: 40; margin: 0; }
.avis-flottant summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 56px 8px 16px; font-weight: 600; }
.avis-flottant summary::-webkit-details-marker { display: none; }
.avis-flottant .point { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); flex: 0 0 auto; }
.avis-flottant .chevron { margin-left: auto; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 8px solid currentColor; transition: transform .24s var(--ease); }
.avis-flottant[open] .chevron { transform: rotate(180deg); }
.reduire-avis { position: absolute; right: 4px; top: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 22px; cursor: pointer; border-radius: 50%; }
.reduire-avis[hidden] { display: none; }
.panneau-avis { padding: 0 16px 16px; font-size: .875rem; line-height: 1.5; color: var(--corps); }
.js .panneau-avis { position: absolute; left: 0; right: 0; bottom: 100%; background: var(--canvas); padding: 16px; border-radius: var(--r-lg); box-shadow: 0 4px 18px rgba(14, 15, 12, .08), inset 0 0 0 1px var(--filet); margin-bottom: 8px; }
.panneau-avis p { max-width: none; }
.barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--carte-sombre); color: var(--sur-encre); padding: 8px var(--marge) max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: center; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.barre-mobile[hidden] { display: none; }
.barre-mobile .divulgation { grid-column: 1 / -1; font-size: .8125rem; color: #c4c8bf; max-width: none; line-height: 1.3; }
.copie-mobile { background: transparent; border: 0; color: inherit; text-align: left; padding: 2px 0; display: grid; font: inherit; cursor: pointer; }
.copie-mobile span { font-size: .875rem; color: #c4c8bf; }
.copie-mobile strong { font: 800 1.25rem/1.1 var(--display); letter-spacing: .06em; color: var(--lime); }
.barre-mobile .bouton { min-height: 44px; }
.avec-barre-mobile .avis-flottant { transform: translateY(calc(-100px - env(safe-area-inset-bottom, 0px))); }
.avec-barre-mobile .toast { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--encre); color: var(--canvas); padding: 12px 18px; border-radius: var(--r-pill); display: flex; gap: 10px; align-items: center; font-size: .875rem; }
.toast[hidden] { display: none; }
.toast img { filter: invert(1); } :root[data-theme="dark"] .toast img { filter: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast img { filter: none; } }

/* Articles : bande sauge d'ouverture, colonne de lecture, notes collantes. */
.en-tete-article { padding-block: clamp(24px, 4vw, 56px); }
.en-tete-article h1 { font-size: clamp(1.5rem, 1rem + 2.4vw, 3rem); max-width: none; }
@media (max-width: 760px) { .en-tete-article h1 { font-size: clamp(1.5rem, 6.2vw, 1.75rem); } }
@media (min-width: 901px) { .en-tete-article .heros { grid-template-columns: 1.4fr .6fr; } }
.en-tete-article .signature { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--corps); margin-top: 20px; max-width: none; }
.en-tete-article .signature img { width: 44px; height: 44px; border-radius: 50%; }
.en-tete-article .meta-article { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; color: var(--corps); margin-top: 10px; max-width: none; }
.en-tete-article .intro-article { font-size: clamp(1.125rem, 1rem + .5vw, 1.25rem); line-height: 1.5; color: var(--corps); max-width: 60ch; margin-top: 20px; }
.en-tete-article .carte-code { margin-top: 28px; max-width: 680px; }
.en-tete-article .avis-article { font-size: .875rem; color: var(--muet); max-width: 60ch; margin-top: 14px; }
.article-corps { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.colonne-notes { order: 2; }
.article-corps { padding-block: clamp(32px, 5vw, 64px); }
.colonne-notes { position: sticky; top: calc(var(--hauteur-entete) + 16px); display: grid; gap: 16px; }
.resume { background: var(--pale); border-radius: var(--r-xl); padding: 20px 24px; }
.resume h2 { font: 600 1.0625rem/1.3 var(--texte); color: var(--encre); margin-bottom: 10px; }
.resume ul { margin: 0; padding-left: 1.1em; font-size: 1rem; color: var(--corps); }
.sommaire { background: var(--sauge); border-radius: var(--r-xl); padding: 16px 24px; }
.sommaire summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; list-style: none; }
.sommaire summary::-webkit-details-marker { display: none; }
.sommaire ol { margin: 10px 0 0; padding-left: 1.2em; font-size: 1rem; line-height: 1.45; }
.sommaire a { color: var(--corps); }
@media (min-width: 961px) { .colonne-lecture { max-width: 66ch; } }
.figure { margin: 0 0 32px; }
.figure img { width: 100%; height: auto; border-radius: var(--r-xl); }
.figure figcaption { font-size: .875rem; color: var(--muet); margin-top: 10px; }
.corps-article section { margin-top: clamp(32px, 4vw, 48px); } .corps-article section:first-child { margin-top: 0; }
.corps-article h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); margin-bottom: 14px; }
.corps-article p { color: var(--corps); } .corps-article li { color: var(--corps); }
.corps-article blockquote { margin: 20px 0; padding: 20px 24px; background: var(--sauge); border-radius: var(--r-lg); }
.corps-article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 1rem; }
.corps-article caption { text-align: left; color: var(--muet); padding-bottom: 8px; font-size: .875rem; }
.corps-article th, .corps-article td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--filet); font-weight: 400; }
.corps-article thead th { border-top: 0; font-size: .875rem; font-weight: 600; color: var(--muet); }
.corps-article tbody th { font-weight: 600; }
@media (max-width: 760px) {
  .corps-article thead { display: none; }
  .corps-article table, .corps-article tbody, .corps-article tr, .corps-article th, .corps-article td { display: block; }
  .corps-article tr { border-top: 1px solid var(--filet); padding: 10px 0; } .corps-article th, .corps-article td { border: 0; padding: 4px 0; }
  .corps-article td::before { content: attr(data-label); display: block; font-weight: 600; font-size: .875rem; color: var(--muet); }
}
.encart-parrainage { background: var(--carte-sombre); color: var(--sur-encre); border-radius: var(--r-xl); padding: 28px; margin: 32px 0; }
.encart-parrainage .intitule { display: block; font: 600 .875rem/1.4 var(--texte); color: #c4c8bf; margin-bottom: 18px; }
.encart-parrainage .code { display: block; font: 800 2.25rem/1 var(--display); letter-spacing: .06em; color: var(--lime); margin: 0 0 6px; }
.encart-parrainage .controles { display: flex; gap: 10px; flex-wrap: wrap; }
.encart-parrainage > p { margin-top: 16px; font-size: .875rem; color: #c4c8bf; max-width: 60ch; }
.conclusion { background: var(--pale); border-radius: var(--r-xl); padding: 24px; }
.conclusion h2 { font: 600 1.125rem/1.3 var(--texte); color: var(--encre); margin-bottom: 10px; }
.sources ul { font-size: 1rem; }
.carte-auteur { display: flex; gap: 20px; align-items: flex-start; background: var(--sauge); border-radius: var(--r-xl); padding: 24px; }
.carte-auteur img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; }
.carte-auteur h2 { font: 600 1.125rem/1.3 var(--texte); color: var(--encre); margin-bottom: 8px; }
.a-lire h2 { font: 600 1.125rem/1.3 var(--texte); color: var(--encre); margin-bottom: 10px; }
.a-lire ul { margin: 0; }
@media (max-width: 960px) { .article-corps { grid-template-columns: 1fr; } .colonne-notes { position: static; order: 0; } }

/* Pages : bibliothèque, outils, à propos. */
.entete-page h1 { max-width: 20ch; }
.entete-page .lead { margin-top: 16px; }
.outil { margin-top: 24px; background: var(--sauge); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 32px); }
.outil h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); margin-bottom: 12px; }
.outil p { color: var(--corps); }
.outil fieldset { border: 0; padding: 0; margin: 18px 0; min-width: 0; }
.outil legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.champs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.champs label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 4px; }
.champs input, .champs select { width: 100%; min-height: 48px; border: 1px solid var(--encre); border-radius: var(--r-md); padding: 10px 14px; font: inherit; background: var(--canvas); color: var(--encre); }
.champs .bouton { margin-top: 10px; }
.erreur-outil { margin-top: 12px; font-weight: 600; } .erreur-outil[hidden] { display: none; }
.resultats { background: var(--carte-sombre); color: var(--sur-encre); border-radius: var(--r-lg); padding: 18px 20px; margin-top: 16px; }
.resultats[hidden] { display: none; }
.resultats dl { margin: 0; display: grid; gap: 12px; }
.resultats dt { font-size: .875rem; color: #c4c8bf; } .resultats dd { margin: 2px 0 0; font-weight: 600; color: var(--lime); font-variant-numeric: tabular-nums; }
.resultats p { margin-top: 14px; max-width: none; font-size: .875rem; color: #c4c8bf; }
.methode { margin-top: 14px; font-size: .875rem; color: var(--corps); }
.methode summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--encre); }
.liste-verif label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; min-height: 44px; border-top: 1px solid var(--filet); }
.liste-verif input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--profond); flex: 0 0 auto; }
.auteur-apropos { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.auteur-apropos img { flex: 0 0 112px; border-radius: 50%; }
.auteur-apropos > div { flex: 1 1 260px; }
.bloc-contour { background: var(--sauge); border-radius: var(--r-xl); padding: 24px; }
.page-lecture { max-width: 70ch; padding-block: clamp(32px, 5vw, 64px); }
.page-lecture section { margin-top: 36px; } .page-lecture h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); margin-bottom: 12px; } .page-lecture p, .page-lecture li { color: var(--corps); }
.example-note { font-size: .875rem; color: var(--muet); }

/* Mouvement : arrivée au chargement, entrées au défilement, flottement des vecteurs. */
@media screen and (prefers-reduced-motion: no-preference) {
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: arrive .7s var(--ease-expo) forwards; animation-delay: var(--d, 80ms); }
  [data-load="60"] { --d: 60ms; } [data-load="140"] { --d: 140ms; } [data-load="160"] { --d: 160ms; } [data-load="200"] { --d: 200ms; } [data-load="240"] { --d: 240ms; } [data-load="260"] { --d: 260ms; } [data-load="320"] { --d: 320ms; }
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .8s var(--ease-expo); }
  .js [data-reveal].est-la { opacity: 1; transform: none; }
  .js [data-reveal-liste] > * { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .7s var(--ease-expo); }
  .js [data-reveal-liste].est-la > * { opacity: 1; transform: none; }
  .js [data-reveal-liste].est-la > :nth-child(2) { transition-delay: 70ms; } .js [data-reveal-liste].est-la > :nth-child(3) { transition-delay: 140ms; } .js [data-reveal-liste].est-la > :nth-child(4) { transition-delay: 210ms; } .js [data-reveal-liste].est-la > :nth-child(n+5) { transition-delay: 280ms; }
  .flotte { animation: flotte 6s ease-in-out infinite; }
  .resultats-dates:not([hidden]) div { animation: arrive .5s var(--ease-expo) both; } .resultats-dates:not([hidden]) div:nth-child(2) { animation-delay: 80ms; } .resultats-dates:not([hidden]) div:nth-child(3) { animation-delay: 160ms; }
}
@keyframes arrive { to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media print { .entete, .avis-flottant, .barre-mobile, .toast { display: none !important; } }

/* Icônes Lucide (licence ISC), cercles lime, scène du haut de page. */
.ic { width: 20px; height: 20px; flex: 0 0 auto; }
.icone-cercle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: #0e0f0c; flex: 0 0 auto; }
.faits li .icone-cercle { width: 36px; height: 36px; margin-top: -4px; }
.faits li .icone-cercle .ic { width: 18px; height: 18px; }
.entete-carte { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.entete-carte h3 { margin: 0; }
.scene { position: relative; }
.scene .flottant { position: absolute; width: 96px; height: 96px; margin: 0; filter: drop-shadow(0 10px 18px rgba(14, 15, 12, .12)); }
.scene .flottant.pieces { right: -44px; bottom: -30px; }
.scene .flottant.calendrier { right: -28px; top: -40px; width: 84px; height: 84px; }
.scene .flottant.coche { left: -30px; top: -30px; width: 60px; height: 60px; }
.scene::before { content: ""; position: absolute; inset: -22px -26px -22px 48px; background: var(--pale); border-radius: 44px; z-index: -1; transform: rotate(-2deg); }
@media (max-width: 900px) { .scene .flottant { display: none; } .scene::before { display: none; } }
@media screen and (prefers-reduced-motion: no-preference) {
  .scene .flottant.pieces { animation: flotte 7s ease-in-out infinite; }
  .scene .flottant.calendrier { animation: flotte 5.5s ease-in-out .8s infinite; }
  .scene .flottant.coche { animation: flotte 6.2s ease-in-out 1.6s infinite; }
}
.programme .meta .ic { width: 16px; height: 16px; }
.programme .meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta-article span, .meta-article a { display: inline-flex; align-items: center; gap: 6px; }
.chiffres .carte span.icone-cercle { display: inline-grid; width: 44px; height: 44px; margin: 0; color: #0e0f0c; }
.chiffres .carte span.icone-cercle .ic { width: 22px; height: 22px; }
.programme .carte { position: relative; }
.programme .fleche { position: absolute; right: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--sauge); color: var(--encre); display: grid; place-items: center; transition: background-color .18s ease, transform .3s var(--ease); }
.programme .fleche .ic { width: 18px; height: 18px; }
@media (hover: hover) { .programme .carte:hover .fleche { background: var(--lime); color: #0e0f0c; transform: translate(2px, -2px); } }
.programme .titre a::after { content: ""; position: absolute; inset: 0; }
.pied .haut { display: inline-flex; align-items: center; gap: 6px; }

/* Le code lui-même se copie d'un clic. */
.code-bouton { background: none; border: 0; padding: 0 0 2px; margin: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px; border-radius: 10px; position: relative; }
.code-bouton .code-texte { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 4px; text-underline-offset: 8px; transition: text-decoration-color .18s ease; }
@media (hover: hover) { .code-bouton:hover .code-texte { text-decoration-color: var(--lime); } }
.code-bouton:active .code-texte { transform: scale(.98); display: inline-block; }
.code-bouton .etat-copie { font: 600 .875rem/1 var(--texte); color: #0e0f0c; background: var(--lime); border-radius: var(--r-pill); padding: 6px 12px; letter-spacing: 0; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .3s var(--ease); pointer-events: none; }
.code-bouton.copie .etat-copie { opacity: 1; transform: none; }
.carte-code .code-bouton { display: flex; }
