/*
  MarloneGuard — le site, charte « menthe et pêche » (CHARTE.md, 2026-09-24).

  Doux et joyeux, pour des parents : des couleurs pastel, des coins ronds, un
  trait d'encre comme sur la mascotte, des boutons qu'on a envie de presser.
  Polices hébergées ici même (Fredoka pour les titres, Nunito pour le texte,
  licence SIL OFL) : le site ne fait toujours appel à aucun autre serveur.

  Les animations jouent toujours, même quand Windows demande moins de
  mouvement : choix du parent (2026-10-08), sinon le site paraît figé.
*/

@font-face {
  font-family: "Fredoka";
  src: url("/polices/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/polices/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/polices/nunito-italique.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

/* D'une page à l'autre, un fondu doux ; la mascotte de l'en-tête ne bouge pas. */
@view-transition {
  navigation: auto;
}

/* ------------------------------------------------------------ Couleurs --- */

:root {
  --creme: #FFF8F0;
  --papier: #FFFFFF;
  --encre: #3D405B;
  --encre-douce: #666985;
  --contour: #3D405B;
  --sur-couleur: #2B2D42;

  --menthe: #7FD1B9;
  --menthe-fonce: #1F7A5E;
  --menthe-pale: #DDF3EA;
  --peche: #FFB4A2;
  --peche-fonce: #B84A30;
  --peche-pale: #FFE3DA;
  --lilas: #B8A9F0;
  --lilas-fonce: #5A48A8;
  --lilas-pale: #ECE7FC;
  --soleil: #FFD166;
  --soleil-fonce: #7A5600;
  --soleil-pale: #FFF3CC;
  --ciel: #A8D8FF;
  --ciel-pale: #E3F2FF;
  --rouge: #E76F6F;
  --rouge-fonce: #A12F2F;
  --rouge-pale: #FDE2E2;

  /* Les noms d'origine, que le forum emploie encore. */
  --bg: var(--creme);
  --surface: var(--papier);
  --surface-2: #F6EFE6;
  --ink: var(--encre);
  --ink-soft: var(--encre-douce);
  --accent: var(--menthe-fonce);
  --accent-strong: #145C46;
  --accent-soft: var(--menthe-pale);
  --on-accent: var(--sur-couleur);
  --success: var(--menthe-fonce);
  --success-soft: var(--menthe-pale);
  --warn: var(--soleil-fonce);
  --warn-soft: var(--soleil-pale);
  --warn-line: var(--soleil);
  --danger: var(--rouge-fonce);
  --danger-soft: var(--rouge-pale);
  --line: rgb(61 64 91 / 0.14);

  --ombre-douce: 0 2px 0 rgb(61 64 91 / 0.06), 0 14px 34px rgb(61 64 91 / 0.10);
  --radius: 22px;
  --radius-small: 14px;
  --page: 1180px;
  --gutter: 20px;
  --titres: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  --texte: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --rebond: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --creme: #1D1F31;
    --papier: #282B44;
    --encre: #F6F1E9;
    --encre-douce: #BDBFD3;
    --contour: #0E0F1A;
    --menthe-fonce: #8FE3CA;
    --menthe-pale: #1F3B35;
    --peche-fonce: #FFB9A6;
    --peche-pale: #43302E;
    --lilas-fonce: #CBBEFF;
    --lilas-pale: #2F2B4E;
    --soleil-fonce: #FFD98A;
    --soleil-pale: #3A3321;
    --ciel-pale: #22324A;
    --rouge-fonce: #FF9C9C;
    --rouge-pale: #43262B;
    --surface-2: #31354F;
    --accent-strong: #B5F0DD;
    --line: rgb(255 255 255 / 0.12);
    --ombre-douce: 0 2px 0 rgb(0 0 0 / 0.25), 0 14px 34px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}

/* --------------------------------------------------------------- Base --- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--creme);
  background-image: radial-gradient(rgb(127 209 185 / 0.18) 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17.5px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--menthe-fonce);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-style: wavy;
}

::selection {
  background: var(--peche);
  color: var(--sur-couleur);
}

:focus-visible {
  outline: 3px solid var(--lilas-fonce);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  font-family: var(--titres);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

strong {
  font-weight: 800;
}

.wrap {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 50;
  background: var(--papier);
  padding: 8px 12px;
}

/* Un mot surligné au feutre, qui se dessine à l'arrivée. */
.feutre {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}

.feutre::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.12em;
  right: -0.12em;
  bottom: 0.02em;
  height: 0.42em;
  border-radius: 0.3em;
  background: var(--feutre, var(--peche));
  transform-origin: left center;
  animation: feutre 0.9s 0.35s var(--rebond) both;
}

@media (prefers-color-scheme: dark) {
  .feutre {
    --feutre: #8A4636;
  }
}

@keyframes feutre {
  from { transform: scaleX(0) rotate(-2deg); }
  to { transform: scaleX(1) rotate(-1deg); }
}

/* ------------------------------------------------------------ En-tête --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--creme) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.site-header.defile {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgb(61 64 91 / 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--titres);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--encre);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--encre);
  text-decoration: none;
}

.brand .mascotte {
  width: 46px;
  height: 46px;
  flex: none;
  view-transition-name: mascotte-tete;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid transparent;
  color: var(--encre-douce);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.97rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--rebond);
}

.nav a:hover {
  color: var(--encre);
  background: var(--papier);
  transform: translateY(-2px);
}

.nav a[aria-current="page"] {
  color: var(--sur-couleur);
  background: var(--menthe);
  border-color: var(--contour);
}

@media (max-width: 820px) {
  .site-header .wrap {
    flex-wrap: wrap;
    gap: 4px;
    padding-block: 8px;
  }

  .nav {
    margin-left: 0;
    width: 100%;
    padding-bottom: 4px;
  }
}

/* ------------------------------------------------------------ Boutons --- */

/*
  Des boutons à presser : un trait d'encre et une ombre pleine dessous. Au
  survol ils se soulèvent, au clic ils s'enfoncent — comme une vraie touche.
*/
.button {
  --fond: var(--menthe);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 18px;
  border: 2.5px solid var(--contour);
  background: var(--fond);
  color: var(--sur-couleur);
  font: inherit;
  font-family: var(--titres);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 5px 0 var(--contour);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.55) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.button:hover {
  color: var(--sur-couleur);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 0 var(--contour);
}

.button:hover::after {
  transform: translateX(120%);
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--contour);
}

