/* =========================================================
   BeautyDeviceLab — styles.css (ULTRA LUXE “BARBIE”)
   PARTIE 1/2 — TOKENS + BASE + UI SYSTEM
   ========================================================= */

/* -------------------- 1) Design Tokens -------------------- */
:root{
  /* Layout */
  --max: 1120px;
  --max-wide: 1320px;
  --gutter: clamp(16px, 3.8vw, 30px);

  /* Radius */
  --r-xs: 10px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 36px;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --lh: 1.55;

  /* Barbie Luxe palette */
  --bg: #0b0b12;
  --bg2: #0f0f19;

  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);

  --stroke: rgba(255,255,255,.14);
  --stroke2: rgba(255,255,255,.22);

  --txt: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --faint: rgba(255,255,255,.55);

  --pink: #ff4fd8;
  --pink2: #ff86ea;
  --rose: #ff2e7a;
  --pearl: #ffe7f5;
  --gold: #d9b46c;
  --gold2: #f6dca5;

  /* Shadows */
  --shadow-soft: 0 14px 40px rgba(0,0,0,.40);
  --shadow-card: 0 22px 70px rgba(0,0,0,.55);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,.10), 0 18px 60px rgba(255,79,216,.12);
  --shadow-pink: 0 20px 70px rgba(255,79,216,.18);
  --shadow-gold: 0 18px 60px rgba(217,180,108,.14);

  /* Gradients */
  --grad-bg:
    radial-gradient(1200px 700px at 20% -10%, rgba(255,79,216,.22), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(217,180,108,.18), transparent 60%),
    radial-gradient(700px 520px at 70% 95%, rgba(255,46,122,.10), transparent 55%),
    linear-gradient(180deg, #0a0a11 0%, #0b0b12 55%, #0a0a10 100%);

  --grad-card:
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.06) 100%);

  --grad-stroke:
    linear-gradient(90deg, rgba(255,79,216,.45), rgba(217,180,108,.42), rgba(255,255,255,.18));

  --grad-cta:
    linear-gradient(135deg, #ff4fd8 0%, #ff2e7a 40%, #d9b46c 100%);

  --grad-cta2:
    linear-gradient(135deg, rgba(255,79,216,.20) 0%, rgba(217,180,108,.18) 100%);

  /* Effects */
  --blur: 16px;
  --ring: 0 0 0 4px rgba(255,79,216,.22);
  --ring2: 0 0 0 4px rgba(217,180,108,.22);

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: 180ms;

  /* Links */
  --link: #ff86ea;
  --link-hover: #ffe7f5;

  /* Borders */
  --b: 1px solid var(--stroke);
  --b2: 1px solid var(--stroke2);

  /* Rows */
  --row: rgba(255,255,255,.05);
  --row2: rgba(255,255,255,.07);

  /* Form */
  --field: rgba(255,255,255,.06);
  --field2: rgba(255,255,255,.10);

  /* Accent */
  --accent: var(--pink);
  --accent2: var(--gold);
}

