/* ==========================================================================
   Team Launcher — identité visuelle
   Sombre, sobre, une seule couleur d'accent (#668DCC) utilisée avec parcimonie.
   Touche Minecraft : la grille de blocs et le « pixel » carré (puces, repères),
   jamais de texture ni d'illustration.
   ========================================================================== */

/* ── Polices (hébergées sur le site, licence OFL) ─────────────────────── */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Jetons ───────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* Palette de marque */
  --tl-black: #111111;
  --tl-anthracite: #1a1a1a;
  --tl-graphite: #252525;
  --tl-white: #f5f5f5;
  --tl-grey: #858585;
  --tl-blue: #668dcc;
  --tl-group-violet: #8b6fd6; /* TEAM GROUPE, uniquement pour sa signature */

  /* Rôles */
  --color-bg: var(--tl-black);
  --color-surface: var(--tl-anthracite);
  --color-surface-2: var(--tl-graphite);
  --color-hair: rgba(245, 245, 245, 0.06);
  --color-line: rgba(245, 245, 245, 0.11);
  --color-line-strong: rgba(245, 245, 245, 0.2);
  --color-text: var(--tl-white);
  --color-text-muted: #9a9a9a;   /* lisible aussi sur --color-surface-2 */
  --color-text-faint: var(--tl-grey);
  --color-accent: var(--tl-blue);
  --color-accent-hover: #7d9fd6;
  --color-accent-soft: rgba(102, 141, 204, 0.12);
  --color-on-accent: var(--tl-black); /* texte sur bouton bleu : 5,6:1 */
  --color-warn: #d9a441;
  --color-error: #e5736a;
  --color-success: #7fb98f;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1160px;
  --gutter: 24px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-body: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Sans", "Microsoft YaHei", "Malgun Gothic", sans-serif;
  --font-display: "Sora", "Inter", "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Sans", "Microsoft YaHei", "Malgun Gothic", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-feature-settings: "cv11", "ss01";
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
svg { flex-shrink: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a { color: var(--color-text); text-decoration-color: var(--color-line-strong); text-underline-offset: 4px; transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease); }
a:hover { color: var(--color-accent); text-decoration-color: currentColor; }

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

::selection { background: rgba(102, 141, 204, 0.35); color: var(--tl-white); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 em, h2 em { font-style: normal; color: var(--color-accent); }

p { text-wrap: pretty; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--tl-white);
  color: var(--tl-black);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--tl-black); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Le « pixel » : carré plein, repère discret de la marque. */
.pixel {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}

.lead {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0 0 36px;
}

/* ── Boutons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.875rem; }

.btn-primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }

.btn-secondary { background: transparent; color: var(--color-text); border-color: var(--color-line-strong); }
.btn-secondary:hover { background: var(--color-surface-2); border-color: var(--color-line-strong); color: var(--color-text); }

.btn-ghost {
  height: auto;
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-line-strong);
  text-underline-offset: 6px;
}
.btn-ghost:hover { color: var(--color-text); text-decoration-color: var(--color-text); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.94rem;
  text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.text-link:hover { color: var(--color-accent); }
.text-link:hover svg { transform: translateX(3px); }

/* ── En-tête ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 17, 17, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(17, 17, 17, 0.8); backdrop-filter: saturate(140%) blur(12px); }
}
.site-header.is-scrolled { border-bottom-color: var(--color-hair); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}
/* Le fichier du logo n'est jamais modifié : seule sa taille d'affichage change. */
.logo img { display: block; width: 36px; height: 36px; border-radius: 50%; }
.logo:hover { color: var(--color-text); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.main-nav a {
  position: relative;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.main-nav a:hover { color: var(--color-text); background: rgba(245, 245, 245, 0.04); }
.main-nav a[aria-current="page"] { color: var(--color-text); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: var(--color-accent);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { height: 38px; padding: 0 16px; font-size: 0.875rem; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  color: var(--color-text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Sélecteur de langue */
.picker { position: relative; }
.picker-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.picker-toggle:hover, .picker-toggle[aria-expanded="true"] { border-color: var(--color-line-strong); color: var(--color-text); }
.picker-toggle svg { width: 16px; height: 16px; }

.picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 220px;
  padding: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  animation: menu-in 0.16s var(--ease);
}
.picker-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.picker-title { margin: 6px 8px 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-faint); }
.lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.lang-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}
.lang-list a:hover { color: var(--color-text); background: var(--color-surface-2); }
.lang-list a[aria-current="true"] { color: var(--color-text); background: var(--color-surface-2); }
.lang-list a[aria-current="true"]::before { content: ""; width: 4px; height: 4px; background: var(--color-accent); }

/* ── Accueil : héros ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 0;
}
/* Grille de blocs 16×16, très discrète, qui s'efface vers les bords. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(245, 245, 245, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 245, 245, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero > .container { position: relative; }

.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-copy .lead { margin-left: auto; margin-right: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.7);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.badge:hover { border-color: var(--color-line-strong); color: var(--color-text); }
.badge strong { color: var(--color-text); font-weight: 600; }

.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0 0 24px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--color-text-faint);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 4px; height: 4px; background: var(--color-text-faint); }

/* Capture du logiciel, présentée telle quelle. */
.showcase { position: relative; margin-top: 72px; }
.showcase-frame {
  position: relative;
  margin: 0;
  padding: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
}
.showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
}
/* Le bas de la capture se fond dans la page : on garde l'attention sur l'interface. */
.showcase::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 38%;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0), var(--color-bg) 92%);
  pointer-events: none;
}
.showcase-caption {
  position: relative;
  z-index: 1;
  margin: -40px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-faint);
}

/* ── Chiffres clés ───────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 72px auto 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 32px 28px; }
.stat dt, .stat dd { margin: 0; }
.stat + .stat { border-left: 1px solid var(--color-hair); }
.stat:first-child { padding-left: 0; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin-top: 6px; font-size: 0.875rem; color: var(--color-text-faint); }
.stats-foot { display: flex; justify-content: flex-end; padding: 16px 0 0; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 120px 0 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin: 0 0 16px; }
.section-head p { margin: 0; color: var(--color-text-muted); font-size: 1.06rem; max-width: 58ch; }

/* Fonctionnalités principales */
.feature-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-hair);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover { border-color: var(--color-line); }
.card h3 { margin: 0 0 10px; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.3; }
.card p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-accent);
}
.icon-tile svg { width: 20px; height: 20px; }

/* Autres fonctionnalités : liste dense */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--color-hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 28px;
  border-top: 1px solid var(--color-hair);
  border-left: 1px solid var(--color-hair);
  margin: -1px 0 0 -1px;
}
.feature-item svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--color-text-faint); transition: color 0.2s var(--ease); }
.feature-item:hover svg { color: var(--color-accent); }
.feature-item h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.015em; line-height: 1.35; }
.feature-item p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.55; }

/* Transparence */
.trust {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.trust .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.trust .section-head .text-link { margin-top: 28px; }
.trust-list { margin: 0; padding: 0; list-style: none; }
.trust-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  padding: 28px 0;
  border-top: 1px solid var(--color-line);
}
.trust-list li:last-child { border-bottom: 1px solid var(--color-line); }
.trust-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-accent); padding-top: 4px; }
.trust-list h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: -0.02em; }
.trust-list p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }
.trust-list a { color: var(--color-text); }

/* Appel à l'action final */
.cta { padding: 120px 0; }
.cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px;
  background: var(--color-surface);
  border: 1px solid var(--color-hair);
  border-radius: 16px;
}
/* Rangée de pixels en coin : rappel discret de la grille de blocs. */
.cta-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  background-image:
    linear-gradient(var(--color-accent), var(--color-accent)),
    linear-gradient(rgba(102, 141, 204, 0.45), rgba(102, 141, 204, 0.45)),
    linear-gradient(rgba(102, 141, 204, 0.2), rgba(102, 141, 204, 0.2));
  background-size: 12px 12px;
  background-position: 84px 0, 72px 12px, 84px 24px;
  background-repeat: no-repeat;
  pointer-events: none;
}
.cta-panel h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 10px; }
.cta-panel p { margin: 0; color: var(--color-text-muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ancienne bande CTA (pages Partenaires) */
.cta-band { padding: 0 0 120px; }

/* Apparition au défilement : uniquement si JS actif et mouvement autorisé. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ── Pages intérieures ───────────────────────────────────────────────── */
.page-header { padding: 88px var(--gutter) 48px; }
.page-header h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); letter-spacing: -0.035em; margin: 0 0 18px; }
.page-header p { color: var(--color-text-muted); max-width: 56ch; margin: 0 0 32px; font-size: 1.08rem; }
.page-header > :last-child { margin-bottom: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Téléchargement ──────────────────────────────────────────────────── */
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--color-text-faint);
}
.dl-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dl-version .pixel { width: 5px; height: 5px; }
.dl-meta a { color: var(--color-text-muted); }

.platforms { padding: 0 var(--gutter); margin-bottom: 16px; }
.download-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.captcha-block {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding: 20px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-hair);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease);
}
.captcha-title { flex: 1 1 260px; margin: 0; font-size: 0.92rem; color: var(--color-text-muted); }
.captcha-block .ap-captcha { flex: 0 0 auto; }
.captcha-hint, .captcha-error { flex: 1 1 100%; margin: 0; font-size: 0.92rem; }
.captcha-hint[data-kind="warn"] { color: var(--color-warn); font-weight: 600; }
.captcha-hint[data-kind="ok"] { color: var(--color-success); }
.captcha-error { color: var(--color-error); font-weight: 600; }
.captcha-block.needs-verification { border-color: var(--color-warn); animation: captcha-nudge 0.45s ease-out 2; }
@keyframes captcha-nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  min-height: 168px;
  padding: 24px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.platform-btn:hover { border-color: var(--color-accent); color: var(--color-text); }
.platform-btn:active { transform: translateY(1px); }
.platform-btn:disabled { opacity: 0.55; cursor: progress; }
.platform-btn.is-primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.platform-btn.is-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-on-accent); }
.platform-head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.platform-icon { width: 28px; height: 28px; flex-shrink: 0; }
.platform-arrow { width: 20px; height: 20px; opacity: 0.7; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.platform-btn:hover .platform-arrow { transform: translateY(2px); opacity: 1; }
.platform-text { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.platform-text strong { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.015em; }
.platform-text span { font-size: 0.85rem; color: var(--color-text-faint); }
.platform-btn.is-primary .platform-text span { color: rgba(17, 17, 17, 0.9); }

.release {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  margin: 0 var(--gutter);
  padding: 28px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.release h2 { margin: 0; font-size: 1.05rem; letter-spacing: -0.015em; }
.release ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.release li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-hair);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-text);
}
.release li::before { content: ""; width: 4px; height: 4px; background: var(--color-accent); }
.release-wrap { max-width: var(--container); margin: 48px auto 0; }

.download-block, .partners-grid, .contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 var(--gutter) 120px;
  align-items: start;
}
.download-block { padding-top: 48px; }
.download-block > *, .contact-block > *, .partners-grid > * { min-width: 0; }