.button.quiet {
  --fond: var(--papier);
  color: var(--encre);
}

.button.quiet:hover {
  color: var(--encre);
}

.button.peche {
  --fond: var(--peche);
}

.button.lilas {
  --fond: var(--lilas);
}

.button.grand {
  padding: 18px 32px;
  font-size: 1.22rem;
  border-radius: 22px;
}

.button .mascotte {
  width: 30px;
  height: 30px;
  margin: -6px 0;
}

.button[aria-disabled="true"],
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ------------------------------------------------------------ Sections --- */

main {
  display: block;
}

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px);
}

/* Une bande pastel, bordée de vagues en haut et en bas. */
.section.tinted {
  background: var(--menthe-pale);
  margin-block: 36px;
}

.section.tinted::before,
.section.tinted::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 36px;
  background: var(--menthe-pale);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36V18C120 0 240 0 360 18s240 18 360 0 240-18 360 0 240 18 360 0v18Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36V18C120 0 240 0 360 18s240 18 360 0 240-18 360 0 240 18 360 0v18Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.section.tinted::before {
  top: -35px;
}

.section.tinted::after {
  bottom: -35px;
  transform: scaleY(-1);
}

.section.tinted.peche,
.section.tinted.peche::before,
.section.tinted.peche::after {
  background: var(--peche-pale);
}

.section.tinted.lilas,
.section.tinted.lilas::before,
.section.tinted.lilas::after {
  background: var(--lilas-pale);
}

.lead {
  font-size: 1.2rem;
  color: var(--encre-douce);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--titres);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sur-couleur);
  background: var(--soleil);
  border: 2px solid var(--contour);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
  transform: rotate(-2deg);
}