/* Optional light mode */
:root[data-theme="light"]{
  --bg: #fbf7fb;
  --bg2: #ffffff;

  --panel: rgba(10,10,16,.05);
  --panel2: rgba(10,10,16,.07);

  --stroke: rgba(10,10,16,.10);
  --stroke2: rgba(10,10,16,.14);

  --txt: rgba(10,10,16,.92);
  --muted: rgba(10,10,16,.70);
  --faint: rgba(10,10,16,.55);

  --row: rgba(10,10,16,.03);
  --row2: rgba(10,10,16,.05);

  --field: rgba(10,10,16,.05);
  --field2: rgba(10,10,16,.08);

  --shadow-soft: 0 14px 40px rgba(10,10,16,.10);
  --shadow-card: 0 24px 70px rgba(10,10,16,.14);

  --grad-bg:
    radial-gradient(1200px 700px at 20% -10%, rgba(255,79,216,.16), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(217,180,108,.15), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fbf7fb 70%, #fff 100%);

  --link: #c71da6;
  --link-hover: #7a0f66;
}

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

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

body{
  margin: 0;
  font-family: var(--font-sans);
  line-height: var(--lh);
  color: var(--txt);
  background: var(--grad-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, video, canvas, svg{
  display: block;
  max-width: 100%;
}

a{
  color: var(--link);
  text-decoration: none;
}
a:hover{ color: var(--link-hover); }

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

::selection{
  background: rgba(255,79,216,.30);
  color: var(--txt);
}

/* Focus ring (keyboard) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; animation: none !important; }
}

/* Anti overflow guard */
pre, code, kbd, samp{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}
pre{
  max-width: 100%;
  overflow: auto;
  padding: 14px;
  border-radius: var(--r-lg);
  border: var(--b);
  background: rgba(255,255,255,.04);
}

/* -------------------- 3) Layout Utilities -------------------- */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--wide{
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.full-bleed{
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.section{ padding: clamp(28px, 5vw, 54px) 0; }
.section--tight{ padding: clamp(20px, 3.8vw, 36px) 0; }

.mt-2{ margin-top: 10px; }
.mt-3{ margin-top: 14px; }
.mt-4{ margin-top: 18px; }
.mt-6{ margin-top: 28px; }
.mb-0{ margin-bottom: 0; }

.muted{ color: var(--muted); }
.faint{ color: var(--faint); }

.max-65ch{ max-width: 65ch; }
.max-72ch{ max-width: 72ch; }

.w-100{ width: 100%; }
.center{ text-align: center; }

.grid{
  display: grid;
  gap: 18px;
}
.grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 920px){
  .grid--3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .grid--2, .grid--3{ grid-template-columns: 1fr; }
}

.cluster{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
@media (max-width: 560px){
  .cluster{ flex-direction: column; align-items: stretch; }
}

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* -------------------- 4) Typography -------------------- */
h1, h2, h3, h4{
  line-height: 1.12;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}
h1{
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 800;
}
h2{
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
}
h3{
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
}
p{ margin: 0 0 14px 0; }

.lede{
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 70ch;
}

.kicker{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: var(--b);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow-glow);
  color: var(--pearl);
  font-weight: 700;
  font-size: 13px;
}
.kicker .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--grad-cta);
  box-shadow: 0 0 0 4px rgba(255,79,216,.16);
}

.h-accent{
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hr{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  border: 0;
  margin: 26px 0;
}

/* -------------------- 5) Surfaces / Cards -------------------- */
.card{
  border-radius: var(--r-2xl);
  border: var(--b);
  background: var(--grad-card);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 2.2vw, 22px);
  position: relative;
  overflow: hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 220px at 20% 0%, rgba(255,79,216,.10), transparent 60%),
    radial-gradient(700px 220px at 80% 0%, rgba(217,180,108,.10), transparent 60%);
  pointer-events:none;
}
.card > *{ position: relative; }

.card--soft{
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-soft);
  border-radius: var(--r-xl);
}

/* -------------------- 6) Buttons / CTAs -------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: 999px;
  padding: 12px 16px;
  min-height: 44px;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  letter-spacing: .01em;

  box-shadow: var(--shadow-glow);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,79,216,.28);
  box-shadow: 0 0 0 4px rgba(255,79,216,.10), var(--shadow-glow);
}

.btn:active{ transform: translateY(0px) scale(.99); }
.btn:focus-visible{ box-shadow: var(--ring); }

.btn--primary{
  background: var(--grad-cta);
  border-color: rgba(255,255,255,.18);
  color: #120915;
  box-shadow: var(--shadow-pink);
  text-shadow: 0 1px 0 rgba(255,255,255,.20);
}
.btn--primary:hover{
  box-shadow: 0 0 0 4px rgba(255,79,216,.12), var(--shadow-pink);
}

.btn--secondary{
  background: linear-gradient(135deg, rgba(255,79,216,.20), rgba(217,180,108,.16));
  border-color: rgba(255,255,255,.16);
  color: var(--pearl);
}

.btn--ghost{
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
}

.btn--sm{ padding: 10px 14px; min-height: 40px; font-size: 14px; }
.btn--lg{ padding: 14px 18px; min-height: 48px; font-size: 15px; }

.btn[disabled],
.btn.is-disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* CTA bar */
.cta-bar{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: space-between;
  padding: 14px;
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(15,15,25,.65);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-card);
}
.cta-bar__text{ min-width: 0; }
.cta-bar__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
@media (max-width: 720px){
  .cta-bar{ flex-direction: column; align-items: stretch; }
  .cta-bar__actions{ justify-content: stretch; }
  .cta-bar__actions .btn{ width: 100%; }
}

