/* =========================================================
   Capykom — Feuille de style principale
   Tokens issus de SKILL.md §3. Aucune couleur en dur hors :root.
   ========================================================= */

:root {
  /* Palette de marque */
  --vert-foret: #1F3A2E;
  --vert-sauge: #8FA98C;
  --vert-mousse: #DCE5D6;
  --creme: #F6F3EC;
  --terracotta: #C46A45;
  --terracotta-fonce: #A9532F; /* variante AA pour texte blanc sur badge */
  --bois: #B89B72;
  --encre: #1A1A1A;
  --gris-doux: #6B6F68;
  --gris-fonce: #555A53; /* texte secondaire AA (≥ 4.5:1) sur vert mousse */

  /* Tokens sémantiques */
  --bg: var(--creme);
  --bg-alt: var(--vert-mousse);
  --surface: #FFFFFF;
  --text: var(--encre);
  --text-muted: var(--gris-doux);
  --heading: var(--vert-foret);
  --primary: var(--vert-foret);
  --on-primary: var(--creme);
  --border: rgba(31, 58, 46, .14);
  --focus: var(--terracotta);
  --scrim: rgba(20, 28, 23, .55);
  --danger: var(--terracotta-fonce);     /* erreurs de formulaire (≥ 4.5:1 sur blanc et crème) */
  --border-fort: rgba(31, 58, 46, .28);  /* contour des gros boutons de choix */
  --border-champ: rgba(31, 58, 46, .55); /* contour des champs (≥ 3:1) */

  /* Familles de filtres du catalogue : vert = lieu, terracotta = type de jeu */
  --lieu: var(--vert-foret);
  --lieu-tint: #E3EBDD;
  --lieu-on: var(--creme);
  --jeu: var(--terracotta-fonce);
  --jeu-tint: #F5E4DA;
  --jeu-on: #FFFFFF;

  /* Typo */
  --font-titre: "Fraunces", Georgia, serif;
  --font-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --h1: clamp(2.4rem, 5vw, 4rem);
  --h2: clamp(1.8rem, 3.5vw, 2.6rem);
  --h3: 1.4rem;

  /* Formes & effets */
  --radius: 16px;
  --radius-pill: 999px;
  --ombre: 0 8px 24px rgba(31, 58, 46, .08);
  --ombre-hover: 0 14px 36px rgba(31, 58, 46, .14);

  /* Mise en page */
  --container: 1200px;
  --gutter: 16px;
  --section-pad: clamp(64px, 10vw, 128px);
  --header-h: 72px;

  /* Mouvement */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --duree: 220ms;

  /* Calques */
  --z-header: 100;
  --z-menu: 110;
  --z-cookie: 200;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141C17;
    --bg-alt: #1B2620;
    --surface: #1F2B24;
    --text: #ECEAE3;
    --text-muted: #B9BCB3;
    --heading: #ECEAE3;
    --primary: var(--vert-sauge);
    --on-primary: #141C17;
    --border: rgba(236, 234, 227, .14);
    --danger: #E8956F;
    --border-fort: rgba(236, 234, 227, .26);
    --border-champ: rgba(236, 234, 227, .45);
    --lieu: var(--vert-sauge);
    --lieu-tint: rgba(143, 169, 140, .14);
    --lieu-on: #141C17;
    --jeu: #E8956F;
    --jeu-tint: rgba(232, 149, 111, .14);
    --jeu-on: #141C17;
    --ombre: 0 8px 24px rgba(0, 0, 0, .3);
    --ombre-hover: 0 14px 36px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-texte);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 600;
  line-height: 1.12;
  color: var(--heading);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 500; }
h4 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px;
  background: var(--primary); color: var(--on-primary);
  padding: 12px 20px; border-radius: var(--radius-pill);
  z-index: 1000; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* clip plutôt que hidden : ne crée pas de conteneur de défilement, donc position: sticky reste possible */
.section { padding-block: var(--section-pad); position: relative; overflow: hidden; overflow: clip; }
.section--alt { background: var(--bg-alt); }
@media (prefers-color-scheme: light) { .section--alt { --text-muted: var(--gris-fonce); } }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.lead { font-size: 1.125rem; color: var(--text-muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background-color var(--duree) var(--ease-out), color var(--duree) var(--ease-out),
              border-color var(--duree) var(--ease-out), transform var(--duree) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--bois); color: var(--encre); }
.btn--secondary { border-color: currentColor; color: var(--heading); background: transparent; }
.btn--secondary:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn--light { background: var(--creme); color: var(--vert-foret); }
.btn--light:hover { background: var(--bois); color: var(--encre); }
.btn--outline-light { border-color: var(--creme); color: var(--creme); background: transparent; }
.btn--outline-light:hover { background: var(--creme); color: var(--vert-foret); }

/* ---------- Tags & badges ---------- */
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-muted);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
  background: var(--terracotta-fonce); color: #FFFFFF;
}
.badge--neutre { background: var(--vert-foret); color: var(--creme); }

/* ---------- Header ---------- */
/* Fond vert forêt comme le footer, dans les deux thèmes. Les tokens sont redéfinis
   localement pour que liens, burger, bouton et menu mobile restent lisibles.
   Pas de backdrop-filter ici : il ferait de .header le bloc conteneur du .mobile-menu
   (position: fixed), qui se retrouverait sans hauteur ni fond. */
.header {
  --text: rgba(246, 243, 236, .85);
  --heading: var(--creme);
  --border: rgba(246, 243, 236, .18);
  --primary: var(--creme);
  --on-primary: var(--vert-foret);
  --focus: var(--creme);
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--vert-foret);
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duree) var(--ease-out);
}
.header.is-scrolled { border-bottom-color: var(--border); }
/* Logo marron illisible sur fond vert foncé : passé en clair, comme dans le footer */
.header .logo__img { filter: brightness(0) invert(1); opacity: .92; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-titre); font-weight: 600; font-size: 1.2rem;
  color: var(--heading); text-decoration: none;
}
.logo__mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--vert-foret); color: var(--vert-mousse);
  display: grid; place-items: center;
}
.logo__mark svg { width: 20px; height: 20px; }
.logo__img { display: block; height: 52px; width: auto; }

