/* Composants : boutons, puces, cartes, écran de MacBook et île rejouée, instants,
   captures, liste des séances, prix, FAQ. */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn--primary:hover {
  background: #ffa75f;
}

.btn--ghost {
  background: rgb(255 255 255 / 0.06);
  border-color: var(--panel-border);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgb(255 255 255 / 0.1);
}

.btn--sm {
  min-height: 40px;
  padding-inline: 1rem;
  font-size: 0.95rem;
}

/* ---------- Puces, cartes, zones ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-pill);
  background: var(--bg-raised);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
}

/* Pastille de zone, comme dans la liste des séances de l'app. */
.zone {
  display: inline-block;
  min-width: 2.4em;
  padding: 0.15em 0.5em;
  border-radius: var(--radius-sm);
  background: var(--zone-color, var(--z1));
  color: #0b0c10;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.ticks {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-soft);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--tick, var(--accent));
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.ticks--no li::before {
  --tick: var(--text-faint);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* ---------- Écran de MacBook : la « vidéo » et l'encoche ---------- */

/* L'île est mise en page aux points de l'app (encoche 185 × 32, ailes, hauteurs
   d'`IslandLayout`), puis réduite d'un bloc : `--s` règle tout. */
.mac {
  --s: var(--island-scale);
  position: relative;
  padding: 10px 10px 0;
  border-radius: 22px 22px 8px 8px;
  background: var(--bezel);
  box-shadow:
    0 30px 80px rgb(0 0 0 / 0.6),
    inset 0 0 0 1px rgb(255 255 255 / 0.06);
}

.mac__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px 12px 0 0;
  background: #000;
}

/* ---------- La série : format cinéma, trois plans, un lecteur ---------- */

/* L'image au format 2,39:1, entre deux bandes noires : l'île vit dans celle du haut, comme
   un vrai film sur un MacBook. */
.film {
  position: absolute;
  left: 0;
  right: 0;
  top: 13%;
  bottom: 13%;
  overflow: hidden;
  background: #06070b;
}

/* Un plan (à ne pas confondre avec `.shot`, les captures de la fenêtre) : des nappes de lumière
   et quelques lumières floues, qui dérivent le temps du plan (Ken Burns). Le fondu entre deux
   plans fait le montage. */
.film__plan {
  position: absolute;
  inset: -4%;
  opacity: 0;
  transition: opacity 1200ms ease;
}

.film__plan.is-on {
  opacity: 1;
  animation: shot-drift 7s linear both;
}

@keyframes shot-drift {
  from {
    transform: scale(1) translate(0, 0);
  }

  to {
    transform: scale(1.06) translate(-1%, 0.6%);
  }
}

/* Nuit, rue : bleu profond, enseignes et phares flous. */
.film__plan--night {
  background:
    radial-gradient(circle at 18% 58%, rgb(255 196 120 / 0.55) 0, rgb(255 196 120 / 0.25) 3%, transparent 6%),
    radial-gradient(circle at 26% 64%, rgb(255 140 80 / 0.4) 0, transparent 4%),
    radial-gradient(circle at 71% 46%, rgb(120 200 255 / 0.5) 0, rgb(120 200 255 / 0.2) 2.5%, transparent 5%),
    radial-gradient(circle at 80% 52%, rgb(255 120 160 / 0.45) 0, transparent 4%),
    radial-gradient(circle at 60% 70%, rgb(255 230 180 / 0.35) 0, transparent 3%),
    radial-gradient(ellipse at 50% 110%, rgb(40 60 110 / 0.9), transparent 55%),
    linear-gradient(180deg, #060913, #0d1630 60%, #1a2246);
}

/* Intérieur, soir : ambre, une fenêtre, une lampe. */
.film__plan--room {
  background:
    radial-gradient(ellipse at 24% 40%, rgb(255 210 150 / 0.55), rgb(255 190 120 / 0.2) 18%, transparent 40%),
    radial-gradient(circle at 76% 30%, rgb(255 170 90 / 0.6) 0, rgb(255 170 90 / 0.2) 4%, transparent 9%),
    radial-gradient(ellipse at 50% 100%, rgb(70 40 20 / 0.9), transparent 60%),
    linear-gradient(160deg, #1c120a, #2a1a0e 50%, #140c07);
}

/* Aube, dehors : gris-vert, lumière rasante. */
.film__plan--dawn {
  background:
    radial-gradient(ellipse at 70% 18%, rgb(220 235 240 / 0.45), transparent 45%),
    radial-gradient(ellipse at 30% 110%, rgb(30 60 60 / 0.9), transparent 55%),
    linear-gradient(180deg, #2a3a44, #1a2a30 55%, #0f1a1e);
}

/* Le lecteur : titre en haut, barre et commandes en bas, qui s'effacent après quelques
   secondes et reviennent quand le pointeur bouge, comme sur un vrai. */
.player {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: #fff;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}

.player.is-shown {
  opacity: 1;
}

.player__top,
.player__bottom {
  position: absolute;
  left: 3.5%;
  right: 3.5%;
}

.player__top {
  top: 15.5%;
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: clamp(0.65rem, 1.4vw, 1rem);
  font-weight: 600;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.7);
}

.player__title {
  letter-spacing: 0.01em;
}

.player__episode {
  font-weight: 400;
  opacity: 0.8;
}

.player__time {
  opacity: 0.9;
}

/* Quand l'île s'ouvre, le titre du lecteur s'efface pour ne pas se battre avec elle. */
.mac__screen:has(.island[data-state='announce']) .player__top,
.mac__screen:has(.island[data-state='expanded']) .player__top {
  opacity: 0;
}

.player__top {
  transition: opacity 300ms ease;
}

.player__bottom {
  bottom: 15%;
  display: grid;
  gap: 0.6em;
  font-size: clamp(0.6rem, 1.3vw, 0.9rem);
}

.player__line {
  height: 3px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.25);
}

.player__line i {
  display: block;
  position: relative;
  width: var(--fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: #fff;
  /* Le lecteur avance d'une seconde par seconde : la barre glisse la seconde entière. */
  transition: width 1s linear;
}

.player__line i::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 11px;
  height: 11px;
  translate: 0 -50%;
  border-radius: 50%;
  background: #fff;
}

.player__row {
  display: flex;
  align-items: center;
  gap: 1.1em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.7);
}

.player__spacer {
  flex: 1;
}

.player__icon {
  width: 1.6em;
  height: 1.6em;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.6));
}

