/* ==========================================================================
   Astrabio — design system
   ========================================================================== */

:root {
  --teal: #3FB1A7;
  --cyan: #1F9FBC;
  --teal-deep: #2E8F92;
  --cyan-deep: #136a83;
  --grad: linear-gradient(120deg, #3FB1A7 0%, #2CA6B2 45%, #1F9FBC 100%);
  --grad-soft: linear-gradient(120deg, rgba(63, 177, 167, .12), rgba(31, 159, 188, .12));
  --ink: #0E2A31;
  --ink-2: #13343C;
  --ink-3: #1c4650;
  --slate: #5A6B71;
  --slate-2: #5C6B70;
  --line: #E6ECEE;
  --line-2: #d3dee0;
  --bg: #FFFFFF;
  --bg-soft: #F4F8F9;
  --bg-soft-2: #EAF2F3;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 49, .05), 0 1px 3px rgba(14, 42, 49, .06);
  --shadow: 0 6px 18px -6px rgba(14, 42, 49, .14), 0 2px 6px rgba(14, 42, 49, .06);
  --shadow-lg: 0 24px 48px -18px rgba(14, 42, 49, .22), 0 8px 20px -12px rgba(14, 42, 49, .12);
  --ring: 0 0 0 4px rgba(31, 159, 188, .55);
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --ff-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 74px;
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-display); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--white); color: var(--ink);
  padding: 10px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.skip-link:focus { left: 16px; }

/* -------------------------------------------------------------- layout -- */

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding: clamp(64px, 9vw, 108px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, .82); overflow: hidden; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }

.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 14px;
}
.section--ink .eyebrow { color: var(--teal); }

.section-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.section-sub { margin-top: 16px; color: var(--slate); font-size: clamp(15px, 1.3vw, 17.5px); }
.section--ink .section-sub { color: rgba(255, 255, 255, .7); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

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

/* ---------------------------------------------------------- components -- */

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--line);
  background: var(--white);
}
.pill--grad { background: var(--grad-soft); border-color: rgba(63, 177, 167, .28); color: var(--ink-3); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  font-family: var(--ff-display); font-size: 14.5px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { background: var(--grad); color: var(--white); box-shadow: 0 8px 20px -8px rgba(31, 159, 188, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(31, 159, 188, .8); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--teal); color: var(--cyan-deep); transform: translateY(-2px); }
.btn--lg { padding: 14px 26px; font-size: 15.5px; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display); font-weight: 700; font-size: 15px;
  color: var(--cyan-deep);
}
.arrow-link svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.nav__logo { display: flex; align-items: center; gap: 10px; flex: none; }
.wordmark {
  font-family: var(--ff-display);
  font-size: 23px; font-weight: 800; letter-spacing: -.03em;
  color: var(--ink);
}
.wordmark b {
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
/* Le logo est très pâle : sur fond blanc il a besoin d'un peu d'aide. */
.logo-mark { width: 34px; height: 34px; flex: none; object-fit: contain; }
.nav__logo .logo-mark { filter: saturate(1.25) contrast(1.08); }
.site-footer .logo-mark { filter: brightness(1.12) saturate(1.1); }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav__links > li { position: relative; }

.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; color: var(--ink-3);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--cyan-deep); background: var(--bg-soft); }
.nav__link.active { color: var(--cyan-deep); }
.nav__link .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.has-dropdown:hover .chev { transform: rotate(180deg); }

.nav__spacer { flex: 1; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 340px; padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.dropdown > a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  transition: background .18s var(--ease);
}
.dropdown > a:hover { background: var(--bg-soft); }
.d-ico {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--grad-soft); color: var(--cyan-deep);
}
.d-ico svg { width: 18px; height: 18px; }
.d-t { display: block; font-family: var(--ff-display); font-size: 14px; font-weight: 700; color: var(--ink); }
.d-d { display: block; font-size: 12.5px; color: var(--slate); line-height: 1.4; }
.dropdown__all {
  display: block; margin-top: 6px; padding: 11px 12px;
  border-top: 1px solid var(--line);
  font-family: var(--ff-display); font-size: 13.5px; font-weight: 700;
  color: var(--cyan-deep);
}

.nav__cta { flex: none; }

