/* ─────────────────────────────────────────────────────────────
   NEROBEL GROUP · CORE COMPONENT SYSTEM (assets/css/components.css)
   Reusable component classes built on assets/css/tokens.css (S2-02).
   Loaded after tokens.css across all pages.
   ───────────────────────────────────────────────────────────── */

/* 0. Accessibility & Skip Link (S4-03) */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 16px;
  background: var(--bg-surface, #1e293b);
  color: #FFFFFF !important;
  padding: 12px 20px;
  border: 2px solid var(--accent, #3b82f6);
  border-radius: var(--radius-s, 6px);
  z-index: 999999;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Links in text blocks must have non-color distinction (WCAG 1.4.1) */
.legal-doc-card a,
.legal-list a,
.legal-section a,
.privacy-doc-card a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 1. Buttons (.btn, .btn--primary, .btn--ghost) — min-height 48px */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-s);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg) !important;
  border-color: var(--color-text);
}

.btn--primary:hover {
  opacity: 0.92;
  color: var(--color-bg) !important;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  color: #FFFFFF;
}

[data-theme="light"] .btn--ghost {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn--ghost:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
  color: #0F172A;
}

/* Mobile Touch Feedback & Active States (Sprint MS-01) */
@media (hover: none) and (pointer: coarse) {
  a:active,
  button:active,
  .btn:active,
  .gateway-card:active,
  .brand-tab:active,
  .mobile-bar-btn:active {
    transform: scale(var(--tap-active-scale, 0.98));
    transition: transform 0.15s ease-out;
  }
}

/* 2. Media Frame (.media-frame) — 4:3 aspect ratio */
.media-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-2);
  width: 100%;
  flex-shrink: 0;
}

.media-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3. Section Head (.section-head) */
.section-head {
  margin-bottom: var(--space-6);
  max-width: 720px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  margin: var(--space-2) 0 var(--space-3);
}

.section-head p {
  color: var(--color-muted);
  font-size: var(--font-size-body);
  line-height: 1.6;
}

/* 4. CTA Pair (.cta-pair) — pinned to card bottom */
.cta-pair {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-4);
  width: 100%;
}

.cta-pair .btn {
  flex: 1 1 calc(50% - var(--space-2));
  min-width: 120px;
  text-align: center;
}

.brand-card .cta-pair {
  flex-wrap: nowrap;
  gap: 8px;
}

.brand-card .cta-pair .btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .brand-card .cta-pair {
    flex-direction: column;
  }
  .brand-card .cta-pair .btn {
    width: 100%;
    min-height: 40px;
  }
}

/* Product Cards CTA Pair: vertical stack for full width & crystal clear readability */
.product-card .cta-pair,
.tech-product-card .cta-pair {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding-top: var(--space-4);
}

.product-card .cta-pair .btn,
.tech-product-card .cta-pair .btn {
  width: 100%;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  border-radius: var(--radius-s);
}

/* 5. Brand Card (.brand-card) — equal row heights & aligned h3 baseline */
.brands-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: stretch;
}

