/* Proforma Peptides - header, footer and shared primitives */

:root {
  --pf-ink: #0C4A6E;
  --pf-ink-soft: #2A6491;
  --pf-muted: #475569;          /* 7.58:1 sur blanc */
  --pf-line: #CFE6F5;
  --pf-surface: #F0F9FF;
  --pf-surface-2: #E8F2F8;
  /* Palette "Clinical Blue".
     --pf-accent est DECORATIF uniquement (icones, filets, survols) : a
     4.10:1 il ne peut ni porter de texte blanc ni servir de texte.
     Tout ce qui porte du texte utilise --pf-accent-d (5.47:1). */
  --pf-accent: #0284C7;
  --pf-accent-d: #026FA8;
  --pf-accent-soft: #E0F2FE;
  --pf-navy: #0B3A56;
  --pf-navy-d: #07293D;
  --pf-sale: #DC2626;
  --pf-star: #0284C7;
  --pf-radius: 14px;
  --pf-shadow: 0 1px 2px rgba(12,74,110,.05), 0 10px 26px rgba(12,74,110,.06);
  --pf-shadow-lg: 0 2px 6px rgba(12,74,110,.06), 0 26px 60px rgba(12,74,110,.12);
  /* Inter pour le corps : lisibilite a petite taille et vrais chiffres
     tabulaires (indispensable pour aligner les prix). Inter Tight pour les
     titres : meme superfamille, donc coherent, mais chasse plus serree.
     La pile de repli est volontairement proche en metriques pour limiter le
     decalage pendant le chargement de la police. */
  --pf-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pf-font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Astra chrome is replaced wholesale by the parts below. */
.site-header,
#masthead,
.site-footer,
.ast-above-header,
.ast-below-header {
  display: none !important;
}

body {
  font-family: var(--pf-font);
  font-optical-sizing: auto;
  color: var(--pf-ink);
  background: #fff;
}

body.pf-nav-open {
  overflow: hidden;
}

.pf-wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

/* Visible focus everywhere - never removed. */
.pf-header a:focus-visible,
.pf-footer a:focus-visible,
.pf-icon-btn:focus-visible,
.pf-burger:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
.pf-btn:focus-visible {
  outline: 3px solid var(--pf-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------- Announcement bar ---------------- */

.pf-announce {
  background: var(--pf-navy-d);
  color: #CDE7F7;
  font-size: 12.5px;
  line-height: 1.4;
}

.pf-announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 40px;
  padding: 10px 0;
}

.pf-announce span,
.pf-announce a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #CDE7F7;
  text-decoration: none;
  white-space: nowrap;
}

.pf-announce a:hover { color: #fff; }

.pf-announce svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--pf-accent);
}

.pf-announce__arrow { transition: transform .18s ease; }
.pf-announce a:hover .pf-announce__arrow { transform: translateX(3px); }

/* ---------------- Header ---------------- */

.pf-header {
  background: #fff;
  border-bottom: 1px solid var(--pf-line);
  position: relative;
  z-index: 40;
}

.pf-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}

.pf-logo {
  display: block;
  text-decoration: none;
  flex: none;
}

.pf-logo__name {
  display: block;
  font-family: var(--pf-font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--pf-ink);
  line-height: 1.1;
}

.pf-logo__name em {
  font-style: normal;
  color: var(--pf-accent);
}

.pf-logo__tag {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--pf-muted);
  margin-top: 3px;
}

.pf-nav {
  margin-left: auto;
}

.pf-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pf-nav a {
  position: relative;
  display: block;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--pf-ink-soft);
  text-decoration: none;
  transition: color .18s ease;
}

.pf-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--pf-accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.pf-nav a:hover { color: var(--pf-accent); }
.pf-nav a:hover::after,
.pf-nav a[aria-current="page"]::after { transform: scaleX(1); }
/* accent-d et non accent : le ton clair ne fait que 4.10:1 sur blanc. */
.pf-nav a[aria-current="page"] { color: var(--pf-accent-d); font-weight: 600; }

.pf-header__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.pf-icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pf-ink);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.pf-icon-btn:hover { background: var(--pf-surface); color: var(--pf-accent); }
.pf-icon-btn svg { width: 20px; height: 20px; }

.pf-cart-count {
  position: absolute;
  top: 5px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--pf-accent-d);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

/* Burger */

.pf-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 12px 10px;
}

.pf-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--pf-ink);
  transition: transform .22s ease, opacity .22s ease;
}

.pf-burger span + span { margin-top: 5px; }
.pf-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pf-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pf-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search panel */

.pf-search {
  border-top: 1px solid var(--pf-line);
  background: var(--pf-surface);
}

