/* Optima Labs — landing Halloween, sur la base de la Vitrine (même grille, mêmes flacons derrière le rebord).
   Changements voulus par le propriétaire : pas d'emblème, fond blanc violacé, titre « OPTIMA LABS » en Jolly Lodger,
   finitions arrondies (encadré, paliers, bouton en pilule).
   Mobile d'abord : un écran exact. Ordinateur : vitrine + titre à gauche, offre + entrée + liens + pied à droite.
   Palette « Violet ton sur ton » : une seule famille de teintes, du lavande à la prune ; ni blanc, ni noir, ni or.
     lavandes : fond #efe9f5, vitrine #e9e1f1, encadré #f3eef8
     encre    : prune très foncée #3a2148 (à 80 % et 70 % pour les textes secondaires)
     accents  : améthyste éteinte #7b5a91 (titre, « 1 offert », « Aucune limite »),
                prune #553468 (contours, surtitres, pictos, bouton)
     filets   : mauve #a38cb6 ; texte du bouton = lavande de la vitrine
   Sept tons au total. Seule la photo garde ses couleurs, désaturée pour se fondre dans la vitrine. */

:root {
  --bg: #efe9f5;                                   /* lavande */
  --panel: #e9e1f1;                                /* vitrine, un ton plus soutenu */
  --card: #f3eef8;                                 /* encadré d'offre, un ton plus clair */
  --ink: #3a2148;                                  /* prune très foncée */
  --ink-2: rgba(58, 33, 72, 0.8);
  --ink-3: rgba(58, 33, 72, 0.7);
  --amethyst: #7b5a91;                             /* améthyste éteinte */
  --plum: #553468;                                 /* prune */
  --rule: #a38cb6;                                 /* mauve */
  --rule-strong: rgba(163, 140, 182, 0.9);
  --rule-soft: rgba(163, 140, 182, 0.5);
  --rule-faint: rgba(163, 140, 182, 0.35);
  --amethyst-fill: linear-gradient(#7b5a91, #7b5a91);   /* aplat : plus aucun dégradé */
  --btn: #553468;                                  /* bouton : la prune des accents */
  --btn-ink: #e9e1f1;                              /* texte : la lavande de la vitrine */

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Anton", "Impact", sans-serif;
  --title: "Jolly Lodger", "Anton", "Impact", sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --radius: 20px;          /* finitions arrondies */
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* --- grille mobile (celle de la Vitrine) --- */
  --m: min(32px, 8.2vw);
  --w: min(440px, calc(100vw - 2 * var(--m)));
  --t: calc((100vh - 667px) / 177);                   /* 0 → 1 entre 667 et 844 px de haut */
  --u: clamp(14px, calc(14px + 8 * var(--t)), 22px);  /* pas vertical */
}

@supports (height: 100svh) {
  :root { --t: calc((100svh - 667px) / 177); }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { background: var(--bg); }
body.v {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.v a { color: inherit; text-decoration: none; }
.v svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- page : un écran exact ---------- */
.v-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto auto;
}

/* ---------- vitrine : flacons posés derrière le rebord ---------- */
.v-hero {
  grid-row: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.v-vitrine {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--u) + 32px + env(safe-area-inset-top)) var(--m) 0;   /* la place du sélecteur de langue */
  background: var(--panel);
  border-bottom: 1px solid var(--rule);          /* le rebord */
}
.v-photo {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: var(--w);
  max-height: calc(var(--w) * 0.3664);
  margin: auto 0 0;                               /* les flacons restent sur le rebord */
}
.v-photo picture { display: contents; }
.v-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  mix-blend-mode: multiply;                       /* le blanc de la photo prend la teinte violacée de la vitrine */
  filter: saturate(0.4);                          /* étiquettes adoucies : la photo se fond dans les lavandes */
}

