/* =============================================================================
   BIJOUX HELENERIU — Typography System
   Owner: bijoux-typography.css (exclusif)
   Fonts: Cormorant Garamond · Inter Tight · Italiana
   Iter 46 — Variable axes · Reading flow · Decorative quotes · Drop cap · Sub/sup · Polish typo 5e passe
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. GOOGLE FONTS IMPORT — Variable fonts avec axes wght+opsz
   Cormorant Garamond variable : wght 300-700, ital
   Inter Tight variable : wght 100-900, ital
   ----------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Inter+Tight:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Italiana&display=swap');

/* -----------------------------------------------------------------------------
   2. BASE — body
   ----------------------------------------------------------------------------- */
body {
  font-family: 'Inter Tight', sans-serif !important;
  font-size: 16px;
  line-height: 1.65 !important;
  color: var(--cream, #E8E0D0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  /* Variable font axes — wght continu, opsz adaptatif */
  font-variation-settings: "wght" 400, "opsz" 16;
  font-feature-settings: "liga" 1, "kern" 1, "calt" 1;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 2;
}

/* -----------------------------------------------------------------------------
   3. SMOOTH SCROLL
   ----------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

/* -----------------------------------------------------------------------------
   4. HEADINGS — Cormorant Garamond
   Spécificité renforcée pour override bijoux-theme-claude.css (h3,h4 → var(--sans))
   ----------------------------------------------------------------------------- */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  font-family: 'Cormorant Garamond', serif !important;
  line-height: 1.15;
  color: var(--cream, #E8E0D0);
  letter-spacing: 0.02em;
  margin-top: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
  /* Variable wght axis — Cormorant Garamond variable */
  font-variation-settings: "wght" 500;
  font-feature-settings: "liga" 1, "kern" 1, "calt" 1;
  hyphens: auto;
}

h1, .h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 600;
  font-variation-settings: "wght" 600, "opsz" 36;
  letter-spacing: 0.01em;
}

h2, .h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  font-variation-settings: "wght" 500, "opsz" 24;
  letter-spacing: 0.015em;
}

h3, .h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 500;
  font-variation-settings: "wght" 500, "opsz" 14;
  letter-spacing: 0.02em;
}

h4, .h4 {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 500;
  font-variation-settings: "wght" 500, "opsz" 12;
  letter-spacing: 0.02em;
}

h5, .h5 {
  font-size: 1.05rem;
  font-weight: 500;
  font-variation-settings: "wght" 500, "opsz" 11;
  letter-spacing: 0.02em;
}

h6, .h6 {
  font-size: 0.95rem;
  font-weight: 600;
  font-variation-settings: "wght" 600, "opsz" 10;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* -----------------------------------------------------------------------------
   5. DISPLAY CLASSES
   ----------------------------------------------------------------------------- */

/* Grand titre hero — Italiana */
.bhr-display {
  font-family: 'Italiana', serif !important;
  font-weight: 400;
  line-height: 1.1;
  font-optical-sizing: auto;
}

/* Eyebrow / surtitre */
.bhr-eyebrow {
  font-family: 'Inter Tight', sans-serif !important;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #C9A86C);
  display: block;
  font-variant: small-caps;
}

/* Lead / intro paragraph */
.bhr-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  line-height: 1.6;
  font-style: italic;
  text-wrap: pretty;
  font-optical-sizing: auto;
  font-feature-settings: "liga" 1, "kern" 1, "calt" 1;
}

/* Caption / légende */
.bhr-caption {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  opacity: 0.7;
}

/* -----------------------------------------------------------------------------
   6. LINKS
   ----------------------------------------------------------------------------- */
a {
  color: var(--gold, #C9A86C);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--cream, #E8E0D0);
}

/* -----------------------------------------------------------------------------
   7. TEXT SELECTION — défini dans bijoux-polish.css (chargé en dernier)
   ----------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
   8. PARAGRAPH & INLINE
   ----------------------------------------------------------------------------- */
p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  text-wrap: pretty;
  max-width: 70ch;
  hyphens: auto;
}

