/* PrintWearAI v3 — Light SaaS modern (Linear/Vercel/Cal energy)
   Extracted from PrintWearAI - Standalone.html and used by the
   public marketing site. Fonts (Geist + JetBrains Mono + Bricolage
   Grotesque) load from pwai-ui.css. */

:root {
  --bg: #FFFFFF;
  --bg-grad: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255,90,31,0.06) 0%, transparent 60%), #FFFFFF;
  --surface: #FAFAFA;
  --surface-2: #F4F4F5;
  --surface-3: #EBEBEE;
  --surface-4: #E0E0E5;
  --border: rgba(10, 10, 10, 0.08);
  --border-2: rgba(10, 10, 10, 0.14);
  --border-3: rgba(10, 10, 10, 0.22);
  --ink: #0A0A0A;
  --ink-2: #5A5F6B;
  --ink-3: #8A8F9A;
  --accent: #FF5A1F;
  --accent-soft: rgba(255,90,31,0.10);
  --accent-glow: rgba(255,90,31,0.32);
  --accent-ink: #B83C0E;
  --neon: #00C26B;        /* sport green for "live" — saturated but readable on white */
  --violet: #6B5CFF;
  --cyan: #06B6D4;
  --good: #00C26B;
  --warn: #FFB84D;
  --danger: #E11D48;

  --display: 'Geist', -apple-system, system-ui, sans-serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* dark-section tokens (used for contrast sections like configurateur) */
  --dark-bg: #0A0B0F;
  --dark-surface: #14161D;
  --dark-surface-2: #1B1E27;
  --dark-border: rgba(255,255,255,0.10);
  --dark-border-2: rgba(255,255,255,0.18);
  --dark-ink: #ECEFF4;
  --dark-ink-2: #9BA3B5;

  /* back-compat aliases for v2 inline styles */
  --dark: var(--dark-surface);
  --dark-2: var(--dark-surface-2);
  --dark-3: #232734;
  --dark-rule: var(--dark-border);
  --bg-2: var(--surface);
  --bg-3: var(--surface-2);
  --rule: var(--border);
  --serif: var(--display);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  background-image: var(--bg-grad);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01';
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

h1, h2, h3, h4, p { margin: 0; }

/* ─── TYPE ─── */
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.96; }
.display-md { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.mono-xs { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
}

.h-display { font-family: var(--display); font-weight: 700; font-size: clamp(64px, 9vw, 132px); line-height: 0.92; letter-spacing: -0.045em; }
.h-section { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5.4vw, 76px); line-height: 0.98; letter-spacing: -0.035em; }
.h-card { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -0.025em; }
.grad-text { background: linear-gradient(95deg, var(--accent) 0%, var(--violet) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ─── LAYOUT ─── */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 32px; }

.section { padding: 120px 0; position: relative; border-top: 1px solid var(--border); }

/* dark-flavored sections (configurator, production) */
.section-dark { background: var(--dark-bg); color: var(--dark-ink); border-top: 1px solid var(--border); }
.section-dark .eyebrow { color: var(--dark-ink-2); }
.section-dark .eyebrow::before { box-shadow: 0 0 12px var(--accent-glow); }
.section-dark .mono-xs { color: var(--dark-ink-2); }
.section-dark .card, .section-dark .card-flat { background: var(--dark-surface); border-color: var(--dark-border); color: var(--dark-ink); }
.section-dark .h-card { color: var(--dark-ink); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  background: var(--ink); color: #fff;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--border-3); box-shadow: none; color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--border-2); }
.btn-light:hover { background: var(--surface); }
.btn-dark-ghost { background: transparent; color: var(--dark-ink); border: 1px solid var(--dark-border-2); }
.btn-dark-ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--dark-ink); color: var(--dark-ink); }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 8px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg);
}
.chip-on, .chip-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip-neon { background: rgba(0,194,107,0.10); color: var(--neon); border-color: rgba(0,194,107,0.35); }
.chip-violet { background: rgba(107,92,255,0.10); color: var(--violet); border-color: rgba(107,92,255,0.30); }
.chip-dark { border-color: var(--dark-border-2); color: var(--dark-ink-2); background: rgba(255,255,255,0.04); }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: currentColor; }
.dot-good { background: var(--good); }
.dot-warn { background: var(--warn); }
.dot-accent { background: var(--accent); }
.dot-pulse { position: relative; }
.dot-pulse::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: 0.5;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ─── CARDS ─── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 4px 20px rgba(0,0,0,0.025);
}
.card-sm { padding: 20px; border-radius: 14px; }
.card-flat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.glow {
  position: absolute; pointer-events: none; inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 100% at 50% 0%, var(--accent-soft) 0%, transparent 70%);
}

