/* ==========================================================================
   PHARMACOS BEAUTY — Design System
   Source de vérité : Charte graphique officielle (CHARTE_GRAPHIQUE_PHARMACOS_V.pdf)
   + maquettes PDF (Homepage / Product Page).
   À CONFIRMER — fichiers/licence web de Luxia et Gilroy : fallback Cormorant
   Garamond / Inter appliqué en attendant les fichiers de police officiels.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* ---- Couleurs de marque (charte, section 1) ---- */
  --pb-green: #2CC68B;
  --pb-green-dark: #22a877; /* hover state du vert */
  --pb-dark-green: #1A4033;
  --pb-dark-green-2: #123527; /* dégradé profond utilisé en fin de sections sombres */

  /* ---- Neutres (charte, section 2) ---- */
  --pb-white: #FFFFFF;
  --pb-off-white: #F7F6F2;
  --pb-light-bg: #F3F2EE;
  --pb-mint-50: #EAF4EE;   /* fond hero / sections claires des maquettes */
  --pb-mint-100: #E3F1E9;
  --pb-mint-300: #A0DBC7;  /* fond de la section « À propos » */
  --pb-text: #1A4033;
  --pb-text-soft: #4B6357;
  --pb-muted: #7C8F86;
  --pb-border: #DCE6E0;

  /* ---- Accents de catégorie (issus des maquettes PDF — wayfinding produit,
         jamais utilisés comme couleur de marque dominante : logo, header,
         footer et CTA principaux restent vert / vert foncé) ---- */
  --pb-accent-pink: #F6C2EE;
  --pb-accent-yellow: #EACC46;
  --pb-accent-purple: #D5CBE3;
  --pb-accent-coral: #E3A296;
  --pb-accent-tan: #C4AB75;
  --pb-accent-rose: #C23464;   /* section "Cosmétiques" + PDP Boost Up */
  --pb-accent-rose-dark: #9c2a53;
  --pb-star: #E3A73A;

  /* ---- Typographie (charte, section 3) ---- */
  --font-display: "Luxia", "Cormorant Garamond", Georgia, serif;
  --font-body: "Gilroy", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* ---- Rayons ---- */
  --pb-radius-sm: 8px;
  --pb-radius-md: 16px;
  --pb-radius-lg: 28px;
  --pb-radius-pill: 999px;

  /* ---- Espacement / layout ---- */
  --pb-container: 1280px;
  --pb-gutter: clamp(20px, 4vw, 64px);
  --pb-section-y: clamp(56px, 8vw, 100px);

  /* ---- Ombres ---- */
  --pb-shadow-sm: 0 2px 8px rgba(26, 64, 51, 0.06);
  --pb-shadow-md: 0 8px 24px rgba(26, 64, 51, 0.10);
  --pb-shadow-lg: 0 20px 48px rgba(26, 64, 51, 0.16);
}

/* ---- Reset minimal ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--pb-text);
  background: var(--pb-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--pb-dark-green);
  margin: 0;
  line-height: 1.08;
  font-weight: 600;
}
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2.6vw, 28px); }
p { margin: 0; }

.pb-container {
  max-width: var(--pb-container);
  margin-inline: auto;
  padding-inline: var(--pb-gutter);
}

.pb-section { padding-block: var(--pb-section-y); }
.pb-section--tight { padding-block: clamp(32px, 5vw, 56px); }

.pb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pb-green);
}
.pb-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--pb-green);
  display: inline-block;
}
.pb-eyebrow--rose { color: var(--pb-accent-rose); }
.pb-eyebrow--rose::before { background: var(--pb-accent-rose); }
.pb-eyebrow--light { color: var(--pb-green); }

/* ==========================================================================
   Logo — asset officiel uniquement. Jamais de filtre/transform/rotation.
   ========================================================================== */