.eyebrow::before {
  content: "✦";
}

.section-head {
  max-width: 740px;
  margin-bottom: 44px;
}

.section-head.centre {
  margin-inline: auto;
  text-align: center;
}

.section-head.centre .lead {
  margin-inline: auto;
}

/* Les blocs qui apparaissent en glissant quand on descend dans la page :
   de la CSS pure (animation liée au défilement), sans JavaScript. Un
   navigateur qui ne sait pas le faire montre simplement tout. */
@supports (animation-timeline: view()) {
  .revele {
    animation: apparait linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

@keyframes apparait {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------- Hero --- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 96px);
  overflow: hidden;
}

/* Les grosses bulles pastel qui dérivent derrière. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.8;
  animation: derive 18s ease-in-out infinite alternate;
}

.hero::before {
  width: min(56vw, 640px);
  aspect-ratio: 1;
  right: -8%;
  top: -12%;
  background: radial-gradient(circle at 35% 35%, var(--menthe-pale), transparent 68%);
}

.hero::after {
  width: min(40vw, 420px);
  aspect-ratio: 1;
  left: -10%;
  bottom: -20%;
  background: radial-gradient(circle at 50% 50%, var(--peche-pale), transparent 68%);
  animation-duration: 22s;
}

@keyframes derive {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.08); }
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero .lead {
  margin-bottom: 1.5em;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--encre-douce);
}

.atouts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--encre-douce);
}

.atouts li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--menthe);
  color: var(--sur-couleur);
  font-size: 0.75rem;
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: var(--papier);
  border: 2px solid var(--contour);
  color: var(--encre);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  margin-bottom: 22px;
  box-shadow: 0 3px 0 var(--contour);
  transition: transform 0.2s var(--rebond);
}

.version-pill .nouveau {
  background: var(--peche);
  color: var(--sur-couleur);
  border-radius: 999px;
  padding: 1px 10px;
  font-family: var(--titres);
  font-weight: 600;
}

.version-pill:hover {
  color: var(--encre);
  text-decoration: none;
  transform: translateY(-2px) rotate(-1deg);
}

/* La scène de la mascotte, à droite du titre. */
.scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  padding-top: 84px;
}

.scene .mascotte.geante {
  width: min(78%, 380px);
  height: auto;
  cursor: pointer;
  filter: drop-shadow(0 18px 0 rgb(61 64 91 / 0.08));
  touch-action: manipulation;
}

.scene .sol {
  position: absolute;
  bottom: 30px;
  width: 46%;
  height: 22px;
  border-radius: 50%;
  background: rgb(61 64 91 / 0.12);
  animation: ombre 4s ease-in-out infinite;
}

@keyframes ombre {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.86); opacity: 0.7; }
}

.bulle {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  max-width: 270px;
  padding: 12px 16px;
  background: var(--papier);
  border: 2.5px solid var(--contour);
  border-radius: 22px 22px 22px 6px;
  box-shadow: 0 5px 0 var(--contour);
  font-family: var(--titres);
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--encre);
  transform-origin: bottom left;
  animation: bulle 0.5s 0.6s var(--rebond) both;
}

.bulle.change {
  animation: bulle 0.45s var(--rebond) both;
}

@keyframes bulle {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.autocollant {
  position: absolute;
  padding: 7px 14px;
  border-radius: 14px;
  border: 2.5px solid var(--contour);
  font-family: var(--titres);
  font-weight: 600;
  font-size: 1rem;
  color: var(--sur-couleur);
  box-shadow: 0 4px 0 var(--contour);
  animation: plane 6s ease-in-out infinite;
  white-space: nowrap;
}

.autocollant.a1 { right: 0; top: 18%; background: var(--soleil); --r: 6deg; }
.autocollant.a2 { left: 0; bottom: 22%; background: var(--peche); --r: -7deg; animation-delay: -2s; }
.autocollant.a3 { right: 6%; bottom: 8%; background: var(--lilas); --r: 4deg; animation-delay: -4s; }

@keyframes plane {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) * -0.5)); }
}

@media (max-width: 900px) {
  .scene {
    min-height: 340px;
  }
}