.mac__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, transparent 45%, rgb(0 0 0 / 0.4));
  pointer-events: none;
}

.mac__notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(185px * var(--s));
  height: calc(32px * var(--s));
  translate: -50% 0;
  border-radius: 0 0 calc(11px * var(--s)) calc(11px * var(--s));
  background: #000;
}

/* Sous-titres, comme un lecteur les pose : juste au-dessus de la bande noire du bas. */
.mac__subtitle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15.5%;
  z-index: 1;
  text-align: center;
  font-size: clamp(0.8rem, 1.9vw, 1.3rem);
  font-weight: 500;
  color: #f6f6f6;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.9), 0 0 6px rgb(0 0 0 / 0.6);
  transition: bottom 400ms var(--ease-out);
}

/* Entre deux répliques, le sous-titre s'éteint puis revient (le script pose .is-cut). */
.mac__subtitle span {
  transition: opacity 280ms ease;
}

.mac__subtitle .is-cut {
  opacity: 0;
}

/* Comme sur un vrai lecteur, les sous-titres montent quand les commandes apparaissent. */
.player.is-shown ~ .mac__subtitle {
  bottom: 25%;
}


/* Pointeur du Mac : il vient survoler l'île, qui s'ouvre, puis repart. */
.mac__pointer {
  position: absolute;
  left: 72%;
  top: 72%;
  z-index: 3;
  width: 18px;
  height: 26px;
  opacity: 0;
  color: #fff;
  filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / 0.7));
  pointer-events: none;
  transition:
    left 900ms var(--ease-out),
    top 900ms var(--ease-out),
    opacity 300ms ease;
}

