/* ==========================================================================
   vo10.net — les pages des mini-sites de devices (voir DEVSITES)

   Chargée seulement sur ces pages (inc/header.php, $meta['css']). Le socle
   — variables, boutons, cartes, grilles, en-têtes de page — est celui de
   style.css : maxtracker.live et vo10.net partagent la même charte. Ici :
     1. le menu du device et son pied (propres à vo10.net) ;
     2. les composants repris tels quels de maxtracker.live v2.0 :
        captures, schéma multicanal, encadrés de prix, paiement, FAQ,
        étapes, visionneuse, tableau des éditions.
   ========================================================================== */

/* -------------------------------------------------- 1. menu du device -- */
/* Collée juste sous l'en-tête du site, qui reste lui aussi en haut : 64 px
   + 1 px de bordure, 72 + 1 à partir de 1080 px (voir .topbar, style.css).
   Plus haut, elle passerait en partie dessous et perdrait sa hauteur. */
.dnav {
  position: sticky;
  top: 65px;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.dnav .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 56px;
}
.dnav-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.dnav-name[aria-current="page"] { color: var(--orange-ink); }
.dnav-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.dnav-links::-webkit-scrollbar { display: none; }
.dnav-links a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--fg-dim);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.dnav-links a:hover { color: var(--ink); background: var(--line-soft); }
.dnav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.dnav .dnav-buy { min-height: 38px; padding: 0 16px; font-size: .9rem; }
@media (min-width: 1080px) {
  .dnav { top: 73px; }
}
@media (max-width: 760px) {
  .dnav .wrap { gap: 10px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 0; }
  .dnav-name { order: 1; }
  .dnav .dnav-buy { order: 2; margin-left: auto; min-height: 34px; padding: 0 12px; }
  .dnav-links { order: 3; flex-basis: 100%; margin: 0 -8px; padding-bottom: 4px; }
}

/* Le pied du device : ses pages, avant le pied du site */
.dfoot {
  padding: 44px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.dfoot .wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}
.dfoot .foot-h {
  margin: 0 0 12px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.dfoot ul { list-style: none; margin: 0; padding: 0; }
.dfoot li { margin-bottom: 6px; }
.dfoot ul a { color: var(--fg); text-decoration: none; }
.dfoot ul a:hover { color: var(--ink); text-decoration: underline; }
.dfoot .dnav-name { display: inline-block; margin-bottom: 8px; }
@media (max-width: 760px) {
  .dfoot .wrap { grid-template-columns: 1fr 1fr; }
  .dfoot-id { grid-column: 1 / -1; }
}

/* ---------------------------- 2. composants repris de maxtracker.live -- */
/* La note sous les boutons d'achat, version maxtracker.live (plus large que
   celle de style.css). Avant les composants : leurs variantes .cta et
   .center la recentrent. */
.devsite .buy-note {
  margin: 12px 0 0;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--fg-faint);
  max-width: 52ch;
}
.devsite .cta .buy-note,
.devsite .center .buy-note { margin-inline: auto; text-align: center; }


/*
   Une capture est posée comme le device sur vo10.net : une carte, et dans
   la carte un plateau à points sur lequel l'interface de Live, sombre, se
   détache avec son ombre. Le plateau est neutre dans le corps de page et
   orange dans le bandeau d'accueil — la seule capture qui doive crier.
*/
figure.shot {
  --pad: clamp(14px, 2.6vw, 30px);
  margin: 32px 0;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--card);
  align-self: start;
}
figure.shot .frame {
  /* La largeur doit être définie pour que aspect-ratio en déduise la
     hauteur. Sans elle, un figure étiré par sa rangée de grille inverse le
     calcul et se retrouve plus étroit que sa colonne. */
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--fg-faint);
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}
figure.shot.tall { max-width: 680px; margin-inline: auto; }

/* Dans une grille, une marge automatique fait rétrécir l'élément à sa
   largeur de contenu — ici la longueur de la légende, ce qui donnait des
   encarts de tailles différentes selon le texte. La colonne fait déjà la
   largeur : on annule la marge. */