@media (min-width: 768px) {
  .brands-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .brands-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.brand-card {
   --brand-accent: var(--color-info);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--brand-accent);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.brand-card[data-brand="theros"] {
  --brand-accent: var(--accent-theros);
}

.brand-card[data-brand="pacific"] {
  --brand-accent: var(--accent-pacific);
}

.brand-card[data-brand="eurogas"] {
  --brand-accent: var(--accent-eurogas);
}

.brand-card[data-brand="nerobel"] {
  --brand-accent: var(--accent-nerobel);
}

[data-theme="light"] .brand-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-top: 3px solid var(--brand-accent);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .brand-card:hover {
  transform: translateY(-5px);
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 0 20px -2px rgba(29, 78, 216, 0.10);
}

[data-theme="light"] .brand-card[data-brand="pacific"]:hover {
  border-color: rgba(180, 136, 58, 0.4);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 0 20px -2px rgba(180, 136, 58, 0.12);
}

[data-theme="light"] .brand-card[data-brand="eurogas"]:hover {
  border-color: rgba(217, 119, 6, 0.4);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 0 20px -2px rgba(217, 119, 6, 0.12);
}

[data-theme="light"] .brand-card[data-brand="nerobel"]:hover {
  border-color: rgba(15, 23, 42, 0.35);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 0 20px -2px rgba(15, 23, 42, 0.06);
}

.brands-grid-4 > .brand-card[data-reveal] {
  transform: none !important;
}

.brand-card-header {
  position: relative;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), var(--s2);
  border-bottom: 1px solid var(--bd);
  padding: 0 20px;
  overflow: hidden;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.brand-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.brand-card[data-brand="theros"]:hover .brand-card-header::after {
  background: radial-gradient(circle at center, rgba(0, 210, 255, 0.16) 0%, transparent 70%);
  opacity: 1;
}
.brand-card[data-brand="pacific"]:hover .brand-card-header::after {
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
  opacity: 1;
}
.brand-card[data-brand="eurogas"]:hover .brand-card-header::after {
  background: radial-gradient(circle at center, rgba(0, 180, 216, 0.16) 0%, transparent 70%);
  opacity: 1;
}
.brand-card[data-brand="nerobel"]:hover .brand-card-header::after {
  background: radial-gradient(circle at center, rgba(96, 165, 250, 0.16) 0%, transparent 70%);
  opacity: 1;
}

.brand-card-header .brand-card-logo-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.brand-card .media-frame,
.brand-card .brand-card-img-wrap {
  aspect-ratio: 16 / 10;
  height: auto !important;
  overflow: hidden;
  flex-shrink: 0;
}

/* Base logo style */
.brand-card__logo {
  object-fit: contain !important;
  display: block;
  margin: 0 auto !important;
  flex-shrink: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-card:hover .brand-card-logo-stage .brand-card__logo {
  transform: scale(1.04);
}

/* Mathematically calibrated optical sizing for harmonious perceived visual mass */
.brand-card__logo--theros {
  height: 30px !important;
  max-height: 30px !important;
  width: auto !important;
  max-width: 135px !important;
}

.brand-card__logo--pacific {
  height: 33px !important;
  max-height: 33px !important;
  width: auto !important;
  max-width: 100px !important;
}

.brand-card__logo--eurogas {
  height: 22px !important;
  max-height: 22px !important;
  width: auto !important;
  max-width: 115px !important;
}

.brand-card__logo--nerobel {
  height: 22px !important;
  max-height: 22px !important;
  width: auto !important;
  max-width: 132px !important;
}

[data-theme="light"] .brand-card-header {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .brand-card__logo {
  filter: invert(1);
}

.brand-card .brand-card-body {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.brand-card .eyebrow {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  gap: 6px;
  padding: 8px 14px;
  min-height: 38px;
  margin-bottom: 16px;
  line-height: 1;
}

.brand-card .eyebrow i {
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.brand-card .eyebrow span {
  line-height: 1;
  white-space: nowrap;
}

.brand-card h3,
.brand-card .card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  margin: 0 0 12px;
  min-height: 2.8em;
}

.brand-card .brand-card-lead {
  min-height: 4.8em;
  margin-bottom: 16px;
  line-height: 1.55;
}

.brand-card .seal-nerobel--sm {
  margin-top: auto;
  margin-bottom: 16px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
}

.brand-card__tag,
.brand-card .seal-nerobel--sm .seal-nerobel-text {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  font-weight: 500;
  margin: 0 !important;
  line-height: 1.2;
}

[data-theme="light"] .brand-card .seal-nerobel--sm {
  background: linear-gradient(135deg, rgba(229, 202, 146, 0.18) 0%, rgba(201, 169, 106, 0.08) 100%);
  border: 1.5px solid rgba(180, 136, 58, 0.4);
  box-shadow: none;
  border-radius: 6px;
}

[data-theme="light"] .brand-card__tag,
[data-theme="light"] .brand-card .seal-nerobel--sm .seal-nerobel-text {
  color: #785317 !important;
  font-weight: 600;
}

.brand-card .cta-pair {
  margin-top: 0;
  padding-top: 0;
}

[data-theme="light"] .brand-card .cta-pair .btn--primary {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border: 1px solid #0F172A !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .brand-card .cta-pair .btn--primary:hover {
  background: #1E293B !important;
  border-color: #1E293B !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

[data-theme="light"] .brand-card .cta-pair .btn--ghost,
[data-theme="light"] .brand-card .cta-pair .btn-secondary {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: none;
}

[data-theme="light"] .brand-card .cta-pair .btn--ghost:hover,
[data-theme="light"] .brand-card .cta-pair .btn-secondary:hover {
  background: #FFFFFF !important;
  color: #1D4ED8 !important;
  border-color: #1D4ED8 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.12);
}

[data-theme="light"] .brand-card .cta-pair .btn--ghost i,
[data-theme="light"] .brand-card .cta-pair .btn-secondary i {
  color: #1D4ED8 !important;
  transition: transform var(--trans), color var(--trans);
}

[data-theme="light"] .brand-card .cta-pair .btn--ghost:hover i,
[data-theme="light"] .brand-card .cta-pair .btn-secondary:hover i {
  transform: translateX(2px);
}

/* 6. Product Card (.product-card & .product-card--no-media) */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card--no-media .media-frame {
  display: none;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin: 0 0 var(--space-2);
}

/* 7. Spec List (.spec-list) — stacks label over value below 480px */
.spec-list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-4);
  padding: var(--space-3);
  background: var(--color-surface-2);
  border-radius: var(--radius-s);
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  list-style: none;
}

.spec-list > div,
.spec-list > li,
.tech-specs-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: var(--space-1);
}

.spec-list > div:last-child,
.spec-list > li:last-child,
.tech-specs-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (max-width: 479px) {
  .spec-list > div,
  .spec-list > li,
  .tech-specs-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* 8. Proof Strip (.proof-strip) */
.proof-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
}

.proof-strip__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .proof-strip__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 9. Pillar Card (.pillar-card) */
.pillar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pillar-card:hover {
  border-color: var(--color-info);
  transform: translateY(-2px);
}

/* 10. Brand Tabs (.brand-tabs) */
.brand-tabs {
  position: sticky;
  top: 84px;
  z-index: 900;
  background: var(--header-bg, rgba(5, 5, 5, 0.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
}

.brand-tabs__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
}

.brand-tabs__list::-webkit-scrollbar {
  display: none;
}

.brand-tabs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-s);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.brand-tabs__link:hover,
.brand-tabs__link[aria-current="page"],
.brand-tabs__link[aria-current="true"],
.brand-tabs__link.active {
  color: var(--color-text);
  background: var(--color-surface-2);
  border-color: var(--color-border-hover);
}

/* Static Hero Layout */
.hero-section--static {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
}

.hero-section--static .hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-section--static .hero-bg-picture,
.hero-section--static .hero-static-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Products Grid */
.products-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: stretch;
}

@media (min-width: 640px) {
  .products-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .products-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }
}

