/* ============================================================
   Fiches produit (overlay-page.html et les fiches prerendues qui en
   sont copiees) : direction artistique des pages refaites (attio,
   cartes facon framer). Charge APRES style.css et le <style> du gabarit :
   on garde leurs regles de fonctionnement (moteur de manette, galerie,
   demo, barre mobile) et on ne reprend ici que l'apparence.
   Nav et pied de page : copie des composants de help.css (lp-alt-1).
   Theme clair impose, comme sur toutes les pages refaites.
   ============================================================ */
:root, :root[data-theme="dark"], [data-theme="dark"] {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f6f7f9; --surface-3: #eef0f3;
  --line: #e4e7ec; --line-2: #edeff3; --field: #cad0d9; --fill: #fafafb; --hover: #f3f4f6;
  --text: #1c1d1f; --text-muted: #6f7988; --text-faint: #8f99a8; --text-dim: #6f7988;
  --ink: #1c1d1f; --ink-2: #2e3238; --muted: #6f7988; --faint: #a4adba; --icon: #505967;
  --brand: #2f5fe3; --brand-text: #2f5fe3; --brand-deep: #1f47c4; --brand-bright: #4f7cff;
  --link: #266df0; --navy: #011767;
  --font-display: "Instrument Sans", -apple-system, "Inter", "Segoe UI", sans-serif;
  --font-body: "Geist", -apple-system, "Inter", "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --nav-h: 68px;
}
html, body { background: #fff; }
body { color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }

/* ---- Boutons (copie de help.css) ---- */
.btn-navy { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-family: var(--font-display); font-weight: 600; white-space: nowrap; text-decoration: none;
  background: radial-gradient(90% 60% at 50% 0%, rgba(255,255,255,.05), rgba(255,255,255,0)), var(--navy);
  box-shadow: 0 16px 16px rgba(0,0,0,.03), 0 8px 8px rgba(0,0,0,.03), 0 4px 4px rgba(0,0,0,.03), 0 2px 2px rgba(0,0,0,.03), inset 0 0 16px rgba(255,255,255,.1), inset 0 0 8px rgba(255,255,255,.2), inset 0 .5px 0 rgba(255,255,255,.1);
  transition: background-color .2s ease, transform .2s ease; }
.btn-navy:hover { background-color: #0a2585; transform: translateY(-1px); color: #fff; }
.btn-navy:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; }
.btn-navy--sm { height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12px; }

/* ---- Nav (copie de help.css) ---- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; padding: 0 24px;
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { width: 100%; max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 36px; }
.nav-logo { display: flex; align-items: center; margin: -8px -4px; padding: 8px 4px; border-radius: 12px; }
@property --mark-icon { syntax: '<color>'; inherits: true; initial-value: #2f5fe3; }
@property --mark-text { syntax: '<color>'; inherits: true; initial-value: #171a21; }
.brand-mark { display: block; flex: none; aspect-ratio: 400 / 73; background: linear-gradient(90deg, var(--mark-icon) 0 27.5%, var(--mark-text) 27.5% 100%);
  -webkit-mask: url(assets/brand/wordmark.png) center / contain no-repeat; mask: url(assets/brand/wordmark.png) center / contain no-repeat; }
.nav-logo .brand-mark { height: 24px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a, .nav-login { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px;
  font-weight: 500; white-space: nowrap; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.nav-links a { font-size: 15px; line-height: 22px; letter-spacing: -.01em; color: var(--ink-2); }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { background: var(--hover); color: #232529; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 14px; line-height: 20px; color: var(--ink-2); background: #fff; border-color: var(--field); }
.nav-login:hover, .nav-login:focus-visible { border-color: #6f7988; color: var(--ink-2); }
.nav-links a:focus-visible, .nav-login:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.nav .btn-navy--sm { height: 36px; padding: 0 12px; border-radius: 10px; font-family: var(--font-body); font-size: 14px; font-weight: 500; }
.nav .nav-cart { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--field); border-radius: 10px; background: #fff; color: var(--ink-2); transition: border-color .2s ease; }
.nav .nav-cart:hover { background: #fff; border-color: #6f7988; }
.nav .nav-cart svg { width: 16px; height: 16px; }
.nav .cart-badge { top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid #fff; background: var(--navy); font: 600 10px/1 var(--font-mono); }

/* ---- Pied de page (copie de help.css) ---- */
.footer { position: relative; padding: 56px 20px 40px; background: #00092b; border-top: 1px solid rgba(255,255,255,.1); }
.footer a { text-decoration: none; }
.foot-cols { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 320px) repeat(4, minmax(0, 1fr)); column-gap: 48px; }
.foot-logo { display: inline-flex; --mark-icon: #4f7cff; --mark-text: #fff; border-radius: 8px; }
.foot-logo .brand-mark { height: 26px; }
.foot-tagline { max-width: 260px; margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: #aeb6c4; }
.foot-cta { display: inline-flex; align-items: center; height: 34px; margin-top: 20px; padding: 0 14px; border-radius: 9px; background: #fff; color: #00092b; font-size: 13px; font-weight: 600; transition: background-color .15s ease, transform .2s ease; }
.foot-cta:hover { background: #e8eeff; color: #00092b; transform: translateY(-1px); }
.foot-brand .foot-social { margin-top: 24px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-col h4 { margin: 0 0 4px; font-weight: 600; font-size: 12px; line-height: 1.45; letter-spacing: .06em; text-transform: uppercase; color: #8f99a8; }
.foot-col a { display: block; font-size: 14px; line-height: 1.45; color: #c9d0db; transition: color .15s ease; white-space: nowrap; }
.foot-col a:hover { color: #fff; }
.foot-bottom { max-width: 1200px; margin: 64px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; font-size: 13px; line-height: 1.45; color: #8f99a8; }
.foot-social { display: flex; align-items: center; gap: 4px; margin-left: -8px; }
.foot-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #8f99a8; transition: color .15s ease, background-color .15s ease; }
.foot-social a:hover { color: #fff; background: rgba(255,255,255,.08); }
.foot-legal p { margin: 0; }
.foot-legal { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-legal-links { display: flex; gap: 16px; }
.foot-bottom > .foot-legal:only-child { width: 100%; justify-content: space-between; }
.foot-legal a { color: #8f99a8; transition: color .15s ease; }
.foot-legal a:hover { color: #fff; }

/* ============================================================
   Fiche : galerie a gauche, infos a droite, puis sections
   ============================================================ */
.page { max-width: 1240px; padding: 16px 24px 0; }
.pp-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 8px 0 20px; font: 500 13px/20px var(--font-body); color: var(--muted); }
.pp-crumbs a { color: var(--muted); text-decoration: none; }
.pp-crumbs a:hover { color: var(--ink); }
.pp-crumbs svg { flex: none; width: 12px; height: 12px; color: var(--faint); }
.pp-crumbs span { overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.product-layout { grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr); gap: 56px; margin-bottom: 96px; }

/* ---- Visuel ---- */
.preview-panel { border: 0; border-radius: 20px; background: #f5f6f8; box-shadow: none; }
.controller-demo-button, .preview-demo-row .controller-demo-button { min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(16,24,40,.05); font: 500 13px/1 var(--font-body); }
.controller-demo-button:hover, .preview-demo-row .controller-demo-button:hover { border-color: var(--field); color: var(--ink); }
.controller-demo-button.is-playing { background: #fff; color: var(--ink); }
.preview-connection .gp-status { font: 500 12px/18px var(--font-body); color: var(--muted); }
.controller-demo-progress { background: #e4e7ec; }
.controller-demo-progress span { background: var(--navy); box-shadow: none; }

/* ---- Galerie ----
   Une scene de taille FIXE (4:3) pour tout : manette en direct, captures de stream,
   images. Plus de saut de hauteur d'une vignette a l'autre. Sous le visuel, une
   ligne reservee : nom du jeu a gauche, fleches et compteur a droite, jamais
   poses sur l'image (ils masquaient la manette des scenes de stream). */
@media (min-width: 901px) {
  .product-layout { align-items: start; }
  .product-visual-column { position: sticky; top: calc(var(--nav-h) + 20px); }
  .preview-panel { flex: none; }
}
.preview-panel:not(.is-bundle-preview) { aspect-ratio: 4 / 3; min-height: 0; padding: 16px; container-type: size; }
.preview-panel:not(.is-bundle-preview) .controller-demo-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.preview-panel:not(.is-bundle-preview) #mount { flex: 1 1 0; height: auto; min-height: 0; }
.pgal.is-media .controller-demo-shell { display: none !important; }
.preview-panel:not(.is-bundle-preview) .gp-svg { width: min(100%, 560px); height: 100%; max-width: 560px; max-height: 100%; }
.pgal-layout.is-gallery .preview-panel:not(.is-bundle-preview) { padding-bottom: 56px; }
.pgal-layout.is-media .preview-panel:not(.is-bundle-preview) { align-self: start; min-height: 0; padding: 16px 16px 56px; }
.pgal-layout.is-gallery .pgal-stage { position: relative; height: 100%; min-height: 0; }
.pgal-layout.is-media .pgal-viewer { flex: 1; min-height: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.pgal-layout.is-media .pgal-frame { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.pgal-layout.is-media .pgal-media { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: none; }
/* Scene de stream : la plus grande taille qui tient dans la scene, a son propre format, sans rognage */
.pgal-layout.is-media .pgal-scene { width: min(100cqw, 100cqh * var(--ratio, 1.7778)); /* unites du conteneur : marges deja exclues */ border-radius: 12px; box-shadow: none; }
.pgal-caption, .pgal-scene-game { display: none !important; }

/* Ligne sous le visuel */
.pgal-game-line { position: absolute; left: 2px; bottom: -40px; max-width: calc(100% - 160px); margin: 0; overflow: hidden;
  font: 500 13px/32px var(--font-body); color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.pgal-game-line span { color: var(--muted); }
.pgal-layout.is-gallery .pgal-nav { top: auto; bottom: -44px; margin-top: 0; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; box-shadow: none; color: var(--ink-2); opacity: 1; }
.pgal-layout.is-gallery .pgal-nav:hover { border-color: var(--field); color: var(--ink); }
.pgal-layout.is-gallery .pgal-nav .pgal-icon { width: 14px; height: 14px; }
.pgal-layout.is-gallery .pgal-nav.is-next { right: 0; left: auto; }
.pgal-layout.is-gallery .pgal-nav.is-prev { right: 88px; left: auto; }
.pgal-layout.is-gallery .pgal-count { top: auto; bottom: -44px; right: 36px; width: 48px; height: 32px; padding: 0; border: 0; background: none; box-shadow: none;
  font: 500 12px/32px var(--font-mono); color: var(--muted); text-align: center; }

/* Vignettes au format des captures (16:9) : rien n'est rogne ni coupe */
.pgal-layout.is-gallery { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; }
.pgal-layout.is-gallery .pgal-rail { height: 0; min-height: 100%; max-height: none; padding: 1px; gap: 8px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.pgal-layout.is-gallery .pgal-rail::-webkit-scrollbar { display: none; }
.pgal-cell { width: 100%; }
.pgal-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 10px; background: #f5f6f8; transition: border-color .15s ease, box-shadow .15s ease; }
.pgal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pgal-thumb.is-live { background: #f5f6f8; }
.pgal-thumb.is-live img { object-fit: contain; padding: 4px 10px; }
.pgal-thumb:hover { border-color: var(--field); transform: none; }
.pgal-thumb[aria-selected="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pgal-time { right: 4px; bottom: 4px; font-size: 9px; }
.pgal-lightbox-caption { display: inline-flex; gap: 6px; padding: 0; border: 0; background: none; }
.pgal-lightbox-caption .pgal-game-label { display: none; }
.pgal-lightbox-caption .pgal-game-name { font: 500 14px/20px var(--font-body); color: #fff; }
@media (max-width: 900px) {
  .pgal-layout.is-gallery { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pgal-layout.is-gallery .pgal-rail { order: 2; height: auto; min-height: 0; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 1px 1px 4px; }
  .pgal-cell { width: 88px; flex: none; }
}

/* ---- Infos ---- */
.product-info { gap: 20px; padding-top: 4px; }
.product-title-row { row-gap: 10px; }
.product-title { display: flex; flex-direction: column; gap: 8px; font: 600 44px/48px var(--font-display); letter-spacing: -.02em; color: var(--ink); }
/* Le type de produit reste dans le h1 (SEO) et devient un surtitre visible */
.product-title .product-title-type { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
  order: -1; font: 500 13px/18px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.product-flag { height: 24px; padding: 0 8px; border: 0; border-radius: 7px; background: #f1f2f4; color: var(--ink-2); font: 500 12px/1 var(--font-body); letter-spacing: 0; }
.product-flag svg { color: var(--icon); }
.product-flag[role="button"]:hover { background: #e9ebef; color: var(--ink); }
.creator-chip-label { font: 500 11px/14px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.creator-chip-name { font: 600 14px/20px var(--font-body); color: var(--ink); }
.product-info > .product-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: -4px 0 0; padding: 0; border: 0; }
.product-price { font: 600 30px/34px var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.product-price-note { font: 500 13px/18px var(--font-body); color: var(--muted); }
.product-desc { max-width: none; font: 400 15px/24px var(--font-body); color: var(--muted); }
.product-desc a { color: var(--link); }

/* Reglages rapides : nom et couleur */
.text-preview-box { gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.text-preview-title, .design-colour-title { font: 600 13px/18px var(--font-body); color: var(--ink); }
.text-preview-field .text-preview-input-wrap input, .text-preview-field input { min-height: 40px; border: 1px solid var(--field); border-radius: 10px; background: #fff; font: 400 14px/20px var(--font-body); }
.text-preview-field input:focus-visible { outline: none; border-color: var(--brand-bright); box-shadow: 0 0 0 3px rgba(79,124,255,.14); }
.text-preview-apply { border-radius: 7px; background: var(--navy); font: 500 12px/1 var(--font-body); }
.text-preview-apply:hover { background: #0a2585; }
.design-colour-chip { width: 26px; height: 26px; }
.design-colour-custom { width: 26px; height: 26px; }
.design-colour-chip[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.design-colour-reset { border-color: var(--line); border-radius: 8px; font: 500 12px/1 var(--font-body); }
.text-preview-discord { justify-content: flex-start; min-height: 0; padding: 0; border: 0; background: none; color: var(--muted); font: 500 12px/18px var(--font-body); text-align: left; }
.text-preview-discord:hover { background: none; color: var(--ink); }
.text-preview-discord svg { width: 14px; height: 14px; }

/* ---- Achat ---- */
.buy-box { gap: 14px; margin: 0; padding: 0; border: 0; }
.buy-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.add-cart-btn { min-height: 46px; padding: 0 16px; border-radius: 11px; font: 500 15px/20px var(--font-body); color: #fff;
  background: radial-gradient(90% 60% at 50% 0%, rgba(255,255,255,.05), rgba(255,255,255,0)), var(--navy);
  box-shadow: 0 8px 8px rgba(0,0,0,.03), 0 4px 4px rgba(0,0,0,.03), inset 0 0 16px rgba(255,255,255,.1), inset 0 0 8px rgba(255,255,255,.2), inset 0 .5px 0 rgba(255,255,255,.1); }
.add-cart-btn:hover { background-color: #0a2585; }
.add-cart-btn.is-secondary { border: 1px solid var(--field); background: #fff; color: var(--ink-2); box-shadow: none; }
.add-cart-btn.is-secondary:hover { background: #fff; border-color: #6f7988; }
.add-cart-btn.is-added { border: 1px solid #cfe9da; background: #e8f5ee; color: #1f7a4d; box-shadow: none; }
.add-cart-btn:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.buy-actions > :only-child, .buy-actions > [style*="display: none"] + * { grid-column: 1 / -1; }
/* Design gratuit : « Buy now » est masque, le bouton restant devient l'action principale */
.buy-actions > [style*="display: none"] + .add-cart-btn.is-secondary { border: 0; color: #fff;
  background: radial-gradient(90% 60% at 50% 0%, rgba(255,255,255,.05), rgba(255,255,255,0)), var(--navy);
  box-shadow: 0 8px 8px rgba(0,0,0,.03), 0 4px 4px rgba(0,0,0,.03), inset 0 0 16px rgba(255,255,255,.1), inset 0 0 8px rgba(255,255,255,.2), inset 0 .5px 0 rgba(255,255,255,.1); }
.buy-actions > [style*="display: none"] + .add-cart-btn.is-secondary:hover { background-color: #0a2585; }
.pp-trust { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-trust li { display: flex; align-items: center; gap: 9px; font: 500 13px/18px var(--font-body); color: var(--muted); }
.pp-trust svg { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 5px; background: #f1f2f4; color: #6f7988; }

/* Partir de ce design dans le configurateur (designs gratuits) */
.buy-customize { display: flex; align-items: center; gap: 14px; margin-top: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--fill); color: var(--ink);
  text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.buy-customize[hidden] { display: none; }
.buy-customize:hover { border-color: var(--field); background: #fff; color: var(--ink); }
.buy-customize:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.buy-customize-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--icon); }
.buy-customize-icon svg { width: 18px; height: 18px; }
.buy-customize-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.buy-customize-text b { font: 600 14px/20px var(--font-body); }
.buy-customize-text span { font: 400 13px/18px var(--font-body); color: var(--muted); }
.buy-customize-arrow { flex: none; width: 14px; height: 14px; margin-left: auto; color: var(--faint); transition: transform .15s ease, color .15s ease; }
.buy-customize:hover .buy-customize-arrow { transform: translate(1px, -1px); color: var(--muted); }

/* ---- Sections sous la fiche ---- */
.pp-section { margin: 0 0 96px; }
.pp-section > h2, .pp-related-head h2 { font: 600 28px/32px var(--font-display); letter-spacing: -.015em; color: var(--ink); }

/* Apres l'achat : deux colonnes a filet fin, puis une rangee de faits */
.product-details-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: none; overflow: hidden; }
.info-section { margin: 0; padding: 32px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.info-section:first-child { border-right: 1px solid var(--line-2); }
.info-section.is-wide { grid-column: 1 / -1; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.info-section.is-wide h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.info-section h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 600 20px/26px var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.info-section h2 svg { width: 16px; height: 16px; padding: 7px; box-sizing: content-box; border-radius: 8px; background: #f1f2f4; color: var(--icon); }
.config-list { gap: 12px; margin: 0; }
.config-list li, .howto-steps li { font: 400 14px/22px var(--font-body); color: var(--muted); }
.config-list li svg { width: 14px; height: 14px; margin-top: 4px; color: var(--icon); }
.config-list b, .howto-steps b { color: var(--ink); font-weight: 600; }
.howto-steps { gap: 16px; }
.howto-num { width: 24px; height: 24px; margin-top: -1px; border-radius: 7px; background: #f1f2f4; color: var(--ink-2); font: 500 12px/1 var(--font-mono); }
.hosting-note { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.hosting-note p { margin: 0; padding: 20px 32px; border: 0; border-radius: 0; background: var(--fill); font: 400 14px/22px var(--font-body); color: var(--muted); }
.hosting-note p + p { border-left: 1px solid var(--line-2); }
.hosting-note b { color: var(--ink); }

/* FAQ */
.pp-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; }
.pp-faq-list details { border-bottom: 1px solid var(--line-2); }
.pp-faq-list details:first-child { border-top: 1px solid var(--line-2); }
.pp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; list-style: none; cursor: pointer; font: 500 15px/22px var(--font-body); color: var(--ink); }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after { content: "[+]"; flex: none; font: 400 13px/1 var(--font-mono); color: var(--faint); }
.pp-faq details[open] summary::after { content: "[-]"; }
.pp-faq summary:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 4px; border-radius: 4px; }
.pp-faq details p { margin: 0; padding: 0 0 18px; font: 400 14px/22px var(--font-body); color: var(--muted); }
.pp-faq details a { color: var(--link); }

/* Autres designs : cartes facon framer, comme la boutique */
.pp-related[hidden] { display: none; }
.pp-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pp-related-head a { font: 500 14px/20px var(--font-body); color: var(--link); text-decoration: none; }
.pp-related-head a:hover { text-decoration: underline; }
.pp-rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pp-rel-card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; }
.pp-rel-media { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 16px; background: #f3f4f6; overflow: hidden; transition: box-shadow .2s ease; }
.pp-rel-media img { width: 78%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.pp-rel-card:hover { color: var(--ink); }
.pp-rel-card:hover .pp-rel-media { box-shadow: inset 0 0 0 1px rgba(16,24,40,.08); }
.pp-rel-card:hover .pp-rel-media img { transform: scale(1.03); }
.pp-rel-card:focus-visible { outline: none; }
.pp-rel-card:focus-visible .pp-rel-media { outline: 2px solid var(--brand-bright); outline-offset: 3px; }
.pp-rel-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-rel-text { display: flex; flex-direction: column; min-width: 0; }
.pp-rel-text b { overflow: hidden; font: 500 14px/20px var(--font-body); text-overflow: ellipsis; white-space: nowrap; }
.pp-rel-text small { font: 400 13px/19px var(--font-body); color: var(--muted); }
.pp-rel-price { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: #f1f2f4; font: 600 12px/12px var(--font-body); color: var(--ink); }

.not-found-box { border: 1px solid var(--line); border-radius: 20px; box-shadow: none; }
.not-found-box a { border-radius: 10px; background: var(--navy); font-weight: 500; }
.page + .footer, #product-content + .footer { margin-top: 0; }

/* Barre d'achat mobile et confirmation */
.mobile-buy-bar-cta { border-radius: 10px; background: var(--navy); font: 500 14px/1 var(--font-body); }
.mobile-buy-bar-name { font: 600 13px/18px var(--font-body); }
.mobile-buy-bar-price { font: 500 13px/18px var(--font-mono); }
.cart-toast { background: var(--ink); border-radius: 14px; }
.cart-toast-link { background: #fff; color: var(--ink); border-radius: 8px; font-weight: 500; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
  .foot-cols .foot-brand { grid-column: 1 / -1; }
  .pp-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .product-layout { margin-bottom: 72px; }
  .product-title { font-size: 36px; line-height: 40px; }
  .pp-faq { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .product-details-grid { grid-template-columns: minmax(0, 1fr); }
  .info-section:first-child { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .info-section { padding: 24px; }
  .pp-section { margin-bottom: 72px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-bottom { justify-content: flex-start; }
  .foot-social a { width: 44px; height: 44px; }
  .hosting-note { grid-template-columns: minmax(0, 1fr); }
  .hosting-note p { padding: 18px 24px; }
  .hosting-note p + p { border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 620px) {
  .page { padding: 12px 16px 0; }
  .pp-crumbs { margin: 4px 0 16px; }
  .product-title { font-size: 30px; line-height: 34px; }
  .product-price { font-size: 26px; line-height: 30px; }
  .pp-section > h2, .pp-related-head h2 { font-size: 24px; line-height: 28px; }
  .pp-rel-grid { gap: 24px 10px; }
  .pp-rel-text b { font-size: 13px; }
  .pp-rel-price { height: 22px; padding: 0 7px; font-size: 11px; }
}
@media (max-width: 520px) {
  .nav-login { display: none; }
  .buy-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-navy, .buy-customize-arrow, .pp-rel-media img { transition-duration: .01s; }
  .btn-navy:hover { transform: none; }
  .preview-panel:has(#mount.is-rendering)::after { animation-duration: 3s; }
}

/* ============================================================
   Fiche v3 (2026-09-30) : proportions, titre, chargements.
   En fin de feuille : surcharge les blocs precedents.
   ============================================================ */
/* Titre seul, badges sur la ligne suivante ; « Controller overlay » reste
   dans le h1 pour le SEO mais n'est plus affiche. */
.product-title-row { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.product-title .product-title-type { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.product-title { display: block; font-size: 48px; line-height: 52px; }
.product-title-row .product-flags { margin: 0; }
.product-info { gap: 22px; padding-top: 12px; }
.product-info > .product-price-row { margin: 0; }

/* Description : quatre lignes, puis « Read more » (seulement si le texte depasse) */
.product-desc.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.pp-desc-more { align-self: flex-start; margin-top: -12px; padding: 0; border: 0; background: none; font: 500 14px/20px var(--font-body); color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--field); text-underline-offset: 3px; cursor: pointer; }
.pp-desc-more:hover { text-decoration-color: var(--ink); }
.pp-desc-more[hidden] { display: none; }

/* Scene plus panoramique : les captures 16:9 la remplissent presque, la manette y gagne en taille */
.preview-panel:not(.is-bundle-preview) { aspect-ratio: 16 / 11; }
.preview-panel:not(.is-bundle-preview) .gp-svg { width: min(100%, 680px); max-width: 680px; }
/* Une seule barre sous le visuel : demo a gauche, fleches a droite (plus deux rangees empilees) */
.pgal-layout.is-gallery .preview-demo-row { position: absolute; left: 0; bottom: -44px; z-index: 4; width: calc(100% - 140px); margin: 0; padding: 0;
  justify-content: flex-start; flex-wrap: nowrap; gap: 12px; }
.pgal-layout.is-gallery .preview-demo-row .controller-demo-button { flex: none; min-height: 32px; }
.pgal-layout.is-gallery .preview-demo-row .preview-connection { min-width: 0; }
.pgal-layout.is-gallery .preview-demo-row .gp-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pgal-layout.is-gallery .controller-demo-progress { bottom: -2px; }

/* Preview placeholders preserve the media frame until each image is ready. */
.pp-bl, .pgal-bl, .pp-rel-bl { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border-radius: inherit; background: #e8ebf0; pointer-events: none; }
.pp-bl { background: #f5f6f8; }
.preview-panel .pp-bl { display: none; }
.preview-panel:has(#mount.is-rendering) .pp-bl { display: inline-flex; }
.pp-rel-media.is-loaded .pp-rel-bl { display: none; }
.pgal-frame.is-loading, .pgal-scene.is-loading, .pgal-thumb.is-loading { background: #eceef1; }
.pgal-frame.is-loading { min-height: 200px; width: 100%; border-radius: 12px; }
.pgal-frame.is-loading > .pgal-media, .pgal-scene.is-loading > .pgal-scene-bg, .pgal-thumb.is-loading img { opacity: 0; }
.pgal-scene.is-loading .pgal-scene-pad { opacity: 0; }
.pgal-media, .pgal-scene-bg, .pgal-thumb img, .pgal-scene-pad { transition: opacity .25s ease; }
.pp-rel-media { position: relative; }
.pp-rel-media:not(.is-loaded) img { opacity: 0; }
.pp-rel-media img { transition: opacity .25s ease, transform .3s ease; }

@media (max-width: 900px) {
  .product-title { font-size: 36px; line-height: 40px; }
}
@media (max-width: 620px) {
  .product-title { font-size: 32px; line-height: 36px; }
  .preview-panel:not(.is-bundle-preview) { aspect-ratio: 4 / 3; }
  /* Mobile : la demo reprend sa place dans la scene, la barre du bas ne garde que les fleches */
  .pgal-layout.is-gallery .preview-demo-row { position: static; width: auto; margin-top: 4px; padding: 0 0 4px; justify-content: center; }
  .pgal-layout.is-gallery .preview-demo-row .preview-connection { display: none; }
  .pgal-game-line { max-width: calc(100% - 140px); font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .preview-panel:has(#mount.is-rendering)::before, .pgal-frame.is-loading::after, .pgal-scene.is-loading::after, .pgal-thumb.is-loading::after, .pp-rel-media:not(.is-loaded)::after { animation-duration: 2.4s; }
}

/* Audit mobile 2026-10-01 : un champ sous 16px fait zoomer iOS au focus. */
@media (max-width: 720px) {
  body .text-preview-field .text-preview-input-wrap input,
  body .bundle-brief-fields input, body .bundle-brief-fields textarea { font-size: 16px; }
  body .pp-desc-more { min-height: 36px; }
}