.brand-logo {
  display: block;
  width: auto;
  height: auto;
}
.brand-logo--nav { height: 42px; }
.brand-logo--footer { height: 46px; }
.brand-logo--plate {
  /* Plaque de protection blanche : permet d'afficher le logo bicolore
     officiel sur un fond de marque sans jamais recolorer/déformer le fichier. */
  display: inline-flex;
  align-items: center;
  background: var(--pb-white);
  border-radius: var(--pb-radius-sm);
  padding: 10px 16px;
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--pb-radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.pb-btn:hover { transform: translateY(-1px); }

.pb-btn--primary { background: var(--pb-green); color: var(--pb-dark-green); }
.pb-btn--primary:hover { background: var(--pb-green-dark); box-shadow: var(--pb-shadow-md); }

.pb-btn--dark { background: var(--pb-dark-green); color: var(--pb-white); }
.pb-btn--dark:hover { background: var(--pb-dark-green-2); box-shadow: var(--pb-shadow-md); }

.pb-btn--outline { background: transparent; color: var(--pb-dark-green); border-color: var(--pb-dark-green); }
.pb-btn--outline:hover { background: var(--pb-dark-green); color: var(--pb-white); }

.pb-btn--outline-light { background: transparent; color: var(--pb-white); border-color: rgba(255,255,255,.4); }
.pb-btn--outline-light:hover { background: rgba(255,255,255,.12); }

.pb-btn--rose { background: var(--pb-accent-rose); color: var(--pb-white); }
.pb-btn--rose:hover { background: var(--pb-accent-rose-dark); box-shadow: var(--pb-shadow-md); }

.pb-btn--ghost-white { background: var(--pb-white); color: var(--pb-dark-green); }
.pb-btn--ghost-white:hover { box-shadow: var(--pb-shadow-md); }

.pb-btn--sm { padding: 10px 18px; font-size: 13px; }
.pb-btn--icon {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   Badges / pills
   ========================================================================== */
.pb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--pb-radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.pb-badge--green { background: var(--pb-green); color: var(--pb-dark-green); }
.pb-badge--dark { background: var(--pb-dark-green); color: var(--pb-white); }
.pb-badge--white { background: var(--pb-white); color: var(--pb-dark-green); box-shadow: var(--pb-shadow-sm); }
.pb-badge--rose { background: var(--pb-accent-rose); color: var(--pb-white); }
.pb-badge--rose-soft { background: #fdeaf1; color: var(--pb-accent-rose); }
.pb-badge--tan { background: var(--pb-accent-tan); color: var(--pb-white); }
.pb-badge--outline { border: 1px solid var(--pb-border); color: var(--pb-text-soft); background: var(--pb-white); }

/* ==========================================================================
   Cartes
   ========================================================================== */
.pb-card {
  background: var(--pb-white);
  border-radius: var(--pb-radius-lg);
  box-shadow: var(--pb-shadow-sm);
}
.pb-card--dark { background: var(--pb-dark-green); color: var(--pb-white); }
.pb-card--dark h3, .pb-card--dark h4 { color: var(--pb-white); }

/* Carte produit (grille catalogue) */
.pb-product-card {
  background: var(--pb-white);
  border-radius: var(--pb-radius-lg);
  overflow: hidden;
  box-shadow: var(--pb-shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.pb-product-card:hover { box-shadow: var(--pb-shadow-lg); transform: translateY(-3px); }
.pb-product-card__media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.pb-product-card__media img { max-height: 100%; object-fit: contain; }
.pb-product-card__tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; }
.pb-product-card__wish {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pb-white); box-shadow: var(--pb-shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.pb-product-card__body { padding: 18px 20px 22px; }
.pb-product-card__cat { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pb-green); }
.pb-product-card__name { font-family: var(--font-display); font-size: 22px; color: var(--pb-dark-green); margin-top: 4px; }
.pb-product-card__desc { font-size: 13.5px; color: var(--pb-muted); margin-top: 4px; }
.pb-product-card__rating { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--pb-text-soft); }
.pb-product-card__rating .stars { color: var(--pb-star); letter-spacing: 1px; }
.pb-product-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.pb-product-card__price { font-size: 20px; font-weight: 800; color: var(--pb-dark-green); }
.pb-product-card__price s { font-size: 13px; font-weight: 500; color: var(--pb-muted); margin-left: 6px; }
.pb-product-card__add {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pb-dark-green); color: var(--pb-white);
  border-radius: var(--pb-radius-pill); padding: 9px 16px; font-size: 13px; font-weight: 700;
}

/* ==========================================================================
   Grilles utilitaires
   ========================================================================== */
.pb-grid { display: grid; gap: 24px; }
.pb-grid--4 { grid-template-columns: repeat(4, 1fr); }
.pb-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pb-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) {
  .pb-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pb-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pb-grid--4, .pb-grid--3, .pb-grid--2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Utilitaires de fond
   ========================================================================== */
.bg-mint { background: var(--pb-mint-50); }
.bg-mint-strong { background: var(--pb-mint-300); }
.bg-offwhite { background: var(--pb-off-white); }
.bg-dark { background: linear-gradient(160deg, var(--pb-dark-green), var(--pb-dark-green-2)); color: var(--pb-white); }
.bg-dark h2, .bg-dark h3 { color: var(--pb-white); }
.bg-rose { background: #FBEEF1; }
.bg-green { background: var(--pb-green); color: var(--pb-dark-green); }

/* Motif de marque (charte, section 12) — à faible contraste, usage modéré */
.pb-pattern-bg {
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.06) 0 2px, transparent 3px);
  background-size: 26px 26px;
}

.pb-container-narrow { max-width: 860px; margin-inline: auto; }
.text-center { text-align: center; }
.pb-stat { font-family: var(--font-display); font-size: 40px; color: var(--pb-dark-green); }
.bg-dark .pb-stat { color: var(--pb-white); }
.pb-stat-label { font-size: 13px; color: var(--pb-muted); }
.bg-dark .pb-stat-label { color: rgba(255,255,255,.65); }