.products-grid-3 .product-card {
  padding: 0;
  overflow: hidden;
}

.products-grid-3 .product-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.products-grid-3 .product-card .media-frame {
  aspect-ratio: 4 / 3;
}

/* Global overflow control */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Header mobile responsiveness */
@media (max-width: 767px) {
  .header-actions .btn-cta-sav {
    display: inline-flex;
    padding: 6px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }
}

/* Mobile drawer off-screen containment */
.mobile-drawer:not(.open) {
  display: none !important;
}

/* ───────────────────────────────────────────────
   MOBILE ACTION BAR (S2-06, closes M-01, S-11)
   ─────────────────────────────────────────────── */
@media (max-width: 1023px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .mobile-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10, 13, 18, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--bd);
    padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
    gap: 8px;
    align-items: center;
  }

  .mobile-bar .mobile-bar-btn,
  .mobile-bar a {
    min-height: 48px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--tx2);
    padding: 6px 2px;
    border-radius: var(--radius-sm, 6px);
    gap: 4px;
    box-sizing: border-box;
  }

  .mobile-bar .mobile-bar-btn span,
  .mobile-bar a span {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .mobile-bar {
    display: none !important;
  }
}

/* ───────────────────────────────────────────────
   BRAND BLOCK TEMPLATE (S3-01)
   ─────────────────────────────────────────────── */