/* -------------------- 7) Pills / Badges -------------------- */
.pill,
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.86);
  font-weight: 800;
  font-size: 12px;
}

.pill--hot{
  background: rgba(255,79,216,.12);
  border-color: rgba(255,79,216,.30);
  color: var(--pearl);
  box-shadow: 0 0 0 4px rgba(255,79,216,.06);
}
.pill--gold{
  background: rgba(217,180,108,.12);
  border-color: rgba(217,180,108,.28);
  color: var(--gold2);
  box-shadow: 0 0 0 4px rgba(217,180,108,.06);
}
.pill--ok{
  background: rgba(80,255,170,.10);
  border-color: rgba(80,255,170,.22);
}

/* -------------------- 8) Small helpers -------------------- */
.divider{
  height: 1px;
  background: var(--grad-stroke);
  opacity: .6;
  border: 0;
  margin: 18px 0;
}

/* Anchor offset under sticky header */
[id]{ scroll-margin-top: 92px; }

/* =========================================================
   BeautyDeviceLab — styles.css (ULTRA LUXE “BARBIE”)
   PARTIE 2/2 — HEADER + HERO + COMPONENTS + PATCHES
   À coller SOUS la Partie 1
   ========================================================= */

/* -------------------- Header / Nav -------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(11,11,18,.72);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 62%;
  text-decoration: none;
}

.brand-logo{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;

  border-radius: 14px;
  padding: 6px;

  background: linear-gradient(135deg, rgba(255,79,216,.18), rgba(217,180,108,.12));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-glow);

  display: block;
  object-fit: contain;
  object-position: center;
  overflow: hidden;
}

.brand-text{
  display:flex;
  flex-direction:column;
  min-width: 0;
}

.brand-name{
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub{
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand:hover .brand-logo{
  border-color: rgba(255,79,216,.26);
  box-shadow: 0 0 0 4px rgba(255,79,216,.10), var(--shadow-glow);
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.82);
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-links a:hover{
  border-color: rgba(255,79,216,.28);
  box-shadow: 0 0 0 4px rgba(255,79,216,.10);
  color: var(--pearl);
}

.nav-links a[aria-current="page"]{
  border-color: rgba(255,79,216,.35);
  background: rgba(255,79,216,.10);
  color: var(--pearl);
}

.menu-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow-glow);
  font-weight: 900;
}

/* Mobile dropdown panel (OPEN via body[data-menu="open"]) */
@media (max-width: 860px){
  .brand{ max-width: 78%; }
  .menu-toggle{ display: inline-flex; }

  .nav-links{
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);

    padding: 14px;
    border-radius: var(--r-xl);
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(15,15,25,.92);

    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    box-shadow: var(--shadow-card);

    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    max-height: calc(100vh - 110px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body[data-menu="open"] .nav-links{ display: flex; }

  .nav-links a,
  .nav-links .nav-dd__trigger{
    text-align: center;
    padding: 12px 14px;
    width: 100%;
    justify-content: center;
  }
} /* ✅ IMPORTANT: ferme le media 860px */

@media (max-width: 560px){
  .brand-logo{
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .brand-sub{ display: none; }
}

/* -------------------- Nav Dropdown (desktop hover + mobile tap) -------------------- */
.nav-dd{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Trigger */
.nav-dd__trigger{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.82);
  font-weight: 800;
  font-size: 13px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.nav-dd__trigger::after{
  content: "▾";
  font-size: 12px;
  opacity: .85;
  transform: translateY(1px);
}

.nav-dd__trigger:hover{
  border-color: rgba(255,79,216,.28);
  box-shadow: 0 0 0 4px rgba(255,79,216,.10);
  color: var(--pearl);
}

/* Menu panel */
.nav-dd__menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  min-width: 260px;
  padding: 10px;
  border-radius: var(--r-xl);

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(15,15,25,.92);

  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-card);

  display: none;
  z-index: 1000;

  transform: translateY(-4px);
  opacity: 0;
  pointer-events: none;

  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.nav-dd__menu a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;

  color: rgba(255,255,255,.86);
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 13px;
}

.nav-dd__menu a:hover{
  background: rgba(255,79,216,.08);
  border-color: rgba(255,79,216,.22);
  color: var(--pearl);
}

/* Desktop open */
@media (hover: hover) and (pointer: fine){
  .nav-dd:hover .nav-dd__menu,
  .nav-dd:focus-within .nav-dd__menu{
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Mobile accordion behavior: open only with .is-open (via JS) */
@media (max-width: 860px){
  .nav-dd{ display: block; width: 100%; }
  .nav-dd__trigger{ width: 100%; justify-content: center; }

  .nav-dd__menu{
    position: static;
    margin-top: 10px;
    min-width: 0;

    display: none; /* closed by default */
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-dd.is-open .nav-dd__menu{ display: block; }
}

/* -------------------- Hero (generic) -------------------- */
.hero{
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hero__inner{
  padding: clamp(28px, 5vw, 56px) 0;
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(16px, 3vw, 26px);
  align-items: center;
}
@media (max-width: 900px){
  .hero__grid{ grid-template-columns: 1fr; }
}

.hero__panel{
  border-radius: var(--r-2xl);
  border: var(--b);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 2.4vw, 22px);
  overflow: hidden;
  position: relative;
}

.hero__panel::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 280px at 15% 0%, rgba(255,79,216,.14), transparent 60%),
    radial-gradient(700px 260px at 90% 10%, rgba(217,180,108,.12), transparent 60%);
  pointer-events:none;
}
.hero__panel > *{ position: relative; }

.hero__media{
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

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

.hero__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(255,79,216,.10), transparent 60%),
    radial-gradient(900px 420px at 90% 30%, rgba(217,180,108,.08), transparent 60%);
  pointer-events:none;
}

.hero__actions{
  margin-top: 14px;
}
.hero__actions .btn{ flex: 1; }

.hero__meta{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__meta .pill{ background: rgba(255,255,255,.04); }

/* -------------------- TOC bar (force horizontal) -------------------- */
#toc{
  display:flex;
  align-items:center;
  gap: 18px;
  padding: 12px 14px;
  margin-top: 14px;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);

  background:
    radial-gradient(900px 240px at 12% 0%, rgba(255,79,216,.22), transparent 60%),
    radial-gradient(800px 240px at 92% 10%, rgba(217,180,108,.16), transparent 60%),
    linear-gradient(180deg, rgba(18,18,28,.74) 0%, rgba(11,11,18,.62) 100%);

  box-shadow:
    0 22px 70px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.06);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  overflow-x:auto;
  overflow-y:hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#toc::-webkit-scrollbar{ height:0; }

