/* =========================================================
   PXMagic.com — Home
   ========================================================= */

:root {
  --violet-950: #1c0e3d;
  --violet-900: #2a1257;
  --violet-800: #3b1680;
  --violet-700: #4c1d95;
  --violet-600: #6d28d9;
  --violet-500: #7c3aed;
  --violet-300: #c4b5fd;
  --violet-200: #ddd2fb;
  --violet-100: #efe8fe;
  --violet-50:  #f8f5ff;

  --ink: #1f1640;
  --text: #3d3658;
  --muted: #6b6585;
  --border: #e9e3f5;
  --surface: #ffffff;
  --gold: #f2b01e;
  --gold-dark: #d39b14;
  --green: #2f9e44;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(42, 18, 87, .06);
  --shadow: 0 6px 20px -8px rgba(42, 18, 87, .18);
  --shadow-lg: 0 18px 40px -16px rgba(42, 18, 87, .28);

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-logo: "Poppins", var(--font-display);

  --ease: cubic-bezier(.2, .7, .3, 1);
  --container: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.012em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--violet-700); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.btn-lg { min-height: 48px; padding: 12px 24px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--violet-600), var(--violet-700)); color: #fff; box-shadow: 0 6px 16px -8px rgba(76, 29, 149, .7); }
.btn-primary:hover { background: linear-gradient(135deg, var(--violet-700), var(--violet-900)); box-shadow: 0 10px 22px -10px rgba(76, 29, 149, .8); }
.btn-outline { background: #fff; color: var(--violet-700); border-color: var(--violet-600); }
.btn-outline:hover { background: var(--violet-50); }
.btn-ghost { background: rgba(255, 255, 255, .9); color: var(--violet-700); border-color: var(--violet-200); }
.btn-ghost:hover { border-color: var(--violet-500); background: #fff; }
.btn-soft { background: var(--violet-100); color: var(--violet-700); border-color: var(--violet-300); }
.btn-soft:hover { background: var(--violet-200); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(42, 18, 87, .35); }

.header-top {
  display: grid; grid-template-columns: 1fr minmax(0, 480px) 1fr; grid-template-areas: "logo search actions";
  align-items: center; gap: 18px; padding-block: 10px;
}
.header-top > .logo { grid-area: logo; justify-self: start; }

.logo { --logo-purple: #6c1ecf; --logo-dark: #28024c; display: inline-flex; align-items: center; gap: .27em; flex-shrink: 0; font-size: 25px; }
.logo-mark { width: 1.57em; height: 1.57em; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-logo); font-weight: 700; font-size: 1em; letter-spacing: -.02em; white-space: nowrap; color: var(--logo-dark); }
.logo-name span { color: var(--logo-purple); }
.logo-name sup { position: relative; top: .02em; margin-left: .05em; font-size: .62em; font-weight: 500; line-height: 1; vertical-align: top; color: var(--logo-purple); }
.logo-tag { margin-top: .3em; font-family: var(--font-logo); font-size: .33em; font-weight: 600; letter-spacing: .14em; white-space: nowrap; text-transform: uppercase; color: var(--logo-dark); }

.laurel-r { transform: scaleX(-1); }

.search {
  grid-area: search; width: 100%; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 4px 4px 4px 14px;
  border: 1.5px solid var(--border); border-radius: 999px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--violet-500); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.search > .icon { color: var(--muted); width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; padding: 6px 0; }
.search input::placeholder { color: #8f8aa6; }
.search .btn { min-height: 34px; padding: 6px 16px; }

.header-actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: 6px; }
.action-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 8px; white-space: nowrap; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--ink); transition: background-color .2s, color .2s; }
.action-link:hover { background: var(--violet-50); color: var(--violet-700); }
.action-link .icon { width: 19px; height: 19px; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--violet-50); color: var(--violet-800); align-items: center; justify-content: center; }
.burger .icon { width: 24px; height: 24px; }
.burger .icon-close { display: none; }

/* Navigation */
.main-nav { border-top: 1px solid var(--border); }
.nav-list { display: flex; justify-content: space-between; align-items: stretch; }
.nav-list > li { position: relative; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  height: 46px; padding: 0 10px; border: 0; background: none;
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: color .2s;
}
.nav-link .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.nav-link:hover, .has-sub:hover > .nav-link, .has-sub.open > .nav-link { color: var(--violet-600); }
.nav-link.is-active { color: var(--violet-700); }
.nav-link.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--violet-600); }