.download-card, .partner-card, .contact-direct,
.download-instructions, .contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-hair);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.download-card h2, .partner-card h2, .contact-direct h2,
.download-instructions h3, .contact-form h2 {
  margin-top: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.download-card p, .partner-card p, .contact-direct p { color: var(--color-text-muted); }

.download-instructions ol { margin: 0; padding: 0; list-style: none; counter-reset: step; color: var(--color-text-muted); }
.download-instructions li { position: relative; padding-left: 40px; counter-increment: step; }
.download-instructions li + li { margin-top: 14px; }
.download-instructions li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text);
}
.download-instructions code {
  font-family: var(--font-mono);
  background: var(--color-bg);
  border: 1px solid var(--color-hair);
  color: var(--color-text);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

/* Comparatif */
.compare { padding: 0 var(--gutter) 120px; }
.compare h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 12px; }
.compare-intro { color: var(--color-text-muted); margin: 0 0 32px; }
.compare-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--color-hair);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--color-hair);
  text-align: center;
  vertical-align: middle;
}
.compare-table thead th {
  border-top: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.compare-table tbody th { text-align: left; font-weight: 400; color: var(--color-text-muted); }
.compare-table tbody tr:hover th, .compare-table tbody tr:hover td { background-color: rgba(245, 245, 245, 0.02); }
.compare-table .is-ours { background: var(--color-accent-soft); color: var(--color-text); }
.compare-table tbody tr:hover .is-ours { background: rgba(102, 141, 204, 0.16); }
.compare-table thead .is-ours { color: var(--color-text); }
.compare-yes, .compare-no { width: 18px; height: 18px; vertical-align: middle; }
.compare-yes { color: var(--color-accent); }
.compare-no { color: #6e6e6e; } /* pictogramme : 3:1 minimum */
.compare-empty { color: var(--color-text-faint); }
.compare-note { margin: 20px 0 0; color: var(--color-text-muted); font-size: 0.9rem; max-width: 90ch; }
.compare-note a { color: var(--color-text); }
.compare-note a:hover { color: var(--color-accent); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-line-strong); text-underline-offset: 4px; cursor: pointer; }
.link-button:hover { color: var(--color-accent); text-decoration-color: currentColor; }

.release-more { margin-top: 10px; font-size: 0.875rem; }

/* Configuration requise */
.requirements { padding: 56px var(--gutter) 0; }
.requirements h2, .faq h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 0 0 20px; }
.req-list { margin: 0; border-top: 1px solid var(--color-line); }
.req-list > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-hair);
}
.req-list dt { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.req-list dd { margin: 0; color: var(--color-text-muted); font-size: 0.94rem; }
.req-list code, .faq code {
  font-family: var(--font-mono);
  background: var(--color-surface);
  border: 1px solid var(--color-hair);
  color: var(--color-text);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

/* Sécurité du téléchargement */
.security { padding: 56px var(--gutter) 0; }
.security h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 0 0 20px; }
.security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.security-item { padding: 24px; border: 1px solid var(--color-hair); border-radius: var(--radius-lg); background: var(--color-surface); }
.security-item h3 { margin: 0 0 8px; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.35; }
.security-item p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }
.security-item a { color: var(--color-text); }

/* Galerie de captures réelles */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery-item { margin: 0; }
.gallery-item a {
  display: block;
  padding: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease);
}
.gallery-item a:hover { border-color: var(--color-accent); }
.gallery-item img { display: block; width: 100%; height: auto; border-radius: 8px; }
.gallery-item figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--color-text-faint); }

/* Conditions de mesure du comparatif */
.method {
  margin-top: 24px;
  padding: 24px 28px;
  border: 1px solid var(--color-hair);
  border-radius: var(--radius-lg);
}
.method h3 { margin: 0 0 12px; font-size: 1rem; letter-spacing: -0.01em; }
.method ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.method li { position: relative; padding-left: 18px; color: var(--color-text-muted); font-size: 0.9rem; }
.method li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; background: var(--color-text-faint); }

/* FAQ */
.faq { padding: 0 var(--gutter) 120px; }
.faq-list { border-top: 1px solid var(--color-line); }
.faq-item { border-bottom: 1px solid var(--color-hair); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 2px solid var(--color-text-faint);
  border-bottom: 2px solid var(--color-text-faint);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq-item summary:hover { color: var(--color-accent); }
.faq-item p { margin: 0 0 20px; max-width: 75ch; color: var(--color-text-muted); }
.faq-item a { color: var(--color-text); }

/* Compatibilité Java / Bedrock */
.compat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compat-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 1.25rem; }
.compat-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover); /* 4,5:1 minimum sur le fond teinté */
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.compat-tag.is-muted { background: var(--color-surface-2); color: var(--color-text-muted); }
.compat-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.compat-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.compat-list svg { width: 18px; height: 18px; margin-top: 3px; }
.compat-list .is-yes svg { color: var(--color-accent); }
.compat-list .is-no { color: var(--color-text-muted); }
.compat-list .is-no svg { color: var(--color-text-faint); }
.card .compat-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--color-hair); font-size: 0.875rem; color: var(--color-text-faint); }
.stat-label a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-line-strong); }
.stat-label a:hover { color: var(--color-text); }

/* Journal des versions */
.changelog { padding: 0 var(--gutter) 96px; }
.changelog-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-line); }
.changelog-entry {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-hair);
}
.changelog-meta h2 { margin: 0 0 6px; font-size: 1.75rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.changelog-meta time { display: block; font-size: 0.875rem; color: var(--color-text-faint); }
.changelog-current { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.8rem; font-weight: 600; color: var(--color-text); }
.changelog-current .pixel { width: 5px; height: 5px; }
.changelog-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; align-content: start; }
.changelog-notes li { display: flex; align-items: baseline; gap: 12px; color: var(--color-text-muted); }
/* Type de note : couleur discrète, le libellé porte l'information (pas la couleur seule). */
.note-type {
  flex: 0 0 auto;
  min-width: 84px;
  padding: 2px 8px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-text-muted);
}
.note-type.is-new { color: var(--color-accent-hover); border-color: rgba(102, 141, 204, 0.4); }
.note-type.is-fixed { color: var(--color-success); border-color: rgba(127, 185, 143, 0.35); }

/* ── Catalogue (Marketplace) ─────────────────────────────────────────── */
.catalog { padding: 0 var(--gutter) 120px; }
.catalog-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); /* s adapte au nombre de filtres de la source */
  gap: 12px 16px;
  align-items: end;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-hair);
  border-radius: var(--radius-lg);
}
.catalog-filters .form-row { margin: 0; }
.catalog-filters .catalog-search { grid-column: span 2; }
.catalog-filters .catalog-actions { grid-column: -2 / -1; justify-content: flex-end; }
.form-row select {
  width: 100%;
  padding: 11px 36px 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  color: var(--color-text);
  font: inherit;
  font-size: 0.95rem;
  appearance: none;
  cursor: pointer;
}
.form-row select:hover { border-color: var(--color-line-strong); }
.form-row select:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); }
.catalog-actions { display: flex; gap: 8px; }
.catalog-actions .btn { height: 46px; }
.catalog-notice { color: var(--color-warn); border-color: rgba(217, 164, 65, 0.35); background: rgba(217, 164, 65, 0.06); }
.catalog-count { margin: 0 0 16px; font-size: 0.9rem; color: var(--color-text-faint); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.catalog-card { display: flex; flex-direction: column; gap: 10px; }
.catalog-card h3 { margin: 0; }
.catalog-card h3 a { color: var(--color-text); text-decoration: none; }
.catalog-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* carte entière cliquable */
.catalog-card:hover { border-color: var(--color-accent); }
.catalog-card:focus-within { border-color: var(--color-accent); }
.catalog-card p { margin: 0; }
.catalog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 0.85rem; color: var(--color-text-faint); }
.catalog-perms { margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--color-hair); font-size: 0.85rem; color: var(--color-text-faint) !important; }
.catalog-state { padding: 48px 24px; text-align: center; border: 1px dashed var(--color-line); border-radius: var(--radius-lg); }
.catalog-state h3 { margin: 0 0 8px; font-size: 1.2rem; }
.catalog-state p { margin: 0 auto 16px; max-width: 52ch; color: var(--color-text-muted); }
.catalog-state p:last-child { margin-bottom: 0; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; font-size: 0.9rem; color: var(--color-text-muted); }
.catalog-limits { margin-top: 32px; }

.catalog-detail-head .catalog-back { margin-bottom: 24px; font-size: 0.9rem; }
.catalog-detail-head .catalog-back svg { width: 16px; height: 16px; }
.catalog-detail-head .catalog-meta { margin-bottom: 16px; }
.catalog-detail-head h1 { overflow-wrap: anywhere; }
.catalog-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding: 0 var(--gutter) 120px; align-items: start; }
.catalog-detail-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.catalog-detail-main h2 { margin: 0 0 12px; font-size: 1.1rem; }
.catalog-description { overflow-wrap: anywhere; }
.catalog-hash { display: flex; flex-direction: column; gap: 6px; }
.catalog-hash span { font-size: 0.85rem; color: var(--color-text-faint); }
.catalog-hash code, .catalog-detail .legal-facts code { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-text); overflow-wrap: anywhere; }
.catalog-detail-side { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 16px; }
.catalog-install h2 { margin: 0 0 10px; font-size: 1.1rem; }
.catalog-install > p { margin: 0 0 12px; color: var(--color-text-muted); font-size: 0.92rem; }
.catalog-steps { margin: 0 0 20px; padding-left: 20px; color: var(--color-text-muted); font-size: 0.92rem; }
.catalog-steps li + li { margin-top: 6px; }
.catalog-install .btn { width: 100%; }
.catalog-zip { padding: 0 4px; }
.catalog-zip p { margin: 6px 0 0; font-size: 0.82rem; color: var(--color-text-faint); }

/* Sources du catalogue (onglets) */
.catalog-sources {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-hair);
  border-radius: var(--radius-lg);
  scrollbar-width: none;
}
.catalog-sources::-webkit-scrollbar { display: none; }
.catalog-sources a {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.catalog-sources a:hover { color: var(--color-text); background: rgba(245, 245, 245, 0.04); }
.catalog-sources a[aria-current="page"] { color: var(--color-text); background: var(--color-surface-2); box-shadow: inset 0 -2px 0 var(--color-accent); }
.catalog-source-desc { margin: 0 0 20px; font-size: 0.9rem; color: var(--color-text-faint); max-width: 90ch; }
.catalog-filters.is-single { grid-template-columns: minmax(0, 1fr) auto; }

.catalog-icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 12px; background: var(--color-surface-2); object-fit: cover; }
.catalog-icon.is-empty { display: block; border: 1px solid var(--color-line); }
.catalog-icon.is-large { width: 80px; height: 80px; border-radius: 16px; }
.catalog-card-head { display: flex; gap: 14px; align-items: center; }
.catalog-card-head h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.catalog-author { margin: 2px 0 0; font-size: 0.85rem; color: var(--color-text-faint); }
.catalog-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--color-hair); font-size: 0.82rem; color: var(--color-text-faint); font-variant-numeric: tabular-nums; }

.catalog-title-row { display: flex; gap: 20px; align-items: center; }
.catalog-title-row h1 { margin-bottom: 4px; }
.catalog-deps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.catalog-deps li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.catalog-deps a { color: var(--color-text); }
.catalog-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.catalog-gallery a { display: block; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; }
.catalog-gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.catalog-versions .faq-item summary { font-size: 0.95rem; }
.catalog-changelog-title { margin: 8px 0 6px; font-size: 0.85rem; color: var(--color-text-faint); font-family: var(--font-body); font-weight: 600; }
.catalog-changelog {
  margin: 0 0 12px;
  max-height: 260px;
  overflow: auto;
  padding: 12px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-hair);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.catalog-zip { display: flex; flex-direction: column; gap: 6px; }
.catalog-file-meta { margin: 8px 0 0; font-size: 0.8rem; color: var(--color-text-faint); overflow-wrap: anywhere; }
.catalog-no-launcher { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--color-hair); font-size: 0.85rem; color: var(--color-text-faint); }
.catalog-no-launcher a { color: var(--color-text); }

