/* ==========================================================================
   EQUIP DRONES — Design system
   Dark technical premium. Single stylesheet, no imports, no external assets.
   FROZEN: page authors consume these classes, they do not add CSS here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* ========== Theme Configuration Variables ==========
     These are applied by assets/js/theme-config.js.
     Edit theme-config.js to customize the site appearance.
  */
  --color-primary: #0A0B0D;
  --color-secondary: #131519;
  --color-accent: #00E08A;
  --color-text: #F2F4F7;
  --color-text-muted: #8A93A3;
  --color-border: #2A2E36;
  --color-background: #0A0B0D;
  --color-success: #00C46A;
  --color-warning: #FFB020;
  --color-error: #FF5A5A;
  --color-icon: #00E08A;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-xxl: 32px;

  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-weight: 400;
  --font-weight-bold: 600;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* ========== Legacy Variables (preserved for compatibility) ==========
     These map to the new theme variables above.
  */
  --bg:          var(--color-primary);
  --bg-alt:      var(--color-secondary);
  --surface:     #131519;
  --surface-2:   #1C1F25;
  --border:      var(--color-border);
  --border-soft: #1F232A;

  --text:        var(--color-text);
  --muted:       var(--color-text-muted);
  --dim:         #5C6472;

  --accent:      var(--color-accent);
  --accent-dim:  #00B36E;
  --accent-ghost: rgba(0, 224, 138, 0.10);

  --ok:          var(--color-success);
  --warn:        var(--color-warning);
  --off:         #6B7280;
  --danger:      var(--color-error);

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: var(--font-family);

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --wrap: 1280px;
  --radius: 4px;
  --radius-lg: 8px;

  --t: 180ms cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 74px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: #04140D; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #04140D;
  padding: var(--s3) var(--s5); font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s5); }
.wrap-narrow { max-width: 780px; }

.section    { padding-block: var(--s9); }
.section-sm { padding-block: var(--s7); }
.section-alt { background: var(--bg-alt); }
.section-bordered { border-top: 1px solid var(--border-soft); }

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stack   { display: flex; flex-direction: column; gap: var(--s4); }
.stack-2 { display: flex; flex-direction: column; gap: var(--s2); }
.stack-6 { display: flex; flex-direction: column; gap: var(--s6); }
.row     { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s4);
  display: flex; align-items: center; gap: var(--s3);
}
.eyebrow::after {
  content: ""; flex: 1; height: 1px; max-width: 80px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.eyebrow-muted { color: var(--muted); }
.eyebrow-muted::after { background: linear-gradient(90deg, var(--border), transparent); }
.eyebrow-plain::after { display: none; }

.h-hero    { font-size: clamp(2.5rem, 6.5vw, 5rem);   line-height: 1.02; letter-spacing: -0.035em; }
.h-section { font-size: clamp(1.9rem, 3.6vw, 3rem);   line-height: 1.08; letter-spacing: -0.03em; }
.h-card    { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
.h-sub     { font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 600; }

.lead    { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); line-height: 1.65; }
.body    { color: var(--muted); }
.small   { font-size: 14px; color: var(--muted); }
.tiny    { font-size: 12px; color: var(--dim); }
.mono    { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.accent  { color: var(--accent); }
.strong  { color: var(--text); font-weight: 600; }
.measure { max-width: 62ch; }
.center  { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after, .center .eyebrow::before { display: none; }

.section-head { margin-bottom: var(--s7); }
.section-head .lead { margin-top: var(--s4); max-width: 62ch; }
.section-head.center .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: var(--s3) var(--s5);
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
  white-space: nowrap;
  text-align: center;
}
.btn:hover { border-color: var(--muted); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent); border-color: var(--accent); color: #04140D;
}
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); color: #04140D; }

.btn-ghost { border-color: var(--border); color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

.btn-sm { min-height: 36px; padding: var(--s2) var(--s3); font-size: 13px; }
.btn-lg { min-height: 54px; padding: var(--s4) var(--s6); font-size: 15px; }
.btn-block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
}