/* placeholder image */
.ph {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.ph::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(10,10,10,0.04) 11px 12px);
}
.ph-dark { background: var(--dark-surface-2); border-color: var(--dark-border); }
.ph-dark::before { background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(255,255,255,0.04) 11px 12px); }
.ph-label {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px;
}

/* grid backdrop */
.grid-bg {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* perf bar */
.bar { height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  border-radius: 2px;
  animation: barfill 1.4s ease-out;
}
@keyframes barfill { from { width: 0; } }

/* fade-in */
.fadein { animation: fadein .5s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* sticky nav glass */
.nav-glass {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

/* tweaks panel */
.tweaks-launcher { z-index: 50; }

/* counter */
.counter { font-variant-numeric: tabular-nums; }

/* link */
.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); transition: color .15s;
}
.link:hover { color: var(--ink); }

/* segmented */
.seg {
  display: inline-flex;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px;
}
.seg button {
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2);
}
.seg button.on { background: var(--ink); color: #fff; }

.section-dark .seg { background: rgba(255,255,255,0.06); border-color: var(--dark-border); }
.section-dark .seg button { color: var(--dark-ink-2); }
.section-dark .seg button.on { background: var(--dark-ink); color: #0A0A0A; }

@media (max-width: 880px) {
  .wrap, .wrap-wide { padding: 0 18px; }
  .section { padding: 72px 0; }
}

/* ──────────────────────────────────────────────────────────
   MOBILE RESPONSIVE — patches pour < 768px et < 480px
   ────────────────────────────────────────────────────────── */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, canvas { max-width: 100%; height: auto; }

@media (max-width: 768px) {
  .wrap, .wrap-wide { padding: 0 16px; }
  .section { padding: 56px 0; }

  /* Headings : reduce min sizes for small screens */
  .h-display { font-size: clamp(36px, 9vw, 64px) !important; line-height: 1.02; }
  .h-section { font-size: clamp(28px, 6.5vw, 44px) !important; line-height: 1.05; }
  .h-card { font-size: 19px; }
  .eyebrow { font-size: 11px; }

  /* Bento grid : full width on mobile */
  .bento { grid-template-columns: 1fr !important; gap: 10px !important; }
  .bento [data-bc] { grid-column: span 1 !important; grid-row: auto !important; min-height: auto !important; }

  /* Toutes grilles → 1 col */
  .grid-3, .grid-4, .cat-grid, .templ-grid, .pricing-grid, .b2b-grid,
  .ai-grid, .pwai-cat-grid, .feat-grid, .tl-stages {
    grid-template-columns: 1fr !important;
  }

  /* Tableaux : autoriser scroll horizontal */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { font-size: 13px; }

  /* Configurator mockup full-width */
  .cfg-mock { min-height: auto !important; }
  .cfg-mock-body { grid-template-columns: 1fr !important; }
  .cfg-mock-vw { min-height: 360px; }
  .cfg-mock-panel { border-left: none; border-top: 1px solid rgba(0,0,0,.08); }
  .cfg-mock-pane { grid-template-columns: 1fr !important; }

  /* Buttons */
  .btn { padding: 10px 16px; font-size: 14px; }
  .btn-lg { padding: 12px 22px; font-size: 15px; }

  /* Footer grid */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-mark .big { font-size: 18vw !important; }
  .footer-meta { flex-direction: column; align-items: flex-start; }

  /* Cards / pricing */
  .pricing-cell, .feat-cell, .cat-cell, .b2b-cell {
    border-right: none !important;
    border-bottom: 1px solid var(--rule) !important;
  }

  /* Hide elements that don't fit on mobile */
  .nav-links { display: none !important; }
  .desktop-only { display: none !important; }

  /* Long horizontal flex (tickers) reste scrollable */
  [style*="overflow-x:auto"], [style*="overflow-x: auto"] {
    -webkit-overflow-scrolling: touch;
  }

  /* Hero / first section padding réduit */
  section[style*="padding:96px 0"], section[style*="padding: 96px 0"],
  section[style*="padding:120px 0"], section[style*="padding: 120px 0"] {
    padding: 48px 0 !important;
  }

  /* Eviter scroll horizontal sur balises sans constraint */
  pre, code { overflow-x: auto; word-wrap: break-word; max-width: 100%; }

  /* Cards padding réduit */
  .card { padding: 18px; }

  /* Iframe mockups full width */
  iframe { max-width: 100%; }
}

@media (max-width: 480px) {
  .h-display { font-size: clamp(30px, 9vw, 48px) !important; }
  .h-section { font-size: clamp(24px, 7vw, 36px) !important; }
  .section { padding: 40px 0; }
  .wrap, .wrap-wide { padding: 0 14px; }
  .btn { padding: 9px 14px; font-size: 13px; }

  /* Mobile-only utility */
  .mobile-hide { display: none !important; }
}

/* ──────────────────────────────────────────────────────────
   MOBILE ARCHITECTURE — sticky CTA + header compact + UX touch
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* ── Tap targets : minimum 44×44 (Apple HIG / Google Material) ── */
  .btn, button, a.btn, .nav-link, .nav-mega-trigger,
  .nav-drawer-grp a, .pwai-lang-switch a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  input, select, textarea {
    min-height: 44px;
    font-size: 16px !important; /* anti-zoom iOS sur focus */
  }

  /* ── Header sticky compact mobile ── */
  .nav-glass {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: rgba(255,255,255,.85);
  }
  .nav-glass .wrap-wide { height: 56px !important; padding: 0 16px !important; }

  /* ── Drawer mobile : plein écran, lisible ── */
  .nav-drawer {
    top: 56px;
    height: calc(100vh - 56px);
    max-height: calc(100vh - 56px);
    padding: 24px 20px 100px;
    background: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-drawer-grp { padding: 18px 0; }
  .nav-drawer-grp a {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--rule);
  }
  .nav-drawer-grp a:last-child { border-bottom: none; }
  .nav-drawer-h { font-size: 12px; margin-bottom: 8px; }

  /* ── Sticky CTA mobile en bas (visible scroll, anti-fly-off-page) ── */
  .pwai-sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    z-index: 90;
    box-shadow: 0 -4px 24px rgba(0,0,0,.06);
  }
  .pwai-sticky-cta .btn { flex: 1; justify-content: center; padding: 12px; font-size: 14px; }
  .pwai-sticky-cta .btn-accent { font-weight: 600; }
  /* Padding bottom au body pour ne pas masquer le contenu */
  body { padding-bottom: 76px; }

  /* ── Spacing typographique mobile ── */
  p { font-size: 15px; line-height: 1.55; }

  /* ── Cards : padding plus généreux pour le doigt ── */
  .card { padding: 22px 18px; border-radius: 12px; }
  .card-sm { padding: 18px; }

  /* ── Tables responsive : labels au lieu de colonnes ── */
  table.responsive-stack thead { display: none; }
  table.responsive-stack tr {
    display: block;
    margin-bottom: 14px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 12px;
  }
  table.responsive-stack td {
    display: flex;
    justify-content: space-between;
    border: none;
    padding: 6px 0;
  }
  table.responsive-stack td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink-2);
  }

  /* ── Sticky/scroll snap pour les sections — UX scroll lisse ── */
  html { scroll-behavior: smooth; }
  section[id] { scroll-margin-top: 64px; }

  /* ── Hide noisy ASCII / decorations sur mobile (clutter visuel) ── */
  .mobile-clean-arrow { display: none !important; }

  /* ── Forms : labels au-dessus des inputs (jamais à gauche) ── */
  .form-group, .field {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  .form-group label, .field label {
    text-align: left !important;
    width: 100% !important;
  }

  /* ── Modal : full-screen sur mobile ── */
  .modal, .dialog {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }

  /* ── Tap feedback (active state visible) ── */
  .btn:active { transform: scale(.98); }
  a:active { opacity: .7; }

  /* ── Lang switcher : toujours visible sur mobile (compact) ── */
  .pwai-lang-switch {
    display: inline-flex !important;
    flex-shrink: 0;
  }
  .pwai-lang-switch a {
    padding: 8px 10px !important;
    font-size: 11px !important;
  }

  /* ── Footer mark "PrintWearAI®" géant → plus discret ── */
  .footer-mark { padding: 20px 0 !important; }
  .footer-mark .big { font-size: 16vw !important; letter-spacing: -0.03em !important; }
}