.nav { display: none; }
.nav__list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; font-weight: 500; color: var(--text);
  border-radius: var(--radius-pill);
  transition: background-color var(--duree) var(--ease-out);
}
.nav__link:hover { background: var(--border); }
.nav__link[aria-current="page"] { color: var(--heading); font-weight: 600; }
.header__cta { display: none; }

.burger {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--heading);
}
.burger svg { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu);
  background: var(--vert-foret);
  padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity var(--duree) var(--ease-out), transform var(--duree) var(--ease-out), visibility 0s linear var(--duree);
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mobile-menu a:not(.btn) {
  font-family: var(--font-titre); font-size: 1.6rem; color: var(--heading);
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 24px; }

@media (min-width: 1024px) {
  .nav, .header__cta { display: flex; }
  .burger, .mobile-menu { display: none; }
}

/* ---------- Placeholders visuels (à remplacer par les photos) ---------- */
.photo {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(232, 178, 110, .45), transparent 55%),
    radial-gradient(90% 70% at 10% 90%, rgba(143, 169, 140, .55), transparent 60%),
    linear-gradient(160deg, #2C4A3B 0%, #1F3A2E 45%, #3B2E22 100%);
  color: rgba(246, 243, 236, .8);
}
.photo--bois {
  background:
    radial-gradient(100% 80% at 70% 20%, rgba(244, 205, 150, .55), transparent 60%),
    linear-gradient(150deg, #B89B72 0%, #7A5E3F 55%, #2B3A2F 100%);
}
.photo--sauge {
  background:
    radial-gradient(100% 80% at 30% 20%, rgba(246, 243, 236, .4), transparent 60%),
    linear-gradient(150deg, #8FA98C 0%, #4E6B57 55%, #1F3A2E 100%);
}
.photo--terra {
  background:
    radial-gradient(100% 80% at 70% 15%, rgba(250, 210, 160, .5), transparent 60%),
    linear-gradient(150deg, #C46A45 0%, #7B3F2A 55%, #1F3A2E 100%);
}
.photo__icon {
  position: absolute; inset: 0; margin: auto;
  width: 34%; max-width: 120px; height: auto; opacity: .55;
}
.photo__label {
  position: absolute; left: 12px; bottom: 12px;
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(20, 28, 23, .55); color: var(--creme);
  padding: 4px 10px; border-radius: var(--radius-pill);
}

/* ---------- Feuilles décoratives ---------- */
.leaf {
  position: absolute; pointer-events: none;
  color: var(--vert-sauge); opacity: .22;
  width: clamp(140px, 22vw, 280px); height: auto;
}
.leaf--tr { top: -20px; right: -30px; transform: rotate(18deg); }
.leaf--bl { bottom: -30px; left: -40px; transform: rotate(-150deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 90vh; min-height: 90dvh;
  display: flex; align-items: center;
  color: var(--creme);
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg { background: var(--vert-foret); overflow: hidden; }
/* Calée à droite : les palets restent visibles quand l'écran rétrécit */
.hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
/* Voile sombre : dense sous le texte (gauche), il s'efface vers la droite pour laisser voir la table */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 22, 17, .35) 0%, rgba(14, 22, 17, 0) 30%, rgba(14, 22, 17, 0) 70%, rgba(14, 22, 17, .45) 100%),
    linear-gradient(90deg, rgba(14, 26, 20, .94) 0%, rgba(18, 34, 26, .86) 35%, rgba(22, 40, 31, .55) 60%, rgba(22, 40, 31, .18) 85%, rgba(22, 40, 31, .08) 100%);
}
/* Mobile : le texte occupe toute la largeur, le voile devient uniforme */
@media (max-width: 767px) {
  .hero::before {
    background: linear-gradient(180deg, rgba(14, 26, 20, .78) 0%, rgba(14, 26, 20, .86) 60%, rgba(14, 26, 20, .92) 100%);
  }
}
.hero h1, .hero__lead { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hero__content { max-width: 640px; padding-block: 96px 64px; }
.hero h1 { color: var(--creme); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(246, 243, 236, .9); max-width: 560px; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__eyebrow { color: var(--vert-mousse); }

.reassurance { background: var(--vert-foret); color: var(--creme); border-top: 1px solid rgba(246, 243, 236, .12); }
.reassurance__inner { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.reassurance__list { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; min-width: 0; }
/* Tous les messages sur la même cellule : la hauteur suit le plus long, pas de saut */
.reassurance__item {
  grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 12px;
  font-weight: 500; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease, visibility .4s;
}
.reassurance__item.is-active { opacity: 1; visibility: visible; transform: none; }
.reassurance__item svg { width: 22px; height: 22px; color: var(--vert-sauge); flex: none; }
.reassurance__arrow {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(246, 243, 236, .25); background: transparent; color: var(--creme);
  display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.reassurance__arrow:hover { background: rgba(246, 243, 236, .12); }
.reassurance__arrow svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .reassurance__item { transition: none; transform: none; } }
@media (min-width: 768px) { .reassurance__inner { padding: 18px 0; } }

/* ---------- Qui sommes-nous ---------- */
.about { display: grid; gap: 48px; align-items: center; }
.about__media { position: relative; }
.about__media .photo { aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: var(--ombre); }
.about__media img.photo { display: block; width: 100%; height: auto; object-fit: cover; }
.about__media .leaf { right: -40px; top: auto; bottom: -50px; opacity: .3; }
.why-free {
  margin-top: 32px; padding: 24px;
  background: var(--surface); border-radius: var(--radius);
  border-left: 4px solid var(--bois); box-shadow: var(--ombre);
}
.why-free h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.why-free h3 svg { width: 22px; height: 22px; color: var(--terracotta); }
.why-free p { margin: 0; color: var(--text-muted); }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.1fr .9fr; gap: 80px; }
}

/* ---------- Promesse ---------- */
.promise { display: grid; gap: 20px; }
.promise-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--ombre);
  border: 1px solid var(--border);
}
.promise-card__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--vert-mousse); color: var(--vert-foret);
}
.promise-card__icon svg { width: 26px; height: 26px; }
.promise-card p { color: var(--text-muted); margin: 0; }
.promise-card--featured { background: var(--vert-foret); border-color: var(--vert-foret); }
.promise-card--featured h3 { color: var(--creme); }
.promise-card--featured p { color: rgba(246, 243, 236, .85); }
.promise-card--featured .promise-card__icon { background: var(--terracotta); color: var(--creme); }
@media (min-width: 900px) {
  .promise { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .promise-card--featured { transform: translateY(-16px); }
}

/* ---------- Carrousel / ProductCard ---------- */
.carousel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.carousel__head .section__head { margin-bottom: 0; }
.carousel__arrows { display: none; gap: 8px; }
.carousel__arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--heading);
  display: grid; place-items: center;
  transition: background-color var(--duree) var(--ease-out), opacity var(--duree);
}
.carousel__arrow:hover:not(:disabled) { background: var(--primary); color: var(--on-primary); }
.carousel__arrow:disabled { opacity: .4; cursor: not-allowed; }
.carousel__arrow svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .carousel__arrows { display: flex; } }

