/* ===================================================================
   XPONENTIEL · Icons Studio
   Built on the Xponentiel design system (colors_and_type.css).
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Brand core */
  --xpo-black: #0e101f;
  --xpo-white: #ffffff;

  /* 4-stop gradient */
  --xpo-grad-1: #35E463;
  --xpo-grad-2: #3588F3;
  --xpo-grad-3: #603AC8;
  --xpo-grad-4: #F51F87;
  --xpo-gradient: linear-gradient(90deg,#35E463 0%,#3588F3 35%,#603AC8 70%,#F51F87 100%);
  --xpo-gradient-conic: conic-gradient(from 0deg,#35E463,#3588F3,#603AC8,#F51F87,#35E463);

  /* Accents */
  --xpo-pink:        #d73c85;
  --xpo-violet:      #5d3fc0;
  --xpo-yellow:      #e5d35a;
  --xpo-green:       #7fdf74;
  --xpo-blue:        #5c88eb;
  --xpo-blue-light:  #cddffc;

  /* Ink scale */
  --ink-900: #0e101f;
  --ink-800: #1a1c2e;
  --ink-700: #2a2d42;
  --ink-600: #43475e;
  --ink-500: #696d85;
  --ink-400: #9498ad;
  --ink-300: #c2c5d4;
  --ink-200: #e2e4ec;
  --ink-100: #f1f2f7;
  --ink-050: #f8f9fc;

  /* Semantic */
  --fg-1: var(--xpo-black);
  --fg-2: var(--ink-600);
  --fg-3: var(--ink-500);
  --bg-1: var(--xpo-white);
  --bg-2: var(--ink-050);
  --bg-3: var(--ink-100);
  --border-1: var(--ink-200);
  --highlight: var(--xpo-pink);

  /* Radii */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 2px 6px rgba(14,16,31,.06), 0 1px 2px rgba(14,16,31,.04);
  --sh-md: 0 8px 24px rgba(14,16,31,.08), 0 2px 6px rgba(14,16,31,.04);
  --sh-lg: 0 24px 60px rgba(14,16,31,.14), 0 6px 16px rgba(14,16,31,.06);

  /* Motion */
  --ease: cubic-bezier(.22,1,.36,1);
  --d-fast: 150ms; --d-base: 240ms; --d-slow: 480ms;

  /* Type */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ===================================================================
   RESET
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
::selection { background: var(--xpo-pink); color: white; }

/* ===================================================================
   UTILS
   =================================================================== */
.xpo-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0;
}
.xpo-highlight { color: var(--highlight); font-weight: inherit; }
.xpo-gradient-bar {
  width: 100%;
  height: 8px;
  background: var(--xpo-gradient);
  display: block;
}

/* ===================================================================
   BANDEAU SITE — réplique du header xponentiel.pro
   (noir 100px, Gill Sans Nova 20/600, actif/hover rose #e1308b,
    sous-menu Formation, bouton téléphone docké à droite)
   =================================================================== */
.xnav {
  position: relative;
  background: #000;
  z-index: 60;
  font-family: "gill-sans-nova", var(--font);
}
.xnav__in {
  position: relative;
  height: 100px;
  margin: 0 auto;
  padding: 0 110px 0 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.xnav__logo { display: inline-flex; flex-shrink: 0; text-decoration: none; }
.xnav__logo img { height: 50px; width: auto; }
.xnav__logo-dark { display: none; }
.xnav__menu {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 36px;
}
.xnav__menu > a, .xnav__drop > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 2px;
  white-space: nowrap;
  transition: color .25s ease;
}
.xnav__menu > a::after, .xnav__drop > a::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: #e1308b;
  opacity: 0;
  transition: opacity .3s ease;
}
.xnav__menu > a:hover::after, .xnav__drop:hover > a::after { opacity: 1; }
.xnav__caret { opacity: .9; transition: transform .25s ease; }
.xnav__drop { position: relative; height: 100%; display: flex; align-items: center; }
.xnav__drop:hover .xnav__caret { transform: rotate(180deg); }
.xnav__sub {
  position: absolute;
  left: -10px; top: 100%;
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 22px 48px -14px rgba(14,16,31,.30);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 70;
}
.xnav__drop:hover .xnav__sub, .xnav__drop:focus-within .xnav__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.xnav__sub a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--xpo-black);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.xnav__sub a:hover { background: var(--ink-100); color: #e1308b; }
.xnav__menu-contact { display: none !important; }
.xnav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
}
.xnav__burger span {
  display: block;
  height: 2px; width: 100%;
  border-radius: 2px;
  background: var(--xpo-black);
  transition: transform .25s ease, opacity .25s ease;
}
.xnav__phone {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 40px;
  background: #fff;
  color: #000;
  border-radius: 7px 0 0 7px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: width .25s var(--ease);
}
.xnav__phone:hover { width: 56px; }
@media (max-width: 1180px) {
  .xnav { background: #fff; border-bottom: 1px solid var(--border-1); }
  .xnav__in { height: 84px; padding: 0 18px; }
  .xnav__logo-light { display: none; }
  .xnav__logo-dark { display: block; }
  .xnav__logo img { height: 42px; }
  .xnav__burger { display: flex; }
  .xnav__phone { display: none; }
  .xnav__menu {
    position: absolute;
    left: 0; right: 0; top: 100%; bottom: auto;
    transform: none;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 6px 18px 18px;
    box-shadow: 0 30px 44px -22px rgba(14,16,31,.28);
    border-bottom: 1px solid var(--border-1);
  }
  .xnav.is-open .xnav__menu { display: flex; }
  .xnav__menu > a, .xnav__drop > a {
    color: var(--xpo-black);
    font-size: 18px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--ink-100);
  }
  .xnav__menu > a::after, .xnav__drop > a::after { display: none; }
  .xnav__drop { height: auto; flex-direction: column; align-items: stretch; }
  .xnav__drop > a { width: 100%; }
  .xnav__caret { display: none; }
  .xnav__sub {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    padding: 0 0 6px 16px;
    min-width: 0;
  }
  .xnav__sub a { font-size: 15px; color: var(--ink-600); padding: 9px 0; border-radius: 0; }
  .xnav__menu-contact { display: flex !important; }
  .xnav.is-open .xnav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .xnav.is-open .xnav__burger span:nth-child(2) { opacity: 0; }
  .xnav.is-open .xnav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===================================================================
   FOND ANIMÉ « salle blanche data » (héros, identique aux articles)
   =================================================================== */
.ah-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; --gx: 0; --gy: 0; }
.ah-bg .a { position: absolute; border-radius: 999px; will-change: transform; animation: ahaur var(--d,26s) cubic-bezier(.65,0,.35,1) infinite alternate; }
.ah-bg .a1 { width: 48vw; height: 38vw; top: -16vw; left: -10vw; background: radial-gradient(closest-side, rgba(53,228,99,.13), transparent 72%); }
.ah-bg .a2 { width: 42vw; height: 34vw; top: -10vw; right: -12vw; --d: 30s; background: radial-gradient(closest-side, rgba(245,31,135,.10), transparent 72%); animation-delay: -8s; }
.ah-bg .a3 { width: 52vw; height: 38vw; bottom: -24vw; left: 24vw; --d: 34s; background: radial-gradient(closest-side, rgba(96,58,200,.11), transparent 72%); animation-delay: -16s; }
@keyframes ahaur { from { transform: translate3d(-2.5%,-2%,0) scale(1); } to { transform: translate3d(3%,3.5%,0) scale(1.08); } }
.ah-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(14,16,31,.13) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 82%);
          mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 82%);
  animation: ahdots 90s linear infinite;
}
@keyframes ahdots { to { background-position: 240px 168px; } }
.ah-geo { position: absolute; transform: translate3d(calc(var(--gx)*var(--dp,1)*1px), calc(var(--gy)*var(--dp,1)*.8px), 0); }
.ah-gi { display: block; width: var(--gs,120px); height: var(--gs,120px); animation: ahfloat var(--gd,16s) cubic-bezier(.65,0,.35,1) var(--gl,0s) infinite alternate; will-change: transform; }
.ah-sq { border-radius: 24%; background: linear-gradient(145deg,#fff 12%,#eceef5 100%); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 34px 64px -18px rgba(14,16,31,.13), 0 12px 26px -12px rgba(14,16,31,.07), inset 0 1px 0 rgba(255,255,255,.95); }
.ah-sp { border-radius: 50%; background: radial-gradient(circle at 32% 26%, #fff 0%, #eef0f6 52%, #dfe3ee 100%); box-shadow: 0 40px 70px -22px rgba(14,16,31,.16), inset -8px -12px 28px rgba(14,16,31,.05); }
svg.ah-hx { height: auto; filter: drop-shadow(0 26px 44px rgba(14,16,31,.13)) drop-shadow(0 8px 16px rgba(14,16,31,.06)); }
@keyframes ahfloat { from { transform: translateY(-9px) rotate(var(--gr,0deg)); } to { transform: translateY(11px) rotate(calc(var(--gr,0deg) + 5deg)); } }
@media (max-width: 1024px) { .ah-far { display: none; } }
@media (prefers-reduced-motion: reduce) { .ah-bg .a, .ah-dots, .ah-gi { animation: none; } }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  background: #f6f7f9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-1);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 54px 32px 52px;
}
.hero__top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero__top .hero__eyebrow { margin-bottom: 0; }
.hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fg-2);
  text-decoration: none;
  padding: 8px 15px;
  border: 1px solid var(--border-1);
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: all var(--d-base) var(--ease);
}
.hero__back:hover { color: var(--fg-1); border-color: var(--ink-300); }
.hero__back svg { transition: transform var(--d-base) var(--ease); }
.hero__back:hover svg { transform: translateX(-3px); }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-1);
  background: #fff;
  box-shadow: var(--sh-sm);
  color: var(--ink-700);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--xpo-grad-1);
  box-shadow: 0 0 0 3px rgba(53,228,99,.18);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 18px; }
}
.hero__title {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--fg-1);
}
.hero__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 460px;
}
.hero__lead strong { color: var(--fg-1); font-weight: 600; }
.hero__bullets {
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border-1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
}
@media (max-width: 720px) { .hero__bullets { grid-template-columns: 1fr; } }
.hero__bullets li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-2);
}
.hero__arrow {
  color: var(--xpo-pink);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===================================================================
   STUDIO
   =================================================================== */
.studio {
  background: var(--bg-2);
  padding-bottom: 80px;
}
.studio__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 32px 0;
}