.nav__burger {
  display: none; flex: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav__burger svg { width: 20px; height: 20px; }
.nav__burger .ico-close { display: none; }
.nav__burger[aria-expanded="true"] .ico-open { display: none; }
.nav__burger[aria-expanded="true"] .ico-close { display: block; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--white);
  padding: 18px var(--gutter) 40px;
  overflow-y: auto;
  display: none;
  flex-direction: column; gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 4px;
  font-family: var(--ff-display); font-size: 17px; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.sub {
  font-family: var(--ff-body); font-size: 14.5px; font-weight: 500;
  color: var(--slate); padding-left: 16px; border-bottom: none;
}
.mobile-nav .btn { margin-top: 20px; }

/* ---------------------------------------------------------------- hero -- */

.hero { position: relative; overflow: hidden; padding: clamp(52px, 7vw, 92px) 0 clamp(64px, 8vw, 104px); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero__blob.b1 { width: 480px; height: 480px; top: -180px; right: -120px; background: rgba(63, 177, 167, .22); }
.hero__blob.b2 { width: 420px; height: 420px; bottom: -220px; left: -140px; background: rgba(31, 159, 188, .16); }

.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}

.hero h1 { font-size: clamp(34px, 5vw, 65px); font-weight: 800; margin: 18px 0 0; letter-spacing: -.035em; }
.hero__lead { margin-top: 20px; font-size: clamp(15.5px, 1.4vw, 18px); color: var(--slate); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px);
  margin-top: 42px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.t-item { display: flex; align-items: baseline; gap: 10px; }
.t-num { font-family: var(--ff-display); font-size: 27px; font-weight: 800; color: var(--ink); }
.t-lbl { font-size: 12.5px; line-height: 1.35; color: var(--slate); }

.hero__visual { position: relative; }
.hero__panel {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / .92;
  border-radius: var(--radius-lg);
  background: var(--grad);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.hero__panel .mol { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__panel .mol circle { animation: pulse 4s var(--ease) infinite; }
.hero__panel .mol circle:nth-child(2n) { animation-delay: -1.3s; }
.hero__panel .mol circle:nth-child(3n) { animation-delay: -2.6s; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.hero__wordmark {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--ff-display);
  font-size: clamp(34px, 4.4vw, 54px); font-weight: 800;
  letter-spacing: -.04em; color: var(--white);
}
.hero__wordmark b { font-weight: 800; color: rgba(255, 255, 255, .62); }
.hero__logo {
  width: clamp(96px, 12vw, 148px); height: auto;
  filter: brightness(0) invert(1) opacity(.92);   /* silhouette blanche sur le dégradé */
}

.hero__float {
  position: absolute;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 17px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero__float.tl { top: 22px; left: -26px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hf-ico {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--grad); color: var(--white);
}
.hf-ico svg { width: 17px; height: 17px; }
.hf-t { display: block; font-family: var(--ff-display); font-size: 13.5px; font-weight: 700; }
.hf-d { display: block; font-size: 12px; color: var(--slate); }

/* ----------------------------------------------------------- page hero -- */

.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 5vw, 62px) 0 clamp(34px, 4vw, 50px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { max-width: 760px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-top: 12px; }
.page-hero p { margin-top: 16px; color: var(--slate); font-size: clamp(15px, 1.3vw, 17px); }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--slate); }
.breadcrumb a:hover { color: var(--cyan-deep); }
.breadcrumb .sep { opacity: .5; }

/* --------------------------------------------------------------- cards -- */

.cat-grid { grid-template-columns: repeat(3, 1fr); }

.cat-card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(63, 177, 167, .4); }
.cat-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--grad-soft); color: var(--cyan-deep);
  margin-bottom: 18px;
}
.cat-ico svg { width: 24px; height: 24px; }
.cat-title { font-size: 18.5px; font-weight: 700; }
.cat-desc { margin-top: 10px; font-size: 14.5px; color: var(--slate); flex: 1; }
.cat-count {
  display: inline-block; align-self: flex-start;
  margin-top: 18px; padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-soft-2);
  font-size: 12px; font-weight: 600; color: var(--ink-3);
}
.cat-more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--ff-display); font-size: 14px; font-weight: 700;
  color: var(--cyan-deep);
}
.cat-more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.cat-card:hover .cat-more svg { transform: translateX(4px); }

.feature {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.f-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad); color: var(--white);
  margin-bottom: 16px;
}
.f-ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { margin-top: 9px; font-size: 14.5px; color: var(--slate); }

.cert-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.c-seal {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-soft); color: var(--cyan-deep);
  margin-bottom: 16px;
}
.c-seal svg { width: 27px; height: 27px; }
.c-code { font-family: var(--ff-display); font-size: 17px; font-weight: 800; color: var(--ink); }
.c-name { margin-top: 6px; font-size: 14px; color: var(--slate); }
.cert-card p { margin-top: 10px; font-size: 14px; color: var(--slate); }