.grid-2 > figure.shot,
.grid-3 > figure.shot { margin: 0; max-width: none; }
figure.shot.tall .frame { aspect-ratio: 4 / 3; }
figure.shot.panel { max-width: 320px; margin-inline: auto; }
figure.shot.panel .frame { aspect-ratio: 3 / 4; }
figure.shot .frame .ph {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--orange-ink);
}
figure.shot .frame .file {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--fg-dim);
}
figure.shot .frame .hint { font-size: .85rem; max-width: 46ch; }
figure.shot img { width: 100%; height: auto; display: block; }
figure.shot figcaption {
  padding: 12px 10px 4px;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--fg-dim);
}
figure.shot.has-img .zoom {
  display: block;
  cursor: zoom-in;
  position: relative;
  padding: var(--pad);
  border-radius: var(--radius-md);
  background-color: var(--stage);
  background-image: var(--dots);
  background-size: var(--dots-size);
  text-decoration: none;
}
figure.shot.has-img img {
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}
figure.shot .zoom:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* La capture de l'accueil, dans le bandeau sombre : plateau orange, carte
   gris anthracite — exactement la carte « Dernier device » de vo10.net. */
.hero figure.shot { margin: 0; background: #232323; border: 1px solid #2e2e2e; }
.hero figure.shot.has-img .zoom { background-color: var(--orange); }
.hero figure.shot figcaption { color: #b8b8b8; }

/* Dans une galerie, des captures de proportions différentes donneraient une
   rangée en dents de scie. On impose le cadre et on contient l'image
   dedans — jamais de recadrage : sur une capture d'interface, un bord
   coupé est une information perdue. L'ombre tombe : posée sur une boîte
   plus grande que l'image, elle dessinerait un rectangle vide. */
.grid-2 > figure.shot.has-img img,
.grid-3 > figure.shot.has-img img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  box-shadow: none;
  border-radius: 0;
}

/*
   shot() pose la largeur réelle du fichier dans --nat. L'image occupe la
   place disponible, mais jamais plus que sa propre définition : au-delà,
   elle serait floue, et une petite fenêtre étalée sur toute la colonne
   ment sur sa taille à l'écran. Le plateau, lui, garde toute la largeur :
   l'image se centre dessus.
*/
figure.shot.has-img[style*="--nat"] img {
  max-width: min(100%, var(--nat));
  margin-inline: auto;
}
.grid-2 > figure.shot.has-img img,
.grid-3 > figure.shot.has-img img { max-width: 100%; }

/* Le gabarit étroit sert aussi aux petits panneaux réels : le menu
   contextuel, le récepteur. Sa largeur suit celle du fichier quand celui-ci
   est plus étroit encore — plateau et marge compris. */
figure.shot.panel.has-img {
  max-width: min(360px, calc(var(--nat, 300px) + 2 * var(--pad) + 20px));
}

/* ----------------------------------------------------- schéma multicanal --
   Le schéma est dessiné comme une portion de Live — des pistes sombres. On
   le pose sur le plateau orange, comme la carte de device du canevas. */
figure.lane { margin: 0; }
figure.lane > svg {
  box-sizing: border-box;
  padding: clamp(14px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background-color: var(--orange);
  background-image: var(--dots);
  background-size: var(--dots-size);
}
figure.lane figcaption { color: var(--fg-dim); }

/* ------------------------------------------------------------- pricing -- */
.pricebox {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 22px 50px rgba(28, 28, 28, .08);
}
.pricebox .head {
  padding: 28px 30px 0;
}
.pricebox .head h3 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; }
.pricebox .head p { margin: 0; color: var(--fg-dim); font-size: .94rem; }
.pricebox .amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 22px 30px 6px;
}
.pricebox .amount .val {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--fg-strong);
  letter-spacing: -.045em;
  line-height: 1;
}
.pricebox .amount .per {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.pricebox .body { padding: 8px 30px 30px; }
.pricebox ul.ticks { margin-top: 1rem; }
.pricebox hr { border-top-color: var(--line-soft); }
.vat {
  font-size: .82rem;
  color: var(--fg-faint);
  margin-top: 12px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.badge {
  font-size: .75rem;
  font-weight: 600;
  color: var(--fg-dim);
  background: var(--paper);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Dans un titre (« actuelle » sur l'historique), la pastille est noire,
   comme les numéros de version de la fiche device. */
h2 .badge {
  background: var(--ink);
  color: #ffffff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* ---------------------------------------------------------- checkout -- */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}
/* Le récapitulatif et le paiement partagent la première ligne : même haut,
   même bas. */
.checkout-sum, .checkout-go { align-self: stretch; display: flex; flex-direction: column; }
.checkout-sum > .pricebox, .checkout-go > #checkout { flex: 1; margin: 0; }
.checkout-more { grid-column: 1; }
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

/* Le panneau de droite ne contient plus de formulaire : l'achat se termine
   chez Gumroad. Il porte donc le geste, et rien d'autre — sur l'aplat
   orange, comme le bandeau d'appel. */
#checkout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 48px 38px;
  border-radius: var(--radius-lg);
}
#checkout h2 { margin-bottom: .45em; }
#checkout p { max-width: 44ch; }
#checkout .btn { margin-top: 12px; }

/* ------------------------------------------------------------ faq / acc -- */
details.faq {
  border-bottom: 1px solid var(--line);
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 44px 18px 0;
  color: var(--fg-strong);
  font-weight: 650;
  position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--card);
  color: var(--fg-strong);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
}
.alt details.faq summary::after { background: var(--paper); }
details.faq[open] summary::after { content: "−"; background: var(--orange); color: var(--ink); }
details.faq .a { padding: 0 44px 20px 0; color: var(--fg-dim); }

/* --------------------------------------------------------------- steps -- */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.4rem 0; }
ol.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 48px;
  margin-bottom: 1.15rem;
  color: var(--fg-dim);
}
ol.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: .82rem;
  font-weight: 700;
}
ol.steps li strong { color: var(--fg-strong); }