#toc > *{
  display:flex !important;
  align-items:center;
  gap: 18px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

#toc ul, #toc ol, #toc nav, #toc .toc{
  display:flex !important;
  align-items:center;
  gap: 18px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

#toc a{
  position: relative;
  display:inline-flex !important;
  align-items:center;
  gap: 8px;

  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;

  color: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .01em;

  white-space: nowrap;
  text-decoration:none;

  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

#toc a + a::before{
  content:"";
  position:absolute;
  left: -10px;
  top: 50%;
  width: 1px;
  height: 18px;
  transform: translateY(-50%);
  background: rgba(255,255,255,.16);
  opacity: .75;
}

#toc a:hover{
  color: var(--pearl);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,79,216,.20);
  box-shadow: 0 0 0 4px rgba(255,79,216,.10);
  transform: translateY(-1px);
}

#toc a[aria-current="true"],
#toc a.is-active{
  background: linear-gradient(135deg, rgba(255,79,216,.18), rgba(217,180,108,.14));
  border-color: rgba(255,79,216,.28);
  box-shadow: 0 0 0 4px rgba(255,79,216,.12);
  color: var(--pearl);
}

@media (max-width: 820px){
  #toc{ justify-content:flex-start; }
}

/* -------------------- Product Cards (new + old mapping) -------------------- */
.product-card{
  border-radius: var(--r-2xl);
  border: var(--b);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.product-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(800px 280px at 20% 0%, rgba(255,79,216,.10), transparent 60%),
    radial-gradient(700px 260px at 90% 10%, rgba(217,180,108,.08), transparent 60%);
  pointer-events:none;
}
.product-card > *{ position: relative; }