@media (max-width: 480px) {
  .autocollant.a3 {
    display: none;
  }

  .bulle {
    max-width: 190px;
    font-size: 0.98rem;
  }
}

/* ---------------------------------------------------------- Mascotte --- */

.mascotte {
  overflow: visible;
}

.mascotte .m-corps,
.mascotte .m-oeil,
.mascotte .m-joues,
.mascotte .m-bouche {
  transform-box: fill-box;
  transform-origin: center;
}

.mascotte .m-corps {
  transform-origin: 50% 100%;
}

.mascotte .m-yeux,
.mascotte .m-lunettes {
  transform: translate(var(--regard-x, 0px), var(--regard-y, 0px));
  transition: transform 0.18s ease-out;
}

.mascotte .m-oeil {
  transition: transform 0.07s ease-in;
}

.mascotte.cligne .m-oeil {
  transform: scaleY(0.08);
}

.mascotte .m-joues {
  transition: transform 0.3s var(--rebond), opacity 0.3s;
  opacity: 0.85;
}

.mascotte.vivante:hover .m-joues,
.mascotte.ravie .m-joues {
  opacity: 1;
  transform: scale(1.18);
}

.mascotte.vivante .m-corps {
  animation: flotte 4s ease-in-out infinite;
}

.mascotte.saute .m-corps {
  animation: saute 0.75s var(--rebond);
}

.brand:hover .mascotte .m-corps {
  animation: coucou 0.6s ease-in-out;
}

@keyframes flotte {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-5%) rotate(1.5deg); }
}

@keyframes saute {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(0) scale(1.1, 0.88); }
  45% { transform: translateY(-24%) scale(0.94, 1.08) rotate(-4deg); }
  75% { transform: translateY(0) scale(1.06, 0.94); }
  100% { transform: translateY(0) scale(1, 1); }
}

@keyframes coucou {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  60% { transform: rotate(8deg); }
}

/* Les petites étoiles qui jaillissent quand on clique sur la mascotte. */
.etincelle {
  position: fixed;
  z-index: 60;
  width: 18px;
  height: 18px;
  pointer-events: none;
  background: var(--c, var(--soleil));
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  animation: jaillit 0.9s ease-out forwards;
}

@keyframes jaillit {
  from { transform: translate(-50%, -50%) scale(0.2) rotate(0); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(160deg); opacity: 0; }
}

.confetti {
  position: fixed;
  z-index: 60;
  top: -20px;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  pointer-events: none;
  background: var(--c);
  animation: tombe var(--t, 2.4s) cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

@keyframes tombe {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: 0.9; }
}

/* ----------------------------------------------------- Bande qui défile --- */

.defilant {
  position: relative;
  overflow: hidden;
  padding-block: 18px;
  background: var(--encre);
  transform: rotate(-1.5deg);
  margin-block: 24px;
  border-block: 3px solid var(--contour);
}

.defilant ul {
  display: flex;
  gap: 16px;
  width: max-content;
  margin: 0;
  padding: 0 8px;
  list-style: none;
  animation: defile 38s linear infinite;
}

.defilant:hover ul {
  animation-play-state: paused;
}

.defilant li {
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--titres);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--sur-couleur);
  white-space: nowrap;
  background: var(--menthe);
}

.defilant li:nth-child(4n + 2) { background: var(--peche); }
.defilant li:nth-child(4n + 3) { background: var(--soleil); }
.defilant li:nth-child(4n) { background: var(--lilas); }

@keyframes defile {
  to { transform: translateX(-50%); }
}

@media (prefers-color-scheme: dark) {
  .defilant {
    background: #13142A;
  }
}

/* ------------------------------------------------ L'essai d'une question --- */

.demo-zone {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 900px) {
  .demo-zone {
    grid-template-columns: 1fr;
  }
}

.demo {
  position: relative;
  background: var(--papier);
  border: 3px solid var(--contour);
  border-radius: 28px;
  box-shadow: 0 10px 0 var(--contour);
  padding: clamp(18px, 3vw, 28px);
}