.sub {
  position: absolute; top: 100%; left: 0; z-index: 20; min-width: 220px;
  padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.sub-right { left: auto; right: 0; }
.nav-cta { display: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text); transition: background-color .15s, color .15s; }
.sub a:hover { background: var(--violet-50); color: var(--violet-700); }

@media (hover: hover) and (min-width: 1025px) {
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover > .nav-link .icon { transform: rotate(180deg); }
}
.has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub.open > .nav-link .icon { transform: rotate(180deg); }

/* ---------- Hero ---------- */
/* Hero + chiffres remplissent l'écran sous le header : le bandeau des chiffres finit sur la ligne de flottaison */
.above-fold {
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--header-h, 105px));
  min-height: calc(100svh - var(--header-h, 105px));
}
.above-fold > .stats { flex: none; }
.hero {
  position: relative; overflow: hidden;
  flex: 1 0 auto;
  display: flex; align-items: center;
  min-height: 400px;
  background: #f4f0fc;
}
.hero-img { position: absolute; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover; object-position: 55% 30%; background: #f4f0fc; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #f4f0fc 0%, #f4f0fc 36%, rgba(244, 240, 252, .7) 43%, rgba(244, 240, 252, .25) 49%, rgba(244, 240, 252, 0) 55%);
}
.hero-inner { position: relative; z-index: 2; padding-block: 48px; }
.hero-inner > * { max-width: 580px; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-900); }
.kicker i { width: 4px; height: 4px; border-radius: 50%; background: var(--violet-500); }
.hero h1 {
  margin-top: 14px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.035em;
  color: var(--ink);
}
.hero h1 .accent { background: linear-gradient(90deg, var(--violet-700), var(--violet-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 18px; font-size: 16.5px; line-height: 1.6; color: var(--text); max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-ctas .icon { width: 18px; height: 18px; }

/* ---------- Stats ---------- */
.stats { display: flex; align-items: center; gap: 12px; padding-block: 22px; border-bottom: 1px solid var(--border); }
.stats-laurel { width: 26px; height: 54px; color: var(--gold-dark); flex-shrink: 0; }
.stats-list { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); }
.stats-list li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 12px; }
.stats-list li + li { border-left: 1px solid var(--border); }
.stats-list .icon { width: 38px; height: 38px; color: var(--violet-700); stroke-width: 1.5; }
.stats-list p { display: flex; flex-direction: column; line-height: 1.15; }
.stats-list strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.025em; color: var(--violet-900); font-variant-numeric: tabular-nums; }
.stats-list span { font-size: 13.5px; color: var(--text); }

/* ---------- Sections ---------- */
.section { padding-block: 34px; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 25px; font-weight: 700; line-height: 1.2; letter-spacing: -.022em; color: var(--ink); }
.section-head h2 .icon { width: 26px; height: 26px; color: var(--violet-700); stroke-width: 1.6; }
.see-all { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 13.5px; font-weight: 600; color: var(--violet-600); transition: gap .2s var(--ease), color .2s; }
.see-all .icon { width: 15px; height: 15px; }
.see-all:hover { color: var(--violet-800); gap: 9px; }

/* Étoiles (masque SVG, note via --r) */
.stars {
  --size: 14px;
  display: inline-block; flex-shrink: 0;
  width: calc(var(--size) * 5); height: var(--size);
  background: linear-gradient(90deg, var(--gold) calc(var(--r, 5) / 5 * 100%), #dcd6e8 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1.5 0 27 24'%3E%3Cpath d='M12 1.6l3.1 6.4 7 1-5.1 5 1.2 7L12 17.7 5.8 21l1.2-7-5.1-5 7-1z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1.5 0 27 24'%3E%3Cpath d='M12 1.6l3.1 6.4 7 1-5.1 5 1.2 7L12 17.7 5.8 21l1.2-7-5.1-5 7-1z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
}
.stars-lg { --size: 22px; }

/* ---------- Catégories ---------- */
.cat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; align-items: stretch; }
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cat-card {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12px 8px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f2fe 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.cat-card img { width: 78px; height: 78px; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s var(--ease); }
.cat-card strong { margin-top: 6px; font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.cat-card > span { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--violet-200); }
.cat-card:hover img { transform: scale(1.06); }
.cat-more .dots { height: 78px; display: flex; align-items: center; gap: 8px; }
.cat-more .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--violet-600); }
.cat-more .dots i:nth-child(2) { background: var(--violet-500); }
.cat-more .dots i:nth-child(3) { background: var(--violet-300); }