.product-card__media{
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.product-card__media img{
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
}

.product-card__body{ padding: 16px; }

.product-card__title{
  margin: 0 0 10px 0;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.product-card__badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.product-card__pros{
  margin: 12px 0 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.84);
}
.product-card__pros li{ margin: 6px 0; }

.product-card__actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.product-card__actions .btn{ flex: 1; }
@media (max-width: 560px){
  .product-card__actions{ flex-direction: column; }
  .product-card__actions .btn{ width: 100%; }
}

/* Featured ribbon */
.ribbon{
  position:absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--grad-cta);
  color: #120915;
  font-weight: 950;
  box-shadow: var(--shadow-pink);
  border: 1px solid rgba(255,255,255,.18);
}

/* -------------------- Comparison Table (with scroll) -------------------- */
.table-wrap{
  border-radius: var(--r-2xl);
  border: var(--b);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.table-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
th, td{
  padding: 14px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
th{
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.03);
  position: sticky;
  top: 0;
  z-index: 1;
}
tr:nth-child(odd) td{ background: var(--row); }
tr:nth-child(even) td{ background: var(--row2); }
td strong{ color: var(--pearl); }

.table-note{
  padding: 12px 14px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

/* Table CTA buttons (rectangle premium) */
.table-cta{
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}
.table-cta .btn{
  border-radius: 14px !important;   /* not pill */
  padding: 10px 14px;
  min-height: 40px;
  min-width: 132px;

  font-size: 14px;
  letter-spacing: .01em;

  box-shadow:
    0 14px 34px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.26) !important;

  border: 1px solid rgba(255,255,255,.18) !important;
}
.table-cta .btn--primary{
  background: linear-gradient(135deg,
    rgba(255,79,216,.98) 0%,
    rgba(255,46,122,.92) 45%,
    rgba(217,180,108,.92) 100%
  ) !important;
  color: #120915 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.18);
}
.table-cta .btn--secondary{
  background: linear-gradient(135deg,
    rgba(255,255,255,.10) 0%,
    rgba(255,79,216,.14) 45%,
    rgba(217,180,108,.14) 100%
  ) !important;
  color: rgba(255,255,255,.92) !important;
}
.table-cta .btn--ghost{
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: rgba(255,255,255,.88) !important;
}
.table-cta .btn:hover{
  transform: translateY(-1px);
  filter: saturate(1.05) brightness(1.02);
  box-shadow:
    0 18px 44px rgba(0,0,0,.50),
    inset 0 1px 0 rgba(255,255,255,.30) !important;
}
.table-cta .btn:active{ transform: translateY(0) scale(.99); }
.table-cta .btn::after{
  content: "→";
  font-weight: 900;
  opacity: .9;
  transform: translateY(-.5px);
}

/* -------------------- Notices -------------------- */
.notice{
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow-soft);
  padding: 14px 16px;
}
.notice strong{ color: var(--pearl); }
.notice--tip{
  border-color: rgba(255,79,216,.22);
  background: rgba(255,79,216,.07);
}
.notice--warn{
  border-color: rgba(217,180,108,.24);
  background: rgba(217,180,108,.08);
}
.notice--ok{
  border-color: rgba(80,255,170,.22);
  background: rgba(80,255,170,.06);
}