.demo-haut {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.demo-haut .mascotte {
  width: 58px;
  height: 58px;
  flex: none;
}

.jauge {
  flex: 1;
}

.jauge-texte {
  display: flex;
  justify-content: space-between;
  font-family: var(--titres);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.jauge-barre {
  height: 18px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 2px solid var(--contour);
  overflow: hidden;
}

.jauge-barre span {
  display: block;
  height: 100%;
  width: var(--rempli, 30%);
  border-radius: 999px;
  background: repeating-linear-gradient(-45deg, var(--menthe) 0 12px, #95DCC7 12px 24px);
  transition: width 0.8s var(--rebond);
}

.demo-question {
  font-family: var(--titres);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
  margin: 8px 0 18px;
  min-height: 2.5em;
}

.demo-reponses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demo-reponses button {
  font: inherit;
  font-family: var(--titres);
  font-weight: 600;
  font-size: 1.3rem;
  padding: 16px 12px;
  border-radius: 18px;
  border: 2.5px solid var(--contour);
  background: var(--ciel-pale);
  color: var(--encre);
  cursor: pointer;
  box-shadow: 0 5px 0 var(--contour);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.demo-reponses button:nth-child(2) { background: var(--peche-pale); }
.demo-reponses button:nth-child(3) { background: var(--lilas-pale); }
.demo-reponses button:nth-child(4) { background: var(--soleil-pale); }

.demo-reponses button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 var(--contour);
}

.demo-reponses button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--contour);
}

.demo-reponses button.juste {
  background: var(--menthe);
  color: var(--sur-couleur);
  animation: juste 0.5s var(--rebond);
}

.demo-reponses button.faux {
  background: var(--rouge-pale);
  animation: faux 0.4s ease;
}

.demo-reponses button:disabled {
  cursor: default;
}

@keyframes juste {
  50% { transform: scale(1.08) rotate(-2deg); }
}

@keyframes faux {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.demo-retour {
  min-height: 3.4em;
  margin: 16px 0 0;
  font-weight: 700;
  color: var(--encre-douce);
}

.demo-retour.bravo {
  color: var(--menthe-fonce);
}

.gain {
  position: absolute;
  right: 22px;
  top: 18px;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--menthe-fonce);
  pointer-events: none;
  animation: gain 1.2s ease-out forwards;
}

@keyframes gain {
  from { transform: translateY(10px) scale(0.6); opacity: 0; }
  30% { transform: translateY(-6px) scale(1.15); opacity: 1; }
  to { transform: translateY(-40px) scale(1); opacity: 0; }
}

/* ------------------------------------------------------------ Grilles --- */

.grid {
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid.three,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--papier);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--ombre-douce);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card .icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 2px solid var(--contour);
  background: var(--soleil-pale);
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: 0 3px 0 var(--contour);
}

/* Une carte « autocollant » : trait d'encre, ombre pleine, qui penche au survol. */
.sticker {
  border: 2.5px solid var(--contour);
  box-shadow: 0 7px 0 var(--contour);
}

.incline {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 2.5px solid var(--contour);
  background: var(--peche);
  color: var(--sur-couleur);
  font-family: var(--titres);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 14px;
  box-shadow: 0 4px 0 var(--contour);
  transform: rotate(-4deg);
}

.grid .card:nth-child(2) .step-number { background: var(--soleil); transform: rotate(3deg); }
.grid .card:nth-child(3) .step-number { background: var(--lilas); transform: rotate(-2deg); }

.stat {
  text-align: center;
}

.stat .value {
  display: block;
  font-family: var(--titres);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--encre);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.stat .label {
  color: var(--encre-douce);
  font-weight: 700;
  font-size: 1rem;
}

.grid .stat:nth-child(1) { background: var(--menthe-pale); }
.grid .stat:nth-child(2) { background: var(--peche-pale); }
.grid .stat:nth-child(3) { background: var(--soleil-pale); }
.grid .stat:nth-child(4) { background: var(--lilas-pale); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chips li {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--papier);
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: 0.97rem;
  transition: transform 0.2s var(--rebond), background 0.2s;
}

