/* =========================================================
   Chateq — Direction A « Le chat chaleureux & malicieux »
   Tokens repris de untitled.pen (crème / ginger, Poppins/Nunito/Quicksand)
   ========================================================= */
:root {
  --bg: #FFF8F0;
  --surface: #FCEFE3;
  --surface-2: #FBF3EA;
  --border: #EAD9C7;
  --accent: #D96A2B;
  --accent-hover: #B5501C;
  /* Accent « texte » : contraste AA (≥ 4,5:1) sur fonds crème et sous texte blanc.
     --accent reste la couleur de marque pour les aplats décoratifs (mascotte, halos, pastilles). */
  --accent-strong: #AD4C1A;
  --accent-strong-hover: #8F3F14;
  --on-accent: #FFFFFF;
  --text: #2B2B2B;
  --text-soft: #5E5048;
  --ok: #2E7D5B;
  --info: #3F6F99;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 8px 24px rgba(176, 80, 28, 0.12);
  --shadow-lg: 0 18px 48px rgba(176, 80, 28, 0.16);
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="dark"] {
  --bg: #1E1813;
  --surface: #2A221B;
  --surface-2: #2F261E;
  --border: #3B3027;
  --accent: #F0935A;
  --accent-hover: #F4A974;
  --accent-strong: #F0935A;
  --accent-strong-hover: #F4A974;
  --on-accent: #1E1813;
  --text: #F5ECE2;
  --text-soft: #C4B5A6;
  --ok: #7FCBA0;
  --info: #79A8CF;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
/* Anti-FOUC : masque le corps tant que la traduction EN n'est pas appliquée
   (filet de sécurité côté JS lève l'attribut au pire après 1,2 s). */
html[data-i18n-pending] body { visibility: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
}
h1, h2, h3 { font-family: "Poppins", system-ui, sans-serif; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--accent-strong); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-pill);
  font-family: "Nunito", sans-serif; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary { background: var(--accent-strong); color: var(--on-accent); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--accent-strong-hover); transform: translateY(-2px) scale(1.02); }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); min-height: 44px; }
.logo__text { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 22px; color: var(--text); letter-spacing: -.3px; }
.logo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--text-soft); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--accent-strong); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  transition: transform .25s var(--ease);
}
.theme-toggle:hover { transform: rotate(12deg); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
/* Bascule de langue FR / EN */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 1px;
  height: 40px; padding: 0 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.lang-toggle__btn {
  appearance: none; -webkit-appearance: none; border: 0; background: none; cursor: pointer;
  font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .3px;
  color: var(--text-soft); padding: 6px 9px; line-height: 1;
  border-radius: var(--radius-pill);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-toggle__btn:hover { color: var(--accent-strong); }
.lang-toggle__btn.is-active { background: var(--accent-strong); color: var(--on-accent); }
.lang-toggle__sep { width: 1px; height: 15px; background: var(--border); }
/* Fix mobile : cibles tactiles fiables pour FR/EN (sinon le tap rate ou touche le bouton thème) */
.lang-toggle__btn, .theme-toggle, .burger { touch-action: manipulation; }
@media (max-width: 900px) {
  .header__actions { gap: 16px; }
  .lang-toggle { height: auto; gap: 2px; padding: 0 2px; }
  .lang-toggle__btn { padding: 0 12px; font-size: 14px; min-width: 44px; min-height: 44px; }
}
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px auto; transition: .25s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.eyebrow { font-family: "Quicksand", sans-serif; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; color: var(--text-soft); margin-bottom: 14px; }
.eyebrow--accent { color: var(--accent-strong); }
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 70% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; }
.hero__title { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -1.5px; margin-bottom: 18px; }
.hero__sub { font-size: 1.18rem; color: var(--text-soft); max-width: 540px; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__reassure { margin-top: 16px; color: var(--text-soft); font-size: .95rem; }
.hero__visual { position: relative; display: flex; justify-content: center; }
.mascot { width: min(360px, 80%); filter: drop-shadow(var(--shadow-lg)); }
.mascot__body { fill: var(--accent); }
.mascot__ear { fill: var(--accent-hover); }
.mascot__cheek { fill: color-mix(in srgb, var(--accent) 70%, #fff); opacity: .5; }
.mascot__eyes circle { fill: var(--bg); }
.mascot__nose { fill: var(--bg); }
.mascot__whiskers line { stroke: var(--accent-hover); stroke-width: 2; stroke-linecap: round; }
.mascot__shadow { fill: var(--accent); opacity: .12; }
.paw { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); opacity: .18; }
.paw::before, .paw::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); top: -8px; }
.paw::before { left: 2px; } .paw::after { right: 2px; }
.paw--1 { top: 8%; left: 6%; } .paw--2 { bottom: 14%; right: 4%; width: 18px; height: 18px; } .paw--3 { top: 40%; right: 12%; width: 14px; height: 14px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--surface); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.5px; }
.section__lead { color: var(--text-soft); font-size: 1.1rem; margin-top: 12px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.section--alt .card { background: var(--surface-2); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 16px; }
.card__title { font-size: 1.3rem; margin-bottom: 10px; }
.card__text { color: var(--text-soft); }
.card__tag { font-family: "Quicksand", sans-serif; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--accent-strong); margin-bottom: 10px; }
.card--pillar { padding: 32px; }