.brand-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 1024px) {
  .brand-block {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .brand-block--reverse .brand-block__content {
    order: 2;
  }

  .brand-block--reverse .brand-block__media {
    order: 1;
  }
}

.brand-article-link {
  margin-top: var(--space-4, 16px);
}

.brand-article-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold, #C9A96A);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.brand-article-link a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.theros-power-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.theros-power-modes .power-mode-btn {
  min-height: 48px;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
}

/* Form Submission Hand-off & Error Components (S3-03) */
.form-feedback-card {
  background: var(--s2, #0d0f15);
  border: 1px solid var(--bd, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-m, 12px);
  padding: 28px 24px;
  text-align: center;
  margin-top: 20px;
}

.form-feedback-card .feedback-title {
  font-family: var(--fd, inherit);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tx, #ffffff);
  margin-bottom: 10px;
}

.form-feedback-card .feedback-desc {
  font-size: 0.95rem;
  color: var(--tx2, #94a3b8);
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-submit-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--err, #ef4444);
  border-radius: var(--radius-m, 12px);
  padding: 16px 20px;
  color: var(--err, #ef4444);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 20px;
  text-align: center;
}

/* Network Locator & Outlet Card Styles (S3-04) */
.network-view-toggle-bar {
  display: none;
}

@media (max-width: 1023px) {
  .network-view-toggle-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--s2, #0d0f15);
    padding: 6px;
    border-radius: 9999px;
    border: 1px solid var(--bd, rgba(255, 255, 255, 0.1));
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .btn-network-toggle {
    all: unset;
    cursor: pointer;
    flex: 1;
    text-align: center;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tx2, #94a3b8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    box-sizing: border-box;
    transition: all var(--trans, 0.2s ease);
  }
  .btn-network-toggle.active {
    background: var(--az, #2563EB);
    color: #050505;
  }
  .network-main-grid.view-list .network-map-frame {
    display: none !important;
  }
  .network-main-grid.view-list .network-directory-wrap {
    display: block !important;
  }
  .network-main-grid.view-map .network-map-frame {
    display: block !important;
    height: 420px;
  }
  .network-main-grid.view-map .network-directory-wrap {
    display: none !important;
  }
}

.outlet-card {
  background: var(--s2, #0d0f15);
  border: 1px solid var(--bd, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-m, 12px);
  padding: 24px;
  transition: all var(--trans, 0.2s ease);
}

.outlet-card:hover {
  border-color: var(--az, #2563EB);
  transform: translateY(-2px);
}

.outlet-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.badge--showroom {
  background: rgba(37, 99, 235, 0.15);
  color: var(--az-text, #60A5FA);
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.badge--revendeur {
  background: rgba(201, 169, 106, 0.15);
  color: var(--gold, #c9a96a);
  border: 1px solid rgba(201, 169, 106, 0.35);
}

.outlet-card__name {
  font-family: var(--fd, inherit);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tx, #ffffff);
  margin-bottom: 8px;
}

.outlet-card__address, .outlet-card__hours, .outlet-card__brands {
  font-size: 0.88rem;
  color: var(--tx2, #94a3b8);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.outlet-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--bd, rgba(255, 255, 255, 0.1));
}

.btn-nearby {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: var(--az-text, #60A5FA);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-m, 8px);
  transition: all var(--trans, 0.2s ease);
  min-height: 48px;
  box-sizing: border-box;
}

.btn-nearby:hover {
  background: var(--az, #2563EB);
  color: #FFFFFF;
}

.nearby-feedback {
  font-size: 0.85rem;
  color: var(--tx2, #94a3b8);
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm, 6px);
  background: var(--s2, #0d0f15);
  border: 1px solid var(--bd, rgba(255, 255, 255, 0.1));
}

/* Bottom Sheet Dialog for mobile filters (S3-04) */
.bottom-sheet-dialog {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto auto 0 auto;
  width: 100%;
  max-width: 600px;
  border-radius: 16px 16px 0 0;
  color: var(--tx, #fff);
}

.bottom-sheet-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.bottom-sheet-content {
  background: var(--bg2, #0d0f15);
  border: 1px solid var(--bd, rgba(255, 255, 255, 0.1));
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bd, rgba(255, 255, 255, 0.08));
}

.bottom-sheet-title {
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tx, #fff);
  margin: 0;
}

.bottom-sheet-close {
  background: none;
  border: none;
  color: var(--tx2, #94a3b8);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bottom-sheet-actions {
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .btn-filter-sheet-toggle,
  .bottom-sheet-dialog {
    display: none !important;
  }
}

/* Contact Path Cards (S3-06) */
.contact-path-card {
  background: var(--s2, #0d0f15);
  border: 1px solid var(--bd, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-m, 12px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: all var(--trans, 0.2s ease);
}

.contact-path-card:hover {
  border-color: var(--az, #2563EB);
  transform: translateY(-2px);
}

.contact-path-card .card-title {
  color: var(--tx, #fff);
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.contact-path-card .feature-mini-desc {
  color: var(--tx2, #94a3b8);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ───────────────────────────────────────────────
   MOBILE PASS (S3-07, closes M-06, M-09…M-15)
   ─────────────────────────────────────────────── */

/* 1. Header on phones (logo + menu button + Demande SAV only, zero-overflow architecture) */
@media (max-width: 767px) {
  html, body {
    overflow-x: clip;
    max-width: 100%;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .site-header {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .site-header .theme-btn {
    display: none !important;
  }

  .header-inner {
    height: 64px;
    gap: 8px;
    box-sizing: border-box;
  }

  .brand-logo {
    flex-shrink: 0;
  }

  .brand-logo img,
  .brand-logo svg {
    height: 22px;
    width: auto;
    max-width: 136px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .btn-cta-sav {
    padding: 6px 12px;
    font-size: 0.78rem;
    gap: 6px;
    white-space: nowrap;
    border-radius: 4px;
    letter-spacing: 0.02em;
  }

  .btn-cta-sav i {
    font-size: 0.85rem;
  }

  .mobile-nav-toggle {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    border-radius: 8px;
    flex-shrink: 0;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-inner {
    height: 56px;
    gap: 4px;
  }

  .brand-logo img,
  .brand-logo svg {
    height: 18px;
    max-width: 110px;
  }

  .header-actions {
    gap: 4px;
  }

  .btn-cta-sav {
    padding: 4px 7px;
    font-size: 0.70rem;
    gap: 3px;
  }

  .mobile-nav-toggle {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
}

/* 2. Footer Accordion on Mobile (< 768px) */
@media (max-width: 767px) {
  .footer-col {
    border-bottom: 1px solid var(--bd, rgba(255, 255, 255, 0.08));
    padding: 0;
  }
  .footer-col summary.footer-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    cursor: pointer;
    margin-bottom: 0;
    list-style: none;
    user-select: none;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--tx, #fff);
  }
  .footer-col summary.footer-title::-webkit-details-marker {
    display: none;
  }
  .footer-col summary.footer-title::marker {
    display: none;
  }
  .footer-col summary.footer-title .footer-accordion-icon {
    font-size: 1rem;
    color: var(--tx2, #94a3b8);
    transition: transform var(--trans, 0.2s ease);
  }
  .footer-col[open] summary.footer-title .footer-accordion-icon {
    transform: rotate(180deg);
  }
  .footer-col .footer-links {
    padding-top: 4px;
    padding-bottom: 16px;
  }
}

@media (min-width: 768px) {
  .footer-col {
    display: block !important;
  }
  .footer-col summary.footer-title {
    pointer-events: none;
    cursor: default;
    list-style: none;
    display: block;
    margin-bottom: 16px;
  }
  .footer-col summary.footer-title::-webkit-details-marker {
    display: none;
  }
  .footer-col summary.footer-title::marker {
    display: none;
  }
  .footer-col summary.footer-title .footer-accordion-icon {
    display: none !important;
  }
  .footer-col .footer-links {
    display: block !important;
  }
}

/* 3. Tablet Card Grids (2-column layout on tablet 768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .brands-grid,
  .products-grid,
  .b2b-perks-grid,
  .contact-path-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 4. Motion & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}