/* -------------------- FAQ (details/summary) -------------------- */
.faq{
  display:grid;
  gap: 12px;
}
details{
  border-radius: var(--r-2xl);
  border: var(--b);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  color: rgba(255,255,255,.90);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker{ display:none; }
details[open] summary{
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.details-body{
  padding: 14px 16px 16px 16px;
  color: rgba(255,255,255,.84);
}

/* -------------------- Forms -------------------- */
.form{
  display:grid;
  gap: 12px;
}
.field{
  display:grid;
  gap: 8px;
}
label{
  font-weight: 800;
  color: rgba(255,255,255,.86);
}
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: var(--field);
  color: var(--txt);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
textarea{ min-height: 120px; resize: vertical; }
input::placeholder,
textarea::placeholder{ color: rgba(255,255,255,.52); }

input:focus,
textarea:focus,
select:focus{
  outline: none;
  border-color: rgba(255,79,216,.30);
  background: var(--field2);
  box-shadow: var(--ring);
}

/* -------------------- Footer -------------------- */
.site-footer,
.footer{
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(10,10,16,.55);
}
.footer__inner{
  padding: 26px 0;
}
.footer__links,
.footer .footer-links{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__links a,
.footer .footer-links a{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.78);
  font-weight: 800;
  font-size: 13px;
}
.footer__links a:hover,
.footer .footer-links a:hover{
  border-color: rgba(255,79,216,.26);
  background: rgba(255,79,216,.07);
  color: var(--pearl);
}
.footer__small{
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* -------------------- Video Embed -------------------- */
.video-embed{
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-2xl);
  overflow: hidden;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);

  box-shadow: var(--shadow-card);
}
.video-embed::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 260px at 18% 0%, rgba(255,79,216,.14), transparent 60%),
    radial-gradient(800px 240px at 90% 10%, rgba(217,180,108,.10), transparent 60%);
  pointer-events:none;
  z-index: 1;
}
.video-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}
.video-embed.is-vertical{
  aspect-ratio: 9 / 16;
  max-width: 520px;
  margin-inline: auto;
}

/* -------------------- Pro patches (match your current HTML classes) -------------------- */
/* Prevent weird overflow */
.hero *, .product *, .footer *{ min-width: 0; }
.hero, main, .container{ overflow-x: clip; }

/* Your HTML hero mapping: .hero-inner, .hero-grid, .hero-card, .hero-media */
.hero .hero-inner{ padding: clamp(22px, 4.6vw, 54px) 0; }

.hero .hero-grid{
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(14px, 2.8vw, 26px);
  align-items: start;
}
@media (max-width: 980px){
  .hero .hero-grid{ grid-template-columns: 1fr; }
}

.hero .hero-card{
  border-radius: var(--r-2xl);
  border: var(--b);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.hero .hero-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 260px at 10% 0%, rgba(255,79,216,.16), transparent 60%),
    radial-gradient(900px 260px at 90% 10%, rgba(217,180,108,.12), transparent 60%);
  pointer-events:none;
}
.hero .hero-card .pad{ padding: clamp(16px, 2.2vw, 22px); position: relative; }

.hero .hero-highlights{ display: grid; gap: 12px; }

.hero .highlight{
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px;
}
.hero .highlight strong{ display:block; color: var(--pearl); }

.hero .hero-media{
  margin-top: 12px;
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.hero .hero-media img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.hero .hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(700px 360px at 20% 15%, rgba(255,79,216,.10), transparent 60%),
    radial-gradient(700px 360px at 85% 30%, rgba(217,180,108,.08), transparent 60%);
  pointer-events:none;
}

.hero .cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero .cta-row .btn{ flex: 1; }
@media (max-width: 560px){
  .hero .cta-row{ flex-direction: column; }
  .hero .cta-row .btn{ width: 100%; }
}

.hero .luxe-line{
  height: 1px;
  margin-top: clamp(16px, 3vw, 22px);
  background: var(--grad-stroke);
  opacity: .65;
}

/* Your HTML product mapping: .product, .product-head, .product-body, .product-media */
.product{
  border-radius: var(--r-2xl);
  border: var(--b);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.product::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 280px at 18% 0%, rgba(255,79,216,.12), transparent 60%),
    radial-gradient(900px 280px at 90% 10%, rgba(217,180,108,.10), transparent 60%);
  pointer-events:none;
}
.product > *{ position: relative; }