/* Reading flow — spacing contextuel entre paragraphes */
/* Contexte dense (product description) : 1em */
.product-description p,
.product-additional-info p,
.product-features p,
[class*="product"] p {
  margin-bottom: 1em;
}

/* Contexte éditorial (CMS pages, blog, about) : 1.5em */
.page-content p,
article p,
.cms-block p,
.bhr-article p {
  margin-bottom: 1.5em;
}

/* Paragraph indent style éditorial — après le 1er paragraphe */
.page-content p + p,
article p + p,
.bhr-article p + p {
  text-indent: 1.5em;
  margin-bottom: 1.5em;
}

/* Reset indent si précédé d'un titre ou liste */
.page-content h1 + p,
.page-content h2 + p,
.page-content h3 + p,
.page-content h4 + p,
article h1 + p,
article h2 + p,
article h3 + p,
article h4 + p {
  text-indent: 0;
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

small {
  font-size: 0.85rem;
}

mark {
  background: rgba(201, 168, 108, 0.25);
  color: var(--cream, #E8E0D0);
  padding: 0 0.15em;
  border-radius: 2px;
}

/* -----------------------------------------------------------------------------
   8b. DROP CAP décoratif — premier paragraphe d'article long
   ----------------------------------------------------------------------------- */
.bhr-dropcap::first-letter,
.page-content > p:first-of-type::first-letter,
article > .page-content p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.2em;
  font-weight: 600;
  font-variation-settings: "wght" 600, "opsz" 48;
  line-height: 0.82;
  float: left;
  margin: 0.04em 0.12em -0.02em 0;
  color: var(--gold, #C9A86C);
  font-feature-settings: "liga" 1, "kern" 1, "calt" 1;
  /* Légère ombre text pour effet gravure */
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Drop cap produit — plus discret */
.product-description > p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2em;
  font-weight: 500;
  font-variation-settings: "wght" 500, "opsz" 36;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.1em 0 0;
  color: var(--gold, #C9A86C);
  font-feature-settings: "liga" 1, "kern" 1;
}

/* -----------------------------------------------------------------------------
   8c. PRIX — tabular nums
   ----------------------------------------------------------------------------- */
.price,
.product-price,
.regular-price,
.discount-price,
[class*="price"] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* -----------------------------------------------------------------------------
   8d. LABELS UPPERCASE — small-caps cohérent
   ----------------------------------------------------------------------------- */
.label,
.badge,
.product-flag,
.tag,
.category-name,
.bhr-label-upper {
  font-variant: small-caps;
  font-feature-settings: "smcp" 1, "c2sc" 0;
  letter-spacing: 0.06em;
}

/* -----------------------------------------------------------------------------
   9. BLOCKQUOTE — citation Cormorant italic + guillemets décoratifs serif gold
   ----------------------------------------------------------------------------- */
blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.65;
  color: var(--gold, #C9A86C);
  border-left: 2px solid var(--gold, #C9A86C);
  padding: 0.5em 0 0.5em 1.25em;
  margin: 1.5rem 0;
  font-optical-sizing: auto;
  font-variation-settings: "wght" 300, "opsz" 18;
  font-feature-settings: "liga" 1, "kern" 1, "calt" 1, "dlig" 1;
  max-width: 65ch;
  /* Guillemets décoratifs « » typographiques — sans quotes CSS property */
  quotes: "\00AB\2009" "\2009\00BB" "\2018" "\2019";
}

/* Guillemets décoratifs via pseudo-elements */
blockquote::before {
  content: "\00AB\2009"; /* «  */
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2em;
  font-style: normal;
  font-weight: 300;
  color: var(--gold, #C9A86C);
  opacity: 0.55;
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 0.1em;
  display: inline;
}

blockquote::after {
  content: "\2009\00BB"; /*  » */
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2em;
  font-style: normal;
  font-weight: 300;
  color: var(--gold, #C9A86C);
  opacity: 0.55;
  line-height: 0;
  vertical-align: -0.5em;
  margin-left: 0.05em;
  display: inline;
}

blockquote cite,
blockquote footer {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  display: block;
  margin-top: 0.5em;
  font-variant: small-caps;
}

/* -----------------------------------------------------------------------------
   10. CODE & PRE
   ----------------------------------------------------------------------------- */
code,
kbd,
samp {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  letter-spacing: 0;
}

pre {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* Preserve whitespace pour code blocks */
pre,
code,
.bhr-pre,
[class*="code-block"] {
  white-space: pre-wrap;
  word-break: break-word;
}

/* -----------------------------------------------------------------------------
   10b. SUBSCRIPT / SUPERSCRIPT — taille et baseline adaptées
   ----------------------------------------------------------------------------- */
sub,
sup {
  font-size: 0.72em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  font-variation-settings: "wght" 400, "opsz" 10;
  font-feature-settings: "kern" 1;
}

sup {
  top: -0.55em;
}

sub {
  bottom: -0.3em;
}

/* Subscript/superscript dans contexte prix (ex: symbole monnaie) */
.price sup,
.price sub,
[class*="price"] sup,
[class*="price"] sub {
  font-size: 0.65em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* -----------------------------------------------------------------------------
   11b. POLISH TYPO — Iter 46 · 5e passe
   ----------------------------------------------------------------------------- */

/* Lead paragraph — première phrase plus grande */
.bhr-lead p:first-child::first-line,
.bhr-lead::first-line {
  font-size: 1.15em;
  font-weight: 400;
}

/* Footnote ref superscript — gold discret */
sup.footnote,
a[id^="fn"] sup,
a[href^="#fn"] {
  font-size: 0.65em;
  color: var(--gold, #C9A86C);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0;
  vertical-align: super;
  line-height: 0;
}
a[href^="#fn"]:hover {
  color: var(--cream, #E8E0D0);
}

/* Definition list — dt gold uppercase small-caps, dd indenté */
dt {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: var(--gold, #C9A86C);
  margin-top: 1em;
}
dd {
  margin-left: 1.5em;
  margin-bottom: 0.5em;
  opacity: 0.9;
}

/* Abbreviation — underline pointillé discret */
abbr[title] {
  text-decoration: underline dotted;
  text-decoration-color: rgba(201, 168, 108, 0.5);
  text-underline-offset: 3px;
  cursor: help;
  border-bottom: none;
}

/* Keyboard shortcut kbd — dark pill */
kbd {
  background: rgba(0, 0, 0, 0.55) !important;
  color: var(--cream, #E8E0D0) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 0.1em 0.4em !important;
  font-size: 0.8em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), inset 0 -1px 0 rgba(0,0,0,0.3);
  letter-spacing: 0.02em;
}

/* Sample output samp — monospace gold tinted */
samp {
  color: var(--gold, #C9A86C) !important;
  background: rgba(201, 168, 108, 0.08) !important;
  font-style: normal;
}

/* Variable var — italic Cormorant */
var {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--cream, #E8E0D0);
}

/* Citation cite — italic muted */
cite {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  opacity: 0.7;
  font-size: 0.95em;
}

/* Inline mark/highlight — gold */
mark {
  background: rgba(201, 168, 108, 0.28) !important;
  color: var(--cream, #E8E0D0) !important;
  padding: 0.05em 0.2em;
  border-radius: 2px;
  border-bottom: 1px solid rgba(201, 168, 108, 0.45);
}

/* -----------------------------------------------------------------------------
   11. RESPONSIVE
   ----------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body {
    font-size: 15px;
    line-height: 1.6 !important;
    hyphens: auto;
  }

  h3, .h3 {
    font-size: 1.2rem;
  }

  blockquote {
    font-size: 1.05rem;
    padding-left: 1rem;
    max-width: 100%;
  }

  p {
    max-width: 100%;
  }
}