/* --------------------------------------------------------------- stats -- */

.cta-band__blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.cta-band__blob.a { width: 420px; height: 420px; top: -200px; left: -80px; background: var(--teal); }
.cta-band__blob.b { width: 380px; height: 380px; bottom: -200px; right: -60px; background: var(--cyan); }

/* auto-fit : suit le nombre de stats réellement présentes. */
.stats { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.s-num {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 46px); font-weight: 800;
  background: linear-gradient(120deg, #6fd8cd, #61c8e4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.s-lbl { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .7); }

/* ------------------------------------------------------------- catalog -- */

.catalog { padding: clamp(34px, 4vw, 52px) 0 clamp(64px, 8vw, 96px); }
.catalog__grid { display: grid; grid-template-columns: 262px 1fr; gap: clamp(24px, 3vw, 40px); align-items: start; }

.filters { position: sticky; top: calc(var(--header-h) + 20px); }
.filters__title {
  font-family: var(--ff-display); font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 12px;
}
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 9px 12px;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-3);
  text-align: left; cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.cat-btn:hover { background: var(--bg-soft); }
.cat-btn.active { background: var(--grad-soft); border-color: rgba(63, 177, 167, .3); color: var(--cyan-deep); font-weight: 700; }
.cat-btn .n {
  flex: none; padding: 1px 8px; border-radius: 999px;
  background: var(--bg-soft-2); font-size: 11.5px; font-weight: 700; color: var(--slate);
}
.cat-btn.active .n { background: var(--white); color: var(--cyan-deep); }

.filters__card {
  margin-top: 24px; padding: 20px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.filters__card h3 { font-size: 15.5px; font-weight: 700; }
.filters__card p { margin: 8px 0 14px; font-size: 13.5px; color: var(--slate); }

.catalog__main { min-width: 0; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.search {
  position: relative; flex: 1; min-width: 220px;
}
.search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--slate); pointer-events: none;
}
.search input {
  width: 100%; padding: 12px 14px 12px 42px;
  font-family: var(--ff-body); font-size: 14.5px; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search input::placeholder { color: var(--slate); }
.search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(63, 177, 167, .16); }

.sort { display: flex; align-items: center; gap: 8px; flex: none; }
.sort label { font-size: 13.5px; color: var(--slate); }
.sort select {
  padding: 11px 14px;
  font-family: var(--ff-body); font-size: 14px; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-2); border-radius: 999px;
  cursor: pointer;
}
.sort select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(63, 177, 167, .16); }

.results-head {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  align-items: baseline; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.results-count { font-family: var(--ff-display); font-size: 15px; font-weight: 700; }
.results-note { font-size: 12.5px; color: var(--slate); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.p-card {
  display: flex; flex-direction: column;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(63, 177, 167, .4); }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.p-cat {
  padding: 3px 9px; border-radius: 999px;
  background: var(--grad-soft);
  font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--cyan-deep); white-space: nowrap;
}
.p-purity { font-size: 12px; font-weight: 700; color: var(--slate); white-space: nowrap; }
.p-name {
  font-family: var(--ff-display); font-size: 15.5px; font-weight: 700;
  line-height: 1.35; word-break: break-word;
}
.p-alias { margin-top: 3px; font-size: 12.5px; color: var(--slate); }
.p-price {
  margin-top: 12px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  font-family: var(--ff-display); font-size: 16px; font-weight: 800; color: var(--cyan-deep);
}
.p-type {
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-soft-2);
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--slate);
}

.p-forms {
  margin-top: 14px; padding: 12px 14px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.pf-head {
  display: block; margin-bottom: 7px;
  font-family: var(--ff-display); font-size: 10.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}
.p-forms li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 13px; line-height: 1.9;
}
.p-forms li + li { border-top: 1px dashed var(--line-2); }
.pf-dose { color: var(--ink-3); }
.pf-price { font-family: var(--ff-display); font-weight: 700; color: var(--ink); white-space: nowrap; }

.p-cas {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--slate);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
/* Colle le pied de carte en bas quelle que soit la hauteur du bloc formes. */
.p-card > .p-cas { margin-top: auto; }
.p-card > .p-price:last-of-type { margin-bottom: 4px; }
.p-quote { font-family: var(--ff-display); font-size: 12.5px; font-weight: 700; color: var(--cyan-deep); white-space: nowrap; }
.p-quote:hover { text-decoration: underline; }