.skin-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 16px; }
.skin-preview { display: grid; place-items: center; aspect-ratio: 1; background: var(--color-bg) repeating-conic-gradient(#1c1c1c 0% 25%, #141414 0% 50%) 0 0 / 16px 16px; border: 1px solid var(--color-line); border-radius: var(--radius); }
.skin-preview img { width: 100%; height: auto; image-rendering: pixelated; }
.skin-info h2 { margin: 0 0 12px; font-size: 1.5rem; }
.skin-info .btn { margin-top: 16px; }

/* ── Partenaires ─────────────────────────────────────────────────────── */
.partners-grid { align-items: stretch; }
.partner-card { display: flex; flex-direction: column; transition: border-color 0.2s var(--ease); }
.partner-card:hover { border-color: var(--color-line); }
.partner-card p { margin: 0 0 28px; }
.partner-logo { height: 64px; margin-bottom: 28px; }
.partner-logo img { display: block; width: auto; height: 100%; border-radius: var(--radius); }
.partner-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}
.partner-link:hover { color: var(--color-accent); }

/* ── Contact & formulaires ───────────────────────────────────────────── */
.contact-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.contact-direct a { color: var(--color-text); font-weight: 500; overflow-wrap: anywhere; }
.contact-direct a:hover { color: var(--color-accent); }

.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 8px; font-size: 0.85rem; font-weight: 500; color: var(--color-text-muted); }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form-row input:hover, .form-row textarea:hover { border-color: var(--color-line-strong); }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); }
.form-row textarea { resize: vertical; min-height: 140px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 0.9rem; border: 1px solid; }
.alert-success { color: var(--color-success); border-color: rgba(127, 185, 143, 0.3); background: rgba(127, 185, 143, 0.06); }
.alert-error { color: var(--color-error); border-color: rgba(229, 115, 106, 0.3); background: rgba(229, 115, 106, 0.06); }

/* ── Pages légales ───────────────────────────────────────────────────── */
.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding: 88px var(--gutter) 120px;
  align-items: start;
}
.legal-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.legal-aside-title { margin: 0 0 16px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-faint); }
.legal-nav { display: flex; flex-direction: column; }
.legal-nav a {
  padding: 8px 0 8px 16px;
  border-left: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.legal-nav a:hover { color: var(--color-text); }
.legal-nav a.is-current { color: var(--color-text); border-left-color: var(--color-accent); }

.legal-content { max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.legal-head { margin-bottom: 28px; }
.legal-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 14px; }
.legal-updated { margin: 0; font-size: 0.88rem; color: var(--color-text-faint); }
.legal-block { background: var(--color-surface); border: 1px solid var(--color-hair); border-radius: var(--radius-lg); padding: 28px 32px; }
.legal-block h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font-size: 1.12rem; letter-spacing: -0.02em; }
.legal-num { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 400; letter-spacing: 0; color: var(--color-accent); }
.legal-block p, .legal-block li { color: var(--color-text-muted); }
.legal-block p { margin: 0 0 12px; }
.legal-block > :last-child { margin-bottom: 0; }
.legal-facts { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); margin: 4px 0 0; }
.legal-facts dt, .legal-facts dd { margin: 0; padding: 11px 0; border-top: 1px solid var(--color-hair); font-size: 0.94rem; }
.legal-facts dt { color: var(--color-text-faint); padding-right: 16px; }
.legal-facts dd { color: var(--color-text); overflow-wrap: anywhere; }
.legal-todo { color: var(--color-warn); font-style: italic; }
.legal-translation-note { margin: 0 0 4px; padding: 12px 16px; border: 1px solid var(--color-line); border-radius: var(--radius); font-size: 0.88rem; color: var(--color-text-muted); }

/* ── Pied de page ────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--color-hair); padding: 72px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { margin: 0; max-width: 34ch; color: var(--color-text-faint); font-size: 0.9rem; }
.footer-col h2 { margin: 0 0 16px; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-faint); }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--color-text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--color-hair);
  font-size: 0.8rem;
  color: var(--color-text-faint);
}
.footer-bottom p { margin: 0; }
.footer-note { margin: 12px 0 0; max-width: 80ch; font-size: 0.78rem; color: var(--color-text-faint); }
/* Signature TEAM GROUPE : noir, blanc, et sa touche de violet. */
.group-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.group-mark strong { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; color: var(--color-text); }
.group-mark::before { content: ""; width: 6px; height: 6px; background: var(--tl-group-violet); }

/* ── Administration ──────────────────────────────────────────────────── */
.admin-login { max-width: 460px; padding: 96px var(--gutter) 120px; }
.admin-login h1 { font-size: 1.8rem; margin: 0 0 24px; }
.admin-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; padding: 80px var(--gutter) 32px; }
.admin-head h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 8px; }
.admin-head .lead { margin: 0; }
.admin-unread-count { color: var(--color-accent); font-weight: 600; }
.admin-messages { display: flex; flex-direction: column; gap: 12px; padding: 0 var(--gutter) 120px; }
.admin-empty { color: var(--color-text-muted); }
.admin-message { background: var(--color-surface); border: 1px solid var(--color-hair); border-left: 3px solid transparent; border-radius: var(--radius-lg); padding: 24px 28px; }
.admin-message.is-unread { border-left-color: var(--color-accent); }
.admin-message-head { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.admin-message-head h2 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -0.02em; }
.admin-message-from { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }
.admin-message-from a { color: var(--color-accent); }
.admin-message-head time { font-size: 0.85rem; color: var(--color-text-faint); white-space: nowrap; }
.admin-message-body { margin: 0 0 20px; color: var(--color-text); overflow-wrap: anywhere; }
.admin-message-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.admin-message-actions form { margin: 0; }
.admin-message-actions .btn { height: 38px; padding: 0 16px; font-size: 0.88rem; }
.admin-message-actions .btn-ghost { padding: 0; height: auto; }
.admin-diagnostic { padding: 0 var(--gutter) 16px; }
.admin-diagnostic summary { cursor: pointer; list-style: none; }
.admin-diagnostic summary::-webkit-details-marker { display: none; }
.admin-diagnostic summary h2 { display: inline; margin: 0; font-size: 1.1rem; }
.admin-diagnostic summary::after { content: " ▾"; color: var(--color-text-faint); }
.admin-diagnostic details[open] summary { margin-bottom: 16px; }
.admin-diagnostic-title { margin: 24px 0 8px; font-size: 0.95rem; }
.admin-diagnostic-test { margin: 16px 0 0; }
.admin-log { margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 0.82rem; color: var(--color-text-muted); }
.admin-log li { padding: 6px 0; border-top: 1px solid var(--color-hair); overflow-wrap: anywhere; }