.carousel__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 24px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
@media (min-width: 600px) { .carousel__track { grid-auto-columns: 46%; } }
@media (min-width: 1024px) { .carousel__track { grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; padding-inline: 0; margin-inline: 0; } }

.product-card {
  position: relative;
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--ombre);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: box-shadow var(--duree) var(--ease-out), transform var(--duree) var(--ease-out);
}
.product-card:hover { box-shadow: var(--ombre-hover); transform: translateY(-3px); }
.product-card__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.product-card__media .photo { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms var(--ease-out); }
.product-card:hover .product-card__media .photo { transform: scale(1.05); }
.product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.product-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__body h3 { margin: 0; font-size: 1.3rem; }
.product-card__body p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.product-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.product-card__link { text-decoration: none; }
.product-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.product-card__link:focus-visible { outline: none; }
.product-card:has(.product-card__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

.carousel__footer { margin-top: 16px; text-align: center; }

.product-card--skeleton .product-card__media { background: var(--bg-alt); }
.product-card--skeleton .product-card__body { min-height: 172px; }
.product-card--skeleton span { display: block; height: 14px; border-radius: 7px; background: var(--bg-alt); }
.product-card--skeleton span:first-child { height: 22px; width: 70%; }
.product-card--skeleton span:last-child { width: 45%; margin-top: auto; }
.product-card--skeleton .product-card__media,
.product-card--skeleton span { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.load-error {
  padding: 24px; border-radius: var(--radius);
  border: 1px dashed var(--border); color: var(--text-muted); grid-column: 1 / -1;
}

/* ---------- Onglets catégories ---------- */
.tabs__list {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); margin-bottom: 32px;
  max-width: 100%;
}
.tabs__tab {
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text); font-weight: 600; font-size: .95rem;
  transition: background-color var(--duree) var(--ease-out), color var(--duree) var(--ease-out);
}
.tabs__tab[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.tabs__tab:hover:not([aria-selected="true"]) { background: var(--border); }

.category-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.category-tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4 / 5;
  text-decoration: none; color: var(--creme);
  box-shadow: var(--ombre);
}
@media (max-width: 767px) { .category-tile { aspect-ratio: 16 / 10; } }
.category-tile .photo { position: absolute; inset: 0; transition: transform 400ms var(--ease-out); }
.category-tile img.photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-tile:hover .photo { transform: scale(1.05); }
.category-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(20, 28, 23, .88) 100%);
}
.category-tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 1; }
.category-tile__body h3, .category-tile__body h4 { color: var(--creme); margin-bottom: 6px; font-size: 1.6rem; }
.category-tile__body p { margin: 0 0 10px; font-size: .92rem; color: rgba(246, 243, 236, .88); }
.category-tile__count {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600;
  background: rgba(246, 243, 236, .18); padding: 4px 12px; border-radius: var(--radius-pill);
}
.category-tile__count svg { width: 14px; height: 14px; transition: transform var(--duree) var(--ease-out); }
.category-tile:hover .category-tile__count svg { transform: translateX(3px); }

.fnb {
  margin-top: 48px; padding: 32px;
  border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--ombre);
  display: grid; gap: 24px;
}
.fnb__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.fnb__item { display: flex; gap: 14px; align-items: flex-start; }
.fnb__item svg { width: 24px; height: 24px; color: var(--primary); flex: none; margin-top: 2px; }
.fnb__item strong { display: block; color: var(--heading); }
.fnb__item span { color: var(--text-muted); font-size: .95rem; }
@media (min-width: 900px) {
  .fnb { grid-template-columns: .8fr 2fr; align-items: center; padding: 40px; }
  .fnb__list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- Différenciation ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--ombre); }