.pf-search__form {
  display: flex;
  gap: 10px;
  padding: 16px 0;
}

.pf-search__form input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--pf-line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--pf-ink);
}

.pf-search__form button {
  height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--pf-navy);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease;
}

.pf-search__form button:hover { background: var(--pf-accent-d); }

/* Mobile nav */

.pf-mobile-nav {
  border-top: 1px solid var(--pf-line);
  background: #fff;
}

.pf-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
}

.pf-mobile-nav a {
  display: block;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--pf-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--pf-line);
}

.pf-mobile-nav a:hover { color: var(--pf-accent); background: var(--pf-surface); }

/* ---------------- Footer ---------------- */

.pf-footer {
  background: var(--pf-navy);
  color: #BBD9EC;
  font-size: 14px;
}

.pf-footer__top {
  display: grid;
  /* 3 colonnes : marque + Help + Contact. La grille etait restee sur 4 pistes
     apres le retrait de la colonne "Shop", laissant une piste vide de ~249px
     et un grand blanc a droite du footer. */
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 40px clamp(40px, 6vw, 96px);
  padding: 64px 0 52px;
}

.pf-footer .pf-logo__name { color: #fff; font-size: 21px; }

/* Sur le marine du footer, --pf-accent ne fait que 2.92:1 (seuil 3 pour du
   gros gras). Un bleu clair remonte a 7.2:1. En en-tete le meme accent est
   pose sur blanc et passe, donc seul le footer est surcharge. */
.pf-footer .pf-logo__name em { color: #7DD3FC; }
.pf-footer .pf-logo__tag { color: #7BAACD; }

.pf-footer__brand p {
  margin: 18px 0 0;
  max-width: 34ch;
  line-height: 1.7;
  color: #A3C9E2;
}

.pf-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.pf-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #CDE7F7;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.pf-social a:hover { background: var(--pf-accent); color: #fff; transform: translateY(-2px); }
.pf-social svg { width: 17px; height: 17px; }

.pf-footer__col h2 {
  margin: 0 0 18px;
  font-family: var(--pf-font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.pf-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pf-footer__col a {
  color: #A3C9E2;
  text-decoration: none;
  transition: color .18s ease;
}

.pf-footer__col a:hover { color: #fff; }

.pf-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  min-width: 0;
}

/* The address is one unbreakable token; without this it pushes the grid
   track wide and scrolls the whole page at ~1024px. */
.pf-footer__contact a,
.pf-footer__contact span {
  overflow-wrap: anywhere;
  min-width: 0;
}

.pf-footer__contact svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--pf-accent);
}

.pf-footer__bar {
  border-top: 1px solid rgba(255,255,255,.10);
}

.pf-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 12.5px;
  color: #86B0D0;
}

.pf-footer__bar-inner p { margin: 0; }

/* Bouton "retour en haut" d'Astra : bleu carre par defaut, hors palette. */
#ast-scroll-top {
  background: var(--pf-navy) !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  box-shadow: 0 6px 18px rgba(12,74,110,.28) !important;
  transition: background-color .2s ease, transform .2s ease;
}

#ast-scroll-top:hover {
  background: var(--pf-accent-d) !important;
  transform: translateY(-2px);
}

/* ---------------- Motion ---------------- */

.pf-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}

.pf-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .pf-reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1180px) {
  .pf-nav ul { gap: 18px; }
  .pf-nav a { font-size: 13.5px; }
  .pf-header__inner { gap: 18px; }
}

@media (max-width: 1000px) {
  .pf-nav { display: none; }
  /* Order matters: the burger sits last so the tools are not pushed off the
     right edge by its auto margin. */
  .pf-burger { display: block; margin-left: 0; order: 3; }
  .pf-header__inner { gap: 10px; }
  .pf-header__tools { margin-left: auto; order: 2; }
  .pf-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
}

@media (max-width: 520px) {
  /* Account moves into the mobile menu; three icons plus the burger will not
     fit beside the logo at this width. */
  .pf-header__tools .pf-icon-btn--account { display: none; }
  .pf-icon-btn, .pf-burger { width: 40px; height: 40px; }
  .pf-logo__name { font-size: 19px; }
  .pf-logo__tag { font-size: 8.5px; letter-spacing: .14em; }
}

@media (max-width: 760px) {
  .pf-wrap { width: min(1240px, calc(100% - 32px)); }
  .pf-announce__inner { gap: 6px 22px; font-size: 11.5px; padding: 9px 0; }
  .pf-footer__top { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 40px; }
  .pf-footer__brand p { max-width: none; }
}
