/* EURAYSTORE Shared Product Template V2.3 — responsive layer.
 * LOCAL ONLY (NOT deployed, owner visual validation pending).
 * ADDITIVE: zero edits to lglg-shared-product.css (V2.0) and product-info.css.
 * Load order (when approved): AFTER lglg-shared-product.css.
 * Tokens (EURAYSTORE_DESIGN_SYSTEM §1): --lglg-color-primary #5E2EE6,
 * --lglg-color-secondary #14B8B8 (teal), --lglg-color-link #1B82D6,
 * --lglg-border #e6e3f0, --lglg-text #1a1a2e, --lglg-muted #6b6b80.
 * Flat solids only. No gradients, no shadows, no !important, no product IDs.
 * P6 safety: every tablet rule below is scoped to .lglg-desc--stage
 * (P6 DreamTV markup carries .lglg-desc WITHOUT --stage and never matches).
 */

/* ============ 1. Tablet 768–1024px: native reading, no Cards ============
   The theme shows the desktop tab copy at >=768px. Between 768 and 1024 the
   V2.0 card chrome flattens to a single native reading column: rail and main
   stack in DOM order, panels/sections lose card borders/radii/backgrounds,
   hierarchy (kickers, h2, hairline section heads, dashed dividers) stays. */
@media (min-width: 768px) and (max-width: 1024px) {
  .lglg-desc--stage {
    padding: 0;
    border-radius: 0;
  }
  .lglg-desc--stage .lglg-desc-layout {
    grid-template-columns: 1fr;
  }
  .lglg-desc--stage .lglg-desc-rail,
  .lglg-desc--stage .lglg-desc-main {
    gap: 20px;
  }
  .lglg-desc--stage .lglg-desc-panel,
  .lglg-desc--stage .lglg-desc-section {
    padding: 0 0 20px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .lglg-desc--stage .lglg-desc-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============ 2. Mobile V2.3 shape (.lglg-desc--v23m, suffix '-m') ============
   Flat native blocks: support + legacy description print directly (no card
   chrome, no parent accordion). Exactly three native <details> accordions
   follow: Formats / Étapes / FAQ. Reuses the V2.0 inner grids/typography. */
.lglg-desc--v23m {
  padding: 0;
  border-radius: 0;
  background: var(--brand-white);
}
/* Refinement (owner review): redundant uppercase section labels are removed
   on the mobile shape — each block keeps its single h2 title. display:none
   drops them from the accessibility tree as well (not merely visual). */
.lglg-desc--v23m .lglg-desc-kicker {
  display: none;
}
.lglg-desc--v23m .lglg-desc-v23-support {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--lglg-border);
}
/* Compact mobile assistance: tighter rows, same content, same order. */
.lglg-desc--v23m .lglg-desc-support-item {
  padding: 7px 0;
  gap: 9px;
}
.lglg-desc--v23m .lglg-desc-support-icon {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.lglg-desc--v23m .lglg-desc-support-item strong {
  font-size: 12px;
}
.lglg-desc--v23m .lglg-desc-support-text {
  font-size: 11px;
}
.lglg-desc--v23m .lglg-desc-v23-support h2,
.lglg-desc--v23m .lglg-desc-v23-lead h2 {
  margin: 0;
  color: var(--lglg-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.lglg-desc--v23m .lglg-desc-v23-lead {
  padding: 20px 0 20px;
}
.lglg-desc--v23m .lglg-desc-v23-lead .lglg-desc-section-head {
  margin-bottom: 12px;
}

/* Refinement (owner review): the three accordions are independent rows —
   single h2 title + chevron + subtle bottom separator. No card border,
   shadow, background panel or radius. Native <details>/<summary> keeps
   keyboard + screen-reader support with zero JS. */
.lglg-acc {
  margin: 0;
  color: var(--lglg-text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--lglg-border);
  border-radius: 0;
}
.lglg-acc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 13px 2px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.lglg-acc__summary::-webkit-details-marker {
  display: none;
}
.lglg-acc__head {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.lglg-acc__head h2 {
  margin: 0;
  color: var(--lglg-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.lglg-acc__chevron {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--lglg-muted);
  transition: transform 0.18s ease;
}
.lglg-acc__chevron path {
  vector-effect: non-scaling-stroke;
}
.lglg-acc[open] > .lglg-acc__summary .lglg-acc__chevron {
  color: var(--lglg-color-primary);
  transform: rotate(180deg);
}
.lglg-acc__summary:hover {
  background: transparent;
}
.lglg-acc__summary:hover .lglg-acc__head h2 {
  color: var(--lglg-color-primary);
}
.lglg-acc__summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
  outline-offset: 2px;
}
.lglg-acc__body {
  padding: 2px 2px 18px;
}
.lglg-acc__body .lglg-desc-format-grid {
  grid-template-columns: 1fr;
}
/* Refinement (owner review): no outer card around the Shared Description on
   mobile — the theme .pi-accordion box chrome is neutralized ONLY when it
   directly hosts the V2.3 mobile copy. Sibling accordions (Détails du produit,
   Pièces jointes, extraContent) keep their approved theme presentation. */
.pi-accordion:has(> .lglg-desc--v23m) {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* V2.3 motion guard (mirrors the approved reduced-motion rules). */
@media (prefers-reduced-motion: reduce) {
  .lglg-acc__summary,
  .lglg-acc__chevron {
    transition: none;
  }
}