.compare {
  width: 100%; min-width: 560px;
  border-collapse: collapse; background: var(--surface);
}
.compare caption { text-align: left; }
.compare th, .compare td { padding: 20px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-titre); font-size: 1.15rem; font-weight: 600; color: var(--heading); }
.compare tbody th { font-weight: 600; color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; width: 22%; }
.compare .col-classique { color: var(--text-muted); }
.compare .col-nous { background: var(--vert-foret); color: var(--creme); font-weight: 500; }
.compare thead .col-nous { color: var(--creme); }
.compare td.col-classique::before, .compare td.col-nous::before {
  content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
@media (max-width: 599px) {
  .compare-wrap { overflow: visible; box-shadow: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare { background: transparent; }
  .compare tbody { display: grid; gap: 16px; }
  .compare tr { border-radius: var(--radius); overflow: hidden; box-shadow: var(--ombre); background: var(--surface); }
  .compare th, .compare td { padding: 14px 20px; }
  .compare tbody th { width: 100%; padding-bottom: 6px; border-bottom: 0; }
  .compare td { display: flex; flex-wrap: wrap; align-items: center; }
  .compare td::after {
    content: attr(data-label); order: -1; flex-basis: 100%;
    font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 4px; opacity: .8;
  }
  .compare tbody tr:last-child td { border-bottom: 1px solid var(--border); }
  .compare tbody tr td:last-child { border-bottom: 0; }
}
.compare td.col-classique::before { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.compare td.col-nous::before { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); color: var(--vert-sauge); }

/* ---------- Devenir partenaire ---------- */
.partners { background: var(--vert-mousse); color: var(--encre); }
.partners h2, .partners h3 { color: var(--vert-foret); }
.partners__grid { display: grid; gap: 20px; }
.partner-card {
  background: var(--creme); border-radius: var(--radius); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--ombre);
}
.partner-card p { color: var(--encre); }
.partner-card .eyebrow { color: var(--vert-foret); }
.partner-card .btn { align-self: flex-start; margin-top: auto; }
.partner-card .btn--primary { background: var(--vert-foret); color: var(--creme); }
.partner-card .btn--secondary { color: var(--vert-foret); }
.partner-card .btn--secondary:hover { background: var(--vert-foret); color: var(--creme); border-color: var(--vert-foret); }
@media (min-width: 900px) { .partners__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- CTA final ---------- */
.final-cta { text-align: center; }
.final-cta__box { max-width: 760px; margin-inline: auto; }
.final-cta__box p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 32px; }
.final-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Page Concept ---------- */
.page-intro { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) var(--section-pad); }
.page-intro__grid { display: grid; gap: 48px; align-items: center; }
.page-intro h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-intro .lead { max-width: 60ch; }
.page-intro__media { position: relative; }
.page-intro__media .photo { aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--ombre); }
.page-intro__media img.photo { display: block; width: 100%; height: auto; object-fit: cover; }
.page-intro__media .leaf { right: -40px; top: auto; bottom: -50px; opacity: .3; }
@media (min-width: 900px) { .page-intro__grid { grid-template-columns: 1.1fr .9fr; gap: 80px; } }

.ingredients { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ingredients li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 500; font-size: .95rem; color: var(--heading);
}
.ingredients svg { width: 18px; height: 18px; color: var(--terracotta); }

.manifeste {
  display: grid; gap: 32px;
  margin-top: clamp(56px, 8vw, 96px); padding-top: 40px;
  border-top: 1px solid var(--border);
}
.manifeste h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.manifeste p { margin: 0; color: var(--text-muted); max-width: 60ch; }
@media (min-width: 900px) { .manifeste { grid-template-columns: 1fr 1fr; gap: 80px; } }

.concept-block + .concept-block { margin-top: 56px; }
.subhead {
  font-family: var(--font-texte); font-size: .85rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px;
}

.venues { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.venue {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--ombre);
}
.venue__icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--vert-mousse); color: var(--vert-foret);
}
.venue__icon svg { width: 24px; height: 24px; }
.venue h4 { margin-bottom: 6px; }
.venue p { margin: 0; color: var(--text-muted); }
@media (min-width: 900px) { .venues { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.accomp { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) {
  .accomp { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; }
  .rdv { position: sticky; top: calc(var(--header-h) + 24px); }
}
.rdv {
  background: var(--vert-foret); color: var(--creme);
  border-radius: var(--radius); box-shadow: var(--ombre);
  padding: 32px 24px;
}
@media (min-width: 600px) { .rdv { padding: 40px; } }
.rdv__icon {
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--terracotta); color: var(--creme);
}
.rdv__icon svg { width: 26px; height: 26px; }
.rdv__kicker {
  display: block; margin-bottom: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--vert-mousse);
}
.rdv h3 { color: var(--creme); font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.rdv > p { color: rgba(246, 243, 236, .85); }
.rdv__list {
  list-style: none; margin: 24px 0 32px; padding: 24px 0 0;
  border-top: 1px solid rgba(246, 243, 236, .15);
  display: grid; gap: 20px;
}
.rdv__list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; color: rgba(246, 243, 236, .85); }
.rdv__list strong { display: block; color: var(--creme); margin-bottom: 2px; }
.rdv__num {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--vert-sauge); color: var(--vert-mousse);
  font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums;
}
.rdv :focus-visible { outline-color: var(--creme); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 32px; }
.timeline__item:last-child { padding-bottom: 0; }
/* Fil reliant les étapes */
.timeline__item::before {
  content: ""; position: absolute; left: 23px; top: 56px; bottom: 8px;
  width: 2px; border-radius: 1px; background: var(--border-fort);
}
.timeline__item:last-child::before { display: none; }
.timeline__icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--border-fort); color: var(--primary);
}
.timeline__icon svg { width: 22px; height: 22px; }
.timeline__step {
  display: block; margin-bottom: 4px;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
}
.timeline h4 { font-size: 1.3rem; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--text-muted); max-width: 60ch; }
.timeline__item--fin .timeline__icon { background: var(--terracotta); border-color: var(--terracotta); color: var(--creme); }