/* ──────────────────────────────────────────────────────────
   PERFORMANCE MOBILE
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Désactiver animations lourdes sur mobile */
  .orb, .gradient-bg, [class*="reveal"] {
    animation-duration: 0.01s !important;
  }
  /* Backdrop-filter coûteux : désactiver sauf header */
  .card:not(.nav-glass), .card-flat { backdrop-filter: none !important; }
}

/* ──────────────────────────────────────────────────────────
   MOBILE OVERRIDE AGRESSIF — couvre les styles inline non-classed
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Tout grid inline (display:grid avec colonnes multiples) → 1 colonne */
  [style*="display:grid"],
  [style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* Exceptions : grids 2x2 / 2 colonnes qui doivent rester sur mobile
     (icons stats, prix mensuel/annuel toggle) → opt-in via classe */
  .mobile-keep-2col { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .mobile-keep-cols { grid-template-columns: inherit !important; }

  /* Sections : padding réduit forcé (couvre tous les paddings inline) */
  section { padding-top: 48px !important; padding-bottom: 48px !important; }
  section[class*="section"]:first-of-type { padding-top: 32px !important; }

  /* Hero : padding-top 24px (juste sous le header) */
  body > section:first-of-type,
  main > section:first-of-type { padding-top: 24px !important; }

  /* Flex inline avec gap > 24 → réduit à 16 */
  [style*="gap:64px"], [style*="gap: 64px"],
  [style*="gap:80px"], [style*="gap: 80px"],
  [style*="gap:48px"], [style*="gap: 48px"],
  [style*="gap:36px"], [style*="gap: 36px"] {
    gap: 16px !important;
  }
  [style*="gap:32px"], [style*="gap: 32px"],
  [style*="gap:28px"], [style*="gap: 28px"] {
    gap: 14px !important;
  }

  /* Margin-bottom inline énormes → réduits */
  [style*="margin-bottom:56px"], [style*="margin-bottom: 56px"],
  [style*="margin-bottom:64px"], [style*="margin-bottom: 64px"],
  [style*="margin-bottom:80px"], [style*="margin-bottom: 80px"] {
    margin-bottom: 24px !important;
  }
  [style*="margin-top:56px"], [style*="margin-top: 56px"],
  [style*="margin-top:64px"], [style*="margin-top: 64px"],
  [style*="margin-top:80px"], [style*="margin-top: 80px"] {
    margin-top: 24px !important;
  }

  /* Padding inline énormes → réduits */
  [style*="padding:32px"], [style*="padding: 32px"] { padding: 18px !important; }

  /* Font-size inline énormes (h-display custom inline) */
  [style*="font-size:clamp(48px"],
  [style*="font-size:clamp(56px"],
  [style*="font-size:clamp(64px"] {
    font-size: clamp(28px, 8vw, 48px) !important;
    line-height: 1.05 !important;
  }
  [style*="font-size:clamp(40px"],
  [style*="font-size:clamp(42px"],
  [style*="font-size:clamp(36px"] {
    font-size: clamp(24px, 6.5vw, 36px) !important;
    line-height: 1.1 !important;
  }
  [style*="font-size:64px"], [style*="font-size: 64px"],
  [style*="font-size:72px"], [style*="font-size: 72px"] {
    font-size: 44px !important;
  }
  [style*="font-size:48px"], [style*="font-size: 48px"] { font-size: 32px !important; }
  [style*="font-size:36px"], [style*="font-size: 36px"] { font-size: 26px !important; }
  [style*="font-size:32px"], [style*="font-size: 32px"] { font-size: 24px !important; }

  /* Min-height inline → auto */
  [style*="min-height:520"], [style*="min-height: 520"],
  [style*="min-height:620"], [style*="min-height: 620"],
  [style*="min-height:680"], [style*="min-height: 680"] {
    min-height: auto !important;
  }

  /* Width fixe inline → auto */
  [style*="width:480"], [style*="width: 480"],
  [style*="width:560"], [style*="width: 560"],
  [style*="width:640"], [style*="width: 640"],
  [style*="width:720"], [style*="width: 720"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Max-width inline énormes → 100% */
  [style*="max-width:480"], [style*="max-width: 480"],
  [style*="max-width:560"], [style*="max-width: 560"],
  [style*="max-width:640"], [style*="max-width: 640"],
  [style*="max-width:720"], [style*="max-width: 720"],
  [style*="max-width:780"], [style*="max-width: 780"],
  [style*="max-width:1100"], [style*="max-width: 1100"],
  [style*="max-width:1200"], [style*="max-width: 1200"],
  [style*="max-width:1300"], [style*="max-width: 1300"] {
    max-width: 100% !important;
  }

  /* Iframes : reflow */
  iframe { width: 100% !important; min-height: 400px !important; max-height: 60vh !important; }

  /* Boutons en flex doivent wrap */
  [style*="display:flex"][style*="gap:"] { flex-wrap: wrap !important; }

  /* Ticker horizontal : conserve overflow-x:auto, juste padding */
  [style*="overflow-x:auto"] { padding: 0 4px !important; }

  /* Card text alignment : tout left */
  .card, [class*="card"] { text-align: left !important; }

  /* Forcer les images / SVG hero à se redimensionner */
  model-viewer, [style*="--poster"] { width: 100% !important; height: auto !important; min-height: 280px !important; }
}

@media (max-width: 480px) {
  /* Encore plus serré sur très petit écran */
  section { padding-top: 32px !important; padding-bottom: 32px !important; }
  [style*="display:grid"], [style*="display: grid"] { gap: 14px !important; }
  [style*="gap:"], [style*="gap: "] { row-gap: inherit; }
  .card { padding: 16px !important; }
  iframe { min-height: 320px !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01s !important; transition-duration: 0.01s !important; }
}