.p-coa {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: var(--grad-soft);
  border: 1px solid rgba(63, 177, 167, .32); border-radius: 999px;
  font-family: var(--ff-display); font-size: 12px; font-weight: 700;
  color: var(--cyan-deep); cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.p-coa svg { width: 13px; height: 13px; flex: none; }
.p-coa:hover { background: var(--grad); border-color: transparent; color: var(--white); transform: translateY(-1px); }

.empty {
  grid-column: 1 / -1;
  padding: 60px 24px; text-align: center;
  background: var(--bg-soft); border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.empty h3 { font-size: 18px; font-weight: 700; }
.empty p { margin-top: 8px; font-size: 14.5px; color: var(--slate); }

/* --------------------------------------------------------------- prose -- */

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--slate); font-size: 15.5px; }

.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; }
.check-list .ck {
  width: 22px; height: 22px; flex: none; margin-top: 2px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--grad); color: var(--white);
}
.check-list .ck svg { width: 12px; height: 12px; }

.stat-panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-panel > div { background: var(--white); padding: 30px 24px; text-align: center; }
.sp-num {
  font-family: var(--ff-display); font-size: clamp(28px, 3vw, 38px); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sp-lbl { margin-top: 4px; font-size: 13.5px; color: var(--slate); }

.site-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid transparent;
  border-image: var(--grad) 1;
  border-image-slice: 1;
  box-shadow: var(--shadow-sm);
}
.site-card h3 { font-size: 17px; font-weight: 700; }
.site-card p { margin-top: 8px; font-size: 14.5px; color: var(--slate); }

/* --------------------------------------------------------------- coa -- */

.coa { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(30px, 4vw, 56px); align-items: center; }

.coa__figure { margin: 0; }
.coa__frame {
  display: block; position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.coa__frame:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.coa__frame img { width: 100%; height: auto; }
.coa__zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(14, 42, 49, .82);
  backdrop-filter: blur(6px);
  color: var(--white); font-size: 12px; font-weight: 600;
}
.coa__zoom svg { width: 14px; height: 14px; }
.coa__caption { margin-top: 12px; font-size: 12.5px; color: var(--slate); text-align: center; }

.coa__meta { display: flex; flex-direction: column; gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.coa__meta div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; background: var(--white); font-size: 13.5px; }
.coa__meta dt { color: var(--slate); }
.coa__meta dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(14, 42, 49, .88);
  backdrop-filter: blur(8px);
}
/* Flex et non grid : une ligne de grid en `auto` se dimensionne sur le contenu,
   donc le max-height:100% de l'image n'a aucune hauteur de référence et se fait
   ignorer — le certificat débordait alors par le bas sur les écrans larges. */
.lightbox.open { display: flex; align-items: center; justify-content: center; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: var(--white);
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close svg { width: 20px; height: 20px; }

/* --------------------------------------------------------- promo/total -- */

.promo {
  max-width: 340px; margin-top: 28px; margin-left: auto;
  padding: 18px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.promo__label {
  display: block; margin-bottom: 8px;
  font-family: var(--ff-display); font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}
.promo__row { display: flex; gap: 8px; }
.promo__row input {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  font-family: var(--ff-body); font-size: 14px; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-2); border-radius: 999px;
  text-transform: uppercase;
}
.promo__row input::placeholder { text-transform: none; color: var(--slate); }
.promo__row input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(63, 177, 167, .16); }
.promo__row .btn { flex: none; }
.promo__msg { margin-top: 9px; font-size: 12.5px; min-height: 1em; }
.promo__msg.is-ok { color: var(--teal-deep); font-weight: 600; }
.promo__msg.is-err { color: #b4453a; }
.promo__remove {
  padding: 0; margin-left: 6px;
  background: none; border: none;
  font-size: 12px; color: var(--slate); text-decoration: underline; cursor: pointer;
}
.promo__remove:hover { color: var(--ink); }

#cart-total { max-width: 340px; margin-left: auto; margin-top: 20px; }
.tot-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 7px 0; font-size: 14.5px; color: var(--slate);
}
.tot-row--off { color: var(--teal-deep); }
.tot-row--final {
  margin-top: 6px; padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-family: var(--ff-display); font-size: 20px; font-weight: 800; color: var(--ink);
}

/* ------------------------------------------------------------ contact -- */