.product .product-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(14px, 2.1vw, 18px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
@media (max-width: 720px){
  .product .product-head{ flex-direction: column; align-items: stretch; }
  .product .product-head .btn{ width: 100%; }
}

.product .product-body{
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(14px, 2.4vw, 22px);
  padding: clamp(14px, 2.2vw, 20px);
  align-items: start;
}
@media (max-width: 980px){
  .product .product-body{ grid-template-columns: 1fr; }
}

.product .product-media{
  display:flex;
  align-items:center;
  justify-content:center;

  border-radius: var(--r-2xl);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: 14px;
}
.product .product-media img{
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  filter: saturate(1.05) contrast(1.05);
  transform: translateZ(0);
}

/* pro/con blocks */
.procon{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 900px){
  .procon{ grid-template-columns: 1fr; }
}
.procon .box{
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}
.procon .box h4{
  margin: 0 0 8px 0;
  font-size: 14px;
}
.procon .box ul{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.84);
}
.procon .box li{ margin: 6px 0; }

/* =========================================================
   BeautyDeviceLab — HTML PATCH PACK (missing classes)
   Paste at VERY END of style.css
   Fixes: card-pad, grid-2, feature, aff-note, sticky-cta,
          footer-brand/logo/text, smallprint, sparkle helper
   ========================================================= */

/* ---------- Card padding helper (used in TOC + internal links) ---------- */
.card-pad{
  padding: clamp(16px, 2.2vw, 22px);
}

/* ---------- Grid alias used in HTML ---------- */
.grid-2{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* ---------- Feature tiles (How to choose + FAQ) ---------- */
.feature{
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow-soft);
  padding: clamp(14px, 2vw, 18px);
  position: relative;
  overflow: hidden;
}
.feature::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(700px 220px at 12% 0%, rgba(255,79,216,.10), transparent 60%),
    radial-gradient(700px 220px at 92% 10%, rgba(217,180,108,.08), transparent 60%);
  pointer-events:none;
}
.feature > *{ position: relative; }
.feature h3{
  margin-bottom: 8px;
}
.feature p{
  margin-bottom: 0;
}

/* ---------- Affiliate micro note (under hero / product cards) ---------- */
.aff-note,
.smallprint{
  color: rgba(255,255,255,.68);
  font-size: 13px;
  line-height: 1.45;
  margin: 12px 0 0 0;
}
:root[data-theme="light"] .aff-note,
:root[data-theme="light"] .smallprint{
  color: rgba(10,10,16,.62);
}

/* ---------- Sparkle helper (if you keep class="sparkle") ---------- */
.sparkle{
  position: relative;
}
.sparkle::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 260px at 15% 0%, rgba(255,79,216,.10), transparent 60%),
    radial-gradient(900px 260px at 90% 10%, rgba(217,180,108,.08), transparent 60%);
  pointer-events:none;
  z-index: 1;
}
.sparkle > *{ position: relative; z-index: 2; }

/* ---------- Sticky CTA (bottom floating bar) ---------- */
.sticky-cta{
  position: sticky;
  bottom: 14px;
  z-index: 50;
  margin: 28px 0 10px 0;
}
.sticky-cta .inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255,255,255,.14);

  background:
    radial-gradient(900px 240px at 16% 0%, rgba(255,79,216,.16), transparent 60%),
    radial-gradient(900px 240px at 90% 10%, rgba(217,180,108,.12), transparent 60%),
    rgba(15,15,25,.78);

  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));

  box-shadow:
    0 26px 90px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.06);
}
.sticky-cta strong{
  color: var(--pearl);
}
@media (max-width: 780px){
  .sticky-cta .inner{
    flex-direction: column;
    align-items: stretch;
  }
  .sticky-cta .cluster{
    justify-content: stretch;
  }
  .sticky-cta .cluster .btn{
    width: 100%;
  }
}

/* ---------- Footer layout (your HTML uses .footer-grid + .footer-brand) ---------- */
.footer-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  padding: 26px 0;
  align-items: start;
}
@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* Footer brand block */
.footer-brand{
  display:flex;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  min-width: 0;
}
.footer-logo{
  width: 56px;
  height: 56px;
  flex: 0 0 56px;

  border-radius: 16px;
  padding: 6px;

  background: linear-gradient(135deg, rgba(255,79,216,.16), rgba(217,180,108,.10));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-glow);

  object-fit: contain;
  object-position: center;
}
.footer-brand-text{
  display:block;
  min-width: 0;
}
.footer .brand-name{
  display:block;
}

