/* ============================================================
   PeptidLab — finitions visuelles du site
   ------------------------------------------------------------
   Chargée après la feuille principale (/_astro/…css) sur toutes
   les pages. Elle ne change ni les couleurs de la charte ni la
   mise en page : relief des boutons et des cartes, en-tête
   détaché du contenu par une ombre, quadrillage « laboratoire »
   dans les en-têtes de page, typographie et formulaires affinés.
   Pour revenir à l'ancien rendu : retirer la balise <link> vers
   ce fichier (ou vider ce fichier).
   ============================================================ */

:root {
  /* Charte d'origine (tailwind.config) */
  --pl-navy: #0B2A4A;
  --pl-navy-hover: #133E6B;
  --pl-navy-deep: #071D34;
  --pl-ink: #13202E;
  --pl-ink-soft: #3D4B5C;
  --pl-ink-muted: #5E6D7D;
  --pl-line: #DDE3EA;
  --pl-mist: #F4F7FA;
  --pl-stage: #EDF0F3;
  --pl-lab: #0B7A53;
  --pl-lab-soft: #E3F3EC;
  --pl-accent: #1B5FA8;
  --pl-promo: #B42318;

  --pl-ease: cubic-bezier(.2, .7, .2, 1);
  --pl-shadow-xs: 0 1px 2px rgba(11, 42, 74, .05);
  --pl-shadow-md: 0 1px 2px rgba(11, 42, 74, .05), 0 14px 32px -18px rgba(11, 42, 74, .32);
  --pl-shadow-lg: 0 2px 6px rgba(11, 42, 74, .05), 0 26px 50px -24px rgba(11, 42, 74, .38);
}

/* ---------- Base ---------- */
html { scroll-padding-top: 6.5rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
::selection { background: var(--pl-lab-soft); color: var(--pl-navy); }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--pl-navy); }

/* ---------- Typographie ---------- */
.text-display { font-weight: 650; letter-spacing: -.03em; }
.text-title { letter-spacing: -.022em; }
.text-lead { color: var(--pl-ink-soft); }
.tabular, [data-price] { font-variant-numeric: tabular-nums; }

/* Sur-titre : un trait vert devant le libellé. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  vertical-align: middle;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .9;
}

/* ---------- Bandeau d'annonce (haut de page) ---------- */
body > .bg-navy.text-white {
  background: linear-gradient(90deg, var(--pl-navy-deep) 0%, var(--pl-navy) 50%, var(--pl-navy-deep) 100%);
}
body > .bg-navy.text-white svg { color: #8FD8B8; }

/* ---------- En-tête ---------- */
/* Ombre légère et fixe : l'en-tête se détache du contenu qui défile dessous. */
header.sticky { box-shadow: 0 1px 0 rgba(11, 42, 74, .03), 0 10px 26px -22px rgba(11, 42, 74, .45); }
/* Liens du menu : soulignement vert au survol, comme la page active. */
header nav > ul a {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color .15s ease, text-decoration-color .2s ease;
}
header nav > ul a:hover { text-decoration-color: rgba(11, 122, 83, .55); }
#menu-mobile a { transition: color .15s ease, padding-left .2s var(--pl-ease); }
#menu-mobile a:hover { color: var(--pl-accent); padding-left: .25rem; }

/* ---------- Boutons ---------- */
.btn-primary, .btn-secondary, .btn-ghost { border-radius: .625rem; }
.btn-primary {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 1px 2px rgba(7, 29, 52, .25), 0 10px 22px -14px rgba(11, 42, 74, .7);
  transition: background-color .15s ease, box-shadow .2s ease, transform .2s var(--pl-ease);
}
.btn-secondary {
  box-shadow: var(--pl-shadow-xs);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .2s ease, transform .2s var(--pl-ease);
}
.btn-ghost { transition: background-color .15s ease, color .15s ease; }
@media (hover: hover) {
  .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 4px rgba(7, 29, 52, .22), 0 18px 32px -16px rgba(11, 42, 74, .75);
  }
  .btn-secondary:hover:not(:disabled) {
    transform: translateY(-1px);
    background-color: var(--pl-mist);
    box-shadow: var(--pl-shadow-md);
  }
}
.btn-primary:active:not(:disabled), .btn-secondary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: inset 0 1px 2px rgba(7, 29, 52, .2);
}

/* ---------- Formulaires ---------- */
.input { border-radius: .625rem; }
.input:hover:not(:focus):not(:disabled) { border-color: #B9C5D2; }
.input:focus { box-shadow: 0 0 0 4px rgba(11, 42, 74, .10); }
.label { letter-spacing: -.005em; }

/* ---------- En-têtes de page : quadrillage de laboratoire ---------- */
main#contenu > section.bg-mist:first-child {
  position: relative;
  isolation: isolate;
  /* Le halo (::after) déborde à droite : sans ce rognage, la page défile en largeur. */
  overflow: hidden;
  background-image:
    radial-gradient(52rem 26rem at 88% -12%, rgba(27, 95, 168, .10), transparent 62%),
    radial-gradient(40rem 22rem at -6% 112%, rgba(11, 122, 83, .09), transparent 60%);
}
main#contenu > section.bg-mist:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 42, 74, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 42, 74, .055) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 70% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 85% at 70% 30%, #000 20%, transparent 78%);
}

/* Pastille d'accroche (« Peptides de recherche · Pureté ≥ 99 % ») */
.rounded-full.bg-lab-soft { box-shadow: inset 0 0 0 1px rgba(11, 122, 83, .2); }