/* ---------- Footer ---------- */
.footer { background: var(--vert-foret); color: rgba(246, 243, 236, .85); padding: 64px 0 32px; }
.footer .logo { color: var(--creme); }
.footer .logo__mark { background: var(--creme); color: var(--vert-foret); }
/* Logo marron illisible sur fond vert foncé : passé en clair dans le footer */
.footer .logo__img { height: 64px; filter: brightness(0) invert(1); opacity: .92; }
.footer__grid { display: grid; gap: 40px; }
.footer h2 { font-family: var(--font-texte); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--vert-sauge); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer li { min-height: 44px; display: flex; align-items: center; }
.footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover { color: var(--creme); text-decoration: underline; text-underline-offset: 4px; }
.footer__socials { display: flex; gap: 10px; margin-top: 16px; }
.footer__socials a {
  width: 44px; height: 44px; border-radius: 50%; justify-content: center;
  border: 1px solid rgba(246, 243, 236, .25);
}
.footer__socials a:hover { background: var(--creme); color: var(--vert-foret); text-decoration: none; }
.footer__socials svg { width: 20px; height: 20px; }
.footer__bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(246, 243, 236, .15);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .875rem;
}
.footer :focus-visible { outline-color: var(--creme); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

/* ---------- Bandeau cookies ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-cookie);
  max-width: 520px; margin-left: auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--ombre-hover); padding: 20px;
  display: grid; gap: 14px;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: .92rem; }
.cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn { min-height: 44px; padding: 8px 20px; font-size: .92rem; }

/* ---------- Page contact : formulaire conversationnel ---------- */
.contact { padding-block: clamp(40px, 7vw, 96px) var(--section-pad); }
.contact__grid {
  display: grid; gap: 32px;
  grid-template-areas: "intro" "flow" "aside";
}
.contact__intro { grid-area: intro; max-width: 560px; }
.contact__intro h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.contact__intro .lead { margin: 0; }
.contact__flow { grid-area: flow; min-width: 0; }
.contact__aside { grid-area: aside; }
.contact__aside .why-free { margin-top: 0; }
@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro flow" "aside flow";
    column-gap: 72px; row-gap: 40px; align-items: start;
  }
}

.concept-choisi {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 20px 0 0; padding: 12px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--terracotta);
  font-size: .95rem;
}
.concept-choisi svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--terracotta); }
.concept-choisi strong { color: var(--heading); }
.concept-choisi a { color: var(--heading); text-underline-offset: 3px; }
.contact__points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.contact__points li { display: flex; gap: 14px; align-items: flex-start; }
.contact__points svg { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 2px; }
.contact__direct { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.contact__direct p { margin: 0 0 8px; color: var(--text-muted); font-size: .95rem; }
.contact__direct a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--heading); font-weight: 600; text-decoration: none;
}
.contact__direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__direct svg { width: 18px; height: 18px; color: var(--text-muted); }

/* Barre de progression + retour */
.flow__bar { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 10px; }
.flow__back {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px 0 10px;
  border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text-muted); font-weight: 500;
  transition: background-color var(--duree) var(--ease-out), color var(--duree) var(--ease-out);
  touch-action: manipulation;
}
.flow__back:hover { background: var(--border); color: var(--heading); }
.flow__back svg { width: 18px; height: 18px; }
.flow__count {
  margin: 0 0 0 auto;
  font-size: .875rem; font-weight: 600; letter-spacing: .02em;
  color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.flow__track { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; margin-bottom: 20px; }
.flow__track span {
  display: block; height: 100%; background: var(--terracotta);
  transform-origin: left; transform: scaleX(.25);
  transition: transform 320ms var(--ease-out);
}

/* Cartes empilées dans la même cellule : pas de saut de mise en page pendant la transition */
.flow__scene { display: grid; }
.step {
  grid-area: 1 / 1; min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--ombre);
  padding: 28px 20px;
}
@media (min-width: 600px) { .step { padding: 40px; } }
.step__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 28px; }
.step__title:focus-visible { outline: none; } /* titre focalisé par script pour les lecteurs d'écran */
.step__kicker {
  display: block; margin-bottom: 10px;
  font-family: var(--font-texte); font-size: 1rem; font-weight: 500; line-height: 1.5;
  letter-spacing: 0; color: var(--text-muted);
}

.choices { display: grid; gap: 12px; }
@media (min-width: 600px) { .choices { grid-template-columns: 1fr 1fr; gap: 16px; } }
.choice {
  display: flex; align-items: center; gap: 16px;
  width: 100%; min-height: 76px; padding: 16px 18px;
  text-align: left; font-size: 1.0625rem; font-weight: 600; line-height: 1.35;
  background: var(--bg); color: var(--text);
  border: 1.5px solid var(--border-fort); border-radius: var(--radius);
  transition: border-color var(--duree) var(--ease-out), background-color var(--duree) var(--ease-out),
              color var(--duree) var(--ease-out), box-shadow var(--duree) var(--ease-out),
              transform var(--duree) var(--ease-out);
  touch-action: manipulation;
}
.choice:hover { border-color: var(--primary); box-shadow: var(--ombre-hover); transform: translateY(-2px); }
.choice:active { transform: scale(.98); box-shadow: none; }
.choice[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.choice__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--vert-mousse); color: var(--vert-foret);
  transition: background-color var(--duree) var(--ease-out), color var(--duree) var(--ease-out);
}
.choice__icon svg { width: 22px; height: 22px; }
.choice[aria-pressed="true"] .choice__icon { background: var(--terracotta); color: var(--creme); }
.choice__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.choice__hint { font-size: .9rem; font-weight: 400; color: var(--text-muted); }
.choice[aria-pressed="true"] .choice__hint { color: inherit; opacity: .85; }
.choice__arrow { flex: none; width: 18px; height: 18px; color: var(--text-muted); transition: transform var(--duree) var(--ease-out); }
.choice:hover .choice__arrow { transform: translateX(3px); color: var(--primary); }
.choice[aria-pressed="true"] .choice__arrow { color: inherit; }
.choices--profil .choice { min-height: 96px; }