.chips li:hover {
  transform: translateY(-3px) rotate(-2deg);
  background: var(--soleil-pale);
}

/* ---------------------------------------------------- Mosaïque (bento) --- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.bento > * {
  grid-column: span 3;
}

.bento > .large {
  grid-column: span 4;
}

.bento > .etroite {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .bento > *,
  .bento > .large,
  .bento > .etroite {
    grid-column: span 6;
  }
}

.tuile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--radius);
  border: 2.5px solid var(--contour);
  box-shadow: 0 7px 0 var(--contour);
  padding: 26px;
  color: var(--encre);
}

.tuile.menthe { background: var(--menthe-pale); }
.tuile.peche { background: var(--peche-pale); }
.tuile.lilas { background: var(--lilas-pale); }
.tuile.soleil { background: var(--soleil-pale); }
.tuile.ciel { background: var(--ciel-pale); }

.tuile .mascotte {
  width: 110px;
  height: 110px;
  align-self: flex-end;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* L'application, dans une fenêtre aux coins ronds. */
.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2.5px solid var(--contour);
  background: var(--papier);
  box-shadow: 0 8px 0 var(--contour);
}

.shot::before {
  content: "";
  display: block;
  height: 26px;
  border-bottom: 2px solid var(--line);
  background:
    radial-gradient(circle at 18px 50%, var(--peche) 5px, transparent 5.5px),
    radial-gradient(circle at 36px 50%, var(--soleil) 5px, transparent 5.5px),
    radial-gradient(circle at 54px 50%, var(--menthe) 5px, transparent 5.5px),
    var(--surface-2);
}

.shot figcaption {
  padding: 14px 18px;
  font-size: 0.98rem;
  color: var(--encre-douce);
  border-top: 2px solid var(--line);
}

.shot figcaption strong {
  color: var(--encre);
  font-family: var(--titres);
  font-weight: 600;
}

/* ----------------------------------------------------- Appel final --- */

.appel-final {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(26px, 5vw, 56px);
  border-radius: 34px;
  border: 3px solid var(--contour);
  box-shadow: 0 10px 0 var(--contour);
  background: var(--menthe);
  color: var(--sur-couleur);
  overflow: hidden;
}

.appel-final::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.25);
}

.appel-final h2 {
  color: var(--sur-couleur);
}

.appel-final .mascotte {
  width: clamp(110px, 16vw, 180px);
  height: auto;
}

.appel-final .button.quiet {
  --fond: #FFFFFF;
  color: var(--sur-couleur);
}

.lien-sur-couleur,
.lien-sur-couleur:hover {
  color: var(--sur-couleur);
}

@media (max-width: 620px) {
  .appel-final {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .appel-final .mascotte {
    margin-inline: auto;
  }

  .appel-final .actions {
    justify-content: center;
  }
}

/* ------------------------------------------------------ Avertissement --- */

.warning {
  border: 2.5px solid var(--contour);
  background: var(--soleil-pale);
  color: var(--encre);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: 0 6px 0 var(--contour);
}

.warning h2,
.warning h3,
.warning strong.title {
  color: var(--soleil-fonce);
}

.warning p:last-child,
.warning ul:last-child {
  margin-bottom: 0;
}

.warning.big {
  padding: clamp(22px, 4vw, 38px);
}

.warning.big .big-line {
  font-family: var(--titres);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.6em;
}

.callout {
  border-radius: var(--radius-small);
  padding: 18px 22px;
  background: var(--menthe-pale);
  border: 2px solid var(--line);
  color: var(--encre);
}

.callout.success {
  background: var(--menthe-pale);
}

.callout.danger {
  background: var(--rouge-pale);
}

/* ------------------------------------------------------------ Listes --- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.checklist li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 14px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 2px solid var(--contour);
  background: var(--menthe);
  color: var(--sur-couleur);
  font-weight: 900;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
}

.checklist.no li::before {
  content: "✕";
  background: var(--peche);
  transform: rotate(5deg);
}

.checklist.lilas li::before {
  background: var(--lilas);
}

.steps {
  counter-reset: etape;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps > li {
  counter-increment: etape;
  position: relative;
  padding: 0 0 26px 62px;
}

.steps > li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: -2px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 2.5px solid var(--contour);
  background: var(--soleil);
  color: var(--sur-couleur);
  font-family: var(--titres);
  font-weight: 700;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 var(--contour);
}

.steps > li:nth-child(even)::before {
  background: var(--peche);
}

.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 4px;
  border-left: 3px dashed var(--line);
}

.steps > li strong:first-child {
  display: block;
  font-family: var(--titres);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

/* ----------------------------------------------------------- Versions --- */

.version {
  position: relative;
  background: var(--papier);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--ombre-douce);
}