.mac__pointer.is-shown {
  opacity: 1;
}

/* Scène de 743 × 142 points (la plus grande île, `IslandLayout.largest`), réduite
   autour du haut de l'écran. */
.stage {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 743px;
  height: 142px;
  transform: translateX(-50%) scale(var(--s));
  transform-origin: 50% 0;
}

/* ---------- L'île (HUDView) ---------- */

.island {
  --wing: 170px;
  --extra: 22px;
  --radius: 16px;
  position: relative;
  width: calc(185px + 2 * var(--wing));
  height: calc(32px + var(--extra));
  margin: 0 auto;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #000;
  color: #fff;
  font-family: var(--font-hud);
  line-height: 1.15;
  filter: drop-shadow(0 8px 14px rgb(0 0 0 / 0.55));
  transition:
    width var(--spring) var(--ease-spring),
    height var(--spring) var(--ease-spring),
    border-radius var(--spring) var(--ease-spring);
}

.island[data-state='announce'] {
  --wing: 215px;
  --extra: 74px;
  --radius: 24px;
}

.island[data-state='expanded'] {
  --wing: 235px;
  --extra: 110px;
  --radius: 28px;
}

/* Les oreilles : un carré de 12 points moins un quart de disque, de chaque côté,
   comme `IslandShape`. */
.island::before,
.island::after {
  content: '';
  position: absolute;
  top: 0;
  width: 12px;
  height: 12px;
}

.island::before {
  left: -12px;
  background: radial-gradient(circle at 0 100%, transparent 11.5px, #000 12px);
}

.island::after {
  right: -12px;
  background: radial-gradient(circle at 100% 100%, transparent 11.5px, #000 12px);
}

/* Changement d'étape : le halo de la zone respire (HUDMotion.pulse). */
.island.is-glow {
  animation: island-glow 1s ease-in-out infinite alternate;
}

@keyframes island-glow {
  from {
    filter: drop-shadow(0 8px 14px rgb(0 0 0 / 0.55)) drop-shadow(0 2px 10px rgb(255 148 56 / 0.45));
  }

  to {
    filter: drop-shadow(0 8px 14px rgb(0 0 0 / 0.55)) drop-shadow(0 2px 24px rgb(255 148 56 / 0.85));
  }
}

.island__clip {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
}

/* La bande de part et d'autre de l'encoche : 32 + 6 points. */
.island__band {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: 1fr 185px 1fr;
  height: 38px;
  padding: 2px 22px 0;
}

.island__extra {
  position: relative;
  flex: 1;
  min-height: 0;
}

.wing {
  position: relative;
}

/* Un calque par état ; le script allume celui de l'état courant. Ce qui part
   s'efface en flou en 0,12 s, ce qui arrive attend 0,14 s puis apparaît en 0,26 s,
   l'un sur l'autre, rien ne pousse rien (HUDMotion.swap). */
.layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  opacity: 0;
  filter: blur(6px);
  transform: scale(0.92);
  pointer-events: none;
  transition:
    opacity var(--swap-out) ease-in,
    filter var(--swap-out) ease-in,
    transform var(--swap-out) ease-in;
}

.layer.is-on {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity var(--swap-in) var(--ease-out) var(--swap-delay),
    filter var(--swap-in) var(--ease-out) var(--swap-delay),
    transform var(--swap-in) var(--ease-out) var(--swap-delay);
}

.wing--right .layer {
  align-items: flex-end;
  text-align: right;
}

.hud-big {
  font-size: var(--hud-big);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.hud-huge {
  font-size: var(--hud-huge);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hud-small {
  font-size: var(--hud-small);
  font-weight: 600;
  color: var(--hud-muted);
  font-variant-numeric: tabular-nums;
}

.hud-label {
  font-size: var(--hud-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hud-muted);
}

.hud-accent {
  color: var(--z5);
}

.hud-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hud-row--base {
  align-items: baseline;
  gap: 3px;
}

.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--z5);
}

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.12);
  font-size: var(--hud-small);
  font-weight: 700;
  color: var(--hud-muted);
}