/* ----- Panel ----- */
.panel {
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 26px 30px 30px;
  margin-bottom: 28px;
}
.panel__hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-100);
  margin-bottom: 24px;
}
.panel__title {
  margin: 8px 0 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--fg-1);
}
.panel__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 32px;
}
@media (max-width: 1180px) { .panel__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .panel__grid { grid-template-columns: 1fr; } }

.ctrl { min-width: 0; }
.ctrl--span2 { grid-column: span 2; }
@media (max-width: 1180px) { .ctrl--span2 { grid-column: span 2; } }
@media (max-width: 640px)  { .ctrl--span2 { grid-column: span 1; } }

.ctrl__lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.ctrl__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ctrl__row--slim {
  margin-top: 10px;
}
.ctrl__sub {
  font-size: 12px;
  color: var(--fg-3);
}
.ctrl__val {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-1);
  min-width: 38px;
  text-align: right;
}

/* Swatches */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sw {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(14,16,31,.10);
  cursor: pointer;
  position: relative;
  transition: transform var(--d-fast) var(--ease);
  padding: 0;
  background-clip: padding-box;
}
.sw:hover { transform: scale(1.12); }
/* Sélection : anneau au dégradé signature (vert → bleu → violet → rose) */
.sw.is-on::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 0deg, #35E463, #3588F3, #603AC8, #F51F87, #35E463);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.sw--transparent {
  background:
    linear-gradient(135deg, var(--ink-200) 25%, transparent 25%, transparent 75%, var(--ink-200) 75%),
    linear-gradient(135deg, var(--ink-200) 25%, white 25%, white 75%, var(--ink-200) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
}

