/* PharmaKix — site vitrine
   Polices hébergées avec le site (aucun appel à un service tiers). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --croix: #0e9f5b;        /* le vert de la croix de pharmacie */
  --croix-fonce: #0a7a46;
  --encre: #0d2b22;        /* texte : vert très sombre */
  --encre-douce: #48615a;
  --papier: #f6faf8;       /* fond : blanc froid */
  --menthe: #dcf1e5;
  --alu: #dde2e5;          /* aluminium du blister */
  --alu-ombre: #b7c0c5;
  --blanc: #ffffff;

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --texte: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;

  --mesure: 38rem;
  --large: 70rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--croix-fonce); text-underline-offset: 0.18em; }
a:hover { color: var(--encre); }

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

.conteneur {
  width: min(100% - 2rem, var(--large));
  margin-inline: auto;
}

/* ---------- En-tête ---------- */

.entete {
  padding-block: 1.25rem;
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--encre);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo svg { width: 1.6rem; height: 1.6rem; }
.nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.nav a { color: var(--encre-douce); text-decoration: none; }
.nav a:hover { color: var(--encre); text-decoration: underline; }

/* ---------- Accueil ---------- */

.hero {
  padding-block: 3rem 5rem;
}
.hero .conteneur {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 12ch;
}
.hero .accroche {
  font-size: 1.2rem;
  color: var(--encre-douce);
  max-width: 32rem;
  margin: 0 0 2rem;
}
.badge-store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--encre);
  color: var(--blanc);
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
}
.badge-store svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.note-store {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--encre-douce);
}

/* Le blister : une alvéole par matière */
.blister {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0) 45%),
    var(--alu);
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: inset 0 0 0 1px var(--alu-ombre);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.alveole {
  background: rgba(255,255,255,0.55);
  border-radius: 999px;
  box-shadow:
    inset 0 2px 3px rgba(13,43,34,0.12),
    0 1px 0 rgba(255,255,255,0.9);
  padding: 0.35rem;
  display: flex;
}
.gelule {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--croix) 0 50%, var(--blanc) 50% 100%);
  box-shadow: 0 2px 4px rgba(13,43,34,0.18);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  padding: 0.3rem 0.6rem;
}
.gelule span {
  background: var(--blanc);
  color: var(--encre);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
.legende-blister {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--encre-douce);
  text-align: center;
}

/* Un seul mouvement : les gélules tombent dans leurs alvéoles au chargement */
@media (prefers-reduced-motion: no-preference) {
  .gelule {
    animation: tombe 0.5s cubic-bezier(.2,.9,.3,1.25) both;
    animation-delay: calc(var(--i) * 45ms + 150ms);
  }
  @keyframes tombe {
    from { transform: translateY(-14px) scale(0.92); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: 4.5rem;
  border-top: 1px solid rgba(13,43,34,0.1);
}
.section h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 2.25rem;
  max-width: 22ch;
}

.contenu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.contenu h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.contenu p { margin: 0; color: var(--encre-douce); }
.contenu .chiffre {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--croix);
  display: block;
  margin-bottom: 0.6rem;
}

/* Tarifs */
.tarifs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.offre {
  background: var(--blanc);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: inset 0 0 0 1px rgba(13,43,34,0.12);
}
.offre.mise-en-avant {
  background: var(--encre);
  color: var(--blanc);
  box-shadow: none;
}
.offre h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}
.offre .prix {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  margin: 0 0 0.35rem;
}
.offre .prix small { font-size: 1rem; font-weight: 700; }
.offre p { margin: 0; }
.offre .detail { color: var(--encre-douce); font-size: 0.95rem; margin-top: 0.75rem; }
.offre.mise-en-avant .detail { color: #b9d4c8; }

/* Aide */
.questions { max-width: var(--mesure); }
.questions details {
  border-bottom: 1px solid rgba(13,43,34,0.12);
  padding-block: 1rem;
}
.questions summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
}
.questions details p { margin: 0.6rem 0 0; color: var(--encre-douce); }

.contact {
  margin-top: 2.25rem;
  font-size: 1.1rem;
}

/* ---------- Pages juridiques ---------- */

.document {
  width: min(100% - 2rem, var(--mesure));
  margin-inline: auto;
  padding-block: 2rem 5rem;
}
.document h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.document .maj { color: var(--encre-douce); margin: 0 0 2.5rem; }
.document h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.document h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.document ul { padding-left: 1.2rem; }
.document li { margin-bottom: 0.35rem; }
.document table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-block: 1rem;
}
.document th, .document td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(13,43,34,0.12);
}
.document th { font-weight: 700; }
.a-completer {
  background: #fff3c4;
  padding: 0 0.25rem;
  border-radius: 3px;
}

/* ---------- Pied de page ---------- */

.pied {
  padding-block: 2.5rem;
  background: var(--encre);
  color: #b9d4c8;
  font-size: 0.95rem;
}
.pied .conteneur {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.pied a { color: var(--blanc); }
.pied nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .hero .conteneur { grid-template-columns: 1fr; gap: 2.5rem; }
  .contenu, .tarifs { grid-template-columns: 1fr; gap: 1.75rem; }
  .nav { display: none; }
}
@media (max-width: 420px) {
  .blister { padding: 1rem; gap: 0.6rem; }
  .gelule { font-size: 0.74rem; min-height: 2.3rem; padding-inline: 0.35rem; }
}