.values { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; padding: 0; margin: 36px 0 0; }
.values li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }

/* ---------- Prix ---------- */
.price { text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.section--alt .price { background: var(--surface-2); }
.price h3 { font-size: 1.1rem; margin-bottom: 10px; }
.price__from { font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--accent-strong); }
.note { text-align: center; color: var(--text-soft); font-size: .92rem; margin-top: 16px; }
.promise { max-width: 720px; margin: 40px auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px; }
.section--alt .promise { background: var(--bg); }
.promise__title { font-size: 1.25rem; margin-bottom: 16px; }
.promise__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.promise__list li { position: relative; padding-left: 30px; }
.promise__list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* ---------- Estimateur ---------- */
.estimator { max-width: 760px; margin: 44px auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.section--alt .estimator { background: var(--bg); }
.estimator__title { font-size: 1.4rem; margin-bottom: 20px; text-align: center; }
.estimator__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.estimator__options { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 20px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.estimator__options legend { padding: 0 8px; font-weight: 700; font-size: .9rem; color: var(--text-soft); }
.estimator__options label { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; cursor: pointer; }
.estimator__options input[type="checkbox"] { width: 22px; height: 22px; margin: 0; accent-color: var(--accent-strong); flex: none; }
.estimator__result { text-align: center; padding: 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 10%, transparent); margin-bottom: 8px; }
.estimator__label { display: block; font-size: .9rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 1px; font-family: "Quicksand", sans-serif; font-weight: 700; }
.estimator__amount { display: block; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 2rem; color: var(--accent-strong); margin-top: 6px; }
.estimator .btn { width: 100%; justify-content: center; margin-top: 12px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 100%;
}
.section--alt .field input, .section--alt .field select, .section--alt .field textarea { background: var(--surface-2); }
input[type="range"] { accent-color: var(--accent-strong); padding: 0; height: 44px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 640px; margin: 0 auto; }
.field--full, .form .btn, .form__status { grid-column: 1 / -1; }
.form .btn { justify-self: start; }
.form__status { font-weight: 700; color: var(--ok); min-height: 1.2em; }
.form__status.is-error { color: var(--accent-strong); }
.form__notice { grid-column: 1 / -1; color: var(--text-soft); font-size: .9rem; }
.form__notice a, .contact__direct a, .footer__contact a, .footer__bottom a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.form__notice a:hover, .contact__direct a:hover, .footer__contact a:hover, .footer__bottom a:hover { color: var(--accent-strong-hover); }
.contact__direct a { font-weight: 700; white-space: nowrap; }
.footer__contact { margin-top: 6px; }
.footer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
/* Piège à robots du formulaire : hors écran, jamais visible ni focusable */
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Banner ---------- */
.banner { background: color-mix(in srgb, var(--info) 12%, transparent); border: 1px solid color-mix(in srgb, var(--info) 35%, var(--border)); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 32px; color: var(--text); }

/* ---------- Process ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.section--alt .step { background: var(--surface-2); }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-strong); color: var(--on-accent); font-family: "Quicksand", sans-serif; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: .95rem; }

/* ---------- Tags ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0; margin: 0 0 28px; }
.tags li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 9px 18px; font-family: "Quicksand", sans-serif; font-weight: 700; }
.section--alt .tags li { background: var(--surface-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.section--alt .faq__item { background: var(--bg); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--text); }
.faq__sign { position: relative; width: 18px; height: 18px; flex: none; }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .25s var(--ease); }
.faq__sign::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__sign::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq__a p { padding: 0 22px 20px; color: var(--text-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer__brand .logo__text { font-size: 20px; }
.footer__brand p { color: var(--text-soft); margin-top: 4px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__nav a { color: var(--text-soft); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.footer__nav a:hover { color: var(--accent-strong); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-soft); font-size: .88rem; }

/* ---------- Pages secondaires (mentions légales, confidentialité, 404) ---------- */
.legal { min-height: 60vh; }
.legal .section__title { margin-bottom: 8px; }
.legal__updated { color: var(--text-soft); font-size: .92rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal p, .legal ul { color: var(--text-soft); margin: 0 0 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal strong { color: var(--text); }
.legal a:not(.btn) { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.legal a:not(.btn):hover { color: var(--accent-strong-hover); }
.legal--center { text-align: center; display: grid; align-content: center; }
.legal--center .btn { margin: 16px 0; }

/* ---------- Reveal animation ----------
   Masquage conditionné à la classe .js (posée par le script d'en-tête) : sans JavaScript,
   tout le contenu reste visible. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; transform: translateY(-120%); transition: transform .3s var(--ease); z-index: 90;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .burger { display: block; }
  .header__cta { display: none; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__visual { order: 1; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4, .steps, .estimator__grid, .estimator__options, .form { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 36px; }
  /* le header (logo + langues + thème + burger) doit tenir sur petit écran */
  .container { padding: 0 16px; }
  .header__inner { gap: 10px; }
  .header__actions { gap: 8px; }
}

/* ===================== PREMIUM / ANIMATIONS ===================== */

/* Barre de progression de défilement */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* Titre héro : dégradé chaud animé */
.hero__title {
  background: linear-gradient(100deg, var(--text) 0%, var(--accent) 52%, var(--accent-hover) 76%, var(--text) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-pan 9s ease-in-out infinite;
}

/* Fonds animés (blobs) du héro */
.hero__blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__inner { z-index: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(64px); }
.blob--a { width: 380px; height: 380px; background: var(--accent); top: -90px; right: -50px; opacity: .26; animation: drift 18s ease-in-out infinite; }
.blob--b { width: 300px; height: 300px; background: var(--info); bottom: -110px; left: -40px; opacity: .16; animation: drift 23s ease-in-out infinite reverse; }
.blob--c { width: 230px; height: 230px; background: var(--ok); top: 26%; left: 42%; opacity: .12; animation: drift 27s ease-in-out infinite; }

/* Mascotte vivante : flottement, queue qui remue, clignement */
.mascot { animation: float 6s ease-in-out infinite; }
.mascot__tail { stroke: var(--accent-hover); transform-box: fill-box; transform-origin: 4% 50%; animation: wag 3.2s ease-in-out infinite; }
.mascot__eyes { transform-box: fill-box; transform-origin: center; animation: blink 6.5s steps(1, end) infinite; }
.paw { animation: float 5.5s ease-in-out infinite; }
.paw--2 { animation-duration: 6.5s; }
.paw--3 { animation-duration: 7.5s; }

/* Boutons : reflet glissant (sheen) */
.btn { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn--primary:hover::after { left: 150%; }

/* Cartes : halo d'accent au survol */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 26px 60px -22px color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: 0; transition: opacity .3s var(--ease);
}
.card:hover::after { opacity: 1; }

/* Apparition au scroll : cascade dans les grilles */
.grid .reveal, .steps .reveal, .faq .reveal { transition-delay: calc(var(--i, 0) * 80ms); }
.reveal { will-change: opacity, transform; }

/* Pastilles de valeurs : pulsation douce */
.dot { animation: pulse 2.8s ease-in-out infinite; }

/* Keyframes */
@keyframes gradient-pan { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -22px) scale(1.08); } 66% { transform: translate(-22px, 26px) scale(.95); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes wag { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(11deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .75; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__title { color: var(--text); }
}
/* ===================== Tetris chat (mini-jeu de demo) =====================
   Bloc generique, identique sur les 4 themes. Tout passe par var(--...) du
   theme : suit automatiquement le mode clair / sombre. Les 7 couleurs des
   pieces (--tc-1..--tc-7), l'oeil (--tetcat-eye) et le halo (--tetcat-glow)
   sont definis PAR THEME (voir bloc palette en bas de chaque styles.css).
   ========================================================================== */
.tetcat { --tc-cell-radius: 26%; }

.tetcat__game {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin-top: 18px;
}

/* --- Plateau --- */
.tetcat__playfield { position: relative; width: min(252px, 72vw); flex: none; }
.tetcat__board {
  display: grid;
  grid-template-columns: repeat(var(--tc-cols, 10), 1fr);
  gap: 3px; padding: 8px; width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow);
  outline: none;
}
.tetcat__board:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow); }

/* --- Cellules (chaque bloc plein = une tete de chat) --- */
.tetcat__cell {
  position: relative; aspect-ratio: 1; border-radius: var(--tc-cell-radius);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 5%, transparent);
  transition: background-color .09s linear;
}
.tetcat__cell.tc-1 { --cell-color: var(--tc-1); }
.tetcat__cell.tc-2 { --cell-color: var(--tc-2); }
.tetcat__cell.tc-3 { --cell-color: var(--tc-3); }
.tetcat__cell.tc-4 { --cell-color: var(--tc-4); }
.tetcat__cell.tc-5 { --cell-color: var(--tc-5); }
.tetcat__cell.tc-6 { --cell-color: var(--tc-6); }
.tetcat__cell.tc-7 { --cell-color: var(--tc-7); }

.tetcat__cell.is-filled {
  background-color: var(--cell-color);
  /* deux yeux (espace negatif couleur fond) */
  background-image:
    radial-gradient(circle at 35% 56%, var(--tetcat-eye, var(--bg)) 0 13%, transparent 15%),
    radial-gradient(circle at 65% 56%, var(--tetcat-eye, var(--bg)) 0 13%, transparent 15%);
  box-shadow:
    inset 0 -22% 0 color-mix(in srgb, var(--cell-color) 80%, #000 20%),
    0 0 var(--tetcat-glow, 0px) color-mix(in srgb, var(--cell-color) 70%, transparent);
}
/* oreilles */
.tetcat__cell.is-filled::before {
  content: ""; position: absolute; left: 0; right: 0; top: -6%; height: 38%;
  background: color-mix(in srgb, var(--cell-color) 82%, #000 18%);
  clip-path: polygon(6% 100%, 25% 4%, 45% 100%, 55% 100%, 75% 4%, 94% 100%);
}
/* nez */
.tetcat__cell.is-filled::after {
  content: ""; position: absolute; left: 50%; top: 70%; width: 12%; height: 9%;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--cell-color) 64%, #000 36%);
  border-radius: 50%;
}
/* piece fantome (ou se posera la piece) */
.tetcat__cell.is-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 42%, transparent);
}
/* apercu "suivant" : blocs simples, sans frimousse (trop petit) */
.tetcat__cell--mini { border-radius: 24%; }
.tetcat__cell--mini.is-filled { background-image: none; box-shadow: inset 0 -22% 0 color-mix(in srgb, var(--cell-color) 80%, #000 20%); }
.tetcat__cell--mini.is-filled::before,
.tetcat__cell--mini.is-filled::after { display: none; }

/* --- Overlay (etats idle / pause / over) --- */
.tetcat__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  padding: 16px; border-radius: var(--radius, 14px);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.tetcat.is-playing .tetcat__overlay { display: none; }
.tetcat__msg { margin: 0; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.tetcat__msg--idle, .tetcat__msg--over, .tetcat__msg--paused { display: none; }
.tetcat.is-idle .tetcat__msg--idle { display: block; }
.tetcat.is-over .tetcat__msg--over { display: block; }
.tetcat.is-paused .tetcat__msg--paused { display: block; }
.tetcat.is-paused .tetcat__overlay { background: color-mix(in srgb, var(--bg) 55%, transparent); }

/* --- Panneau lateral --- */
.tetcat__side { flex: 1 1 150px; min-width: 140px; display: flex; flex-direction: column; gap: 14px; }
.tetcat__panel {
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border: 1px solid var(--border); border-radius: var(--radius, 14px);
}
.tetcat__label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft, var(--text)); }
.tetcat__next { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; width: 86px; }
.tetcat__stats { margin: 0; display: grid; gap: 8px; }
.tetcat__stat { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tetcat__stat dt { margin: 0; font-size: .82rem; color: var(--text-soft, var(--text)); }
.tetcat__stat dd { margin: 0; font-weight: 700; font-size: 1.15rem; color: var(--text); font-variant-numeric: tabular-nums; }
.tetcat__pausebtn { align-self: flex-start; }

/* --- Pave de commandes tactiles --- */
.tetcat__pad { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tetcat__key {
  appearance: none; cursor: pointer; min-width: 46px; min-height: 46px; padding: 0 14px;
  font: inherit; font-size: 1.25rem; line-height: 1; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--text);
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid var(--border); border-radius: var(--radius-sm, 10px);
  transition: background .15s var(--ease, ease), border-color .15s var(--ease, ease), transform .08s var(--ease, ease);
}
.tetcat__key--wide { font-size: .95rem; padding: 0 16px; }
.tetcat__key:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.tetcat__key:active { transform: translateY(1px); }
.tetcat__key:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

.tetcat__hint { margin: 14px 0 0; font-size: .82rem; color: var(--text-soft, var(--text)); }

@media (max-width: 380px) {
  .tetcat__pad { justify-content: center; }
  .tetcat__side { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tetcat__cell, .tetcat__key { transition: none; }
}
/* ===== Palette Tetris chat (theme chaleureux : creme / ginger) ===== */
.tetcat, .minigames {
  --tc-1:#D96A2B; --tc-2:#E0A02B; --tc-3:#4F9D6B; --tc-4:#D2596E;
  --tc-5:#4577A6; --tc-6:#B5501C; --tc-7:#9B7BBF;
  --tetcat-glow:0px;
}
[data-theme="dark"] .tetcat, [data-theme="dark"] .minigames {
  --tc-1:#F0935A; --tc-2:#F0BE6A; --tc-3:#7FCBA0; --tc-4:#E88AA0;
  --tc-5:#79A8CF; --tc-6:#E0784A; --tc-7:#BBA0DC;
}
/* ===================== Mini-jeux Chateq : Snake + 2048 =====================
   Blocs generiques, identiques sur les 4 themes. Tout passe par var(--...) du
   theme (suit clair / sombre) et reutilise la palette --tc-1..--tc-7 deja
   definie par theme (aucun nouveau token). Cote a cote via .minigames.
   ========================================================================== */
.minigames {
  display: grid; gap: 18px; margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ---- structure commune aux deux jeux ---- */
.minigame__game { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin-top: 16px; }
.minigame__playfield { position: relative; width: min(252px, 72vw); flex: none; }
.minigame__side { flex: 1 1 130px; min-width: 120px; display: flex; flex-direction: column; gap: 12px; }
.minigame__stats { margin: 0; display: grid; gap: 8px; }
.minigame__stat { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.minigame__stat dt { margin: 0; font-size: .82rem; color: var(--text-soft, var(--text)); }
.minigame__stat dd { margin: 0; font-weight: 700; font-size: 1.15rem; color: var(--text); font-variant-numeric: tabular-nums; }

.minigame__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  padding: 16px; border-radius: var(--radius, 14px);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.minigame.is-playing .minigame__overlay,
.is-playing > .minigame__game .minigame__overlay { display: none; }
.snake.is-playing .minigame__overlay, .g2048.is-playing .minigame__overlay { display: none; }
.minigame__msg { margin: 0; font-weight: 700; font-size: 1.02rem; color: var(--text); }
.minigame__msg--idle, .minigame__msg--over, .minigame__msg--paused { display: none; }
.snake.is-idle .minigame__msg--idle, .g2048.is-idle .minigame__msg--idle { display: block; }
.snake.is-over .minigame__msg--over, .g2048.is-over .minigame__msg--over { display: block; }
.snake.is-paused .minigame__msg--paused { display: block; }
.snake.is-paused .minigame__overlay { background: color-mix(in srgb, var(--bg) 55%, transparent); }

/* ---- pave directionnel (en croix) ---- */
.minigame__pad { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }
.minigame__padrow { display: flex; gap: 6px; }
.minigame__key {
  appearance: none; cursor: pointer; width: 46px; height: 46px; padding: 0;
  font: inherit; font-size: 1.3rem; line-height: 1; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid var(--border); border-radius: var(--radius-sm, 10px);
  transition: background .15s var(--ease, ease), border-color .15s var(--ease, ease), transform .08s var(--ease, ease);
}
.minigame__key:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.minigame__key:active { transform: translateY(1px); }
.minigame__key:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.minigame__hint { margin: 14px 0 0; font-size: .82rem; color: var(--text-soft, var(--text)); }

/* ============================ SNAKE ============================ */
.snake__board {
  display: grid; grid-template-columns: repeat(var(--sn-n, 15), 1fr);
  gap: 2px; padding: 7px; width: 100%;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius, 14px); box-shadow: var(--shadow); outline: none;
}
.snake__board:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow); }
.snake__cell {
  position: relative; aspect-ratio: 1; border-radius: 22%;
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
.snake__cell.is-snake { background: color-mix(in srgb, var(--accent) 88%, var(--bg)); border-radius: 32%; }
.snake__cell.is-head {
  background-color: var(--accent); border-radius: 42%; z-index: 1;
  background-image:
    radial-gradient(circle at 34% 52%, var(--bg) 0 14%, transparent 16%),
    radial-gradient(circle at 66% 52%, var(--bg) 0 14%, transparent 16%);
  box-shadow: inset 0 -20% 0 color-mix(in srgb, var(--accent) 78%, #000 22%);
}
.snake__cell.is-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: -8%; height: 40%;
  background: color-mix(in srgb, var(--accent) 82%, #000 18%);
  clip-path: polygon(6% 100%, 25% 2%, 45% 100%, 55% 100%, 75% 2%, 94% 100%);
}
.snake__cell.is-food {
  background: var(--tc-2, var(--accent)); border-radius: 50%;
  box-shadow: 0 0 6px color-mix(in srgb, var(--tc-2, var(--accent)) 60%, transparent);
  animation: snakeFood 1s var(--ease, ease) infinite alternate;
}
@keyframes snakeFood { from { transform: scale(.78); } to { transform: scale(1); } }

/* ============================ 2048 ============================ */
.g2048__board {
  display: grid; grid-template-columns: repeat(var(--g-size, 4), 1fr);
  gap: 8px; padding: 8px; width: 100%;
  background: color-mix(in srgb, var(--text) 9%, var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px); box-shadow: var(--shadow); outline: none;
}
.g2048__board:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow); }
.g2048__tile {
  position: relative; aspect-ratio: 1; border-radius: 18%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  font-weight: 800; font-size: clamp(.85rem, 4.2vw, 1.5rem); line-height: 1;
  color: #fff;
  text-shadow: -1px -1px 0 rgba(0,0,0,.4), 1px -1px 0 rgba(0,0,0,.4),
               -1px 1px 0 rgba(0,0,0,.4), 1px 1px 0 rgba(0,0,0,.4), 0 2px 3px rgba(0,0,0,.3);
}
.g2048__tile.is-filled {
  background-color: var(--cell-color, var(--accent));
  box-shadow: inset 0 -16% 0 color-mix(in srgb, var(--cell-color, var(--accent)) 80%, #000 20%);
  animation: tilePop .12s var(--ease, ease);
}
/* oreilles de chat */
.g2048__tile.is-filled::before {
  content: ""; position: absolute; left: 0; right: 0; top: -4%; height: 30%;
  background: color-mix(in srgb, var(--cell-color, var(--accent)) 82%, #000 18%);
  clip-path: polygon(8% 100%, 26% 8%, 44% 100%, 56% 100%, 74% 8%, 92% 100%);
}
@keyframes tilePop { from { transform: scale(.86); } to { transform: scale(1); } }
.g2048__tile.v-1 { --cell-color: var(--tc-1); }
.g2048__tile.v-2 { --cell-color: var(--tc-2); }
.g2048__tile.v-3 { --cell-color: var(--tc-3); }
.g2048__tile.v-4 { --cell-color: var(--tc-4); }
.g2048__tile.v-5 { --cell-color: var(--tc-5); }
.g2048__tile.v-6 { --cell-color: var(--tc-6); }
.g2048__tile.v-7 { --cell-color: var(--tc-7); }

/* badge "2048 atteint" */
.g2048__badge {
  display: none; margin-left: 8px; padding: 2px 9px; border-radius: var(--radius-pill, 999px);
  font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  vertical-align: middle; background: var(--accent-strong); color: var(--on-accent);
}
.g2048.has-won .g2048__badge { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .snake__cell.is-food, .g2048__tile.is-filled { animation: none; }
  .minigame__key { transition: none; }
}

/* ===================== "Plus chat" : frimousses felines =====================
   Ajout appende APRES tetcat.css + minigames.css. Donne de vrais visages de
   chat (yeux + nez + moustaches), des oreilles a chaque segment du Snake, une
   croquette en forme de poisson, et des yeux/nez sur les tuiles 2048. Tout via
   var() => suit les 4 themes en clair / sombre. Le masque SVG dessine les
   details en "espace negatif" (couleur du fond), nets et adaptatifs.
   ========================================================================== */

/* --- Frimousse complete (yeux + nez + moustaches) pour les blocs SANS chiffre :
       cellules du Tetris et tete du Snake. --- */
.tetcat__cell.is-filled { background-image: none; }
.snake__cell.is-head { background-image: none; }
.tetcat__cell.is-filled::after,
.snake__cell.is-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  width: auto; height: auto; left: 0; top: 0; transform: none; border-radius: 0;
  background: var(--tetcat-eye, var(--bg));
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%3E%3Cg%20fill='%23fff'%3E%3Cellipse%20cx='35'%20cy='44'%20rx='8'%20ry='10.5'/%3E%3Cellipse%20cx='65'%20cy='44'%20rx='8'%20ry='10.5'/%3E%3Cpath%20d='M50%2058%20l7%208%20h-14%20z'/%3E%3C/g%3E%3Cg%20stroke='%23fff'%20stroke-width='4'%20stroke-linecap='round'%3E%3Cline%20x1='30'%20y1='69'%20x2='6'%20y2='65'/%3E%3Cline%20x1='30'%20y1='74'%20x2='5'%20y2='75'/%3E%3Cline%20x1='70'%20y1='69'%20x2='94'%20y2='65'/%3E%3Cline%20x1='70'%20y1='74'%20x2='95'%20y2='75'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / 92% 92%;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%3E%3Cg%20fill='%23fff'%3E%3Cellipse%20cx='35'%20cy='44'%20rx='8'%20ry='10.5'/%3E%3Cellipse%20cx='65'%20cy='44'%20rx='8'%20ry='10.5'/%3E%3Cpath%20d='M50%2058%20l7%208%20h-14%20z'/%3E%3C/g%3E%3Cg%20stroke='%23fff'%20stroke-width='4'%20stroke-linecap='round'%3E%3Cline%20x1='30'%20y1='69'%20x2='6'%20y2='65'/%3E%3Cline%20x1='30'%20y1='74'%20x2='5'%20y2='75'/%3E%3Cline%20x1='70'%20y1='69'%20x2='94'%20y2='65'/%3E%3Cline%20x1='70'%20y1='74'%20x2='95'%20y2='75'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / 92% 92%;
}
/* l'apercu "suivant" du Tetris reste des blocs simples */
.tetcat__cell--mini.is-filled::after { display: none; }

/* --- Snake : chaque segment du corps recoit aussi des oreilles -> file de chatons --- */
.snake__cell.is-snake:not(.is-head)::before {
  content: ""; position: absolute; left: 0; right: 0; top: -4%; height: 34%;
  background: color-mix(in srgb, var(--accent) 76%, #000 24%);
  clip-path: polygon(8% 100%, 26% 8%, 44% 100%, 56% 100%, 74% 8%, 92% 100%);
}
/* --- Snake : la croquette devient un petit poisson --- */
.snake__cell.is-food { background: none; box-shadow: none; }
.snake__cell.is-food::before {
  content: ""; position: absolute; left: 12%; top: 28%; width: 56%; height: 44%;
  background: var(--tc-2, var(--accent)); border-radius: 50%;
  box-shadow: 0 0 5px color-mix(in srgb, var(--tc-2, var(--accent)) 55%, transparent);
}
.snake__cell.is-food::after {
  content: ""; position: absolute; right: 12%; top: 40%; width: 26%; height: 20%;
  background: var(--tc-2, var(--accent));
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

/* --- 2048 : yeux + nez au-dessus du chiffre, qui descend sur le menton --- */
.g2048__tile { align-items: flex-end; padding-bottom: 9%; }
.g2048__tile.is-filled {
  background-image:
    radial-gradient(circle at 33% 34%, var(--tetcat-eye, var(--bg)) 0 8.5%, transparent 10.5%),
    radial-gradient(circle at 67% 34%, var(--tetcat-eye, var(--bg)) 0 8.5%, transparent 10.5%),
    radial-gradient(circle at 50% 47%, color-mix(in srgb, var(--cell-color) 50%, #000 50%) 0 3.6%, transparent 5.6%);
}
.g2048__tile.is-filled::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 22%; pointer-events: none;
  background:
    linear-gradient(color-mix(in srgb, var(--cell-color) 55%, #000 45%), color-mix(in srgb, var(--cell-color) 55%, #000 45%)) no-repeat,
    linear-gradient(color-mix(in srgb, var(--cell-color) 55%, #000 45%), color-mix(in srgb, var(--cell-color) 55%, #000 45%)) no-repeat,
    linear-gradient(color-mix(in srgb, var(--cell-color) 55%, #000 45%), color-mix(in srgb, var(--cell-color) 55%, #000 45%)) no-repeat,
    linear-gradient(color-mix(in srgb, var(--cell-color) 55%, #000 45%), color-mix(in srgb, var(--cell-color) 55%, #000 45%)) no-repeat;
  background-size: 22% 2px, 22% 2px, 22% 2px, 22% 2px;
  background-position: 12% 30%, 12% 70%, 88% 30%, 88% 70%;
}
/* ===================== Chat Bros : platformer facon Mario =====================
   Carte pleine largeur DANS la grille .minigames (herite donc de --tc-*).
   Le canvas lit les couleurs du theme en JS (var --bg, --surface-2, --accent,
   --tc-*), donc suit clair / sombre et chaque palette. HUD + commandes en DOM
   (themes via var()). Reutilise .minigame__overlay / .minigame__key / .minigame__hint.
   ========================================================================== */
.minigames .chatbros { grid-column: 1 / -1; }

.chatbros__hud { display: flex; gap: 22px; margin-top: 14px; }
.chatbros__stat { font-size: .82rem; color: var(--text-soft, var(--text)); }
.chatbros__stat b { margin-left: 6px; font-size: 1.1rem; color: var(--text); font-variant-numeric: tabular-nums; }

.chatbros__stage { position: relative; width: 100%; max-width: 760px; margin: 12px auto 0; }
.chatbros__canvas {
  display: block; width: 100%; aspect-ratio: 64 / 30;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius, 14px); box-shadow: var(--shadow);
  outline: none; touch-action: none;
}
.chatbros__canvas:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow); }

/* overlay (etats idle / won / over) au-dessus du canvas */
.chatbros .minigame__overlay { display: flex; }
.chatbros.is-playing .minigame__overlay { display: none; }
.minigame__msg--won { display: none; }
.chatbros.is-idle .minigame__msg--idle { display: block; }
.chatbros.is-won .minigame__msg--won { display: block; }
.chatbros.is-over .minigame__msg--over { display: block; }

/* commandes tactiles */
.chatbros__controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 14px; }
.chatbros__dpad { display: flex; gap: 8px; }
.chatbros__jump { width: auto; padding: 0 20px; font-size: .95rem; gap: 6px; }
.chatbros__hint { text-align: center; }

/* ---------- Impression ----------
   Sans ce bloc, les sections pas encore « révélées » au scroll s'impriment en blanc. */
@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .header, .scroll-progress, .hero__blobs, .hero__visual, .skip-link,
  .tetcat, .minigames, .form, .footer__nav { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
  .section--alt, .footer { background: none; }
  .hero__title { background: none !important; color: #000 !important; animation: none !important; }
  .faq__a { max-height: none !important; }
  .card, .price, .step, .promise, .estimator { box-shadow: none; break-inside: avoid; }
  .btn--primary, .step__num { background: none !important; color: #000 !important; border: 1px solid #000; box-shadow: none; }
  a[href^="mailto:"]::after, a[href^="tel:"]::after { content: ""; }
}