.version:first-of-type {
  border: 2.5px solid var(--contour);
  box-shadow: 0 7px 0 var(--contour);
}

.version header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.version h2,
.version h3 {
  margin: 0;
  font-size: 1.4rem;
}

.version .meta {
  color: var(--encre-douce);
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  border: 2px solid var(--contour);
  font-family: var(--titres);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--menthe);
  color: var(--sur-couleur);
}

.version ul {
  margin: 0;
  padding-left: 1.2em;
}

.version li {
  margin-bottom: 8px;
}

.version li::marker {
  color: var(--menthe-fonce);
  content: "✦  ";
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.download-card > .card:first-child {
  border: 2.5px solid var(--contour);
  box-shadow: 0 8px 0 var(--contour);
}

@media (max-width: 860px) {
  .download-card {
    grid-template-columns: 1fr;
  }
}

.accept {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0;
  font-weight: 700;
}

.accept input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--menthe-fonce);
}

.file-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0 0 20px;
}

.file-facts dt {
  color: var(--encre-douce);
}

.file-facts dd {
  margin: 0;
  font-weight: 800;
}

/* ---------------------------------------------------------- Formulaires --- */

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.field legend {
  font-weight: 800;
}

.field .hint {
  font-size: 0.92rem;
  color: var(--encre-douce);
  margin: 0;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--encre);
  background: var(--papier);
  border: 2px solid var(--line);
  border-radius: var(--radius-small);
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--menthe-fonce);
  box-shadow: 0 0 0 4px var(--menthe-pale);
}

.field input[type="file"] {
  font: inherit;
}

.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 620px) {
  .row {
    grid-template-columns: 1fr;
  }
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}

.choices legend {
  margin-bottom: 8px;
}

.choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--papier);
  cursor: pointer;
  font-weight: 700;
}

.choices input {
  accent-color: var(--menthe-fonce);
}

.choices label:has(input:checked) {
  border-color: var(--contour);
  background: var(--menthe);
  color: var(--sur-couleur);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex: none;
  accent-color: var(--menthe-fonce);
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-result {
  display: none;
}

.form-result.visible {
  display: block;
}

/* -------------------------------------------------------------- Texte --- */

.prose {
  max-width: 76ch;
}

.prose h2 {
  margin-top: 1.8em;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.prose h3 {
  margin-top: 1.4em;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 6px;
}

code {
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}

/* ------------------------------------------------------------ Pied --- */

.site-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 90px);
  color: #F6F1E9;
}

.site-footer .vague {
  display: block;
  width: 100%;
  height: 60px;
  margin-bottom: -1px;
}

.site-footer .vague path {
  fill: var(--encre);
}

.pied {
  background: var(--encre);
  padding-block: 20px 44px;
}

@media (prefers-color-scheme: dark) {
  .site-footer .vague path {
    fill: #13142A;
  }

  .pied {
    background: #13142A;
  }
}

.pied .wrap {
  display: grid;
  gap: 22px;
}

.pied-marque {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pied-marque .mascotte {
  width: 72px;
  height: 72px;
  flex: none;
}

.pied-marque p {
  margin: 0;
  color: #D9D6E4;
}

.pied-marque strong {
  display: block;
  font-family: var(--titres);
  font-weight: 600;
  font-size: 1.4rem;
  color: #FFFFFF;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer a {
  color: #F6F1E9;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--menthe);
}

.pied-legal {
  margin: 0;
  font-size: 0.9rem;
  color: #B9B6CC;
}