.btn-wa { background: #25D366; border-color: #25D366; color: #04140D; }
.btn-wa:hover { background: #1EB855; border-color: #1EB855; color: #04140D; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  color: var(--accent); font-weight: 600; font-size: 14px;
  transition: gap var(--t);
}
.link-arrow:hover { gap: var(--s3); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
/* app.js injecte l'en-tête et le pied de page dans ces conteneurs. Sans
   `display: contents`, le <div data-header> forme un bloc de la hauteur de
   l'en-tête : `position: sticky` s'y trouve alors borné et l'en-tête disparaît
   dès les premiers pixels de défilement au lieu de rester épinglé. */
[data-header], [data-footer] { display: contents; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: var(--s5); }

.brand { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }
.brand img { height: 45px; width: auto; }
.brand-text {
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.brand-divider {
  display: inline-block;
  width: 1px;
  height: 24px;
  background: var(--border);
  margin-inline: 4px;
}
.brand-dji {
  height: 27px !important;
  width: auto !important;
  opacity: 0.9;
  transition: opacity var(--t);
}
.brand:hover .brand-dji {
  opacity: 1;
}

.nav { display: flex; align-items: center; gap: var(--s5); margin-left: auto; }
.nav a {
  font-size: 14px; color: var(--muted); font-weight: 500;
  transition: color var(--t); position: relative; padding-block: var(--s2);
  white-space: nowrap;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}
@media (max-width: 1200px) and (min-width: 901px) {
  .nav { gap: clamp(8px, 1.2vw, var(--s5)); }
  .nav a { font-size: 13px; }
}

.header-actions { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }

.lang-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lang-toggle button {
  background: transparent; border: 0; cursor: pointer;
  padding: 5px 9px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--muted); transition: all var(--t);
}
.lang-toggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.lang-toggle button:hover { color: var(--text); }

.cart-link { position: relative; display: inline-flex; align-items: center; gap: var(--s2); }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; padding-inline: 5px;
  background: var(--accent); color: #04140D;
  border-radius: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 1;
}
.cart-count[data-empty="true"] { display: none; }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: var(--radius); width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text); }
.nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-block: var(--s10) var(--s9); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 10%, rgba(0, 224, 138, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(0, 224, 138, 0.05), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s8); align-items: center; }
.hero-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s6); }
.hero .lead { margin-top: var(--s5); max-width: 52ch; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.page-head { padding-block: var(--s8) var(--s6); border-bottom: 1px solid var(--border-soft); }
.page-head .lead { margin-top: var(--s4); }

/* --------------------------------------------------------------------------
   8. Stat strip
   -------------------------------------------------------------------------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--border);
}
.stat {
  padding: var(--s6) var(--s5);
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: 0; }
.stat-value {
  font-family: var(--mono); font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700; color: var(--text); line-height: 1.15; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: var(--s3); font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em; line-height: 1.4;
}
.stat .spec-icon {
  margin-bottom: var(--s3);
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.card-hover:hover { border-color: var(--muted); transform: translateY(-2px); }

/* Product card */
.p-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.p-card:hover { border-color: var(--muted); transform: translateY(-3px); }
.p-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  display: flex; align-items: center; justify-content: center;
  padding: var(--s5);
  border-bottom: 1px solid var(--border-soft);
}
.p-card-media img { max-height: 100%; width: auto; object-fit: contain; }
.p-card-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.p-card-cat {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim);
}
.p-card-title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.p-card-tagline { font-size: 14px; color: var(--muted); line-height: 1.5; flex: 1; }
.p-card-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  border-top: 1px solid var(--border-soft);
  padding-top: var(--s4); margin-top: var(--s2);
}
.p-card-spec { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px; align-items: start; }
.p-card-spec--plain { display: block; }
.p-card-spec-icon, .spec-icon {
  width: 36px; height: 36px; display: inline-block; vertical-align: middle;
  object-fit: contain; flex-shrink: 0;
  filter: invert(70%) sepia(100%) saturate(1000%) hue-rotate(115deg);
}
.p-card-spec-v { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--text); }
.p-card-spec-l { font-size: 10px; color: var(--dim); letter-spacing: 0.05em; margin-top: 2px; line-height: 1.3; }
.p-card-actions { display: flex; gap: var(--s2); margin-top: var(--s4); }
.p-card-actions .btn { flex: 1; }