.tg-panel {
  position: relative; overflow: hidden;
  padding: clamp(30px, 4vw, 46px);
  border-radius: var(--radius-lg);
  background: var(--grad);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.tg-panel h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.tg-panel p { margin-top: 14px; color: rgba(255, 255, 255, .88); font-size: 15.5px; max-width: 60ch; }
.tg-panel .btn { margin-top: 26px; }
.tg-meta { margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }

/* auto-fit : la grille s'adapte au nombre de cartes, sans colonnes fantômes. */
.contact-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 22px; }
.c-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.c-ico {
  width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 11px;
  background: var(--grad-soft); color: var(--cyan-deep);
  margin-bottom: 14px;
}
.c-ico svg { width: 20px; height: 20px; }
.c-label {
  font-family: var(--ff-display); font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}
.c-val { margin-top: 7px; font-size: 14.5px; font-weight: 600; color: var(--ink); word-break: break-word; }
.c-val a:hover { color: var(--cyan-deep); }
.c-sub { margin-top: 5px; font-size: 13px; color: var(--slate); }

/* ---------------------------------------------------------------- cta -- */

.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.cta-band__inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.cta-band p { margin-top: 16px; color: rgba(255, 255, 255, .72); font-size: 16px; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* -------------------------------------------------------------- footer -- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 52px); }
.site-footer .wordmark { color: var(--white); font-size: 21px; }
.site-footer .wordmark b { color: var(--teal); -webkit-text-fill-color: var(--teal); background: none; }
.footer__about { margin-top: 14px; font-size: 14px; line-height: 1.6; max-width: 40ch; }
.footer__social { display: flex; gap: 9px; margin-top: 18px; }
.footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .8);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.footer__social a:hover { background: var(--grad); color: var(--white); transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; }
.footer__col h4 {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); margin-bottom: 15px;
}
.footer__col li + li { margin-top: 9px; }
.footer__col a, .footer__col li { font-size: 14px; }
.footer__col a { transition: color .18s var(--ease); }
.footer__col a:hover { color: var(--teal); }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.55; }
.footer__contact svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--teal); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  align-items: center; justify-content: space-between;
  margin-top: clamp(38px, 5vw, 56px); padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__legal a:hover { color: var(--teal); }

/* ------------------------------------------------------------- reveal -- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- responsive -- */

@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav { justify-content: space-between; }
  .nav__spacer { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; }
  .hero__float.tl { left: auto; right: -10px; top: -14px; }
  .catalog__grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cat-list { flex-direction: row; flex-wrap: wrap; }
  .cat-btn { width: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .cat-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .coa { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .cat-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 18px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .sort { justify-content: space-between; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Panier */
.nav__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text-color, #222);
  margin-left: 1rem;
  text-decoration: none;
}
.nav__cart svg {
  width: 28px;
  height: 28px;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  display: none;
}

.btn--add {
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}
.p-on-request {
  font-size: 0.85rem;
  color: #888;
  margin-left: 0.5rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}
.cart-item .item-name { flex: 2; }
.cart-item .item-controls { display: flex; align-items: center; gap: 0.5rem; }
.cart-item .item-qty { min-width: 2rem; text-align: center; }
.cart-item .item-price { min-width: 6rem; text-align: right; }
.cart-item .remove-btn { background: none; border: none; color: #c0392b; font-size: 1.2rem; cursor: pointer; }
.qty-btn { background: #f0f0f0; border: none; width: 28px; height: 28px; border-radius: 4px; font-size: 1.2rem; cursor: pointer; }

.crypto-options { display: flex; gap: 2rem; margin: 1rem 0; }
.crypto-options label { display: flex; align-items: center; gap: 0.4rem; }
#payment-details code { user-select: all; }
.note { font-size: 0.9rem; color: #999; margin-top: 1rem; }

/* Variants (dropdown) - modern style */
.p-variant {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.p-select-wrapper {
  width: 100%;
}
.p-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 0.85rem;
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6B71' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.2rem;
}
.p-select:hover {
  border-color: var(--teal);
}
.p-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(63, 177, 167, 0.15);
}
.btn--add-variant {
  align-self: flex-start;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

@media (max-width: 620px) {
  /* ... autres règles existantes ... */

  /* Panier : amélioration du responsive */
  .cart-item {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
  }
  .cart-item .item-name {
    flex: 1 1 100%;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
  }
  .cart-item .item-controls {
    order: 2;
    flex: 0 0 auto;
  }
  .cart-item .item-price {
    min-width: auto;
    text-align: left;
    order: 3;
    margin-left: auto;
    font-size: 1rem;
  }
  .cart-item .remove-btn {
    order: 4;
    font-size: 1.2rem;
    padding: 0 0.25rem;
  }

  /* Empêcher tout débordement horizontal */
  .section .container {
    overflow-x: hidden;
  }
  #cart-items {
    overflow-x: hidden;
  }
}