.rating-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 18px 18px 22px;
  background: radial-gradient(120% 70% at 50% 0%, #ffffff 0%, #f3edff 55%, #ebe2fd 100%);
  border: 1px solid var(--violet-200); border-radius: var(--radius-lg);
}
.rating-card img { width: 150px; height: 150px; object-fit: contain; mix-blend-mode: multiply; margin-bottom: 4px; }
.rating-title { display: flex; align-items: center; gap: 6px; }
.rating-title svg { width: 18px; height: 40px; color: var(--gold-dark); flex-shrink: 0; }
.rating-title p { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }
.rating-card .stars { margin-top: 14px; }
.rating-score { margin-top: 6px; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.025em; color: var(--violet-900); line-height: 1; }
.rating-score span { font-size: 20px; color: var(--violet-700); }
.rating-count { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- Split (2 colonnes) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
.split-col { min-width: 0; }
.split-methods { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

/* Niveaux */
.level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.level-card {
  height: 100%; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.level-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s var(--ease); }
.level-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.level-card:hover img { transform: scale(1.04); }
.level-body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 12px 14px; }
.level-body h3 { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.lvl-stars { display: inline-flex; gap: 1px; }
.lvl-stars svg { width: 16px; height: 16px; }
.lvl-1 .lvl-stars { color: var(--green); }
.lvl-2 .lvl-stars { color: var(--violet-600); }
.lvl-3 .lvl-stars { color: var(--gold); }
.level-body > p { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--text); }
.level-body .meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* Tours vedettes */
.trick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trick-card { display: flex; flex-direction: column; gap: 8px; }
.thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--violet-950); }
.thumb img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; transition: transform .4s var(--ease); }
.trick-card:hover .thumb img { transform: scale(1.05); }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .88); color: var(--violet-800);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease), background-color .2s;
}
.play svg { width: 20px; height: 20px; margin-left: 2px; }
.trick-card:hover .play, .methods-video:hover .play { transform: scale(1.1); background: #fff; }
.duration { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(15, 8, 32, .78); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.trick-card h3 { font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--ink); transition: color .2s; }
.trick-card:hover h3 { color: var(--violet-700); }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

/* Méthodes */
.methods { display: grid; grid-template-columns: minmax(0, 1.2fr) 100px minmax(0, 1fr); gap: 16px; align-items: center; }
.methods-video { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.methods-video img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.methods-steps { display: flex; flex-direction: column; gap: 6px; }
.methods-steps li { display: flex; align-items: center; gap: 4px; }
.step-num { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--violet-600); color: #fff; font-size: 12px; font-weight: 700; }
.methods-steps img { width: 72px; height: 72px; mix-blend-mode: multiply; }

.check-list { display: flex; flex-direction: column; gap: 9px; }
.check-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.4; color: var(--text); }
.check-list .icon { width: 17px; height: 17px; margin-top: 1px; color: var(--violet-600); stroke-width: 2.4; }
.check-list strong { color: var(--ink); }

/* Formateurs */
.trainer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.trainer { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px; border-radius: var(--radius); transition: background-color .2s; }
.trainer:hover { background: var(--violet-50); }
.trainer img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--violet-200); margin-bottom: 10px; transition: box-shadow .2s; }
.trainer:hover img { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--violet-500); }
.trainer strong { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.trainer > span:not(.stars) { margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--muted); min-height: 2.7em; }
.trainer .stars { --size: 12px; margin-top: 6px; }

/* ---------- Ressources ---------- */
.res-head { justify-content: flex-start; }
.res-head p { font-size: 14px; color: var(--muted); }
.res-head .see-all { margin-left: auto; }
.res-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.res-card {
  height: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.res-card:hover { border-color: var(--violet-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.res-icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--violet-100); color: var(--violet-700); }
.res-icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }

/* ---------- Offres ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pricing-intro { padding-right: 8px; }
.pricing-intro h2 { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-display); font-size: 27px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; color: var(--ink); }
.pricing-intro h2 .icon { width: 30px; height: 30px; margin-top: 2px; color: var(--violet-700); stroke-width: 1.6; }
.pricing-intro > p { margin: 14px 0 16px; font-size: 14.5px; }

.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 22px 20px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.plan:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.plan-featured { border: 2px solid var(--violet-600); background: linear-gradient(180deg, #fbf9ff 0%, #f3edff 100%); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -13px; left: 50%; translate: -50% 0; padding: 4px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--violet-600), var(--violet-700)); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan-head { display: flex; align-items: flex-start; gap: 10px; }
.plan-head .icon { width: 26px; height: 26px; color: var(--violet-700); stroke-width: 1.6; margin-top: 2px; }
.plan-head h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.plan-head p { font-size: 13px; color: var(--muted); }
.plan-price { margin-top: 16px; text-align: center; font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; color: var(--violet-700); font-variant-numeric: tabular-nums; }
.plan-price span { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--violet-700); }
.plan-free { color: var(--ink); margin-bottom: 22px; }
.plan-year { margin: 2px 0 16px; text-align: center; font-size: 13px; color: var(--muted); }
.plan .check-list { flex: 1; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { --ft-line: #e0d9ef; margin-top: 40px; }

/* Bandeau réassurance */
.ft-trust {
  color: #fff;
  background:
    radial-gradient(38% 160% at 12% 120%, rgba(167, 139, 250, .45), transparent 60%),
    radial-gradient(30% 140% at 88% -30%, rgba(139, 92, 246, .35), transparent 60%),
    linear-gradient(90deg, #25104e 0%, #3a1680 50%, #2a1062 100%);
}
.ft-trust-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr); padding-block: 12px; }
.ft-trust-list li { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 2px 8px; white-space: nowrap; }
.ft-trust-list li + li::before { content: ""; position: absolute; left: 0; top: 50%; height: 34px; translate: 0 -50%; border-left: 1px solid rgba(255, 255, 255, .28); }
.ft-trust-list .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.ft-trust-list p { display: flex; flex-direction: column; line-height: 1.3; }
.ft-trust-list strong { font-size: 14px; font-weight: 700; }
.ft-trust-list span { font-size: 11.5px; color: rgba(255, 255, 255, .82); }