/* Champs */
.fields { display: grid; gap: 20px; }
@media (min-width: 600px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; color: var(--heading); }
.field__req { color: var(--danger); }
.field__opt { font-weight: 400; color: var(--text-muted); }
.input {
  width: 100%; min-height: 48px; padding: 12px 16px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-champ); border-radius: 12px;
  transition: border-color var(--duree) var(--ease-out);
}
.input:hover, .input:focus { border-color: var(--primary); }
.input:focus-visible { outline-offset: 1px; border-radius: 12px; }
.input::placeholder { color: var(--text-muted); opacity: .85; }
textarea.input { min-height: 180px; resize: vertical; line-height: 1.6; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field__help { margin: 0; font-size: .875rem; color: var(--text-muted); }
.field__error { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: .875rem; font-weight: 500; color: var(--danger); }
.field__error svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }

.step__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.step__kbd { margin: 0; font-size: .85rem; color: var(--text-muted); }
.step__kbd kbd { font: inherit; font-weight: 600; padding: 1px 6px; border: 1px solid var(--border-fort); border-radius: 6px; }
@media (hover: none) { .step__kbd { display: none; } }
.step__legal { margin: 20px 0 0; font-size: .85rem; color: var(--text-muted); }
.step__legal a { color: var(--heading); text-underline-offset: 3px; }

.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary:disabled:hover { background: var(--primary); color: var(--on-primary); }
.btn:disabled:active { transform: none; }
.btn__spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: tourner .7s linear infinite;
}
.btn[aria-busy="true"] .btn__spinner { display: inline-block; }
.btn[aria-busy="true"] .btn__arrow { display: none; }
@keyframes tourner { to { transform: rotate(360deg); } }

.form-alert {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 20px 0 0; padding: 14px 16px; border-radius: 12px;
  border-left: 4px solid var(--danger); background: var(--bg);
  font-size: .95rem; color: var(--text);
}
.form-alert svg { width: 20px; height: 20px; flex: none; color: var(--danger); margin-top: 2px; }

/* Piège à robots : hors écran, ignoré par les lecteurs d'écran */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.step--merci { text-align: center; padding-block: 56px; }
.step--merci p { color: var(--text-muted); max-width: 460px; margin-inline: auto; }
.merci__icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary);
}
.merci__icon svg { width: 30px; height: 30px; }
.step--merci .step__actions { justify-content: center; }

/* ---------- Page catalogue (Skill/Catalogue.md) ---------- */
/* Titre + filtres + fiche tiennent dans un écran : la fiche prend la hauteur restante */
.cat { --cat-chrome: 172px; padding-block: 18px 28px; position: relative; }
.cat__inner { display: flex; flex-direction: column; gap: 12px; }
.cat__inner > * { min-width: 0; } /* la barre de filtres défile, elle n'élargit pas la page */

.cat__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.cat__intro { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; min-width: 0; }
.cat__title { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.cat__title:focus-visible { outline: none; }
.cat__hint { margin: 0; font-size: .95rem; color: var(--text-muted); }
.cat__status { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cat__count {
  margin: 0; white-space: nowrap;
  font-size: .875rem; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
/* Minuteur du défilement automatique (5 s) : sa fin déclenche le concept suivant */
.cat__timer { width: 56px; height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.cat__timer span { display: block; height: 100%; background: var(--terracotta); transform-origin: left; transform: scaleX(0); }
.cat.is-playing .cat__timer span { animation: cat-minuteur 5s linear forwards; }
.cat .cat__timer span { animation-duration: 5s !important; } /* garde 5 s même en « mouvement réduit » */
.cat.is-paused .cat__timer span { animation-play-state: paused; }
@keyframes cat-minuteur { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cat__play {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border-fort); background: transparent; color: var(--heading);
  transition: background-color var(--duree) var(--ease-out), color var(--duree) var(--ease-out);
  touch-action: manipulation;
}
.cat__play:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.cat__play svg { width: 16px; height: 16px; }

/* Navigation des filtres : « Tout voir » + 2 familles colorées
   PC (≥ 1200px) : groupes segmentés tout visibles · mobile/tablette : listes déroulantes */
.fnav { position: relative; display: flex; align-items: center; gap: 8px; z-index: 5; }
.fgroup { --acc: var(--lieu); --tint: var(--lieu-tint); --on: var(--lieu-on); position: relative; min-width: 0; }
.fgroup--jeu { --acc: var(--jeu); --tint: var(--jeu-tint); --on: var(--jeu-on); }

/* « Tout voir » */
.fnav__all {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 14px;
  border: 1.5px solid var(--border-fort); border-radius: var(--radius-pill);
  font-size: .9rem; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color var(--duree) var(--ease-out), color var(--duree) var(--ease-out), border-color var(--duree) var(--ease-out);
  touch-action: manipulation;
}
.fnav__all svg { width: 17px; height: 17px; }
.fnav__all:hover { border-color: var(--primary); }
.fnav__all[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* Option (dans un groupe) */
.fopt {
  display: flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: .875rem; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color var(--duree) var(--ease-out), color var(--duree) var(--ease-out);
  touch-action: manipulation;
}
.fopt__ico { width: 16px; height: 16px; flex: none; color: var(--acc); }
.fopt__count, .fnav__all .fopt__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill);
  display: inline-grid; place-items: center;
  font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--surface); color: var(--text-muted);
}
.fopt:hover { background: var(--surface); color: var(--heading); }
.fopt[aria-current="true"] { background: var(--acc); color: var(--on); font-weight: 600; }
.fopt[aria-current="true"] .fopt__ico { color: currentColor; }
.fopt[aria-current="true"] .fopt__count, .fnav__all[aria-current="true"] .fopt__count { background: rgba(255, 255, 255, .22); color: inherit; }

.fgroup__label {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 0 10px 0 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--acc);
}
.fgroup__label svg { width: 16px; height: 16px; }
.fgroup__label-long { display: none; }
.fgroup__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }

/* ----- PC : groupes segmentés, tout est visible ----- */
@media (min-width: 1200px) {
  .fnav { gap: 10px; }
  .fgroup { flex: none; }
  .fgroup__toggle { display: none !important; }
  /* Compact : l'icône de famille (dans l'étiquette) suffit, pas d'icône par option */
  .fgroup .fopt__ico { display: none; }
  .fgroup .fopt { padding: 4px 10px; gap: 5px; font-size: .84rem; }
  .fgroup .fopt__count { min-width: 0; height: auto; padding: 0; background: none; font-size: .72rem; opacity: .7; }
  .fgroup .fopt[aria-current="true"] .fopt__count { background: none; opacity: .9; }
  .fgroup__label { padding: 0 6px 0 8px; }
  .fnav__all { padding-inline: 12px; font-size: .84rem; }
  .fnav__all-label { font-size: 0; }
  .fnav__all-label::after { content: "Tout"; font-size: .84rem; }
  .fgroup__menu {
    display: flex; align-items: center;
    padding: 4px; border-radius: var(--radius-pill);
    background: var(--tint);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 22%, transparent);
  }
}

/* ----- Sans JS (toutes tailles < 1200px) : groupes empilés, lisibles ----- */
@media (max-width: 1199px) {
  .fnav { flex-wrap: wrap; }
  .fgroup__menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border-radius: var(--radius); background: var(--tint); }
  .fgroup__list { flex-wrap: wrap; }
}