/* ---------- Garanties (pureté, certificat, expédition, paiement) ---------- */
section[aria-label="Nos garanties"] li > span:first-child {
  background: linear-gradient(150deg, #FFFFFF 0%, var(--pl-mist) 100%);
  color: var(--pl-lab);
  box-shadow: inset 0 0 0 1px var(--pl-line), 0 8px 18px -12px rgba(11, 42, 74, .45);
}

/* ---------- Cartes ---------- */
.rounded-2xl.border-line.bg-white { box-shadow: var(--pl-shadow-xs); }
.stage {
  background-color: var(--pl-stage);
  background-image: radial-gradient(120% 95% at 50% 32%, #FFFFFF 0%, #F2F5F8 52%, #E5EAF0 100%);
}

/* Cartes produit : relief au survol. L'apparition au défilement existante
   ([data-reveal]) est conservée ; seule sa transition est complétée. */
article.group.rounded-xl.border-line {
  transition: opacity .6s ease, transform .3s var(--pl-ease), box-shadow .3s ease, border-color .3s ease;
}
a.group.rounded-2xl.border-line, a.rounded-2xl.border-line.bg-mist {
  transition: transform .3s var(--pl-ease), box-shadow .3s ease, border-color .3s ease;
}
@media (hover: hover) {
  article.group.rounded-xl.border-line:hover,
  a.group.rounded-2xl.border-line:hover {
    transform: translateY(-3px);
    border-color: rgba(11, 42, 74, .2);
    box-shadow: var(--pl-shadow-lg);
  }
  a.rounded-2xl.border-line.bg-mist:hover { transform: translateY(-2px); box-shadow: var(--pl-shadow-md); }
}

/* Étiquettes (Nouveau, Meilleure vente, −20 %) en pastilles. */
.rounded-md.text-white, .rounded.text-white {
  border-radius: 999px;
  letter-spacing: .01em;
  box-shadow: 0 4px 10px -6px rgba(7, 29, 52, .55);
}
.rounded-md.text-white { padding-left: .7rem; padding-right: .7rem; }

/* ---------- Fiche produit : choix du format ---------- */
[data-variant-selector] a {
  transition: border-color .15s ease, background-color .15s ease, box-shadow .2s ease, transform .2s var(--pl-ease);
}
[data-variant-selector] a[aria-current] {
  box-shadow: 0 10px 22px -14px rgba(11, 42, 74, .8);
}
@media (hover: hover) {
  [data-variant-selector] a:not([aria-current]):hover {
    transform: translateY(-1px);
    box-shadow: var(--pl-shadow-md);
  }
}

/* ---------- Questions fréquentes ---------- */
details.group > summary { transition: color .15s ease; border-radius: .375rem; }
details.group > summary:hover { color: var(--pl-accent); }
details.group[open] > summary { color: var(--pl-navy); }
details.group[open] > summary + * { animation: pl-fade-in .25s ease both; }
@keyframes pl-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Articles et guides ---------- */
.prose-pl { line-height: 1.75; }
.prose-pl h2 {
  padding-top: 1.5rem;
  border-top: 1px solid var(--pl-line);
  letter-spacing: -.015em;
}
.prose-pl h2:first-child { padding-top: 0; border-top: 0; }
.prose-pl a { text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(27, 95, 168, .45); }
.prose-pl a:hover { text-decoration-color: currentColor; }
.prose-pl ul > li::marker { color: var(--pl-lab); }
.prose-pl ol > li::marker { color: var(--pl-lab); font-weight: 600; }
.prose-pl strong { color: var(--pl-navy); }
.prose-pl blockquote {
  margin: 1.5rem 0;
  padding: .9rem 1.1rem;
  border-left: 3px solid var(--pl-lab);
  border-radius: 0 .625rem .625rem 0;
  background: var(--pl-mist);
  color: var(--pl-ink-soft);
}
/* Le tableau garde son défilement horizontal sur mobile : les coins sont
   arrondis cellule par cellule plutôt qu'en masquant le débordement. */
.prose-pl table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--pl-line);
  border-radius: .75rem;
}
.prose-pl th, .prose-pl td { border-width: 0 0 1px 0; }
.prose-pl tr:last-child > td { border-bottom-width: 0; }
.prose-pl tr:first-child > :first-child { border-top-left-radius: calc(.75rem - 1px); }
.prose-pl tr:first-child > :last-child { border-top-right-radius: calc(.75rem - 1px); }
.prose-pl tr:last-child > :first-child { border-bottom-left-radius: calc(.75rem - 1px); }
.prose-pl tr:last-child > :last-child { border-bottom-right-radius: calc(.75rem - 1px); }
.prose-pl tbody tr:nth-child(even) > td { background: #FAFBFD; }

/* ---------- Guides : fiche technique, recherche, sécurité, sources ---------- */
.pl-ref { margin-top: 3rem; display: grid; gap: 2.5rem; }
.pl-ref h2 { letter-spacing: -.015em; }
.pl-ref-card {
  border: 1px solid var(--pl-line);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff, var(--pl-mist));
  padding: 1.5rem 1.25rem;
  box-shadow: var(--pl-shadow-xs);
}
@media (min-width: 640px) { .pl-ref-card { padding: 1.75rem 2rem; } }
.pl-sheet { margin-top: 1rem; display: grid; }
.pl-sheet > div {
  display: grid;
  gap: .15rem .9rem;
  padding: .7rem 0;
  border-top: 1px solid var(--pl-line);
}
.pl-sheet > div:first-child { border-top: 0; }
@media (min-width: 640px) { .pl-sheet > div { grid-template-columns: 13rem 1fr; } }
.pl-sheet dt { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--pl-ink-muted); text-transform: uppercase; }
.pl-sheet dd { margin: 0; color: var(--pl-navy); font-weight: 500; font-variant-numeric: tabular-nums; }
.pl-ref-intro { margin-top: .6rem; font-size: .9375rem; color: var(--pl-ink-muted); }
.pl-studies { list-style: none; margin: 1.25rem 0 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--pl-lab-soft); display: grid; gap: 1.1rem; }
.pl-studies > li { position: relative; }
.pl-studies > li::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 6px);
  top: .45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pl-lab);
  box-shadow: 0 0 0 4px #fff;
}
.pl-study-tag { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .35rem; }
.pl-study-tag > span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .1rem .6rem;
  font-size: .75rem;
  font-weight: 600;
  background: var(--pl-mist);
  color: var(--pl-ink-soft);
  border: 1px solid var(--pl-line);
}
.pl-study-tag > .pl-study-year { background: var(--pl-navy); border-color: var(--pl-navy); color: #fff; }
.pl-studies > li > p:last-child { margin: 0; color: var(--pl-ink-soft); line-height: 1.7; }
.pl-ref-note {
  margin-top: 1.25rem;
  padding: .8rem 1rem;
  border-left: 3px solid var(--pl-accent);
  border-radius: 0 .625rem .625rem 0;
  background: var(--pl-mist);
  font-size: .9375rem;
  color: var(--pl-ink-soft);
}
.pl-safety { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.pl-safety > li {
  padding: .85rem 1rem .85rem 2.6rem;
  border: 1px solid #F3D9B1;
  border-radius: .75rem;
  background: #FFF8EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23B54708' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") no-repeat .85rem 1rem;
  color: var(--pl-ink-soft);
  line-height: 1.65;
}
.pl-sources { list-style: decimal; margin: 1rem 0 0; padding-left: 1.4rem; display: grid; gap: .55rem; font-size: .875rem; color: var(--pl-ink-soft); }
.pl-sources > li::marker { color: var(--pl-ink-muted); font-weight: 600; }
.pl-sources a { color: var(--pl-accent); font-weight: 600; text-underline-offset: 3px; }
.pl-ref-date { margin-top: 1rem; font-size: .8125rem; color: var(--pl-ink-muted); }

/* ---------- Comparateur du prix au milligramme ---------- */
.pl-compare { margin: 1.25rem 0 0; overflow-x: auto; border: 1px solid var(--pl-line); border-radius: .875rem; background: #fff; box-shadow: var(--pl-shadow-xs); }
.prose-pl .pl-compare table { margin: 0; border: 0; border-radius: 0; min-width: 40rem; width: 100%; font-size: .9375rem; }
.pl-compare thead th { background: var(--pl-navy); color: #fff; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; text-align: left; padding: .7rem .9rem; }
.pl-compare tbody th, .pl-compare tbody td { padding: .6rem .9rem; border-bottom: 1px solid var(--pl-line); text-align: left; vertical-align: middle; }
.pl-compare tbody th { color: var(--pl-navy); font-weight: 700; background: var(--pl-mist); border-right: 1px solid var(--pl-line); }
.pl-compare tr.pl-group > * { border-top: 2px solid var(--pl-line); }
.prose-pl .pl-compare tbody tr:nth-child(even) > td { background: transparent; }
.pl-compare td:nth-child(n+3), .pl-compare td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-compare td strong { color: var(--pl-navy); }
.pl-best { display: inline-flex; margin-left: .5rem; border-radius: 999px; padding: .1rem .55rem; font-size: .6875rem; font-weight: 700; letter-spacing: .02em; background: var(--pl-lab-soft); color: var(--pl-lab); vertical-align: middle; }

/* ---------- Guides : veille mensuelle de la recherche ---------- */
.pl-watch-period { margin-top: .35rem; font-size: .9375rem; color: var(--pl-ink-muted); }
.pl-watch-stats { margin: 1.25rem 0 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .pl-watch-stats { grid-template-columns: repeat(4, 1fr); } }
.pl-watch-stats > div {
  display: flex;
  flex-direction: column;
  padding: .9rem 1rem;
  border: 1px solid var(--pl-line);
  border-radius: .875rem;
  background: linear-gradient(180deg, #fff, var(--pl-mist));
}
.pl-watch-stats dd { order: -1; margin: 0; font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: var(--pl-navy); font-variant-numeric: tabular-nums; }
.pl-watch-stats dt { margin-top: .2rem; font-size: .8125rem; font-weight: 600; color: var(--pl-ink-muted); }
.pl-watch-brief {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--pl-lab);
  border-radius: 0 .875rem .875rem 0;
  background: var(--pl-lab-soft);
}
.prose-pl .pl-watch-brief-title { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pl-lab); }
.prose-pl .pl-watch-brief ul { margin: .5rem 0 0; }
.prose-pl .pl-watch-brief li { margin: .35rem 0; color: var(--pl-ink); }
.prose-pl .pl-watch h3 { margin-top: 2.25rem; }
.prose-pl .pl-watch-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .625rem; }
.prose-pl .pl-watch-list > li { margin: 0; padding: 1.1rem 1.1rem 1rem; border: 1px solid var(--pl-line); border-radius: 1rem; background: #fff; box-shadow: var(--pl-shadow-xs); }
@media (min-width: 640px) { .prose-pl .pl-watch-list > li { padding: 1.35rem 1.5rem 1.2rem; } }
.prose-pl .pl-watch-item h4 { margin: .5rem 0 0; font-size: 1.0625rem; line-height: 1.4; font-weight: 600; color: var(--pl-navy); }
.prose-pl .pl-watch-item > p { margin: .5rem 0 0; color: var(--pl-ink-soft); line-height: 1.7; }
.prose-pl .pl-watch-item > .pl-study-tag { margin: 0; }
.prose-pl .pl-watch-item .pl-study-tag time { font-variant-numeric: tabular-nums; }
.prose-pl .pl-watch-links { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; margin-top: .75rem; font-size: .875rem; }
.pl-watch-links a { font-weight: 600; color: var(--pl-accent); }
.pl-watch-links svg { margin-left: -.85rem; color: var(--pl-accent); }
.pl-watch-old { margin-top: 1rem; border: 1px solid var(--pl-line); border-radius: 1rem; padding: .9rem 1.1rem; background: var(--pl-mist); }
.pl-watch-old > summary { cursor: pointer; font-weight: 600; color: var(--pl-navy); }

/* ---------- Outils : calculateur de reconstitution (calculateur.js) ---------- */
.pl-calc { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) {
  .pl-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem; align-items: start; }
  .pl-calc-result { position: sticky; top: 6rem; }
}
.pl-calc-form { border: 1px solid var(--pl-line); border-radius: 1.25rem; background: #fff; box-shadow: var(--pl-shadow-md); padding: .25rem 1.25rem 1rem; }
@media (min-width: 640px) { .pl-calc-form { padding: .5rem 1.75rem 1.25rem; } }
.pl-calc-step { min-width: 0; margin: 0; padding: 1.25rem 0; border: 0; border-top: 1px solid var(--pl-line); }
.pl-calc-step:first-child { border-top: 0; }
.pl-calc-step legend { float: left; width: 100%; display: flex; align-items: center; gap: .6rem; padding: 0; font-size: 1.0625rem; font-weight: 700; color: var(--pl-navy); }
.pl-calc-step legend + * { clear: both; }
.pl-calc-num { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--pl-navy); color: #fff; font-size: .8125rem; font-weight: 700; }
.pl-calc-field { display: grid; gap: .4rem; margin-top: .9rem; }
.pl-calc-label { font-size: .875rem; font-weight: 600; color: var(--pl-ink-soft); }
.pl-calc-inline { display: flex; align-items: stretch; gap: .5rem; }
.pl-calc-inline .input, .pl-calc-stepper .input { flex: 1; min-width: 0; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-calc-seg { display: inline-flex; flex-shrink: 0; padding: .25rem; border: 1px solid var(--pl-line); border-radius: .75rem; background: var(--pl-mist); }
.pl-calc-seg[hidden] { display: none; }
.pl-calc-seg label { position: relative; display: flex; }
.pl-calc-seg input, .pl-calc-syringes input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pl-calc-seg span { display: flex; align-items: center; padding: 0 .9rem; border-radius: .55rem; font-size: .875rem; font-weight: 600; color: var(--pl-ink-soft); transition: background-color .2s ease, color .2s ease; }
.pl-calc-seg input:checked + span { background: var(--pl-navy); color: #fff; box-shadow: var(--pl-shadow-xs); }
.pl-calc-seg input:focus-visible + span, .pl-calc-syringes input:focus-visible + span { outline: 2px solid var(--pl-accent); outline-offset: 2px; }
.pl-calc-unit { display: flex; align-items: center; padding: 0 .75rem; font-size: .875rem; font-weight: 600; color: var(--pl-ink-muted); }
.pl-calc-unit[hidden] { display: none; }
.pl-calc-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.pl-calc-chips[hidden] { display: none; }
.pl-calc-chips button { padding: .4rem .85rem; border: 1px solid var(--pl-line); border-radius: 999px; background: #fff; font-size: .875rem; font-weight: 600; color: var(--pl-ink-soft); font-variant-numeric: tabular-nums; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.pl-calc-chips button:hover { border-color: var(--pl-navy); color: var(--pl-navy); }
.pl-calc-chips button[aria-pressed="true"] { border-color: var(--pl-lab); background: var(--pl-lab-soft); color: var(--pl-lab); }
.pl-calc-stepper { display: flex; align-items: stretch; overflow: hidden; border: 1px solid var(--pl-line); border-radius: .75rem; background: #fff; }
.pl-calc-stepper:focus-within { border-color: var(--pl-accent); box-shadow: 0 0 0 3px rgba(27, 95, 168, .15); }
.pl-calc-stepper .input { border: 0; border-radius: 0; text-align: center; box-shadow: none; outline: none; }
.pl-calc-stepper button { width: 3rem; flex-shrink: 0; background: var(--pl-mist); font-size: 1.25rem; font-weight: 600; color: var(--pl-navy); transition: background-color .2s ease; }
.pl-calc-stepper button:hover { background: var(--pl-stage); }
.pl-calc-syringes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .9rem; }
.pl-calc-syringes label { position: relative; display: flex; }
.pl-calc-syringes span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .7rem .4rem; border: 1px solid var(--pl-line); border-radius: .875rem; background: #fff; text-align: center; transition: box-shadow .2s ease, background-color .2s ease; }
.pl-calc-syringes b { font-size: 1rem; color: var(--pl-navy); font-variant-numeric: tabular-nums; }
.pl-calc-syringes small { font-size: .75rem; color: var(--pl-ink-muted); }
.pl-calc-syringes input:checked + span { background: var(--pl-mist); box-shadow: inset 0 0 0 2px var(--pl-navy); }
.pl-calc-hint { margin: .6rem 0 0; font-size: .8125rem; line-height: 1.55; color: var(--pl-ink-muted); }
.pl-calc-hint[hidden] { display: none; }
.pl-calc-hint a, .pl-calc-pen a { font-weight: 600; color: var(--pl-accent); text-underline-offset: 3px; }
.pl-calc-pen { margin: .25rem 0 0; padding: .75rem 1rem; border-radius: .75rem; background: var(--pl-mist); font-size: .8125rem; color: var(--pl-ink-soft); }

.pl-calc-result {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border-radius: 1.25rem;
  color: #fff;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(27, 95, 168, .45), transparent 60%),
    radial-gradient(30rem 18rem at 0% 100%, rgba(11, 122, 83, .4), transparent 60%),
    var(--pl-navy-deep);
  box-shadow: var(--pl-shadow-lg);
}
@media (min-width: 640px) { .pl-calc-result { padding: 1.75rem; } }
.pl-calc-result-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pl-calc-eyebrow { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8FD8B8; }
.pl-calc-live { display: inline-flex; align-items: center; gap: .45rem; font-size: .75rem; color: rgba(255, 255, 255, .7); }
.pl-calc-live i { width: .5rem; height: .5rem; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .2); }
.pl-calc-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; margin: .75rem 0 0; }
.pl-calc-big b { font-size: clamp(3rem, 9vw, 4.5rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, #8FD8B8, #8DB8E8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-calc-big span { font-size: 1.125rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.pl-calc-sub { min-height: 1.5rem; margin: .35rem 0 0; font-size: 1rem; color: rgba(255, 255, 255, .75); }
.pl-calc-syringe { margin-top: 1rem; }
.pl-calc-syringe svg { display: block; width: 100%; height: auto; overflow: hidden; }
.pl-needle { stroke: rgba(255, 255, 255, .55); stroke-width: 3; stroke-linecap: round; }
.pl-hub, .pl-flange { fill: rgba(255, 255, 255, .4); }
.pl-barrel { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .6); stroke-width: 2; }
.pl-liquid { fill: #3DDC97; opacity: .5; transform: scaleX(0); transform-box: fill-box; transform-origin: left center; transition: transform .45s var(--pl-ease), fill .3s ease; }
.pl-tick { stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; }
.pl-tick-major { stroke: #fff; stroke-width: 2; }
.pl-tick-label { fill: rgba(255, 255, 255, .75); font-size: 15px; font-weight: 600; text-anchor: middle; }
.pl-plunger, .pl-marker { transition: transform .45s var(--pl-ease), opacity .3s ease; }
.pl-stopper { fill: var(--pl-navy); stroke: #8DB8E8; stroke-width: 1.5; }
.pl-rod { fill: rgba(255, 255, 255, .28); }
.pl-marker { opacity: 0; }
.pl-marker path, .pl-marker rect { fill: #fff; }
.pl-marker text { fill: var(--pl-navy); font-size: 17px; font-weight: 700; text-anchor: middle; }
@media (max-width: 639px) {
  .pl-tick-label { font-size: 24px; }
  .pl-marker text { font-size: 22px; }
}
.pl-calc-syringe.is-over .pl-liquid { fill: #F97066; }
.pl-calc-syringe.is-over .pl-marker path, .pl-calc-syringe.is-over .pl-marker rect { fill: #FECDCA; }
.pl-calc-syringe-caption { margin: .35rem 0 0; text-align: center; font-size: .75rem; color: rgba(255, 255, 255, .6); }
.pl-calc-range { display: grid; gap: .35rem; margin-top: .75rem; font-size: .75rem; color: rgba(255, 255, 255, .7); }
.pl-calc-range input { width: 100%; accent-color: #3DDC97; cursor: grab; }
.pl-calc-range input:disabled { opacity: .35; cursor: not-allowed; }
.pl-calc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .5rem; margin: 1.25rem 0 0; }
.pl-calc-facts > div { padding: .75rem .85rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: .875rem; background: rgba(255, 255, 255, .07); }
.pl-calc-facts dt { font-size: .75rem; font-weight: 600; color: rgba(255, 255, 255, .65); }
.pl-calc-facts dd { margin: .2rem 0 0; font-size: 1rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.pl-calc-herolink { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-weight: 600; color: var(--pl-accent); text-decoration: none; }
.pl-calc-herolink:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pl-calc-video { display: grid; gap: 1.5rem; align-items: center; margin-bottom: 4rem; scroll-margin-top: 6rem; }
@media (min-width: 1024px) { .pl-calc-video { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; } }
.pl-calc-video-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--pl-line); border-radius: 1rem; background: #071D34; box-shadow: var(--pl-shadow-md); }
.pl-calc-components { margin: .75rem 0 0; font-size: .8125rem; color: rgba(255, 255, 255, .8); }
.pl-calc-components[hidden] { display: none; }
.pl-calc-note { margin-top: 1rem; padding: .75rem .9rem; border: 1px solid rgba(61, 220, 151, .35); border-radius: .75rem; background: rgba(61, 220, 151, .12); font-size: .875rem; line-height: 1.55; color: #E6FFF4; }
.pl-calc-note:empty { display: none; }
.pl-calc-note[data-state="warning"] { border-color: rgba(253, 176, 34, .45); background: rgba(253, 176, 34, .14); color: #FFF4DC; }
.pl-calc-suggest { display: block; margin-top: .45rem; }
.pl-calc-suggest button { margin-left: .35rem; padding: .2rem .65rem; border-radius: 999px; background: #fff; font-size: .8125rem; font-weight: 700; color: var(--pl-navy); }
.pl-calc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.pl-calc-actions button { padding: .55rem .9rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: .65rem; background: rgba(255, 255, 255, .06); font-size: .8125rem; font-weight: 600; color: #fff; transition: background-color .2s ease; }
.pl-calc-actions button:hover { background: rgba(255, 255, 255, .14); }
.pl-calc-actions button:first-child { border-color: #fff; background: #fff; color: var(--pl-navy); }
.pl-calc-toast { position: absolute; left: 50%; bottom: 1rem; margin: 0; padding: .45rem .9rem; border-radius: 999px; background: #fff; font-size: .8125rem; font-weight: 700; color: var(--pl-navy); opacity: 0; pointer-events: none; transform: translate(-50%, 1rem); transition: opacity .25s ease, transform .25s var(--pl-ease); }
.pl-calc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.pl-calc-bar { position: fixed; right: .75rem; bottom: .75rem; z-index: 45; display: flex; align-items: center; gap: .4rem; max-width: calc(100% - 9rem); padding: .6rem 1rem; border-radius: 999px; background: var(--pl-navy-deep); font-size: .875rem; color: #fff; text-decoration: none; box-shadow: var(--pl-shadow-lg); }
.pl-calc-bar b { font-size: 1.125rem; color: #8FD8B8; }
.pl-calc-bar[hidden] { display: none; }
@media (min-width: 1024px) { .pl-calc-bar { display: none !important; } }

.pl-calc-table-wrap { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .pl-calc-table-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 3rem; } }
.pl-calc-table { overflow-x: auto; border: 1px solid var(--pl-line); border-radius: .875rem; background: #fff; box-shadow: var(--pl-shadow-xs); }
.pl-calc-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.pl-calc-table thead th { padding: .7rem .9rem; background: var(--pl-navy); text-align: left; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.pl-calc-table td { padding: .55rem .9rem; border-top: 1px solid var(--pl-line); color: var(--pl-ink-soft); }
.pl-calc-table tr[data-calc-row] { cursor: pointer; }
.pl-calc-table tr[data-calc-row]:hover td { background: var(--pl-mist); }
.pl-calc-table td button { min-width: 2.5rem; text-align: left; font-weight: 700; color: var(--pl-navy); }
.pl-calc-table tr.is-active td { background: var(--pl-lab-soft); }
.pl-calc-table tr.is-active td button { color: var(--pl-lab); }
.pl-calc-empty { padding: 1.5rem !important; text-align: center; color: var(--pl-ink-muted) !important; }
.pl-calc-h2 { margin-top: 4rem; }
.pl-calc-steps { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .pl-calc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl-calc-steps li { padding: 1.25rem; border: 1px solid var(--pl-line); border-radius: 1rem; background: #fff; }
.pl-calc-steps h3 { margin: .75rem 0 0; font-size: 1.0625rem; font-weight: 700; color: var(--pl-navy); }
.pl-calc-steps p { margin: .35rem 0 0; font-size: .9375rem; color: var(--pl-ink-soft); }
.pl-calc-steps .pl-calc-example { display: inline-block; margin-top: .75rem; padding: .35rem .6rem; border-radius: .5rem; background: var(--pl-lab-soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8125rem; color: var(--pl-lab); }
.pl-calc-more { display: grid; gap: 2.5rem; margin-top: 4rem; }
@media (min-width: 1024px) { .pl-calc-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-calc-tips { display: grid; gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.pl-calc-tips li { position: relative; padding-left: 1.4rem; line-height: 1.65; color: var(--pl-ink-soft); }
.pl-calc-tips li::before { content: ""; position: absolute; left: 0; top: .6rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--pl-lab); }
.pl-calc-disclaimer { margin: 3rem 0 0; padding: 1rem 1.1rem; border-left: 3px solid var(--pl-accent); border-radius: 0 .75rem .75rem 0; background: #fff; font-size: .875rem; line-height: 1.6; color: var(--pl-ink-muted); }
@media (prefers-reduced-motion: no-preference) {
  .pl-calc-live i { animation: pl-live 2s ease-in-out infinite; }
}
@keyframes pl-live { 50% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } }
@media (prefers-reduced-motion: reduce) {
  .pl-liquid, .pl-plunger, .pl-marker, .pl-calc-toast { transition: none; }
}

/* Version compacte (page /protocoles/) : deux colonnes seulement si le panneau de la fiche est assez large. */
[data-protocol-calculator-host] { container-type: inline-size; }
.pl-calc.pl-calc--compact { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.pl-calc.pl-calc--compact .pl-calc-result { position: static; }
@container (min-width: 50rem) {
  .pl-calc.pl-calc--compact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
  .pl-calc.pl-calc--compact .pl-calc-result { position: sticky; top: 6rem; }
}
.pl-calc-compact-head, .pl-calc-compact-intro, .pl-calc-penpanel, .pl-calc--compact .pl-calc-disclaimer { grid-column: 1 / -1; }
.pl-calc-compact-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1.5rem; }
.pl-calc-full { font-size: .875rem; font-weight: 600; color: var(--pl-accent); text-underline-offset: 3px; }
.pl-calc-full:hover { text-decoration: underline; }
.pl-calc-compact-intro { margin: 0; line-height: 1.6; color: var(--pl-ink-soft); }
.pl-calc-proto { margin-top: .9rem; }
.pl-calc-proto[hidden] { display: none; }
.pl-calc-penpanel { display: none; padding: 1.5rem; border: 1px solid var(--pl-line); border-radius: 1.25rem; background: var(--pl-mist); }
.pl-calc.is-pen > .pl-calc-form, .pl-calc.is-pen > .pl-calc-result { display: none; }
.pl-calc.is-pen > .pl-calc-penpanel { display: block; }
.pl-calc--compact .pl-calc-disclaimer { margin-top: .25rem; }

/* ---------- En-tête : menu resserré entre 1024 et 1279 px ----------
   Les libellés bulgares, néerlandais, espagnols et polonais sont plus longs :
   sans ce resserrement, le menu dépasse la largeur de l'écran. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  header nav.max-w-page { gap: 1rem; }
  header nav.max-w-page > ul { gap: .75rem; }
  header nav.max-w-page > ul a { font-size: .875rem; }
}

/* ---------- Fiche produit : certificat sous le prix, barre d'achat sur mobile ---------- */
.pl-coa-link { display: block; width: fit-content; margin-top: .75rem; color: var(--pl-lab); font-size: .875rem; font-weight: 600; line-height: 1.4; text-decoration: underline; text-decoration-color: rgba(11, 122, 83, .35); text-underline-offset: 3px; }
.pl-coa-link:hover { text-decoration-color: currentColor; }
.pl-coa-link svg { display: inline-block; margin-right: .35rem; vertical-align: -3px; }
/* La barre d'achat reste en bas de l'écran tant que les boutons ne sont pas visibles :
   le pied de page garde la place pour ne pas être caché dessous. */
@media (max-width: 1023.98px) {
  body:has([data-sticky-buy]) footer.bg-navy-deep { padding-bottom: 4.75rem; }
  [data-sticky-buy] { padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 24px -18px rgba(11, 42, 74, .45); }
}

/* ---------- Jeu concours (/jeu-concours/, concours.js ; lien d'en-tête : boost.js) ---------- */
.pl-contest { display: grid; gap: 3.5rem; }
.pl-contest-top { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) { .pl-contest-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.pl-contest-prize { position: relative; overflow: hidden; display: grid; gap: 1.1rem; padding: 1.75rem; border-radius: 1.25rem; color: #fff;
  background: radial-gradient(28rem 16rem at 100% 0%, rgba(212, 175, 55, .28), transparent 60%), linear-gradient(140deg, var(--pl-navy-deep), var(--pl-navy) 60%, #1B4A7A); box-shadow: var(--pl-shadow-lg); }
.pl-contest-k { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F2C94C; }
.pl-contest-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.pl-contest-img { width: 132px; height: 132px; object-fit: cover; border-radius: 1rem; background: #fff; }
.pl-contest-giftbox { display: inline-grid; place-items: center; flex: none; border-radius: 1rem; color: #7A5A00; background: linear-gradient(140deg, #F7DC7A, #D4AF37); }
.pl-contest-giftbox svg { width: 55%; height: 55%; }
.pl-contest-giftbox--big { width: 96px; height: 96px; }
.pl-contest-name { margin: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.pl-contest-variant { margin: .3rem 0 0; color: rgba(255, 255, 255, .85); }
.pl-contest-note { margin: .45rem 0 0; font-size: .875rem; color: rgba(255, 255, 255, .75); }
.pl-contest-see { display: inline-block; margin-top: .6rem; color: #F2C94C; font-size: .875rem; font-weight: 600; text-decoration: none; }
.pl-contest-see:hover { text-decoration: underline; }
.pl-contest-dates { margin: 0; font-size: .9375rem; color: rgba(255, 255, 255, .8); }
.pl-contest-count { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .6rem; padding: .75rem 1rem; border-radius: .875rem; background: rgba(255, 255, 255, .1); font-size: .9375rem; }
.pl-contest-count strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pl-contest-closed { margin: 0; font-size: 1.125rem; font-weight: 600; }
.pl-contest-form { padding: 1.75rem; border: 1px solid var(--pl-line); border-radius: 1.25rem; background: #fff; box-shadow: var(--pl-shadow-md); scroll-margin-top: 6rem; }
.pl-contest-lead { margin: .4rem 0 1.25rem; color: var(--pl-ink-soft); }
.pl-contest-fields { display: grid; gap: .9rem; }
.pl-contest-pair { display: grid; gap: .9rem; }
@media (min-width: 480px) { .pl-contest-pair { grid-template-columns: 1fr 1fr; } }
.pl-contest-field { display: grid; gap: .35rem; }
.pl-contest-hint { font-size: .8125rem; color: var(--pl-ink-muted); }
.pl-contest-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .9375rem; color: var(--pl-ink-soft); line-height: 1.45; cursor: pointer; }
.pl-contest-check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--pl-navy); }
.pl-contest-check a { color: var(--pl-accent); }
.pl-contest-forgot { margin: -.4rem 0 0; font-size: .8125rem; }
.pl-contest-forgot a { color: var(--pl-accent); }
.pl-contest-msg { margin: 0; }
.pl-contest-submit { width: 100%; justify-content: center; padding-top: .9rem; padding-bottom: .9rem; font-size: 1rem; }
.pl-contest-submit:disabled { opacity: .65; cursor: progress; }
.pl-contest-switch { margin: 0; text-align: center; font-size: .875rem; color: var(--pl-ink-muted); }
.pl-contest-switch button { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--pl-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pl-contest-in { display: grid; justify-items: start; gap: .6rem; }
.pl-contest-in p { margin: 0; color: var(--pl-ink-soft); }
.pl-contest-in-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; background: var(--pl-lab-soft); color: var(--pl-lab); }
.pl-contest-links a { color: var(--pl-accent); font-weight: 600; }
.pl-contest-block { display: grid; gap: 1.25rem; }
.pl-contest-block[hidden] { display: none; }
.pl-contest-steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 768px) { .pl-contest-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl-contest-steps li { padding: 1.4rem; border: 1px solid var(--pl-line); border-radius: 1rem; background: var(--pl-mist); }
.pl-contest-steps h3 { margin: .8rem 0 .35rem; font-size: 1.0625rem; font-weight: 600; color: var(--pl-navy); }
.pl-contest-steps p { margin: 0; color: var(--pl-ink-soft); font-size: .9375rem; }
.pl-contest-num { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 999px; background: var(--pl-navy); color: #fff; font-weight: 700; }
.pl-contest-calendar { display: grid; gap: .6rem; }
.pl-contest-week { display: grid; gap: .5rem 1rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--pl-line); border-radius: .875rem; background: #fff; }
@media (min-width: 768px) { .pl-contest-week { grid-template-columns: 13rem minmax(0, 1fr) 15rem; } }
.pl-contest-week.is-live { border-color: var(--pl-lab); box-shadow: 0 0 0 3px var(--pl-lab-soft); }
.pl-contest-week.is-won, .pl-contest-week.is-pending { background: var(--pl-mist); }
.pl-contest-week-date { margin: 0; font-size: .875rem; font-weight: 600; color: var(--pl-ink-soft); }
.pl-contest-week-prize { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.pl-contest-week-prize .pl-contest-img { width: 56px; height: 56px; border-radius: .6rem; border: 1px solid var(--pl-line); }
.pl-contest-week-prize p { margin: 0; min-width: 0; }
.pl-contest-week-name { display: block; font-weight: 600; color: var(--pl-navy); }
.pl-contest-week-variant, .pl-contest-week-note { display: block; font-size: .8125rem; color: var(--pl-ink-muted); }
.pl-contest-week-state { margin: 0; font-size: .875rem; font-weight: 600; color: var(--pl-ink-muted); }
@media (min-width: 768px) { .pl-contest-week-state { text-align: right; } }
.pl-contest-week.is-live .pl-contest-week-state { color: var(--pl-lab); }
.pl-contest-week.is-won .pl-contest-week-state { color: var(--pl-navy); }
.pl-contest-winners { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .pl-contest-winners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-contest-winners li { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--pl-line); border-radius: .875rem; background: #fff; }
.pl-contest-winners .pl-contest-img { width: 44px; height: 44px; border-radius: .5rem; border: 1px solid var(--pl-line); }
.pl-contest-winners p { margin: 0; color: var(--pl-navy); }
.pl-contest-winners span { font-size: .8125rem; color: var(--pl-ink-muted); }
.pl-contest-empty { margin: 0; color: var(--pl-ink-soft); }
.pl-contest-faq { display: grid; gap: .6rem; }
.pl-contest-faq details { padding: .95rem 1.1rem; border: 1px solid var(--pl-line); border-radius: .875rem; background: #fff; }
.pl-contest-faq summary { cursor: pointer; font-weight: 600; color: var(--pl-navy); }
.pl-contest-faq p { margin: .6rem 0 0; color: var(--pl-ink-soft); }
.pl-contest-legal { display: grid; gap: .4rem; font-size: .8125rem; color: var(--pl-ink-muted); }
.pl-contest-legal p { margin: 0; }
.pl-contest-legal a { color: var(--pl-accent); font-weight: 600; }
.pl-contest-skeleton { min-height: 16rem; border-radius: 1rem; background: linear-gradient(90deg, rgba(11, 42, 74, .06), rgba(11, 42, 74, .12), rgba(11, 42, 74, .06)); background-size: 200% 100%; animation: plContestPulse 1.4s ease-in-out infinite; }
@keyframes plContestPulse { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (max-width: 479.98px) {
  .pl-contest-prize, .pl-contest-form { padding: 1.25rem; }
  .pl-contest-main { grid-template-columns: 1fr; }
  .pl-contest-img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
}
/* Lien « Jeu concours » de l'en-tête, ajouté par boost.js quand le jeu est ouvert. */
.pl-contest-link { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .7rem; border-radius: .6rem; color: var(--pl-lab); font-size: .875rem; font-weight: 600; text-decoration: none; transition: background-color .15s; }
.pl-contest-link:hover { background: var(--pl-lab-soft); }
.pl-contest-link svg { width: 20px; height: 20px; flex: none; }
.pl-contest-link .pl-contest-link-t { display: none; }
@media (min-width: 1280px) { .pl-contest-link .pl-contest-link-t { display: inline; } }
.pl-contest-link::after { content: ""; position: absolute; top: .4rem; left: 1.55rem; width: .45rem; height: .45rem; border-radius: 999px; background: #E8590C; box-shadow: 0 0 0 2px #fff; }

/* ---------- Pied de page ---------- */
footer.bg-navy-deep {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--pl-lab), var(--pl-accent)) 1;
  background-image: radial-gradient(56rem 22rem at 8% 0%, rgba(27, 95, 168, .22), transparent 62%);
}
footer.bg-navy-deep a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
footer.bg-navy-deep a:hover { text-decoration-line: underline; text-decoration-color: rgba(255, 255, 255, .4); }

/* ---------- Mouvements réduits : tout reste immobile ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-secondary, article.group.rounded-xl.border-line, a.group.rounded-2xl.border-line,
  [data-variant-selector] a { transition: none; }
  .btn-primary:hover, .btn-secondary:hover, article.group.rounded-xl.border-line:hover,
  a.group.rounded-2xl.border-line:hover, [data-variant-selector] a:hover { transform: none; }
  details.group[open] > summary + * { animation: none; }
}

/* ============================================================
   Finitions v2 (octobre 2026)
   ============================================================ */

/* Titres de page : dégradé bleu nuit → bleu. */
main#contenu > section:first-child h1.text-display {
  width: fit-content;
  background: linear-gradient(115deg, var(--pl-navy-deep) 0%, var(--pl-navy) 40%, var(--pl-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
main#contenu > section:first-child h1.text-display::selection { color: var(--pl-navy); -webkit-text-fill-color: var(--pl-navy); }

/* En-têtes de page : halo lumineux qui respire lentement. */
main#contenu > section.bg-mist:first-child::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 34rem;
  height: 34rem;
  right: -8rem;
  top: -12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 95, 168, .16), rgba(11, 122, 83, .08) 45%, transparent 70%);
  filter: blur(8px);
}
@media (prefers-reduced-motion: no-preference) {
  main#contenu > section.bg-mist:first-child::after { animation: pl-halo 14s ease-in-out infinite alternate; }
}
@keyframes pl-halo {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: .85; }
  to { transform: translate3d(-4rem, 3rem, 0) scale(1.12); opacity: 1; }
}

/* Bouton principal : reflet qui traverse au survol. */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-primary:hover:not(:disabled)::after { transform: translateX(120%); transition: transform .7s var(--pl-ease); }
}

/* Cartes de guide et de rubrique : liseré dégradé au survol. */
a.card.group { position: relative; transition: transform .3s var(--pl-ease), box-shadow .3s ease, border-color .3s ease; }
a.card.group::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--pl-lab), var(--pl-accent));
  opacity: 0;
  transition: opacity .25s ease;
}
@media (hover: hover) {
  a.card.group:hover { transform: translateY(-3px); box-shadow: var(--pl-shadow-lg); }
  a.card.group:hover::before { opacity: 1; }
}

/* Guides : barre de progression de lecture (navigateurs qui gèrent les animations au défilement). */
@supports (animation-timeline: scroll()) {
  body:has(.prose-pl)::before {
    content: "";
    position: fixed;
    z-index: 60;
    left: 0; top: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--pl-lab), var(--pl-accent));
    animation: pl-progress linear both;
    animation-timeline: scroll(root);
  }
  @keyframes pl-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Accueil : « Le savoir PeptidLab ». */
.pl-hub {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(48rem 24rem at 100% 0%, rgba(27, 95, 168, .35), transparent 60%),
    radial-gradient(40rem 22rem at 0% 100%, rgba(11, 122, 83, .32), transparent 60%),
    var(--pl-navy-deep);
  color: #fff;
}
.pl-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 30%, transparent 80%);
}
.pl-hub .eyebrow { color: #8FD8B8; }
.pl-hub h2 { color: #fff; }
.pl-hub-lead { margin-top: 1rem; max-width: 40rem; color: rgba(255, 255, 255, .78); font-size: 1.0625rem; line-height: 1.7; }
.pl-hub-grid { margin-top: 2.5rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .pl-hub-grid { grid-template-columns: repeat(2, 1fr); }
  .pl-hub-card:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  .pl-hub-grid { grid-template-columns: repeat(5, 1fr); }
  .pl-hub-card:first-child { grid-column: auto; }
}
.pl-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.4rem 1.3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  text-decoration: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .3s var(--pl-ease), background-color .3s ease, border-color .3s ease;
}
@media (hover: hover) {
  .pl-hub-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); border-color: rgba(143, 216, 184, .5); }
}
.pl-hub-num { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; background: linear-gradient(90deg, #8FD8B8, #8DB8E8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-hub-title { font-weight: 600; font-size: 1.0625rem; }
.pl-hub-text { color: rgba(255, 255, 255, .72); font-size: .9375rem; line-height: 1.6; flex: 1; }
.pl-hub-link { margin-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 600; color: #8FD8B8; }

@media (prefers-reduced-motion: reduce) {
  a.card.group, .pl-hub-card { transition: none; }
  a.card.group:hover, .pl-hub-card:hover { transform: none; }
}