/* Bloc principal */
.ft-main {
  position: relative; overflow: hidden;
  background:
    radial-gradient(34% 70% at 6% 100%, rgba(196, 181, 253, .45), transparent 70%),
    linear-gradient(180deg, #f8f6fd 0%, #f2eff9 100%);
}
.ft-deco {
  position: absolute; bottom: -6px; left: max(0px, calc((100% - var(--container)) / 2 - 30px));
  width: 300px; mix-blend-mode: multiply; opacity: .9; pointer-events: none;
}
.ft-brand { padding-right: 12px; }
.ft-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, auto) 234px;
  align-items: start; padding-block: 30px 34px;
}
.ft-logo { font-size: 27px; }
.ft-desc { max-width: 260px; margin-top: 14px; font-size: 13px; line-height: 1.4; color: #2b2546; }
.socials { display: flex; justify-content: center; gap: 7px; max-width: 260px; margin-top: 14px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: #fff; border: 1px solid var(--ft-line); box-shadow: var(--shadow-sm); transition: background-color .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--violet-700); color: #fff; border-color: var(--violet-700); }
.socials .icon { width: 17px; height: 17px; }

.footer-col { padding-inline: 14px; }
.footer-col + .footer-col { border-left: 1px solid var(--ft-line); }
.footer-col:last-of-type { border-right: 1px solid var(--ft-line); }
.footer-col h3 { max-width: 130px; margin-bottom: 12px; font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--violet-600); }
.footer-col li + li { margin-top: 4px; }
.footer-col a { font-size: 12px; line-height: 1.45; white-space: nowrap; color: var(--text); transition: color .2s; }
.footer-col a:hover { color: var(--violet-700); }

.newsletter {
  margin-left: 12px; padding: 13px 12px;
  background: #fff; border: 1px solid #ece7f7; border-radius: var(--radius);
  box-shadow: 0 14px 34px -16px rgba(42, 18, 87, .3);
}
.newsletter-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.newsletter-head .icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--violet-700); stroke-width: 1.6; }
.newsletter-head h3 { font-size: 11.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.newsletter input { width: 100%; min-height: 38px; padding: 8px 12px; margin-bottom: 8px; border: 1px solid var(--ft-line); border-radius: 8px; font-size: 13px; outline: 0; background: #fff; transition: border-color .2s, box-shadow .2s; }
.newsletter input:focus { border-color: var(--violet-500); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.newsletter input[aria-invalid="true"] { border-color: #c2255c; }
.newsletter .btn { min-height: 38px; border-radius: 8px; font-size: 15px; }
.nl-msg { margin-top: 6px; font-size: 12px; min-height: 1em; }
.nl-msg:empty { display: none; }
.nl-msg.is-error { color: #c2255c; }
.nl-msg.is-ok { color: var(--green); }
.nl-perks { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding-left: 14px; }
.nl-perks li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink); }
.nl-perks .icon { width: 14px; height: 14px; stroke-width: 2.6; }

/* Applis, paiement, confiance */
.ft-badges { background: #fbfaff; border-top: 1px solid #ece7f7; }
.ft-badges-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 0; padding-block: 16px; }
.ft-group { padding-inline: 16px; }
.ft-group:first-child { padding-left: 0; }
.ft-group:last-child { padding-right: 0; }
.ft-group + .ft-group:not(.trustpilot) { border-left: 1px solid var(--ft-line); }
.ft-label { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-size: 12px; font-weight: 700; color: var(--ink); }
.ft-label .icon { width: 17px; height: 17px; color: var(--violet-700); }

.ft-apps { display: flex; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 5px 14px 5px 10px;
  border-radius: 8px; background: #000; color: #fff; transition: transform .2s var(--ease), box-shadow .2s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); }
.store-ico { width: 24px; height: 24px; flex-shrink: 0; }
.store span { display: flex; flex-direction: column; line-height: 1; }
.store small { font-size: 8px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.store:first-child small { text-transform: none; }
.store strong { margin-top: 2px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }

.pay-list { display: flex; gap: 5px; }
.pay-list li { width: 41px; height: 27px; display: grid; place-items: center; padding: 4px 6px; background: #fff; border: 1px solid var(--ft-line); border-radius: 6px; box-shadow: var(--shadow-sm); }
.pay-list svg { width: 100%; height: 100%; }
.pay-list .pay-amex { background: #2e77bc; border-color: #2e77bc; }

.secu-list { display: flex; gap: 6px; }
.secu-list li { display: flex; align-items: center; gap: 5px; padding: 5px 8px 5px 6px; background: #f5f2fc; border: 1px solid var(--ft-line); border-radius: 9px; }
.secu-list .icon { width: 19px; height: 19px; color: var(--violet-800); }
.secu-list span { display: flex; flex-direction: column; line-height: 1.1; }
.secu-list strong { font-size: 11.5px; font-weight: 800; color: var(--ink); }
.secu-list small { font-size: 9px; color: var(--muted); }

.ft-awards { display: flex; gap: 12px; }
.award { display: flex; align-items: center; gap: 1px; }
.award svg { width: 20px; height: 46px; color: var(--gold); }
.award p { display: flex; flex-direction: column; align-items: center; line-height: 1.1; text-align: center; color: var(--ink); }
.award small { font-size: 10.5px; font-weight: 500; }
.award strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }

.trustpilot { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #191919; }
.trustpilot > strong { font-size: 16px; font-weight: 700; line-height: 1; }
.tp-stars { display: flex; gap: 2px; }
.tp-stars i { width: 21px; height: 21px; display: grid; place-items: center; background: #00b67a; }
.tp-stars svg { width: 14px; height: 14px; color: #fff; }
.tp-brand { display: flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; letter-spacing: -.02em; }
.tp-brand svg { width: 15px; height: 15px; color: #00b67a; }

/* Barre de copyright */
.ft-bottom {
  color: rgba(255, 255, 255, .88);
  background:
    radial-gradient(40% 200% at 85% 120%, rgba(139, 92, 246, .35), transparent 60%),
    linear-gradient(90deg, #2a1060 0%, #3d1586 50%, #2a1062 100%);
}
.ft-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 11px; font-size: 12px; }
.ft-bottom-inner > p { white-space: nowrap; }
.ft-legal { display: flex; flex-wrap: wrap; align-items: center; margin-left: auto; white-space: nowrap; }
.ft-legal li + li::before { content: ""; display: inline-block; width: 1px; height: 13px; margin-inline: 11px; vertical-align: middle; background: rgba(255, 255, 255, .35); }
.ft-legal a { transition: color .2s; }
.ft-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lang {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; color: #fff; cursor: pointer;
}
.lang .icon { width: 17px; height: 17px; }
.lang .lang-chevron { width: 13px; height: 13px; pointer-events: none; }
.lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: #fff; font-size: 12.5px; font-weight: 500; padding: 0 2px; cursor: pointer; outline: 0; }
.lang select option { color: var(--ink); }
.lang:focus-within { outline: 3px solid var(--violet-300); outline-offset: 2px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1320px) {
  .ft-grid { grid-template-columns: minmax(0, 1fr) repeat(5, auto) 232px; }
  .ft-logo { font-size: 24px; }
  .footer-col { padding-inline: 12px; }
  .ft-trust-list li { gap: 10px; padding-inline: 8px; }
  .ft-trust-list strong { font-size: 13px; }
  .ft-trust-list span { font-size: 11px; }
  .ft-trust-list .icon { width: 26px; height: 26px; }
  .ft-group { padding-inline: 12px; }
  .ft-bottom-inner { font-size: 11.5px; }
  .ft-legal li + li::before { margin-inline: 8px; }
}

@media (max-width: 1280px) {
  .nav-link { padding: 0 6px; font-size: 13.5px; }
  .res-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-badges-inner { justify-content: center; gap: 20px 44px; padding-block: 20px; }
  .ft-group, .ft-group:first-child, .ft-group:last-child { padding-inline: 0; }
  .ft-group + .ft-group:not(.trustpilot) { border-left: 0; }
}

@media (max-width: 1260px) {
  .ft-trust-list li { white-space: normal; }
  .ft-bottom-inner { justify-content: center; }
  .ft-legal { margin-left: 0; }
  .ft-grid { grid-template-columns: repeat(5, auto) minmax(230px, 1fr); row-gap: 26px; }
  .ft-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 36px; }
  .ft-logo { font-size: 29px; }
  .ft-desc, .socials { max-width: 340px; margin: 0; }
  .ft-deco { display: none; }
  .footer-col:first-of-type { padding-left: 0; }
}

@media (max-width: 1140px) {
  .action-link span { display: none; }
  .cat-layout { grid-template-columns: 1fr; }
  .rating-card {
    display: grid; grid-template-columns: auto 1fr auto; column-gap: 20px; row-gap: 2px;
    grid-template-areas: "img title stars" "img title score" "img title count";
    text-align: left; padding: 14px 28px;
  }
  .rating-card img { grid-area: img; width: 96px; height: 96px; margin: 0; }
  .rating-card .rating-title { grid-area: title; }
  .rating-card .stars { grid-area: stars; margin: 0; justify-self: end; align-self: end; }
  .rating-card .rating-score { grid-area: score; justify-self: end; margin: 0; font-size: 26px; }
  .rating-card .rating-count { grid-area: count; justify-self: end; margin: 0; }
  .split, .split-methods { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .split .split-col + .split-col { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--border); }
  .pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-intro { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; margin-bottom: 10px; }
  .pricing-intro h2 { grid-column: 1; }
  .pricing-intro > p { grid-column: 1; margin: 0; }
  .pricing-intro .check-list { grid-column: 2; grid-row: 1 / 3; }
}

@media (min-width: 769px) and (max-width: 1140px) {
  .hero-img { left: auto; right: 0; width: 56%; object-position: 50% 20%; }
  .hero::before { background: linear-gradient(90deg, #f4f0fc 0%, #f4f0fc 47%, rgba(244, 240, 252, .6) 52%, rgba(244, 240, 252, 0) 58%); }
  .hero-inner > * { max-width: 400px; }
  .kicker { gap: 8px; font-size: 11.5px; letter-spacing: .13em; }
  .hero h1 { font-size: clamp(34px, 4.6vw, 48px); }
}

@media (max-width: 1024px) {
  .header-top { grid-template-columns: 1fr auto; grid-template-areas: "logo actions" "search search"; row-gap: 10px; }
  .burger { display: inline-flex; }
  .main-nav { display: none; max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; }
  .site-header.nav-open .main-nav { display: block; }
  .site-header.nav-open .burger .icon-open { display: none; }
  .site-header.nav-open .burger .icon-close { display: block; }
  .nav-list { flex-direction: column; padding-block: 8px 16px; }
  .nav-list > li + li { border-top: 1px solid var(--border); }
  .nav-link { width: 100%; height: 52px; justify-content: space-between; padding: 0 4px; font-size: 15.5px; }
  .nav-link.is-active::after { left: 4px; right: auto; width: 32px; }
  .sub { position: static; display: none; min-width: 0; padding: 0 0 10px 8px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub.open > .sub { display: block; }
  .sub a { padding: 10px 12px; font-size: 15px; }
  .nav-list > li.nav-cta { display: block; padding-top: 16px; border-top: 0; }

  .stats-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .stats-list li:nth-child(4) { border-left: 0; }
  .stats-laurel { display: none; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ft-trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .ft-trust-list li { justify-content: flex-start; }
  .ft-trust-list li:nth-child(4)::before { display: none; }
  .ft-grid { grid-template-columns: repeat(5, auto); justify-content: space-between; column-gap: 20px; }
  .ft-brand { flex-wrap: wrap; gap: 16px 32px; }
  .footer-col, .footer-col + .footer-col, .footer-col:last-of-type { padding-inline: 0; border: 0; }
  .newsletter { grid-column: 1 / -1; margin-left: 0; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px 16px; align-items: center; }
  .newsletter-head, .newsletter input { margin: 0; }
  .newsletter .btn { width: auto; padding-inline: 28px; }
  .nl-msg, .nl-perks { grid-column: 1 / -1; }
  .nl-perks { flex-direction: row; flex-wrap: wrap; gap: 6px 20px; margin-top: 0; padding-left: 0; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .header-top { gap: 10px; padding-block: 8px; }
  .logo { font-size: 21px; }
  .action-link { display: none; }
  .btn-account { display: none; }
  .search input { font-size: 16px; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; background: linear-gradient(180deg, #f4f0fc, #fff); }
  .hero::before { display: none; }
  .hero-img { position: relative; flex: 1 1 0; width: 100%; height: auto; min-height: 110px; object-position: 62% 22%; }
  .hero-inner { padding-block: 18px 20px; }
  .kicker { font-size: 10.5px; gap: 7px; letter-spacing: .12em; }
  .hero h1 { margin-top: 10px; font-size: clamp(30px, 8.6vw, 40px); }
  .hero-lead { margin-top: 12px; font-size: 15px; line-height: 1.5; }
  .hero-ctas { margin-top: 16px; gap: 10px; }
  .hero-ctas .btn { flex: 1 1 100%; min-height: 46px; padding-block: 10px; }

  .stats { padding-block: 10px; }
  .stats-list { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 0; }
  .stats-list li { flex-direction: column; justify-content: flex-start; gap: 2px; padding: 2px 3px; text-align: center; }
  .stats-list li:nth-child(4) { border-left: 1px solid var(--border); }
  .stats-list .icon { display: none; }
  .stats-list p { align-items: center; }
  .stats-list strong { font-size: clamp(14px, 4vw, 18px); white-space: nowrap; }
  .stats-list span { font-size: 11px; line-height: 1.25; }

  .section { padding-block: 28px; }
  .section-head { flex-wrap: wrap; row-gap: 6px; }
  .section-head h2 { font-size: 22px; }
  .res-head p { order: 3; flex-basis: 100%; }

  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cat-card img, .cat-more .dots { width: 64px; height: 64px; }
  .cat-card strong { font-size: 13.5px; }

  .rating-card {
    grid-template-columns: auto 1fr; column-gap: 14px; padding: 14px 16px;
    grid-template-areas: "img title" "img stars" "img score" "img count";
  }
  .rating-card img { width: 84px; height: 84px; align-self: center; }
  .rating-card .rating-title svg { display: none; }
  .rating-card .rating-title p { font-size: 16px; }
  .rating-card .stars, .rating-card .rating-score, .rating-card .rating-count { justify-self: start; }
  .rating-card .stars { --size: 16px; margin-top: 6px; }
  .rating-card .rating-score { font-size: 22px; }

  .level-grid, .trick-grid {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
    margin-inline: -18px; padding-inline: 18px; scroll-padding-inline: 18px;
    scrollbar-width: none;
  }
  .level-grid::-webkit-scrollbar, .trick-grid::-webkit-scrollbar { display: none; }
  .level-grid > li, .trick-grid > li { scroll-snap-align: start; }

  .methods { grid-template-columns: 1fr; }
  .methods-steps { flex-direction: row; justify-content: space-between; }
  .methods-steps img { width: 70px; height: 70px; }
  .check-list li { font-size: 15px; }

  .trainer-grid {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 38%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -18px; padding-inline: 18px; scrollbar-width: none;
  }
  .trainer-grid::-webkit-scrollbar { display: none; }
  .trainer-grid > li { scroll-snap-align: start; }

  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .res-card { padding: 12px; font-size: 13.5px; }
  .pricing { grid-template-columns: 1fr; gap: 22px; }
  .pricing-intro { display: block; }
  .pricing-intro > p { margin: 12px 0 14px; }
  .plan-featured { order: -1; }
  .pricing-intro { order: -2; }

  .site-footer { margin-top: 24px; }
  .ft-trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .ft-trust-list li { gap: 10px; padding: 2px 4px; }
  .ft-trust-list li::before { display: none; }
  .ft-trust-list li:last-child { grid-column: 1 / -1; }
  .ft-trust-list .icon { width: 26px; height: 26px; }
  .ft-trust-list strong { font-size: 13.5px; }

  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; padding-block: 28px 28px; }
  .ft-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ft-logo { font-size: 27px; }
  .socials { justify-content: flex-start; }
  .footer-col a { font-size: 14px; display: inline-block; padding-block: 3px; }
  .newsletter { display: block; }
  .newsletter-head { margin-bottom: 12px; }
  .newsletter input { margin-bottom: 10px; }
  .newsletter .btn { width: 100%; }
  .nl-perks { margin-top: 12px; }

  .ft-badges-inner { flex-direction: column; gap: 22px; padding-block: 24px; }
  .ft-group, .ft-group:first-child, .ft-group:last-child { padding-inline: 0; }
  .ft-group + .ft-group:not(.trustpilot) { border-left: 0; }
  .ft-group { display: flex; flex-direction: column; align-items: center; }
  .ft-apps, .ft-awards { flex-direction: row; gap: 12px; }
  .ft-awards { gap: 20px; }
  .store { padding-inline: 10px 14px; }
  .store strong { font-size: 17px; }
  .pay-list, .secu-list { flex-wrap: wrap; justify-content: center; }

  .ft-bottom-inner { flex-direction: column; text-align: center; padding-block: 18px; }
  .ft-bottom-inner > p, .ft-trust-list li { white-space: normal; }
  .ft-bottom-inner > p { white-space: normal; }
  .ft-legal { margin-left: 0; justify-content: center; row-gap: 6px; }
  .ft-legal { gap: 6px 18px; }
  .ft-legal li + li::before { display: none; }
}

@media (max-width: 768px) and (max-height: 720px) {
  .kicker { display: none; }
  .hero h1 { margin-top: 0; }
}

@media (max-width: 420px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trick-grid, .level-grid { grid-auto-columns: 82%; }
  .trainer-grid { grid-auto-columns: 46%; }
  .res-grid { grid-template-columns: 1fr; }
  .ft-apps { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Pages légales ---------- */
.legal-hero {
  background: linear-gradient(180deg, #f4f0fc 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 22px;
}
.legal-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.legal-crumb a { color: var(--violet-700); font-weight: 600; }
.legal-crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-hero h1 {
  margin-top: 10px;
  font-weight: 700; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -.03em;
  color: var(--ink);
}
.legal-updated { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.legal-nav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--violet-900); font-size: 13.5px; font-weight: 600;
}
.legal-nav a:hover { border-color: var(--violet-300); }
.legal-nav a[aria-current="page"] { background: var(--violet-700); border-color: transparent; color: #fff; }

.legal-layout {
  display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 48px; justify-content: start;
  padding-block: 32px 72px; align-items: start;
}
.legal-layout-wide { grid-template-columns: minmax(0, 1fr); }
.legal-toc { position: sticky; top: calc(var(--header-h, 120px) + 16px); }
.legal-toc p { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-900); }
.legal-toc a {
  display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--border);
  font-size: 14.5px; line-height: 1.35; color: var(--text);
}
.legal-toc a:hover { border-color: var(--violet-500); color: var(--violet-700); }

.legal-prose h2 {
  margin-top: 34px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink);
  scroll-margin-top: 130px;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p, .legal-prose li { font-size: 16.5px; line-height: 1.65; }
.legal-prose p { margin-top: 12px; }
.legal-prose h2 + p { margin-top: 10px; }
.legal-prose ul, .legal-prose ol { margin: 12px 0 0; padding-left: 1.25em; }
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li { margin: 6px 0; }
.legal-prose li::marker { color: var(--violet-500); }
.legal-prose a { color: var(--violet-700); text-decoration: underline; text-underline-offset: 3px; }
.legal-prose strong { color: var(--ink); font-weight: 650; }
.legal-prose table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 15px; }
.legal-prose th, .legal-prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.legal-prose th { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-900); }

.sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sitemap section { padding: 18px 18px 8px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.sitemap h2 { margin: 0 0 8px; font-size: 17px; }
.legal-prose .sitemap h2 { margin: 0 0 8px; font-size: 17px; }
.sitemap a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--border); color: var(--violet-800); font-weight: 600; text-decoration: none; }
.sitemap a:hover { color: var(--violet-600); }

@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; gap: 20px; padding-block: 22px 48px; }
  .legal-toc { position: static; }
  .legal-toc ul { display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .legal-toc a { border-left: 0; padding: 4px 0; }
  .sitemap { grid-template-columns: 1fr; }
}