/* --------------------------------------------------------------- cta -- */
.cta { text-align: center; }
.cta .actions { justify-content: center; }
.cta .lede { color: var(--fg-dim); }

/* -------------------------------------------------------------- ideas -- */
.ideas {
  text-align: center;
  background: var(--white);
}
.ideas .lede { max-width: 68ch; }

/* Le sélecteur porte le nom de balise exprès : la feuille du navigateur
   cible « dialog[open] », plus spécifique qu'une simple classe, et gagnait
   sur display et sur la taille — le voile ne couvrait alors que la largeur
   de l'image au lieu de l'écran entier. Le voile reste sombre : une
   capture de Live se regarde mieux sur le noir. */
dialog.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 4vmin;
  background: rgba(17, 17, 17, .94);
  border: 0;
  cursor: zoom-out;
  color-scheme: dark;
}
dialog.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
dialog.lightbox::backdrop { background: rgba(17, 17, 17, .94); }
dialog.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}
dialog.lightbox figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2vmin;
  text-align: center;
  color: #b8b8b8;
  font-size: .9rem;
  padding: 0 4vmin;
}
dialog.lightbox .close {
  position: absolute;
  top: 2vmin;
  right: 2vmin;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #3d3d3d;
  background: #1e1e1e;
  color: #f2f2f2;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
dialog.lightbox .close:hover { border-color: var(--orange); }
@media (prefers-reduced-motion: no-preference) {
  dialog.lightbox[open] img { animation: lb-in .16s ease-out; }
}

/* -------------------------------------------------------------- trailer -- */
.trailer-band { padding-top: 8px; }
figure.trailer {
  /* Le lecteur ne prend pas toute la largeur de la page : à 1180 px il
     écrasait tout le reste, et il fallait faire défiler pour voir sa fin.
     820 px suffisent pour lire la grille du film, et la section respire.
     La hauteur est bornée par la fenêtre : sur un portable bas de plafond,
     la vidéo tient à l'écran au lieu de déborder sous le pli. */
  --trailer-w: 820px;
  max-width: min(var(--trailer-w), 100%, calc(70vh * 16 / 9));
  margin: 24px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  line-height: 0;               /* pas de liseré sous la vidéo */
}
figure.trailer video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;              /* sans quoi la largeur intrinsèque déborde */
  aspect-ratio: 16 / 9;         /* la place est réservée avant le chargement */
  background: #000;
}