/* Make footer links match header vibe even more */
.footer-links a{
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.footer-links a:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(255,79,216,.10);
}

/* ---------- Table scroll polish (if not already) ---------- */
.table-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll::-webkit-scrollbar{ height: 10px; }
.table-scroll::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}
.table-scroll::-webkit-scrollbar-track{
  background: rgba(255,255,255,.04);
}

/* ---------- Light mode tuning for feature tiles + footer ---------- */
:root[data-theme="light"] .feature,
:root[data-theme="light"] .table-wrap,
:root[data-theme="light"] .sticky-cta .inner,
:root[data-theme="light"] .footer{
  border-color: rgba(10,10,16,.10);
}
:root[data-theme="light"] .footer-links a{
  color: rgba(10,10,16,.76);
}

/* =========================================================
   NAV DROPDOWN — easier to click (keeps open longer)
   Paste at VERY END of style.css
   ========================================================= */

/* 1) Make the hover zone bigger (so it doesn't collapse instantly) */
.nav-dd{
  padding-bottom: 10px; /* buffer under trigger */
}

/* 2) Add an invisible “bridge” between trigger and menu (kills the gap) */
.nav-dd__menu::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: -12px;          /* bridge height */
  height: 12px;
}

/* 3) Smoother open/close with delay */
@media (hover: hover) and (pointer: fine){
  .nav-dd__menu{
    display: block;           /* keep in flow for transitions */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;

    transition:
      opacity 180ms var(--ease),
      transform 180ms var(--ease),
      visibility 0s linear 220ms;  /* delay hiding */
  }

  .nav-dd:hover .nav-dd__menu,
  .nav-dd:focus-within .nav-dd__menu{
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;

    transition:
      opacity 180ms var(--ease),
      transform 180ms var(--ease),
      visibility 0s;          /* show instantly */
  }
}

/* =========================================================
   NAV DROPDOWN — click-to-open + anti “ferme trop vite”
   (à coller TOUT EN BAS de styles.css)
   ========================================================= */

/* 1) Assure le bon stacking (menu au-dessus du header) */
.site-header{ z-index: 999; }
.nav-dd__menu{ z-index: 1200; }

/* 2) OUVERTURE via JS: .nav-dd.is-open (desktop + mobile) */
.nav-dd.is-open .nav-dd__menu{
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 3) “Bridge” invisible entre trigger et menu (plus de gap) */
.nav-dd{ padding-bottom: 10px; }
.nav-dd__menu::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

/* 4) Desktop hover: garde une version douce (optionnel mais nice) */
@media (hover: hover) and (pointer: fine){
  /* Au lieu de display:none (qui coupe les transitions), on cache propre */
  .nav-dd__menu{
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;

    transition:
      opacity 180ms var(--ease),
      transform 180ms var(--ease),
      visibility 0s linear 220ms; /* delay pour éviter “snap close” */
  }

  .nav-dd:hover .nav-dd__menu,
  .nav-dd:focus-within .nav-dd__menu{
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition:
      opacity 180ms var(--ease),
      transform 180ms var(--ease),
      visibility 0s;
  }
}

/* 5) Mobile: menu dropdown en accordéon (déjà dans ton CSS, mais on sécurise) */
@media (max-width: 860px){
  .nav-dd__menu{
    position: static;
    margin-top: 10px;
  }
}

/* =========================================================
   FEATURE images — clean editorial crop (fix huge images)
   Colle TOUT EN BAS de styles.css
   ========================================================= */

.feature figure{
  margin: 14px 0 0 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow-soft);
}

/* Force a consistent visual height */
.feature figure img{
  width: 100%;
  aspect-ratio: 16 / 9;  /* look “editorial” */
  height: auto;
  object-fit: cover;      /* crops nicely instead of stretching */
  display: block;
}

/* Prevent sticky CTA from covering bottom content */
main#main-content{
  padding-bottom: 90px;
}

.feature figure img{
  filter: saturate(1.03) contrast(1.04);
}