.pill--zone {
  background: rgb(255 148 56 / 0.25);
  color: var(--z5);
}

.pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pills .hud-small {
  margin-left: auto;
}

/* Barre de progression de l'étape (ProgressBar) et profil de la séance. */
.bar {
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.12);
}

.bar > i {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--z5);
  transition: width var(--tick) linear;
}

.bar--thick {
  height: 5px;
}

.bar--thick > i {
  transition-duration: var(--tick-countdown);
}

/* La barre de profil (SessionProfileBar) : un bloc par suite d'étapes de même zone, largeur
   selon la durée mais jamais moins de 3 points, 1 point d'écart, coins de 1,5. Les blocs faits à
   80 %, ceux à venir à 45 %. Le bloc en cours se remplit et dépasse de 2 points en haut et en bas ;
   pendant l'annonce, le script fait passer ce relief au bloc suivant (--lift). */
.profile {
  display: flex;
  align-items: center;
  gap: 1px;
  height: 4px;
}

.profile > i {
  flex: var(--w) 1 0;
  min-width: 3px;
  height: calc(4px + 4px * var(--lift, 0));
  border-radius: 1.5px;
  background: color-mix(in srgb, var(--c) 45%, transparent);
  transition: height var(--tick-countdown) linear;
}

.profile > i.is-done {
  background: color-mix(in srgb, var(--c) 80%, transparent);
}

.profile > i.is-current {
  background: linear-gradient(to right, var(--c) var(--p), color-mix(in srgb, var(--c) 45%, transparent) var(--p));
}

.extra-compact {
  justify-content: flex-end;
  gap: 4px;
  padding: 0 22px 4px;
}

.extra-announce {
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 18px 12px;
}

.extra-expanded {
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 18px;
}

.extra-expanded .stack {
  display: grid;
  gap: 4px;
}

.live {
  display: flex;
  justify-content: space-around;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric b {
  font-size: var(--hud-big);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.metric b small {
  margin-left: 2px;
  font-size: var(--hud-small);
  font-weight: 600;
  color: var(--hud-muted);
}

.controls {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ctrl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.12);
  font-size: var(--hud-small);
  font-weight: 600;
  color: #fff;
}

.ctrl--stop {
  color: var(--z5);
}

.ctrl svg {
  width: 10px;
  height: 10px;
}

/* ---------- Instants de la séance : rendus de l'app ---------- */

.moments {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.moment {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1rem, 2.5vw, 1.75rem);
}

.moment__copy {
  display: grid;
  gap: 0.5rem;
}

.moment__copy p {
  color: var(--text-soft);
}

.moment__shot {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--scene-b);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}

.moment__shot img {
  width: 100%;
}

@media (max-width: 48rem) {
  .moment {
    grid-template-columns: 1fr;
  }

  .moment__shot {
    order: -1;
  }
}

/* ---------- Captures de la fenêtre ---------- */

