@font-face {
  font-family: Sora;
  src: url("/sora.woff2") format("woff2"), url("/sora.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

/* Tokens couleur NeoVia v0.3.1 (DA, validés par Ali le 20/11/2026), noms de DESIGN.md. Copie complète : /tokens.css (non chargée).
   Les cadres TCG par rareté (--tcg-rarete-*) ne sont pas branchés ici : lot TCG séparé (fichiers tcg de l’assistant site web).
   Charbon profond #333548 (dérivé provisoire) = seul texte autorisé sur Lavande. Menthe : fonds et accents seulement, jamais en texte sur fond clair.
   Sarcelle : liens, texte d’accent et bouton plein Discord en clair. Commentaires hors du bloc : tests/couleurs.test.mjs lit les déclarations. */
:root {
  --nv-papier: #F5F3F8;
  --nv-nuage: #EAE6F1;
  --nv-encre: #28262E;
  --nv-gris-mauve: #655D70;
  --nv-lavande-source: #BDB0E0;
  --nv-violet: #635080;
  --nv-violet-survol: #54446D;
  --nv-violet-presse: #463A5C;
  --nv-lavande: #C3B1E1;
  --nv-charbon: #4A4E69;
  --nv-blanc: #FFFFFF;
  --nv-surface-twitch: #F7F5FA;
  --nv-gris-twitch: #676B80;
  --nv-charbon-profond: #333548;
  --nv-menthe: #7DDCC3;
  --nv-sarcelle: #18685E;
  --stream-surface-lavande: var(--nv-lavande);
  --stream-text-on-lavande: var(--nv-charbon-profond);
  color-scheme: light;
  --ink: var(--nv-encre);
  --muted: var(--nv-gris-mauve);
  --paper: var(--nv-papier);
  --panel: var(--nv-nuage);
  --lavender: var(--nv-lavande-source);
  --accent: var(--nv-violet);
  --action: var(--nv-violet);
  --action-hover: var(--nv-violet-survol);
  --control: #877694;
  --white: var(--nv-blanc);
  font-family: Sora, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 64px, 1320px); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 12px; background: var(--white); z-index: 1; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.07em; text-decoration: none; }
.wordmark img { display: block; flex: none; }
.wordmark-lettering { width: auto; height: 26px; }
.footer .wordmark-lettering { height: 22px; }
.header nav { display: flex; gap: clamp(12px, 3vw, 40px); align-items: center; }
.header nav :is(a, button) { display: inline-flex; min-height: 44px; align-items: center; font-size: .88rem; font-weight: 600; text-decoration: none; }
.header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.header nav .header-account { padding: 0 14px; border: 0; border-radius: 100px; background: var(--panel); color: var(--ink); white-space: nowrap; }
.header nav button.header-account { font-family: inherit; background: var(--ink); color: var(--paper); cursor: pointer; }
.header nav button.header-account:hover { background: var(--accent); }
.admin-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 10px; border: 1px solid #6f5b8b; border-radius: 8px; background: #ded2ef; color: #473258; font-size: .75rem; font-weight: 700; line-height: 1.3; }
.header nav .header-admin { min-height: 44px; }
.admin-home-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; font-size: .8rem; font-weight: 600; text-underline-offset: 4px; }
.account-admin-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 1px solid #9985b0; border-radius: 14px; padding: 18px; margin: 12px 0 22px; text-decoration: none; font-size: .9rem; font-weight: 600; }
.account-admin-link:hover { background: #ded2ef; }
.account-access { margin-block: 20px; padding: 20px; border: 1px solid #9985b0; border-radius: 14px; background: #f5f1fb; }
.account-access p { max-width: 70ch; font-size: .9rem; line-height: 1.65; }
@media (max-width: 600px) { .header { flex-wrap: wrap; padding-block: 14px; } .header nav { flex-wrap: wrap; gap: 8px 14px; } }

.hero {
  background: radial-gradient(ellipse at 74% 10%, #f9f7fc 0%, transparent 57%), #eae6f1;
  border-radius: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, .8fr);
  align-items: center;
  gap: clamp(30px, 4vw, 64px);
  text-align: left;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(34px, 5vw, 66px);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--accent); font-size: .78rem; font-weight: 700; }
.eyebrow span { background: var(--accent); width: 7px; height: 7px; border-radius: 50%; }
h1 { margin: 24px 0 0; font-size: clamp(2.25rem, 6.3vw, 6rem); line-height: 1.02; letter-spacing: -.084em; font-weight: 800; text-wrap: balance; }
h1 em { color: var(--accent); font-style: normal; }
.lede { color: var(--muted); max-width: 520px; margin: 24px auto 0; line-height: 1.65; text-wrap: pretty; }
.hero h1 { margin-top: 24px; font-size: clamp(2.65rem, 4.6vw, 4.5rem); line-height: 1.08; letter-spacing: -.065em; }
.hero .lede { margin: 24px 0 0; max-width: 540px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; border-radius: 100px; padding: 12px 20px; border: 0; background: var(--action); color: var(--nv-papier); font: inherit; font-size: .88rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--action-hover); }
.button:active:not(.button-outline) { background: var(--nv-violet-presse); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero .button { margin-top: 0; }
.button-outline { background: transparent; color: var(--nv-violet); border: 2px solid var(--nv-violet); }
/* Bouton secondaire (décision d’Ali, 20/11) : contour violet 2 px, survol #54446D. */
.button-outline:hover { background: transparent; color: var(--nv-violet-survol); border-color: var(--nv-violet-survol); }
.hero-note { font-size: .76rem; color: var(--muted); line-height: 1.6; margin: 17px 0 0; }
.hero-launcher { position: relative; z-index: 1; min-width: 0; background: var(--ui-action-soft); color: var(--ui-on-action-soft); padding: clamp(20px, 2.2vw, 28px); border: 1px solid transparent; border-radius: 24px; box-shadow: 0 20px 36px -22px #32263e60; }
.launcher-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: .9rem; line-height: 1.5; font-weight: 700; }
.launcher-heading small { display: block; color: var(--ui-on-action-soft); font-size: .8rem; font-weight: 400; margin-top: 3px; }
.launcher-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: var(--ui-bg); border-radius: 13px; } /* --ui-bg : seule surface où l'O traversé (clair ou sombre) peut se poser */
.launcher-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--ui-border-field); min-height: 86px; text-decoration: none; border-radius: 0; }
.launcher-label { font-weight: 700; font-size: 1.05rem; letter-spacing: -.025em; }
.launcher-label small { display: block; font-weight: 400; font-size: .8rem; letter-spacing: 0; color: var(--ui-on-action-soft); line-height: 1.5; margin-top: 4px; }
.launcher-row > span:last-child { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--launcher-accent); border-radius: 50%; font-size: 1.05rem; }
/* Panneau Lavande source en clair : textes et flèches en Encre, couleur produit sur le cercle de la flèche seulement (élément non textuel, au moins 3:1). */
.launcher-discord { --launcher-accent: var(--product-action); }
.launcher-tcg { --launcher-accent: var(--product-accent); }
.launcher-twitch { --launcher-accent: var(--product-action); }
.launcher-row:is(:hover, :focus-visible) .launcher-label { text-decoration: underline; text-underline-offset: 5px; }
.hero-launcher a:focus-visible { outline-color: var(--ui-focus); }
.hero-launcher > p { margin: 20px 0 0; color: var(--ui-on-action-soft); font-size: .8rem; }
.fil-ouverture {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: min(36%, 370px);
  height: auto;
  color: var(--lavender);
  pointer-events: none;
}
.hero-cta > span { display: inline-block; }