/* --------------------------------------------------------------------------
   10. Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge-in_stock    { color: var(--ok);   border-color: rgba(0, 196, 106, 0.35); background: rgba(0, 196, 106, 0.08); }
.badge-on_order    { color: var(--warn); border-color: rgba(255, 176, 32, 0.35); background: rgba(255, 176, 32, 0.08); }
.badge-coming_soon { color: var(--warn); border-color: rgba(255, 176, 32, 0.35); background: rgba(255, 176, 32, 0.08); }
.badge-discontinued { color: #f87171; border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); }
.badge-not_available { color: var(--dim); border-color: var(--border); background: rgba(128, 128, 128, 0.08); }

.tag {
  display: inline-block; padding: 3px 9px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 11px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   11. Spec table
   -------------------------------------------------------------------------- */
.spec-group { border-top: 1px solid var(--border); padding-top: var(--s5); margin-top: var(--s6); }
.spec-group:first-child { margin-top: 0; }
.spec-group-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--s4);
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border-soft); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left; font-weight: 400; color: var(--muted);
  padding: var(--s3) var(--s4) var(--s3) 0; font-size: 14px; width: 45%;
  vertical-align: top;
}
.spec-table td {
  padding: var(--s3) 0; font-family: var(--mono); font-size: 14px;
  color: var(--text); font-variant-numeric: tabular-nums; vertical-align: top;
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Comparator */
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp-table th, .cmp-table td {
  padding: var(--s3) var(--s4); text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}
/* `top: 0`, not var(--header-h): .table-scroll is itself the scrollport, so the
   offset must be relative to the wrapper, not to the page header. */
.cmp-table thead th {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg); border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 600;
}
.cmp-table tbody th {
  font-weight: 400; color: var(--muted); font-size: 14px; width: 220px;
}
.cmp-table tbody td { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }

/* These two rules must out-specify `.cmp-table tbody th/td` (0,1,2), hence the
   full `.cmp-table tbody tr.x` chain rather than a bare `.x th`. */
.cmp-table tbody tr.cmp-row-same th,
.cmp-table tbody tr.cmp-row-same td { color: var(--dim); }
.cmp-table tbody tr.cmp-group-row th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); width: auto;
  padding-top: var(--s6); border-bottom: 1px solid var(--border);
}

/* Parts & Accessories Table */
.parts-toolbar {
  display: flex; flex-direction: column; gap: var(--s4);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--border-soft);
}
.parts-toolbar-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: var(--s5);
}
.parts-toolbar-filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s4);
}
.parts-filter-drone, .parts-filter-search {
  display: flex; flex-direction: column; gap: var(--s2);
}
.parts-select, .parts-search-input {
  height: 38px; padding: 0 var(--s3);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 13px; transition: border-color var(--t);
}
.parts-select:focus, .parts-search-input:focus {
  outline: none; border-color: var(--accent);
}
.parts-search-input { min-width: 220px; }
.parts-search-input::-webkit-search-cancel-button { cursor: pointer; }

.parts-table {
  width: 100%; border-collapse: collapse; min-width: 760px;
}
.parts-table th, .parts-table td {
  padding: var(--s3) var(--s4); text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--border-soft);
}
.parts-table thead th {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg); border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.parts-table tbody tr { transition: background var(--t); }
.parts-table tbody tr:hover { background: var(--surface); }

.parts-td-type { width: 140px; }
.parts-td-name { min-width: 200px; }
.parts-td-model { width: 140px; font-family: var(--mono); }
.parts-td-drones { min-width: 200px; }
.parts-td-avail { width: 150px; }
.parts-td-action { width: 220px; text-align: right; }

.parts-code {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  background: rgba(0, 224, 138, 0.08); padding: 3px 7px; border-radius: var(--radius-sm);
}
.parts-drones-wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.tag-sm {
  font-size: 11px; padding: 2px 7px; border-radius: 4px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-soft);
}
.badge-subtle {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted);
}
.parts-action-cell {
  display: flex; align-items: center; justify-content: flex-end; gap: var(--s3);
}

.qty-sm button { width: 30px; height: 32px; font-size: 16px; }
.qty-sm input { width: 38px; height: 32px; font-size: 13px; }