/* Hex input */
.hex {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  padding: 4px 8px 4px 6px;
  transition: border-color var(--d-fast) var(--ease);
}
.hex:focus-within { border-color: var(--ink-400); }
.hex__chip {
  position: relative;
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(14,16,31,.12);
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.hex__chip:hover {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(14,16,31,.08);
}
.hex__chip::after {
  /* tiny "edit" cue in the corner */
  content: "";
  position: absolute;
  right: -3px; bottom: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--xpo-violet);
  border: 1.5px solid white;
  opacity: 0;
  transform: scale(.5);
  transition: all var(--d-fast) var(--ease);
}
.hex:hover .hex__chip::after { opacity: 1; transform: scale(1); }
/* Native <input type=color> — invisible, anchored under the chip so the
   OS color dialog appears next to it when we forward the click. */
.hex__native {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.hex input[type="text"] {
  width: 70px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

/* Eyedropper button (pipette) */
.eyedrop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  flex-shrink: 0;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  color: var(--fg-2);
  transition: all var(--d-fast) var(--ease);
}
.eyedrop:hover {
  color: white;
  background: var(--xpo-black);
  border-color: var(--xpo-black);
  transform: translateY(-1px);
}
.eyedrop:active { transform: translateY(0); }
.eyedrop.is-unsupported { display: none; }
.eyedrop svg { display: block; }

/* Segmented — clean grid so options never overflow / overlap.
   Default 2 columns (Forme → balanced 2×2); weight overrides to 3. */
.seg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
}
#weightSeg { grid-template-columns: repeat(3, 1fr); }
.seg__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--fg-2);
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  transition: background var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
.seg__btn:hover { color: var(--fg-1); }
.seg__btn.is-on {
  background: white;
  color: var(--fg-1);
  font-weight: 600;
  box-shadow: var(--sh-sm);
}
.seg__btn svg { color: currentColor; }