.tools { padding-top: clamp(46px, 6vw, 80px); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); line-height: 1.08; letter-spacing: -.065em; margin: 0; }
.section-heading p, #tools-status { color: var(--muted); margin: 0; line-height: 1.55; }
#tools-status:empty { display: none; }
#tools-retry { margin-top: 12px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool { --tile: #ece7f5; --badge: #d8cbed; background: var(--tile); border-radius: 22px; min-width: 0; padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; align-items: flex-start; }
.tool { border: 1px solid transparent; }
.tool:focus-within { border-color: currentColor; }
.tool-description { text-wrap: pretty; }
.tool[data-tool="discord"] { --tile: #e5efec; --badge: #c2e6db; }
.tool[data-tool="tcg"] { --tile: var(--product-rarete-bg); --badge: var(--tcg-rarete-legendaire-cadre-sombre); } /* tokens TCG : voile de rareté, tuile d'icône or doux et icône Encre, comme Discord (menthe) et Twitch (lavande) */
.tool-top { display: flex; width: 100%; justify-content: space-between; align-items: flex-start; }
.tool-illustration {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tile) 88%, var(--badge));
}
.tool-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--badge); color: var(--ink); }
.tool-index { font-size: .75rem; font-weight: 700; opacity: .76; }
.tool h3 { margin: 22px 0 8px; font-size: 1.6rem; letter-spacing: -.055em; }
.tool-description { margin: 0 0 18px; line-height: 1.6; font-size: .9rem; }
.tool-features { padding: 0; margin: 0 0 24px; list-style: none; display: grid; gap: 11px; font-size: .8125rem; line-height: 1.6; }
.tool-features li { padding-inline-start: 17px; position: relative; }
.tool-features li::before { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: currentColor; inset-inline-start: 0; top: .6em; opacity: .65; }
.tool-stage { padding: 8px 10px; margin: auto 0 14px; border: 1px solid #cec4df; color: #564564; border-radius: 8px; font-size: .75rem; line-height: 1.5; font-weight: 600; }
.tool[data-tool="discord"] .tool-stage { border-color: #9ec4b5; color: #31594d; }
.tool[data-tool="tcg"] .tool-stage { border-color: var(--product-accent); color: var(--product-accent); }
.tool-requires { margin: 0; font-size: .75rem; font-weight: 700; line-height: 1.6; }
.tool-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: .83rem; font-weight: 700; }
.tool-link { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tool[data-tool="tcg"] :focus-visible { outline-color: var(--product-accent); }

.creator-journey { margin-top: clamp(38px, 6vw, 76px); }
.journey-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 24px; margin-bottom: 18px; }
.journey-header h2 { margin-top: 10px; font-size: clamp(1.5rem, 3vw, 2.35rem); }
.journey-link { gap: 7px; }
.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #d8cfe2;
  border-radius: 18px;
}
.journey-steps li { display: flex; align-items: start; gap: 11px; padding: clamp(14px, 2.1vw, 25px); }
.journey-steps li + li { border-inline-start: 1px solid #d8cfe2; }
.journey-steps li > span { flex: none; padding: 5px 7px; border-radius: 7px; background: var(--panel); color: var(--accent); font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.journey-steps h3 { margin: 2px 0 5px; font-size: .92rem; letter-spacing: -.02em; }
.journey-steps p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.55; }

.account { margin-top: clamp(44px, 6vw, 78px); }
.account-panel { background: var(--panel); padding: clamp(22px, 5vw, 62px); border-radius: 28px; }
.account h2 { margin-top: 15px; }
.account-intro { max-width: 670px; color: var(--muted); line-height: 1.65; margin: 13px 0 19px; }
.account-status, .account-note { color: var(--muted); font-size: .84rem; line-height: 1.55; }
.account-status:empty { display: none; }
.account-welcome { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; background: #f5f3f8; border: 1px solid #dbd3e4; padding: 22px; border-radius: 18px; margin-top: 24px; }
.account-welcome > div { flex: 1 1 310px; }
.account-welcome h3 { margin: 0 0 8px; }
.account-welcome p { margin: 0; }
.account-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #ccc1d9; border-radius: 16px; overflow: hidden; margin: 12px 0 32px; }
.account-progress-step { display: flex; align-items: start; gap: 12px; padding: 18px; }
.account-progress-step + .account-progress-step { border-inline-start: 1px solid #ccc1d9; }
.account-progress-number { display: grid; place-items: center; flex: none; width: 28px; height: 28px; background: #d8cbed; border-radius: 50%; color: #4e395f; font-size: .7rem; font-weight: 700; }
.account-progress strong { font-size: .8rem; }
.account-progress p { margin: 5px 0 0; font-size: .8125rem; }
.auth-dialog {
  --auth-surface: #34313c;
  --auth-hover: #413c4b;
  --auth-border: #82788e;
  --auth-muted: #d5ccdf;
  color-scheme: dark;
  width: min(100% - 24px, 460px);
  max-width: none;
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid #534b60;
  border-radius: 26px;
  box-shadow: 0 24px 78px #16121e66;
}
.auth-dialog::backdrop { background: #19151fc7; }
.auth-dialog :focus-visible { outline-color: var(--lavender); }
.auth-dialog-inner { padding: 12px 0 0; }
.auth-dialog-controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
}
.auth-icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--auth-surface);
  color: var(--paper);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.auth-icon-button:last-child { margin-inline-start: auto; }
.auth-icon-button:hover { background: var(--auth-hover); }
.auth-icon-button svg { width: 20px; height: 20px; }
.auth-title {
  padding-inline: 20px;
  margin: 16px 0 24px;
  font-size: clamp(1.65rem, 5.8vw, 2.4rem);
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}
.auth-dialog-body { padding: 0 clamp(18px, 7vw, 44px) 24px; }
.auth-methods { display: grid; gap: 10px; }
.auth-method {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 9px 44px;
  border: 1px solid var(--auth-border);
  border-radius: 100px;
  background: var(--auth-surface);
  color: var(--paper);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.auth-method:hover { background: var(--auth-hover); border-color: var(--lavender); }
.auth-method:disabled, .auth-method[aria-disabled="true"] { color: var(--auth-muted); cursor: default; }
.auth-method-icon {
  position: absolute;
  inset-inline-start: 14px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
}
/* Inscription : Google en premier et plus visible, l’e-mail après « ou » (audit UX 20/11). */
.auth-method-google { min-height: 52px; background: var(--white); border-color: var(--white); color: var(--ink); font-size: .95rem; }
.auth-method-google:hover { background: var(--panel); border-color: var(--panel); }
.auth-method-google:disabled { background: var(--auth-surface); border-color: var(--auth-border); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--auth-muted); font-size: .8rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid rgb(255 255 255 / .18); }
.auth-password-rule { transition: color var(--ui-fast, 140ms) ease-out; }
.auth-dialog .auth-password-rule.is-ok { color: #9fd8b8; }
.auth-dialog .auth-submit-note { text-align: center; }
.auth-dialog .account-note, .auth-dialog .account-status, .auth-dialog-status { color: var(--auth-muted); }
.auth-dialog-status { margin: 10px 0 0; font-size: .84rem; line-height: 1.55; }
.auth-dialog-status:empty { display: none; }
.auth-dialog-body > .auth-dialog-status { margin: 0 0 14px; }
.auth-dialog-footer {
  padding: 12px 18px;
  border-top: 1px solid #534b60;
  color: var(--auth-muted);
  text-align: center;
  font-size: .84rem;
  line-height: 1.5;
}
.auth-dialog-footer p { margin: 0; }
.auth-dialog .text-button { color: var(--lavender); }
.auth-form { display: grid; gap: 7px; }
.auth-profile { display: grid; min-inline-size: 0; margin: 0; padding: 0; border: 0; gap: 7px; }
.auth-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
.auth-field { display: grid; gap: 7px; }
.auth-profile + label, .auth-profile:has(#auth-password-confirmation) { margin-top: 6px; }
#auth-code { font-variant-numeric: tabular-nums; letter-spacing: .2em; }
#edit-signup { justify-content: center; text-align: center; }
.auth-form label { font-size: .85rem; font-weight: 700; }
.auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--auth-border);
  border-radius: 11px;
  padding: 10px 12px;
  background: var(--auth-surface);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
}
.auth-form input + label { margin-top: 6px; }
.auth-password-control { position: relative; }
.auth-password-control input { padding-inline-end: 88px; min-height: 48px; }
.auth-password-control button { position: absolute; inset-inline-end: 4px; inset-block-start: 2px; min-height: 44px; border: 0; border-radius: 8px; padding-inline: 10px; background: transparent; color: var(--lavender); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.auth-password-control button:hover { background: var(--auth-hover); }
.auth-form .account-note, .auth-form .account-status { margin: 2px 0 0; }
.auth-dialog .auth-form .button { margin-top: 8px; background: var(--lavender); color: var(--ink); }
.auth-dialog .auth-form .button:hover { background: var(--panel); }
.auth-dialog .auth-form .button:disabled { background: var(--auth-hover); color: var(--auth-muted); cursor: wait; }
.account-session { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; border-top: 1px solid #d8cfe2; margin-top: 23px; }
.account-session p { font-weight: 700; overflow-wrap: anywhere; }
.account h3 { margin: 23px 0 12px; font-size: 1.1rem; letter-spacing: -.025em; }
.connection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.connection, .activation { min-width: 0; background: var(--paper); border-radius: 14px; padding: 14px 16px; overflow-wrap: anywhere; }
.connection strong { display: block; }
.activation-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.activation { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 22px; border: 1px solid #d8cfe2; }
.activation > div { width: 100%; }
.activation strong { font-size: 1.2rem; letter-spacing: -.04em; }
.activation-description { font-size: .8rem; line-height: 1.65; color: var(--muted); padding-block: 8px 10px; }
.activation-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-top: 10px; }
.activation[data-tool="discord"] { border-top: 4px solid #8cc9b6; }
.activation[data-tool="stream"] { border-top: 4px solid var(--lavender); }
.activation[data-tool="tcg"] { border-top: 4px solid #bd945f; }
.connection p, .activation p { margin: 4px 0 0; }
.activation-badge { color: #245e47; background: #e2efe8; border-radius: 100px; padding: 7px 10px; font-size: .78rem; font-weight: 700; }
.button:disabled { background: #e0dbe7; color: #655d70; cursor: default; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--accent); font: inherit; font-size: .83rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

:is(.button, .header-account, .auth-method, .auth-icon-button):not(:disabled):active {
  filter: brightness(.9);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  :is(.button, .header-account, .auth-method, .auth-icon-button):not(:disabled) {
    transition: transform 150ms ease-out, background-color 180ms ease-out;
  }
  :is(.button, .header-account, .auth-method, .auth-icon-button):not(:disabled):active {
    transform: scale(.97);
    transition-duration: 80ms;
  }
  .hero-cta > span { transition: transform 180ms ease-out; }
  .launcher-row > span:last-child { transition: transform 180ms ease-out; }
  .launcher-row:is(:hover, :focus-visible) > span:last-child { transform: translate(2px, -2px); }
  .hero-cta:is(:hover, :focus-visible) > span { transform: translateY(3px); }
  .auth-dialog[open] { animation: dialog-arrive 240ms cubic-bezier(.2, .8, .2, 1) both; }
  .fil-ouverture path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: fil-ouverture-trace 560ms cubic-bezier(0.3, 0, 0.2, 1) both;
  }
}

@keyframes dialog-arrive {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes fil-ouverture-trace {
  to { stroke-dashoffset: 0; }
}

.agency { margin-top: clamp(45px, 7vw, 90px); }
.agency-inner { border-top: 1px solid #d8cfe2; padding: clamp(35px, 5vw, 70px) 0; max-width: 960px; }
.agency h2 { margin-top: 17px; max-width: 720px; text-wrap: balance; }
.agency-inner > p:last-child { max-width: 625px; color: var(--muted); line-height: 1.7; margin: 18px 0 0; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 25px; border-top: 1px solid #d8cfe2; }
.footer p { font-size: .82rem; color: var(--muted); margin: 0; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .hero { border-radius: 25px; grid-template-columns: 1fr; padding: 30px 24px; gap: 30px; }
  .hero h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); }
  .hero-launcher { padding: 22px; }
  .launcher-heading { margin-bottom: 14px; }
  .launcher-row { min-height: 72px; }
  .hero-launcher > p { margin-top: 14px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-illustration { max-height: 180px; object-fit: contain; }
  .activation-list, .account-progress { grid-template-columns: 1fr; }
  .account-progress-step + .account-progress-step { border-inline-start: 0; border-top: 1px solid #ccc1d9; }
  .journey-steps { grid-template-columns: 1fr; }
  .journey-steps li + li { border-inline-start: 0; border-top: 1px solid #d8cfe2; }
  .fil-ouverture { width: min(68%, 280px); }
}
@media (max-width: 420px) {
  .header { min-height: 70px; gap: 4px; flex-wrap: wrap; padding-block: 10px; }
  .header nav { gap: 10px; width: 100%; justify-content: space-between; }
  .header nav :is(a, button) { font-size: .75rem; }
  .header nav .header-account { padding-inline: 8px; }
  .wordmark { font-size: 19px; gap: 6px; }
  .wordmark-symbol { width: 28px; height: 28px; }
  .wordmark-lettering { height: 22px; }
  .desktop-break { display: none; }
  .connection-grid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -.045em; line-height: 1.12; }
  .hero .lede { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero .eyebrow { font-size: .75rem; }
  .hero h1 { font-size: clamp(2rem, 9.8vw, 2.6rem); }
  .launcher-heading { font-size: .82rem; }
  .account-welcome { padding: 18px; }
  .auth-names { grid-template-columns: 1fr; }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(245px, .8fr); gap: 24px; padding: 34px; }
  .hero h1 { font-size: clamp(2.4rem, 4.4vw, 3rem); }
  .hero .eyebrow { font-size: .75rem; }
  .tool { padding: 22px; }
  .tool-grid { gap: 12px; }
  .activation-list { grid-template-columns: 1fr; }
  .account-progress { grid-template-columns: 1fr; }
  .account-progress-step + .account-progress-step { border-inline-start: 0; border-top: 1px solid #ccc1d9; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-illustration { max-height: 180px; object-fit: contain; }
}
/* Carte d’outil sans compte relié : « Relier … » devient l’action principale ; « Activer » revient une fois le compte relié. */
.activation-connect { justify-self: start; }
.activation .button.activation-later { display: none; }