/* --------------------------------------------------------------------------
   12. Filters
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: var(--s5);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--border-soft);
  align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: var(--s2); }
.filter-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim);
}
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--border); border-radius: 100px;
  background: transparent; color: var(--muted);
  font-size: 13px; cursor: pointer; transition: all var(--t);
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] {
  background: var(--accent-ghost); border-color: var(--accent); color: var(--accent);
}
.result-count { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-left: auto; }

.empty-state {
  padding: var(--s9) var(--s5); text-align: center;
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field .req { color: var(--accent); }

.input, .select, .textarea {
  width: 100%;
  padding: var(--s3) var(--s4);
  min-height: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  transition: border-color var(--t), background var(--t);
}
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface-2);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238A93A3' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s4) center;
  padding-right: var(--s7);
}
.field-error .input, .field-error .select, .field-error .textarea { border-color: var(--danger); }
.error-msg { font-size: 12px; color: var(--danger); }
.error-msg:empty { display: none; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.form-grid .span-2 { grid-column: 1 / -1; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty button {
  width: 36px; height: 38px; background: transparent; border: 0;
  color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1;
  transition: background var(--t), color var(--t);
}
.qty button:hover { background: var(--surface-2); color: var(--text); }
.qty input {
  width: 46px; height: 38px; text-align: center;
  background: transparent; border: 0;
  border-inline: 1px solid var(--border);
  font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --------------------------------------------------------------------------
   14. Cart lines
   -------------------------------------------------------------------------- */
.cart-line {
  display: grid; grid-template-columns: 88px 1fr auto auto;
  gap: var(--s4); align-items: center;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border-soft);
}
.cart-line-media {
  aspect-ratio: 1; background: var(--surface-2);
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: var(--s2);
}
.cart-line-media img { max-height: 100%; width: auto; object-fit: contain; }
.btn-remove {
  background: transparent; border: 0; cursor: pointer;
  color: var(--dim); font-size: 13px; padding: var(--s2);
  transition: color var(--t);
}
.btn-remove:hover { color: var(--danger); }

/* --------------------------------------------------------------------------
   15. CTA band / callout
   -------------------------------------------------------------------------- */
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, rgba(0, 224, 138, 0.07), transparent 60%),
    var(--surface);
  padding: var(--s8) var(--s7);
  text-align: center;
}
.cta-band .btn-row { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; margin-top: var(--s6); }

.callout {
  border-left: 2px solid var(--accent);
  background: var(--accent-ghost);
  padding: var(--s5) var(--s6);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.notice {
  border: 1px solid var(--border); border-left: 2px solid var(--warn);
  background: var(--surface); padding: var(--s4) var(--s5);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px; color: var(--muted);
}

/* Numbered / icon feature item */
.feature { display: flex; flex-direction: column; gap: var(--s3); }
.feature-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent);
}
.feature-title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.feature-body { font-size: 14px; color: var(--muted); line-height: 1.6; }

.divider { height: 1px; background: var(--border-soft); border: 0; margin-block: var(--s7); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: var(--s8) var(--s6);
  margin-top: var(--s9);
}
.site-footer .brand {
  gap: var(--s4);
}
.site-footer .brand img.brand-logo,
.site-footer .brand > img:first-child {
  height: 60px;
}
.site-footer .brand-text {
  font-size: 18px;
}
.site-footer .brand-divider {
  height: 32px;
  margin-inline: var(--s2);
}
.site-footer .brand-dji {
  height: 36px !important;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s7); }
.footer-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim); margin-bottom: var(--s4);
}
.footer-list { display: flex; flex-direction: column; gap: var(--s3); }
.footer-list a, .footer-list span { font-size: 14px; color: var(--muted); transition: color var(--t); }
.footer-list a:hover { color: var(--accent); }
.socials { display: flex; gap: var(--s2); }
.social {
  width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all var(--t);
}
.social:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-ghost); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom {
  margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
  font-size: 12px; color: var(--dim);
}