/* Range */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 120px;
  height: 24px;
  background: transparent;
  cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: var(--ink-200);
}
input[type=range]::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: var(--ink-200);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--xpo-black);
  margin-top: -7px;
  box-shadow: var(--sh-sm);
  transition: transform var(--d-fast) var(--ease);
}
input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--xpo-black);
  box-shadow: var(--sh-sm);
}
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.1); }

/* ----- Bar (search + dl) ----- */
.bar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.search {
  flex: 1;
  min-width: 280px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--r-pill);
  padding: 0 18px;
  height: 46px;
  transition: border-color var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease);
}
.search:focus-within {
  border-color: var(--fg-1);
  box-shadow: 0 0 0 4px rgba(14,16,31,.06);
}
.search svg { color: var(--fg-3); flex-shrink: 0; }
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--fg-1);
}
.search input::placeholder { color: var(--fg-3); }
.bar__cta { display: flex; gap: 10px; }

/* ----- Categories ----- */
.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--d-base) var(--ease);
}
.cat:hover {
  border-color: var(--ink-300);
  color: var(--fg-1);
}
.cat.is-on {
  background: var(--xpo-black);
  color: white;
  border-color: var(--xpo-black);
}
.cat__n {
  font-size: 11px;
  font-weight: 600;
  color: inherit;
  opacity: .6;
  font-variant-numeric: tabular-nums;
}

/* ----- Grid ----- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.tile {
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 18px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all var(--d-base) var(--ease);
  position: relative;
}
.tile:hover {
  border-color: var(--ink-400);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.tile__art {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.tile__svg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile__svg svg {
  /* applied inline */
}
.tile__open {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.tile__name {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-2);
  text-align: center;
  line-height: 1.3;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile:hover .tile__name { color: var(--fg-1); }
.tile__name-en {
  font-size: 10px;
  color: var(--ink-400);
  text-align: center;
  line-height: 1.25;
  width: 100%;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Selection checkbox (top-left of each tile) */
.tile__check {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  width: 22px; height: 22px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--d-base) var(--ease);
}
.tile:hover .tile__check,
.tile.is-selected .tile__check { opacity: 1; transform: translateY(0); }
.tile__check input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.tile__check-box {
  width: 18px; height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--ink-300);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--d-fast) var(--ease);
}
.tile__check-box svg { opacity: 0; transition: opacity var(--d-fast) var(--ease); }
.tile.is-selected .tile__check-box {
  background: var(--xpo-violet);
  border-color: var(--xpo-violet);
}
.tile.is-selected .tile__check-box svg { opacity: 1; }
.tile.is-selected {
  border-color: var(--xpo-violet);
  box-shadow: 0 0 0 2px rgba(93,63,192,.16);
}
.tile__dl {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--xpo-black);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--d-base) var(--ease);
}
.tile:hover .tile__dl { opacity: 1; transform: translateY(0); }
.tile__dl:hover { background: var(--xpo-pink); }

.grid__empty {
  text-align: center;
  padding: 60px 0;
  color: var(--fg-3);
  font-size: 15px;
}

/* ===================================================================
   DRAWER
   =================================================================== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.drawer[aria-hidden="false"] { pointer-events: auto; }
.drawer__bk {
  position: absolute;
  inset: 0;
  background: rgba(14,16,31,.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--d-base) var(--ease);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.drawer[aria-hidden="false"] .drawer__bk { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(440px, 100%);
  height: 100%;
  background: white;
  box-shadow: var(--sh-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--d-slow) var(--ease);
  overflow-y: auto;
}
.drawer[aria-hidden="false"] .drawer__panel { transform: translateX(0); }
.drawer__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border-1);
}
.drawer__hd h3 {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg-1);
}
.drawer__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background: var(--bg-2);
  background-image:
    radial-gradient(circle, var(--ink-200) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: 0 0;
  min-height: 280px;
}
.drawer__preview {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer__preview svg {
  /* applied inline */
}
.drawer__sizes {
  display: flex;
  gap: 8px;
  padding: 14px 28px 0;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: var(--fg-3);
}
.size-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--border-1);
  border-radius: var(--r-pill);
  background: white;
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}
.size-chip:hover { border-color: var(--ink-400); color: var(--fg-1); }
.size-chip.is-on { background: var(--xpo-black); color: white; border-color: var(--xpo-black); }
.drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 28px 28px;
  border-top: 1px solid var(--border-1);
}