/* Le gabarit, tant que le fichier n'est pas là : même dessin que celui des
   captures, mais sans légende et au format d'une vidéo. */
figure.shot.video-slot { margin: 24px 0 0; }
figure.shot.video-slot .frame { aspect-ratio: 16 / 9; }
.cta .buy-note,
.center .buy-note { margin-inline: auto; text-align: center; }

/* L'astérisque qui relie le prix à sa mention de taxe.
   Une <sup> est déjà remontée par le navigateur : lui ajouter un
   vertical-align:super la propulsait trop haut, et à 0,72 em le glyphe
   devenait un point. On la laisse à sa place, à peine réduite. */
sup.ast {
  font-size: 1em;
  line-height: 0;
  margin-left: 2px;
  font-weight: 700;
}
.btn-primary sup.ast { color: rgba(28, 28, 28, .55); }
.cta .btn-primary sup.ast,
#checkout .btn-primary sup.ast { color: rgba(255, 255, 255, .6); }
.pricebox sup.ast { color: var(--orange-ink); }

/* Devant la note, l'astérisque reste sur la ligne : c'est un repère de
   lecture, pas un exposant. Orange vif sur le sombre, orange encre sur le
   clair, noir sur l'aplat orange. */
.buy-note .ast,
.vat .ast {
  color: var(--orange-ink);
  font-weight: 700;
  margin-right: 3px;
}
.hero .buy-note .ast { color: var(--orange); }
.cta .buy-note .ast { color: var(--ink); }

/*
   La colonne gratuite se tient à côté de la payante sans lui disputer le
   regard : même gabarit, mais posée à plat — pas d'ombre portée, le fond
   du papier, un filet, un bouton secondaire. Le prix, lui, garde presque
   la taille de l'autre pour que les deux lignes s'alignent.
*/
.pricebox.lite {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--line);
}
.pricebox.lite .amount .val {
  color: var(--fg);
  font-size: 2.6rem;
}
.pricebox.lite .body .vat { margin-top: 16px; }

/*
   La table des différences. La première colonne nomme la chose, les deux
   autres répondent ; celle de l'édition complète est teintée d'orange pour
   qu'on suive la bonne ligne du regard sans avoir à relire l'en-tête.
*/
table.editions { margin-top: 0; }
table.editions th:first-child,
table.editions td:first-child {
  width: 34%;
  color: var(--fg-strong);
  font-weight: 600;
}
table.editions td { color: var(--fg-dim); }
table.editions th:last-child,
table.editions td:last-child {
  background: rgba(253, 164, 58, .12);
  padding-left: 14px;
  padding-right: 14px;
}
table.editions thead th:last-child { color: var(--orange-ink); }
table.editions td strong { color: var(--fg-strong); }
@media (max-width: 560px) {
  table.editions { font-size: .85rem; }
  table.editions th, table.editions td { padding: 10px 8px; }
  table.editions th:first-child,
  table.editions td:first-child { width: auto; padding-left: 0; }
}

/* Empilées, les deux colonnes changent d'ordre : la gratuite passe sous la
   payante. Côte à côte, lire « gratuit » puis « 29 $ » va de soi ; l'une
   au-dessus de l'autre, cela reléguerait le bouton d'achat à un écran de
   défilement. */
@media (max-width: 640px) {
  .pricebox.lite { order: 2; }
}

/*
   Côte à côte, chaque lecteur perd la borne des 820 px : c'est la colonne
   qui décide, sinon les deux vidéos se retrouveraient centrées dans des
   demi-largeurs avec un trou entre elles. La borne de hauteur tombe aussi —
   à moitié moins large, une vidéo 16/9 ne menace plus le pli.
*/
.trailer-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.trailer-pair .tr-one { margin: 0; }
.trailer-pair figure.trailer { max-width: 100%; margin-top: 0; }
.trailer-pair .tr-one figcaption {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--fg-faint);
  line-height: 1.5;
}
@media (max-width: 760px) {
  .trailer-pair { grid-template-columns: 1fr; gap: 28px; }
}
