/* Lèche — site vitrine
   Palette et rythme repris du panneau de l'extension : mêmes valeurs
   hexadécimales, mêmes rayons. Aucune requête tierce : pas de police
   distante, pas d'analytics. Ce que la page promet, la page le tient. */

:root {
  --surface: #230f1c;
  --surface-raised: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.11);
  --primary: #f43f6e;
  --primary-hover: #ff5580;
  --primary-deep: #bc1948;
  --primary-muted: #6b2338;
  --accent-soft: #ffe2ea;
  --text: #fdeff3;
  --text-muted: #e2c6d1;
  --text-dim: #c9a8b6;
  --text-faint: #a98a97;
  --live: #ff8fae;

  --radius-card: 18px;
  --radius-control: 12px;
  --radius-pill: 999px;

  --sans:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--live);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-soft);
}

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

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-control);
}

/* ---------------------------------------------------------------- en-tête */

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand svg,
.brand img {
  width: 30px;
  height: 30px;
}

.masthead__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}

.masthead__links a:not(.btn) {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
}

.masthead__links a:not(.btn):hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .masthead__links .hide-small {
    display: none;
  }
}

/* ---------------------------------------------------------------- boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn--small {
  padding: 9px 18px;
  font-size: 15px;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* ------------------------------------------------------------------- type */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 18px;
}

h1,
h2,
h3 {
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin: 0;
  font-weight: 800;
}

h1 {
  font-size: clamp(38px, 6vw, 66px);
}

h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 700;
}

.lede {
  font-size: clamp(18px, 2.1vw, 21px);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 32ch;
  margin: 22px 0 0;
}

.section {
  padding-block: clamp(64px, 10vw, 116px);
  border-top: 1px solid var(--border);
}

.section__head {
  max-width: 46ch;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section__head p {
  color: var(--text-dim);
  margin: 18px 0 0;
  font-size: 18px;
}

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

.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 104px) clamp(56px, 9vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -30% 40% 30% -25%;
  background: radial-gradient(circle, rgba(244, 63, 110, 0.2), transparent 62%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__price {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text-faint);
  margin: 18px 0 0;
}

.hero__price strong {
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .lede {
    max-width: 42ch;
  }
}

/* ------------------------------------------- vitrine animée (signature) --- */

.vitrine {
  position: relative;
  height: 460px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.24);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.vitrine__track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px;
  animation: defile 26s linear infinite;
}

.vitrine:hover .vitrine__track,
.vitrine:focus-within .vitrine__track {
  animation-play-state: paused;
}

@keyframes defile {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.article {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.075);
  padding: 10px 10px 13px;
}

.article__visuel {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255, 226, 234, 0.28), rgba(244, 63, 110, 0.14));
}

.article__nom {
  height: 7px;
  width: 74%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  margin-top: 11px;
}

.article__prix {
  height: 7px;
  width: 38%;
  border-radius: 4px;
  background: rgba(244, 63, 110, 0.42);
  margin-top: 7px;
}

/* La pastille, positionnée comme dans l'extension : à droite, à mi-hauteur. */
.vitrine__pastille {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(244, 63, 110, 0.7), 0 8px 28px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
}

.vitrine__pastille svg {
  width: 34px;
  height: 34px;
}

.vitrine__note {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 10px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .vitrine__track {
    animation: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* ------------------------------------------------------------------ étapes */

.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 34px);
  counter-reset: etape;
}

.etape {
  counter-increment: etape;
  padding-top: 22px;
  border-top: 2px solid var(--primary-muted);
}