/* ===================================================================
   BUTTONS
   =================================================================== */
@property --xpo-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.xpo-btn-primary {
  --xpo-angle: 0deg;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: white;
  background: var(--xpo-black);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  isolation: isolate;
  transition: transform var(--d-base) var(--ease);
}
.xpo-btn-primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--xpo-angle), #35E463, #3588F3, #603AC8, #F51F87, #35E463);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
  transition: --xpo-angle var(--d-slow) linear;
}
.xpo-btn-primary:hover { animation: xpo-orbit 2.4s linear infinite; }
.xpo-btn-primary:active { transform: translateY(1px) scale(.99); }
@keyframes xpo-orbit { to { --xpo-angle: 360deg; } }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-2);
  transition: all var(--d-fast) var(--ease);
}
.ghost-btn:hover {
  color: var(--fg-1);
  background: var(--bg-2);
  border-color: var(--border-1);
}
.ghost-btn--lg {
  padding: 12px 18px;
  font-size: 13px;
  background: var(--bg-2);
  border-color: var(--border-1);
  color: var(--fg-1);
}
.ghost-btn--lg:hover { background: var(--bg-3); }

/* ===================================================================
   NEWSLETTER
   =================================================================== */
.xnews {
  background: #EFF2F7;
  padding: 26px 20px;
}
.xnews iframe {
  border: 0;
  width: 540px;
  max-width: 100%;
  height: 305px;
}
@media (max-width: 600px) {
  .xnews iframe { height: 380px; }
}
@media (max-width: 360px) {
  .xnews iframe { height: 420px; }
}

/* ===================================================================
   FOOTER
   =================================================================== */
.ftr {
  background: var(--xpo-black);
  border-top: 0;
}
.ftr__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.60);
}
.ftr__inner .xpo-highlight { color: var(--xpo-pink); }
@media (max-width: 720px) {
  .ftr__inner { flex-direction: column; }
}

/* ===================================================================
   TOAST
   =================================================================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--xpo-black);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--d-base) var(--ease);
  z-index: 200;
  white-space: nowrap;
}
.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* lift the toast above the selection bar when it's showing */
body.has-selection .toast { bottom: 92px; }

/* ===================================================================
   SELECTION BAR (multi-select → ZIP)
   =================================================================== */
.selbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(40px);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  flex-wrap: wrap;
  justify-content: center;
  background: var(--xpo-black);
  color: white;
  padding: 11px 12px 11px 22px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-base) var(--ease), transform var(--d-base) var(--ease);
}
.selbar.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.selbar__count {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255,255,255,.85);
}
.selbar__count b {
  color: var(--xpo-grad-1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.selbar__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.selbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  border: 0;
  cursor: pointer;
  background: white;
  color: var(--xpo-black);
  transition: all var(--d-fast) var(--ease);
}
.selbar__btn:hover { background: var(--xpo-grad-1); transform: translateY(-1px); }
.selbar__btn:active { transform: translateY(0); }
.selbar__btn svg { color: currentColor; }
.selbar__btn--ghost {
  background: rgba(255,255,255,.12);
  color: white;
}
.selbar__btn--ghost:hover { background: rgba(255,255,255,.22); }

/* Drawer: english name alongside the french title */
.drawer__en {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  margin-left: 8px;
  font-style: normal;
}

/* ===================================================================
   MULTI-STATE (déclinaisons défaut / survol / clic)
   =================================================================== */

/* Toggle switch */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.switch__track {
  width: 38px; height: 22px;
  border-radius: var(--r-pill);
  background: var(--ink-200);
  position: relative;
  flex-shrink: 0;
  transition: background var(--d-base) var(--ease);
}
.switch__thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--sh-sm);
  transition: transform var(--d-base) var(--ease);
}
.switch input:checked + .switch__track { background: var(--xpo-black); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(16px); }
.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--xpo-black);
  outline-offset: 2px;
}
.switch__txt {
  font-size: 13px;
  color: var(--fg-2);
  transition: color var(--d-fast) var(--ease);
}
.switch__txt b { font-weight: 600; color: var(--fg-1); }
.switch input:checked ~ .switch__txt { color: var(--fg-1); }

.ctrl__hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg-3);
}

/* Drawer: preview strip of the 3 states */
.drawer__states {
  display: flex;
  gap: 22px;
  justify-content: center;
  padding: 16px 28px 0;
}
.state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.state-card svg { display: block; }
.state-card__lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-3);
}