/* --------------------------------------------------------------------------
   16b. Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed; bottom: var(--s5); left: 50%; z-index: 300;
  transform: translateX(-50%) translateY(160%);
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--s3) var(--s5);
  font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  transition: transform var(--t);
  max-width: calc(100vw - var(--s8));
  text-align: center;
}
.toast[data-show="true"] { transform: translateX(-50%) translateY(0); }

/* --------------------------------------------------------------------------
   17. Utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); } .mt-7 { margin-top: var(--s7); }
.mb-4 { margin-bottom: var(--s4); } .mb-5 { margin-bottom: var(--s5); } .mb-6 { margin-bottom: var(--s6); }
.full { width: 100%; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :nth-child(4) { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .hero { padding-block: var(--s8) var(--s7); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .hero-media { order: -1; max-width: 460px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .section { padding-block: var(--s8); }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: var(--s4) var(--s5) var(--s6);
    transform: translateY(-120%); transition: transform var(--t);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: var(--s4) 0; border-bottom: 1px solid var(--border-soft); font-size: 16px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent); }
  .nav-toggle { display: inline-flex; order: 3; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: var(--s4); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .section { padding-block: var(--s7); }
  .cta-band { padding: var(--s6) var(--s5); }
  .p-card-specs { grid-template-columns: repeat(3, 1fr); }
  .cart-line { grid-template-columns: 64px 1fr; row-gap: var(--s3); }
  .cart-line > :nth-child(3), .cart-line > :nth-child(4) { grid-column: 2; justify-self: start; }
  .cmp-table tbody th { width: 150px; }
  .btn { width: 100%; }
  .row .btn, .btn-row .btn, .p-card-actions .btn, .hero-actions .btn { width: auto; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 440px) {
  .site-header .brand-text { display: none; }
}

/* --------------------------------------------------------------------------
   18b. Motion au défilement
   Piloté par assets/js/motion.js, qui pose la classe `.motion` sur <html>.
   Sans JS, cette classe n'existe pas et TOUT reste visible : aucun contenu
   ne dépend d'une animation pour s'afficher.
   -------------------------------------------------------------------------- */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}
.motion [data-reveal="fade"]  { transform: none; }
.motion [data-reveal="left"]  { transform: translateX(-24px); }
.motion [data-reveal="right"] { transform: translateX(24px); }
.motion [data-reveal="scale"] { transform: scale(0.965); }

.motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity   var(--reveal-dur, 560ms) cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms),
    transform var(--reveal-dur, 560ms) cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms);
}

/* Le filet de l'eyebrow se trace au moment du reveal */
.motion [data-reveal] .eyebrow::after,
.motion [data-reveal].eyebrow::after {
  transform: scaleX(0); transform-origin: left center;
}
.motion [data-reveal].is-in .eyebrow::after,
.motion [data-reveal].is-in.eyebrow::after {
  transform: scaleX(1);
  transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 220ms;
}

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200;
  background: linear-gradient(90deg, var(--accent), #7CF5C0);
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* L'en-tête se densifie une fois la page défilée */
.site-header {
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
}
.site-header.is-scrolled {
  background: rgba(10, 11, 13, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}

/* Parallaxe : la valeur est écrite par motion.js, jamais animée en CSS seul */
.hero-media { will-change: transform; }
.hero::before {
  will-change: transform;
  transform: translate3d(0, var(--hero-shift, 0px), 0);
}

/* Compteurs chiffrés : évite le reflow pendant l'incrémentation */
.stat-value { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .motion [data-reveal] { transform: translateY(12px); }
  .motion [data-reveal="left"], .motion [data-reveal="right"] { transform: translateY(12px); }
}

/* --------------------------------------------------------------------------
   19. Motion / print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .p-card:hover, .card-hover:hover { transform: none; }

  /* Filet de sécurité : si la préférence change après le chargement, le contenu
     reste visible même si motion.js a déjà masqué des éléments. */
  .motion [data-reveal],
  .motion [data-reveal].is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .motion [data-reveal] .eyebrow::after,
  .motion [data-reveal].eyebrow::after { transform: scaleX(1) !important; }
  .scroll-progress { display: none; }
  .hero-media, .hero::before { transform: none !important; }
}

@media print {
  .site-header, .site-footer, .btn, .filter-bar, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .p-card { border-color: #ccc; }
}

/* Keep both language choices reachable on narrow screens. */
.lang-toggle { flex-shrink: 0; }
.header-actions .cart-link { width: auto; }
@media (max-width: 440px) {
  .site-header .wrap { gap: 8px; }
  .site-header .brand-dji, .site-header .brand-divider { display: none; }
  .header-actions { gap: 8px; }
}
.cycle-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); padding: 0; list-style: none; }
.cycle-flow li { display: flex; flex-direction: column; gap: var(--s3); }
@media (max-width: 640px) { .cycle-flow { grid-template-columns: repeat(2, 1fr); } }