/* ---------- langue : en haut à droite de la vitrine ---------- */
.v-lang {
  position: absolute;
  z-index: 3;
  top: calc(var(--u) * 0.6 + env(safe-area-inset-top));
  right: calc((100% - var(--w)) / 2);
  display: grid;
  grid-template-columns: 15px auto 10px;
  align-items: center;
  column-gap: 6px;
  height: 32px;
  color: var(--ink);
}
.v-lang__globe { grid-column: 1; grid-row: 1; width: 15px; height: 15px; color: var(--plum); pointer-events: none; }
.v-lang__chev { grid-column: 3; grid-row: 1; width: 10px; height: 10px; color: var(--ink-3); stroke-width: 2; pointer-events: none; }
.v-lang select {
  grid-column: 1 / -1;
  grid-row: 1;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0 16px 0 21px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 12px/32px var(--sans);
  letter-spacing: 0.1em;
  cursor: pointer;
}
.v-lang select:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; border-radius: 8px; }

/* ---------- « Halloween » + titre ---------- */
.v-brand {
  flex: none;
  padding: var(--u) var(--m) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.v-season {
  width: var(--w);
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 14px;
  color: var(--plum);
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.42em;
  text-indent: 0.42em;                             /* recentre le mot malgré l'espacement final */
  text-transform: uppercase;
}
.v-season::before,
.v-season::after { content: ""; height: 1px; background: var(--rule-soft); }
.v-title {
  margin: calc(var(--u) * 0.45) 0 0;
  width: var(--w);
  display: flex;
  justify-content: center;
  font-family: var(--title);
  font-weight: 400;
  line-height: 0.86;
}
.v-title__brand {
  font-size: calc(var(--w) * 0.2085);              /* « OPTIMA LABS » = largeur utile (T écarté compris) */
  letter-spacing: 0.06em;
  margin-right: -0.06em;                           /* pas d'espace après la dernière lettre */
  text-transform: uppercase;
  padding: 0.1em 0;                                /* le dégradé couvre toute la lettre… */
  margin-block: -0.1em;                            /* …sans changer la hauteur de ligne */
  background: var(--amethyst-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.8px var(--plum);
  white-space: nowrap;
}
/* le T et le I de Jolly Lodger se touchent : on écarte le T */
.v-title__kern { letter-spacing: 0.1em; }
.v-tagline {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, calc(var(--w) * 0.0605), 21px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* ---------- contenu ---------- */
.v-main {
  padding: var(--u) var(--m) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.v-main > * { width: var(--w); }

/* ---------- offre : encadré arrondi à double filet ---------- */
.v-offer {
  position: relative;
  margin: 0;
  padding: clamp(12px, calc(12px + 6 * var(--t)), 18px) 16px clamp(12px, calc(12px + 4 * var(--t)), 16px);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px var(--rule-faint);
}
.v-offer__kicker {
  margin: 0;
  color: var(--plum);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.v-deal {
  margin: clamp(4px, calc(4px + 4 * var(--t)), 8px) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: min(calc(var(--w) * 0.2), clamp(50px, calc(50px + 16 * var(--t)), 66px));   /* l'élément le plus visible de la page */
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.v-deal__buy { color: var(--plum); font-size: 0.7em; }   /* l'offre en deux violets : prune + améthyste */
/* le « = » entre deux filets */
.v-deal__eq {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 0.25em;
  width: 3.2em;
  margin: 0.04em 0 0.06em;
  color: var(--plum);
  font-size: 0.42em;
  line-height: 1;
}
.v-deal__eq::before,
.v-deal__eq::after { content: ""; height: 1px; background: var(--rule); }
.v-deal__free {
  background: var(--amethyst-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px var(--plum);
}
.v-offer__scope {
  margin: clamp(8px, calc(8px + 4 * var(--t)), 12px) 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.v-offer__limit {
  margin: calc(clamp(8px, calc(8px + 5 * var(--t)), 13px) - 0.25em) 0 0;
  padding-top: 0.25em;                             /* les accents (LÍMITE) restent dans la zone du dégradé */
  font-family: var(--display);
  font-size: clamp(20px, calc(var(--w) * 0.066), 24px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(#8a0b14, #8a0b14);   /* rouge sang, seule touche rouge de la page */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.6px #5e060d;
}
.v-offer__terms {
  margin: clamp(7px, calc(7px + 4 * var(--t)), 11px) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 2px;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
}
.v-offer__terms li { display: inline-flex; align-items: center; white-space: nowrap; }
/* « Livraison offerte » sur sa propre ligne en mobile */
.v-offer__terms li:last-child { flex-basis: 100%; justify-content: center; }
.v-offer__terms li:nth-child(2)::before {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 7px;
  border-radius: 50%;
  background: var(--rule);
}

/* ---------- entrée : pilule prune, texte lavande ---------- */
.v-enter {
  position: relative;
  min-height: clamp(48px, calc(48px + 6 * var(--t)), 54px);
  margin-top: var(--u);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  background: var(--btn);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.v .v-enter { color: var(--btn-ink); }
.v-enter svg { width: 17px; height: 17px; stroke-width: 1.6; transition: transform 220ms var(--ease); }
.v-enter:hover svg { transform: translateX(3px); }
.v-enter:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }

.v-fine {
  margin: 8px 0 0;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.45;
}

/* ---------- liens de confiance ---------- */
.v-trust { margin-top: var(--u); }
.v-trust ul {
  display: grid;
  grid-template-columns: auto minmax(10px, 1fr) auto minmax(10px, 1fr) auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v-trust ul::before,
.v-trust ul::after {
  content: "";
  grid-row: 1;
  justify-self: center;
  width: 1px;
  background: var(--rule-soft);
}
.v-trust ul::before { grid-column: 2; }
.v-trust ul::after { grid-column: 4; }
.v-trust li { grid-row: 1; display: flex; min-width: 0; }
.v-trust li:nth-child(1) { grid-column: 1; }
.v-trust li:nth-child(2) { grid-column: 3; }
.v-trust li:nth-child(3) { grid-column: 5; }
.v-trust a {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  color: var(--ink);
  font-size: clamp(11px, calc(var(--w) * 0.0353), 11.5px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}
@media (max-width: 959px) {
  .v-trust a { font-size: clamp(10.25px, calc(var(--w) * 0.034), 11.5px); letter-spacing: -0.01em; }
}
.v-trust svg { width: 18px; height: 18px; color: var(--plum); }
.v-trust a:hover { color: var(--amethyst); }               /* survol : améthyste, 4,75:1 sur le fond */
.v-trust a:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ---------- pied ---------- */
.v-footer {
  width: var(--w);
  justify-self: center;
  margin-top: var(--u);
  padding: 11px 0 calc(var(--u) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule-soft);
  text-align: center;
}
.v-footer ul {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v-footer li { display: inline-flex; align-items: center; }
.v-footer li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 8px;
  border-radius: 50%;
  background: var(--rule);
}
.v-footer a {
  display: inline-block;
  padding: 2px 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.v-footer a:hover { color: var(--amethyst); }
@media (max-width: 389px) {
  .v-offer__scope { letter-spacing: 0.26em; text-indent: 0.26em; }
  .v-footer a { letter-spacing: 0.035em; }
  .v-footer li + li::before { margin: 0 7px; }
}
@media (max-width: 374px) {
  .v-offer { padding-left: 12px; padding-right: 12px; }
  .v-offer__scope { letter-spacing: 0.22em; text-indent: 0.22em; }
}
@media (max-width: 340px) {
  .v-offer__scope { letter-spacing: 0.14em; text-indent: 0.14em; }
}
@media (max-width: 374px) {
  .v-offer__terms { font-size: 11px; }
  .v-enter { letter-spacing: 0.17em; }
  .v-footer a { letter-spacing: 0.015em; }
  .v-footer li + li::before { margin: 0 6px; }
}
/* téléphones : on retire les pictogrammes des liens ; les flacons gardent ainsi toute leur largeur */
@media (max-width: 959px) and (max-height: 940px) {
  .v-trust svg { display: none; }
  .v-trust a { padding: 2px 0; }
}
@media (max-width: 959px) and (max-height: 620px) {
  .v-photo { display: none; }
  .v-vitrine { flex: none; padding: 0; height: calc(32px + var(--u)); border-bottom: 0; }   /* ne garde que la place de la langue */
  .v-brand { padding-top: 0; }
  .v-enter { min-height: 44px; }
}

/* téléphone : « 1 ACHETÉ = » sur la première ligne, « 1 OFFERT » en très grand dessous ;
   la taille suit la hauteur d'écran pour que les flacons gardent toute leur largeur */
@media (max-width: 959px) {
  .v-deal {
    flex-flow: row wrap;
    justify-content: center;
    align-items: baseline;
    column-gap: 0.18em;
    font-size: min(calc(var(--w) * 0.2), clamp(44px, calc(44px + 22 * var(--t)), 66px));
  }
  .v-deal__eq { display: inline; width: auto; margin: 0; font-size: 0.7em; }   /* même corps que « 1 ACHETÉ » */
  .v-deal__eq::before,
  .v-deal__eq::after { content: none; }
  .v-deal__free { flex-basis: 100%; text-align: center; margin-top: 0.02em; }
}
/* écrans bas (navigateurs intégrés TikTok/Instagram) : « Aucune limite » reste toujours affiché ;
   on resserre l'offre et ses marges pour qu'il tienne sans défilement */
@media (max-width: 959px) and (max-height: 720px) {
  .v-deal { font-size: min(calc(var(--w) * 0.2), clamp(38px, calc(38px + 22 * var(--t)), 66px)); }
  .v-offer__limit { margin-top: calc(6px - 0.25em); font-size: 19px; }
  .v-offer__scope { margin-top: 6px; }
}

/* ---------- mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .v *, .v *::before, .v *::after { animation: none !important; transition: none !important; }
}

/* ---------- ordinateur : vitrine + titre à gauche, offre à droite ---------- */
@media (min-width: 960px) {
  :root {
    --left: 54vw;
    --wl: min(600px, calc(var(--left) * 0.74), calc((100vh - 300px) * 1.2));
    --col: min(480px, calc(100vw - var(--left) - 112px));
    --ud: clamp(20px, 3.1vh, 28px);
    --sd: clamp(18px, 3.4vh, 34px);
    --u: var(--ud);
  }
  .v-page {
    grid-template-columns: var(--left) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr);
  }
  .v-hero {
    grid-column: 1;
    grid-row: 1 / -1;
    justify-content: center;
    align-items: center;
    background: var(--panel);
    border-right: 1px solid var(--rule-soft);
  }
  .v-vitrine {
    position: static;
    flex: none;
    width: var(--wl);
    padding: 0;
    background: transparent;
  }
  .v-photo {
    flex: none;
    width: calc(var(--wl) * 0.86);
    max-height: none;
    aspect-ratio: 786 / 288;
    margin-top: 0;
  }
  .v-brand { padding: var(--ud) 0 0; }
  .v-season { width: var(--wl); font-size: 13px; }
  .v-title { width: var(--wl); }
  .v-title__brand { font-size: calc(var(--wl) * 0.2085); }
  .v-tagline { margin-top: 10px; font-size: clamp(19px, calc(var(--wl) * 0.04), 24px); }

  .v-main {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    width: var(--col);
    padding: 0;
  }
  .v-main > * { width: 100%; }
  .v-offer { padding: clamp(18px, 3vh, 28px) 28px clamp(18px, 3vh, 26px); }
  .v-offer__kicker { font-size: 12px; letter-spacing: 0.24em; }
  .v-deal { font-size: min(calc(var(--col) * 0.19), clamp(64px, 10vh, 92px)); }
  .v-offer__scope { font-size: 13px; }
  .v-offer__limit { font-size: clamp(22px, 3.2vh, 28px); }
  .v-offer__terms { font-size: 12.5px; }
  .v-enter { min-height: clamp(52px, 6.7vh, 60px); margin-top: var(--sd); font-size: 13px; }
  .v-fine { font-size: 11px; }
  .v-trust { margin-top: var(--sd); }
  .v-trust a { font-size: 13px; padding: 6px 0; gap: 8px; }
  .v-trust svg { width: 19px; height: 19px; }

  .v-footer {
    grid-column: 2;
    grid-row: 3;
    width: var(--col);
    margin-top: var(--sd);
    padding: 16px 0 0;
  }
  .v-footer a { font-size: 11px; letter-spacing: 0.14em; }
  .v-footer li + li::before { margin: 0 14px; }

  .v-lang {
    top: clamp(20px, 3.6vh, 32px);
    right: calc((100vw - var(--left) - var(--col)) / 2);
  }
}