.etape::before {
  content: counter(etape, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 14px;
}

.etape p {
  color: var(--text-dim);
  margin: 10px 0 0;
  font-size: 16px;
}

/* ---------------------------------------------------------------- captures */

.capture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.capture + .capture {
  margin-top: clamp(56px, 8vw, 92px);
}

.capture--inverse .capture__texte {
  order: 2;
}

.capture__texte p {
  color: var(--text-dim);
  margin: 16px 0 0;
  font-size: 17px;
}

.capture__cadre {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.capture__cadre img {
  width: 100%;
  height: auto;
}

.capture__legende {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  margin: 12px 0 0;
}

@media (max-width: 860px) {
  .capture {
    grid-template-columns: 1fr;
  }
  .capture--inverse .capture__texte {
    order: 0;
  }
}

/* ------------------------------------------------------------------- vidéo */

.video {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.video iframe,
.video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* ---------------------------------------------------------------- réglages */

.reglages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.reglage {
  background: var(--surface);
  padding: 26px 24px;
}

.reglage h3 {
  font-size: 16.5px;
}

.reglage p {
  color: var(--text-faint);
  font-size: 15px;
  margin: 8px 0 0;
  line-height: 1.5;
}

/* ------------------------------------------------------------------- prix */

.prix {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(150deg, rgba(244, 63, 110, 0.13), transparent 58%);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.prix__montant {
  font-size: clamp(46px, 6.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.prix__montant span {
  font-size: 0.42em;
  color: var(--text-dim);
  font-weight: 650;
  letter-spacing: 0;
}

.prix ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 9px;
  color: var(--text-muted);
  font-size: 16px;
}

.prix li::before {
  content: '✓';
  color: var(--primary);
  margin-right: 10px;
  font-weight: 700;
}

@media (max-width: 780px) {
  .prix {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------- FAQ */

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-weight: 650;
  font-size: 17.5px;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 20px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  color: var(--text-dim);
  margin: 0 0 24px;
  max-width: 68ch;
  font-size: 16.5px;
}

/* ------------------------------------------------------------------- pied */

.pied {
  border-top: 1px solid var(--border);
  padding-block: 52px 64px;
  color: var(--text-faint);
  font-size: 14.5px;
}

.pied__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.pied h3 {
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.pied ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.pied a {
  color: var(--text-faint);
  text-decoration: none;
}

.pied a:hover {
  color: var(--text);
}

.pied__bas {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: 13.5px;
}

/* ------------------------------------------------- pages de texte légal --- */

.legal {
  max-width: 74ch;
  padding-block: clamp(48px, 8vw, 88px);
}

.legal h1 {
  font-size: clamp(32px, 5vw, 46px);
}

.legal h2 {
  font-size: 24px;
  margin-top: 48px;
}

.legal h3 {
  margin-top: 32px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 16.5px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 15.5px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.legal th {
  color: var(--text);
  font-weight: 650;
  background: var(--surface-raised);
}

.legal code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-raised);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--accent-soft);
}

.maj {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
}

.nowrap {
  white-space: nowrap;
}

/* ------------------------------------------------------- sélecteur de langue */

.langues {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
}

.lang:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.lang--actif {
  background: var(--primary-muted);
  color: var(--accent-soft);
}

.lang[lang='zh'] {
  font-family: var(--sans);
  font-size: 12px;
}

@media (max-width: 560px) {
  .langues {
    padding: 2px;
  }
  .lang {
    min-width: 26px;
    padding: 0 5px;
    font-size: 11px;
  }
}

/* Le pied de page reprenait la grille du bandeau : accroche à part. */
.pied__accroche {
  margin-top: 14px;
  max-width: 30ch;
}

/* Huit réglages : deux rangées pleines de quatre, plus de cellule vide. */
.reglages {
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
}

/* Le chinois n'a pas d'espaces : on laisse la césure faire son travail et on
   desserre l'interlignage, sinon les titres se tassent. */
:lang(zh) h1,
:lang(zh) h2 {
  line-height: 1.22;
  letter-spacing: 0;
}

:lang(zh) h3 {
  letter-spacing: 0;
}

:lang(zh) body,
:lang(zh) .lede {
  line-height: 1.75;
}

:lang(zh) .eyebrow {
  letter-spacing: 0.08em;
}

:lang(zh) .lede {
  max-width: 22em;
}

/* ------------------------------------------------------- coordonnées au clic */

.contact__btn--texte {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  appearance: none;
  color: var(--live);
  font: inherit;
  line-height: inherit;
  vertical-align: baseline;
  text-align: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.contact__btn--texte:hover {
  color: var(--accent-soft);
}

.pied .contact__btn--texte {
  color: var(--text-faint);
  text-decoration-color: var(--border);
}

.pied .contact__btn--texte:hover {
  color: var(--text);
}

.contact__btn.btn {
  white-space: normal;
  text-align: center;
}

.contact__revele {
  user-select: text;
}