/* ----- Mobile / tablette avec JS : 3 boutons + listes déroulantes ----- */
@media (max-width: 1199px) {
  .js .fnav { flex-wrap: nowrap; }
  .js .fgroup { flex: 1 1 0; position: static; }
  @media (min-width: 600px) { .js .fgroup { position: relative; flex: 0 1 auto; } }

  .fgroup__toggle {
    width: 100%; display: flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 6px 12px;
    border: 1.5px solid color-mix(in srgb, var(--acc) 35%, transparent); border-radius: var(--radius-pill);
    background: var(--tint); color: var(--text);
    font-size: .875rem; text-align: left;
    transition: border-color var(--duree) var(--ease-out), background-color var(--duree) var(--ease-out), color var(--duree) var(--ease-out);
    touch-action: manipulation;
  }
  .fgroup__toggle:hover { border-color: var(--acc); }
  .fgroup__ico { width: 17px; height: 17px; flex: none; color: var(--acc); }
  .fgroup__name { flex: none; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
  .fgroup__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
  .fgroup__chev { width: 16px; height: 16px; flex: none; color: var(--text-muted); transition: transform var(--duree) var(--ease-out); }
  .fgroup__toggle[aria-expanded="true"] .fgroup__chev { transform: rotate(180deg); }
  /* Le groupe contenant le filtre actif est « allumé » */
  .fgroup.is-active .fgroup__toggle { background: var(--acc); border-color: var(--acc); color: var(--on); }
  .fgroup.is-active .fgroup__ico, .fgroup.is-active .fgroup__name, .fgroup.is-active .fgroup__chev { color: currentColor; }

  /* Liste déroulante */
  .js .fgroup__menu {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    display: block; padding: 8px;
    background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--acc);
    border-radius: var(--radius); box-shadow: var(--ombre-hover);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  @media (min-width: 600px) {
    .js .fgroup__menu { right: auto; min-width: 300px; }
    .js .fgroup--jeu .fgroup__menu { left: auto; right: 0; }
  }
  .js .fgroup.is-open .fgroup__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .fgroup__label { padding: 6px 10px 8px; }
  .js .fgroup__label-court { display: none; }
  .js .fgroup__label-long { display: inline; }
  .js .fgroup__list { flex-direction: column; gap: 2px; }
  .js .fopt { min-height: 44px; padding: 8px 12px; border-radius: 10px; white-space: normal; }
  .js .fopt__label { flex: 1; }
  .js .fopt:hover { background: var(--tint); }
  .js .fopt[aria-current="true"] { background: var(--acc); }

  /* Mobile étroit : « Tout voir » devient « Tout » */
  @media (max-width: 479px) {
    .fnav__all { padding-inline: 12px; }
    .fnav__all-label { font-size: 0; }
    .fnav__all-label::after { content: "Tout"; font-size: .9rem; }
    .fgroup__toggle { padding-inline: 10px; gap: 6px; }
    .fgroup__ico { display: none; }
  }
}

/* Fiche d'activité */
.slider { position: relative; }
/* Par défaut (avant/sans JS) : vrai carrousel horizontal, une fiche par écran, glisser au doigt/trackpad */
.slider__stage {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.slider__stage::-webkit-scrollbar { display: none; }
.slider__stage > .slide { scroll-snap-align: center; scroll-snap-stop: always; }
.slide {
  position: relative; display: grid; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--ombre);
}
.slide__media { --media-h: clamp(180px, 32vh, 260px); position: relative; height: var(--media-h); background: var(--bg-alt); overflow: hidden; }
.slide__media img, .slide__media .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__badges { order: 1; list-style: none; margin: 0; padding: 16px 20px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.slide__body { order: 2; padding: 14px 20px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.slide__title { margin: 0; font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 600; }
.slide__tagline { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.45; color: var(--heading); }
.slide__text { margin: 0; max-width: 64ch; font-size: .95rem; line-height: 1.6; color: var(--text-muted); }
.slide__cta { align-self: flex-start; margin-top: 4px; }
@media (max-width: 599px) { .slide__cta { align-self: stretch; } }

/* Badge cliquable (filtre) */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 4px 12px;
  border: 1px solid var(--border-fort); border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 500; color: var(--text); text-decoration: none;
  transition: background-color var(--duree) var(--ease-out), color var(--duree) var(--ease-out), border-color var(--duree) var(--ease-out);
  touch-action: manipulation;
}
/* Couleur de famille, identique à la navigation : vert = lieu, terracotta = jeu */
.chip--lieu { --acc: var(--lieu); --tint: var(--lieu-tint); --on: var(--lieu-on); --clair: #B9D0B5; }
.chip--jeu  { --acc: var(--jeu);  --tint: var(--jeu-tint);  --on: var(--jeu-on);  --clair: #F2B79A; }
.chip { background: var(--tint, transparent); border-color: color-mix(in srgb, var(--acc, var(--primary)) 35%, transparent); }
.chip svg { width: 15px; height: 15px; color: var(--acc, var(--terracotta)); }
.chip:hover { border-color: var(--acc, var(--primary)); }
.chip[aria-current="true"] { background: var(--acc, var(--primary)); border-color: var(--acc, var(--primary)); color: var(--on, var(--on-primary)); }
.chip[aria-current="true"] svg { color: currentColor; }

@media (min-width: 900px) {
  .slide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .slide__media { grid-area: 1 / 1; height: auto; min-height: 380px; }
  /* Dégradé bas de photo : lisibilité des badges posés dessus */
  .slide__media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(20, 28, 23, .7)); }
  .slide__body { grid-area: 1 / 2; padding: clamp(24px, 3.2vw, 44px); justify-content: center; overflow-y: auto; }
  .slide__badges { position: absolute; left: 16px; bottom: 16px; z-index: 1; width: calc(45% - 32px); padding: 0; }
  .slide__badges .chip {
    min-height: 30px; padding: 3px 10px; font-size: .75rem;
    background: rgba(20, 28, 23, .6); border-color: rgba(246, 243, 236, .28); color: var(--creme);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  /* Sur la photo : fond sombre, famille signalée par l'icône et le liseré */
  .slide__badges .chip { border-color: color-mix(in srgb, var(--clair) 55%, transparent); }
  .slide__badges .chip svg { color: var(--clair); }
  .slide__badges .chip:hover { background: rgba(20, 28, 23, .85); border-color: var(--clair); }
  .slide__badges .chip--lieu[aria-current="true"] { background: var(--vert-foret); border-color: var(--clair); color: var(--creme); }
  .slide__badges .chip--jeu[aria-current="true"] { background: var(--terracotta-fonce); border-color: var(--clair); color: #FFFFFF; }
  .slide__badges .chip[aria-current="true"] svg { color: currentColor; }
  .slide__badges .chip:focus-visible { outline-color: var(--creme); }
}

/* Mode carrousel (JS actif) : fiches empilées, une seule visible, glissement horizontal */
.slider.is-ready .slider__viewport { overflow: hidden; padding: 4px 4px 16px; margin: -4px -4px -16px; }
.slider.is-ready .slider__stage {
  grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr);
  gap: 0; overflow: visible; scroll-snap-type: none; touch-action: pan-y;
}
.slider.is-ready .slide {
  grid-area: 1 / 1; visibility: hidden;
  transition: transform 560ms var(--ease-out), visibility 0s linear 560ms;
}
.slider.is-ready .slide[data-pos="0"] { z-index: 1; visibility: visible; transform: none; transition: transform 560ms var(--ease-out), visibility 0s; }
.slider.is-ready .slide[data-pos="1"] { transform: translateX(calc(100% + 40px)); }
.slider.is-ready .slide[data-pos="-1"] { transform: translateX(calc(-100% - 40px)); }
.slider.is-ready .slide[data-pos="2"] { transform: translateX(calc(200% + 80px)); }
.slider.is-ready .slide[data-pos="-2"] { transform: translateX(calc(-200% - 80px)); }
.slider.is-ready .slide.sans-transition { transition: none !important; }

@media (min-width: 900px) {
  .slider.is-ready .slider__viewport { margin-inline: 60px; }
  .slider.is-ready .slide { height: clamp(340px, calc(100vh - var(--header-h) - var(--cat-chrome)), 640px); }
  @supports (height: 100dvh) {
    .slider.is-ready .slide { height: clamp(340px, calc(100dvh - var(--header-h) - var(--cat-chrome)), 640px); }
  }
  .slider.is-ready .slide__media { min-height: 0; }
}
/* Écrans portables peu hauts : on resserre la typo pour que la fiche reste entière */
@media (min-width: 900px) and (max-height: 760px) {
  .slide__title { font-size: 1.5rem; }
  .slide__tagline { font-size: .95rem; }
  .slide__text { font-size: .9rem; line-height: 1.5; }
  .slide__body { gap: 10px; padding: 24px 32px; }
  .slide__cta { min-height: 44px; padding-block: 10px; }
}

.slider__arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--heading);
  box-shadow: var(--ombre);
  transition: background-color var(--duree) var(--ease-out), color var(--duree) var(--ease-out), border-color var(--duree) var(--ease-out);
  touch-action: manipulation;
}
.slider__arrow:hover:not(:disabled) { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.slider__arrow:active:not(:disabled) { transform: translateY(-50%) scale(.94); }
.slider__arrow:disabled { opacity: .35; cursor: not-allowed; }
.slider__arrow svg { width: 22px; height: 22px; }
.slider__arrow--prev { left: 0; }
.slider__arrow--next { right: 0; }
@media (max-width: 899px) {
  /* Sur mobile, les flèches se posent sur la photo */
  .slider__arrow { top: calc(clamp(180px, 32vh, 260px) / 2 + 4px); width: 44px; height: 44px; }
  .slider__arrow--prev { left: 10px; }
  .slider__arrow--next { right: 10px; }
}

/* ---------- Apparition au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 50ms; }
.js .reveal[data-delay="2"] { transition-delay: 100ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .product-card:hover, .promise-card--featured { transform: none; }
}

/* ---------- Page Mentions légales ---------- */
.legal { max-width: 78ch; }
.legal h1 { margin-bottom: 1.2em; }
.legal h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 2em 0 .6em; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 1.2em; margin: .8em 0; }
.legal li { margin-bottom: .4em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }


/* ---------- Protection des images (anti copie / glisser-déposer) ---------- */
img, svg, picture, video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