.shot {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow:
    0 20px 50px rgb(0 0 0 / 0.5),
    inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.shot img {
  width: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: 1.5fr 1.3fr;
  gap: 1rem;
  align-items: start;
}

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

/* ---------- Les séances incluses ---------- */

.workouts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.workout {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
}

.workout b {
  flex: 1;
  font-weight: 600;
}

.workout .num {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- Prix ---------- */

.price {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.price__amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price__amount small {
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-soft);
}

.price__copy {
  display: grid;
  gap: 0.8rem;
}

.price__copy p {
  color: var(--text-soft);
}

.price__side {
  display: grid;
  gap: 1.2rem;
}

@media (max-width: 48rem) {
  .price {
    grid-template-columns: 1fr;
  }
}

/* ---------- Ce qu'il te faut ---------- */

.needs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.need {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.4rem;
}

.need p {
  color: var(--text-soft);
}

@media (max-width: 48rem) {
  .needs {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--rule);
}

.faq__item {
  border-bottom: 1px solid var(--rule);
}

.faq__item summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 12px;
  height: 12px;
  translate: 0 -50%;
  background: var(--text-soft);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 200ms ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  padding: 0 2.5rem 1.2rem 0;
  color: var(--text-soft);
}

@media (prefers-reduced-motion: reduce) {
  .island,
  .layer,
  .bar > i,
  .mac__pointer,
  .faq__item summary::after {
    transition: none;
  }

  .island.is-glow {
    animation: none;
  }
}

/* ---------- Home trainers compatibles ---------- */

.trainers {
  display: grid;
  gap: 1.6rem;
  margin-top: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.trainers__head {
  display: grid;
  gap: 0.5rem;
  max-width: 44rem;
}

.trainers__head p {
  color: var(--text-soft);
}

.trainers__brands {
  display: grid;
  /* Quatre marques par ligne sur ordinateur, deux sur téléphone. */
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 40%), 1fr));
  gap: 1.4rem 1.2rem;
  padding: 0;
  list-style: none;
}

.maker {
  display: grid;
  align-content: start;
  gap: 0.3rem;
}

.maker b {
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.maker span {
  color: var(--text);
}

.maker small {
  margin-left: 0.3em;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.trainers__notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

.trainers__notes dt {
  margin-bottom: 0.3rem;
  font-weight: 650;
}

.trainers__notes dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

@media (max-width: 48rem) {
  .trainers__notes {
    grid-template-columns: 1fr;
  }
}

/* ---------- Vérificateur de compatibilité ---------- */

.checker {
  display: grid;
  gap: 0.9rem;
}

.checker__input {
  width: 100%;
  min-height: 54px;
  padding: 0 1.1rem;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-size: 1.1rem;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.checker__input::placeholder {
  color: var(--text-faint);
}

.checker__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(255 148 56 / 0.18);
}

.checker__examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.checker__try {
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-pill);
  background: var(--bg-raised);
  color: var(--text-soft);
  font-size: 0.9rem;
  cursor: pointer;
}

.checker__try:hover {
  color: var(--text);
  border-color: rgb(255 255 255 / 0.2);
}

.checker__results {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.checker__results:empty {
  display: none;
}

/* Une ligne de résultat : le modèle à gauche, le verdict à droite, le détail dessous. */
.checker__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  animation: rise 300ms var(--ease-out) both;
}

.checker__name {
  font-weight: 600;
}

.checker__detail {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.checker__badge {
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.checker__badge[data-status='ok'] {
  background: rgb(107 219 133 / 0.16);
  color: var(--z3);
}

.checker__badge[data-status='check'] {
  background: rgb(255 214 77 / 0.16);
  color: var(--z4);
}

.checker__badge[data-status='no'],
.checker__badge[data-status='unknown'] {
  background: rgb(255 255 255 / 0.08);
  color: var(--text-soft);
}

.checker__note {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* La liste complète, repliée sous le vérificateur ; sans script, elle est la seule réponse. */
.trainers__all summary {
  width: fit-content;
  color: var(--text-soft);
  font-weight: 600;
  cursor: pointer;
}

.trainers__all summary:hover {
  color: var(--text);
}

.trainers__all[open] summary {
  margin-bottom: 1.4rem;
}

.trainers__all .trainers__brands {
  margin-bottom: 1.6rem;
}

.maker span[data-status='check'] {
  color: var(--text-soft);
}