/* ── Tablette ────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .feature-main { grid-template-columns: 1fr 1fr; }
  .feature-main .card:first-child { grid-column: 1 / -1; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--color-hair); }
  .trust { grid-template-columns: 1fr; gap: 40px; }
  .trust .section-head { position: static; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .download-form { grid-template-columns: 1fr 1fr; }
  .download-form .platform-btn.is-primary { grid-column: 1 / -1; min-height: 0; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .catalog-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .catalog-filters .catalog-search { grid-column: 1 / -1; }
}

/* ── Navigation mobile ──────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav-toggle { display: grid; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed;
    /* L'en-tête (backdrop-filter) sert de bloc conteneur : hauteur explicite. */
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 16px var(--gutter) 32px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-hair);
    overflow-y: auto;
  }
  .js .main-nav { display: none; }
  .js .site-header.nav-open .main-nav { display: flex; animation: menu-in 0.18s var(--ease); }
  .main-nav a { padding: 16px 4px; font-size: 1.1rem; font-family: var(--font-display); color: var(--color-text); border-radius: 0; border-bottom: 1px solid var(--color-hair); }
  .main-nav a:hover { background: none; }
  .main-nav a[aria-current="page"]::after { left: auto; right: 4px; bottom: 50%; margin: 0 0 -3px; width: 6px; height: 6px; }
  .main-nav .nav-cta-mobile { margin-top: 24px; border: 0; justify-content: center; font-family: var(--font-body); font-size: 0.95rem; color: var(--color-on-accent); padding: 0 22px; }
  .main-nav .nav-cta-mobile:hover { background: var(--color-accent-hover); }
  body.nav-locked { overflow: hidden; }
  /* Sans JS, le menu reste visible sous l'en-tête. */
  html:not(.js) .main-nav { position: static; padding: 0 0 12px; border: 0; }
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-top: 12px; }
}
@media (min-width: 1181px) {
  .nav-cta-mobile { display: none !important; }
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  :root { --gutter: 20px; --header-h: 62px; }
  .header-cta { display: none; }
  .logo span { font-size: 0.95rem; }
  .hero { padding-top: 64px; }
  .hero h1 { letter-spacing: -0.035em; }
  .lead { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .showcase { margin-top: 48px; }
  .showcase-frame { padding: 3px; border-radius: 9px; }
  .showcase-frame img { border-radius: 6px; }
  .showcase-caption { margin-top: -16px; }
  .stats { margin-top: 48px; }
  .stat { padding: 24px 16px 24px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .section { padding-top: 88px; }
  .section-head { margin-bottom: 36px; }
  .feature-main, .feature-list { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .feature-item { padding: 22px 20px; }
  .cta { padding: 88px 0; }
  .cta-panel { padding: 36px 24px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .page-header { padding: 64px var(--gutter) 36px; }
  .download-form { grid-template-columns: 1fr; }
  .platform-btn { min-height: 0; flex-direction: row; align-items: center; gap: 16px; padding: 20px; }
  .platform-head { width: auto; }
  .platform-arrow { display: none; }
  .platform-text { margin-top: 0; }
  .release { grid-template-columns: 1fr; gap: 16px; }
  .compat-grid { grid-template-columns: 1fr; }
  .security-grid, .gallery { grid-template-columns: 1fr; }
  .catalog-filters { grid-template-columns: 1fr 1fr; padding: 16px; }
  .catalog-filters .catalog-search, .catalog-filters .catalog-actions { grid-column: 1 / -1; }
  .catalog-actions .btn { flex: 1; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-detail { grid-template-columns: 1fr; padding-bottom: 80px; }
  .catalog-detail-side { position: static; }
  .skin-card { grid-template-columns: 1fr; }
  .skin-preview { max-width: 240px; }
  .catalog-title-row { align-items: flex-start; gap: 14px; }
  .catalog-icon.is-large { width: 56px; height: 56px; border-radius: 12px; }
  .catalog-filters.is-single { grid-template-columns: 1fr; }
  .catalog { padding-bottom: 80px; }
  .security { padding-top: 40px; }
  .req-list > div { grid-template-columns: 1fr; gap: 4px; }
  .changelog-entry { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .method { padding: 20px; }
  .faq { padding-bottom: 80px; }
  .requirements { padding-top: 40px; }
  .download-block, .partners-grid, .contact-block { grid-template-columns: 1fr; padding-bottom: 80px; }
  .download-card, .partner-card, .contact-direct, .download-instructions, .contact-form { padding: 24px; }
  .compare { padding-bottom: 80px; }
  .legal-layout { grid-template-columns: 1fr; gap: 40px; padding: 64px var(--gutter) 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-aside { position: static; }
  .legal-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .legal-nav a { padding: 6px 12px; border: 1px solid var(--color-line); border-radius: 999px; font-size: 0.85rem; }
  .legal-nav a.is-current { border-color: var(--color-accent); }
}
@media (max-width: 520px) {
  .legal-block { padding: 22px 20px; }
  .legal-facts { grid-template-columns: 1fr; }
  .legal-facts dt { padding-bottom: 0; }
  .legal-facts dd { border-top: 0; padding-top: 2px; }
}
@media (max-width: 350px) {
  .site-header .logo > span { display: none; }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat, .stat:nth-child(3) { padding: 20px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--color-hair); }
}

/* ── Espace personnel (/compte) et favoris ───────────────────────────── */
.header-account { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius); color: var(--color-text-muted); border: 1px solid transparent; }
.header-account:hover, .header-account[aria-current="page"] { color: var(--color-text); border-color: var(--color-line-strong); }
.header-account svg { width: 20px; height: 20px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 40px; }
.account-grid .card h2, .account-grid .card h3 { margin-top: 0; }
.account-providers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.provider-btn { display: inline-flex; align-items: center; gap: 10px; }
.provider-btn svg { width: 20px; height: 20px; flex: none; }
.provider-discord svg { color: #8c9eff; }
.check-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; color: var(--color-text-muted); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 10px; height: 6px; border-left: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); transform: rotate(-45deg); }
.account-section { margin-bottom: 40px; }
.account-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.account-section-head h2 { margin: 0; }
.count-pill { display: inline-block; min-width: 1.8em; padding: 1px 8px; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent); font-size: 0.8rem; text-align: center; vertical-align: middle; }
.empty-state { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 32px 20px; }
.empty-state p { margin: 0; color: var(--color-text-muted); }
.fav-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fav-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.fav-item-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.fav-item-title { color: var(--color-text); font-weight: 600; overflow-wrap: anywhere; }
.fav-item-title:hover { color: var(--color-accent-hover); }
.fav-item-date { color: var(--color-text-faint); font-size: 0.85rem; }
.fav-item form { margin: 0; flex: none; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; }
.account-danger { border-color: rgba(229, 115, 106, 0.3); }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 16px; color: var(--color-text-muted); font-size: 0.9rem; cursor: pointer; }
.check-row input { margin-top: 3px; accent-color: var(--color-error); }
.btn-danger { background: transparent; color: var(--color-error); border-color: rgba(229, 115, 106, 0.5); }
.btn-danger:hover { background: rgba(229, 115, 106, 0.1); color: var(--color-error); border-color: var(--color-error); }
.muted { color: var(--color-text-muted); }
.fav-box { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; }
.fav-form { margin: 0; }
.fav-btn { display: inline-flex; align-items: center; gap: 8px; }
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn.is-on { color: #f2c94c; border-color: rgba(242, 201, 76, 0.45); }
.fav-hint { font-size: 0.85rem; color: var(--color-text-muted); }
.fav-flash { flex-basis: 100%; margin: 0; font-size: 0.85rem; color: var(--color-success); }
@media (max-width: 720px) {
  .account-grid { grid-template-columns: 1fr; }
  .fav-item { flex-direction: column; align-items: flex-start; }
  .account-providers .btn { width: 100%; justify-content: center; }
}

/* ── Thème de Noël (classe « saison-noel », période des fêtes) ─────────── */
.saison-noel {
  --noel-red: #c8423b;
  --noel-green: #2f8f5b;
  --noel-gold: #e0b54a;
  --noel-snow: #f5f5f5;
}

/* Guirlande lumineuse sous l'en-tête : fil sombre, ampoules qui scintillent. */
.noel-guirlande {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 22px;
  display: flex;
  justify-content: space-between;
  padding: 0 1.5%;
  pointer-events: none;
  overflow: hidden;
}
.noel-guirlande::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 14px;
  border-bottom: 1.5px solid rgba(245, 245, 245, 0.16);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.noel-guirlande span {
  position: relative;
  width: 7px;
  height: 11px;
  margin-top: 5px;
  border-radius: 50% 50% 45% 45%;
  background: var(--noel-red);
  box-shadow: 0 0 8px 1px var(--noel-red);
  animation: noel-scintille 2.4s ease-in-out infinite;
}
.noel-guirlande span::before {
  content: "";
  position: absolute;
  left: 1.5px;
  top: -3px;
  width: 4px;
  height: 3px;
  border-radius: 1px;
  background: #3a3a3a;
}
.noel-guirlande span:nth-child(4n+2) { background: var(--noel-gold); box-shadow: 0 0 8px 1px var(--noel-gold); animation-delay: -0.6s; }
.noel-guirlande span:nth-child(4n+3) { background: var(--noel-green); box-shadow: 0 0 8px 1px var(--noel-green); animation-delay: -1.2s; }
.noel-guirlande span:nth-child(4n) { background: var(--color-accent); box-shadow: 0 0 8px 1px var(--color-accent); animation-delay: -1.8s; }
.noel-guirlande span:nth-child(odd) { margin-top: 8px; }
@keyframes noel-scintille {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; box-shadow: none; }
}
@media (max-width: 720px) {
  .noel-guirlande span:nth-child(n+17) { display: none; }
}

/* Neige (canvas créé par noel.js). */
.noel-neige {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  pointer-events: none;
}

/* Boules suspendues dans le haut de la page d'accueil. */
.noel-boules {
  position: absolute;
  top: 0;
  right: max(2%, calc(50% - 640px));
  width: 260px;
  height: 190px;
  pointer-events: none;
  z-index: 1;
}
.noel-boule { transform-box: view-box; animation: noel-balance 5s ease-in-out infinite; }
.noel-boule-1 { transform-origin: 40px 0; }
.noel-boule-2 { transform-origin: 130px 0; animation-duration: 6.2s; animation-delay: -1.5s; }
.noel-boule-3 { transform-origin: 215px 0; animation-duration: 5.6s; animation-delay: -3s; }
@keyframes noel-balance {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
@media (max-width: 1000px) {
  .noel-boules { width: 170px; height: 124px; right: 8px; opacity: 0.8; }
}

/* Compte à rebours sous le badge de version. */
.noel-compte {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -14px 0 24px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.noel-compte svg { width: 16px; height: 16px; color: var(--noel-gold); flex: none; }
.noel-compte strong { color: var(--noel-gold); font-weight: 700; }

/* Neige posée sur le bouton principal de l'en-tête et sur les trois grandes cartes. */
.saison-noel .header-cta,
.saison-noel .feature-main .card { position: relative; }
.saison-noel .header-cta::after,
.saison-noel .feature-main .card::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: -5px;
  height: 9px;
  background:
    radial-gradient(ellipse 9% 70% at 8% 100%, var(--noel-snow) 98%, transparent 100%),
    radial-gradient(ellipse 12% 90% at 26% 100%, var(--noel-snow) 98%, transparent 100%),
    radial-gradient(ellipse 10% 75% at 47% 100%, var(--noel-snow) 98%, transparent 100%),
    radial-gradient(ellipse 13% 95% at 69% 100%, var(--noel-snow) 98%, transparent 100%),
    radial-gradient(ellipse 9% 70% at 90% 100%, var(--noel-snow) 98%, transparent 100%),
    linear-gradient(var(--noel-snow), var(--noel-snow)) bottom / 100% 45% no-repeat;
  border-radius: 8px 8px 3px 3px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.saison-noel .feature-main .card::after { left: 10px; right: 10px; top: -7px; height: 14px; }

/* Haut de l'accueil en nuit de Noël : ciel d'hiver, lune, lueurs festives
   et forêt de sapins enneigés derrière la capture du launcher. */
.saison-noel .hero {
  background:
    radial-gradient(120% 75% at 50% 0%, #15243a 0%, #111a28 38%, rgba(17, 17, 17, 0) 78%),
    var(--color-bg);
}
.saison-noel .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff6d6' stop-opacity='.20'/%3E%3Cstop offset='.45' stop-color='%23fff6d6' stop-opacity='.055'/%3E%3Cstop offset='1' stop-color='%23fff6d6' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='m' cx='.36' cy='.32' r='.8'%3E%3Cstop offset='0' stop-color='%23fffdf3'/%3E%3Cstop offset='.80' stop-color='%23f0ebd6'/%3E%3Cstop offset='1' stop-color='%23e4ddc0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='80' cy='80' r='80' fill='url(%23g)'/%3E%3Ccircle cx='80' cy='80' r='30' fill='url(%23m)'/%3E%3Cg fill='%23cfc196' fill-opacity='.55'%3E%3Ccircle cx='70' cy='72' r='6'/%3E%3Ccircle cx='92' cy='88' r='4.5'/%3E%3Ccircle cx='85' cy='65' r='3'/%3E%3Ccircle cx='73' cy='95' r='3.5'/%3E%3Ccircle cx='97' cy='74' r='2.2'/%3E%3Ccircle cx='62' cy='86' r='2'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fffdf3' stroke-opacity='.5' stroke-width='1'%3E%3Ccircle cx='70' cy='72' r='6.4'/%3E%3Ccircle cx='92' cy='88' r='4.9'/%3E%3C/g%3E%3C/svg%3E") 17% 6% / 170px 170px no-repeat,
    radial-gradient(42% 32% at 8% 30%, rgba(200, 66, 59, 0.16), transparent 70%),
    radial-gradient(42% 32% at 92% 24%, rgba(47, 143, 91, 0.18), transparent 70%),
    radial-gradient(30% 20% at 50% 46%, rgba(224, 181, 74, 0.08), transparent 70%);
  pointer-events: none;
}
.saison-noel .showcase { isolation: isolate; }
/* Panneau musique / neige, en bas à gauche. */
.noel-panneau {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
@supports (backdrop-filter: blur(1px)) {
  .noel-panneau { background: rgba(26, 26, 26, 0.78); backdrop-filter: blur(10px); }
}
.noel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  font: 600 0.85rem var(--font-body);
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.noel-btn:hover { background: var(--color-surface-2); }
.noel-btn svg { width: 20px; height: 20px; flex: none; }
.noel-musique { background: var(--noel-red); color: #fff; }
.noel-musique:hover { background: #d9554e; }
.noel-ico-pause { display: none; }
.noel-panneau.is-playing .noel-ico-play { display: none; }
.noel-panneau.is-playing .noel-ico-pause { display: block; }
.noel-panneau:not(.is-playing) .noel-musique { animation: noel-appel 2.6s ease-in-out 3; }
@keyframes noel-appel {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 66, 59, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(200, 66, 59, 0); }
}
.noel-neige-btn { padding: 0; width: 44px; color: var(--color-text-muted); }
.noel-neige-btn[aria-pressed="true"] { color: #bcd2f2; }
.noel-volume { display: flex; align-items: center; padding: 0 4px; }
.noel-volume input { width: 84px; accent-color: var(--noel-red); cursor: pointer; }
@media (max-width: 720px) {
  .noel-btn-label { display: none; }
  .noel-musique { padding: 0; width: 44px; }
  .noel-volume input { width: 64px; }
}

/* Navigation en mode Noël : bande sucre d'orge sous l'en-tête, page active
   dorée avec une étoile, survols rouge et or. */
.saison-noel .site-header { background: linear-gradient(180deg, rgba(22, 34, 54, 0.94), rgba(17, 17, 17, 0.9)); }
.saison-noel .site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 3px;
  background: repeating-linear-gradient(-45deg, var(--noel-red) 0 9px, #f5f5f5 9px 18px);
  opacity: 0.9;
  pointer-events: none;
}
.saison-noel .site-header .noel-guirlande:not(.noel-guirlande-bas) { top: calc(100% + 3px); }
.saison-noel .main-nav a:hover { color: #fff; background: rgba(200, 66, 59, 0.16); }
.saison-noel .main-nav a[aria-current="page"] { color: var(--noel-gold); }
.saison-noel .main-nav a[aria-current="page"]::after {
  width: 10px;
  height: 10px;
  margin-left: -5px;
  bottom: -7px;
  background: var(--noel-gold);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.saison-noel .picker-toggle:hover,
.saison-noel .picker-toggle[aria-expanded="true"],
.saison-noel .header-account:hover,
.saison-noel .header-account[aria-current="page"],
.saison-noel .nav-toggle:hover { border-color: var(--noel-gold); color: var(--noel-gold); }

/* Boutons : rouge de Noël liseré d'or, secondaires dorés au survol. */
.saison-noel .btn-primary {
  background: linear-gradient(180deg, #d4504a, #b8362f);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(224, 181, 74, 0.6), 0 6px 18px rgba(200, 66, 59, 0.28);
}
.saison-noel .btn-primary:hover { background: linear-gradient(180deg, #df5e58, #c43e37); color: #fff; }
.saison-noel .btn-secondary:hover { border-color: var(--noel-gold); color: #fff; background: rgba(224, 181, 74, 0.08); }
.saison-noel .platform-btn.is-primary { background: linear-gradient(180deg, #d4504a, #b8362f); border-color: rgba(224, 181, 74, 0.7); color: #fff; }
.saison-noel .platform-btn.is-primary:hover { background: linear-gradient(180deg, #df5e58, #c43e37); border-color: var(--noel-gold); color: #fff; }
.saison-noel .platform-btn.is-primary .platform-text span { color: rgba(255, 255, 255, 0.88); }
.saison-noel .platform-btn:not(.is-primary):hover { border-color: rgba(224, 181, 74, 0.5); }

/* Cadre de la capture : sucre d'orge rouge et blanc, nœud doré. */
.saison-noel .showcase-frame {
  padding: 8px;
  border: 0;
  background: repeating-linear-gradient(-45deg, #c8423b 0 14px, #f3f3f3 14px 28px);
  box-shadow: 0 0 0 1px rgba(224, 181, 74, 0.6), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.saison-noel .showcase-frame img { border-radius: 8px; }
.saison-noel .showcase-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 120px;
  height: 56px;
  transform: translateX(-50%);
  z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 56'%3E%3Cpath d='M56 30 44 56 54 50 58 32Z' fill='%23b8901e'/%3E%3Cpath d='M64 30 76 56 66 50 62 32Z' fill='%23b8901e'/%3E%3Cpath d='M60 28C40 0 8 6 18 26C24 38 46 34 60 28Z' fill='%23e0b54a'/%3E%3Cpath d='M60 28C80 0 112 6 102 26C96 38 74 34 60 28Z' fill='%23e0b54a'/%3E%3Cpath d='M60 28C46 14 26 12 26 22' stroke='%23b8901e' stroke-width='2' fill='none'/%3E%3Cpath d='M60 28C74 14 94 12 94 22' stroke='%23b8901e' stroke-width='2' fill='none'/%3E%3Ccircle cx='60' cy='29' r='8' fill='%23c9a227'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

/* Cartes : liseré rouge, or et vert en haut, brin de houx dans le coin. */
.saison-noel .card,
.saison-noel .legal-block {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath d='M2 14C6 6 12 6 14 12C10 15 6 16 2 14Z' fill='%232f8f5b'/%3E%3Cpath d='M26 14C22 6 16 6 14 12C18 15 22 16 26 14Z' fill='%23277a4d'/%3E%3Ccircle cx='11.5' cy='12.5' r='2.4' fill='%23d9443a'/%3E%3Ccircle cx='16.5' cy='12.5' r='2.4' fill='%23d9443a'/%3E%3Ccircle cx='14' cy='9' r='2.4' fill='%23e0564c'/%3E%3C/svg%3E"),
    linear-gradient(90deg, var(--noel-red), var(--noel-gold) 50%, var(--noel-green));
  background-size: 26px 20px, 100% 3px;
  background-position: right 12px top 12px, top;
  background-repeat: no-repeat;
}
.saison-noel .card:hover,
.saison-noel .legal-block:hover { border-color: rgba(224, 181, 74, 0.35); }

/* Tableau comparatif (page téléchargement) en mode Noël : bordure sucre d'orge,
   en-tête de nuit d'hiver, colonne Team Launcher rouge et or avec une étoile,
   coches vertes, survol rouge. */
.saison-noel .compare h2::before {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 12px;
  vertical-align: -0.05em;
  background: var(--noel-gold);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.saison-noel .compare-scroll {
  border: 1px solid rgba(224, 181, 74, 0.4);
  padding-top: 6px;
  background:
    repeating-linear-gradient(-45deg, var(--noel-red) 0 12px, #f3f3f3 12px 24px) top / 100% 6px no-repeat,
    var(--color-surface);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(200, 66, 59, 0.15);
}
.saison-noel .compare-table thead th {
  background: linear-gradient(180deg, #172840, #141c2a);
  color: #e8edf5;
}
.saison-noel .compare-table thead .is-ours {
  background: linear-gradient(180deg, #d4504a, #b2342d);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--noel-gold);
}
.saison-noel .compare-table thead .is-ours::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  background: var(--noel-gold);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.saison-noel .compare-table tbody .is-ours {
  background: rgba(224, 181, 74, 0.09);
  box-shadow: inset 1px 0 0 rgba(224, 181, 74, 0.35), inset -1px 0 0 rgba(224, 181, 74, 0.35);
}
.saison-noel .compare-table tbody tr:nth-child(even) th,
.saison-noel .compare-table tbody tr:nth-child(even) td:not(.is-ours) { background-color: rgba(245, 245, 245, 0.015); }
.saison-noel .compare-table tbody tr:hover th,
.saison-noel .compare-table tbody tr:hover td { background-color: rgba(200, 66, 59, 0.08); }
.saison-noel .compare-table tbody tr:hover .is-ours { background: rgba(224, 181, 74, 0.16); }
.saison-noel .compare-yes { color: #5fbf85; }
.saison-noel .compare-table .is-ours .compare-yes { color: var(--noel-gold); }

/* Haut des autres pages : même nuit d'hiver que l'accueil, forêt enneigée. */
html.saison-noel body { overflow-x: clip; }
.saison-noel .page-header { position: relative; padding-bottom: 96px; }
.saison-noel .page-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 170' preserveAspectRatio='xMidYMax slice'%3E%3Cpath d='M0 150Q200 105 420 132T820 120T1200 138V170H0Z' fill='%23dfe7f2'/%3E%3Cg fill='%23173d2c'%3E%3Cpath d='M40 150 78 52 116 150Z'/%3E%3Cpath d='M120 145 150 74 180 145Z'/%3E%3Cpath d='M230 140 276 30 322 140Z'/%3E%3Cpath d='M330 135 360 70 390 135Z'/%3E%3Cpath d='M860 128 898 40 936 128Z'/%3E%3Cpath d='M940 132 968 72 996 132Z'/%3E%3Cpath d='M1030 140 1074 26 1118 140Z'/%3E%3Cpath d='M1120 145 1150 80 1180 145Z'/%3E%3C/g%3E%3Cg fill='%231f5239'%3E%3Cpath d='M160 150 206 46 252 150Z'/%3E%3Cpath d='M960 140 1004 50 1048 140Z'/%3E%3C/g%3E%3Cg fill='%23f5f5f5'%3E%3Cpath d='M78 52 89 80 67 80Z'/%3E%3Cpath d='M276 30 289 62 263 62Z'/%3E%3Cpath d='M206 46 218 74 194 74Z'/%3E%3Cpath d='M898 40 909 68 887 68Z'/%3E%3Cpath d='M1074 26 1087 58 1061 58Z'/%3E%3Cpath d='M1004 50 1015 76 993 76Z'/%3E%3C/g%3E%3Cpath d='M0 170V156Q300 138 600 150T1200 152V170Z' fill='%23f5f5f5'/%3E%3C/svg%3E") bottom center / 1200px 80px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff6d6' stop-opacity='.5'/%3E%3Cstop offset='.45' stop-color='%23fff6d6' stop-opacity='.12'/%3E%3Cstop offset='1' stop-color='%23fff6d6' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='m' cx='.36' cy='.32' r='.8'%3E%3Cstop offset='0' stop-color='%23fffdf3'/%3E%3Cstop offset='.65' stop-color='%23f0e7c8'/%3E%3Cstop offset='1' stop-color='%23d6c99e'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='80' cy='80' r='80' fill='url(%23g)'/%3E%3Ccircle cx='80' cy='80' r='30' fill='url(%23m)'/%3E%3Cg fill='%23cfc196' fill-opacity='.55'%3E%3Ccircle cx='70' cy='72' r='6'/%3E%3Ccircle cx='92' cy='88' r='4.5'/%3E%3Ccircle cx='85' cy='65' r='3'/%3E%3Ccircle cx='73' cy='95' r='3.5'/%3E%3Ccircle cx='97' cy='74' r='2.2'/%3E%3C/g%3E%3C/svg%3E") 10% 12% / 120px 120px no-repeat,
    radial-gradient(120% 95% at 50% 0%, #15243a 0%, #111a28 50%, rgba(17, 17, 17, 0) 92%);
  pointer-events: none;
}

/* Pied de page : tapis de neige, guirlande, sapins, cadeaux, vœux. */
.saison-noel .site-footer { position: relative; padding-top: 96px; }
.noel-sol {
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 28px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28' preserveAspectRatio='none'%3E%3Cpath d='M0 28V14Q15 4 32 11T64 9T98 12T130 7T164 11T198 8T240 13V28Z' fill='%23dfe6f0'/%3E%3Cpath d='M0 28V18Q20 9 40 15T82 13T120 17T160 12T200 16T240 15V28Z' fill='%23f5f5f5'/%3E%3C/svg%3E") 0 0 / 240px 100% repeat-x;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.noel-guirlande-bas { top: 14px; }
.noel-scene {
  position: absolute;
  right: max(16px, calc(50% - 600px));
  top: -74px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}
.noel-sapin { width: 58px; height: 80px; }
.noel-sapin-petit { width: 40px; height: 56px; }
.noel-cadeaux { width: 84px; height: 38px; margin-bottom: 2px; }
.noel-lumiere { animation: noel-scintille 1.8s ease-in-out infinite; }
.noel-lumiere:nth-of-type(2n) { animation-delay: -0.9s; }
.noel-lumiere:nth-of-type(3n) { animation-delay: -0.4s; }

/* Petites étoiles qui scintillent (ajoutées par noel.js). */
.noel-zone { position: relative; }
.noel-etoiles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.noel-etoiles span {
  position: absolute;
  background: #f5f5f5;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0;
  animation: noel-etoile 3s ease-in-out infinite;
}
.noel-etoiles span.is-or { background: var(--noel-gold); }
@keyframes noel-etoile {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1) rotate(45deg); }
}
.noel-zone > :not(.noel-etoiles):not(.noel-boules):not(.noel-guirlande):not(.noel-sol):not(.noel-scene):not(.noel-pile):not(.noel-filante) { position: relative; z-index: 1; }

/* Traîneau du Père Noël qui traverse l'écran (lancé par noel.js). */
.noel-traineau {
  position: fixed;
  left: 0;
  top: 120px;
  z-index: 44;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(-110%);
}
.noel-traineau.is-flying { visibility: visible; animation: noel-vol 17s linear 1 forwards; }
@keyframes noel-vol {
  from { transform: translateX(-110%); }
  to { transform: translateX(calc(100vw + 20px)); }
}
.noel-traineau-vol {
  display: flex;
  align-items: center;
  animation: noel-flotte 2.6s ease-in-out infinite;
}
@keyframes noel-flotte {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}
.noel-banniere {
  position: relative;
  margin-right: 34px;
  padding: 8px 18px;
  border: 2px solid var(--noel-gold);
  border-radius: 8px;
  background: var(--noel-red);
  color: #fff;
  font: 700 1rem var(--font-display);
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
/* corde vers le traîneau */
.noel-banniere::after {
  content: "";
  position: absolute;
  right: -34px;
  top: 50%;
  width: 34px;
  border-top: 2px dashed var(--noel-gold);
}
/* A sparse particle trail fades out naturally without a hard gradient edge. */
.noel-trainee {
  position: absolute;
  right: 100%;
  top: 50%;
  width: 200px;
  height: 64px;
  transform: translateY(-50%);
  overflow: visible;
  pointer-events: none;
}
.noel-anim .noel-trainee-etoile { animation: noel-poussiere 2.8s ease-in-out infinite alternate; }
.noel-anim .noel-trainee-etoile:nth-child(2) { animation-delay: -.9s; }
.noel-anim .noel-trainee-etoile:nth-child(3) { animation-delay: -1.8s; }
@keyframes noel-poussiere { to { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .noel-anim .noel-trainee-etoile { animation: none; } }
.noel-traineau-svg { width: 360px; height: 87px; overflow: visible; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)); }
/* Bulle « Oh oh oh ! » au-dessus du Père Noël. */
.noel-traineau-corps { position: relative; display: block; }
.noel-bulle {
  position: absolute;
  left: 9%;
  bottom: calc(100% + 4px);
  padding: 6px 12px;
  border-radius: 14px;
  background: #fff;
  color: #b3312b;
  font: 800 0.95rem var(--font-display);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transform-origin: 20% 100%;
  animation: noel-bulle 3.2s ease-in-out infinite;
}
.noel-bulle::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}
@keyframes noel-bulle {
  0%, 12% { transform: scale(0); opacity: 0; }
  22%, 78% { transform: scale(1); opacity: 1; }
  88%, 100% { transform: scale(0); opacity: 0; }
}
.noel-patte line { stroke: #8a5a35; stroke-width: 4; stroke-linecap: round; }
.noel-patte { transform-box: fill-box; transform-origin: 50% 0; animation: noel-galop 0.45s ease-in-out infinite alternate; }
.noel-patte-b { animation-delay: -0.22s; }
@keyframes noel-galop {
  from { transform: rotate(-14deg); }
  to { transform: rotate(14deg); }
}
@media (max-width: 720px) {
  .noel-traineau { top: 96px; }
  .noel-traineau-svg { width: 230px; height: 56px; }
  .noel-banniere { font-size: 0.8rem; padding: 6px 12px; margin-right: 24px; }
  .noel-bulle { font-size: 0.75rem; padding: 4px 9px; }
  .noel-banniere::after { right: -24px; width: 24px; }
  .noel-trainee { width: 120px; height: 40px; }
}

/* Étoiles filantes dans le ciel du haut de page (insérées par noel.js). */
.noel-filante {
  position: absolute;
  width: 130px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 250, 230, 0.95));
  filter: drop-shadow(0 0 6px rgba(255, 246, 214, 0.9));
  transform: rotate(-22deg) translateX(0);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: noel-filante 9s linear infinite;
}
.noel-filante::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fffaf0;
  box-shadow: 0 0 10px 3px rgba(255, 246, 214, 0.8);
}
@keyframes noel-filante {
  0%, 82% { opacity: 0; transform: rotate(-22deg) translateX(0); }
  84% { opacity: 1; }
  96% { opacity: 1; }
  100% { opacity: 0; transform: rotate(-22deg) translateX(420px); }
}

/* Bonhomme de neige du pied de page. */
.noel-bonhomme { width: 46px; height: 64px; }

/* Piles de petits cadeaux (insérées par noel.js). */
.noel-pile { position: absolute; width: 120px; height: 64px; pointer-events: none; z-index: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.hero.noel-has-pile .noel-pile { left: max(24px, calc(50% - 600px)); top: 250px; transform: rotate(-4deg); }
.page-header.noel-has-pile .noel-pile { right: var(--gutter); bottom: 4px; width: 100px; height: 54px; }
@media (max-width: 1000px) { .noel-pile { display: none; } }
.noel-scene-gauche { right: auto; left: max(16px, calc(50% - 600px)); }

/* Boules suspendues en haut des pages intérieures (insérées par noel.js). */
.noel-has-boules { position: relative; }
.noel-has-boules .noel-boules { right: var(--gutter); top: 0; width: 200px; height: 146px; }
@media (max-width: 720px) { .noel-has-boules .noel-boules { width: 120px; height: 88px; opacity: 0.75; } }

/* Neige sur les blocs d'appel, les cartes du catalogue et les boutons de téléchargement. */
.saison-noel .cta-panel,
.saison-noel .catalog-card,
.saison-noel .platform-btn { position: relative; }
.saison-noel .cta-panel::after,
.saison-noel .catalog-card::after,
.saison-noel .platform-btn::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: -7px;
  height: 14px;
  background:
    radial-gradient(ellipse 9% 70% at 8% 100%, var(--noel-snow) 98%, transparent 100%),
    radial-gradient(ellipse 12% 90% at 26% 100%, var(--noel-snow) 98%, transparent 100%),
    radial-gradient(ellipse 10% 75% at 47% 100%, var(--noel-snow) 98%, transparent 100%),
    radial-gradient(ellipse 13% 95% at 69% 100%, var(--noel-snow) 98%, transparent 100%),
    radial-gradient(ellipse 9% 70% at 90% 100%, var(--noel-snow) 98%, transparent 100%),
    linear-gradient(var(--noel-snow), var(--noel-snow)) bottom / 100% 45% no-repeat;
  border-radius: 8px 8px 3px 3px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  z-index: 2;
}
.noel-voeux {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--noel-gold);
}

@media (prefers-reduced-motion: reduce) {
  .noel-guirlande span, .noel-boule, .noel-musique, .noel-lumiere { animation: none !important; }
  .noel-etoiles span { animation: none !important; opacity: 0.55; transform: none; }
  .noel-traineau-vol, .noel-patte { animation: none !important; }
  .noel-bulle { animation: none !important; transform: none; opacity: 1; }
  /* Le traîneau passe quand même, d'un vol simple, sans balancement
     (le bouton flocon permet de le couper). */
  .noel-traineau.is-flying { animation: noel-vol 17s linear 1 forwards !important; }
  .noel-filante { animation: noel-filante 10s linear infinite !important; }
}
@media (prefers-reduced-motion: reduce) {
}

/* ── Mouvement réduit ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* 404 — un chunk perdu, deux saisons. */
.lost-page { padding-top: 48px; padding-bottom: 88px; }
.lost-scene { position: relative; display: grid; place-items: center; min-height: 260px; isolation: isolate; }
.lost-code { display: flex; font: 800 clamp(7rem, 22vw, 13rem)/1 var(--font-display); letter-spacing: -.075em; color: var(--color-accent); text-shadow: 6px 6px 0 var(--color-surface-2); }
.lost-zero { position: relative; display: inline-block; transform: rotate(-12deg) translateY(-8px); color: var(--color-text); }
.lost-sticker { position: absolute; bottom: 12px; right: 20%; padding: 8px 14px; border: 1px solid var(--color-line-strong); background: var(--color-surface); color: var(--color-text); transform: rotate(-6deg); font: 600 .875rem var(--font-mono); box-shadow: 4px 4px 0 var(--color-bg); }
.lost-intro { text-align: center; max-width: 800px; margin: 24px auto 40px; }
.lost-intro h1 { font-size: clamp(2rem, 5vw, 3.75rem); margin: 12px 0 20px; }
.lost-intro .lead { max-width: 650px; margin: 0 auto; }
.lost-intro .page-actions { justify-content: center; flex-wrap: wrap; }
.lost-console { max-width: 820px; margin: 0 auto; background: var(--color-surface); border: 1px solid var(--color-line-strong); border-radius: var(--radius-lg); overflow: hidden; }
.lost-console-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 16px 24px; border-bottom: 1px solid var(--color-line); font: 500 .875rem var(--font-mono); color: var(--color-text-muted); }
.lost-console-bar span:last-child { color: var(--color-error); }
.lost-report { margin: 0; padding: 12px 24px; font-family: var(--font-mono); font-size: .9375rem; }
.lost-report > div { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 10px 0; }
.lost-report dt { color: var(--color-text-muted); }
.lost-report dd { margin: 0; overflow-wrap: anywhere; }
.lost-repair { padding: 12px 24px 24px; border-top: 1px dashed var(--color-line); }
.lost-repair [hidden] { display: none; }
.lost-reply { color: var(--color-text-muted); min-height: 3.2em; margin: 16px 0 0; }
.lost-roast { max-width: 760px; margin: 40px auto 0; padding-left: 24px; border-left: 3px solid var(--color-accent); }
.lost-roast h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.3; margin: 12px 0; }
.lost-roast p { color: var(--color-text-muted); }
.lost-roast .eyebrow { color: var(--color-accent); }
.lost-footnote { font-size: .875rem; margin-top: 24px; }
.saison-noel .lost-code { color: var(--noel-gold); }
.saison-noel .lost-sticker { background: var(--noel-red); color: #fff; }
.saison-noel .lost-roast { border-color: var(--noel-gold); }
.saison-noel .lost-roast .eyebrow { color: var(--noel-gold); }
.saison-noel .lost-hat { position: absolute; width: 78%; height: 50px; background: var(--noel-red); border-radius: 80% 15% 0 0; border-bottom: 12px solid var(--noel-snow); top: 3px; left: 16%; transform: rotate(12deg); }
.saison-noel .lost-hat::after { content: ""; position: absolute; width: 22px; height: 22px; background: var(--noel-snow); border-radius: 50%; right: -9px; top: -5px; }
@media (max-width: 600px) {
  .lost-page { padding-top: 24px; }
  .lost-scene { min-height: 200px; }
  .lost-sticker { right: 4%; bottom: 4px; }
  .lost-report > div { grid-template-columns: 1fr; gap: 4px; }
  .lost-console-bar, .lost-report, .lost-repair { padding-left: 16px; padding-right: 16px; }
  .lost-roast { padding-left: 16px; }
  .saison-noel .lost-hat { height: 36px; border-bottom-width: 8px; top: -2px; }
}

/* Textured 3D sleigh; the SVG remains available when WebGL cannot render. */
.noel-sleigh-stage { position: relative; display: block; width: 420px; height: 200px; }
.noel-sleigh-stage .noel-traineau-svg { position: absolute; width: 100%; height: auto; top: 50%; transform: translateY(-50%); }
.noel-sleigh-stage canvas { display: block; width: 100%; height: 100%; opacity: 0; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.noel-sleigh-stage.is-3d-ready canvas { opacity: 1; }
.noel-sleigh-stage.is-3d-ready .noel-traineau-svg { display: none; }
@media (max-width: 720px) {
  .noel-sleigh-stage { width: 280px; height: 134px; }
}

/* The fallback Santa waves too. An explicit snow-button choice enables motion. */
.noel-salut { transform-box: view-box; transform-origin: 89px 44px; animation: noel-coucou .8s ease-in-out infinite alternate; }
@keyframes noel-coucou { from { transform: rotate(-12deg); } to { transform: rotate(22deg); } }
@media (prefers-reduced-motion: reduce) {
  .noel-salut { animation: none; }
  .noel-traineau.is-flying .noel-salut { animation: noel-coucou .8s ease-in-out infinite alternate !important; }
  .noel-traineau.is-flying .noel-patte { animation: noel-galop .45s ease-in-out infinite alternate !important; }
  .noel-traineau.is-flying .noel-patte-b { animation-delay: -.22s !important; }
}

/* A complete Christmas market forms the footer's scenic entrance. */
.saison-noel .site-footer { padding-top: 0; border-top: 0; background: radial-gradient(ellipse at 50% 0, #192e40, transparent 65%), var(--color-bg); }
.noel-village { position: relative; overflow: hidden; padding-top: 52px; margin-bottom: 28px; isolation: isolate; }
.noel-village-caption { position: relative; z-index: 1; text-align: center; padding: 0 var(--gutter); }
.noel-village-caption .eyebrow { color: var(--noel-gold); }
.noel-village-title { margin: 12px 0; font: 600 clamp(1.7rem, 3.5vw, 2.8rem)/1.2 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.noel-village-caption > p:last-child { color: #b5c8d6; font-size: 1rem; margin: 12px 0 0; }
.noel-village-panorama { display: flex; justify-content: center; width: 100%; margin-top: -55px; }
.noel-village-panorama > svg { display: block; width: 100%; min-width: clamp(650px, 108vw, 1000px); height: auto; }
.noel-anim .noel-village-bulb { animation: village-scintille 3.4s ease-in-out infinite alternate; }
.noel-anim .noel-village-steam { transform-box: fill-box; animation: village-vapeur 3s ease-in-out infinite; }
.noel-village-star { filter: drop-shadow(0 0 7px rgba(255,219,131,.5)); }
@keyframes village-scintille { to { opacity: .55; } }
@keyframes village-vapeur { from { transform: translateY(3px); opacity: .15; } 50% { opacity: .7; } to { transform: translateY(-8px); opacity: 0; } }
@media (max-width: 600px) {
  .noel-village { padding-top: 40px; margin-bottom: 24px; }
  .noel-village-caption .eyebrow { max-width: 270px; margin-left: auto; margin-right: auto; }
  .noel-village-panorama { margin-top: -5px; }
}
@media (prefers-reduced-motion: reduce) {
  .noel-anim .noel-village-bulb, .noel-anim .noel-village-steam { animation: none; }
}

/* Warm, quiet movement brings the market to life without a flashing scene. */
.noel-village .noel-village-bulb { animation: village-scintille 3.4s ease-in-out infinite alternate; }
.noel-village .noel-village-steam { transform-box: fill-box; animation: village-vapeur 3s ease-in-out infinite; }
.noel-village-smoke { opacity: 0; filter: blur(.9px); transform-box: fill-box; animation: village-cheminee 6s linear infinite; }
.noel-village-star { animation: village-etoile 4s ease-in-out infinite alternate; }
.noel-village-snowman-wave { transform-box: view-box; transform-origin: 15px -6px; animation: village-salut 2.2s ease-in-out infinite alternate; }
.noel-village:not(.is-visible) .noel-village-bulb,
.noel-village:not(.is-visible) .noel-village-steam,
.noel-village:not(.is-visible) .noel-village-smoke,
.noel-village:not(.is-visible) .noel-village-star,
.noel-village:not(.is-visible) .noel-village-snowman-wave { animation-play-state: paused; }
@keyframes village-cheminee {
  0% { transform: translateY(3px) scale(.55); opacity: 0; }
  14% { opacity: .62; }
  55% { opacity: .34; }
  100% { transform: translate(var(--drift), -59px) scale(1.75); opacity: 0; }
}
@keyframes village-etoile { to { filter: drop-shadow(0 0 12px rgba(255,219,131,.8)); } }
@keyframes village-salut { from { transform: rotate(-8deg); } to { transform: rotate(16deg); } }
@media (prefers-reduced-motion: reduce) {
  .noel-village .noel-village-bulb, .noel-village .noel-village-steam,
  .noel-village .noel-village-smoke, .noel-village .noel-village-star,
  .noel-village .noel-village-snowman-wave { animation: none; }
  .noel-village-smoke { opacity: .14; }
}
@keyframes vintage-twinkle { 0%, 100% { opacity: .88; } 38% { opacity: .38; } 60% { opacity: 1; } }
.saison-noel .site-header .noel-guirlande span:nth-child(4n+1) { background: #ff77b4; box-shadow: 0 0 12px 2px #ff5caa; }
.saison-noel .site-header .noel-guirlande span:nth-child(4n) { background: #9bbdff; box-shadow: 0 0 12px 2px #6794ff; }

/* Lumières vintage dans les éléments communs à toutes les pages. */
.saison-noel .site-header .noel-guirlande {
  height: 27px;
  padding-inline: 2%;
}
.saison-noel .site-header .noel-guirlande > span {
  width: 7px;
  height: 12px;
  border-radius: 28% 28% 58% 58%;
  background-image: radial-gradient(ellipse at 40% 47%, #fff9 8%, transparent 52%);
  animation: vintage-twinkle 2.1s ease-in-out infinite;
}
.saison-noel .site-header .noel-guirlande > span:nth-child(5n) { animation-duration: 1.55s; }
.saison-noel .site-header .noel-guirlande > span:nth-child(7n) { animation-duration: 2.85s; }
.saison-noel .site-header .noel-guirlande::before {
  top: -8px;
  height: 18px;
  border-bottom-color: #416355;
}
.saison-noel .logo .noel-logo-sapin {
  display: inline-block;
  flex: 0 0 16px;
  height: 20px;
  background: url("../img/noel-sapin-vintage.webp") center / contain no-repeat;
}
.saison-noel .site-footer {
  background: radial-gradient(ellipse at 13% 26%, #52234b58, transparent 47%),
    radial-gradient(ellipse at 90% 16%, #223e825e, transparent 54%), var(--color-bg);
}
.noel-village-bulb { filter: drop-shadow(0 0 4px var(--village-glow, #ffd47e)); }
@media (max-width: 440px) {
  .saison-noel .site-header .noel-guirlande > span { width: 5px; height: 9px; }
  .saison-noel .logo .noel-logo-sapin { display: none; }
}

.saison-noel .noel-village {
  background:
    linear-gradient(180deg, #131d2cf5, #142332d9 50%, #111111 100%),
    url("../img/noel-guirlande-vintage.webp") center 45% / cover no-repeat;
}

/* Lueurs de verre teinté et branches au bord du ciel de Noël. */
.saison-noel .site-header .noel-guirlande {
  background:
    repeating-linear-gradient(140deg, transparent 0 12px, #244536b0 13px 16px, transparent 17px 24px) 0 0 / auto 9px repeat-x,
    linear-gradient(#193629bf, transparent 15px);
}
.saison-noel .site-header .noel-guirlande > span { animation-name: vintage-colour-wave; }
@keyframes vintage-colour-wave {
  0%, 100% { opacity: .94; filter: hue-rotate(0deg); }
  32% { opacity: .5; filter: hue-rotate(42deg); }
  63% { opacity: 1; filter: hue-rotate(115deg); }
}
.noel-village-walker { animation: village-promenade 8s ease-in-out infinite alternate; }
.noel-village-step { transform-origin: 0 24px; animation: village-pas .74s ease-in-out infinite alternate; }
.noel-village-step:nth-child(2) { animation-delay: -.74s; }
.noel-village-vendor { transform-origin: 4px 10px; animation: village-service 4.8s ease-in-out infinite; }
@keyframes village-promenade {
  0%, 12% { transform: translateX(0); }
  42% { transform: translate(calc(var(--walk) * .44), -2px); }
  70%, 100% { transform: translateX(var(--walk)); }
}
@keyframes village-pas { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@keyframes village-service {
  0%, 65%, 100% { transform: rotate(0); }
  21%, 32% { transform: rotate(-46deg); }
}
.noel-village:not(.is-visible) :is(.noel-village-walker, .noel-village-step, .noel-village-vendor) {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .noel-village :is(.noel-village-walker, .noel-village-step, .noel-village-vendor) { animation: none; }
  .noel-village-smoke:nth-child(n+2) { opacity: 0; }
}

/* La grille laisse place à des lueurs latérales derrière le titre. */
.saison-noel .hero::before {
  display: block;
  inset: 20px 0 auto;
  height: min(78vw, 680px);
  background:
    radial-gradient(ellipse at 9% 46%, #e84c9b36, transparent 44%),
    radial-gradient(ellipse at 84% 29%, #6b8cff3e, transparent 53%),
    radial-gradient(ellipse at 94% 69%, #31c89626, transparent 42%);
  mask-image: linear-gradient(#000 62%, transparent);
  opacity: .84;
}
@media (prefers-reduced-motion: no-preference) {
  .saison-noel .hero::before { animation: noel-ciel-lueurs 8s ease-in-out infinite alternate; }
}
@keyframes noel-ciel-lueurs {
  to { opacity: .52; transform: translateY(14px); }
}

/* Sapins détaillés, neige et guirlandes autour de la capture d’accueil. */
.noel-hero-fir-grove {
  position: absolute;
  z-index: -1;
  inset: auto -8% calc(100% - 58px);
  height: clamp(130px, 22vw, 280px);
  pointer-events: none;
}
.noel-hero-fir-grove::before {
  content: "";
  position: absolute;
  inset: auto -4% 1%;
  height: 25%;
  background: radial-gradient(ellipse at 50% 70%, #dce9ee 0%, #99b2c299 42%, transparent 74%);
}
.noel-hero-fir {
  position: absolute;
  bottom: 0;
  width: clamp(95px, 17vw, 215px);
  filter: drop-shadow(0 8px 10px #0009);
}
.noel-hero-fir img { display: block; width: 100%; height: auto; }
.noel-hero-fir--left-front { left: 5%; }
.noel-hero-fir--right-front { right: 5%; transform: scaleX(-1); }
.noel-hero-fir--left-back { left: 18%; bottom: 8%; width: clamp(70px, 11.5vw, 154px); transform: scaleX(-1); filter: brightness(.74); }
.noel-hero-fir--right-back { right: 17%; bottom: 10%; width: clamp(72px, 12vw, 158px); filter: brightness(.8); }
.noel-hero-fir-light {
  --fir-lamp: #ffda82;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(2px, .32vw, 4px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: #fff7df;
  box-shadow: 0 0 4px 1px var(--fir-lamp), 0 0 10px 2px var(--fir-lamp);
  animation: vintage-twinkle 2.45s var(--delay) ease-in-out infinite;
}
.noel-hero-fir-light:nth-child(4n+1) { --fir-lamp: #ff6ea8; }
.noel-hero-fir-light:nth-child(4n+2) { --fir-lamp: #74a7ff; }
.noel-hero-fir-light:nth-child(4n+4) { --fir-lamp: #64ffb9; }
@media (max-width: 700px) {
  .saison-noel .showcase { margin-top: 78px; }
  .noel-hero-fir-grove { inset-inline: -2%; bottom: calc(100% - 55px); }
  .noel-hero-fir--left-front { left: 0; }
  .noel-hero-fir--right-front { right: 0; }
  .noel-hero-fir--left-back { left: 16%; }
  .noel-hero-fir--right-back { right: 16%; }
}
@media (prefers-reduced-motion: reduce) { .noel-hero-fir-light { animation: none; } }

.noel-village-distant-firs { filter: brightness(.65) saturate(.72); }
.noel-village-edge-firs { filter: brightness(.83); }
.noel-village-fir-bulb { filter: drop-shadow(0 0 2px #ffe3a8); }

/* Une nuit étoilée derrière le 404, avec un reflet polaire pendant les fêtes. */
.lost-page { isolation: isolate; position: relative; overflow: hidden; }
.lost-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: clamp(375px, 43vw, 680px);
  pointer-events: none;
  background:
    radial-gradient(circle at 17% 28%, #cedbf0 0 1px, transparent 2px),
    radial-gradient(circle at 26% 45%, #9bb8dc 0 1px, transparent 2px),
    radial-gradient(circle at 69% 19%, #f7e9c8 0 1px, transparent 2px),
    radial-gradient(circle at 82% 38%, #afc5eb 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 43% 13%, #99b5e2 0 1px, transparent 2px),
    radial-gradient(ellipse at 49% 35%, #253553 0%, #141c2c 42%, transparent 74%);
  mask-image: linear-gradient(#000 25%, transparent 100%);
}
.saison-noel .lost-page::before {
  background:
    radial-gradient(circle at 16% 31%, #fff5d4 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 27% 16%, #cceadc 0 1px, transparent 2px),
    radial-gradient(circle at 69% 15%, #ffedb6 0 1px, transparent 2px),
    radial-gradient(circle at 85% 39%, #b8d8f4 0 1.5px, transparent 2.5px),
    radial-gradient(ellipse at 35% 30%, #225449a0, transparent 53%),
    radial-gradient(ellipse at 61% 40%, #303658, transparent 66%);
}

@media (max-width: 700px) {
  .saison-noel .hero::after {
    background-position: 5% 7%, center, center, center;
    background-size: 94px 94px, auto, auto, auto;
  }
}

/* Village lointain, derrière le 404. Toutes les couches s'effacent dans le fond. */
.lost-village {
  position: absolute;
  z-index: -1;
  inset: clamp(144px, 18vw, 225px) 0 auto;
  height: clamp(180px, 21vw, 285px);
  pointer-events: none;
  mask-image: linear-gradient(#000 50%, transparent 100%);
}
.lost-village::before,
.lost-village::after {
  content: "";
  position: absolute;
  inset: 10% 0 0;
  background: linear-gradient(#2c3c55, #131722);
  clip-path: polygon(0 34%, 7% 18%, 12% 28%, 18% 23%, 26% 44%, 35% 53%, 50% 68%, 64% 54%, 72% 42%, 82% 25%, 90% 31%, 96% 13%, 100% 24%, 100% 100%, 0 100%);
}
.lost-village::after {
  inset: 43% 0 0;
  background: linear-gradient(#1b2739, #111);
  clip-path: polygon(0 16%, 12% 25%, 25% 39%, 39% 51%, 56% 51%, 70% 44%, 87% 28%, 100% 13%, 100% 100%, 0 100%);
}
.lost-village-houses {
  position: absolute;
  inset: 0;
  z-index: 1;
  mask-image: linear-gradient(90deg, #000 24%, transparent 42% 58%, #000 76%);
}
.lost-house {
  position: absolute;
  left: var(--x);
  top: calc(35% - var(--rise));
  width: var(--size);
  height: calc(var(--size) * .53);
  transform: translateX(-50%);
  background: linear-gradient(90deg, #161e2c 75%, #101725 76%);
}
.lost-house::before {
  content: "";
  position: absolute;
  inset: -56% -12% auto;
  height: 69%;
  clip-path: polygon(49% 0, 100% 100%, 0 100%);
  background: #101824;
}
.lost-house::after {
  content: "";
  position: absolute;
  top: 28%;
  left: 27%;
  width: 12%;
  height: 26%;
  border-radius: 1px;
  background: #ffdc9e;
  box-shadow: calc(var(--size) * .29) 0 #eab46e, 0 0 11px 1px #ffbd6e99;
}
.saison-noel .lost-village::before { background: linear-gradient(#395768, #182233); }
.saison-noel .lost-village::after { background: linear-gradient(#344b60, #111); }
.saison-noel .lost-house::before { background: linear-gradient(#c3d7df 0 22%, #526b7d 23% 37%, #182635 38%); }
@media (max-width: 600px) {
  .lost-village-houses { mask-image: linear-gradient(90deg, #000, transparent 29% 71%, #000); }
  .lost-house { width: calc(var(--size) * .58); height: calc(var(--size) * .34); }
  .lost-house::after { box-shadow: calc(var(--size) * .17) 0 #eab46e, 0 0 8px #ffbd6e99; }
}

/* Tableau de bord personnel */
.dashboard { padding-top: clamp(42px, 6vw, 78px); padding-bottom: 64px; }
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h1 { margin: 8px 0; font-size: clamp(1.9rem, 4vw, 3rem); overflow-wrap: anywhere; }
.dashboard-header > p:last-child { color: var(--color-text-muted); margin: 8px 0 0; }
.dashboard-layout { display: grid; grid-template-columns: minmax(185px, .75fr) minmax(0, 3fr); gap: 30px; align-items: start; }
.dashboard-nav { display: grid; gap: 3px; padding: 8px; border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: #171b23; }
.dashboard-nav a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: #b6becd; text-decoration: none; font-size: .9375rem; }
.dashboard-nav a:hover { background: #222b38; color: var(--color-text); }
.dashboard-nav a[aria-current="page"] { color: #cfe0fc; background: #263345; }
.dashboard-content { display: grid; gap: 16px; min-width: 0; }
.dashboard-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card.dashboard-card { background: #181d25; padding: clamp(18px, 3vw, 26px); }
.saison-noel .dashboard .card::after { display: none; }
.dashboard-card h2 { margin: 0 0 12px; font-size: 1.16rem; }
.dashboard-card p { color: #aeb8c7; margin: 8px 0 16px; }
.dashboard-card .dashboard-metric { color: var(--color-text); font-size: 2rem; font-weight: 650; }
.dashboard-list { list-style: none; margin: 0 0 14px; padding: 0; }
.dashboard-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--color-line); overflow-wrap: anywhere; }
.dashboard-list li > :last-child { color: #adb7c7; font-size: .875rem; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-form { display: grid; justify-items: start; gap: 10px; margin: 14px 0; }
.dashboard-form input[type="text"], .dashboard-form input:not([type]) { width: min(100%, 360px); padding: 10px; color: var(--color-text); background: #11151c; border: 1px solid var(--color-line-strong); border-radius: var(--radius-sm); font: inherit; }
.dashboard-form p { margin: 0; }
@media (max-width: 760px) {
  .dashboard-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dashboard-nav { grid-template-columns: repeat(auto-fit, minmax(min(100%, 124px), 1fr)); }
}
@media (max-width: 460px) {
  .dashboard-cards { grid-template-columns: minmax(0, 1fr); }
}

.saison-noel .dashboard .card,
.saison-noel .dashboard .card:hover { border-color: var(--color-line); }
.saison-noel .dashboard .btn-primary {
  background: #35547f;
  border-color: #577497;
  color: #fff;
  box-shadow: none;
}
.saison-noel .dashboard .btn-primary:hover { background: #41638f; }

/* Espace personnel : navigation, identité et état des données. */
.dashboard,
.account-entry { --account-panel: #181d25; --account-line: #2b333f; --account-accent: #aac6f3; }
.dashboard { padding-top: clamp(32px, 5vw, 65px); }
.dashboard-layout { grid-template-columns: minmax(205px, 235px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); }
.dashboard-sidebar { background: #171c24; border: 1px solid var(--account-line); border-radius: 12px; }
.dashboard-identity { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 18px 15px; border-bottom: 1px solid var(--account-line); }
.dashboard-identity > div { min-width: 0; }
.dashboard-identity strong, .dashboard-identity > div > span { display: block; overflow-wrap: anywhere; }
.dashboard-identity > div > span { color: #a4afbf; font-size: .875rem; }
.dashboard-identity-icon, .dashboard-section-icon {
  display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px;
  color: var(--account-accent); border-radius: 8px; background: #243247;
}
.dashboard svg { width: 19px; height: 19px; flex: none; }
.dashboard-nav { border: 0; background: none; }
.dashboard-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; line-height: 1.25; border-inline-start: 2px solid transparent; }
.dashboard-nav a[aria-current="page"] { border-inline-start-color: #8dafe3; font-weight: 650; }
.dashboard-header { position: relative; margin: 0; padding: clamp(20px,4vw,36px); border: 1px solid var(--account-line); border-radius: 12px; background: #1c232e; }
.dashboard-header h1 { margin: 6px 0 0; }
.dashboard-header .btn { margin-top: 20px; }
.dashboard-card h2 { display: flex; align-items: center; gap: 9px; }
.dashboard-card h2 svg { color: var(--account-accent); }
.dashboard-empty { min-height: 155px; align-content: center; }
.dashboard-empty .dashboard-section-icon { margin-bottom: 12px; }
.account-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(28px, 6vw, 85px); padding-top: clamp(50px, 10vw, 130px); padding-bottom: clamp(55px, 9vw, 120px); align-items: start; }
.account-entry-intro h1 { margin: 12px 0 18px; font-size: clamp(2.6rem, 6vw, 4.5rem); }
.account-entry-panels { display: grid; gap: 18px; }
.account-entry .account-login { background: var(--account-panel); border: 1px solid var(--account-line); padding: clamp(20px, 4vw, 32px); }
.account-entry :is(.account-login, .account-privacy) h2 { font-size: 1.125rem; margin: 0 0 12px; }
.account-entry .account-providers { display: grid; }
.account-entry .provider-btn { justify-content: flex-start; }
.account-privacy { padding: 18px 4px 0; color: var(--color-text-muted); border-top: 1px solid var(--account-line); }
.account-privacy h2 { color: var(--color-text); }
.saison-noel .account-entry .card::after { display: none; }
@media (max-width: 760px) {
  .dashboard-layout, .account-entry { grid-template-columns: minmax(0, 1fr); }
  .dashboard-identity { padding: 12px; }
  .dashboard-nav a { gap: 7px; padding-inline: 8px; font-size: .875rem; }
  .dashboard-nav a svg { width: 16px; height: 16px; }
  .dashboard-nav a span { overflow-wrap: anywhere; }
  .dashboard-header { padding: 20px; }
}

@media (max-width: 420px) {
  .dashboard-nav a { padding-inline: 8px; overflow-wrap: normal; }
  .dashboard-nav a svg { display: none; }
  .dashboard-nav a span { overflow-wrap: normal; hyphens: auto; }
}

/* ── Introduction cinématique (couche ajoutée par intro.js, au-dessus de la neige et du traîneau) ── */
html.intro-ouverte { overflow: hidden; }
.intro-couche {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: var(--color-text);
  opacity: 1;
  transition: opacity 0.6s linear;
  overflow: hidden;
}
.intro-couche[hidden], .intro-couche [hidden] { display: none !important; }
.intro-couche.is-leaving { opacity: 0; pointer-events: none; }
.intro-fond {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(8px);
  opacity: 0.28;
}
.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  visibility: hidden;
}
.intro-couche[data-etat="lecture"] .intro-video { visibility: visible; }
.intro-couche[data-etat="lecture"] .intro-fond { display: none; }
.intro-entree {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
  max-width: 34rem;
  padding: 24px;
  text-align: center;
}
.intro-titre {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.intro-couche .btn {
  height: auto;
  min-height: 44px;
  padding: 10px 22px;
  white-space: normal;
  text-align: center;
}
.intro-couche .btn-primary { background: var(--color-accent); color: var(--color-on-accent); }
.intro-couche .btn-primary:hover { background: var(--color-accent-hover); }
.intro-couche .btn-secondary { background: rgba(17, 17, 17, 0.72); }
.intro-couche .btn:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; }
.intro-entrer { min-width: min(100%, 15rem); }
.intro-passer, .intro-son {
  position: absolute;
  max-width: calc(100% - 32px);
  z-index: 2;
}
.intro-passer { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.intro-son { bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; }
@media (prefers-reduced-motion: reduce) {
  .intro-couche { transition: none; }
}
