/* Thème commun chargé en dernier sur toutes les pages.
   Les feuilles de rubrique ne doivent pas modifier ces éléments partagés. */

:root {
  --global-title-font: var(--police-titres);
  --global-text-font: var(--police-texte);
  --global-h1-desktop: var(--taille-titre-rubrique-ordinateur);
  --global-h1-tablet: var(--taille-titre-rubrique-tablette);
  --global-h1-mobile: var(--taille-titre-rubrique-mobile);
  --global-h2-desktop: var(--taille-titre-section-ordinateur);
  --global-h2-mobile: var(--taille-titre-section-mobile);
}

html body > header.topbar.topbar {
  box-sizing: border-box !important;
  position: fixed !important;
  z-index: 2000 !important;
  inset: 0 0 auto !important;
  display: flex !important;
  width: 100% !important;
  height: 76px !important;
  padding: 0 3% !important;
  align-items: center !important;
  gap: 28px !important;
  background: #020d29 !important;
  border-bottom: 1px solid rgba(184, 79, 189, .34) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .24) !important;
}

html body > header.topbar.topbar > .logo {
  display: flex !important;
  min-width: 330px !important;
  align-items: center !important;
  gap: 8px !important;
  color: #fff !important;
  text-decoration: none !important;
}

html body > header.topbar.topbar > .logo i {
  color: #ff65ad !important;
  font: 50px/1 var(--global-title-font) !important;
}

html body > header.topbar.topbar > .logo b {
  display: block !important;
  color: #fffaf7 !important;
  font: italic 600 25px/1 var(--global-title-font) !important;
  white-space: nowrap !important;
}

html body > header.topbar.topbar > .logo small {
  display: block !important;
  margin-top: 3px !important;
  color: #cbd5e8 !important;
  font: 400 12px/1.2 var(--global-text-font) !important;
  white-space: nowrap !important;
}

html body main :is(.hero-copy, .poems-hero-copy, .citations-hero-copy, .personalized-hero-copy, .love-hero-copy) h1 {
  margin: 0 0 18px !important;
  color: #fffaf7 !important;
  font-family: var(--global-title-font) !important;
  font-size: var(--global-h1-desktop) !important;
  font-weight: 700 !important;
  line-height: 1.02 !important;
  letter-spacing: -.025em !important;
  text-wrap: balance;
}

html body main :is(.hero-copy, .poems-hero-copy, .citations-hero-copy, .personalized-hero-copy, .love-hero-copy) h1 em {
  display: inline !important;
  color: #ff67ad !important;
  font-family: var(--global-title-font) !important;
  font-weight: 500 !important;
  font-style: italic !important;
}

html body main :is(.hero-copy, .poems-hero-copy, .citations-hero-copy, .personalized-hero-copy, .love-hero-copy) .eyebrow,
html body main .section-kicker {
  margin: 0 0 12px !important;
  font-family: var(--global-text-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
}

html body main :is(.hero-copy, .poems-hero-copy, .citations-hero-copy, .personalized-hero-copy, .love-hero-copy) > p:last-child {
  max-width: 720px !important;
  margin: 0 !important;
  color: #e1e5f0 !important;
  font-family: var(--global-text-font) !important;
  font-size: clamp(17px, 1.35vw, 21px) !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}

html body main :is(.quote-intro, .poems-intro, .citations-images-intro, .collection-editorial, .collection-heading, .calculator-intro) h2,
html body main h2.section-title {
  font-family: var(--global-title-font) !important;
  font-size: var(--global-h2-desktop) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -.015em !important;
}

/* =====================================================================
   BASE VISUELLE COMMUNE DES BOUTONS D’ACTION
   Les couleurs restent propres à chaque action ou rubrique.
   ===================================================================== */
html body :is(
  .share-button,
  .quote-share,
  .copy-letter,
  .citations-images-pagination-action,
  .calculator-share-button,
  .cookie-choice-button,
  .footer-share-button,
  .poem-actions .facebook-share,
  .citation-image-actions button,
  .citation-image-actions a,
  .calculator-actions button,
  .alphabet-actions button,
  .alphabet-actions a,
  .alphabet-name-actions button,
  .alphabet-name-form button,
  .search-form button
) {
  box-sizing: border-box !important;
  display: inline-flex !important;
  min-height: var(--hauteur-bouton) !important;
  padding: 10px var(--espace-bouton-horizontal) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: var(--arrondi-bouton) !important;
  font-family: var(--global-text-font) !important;
  font-size: var(--taille-bouton) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform .2s ease, border-color .2s ease,
    background-color .2s ease, box-shadow .2s ease !important;
}

html body :is(
  .share-button,
  .quote-share,
  .copy-letter,
  .citations-images-pagination-action,
  .calculator-share-button,
  .cookie-choice-button,
  .footer-share-button,
  .poem-actions .facebook-share,
  .citation-image-actions button,
  .citation-image-actions a,
  .calculator-actions button,
  .alphabet-actions button,
  .alphabet-actions a,
  .alphabet-name-actions button,
  .alphabet-name-form button,
  .search-form button
):is(:hover, :focus-visible) {
  transform: translateY(-2px) !important;
}

html body :is(
  .share-button,
  .quote-share,
  .copy-letter,
  .citations-images-pagination-action,
  .calculator-share-button,
  .cookie-choice-button,
  .footer-share-button,
  .poem-actions .facebook-share,
  .citation-image-actions button,
  .citation-image-actions a,
  .calculator-actions button,
  .alphabet-actions button,
  .alphabet-actions a,
  .alphabet-name-actions button,
  .alphabet-name-form button,
  .search-form button
):focus-visible {
  outline: 3px solid rgba(255, 103, 173, .38) !important;
  outline-offset: 3px !important;
}

@media (max-width: 1024px) and (min-width: 761px) {
  html body main :is(.hero-copy, .poems-hero-copy, .citations-hero-copy, .personalized-hero-copy, .love-hero-copy) h1 {
    font-size: var(--global-h1-tablet) !important;
  }
}

@media (max-width: 760px) {
  html body > header.topbar.topbar {
    height: 76px !important;
    padding: 0 8px !important;
    gap: 5px !important;
  }

  html body > header.topbar.topbar > .logo {
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    flex: 1 1 auto !important;
    gap: 5px !important;
  }

  html body > header.topbar.topbar > .logo i {
    flex: 0 0 auto !important;
    font-size: 39px !important;
  }

  html body > header.topbar.topbar > .logo b {
    overflow: visible !important;
    font-size: clamp(1.15rem, 5.35vw, 1.55rem) !important;
    text-overflow: clip !important;
  }

  html body > header.topbar.topbar > .logo small {
    overflow: hidden !important;
    font-size: clamp(.61rem, 2.65vw, .78rem) !important;
    text-overflow: ellipsis !important;
  }

  html body > header.topbar.topbar > .menu,
  html body > header.topbar.topbar > .search {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  html body > header.topbar.topbar > .menu {
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 31px !important;
  }

  html body > header.topbar.topbar > .search {
    position: static !important;
    overflow: hidden !important;
  }

  html body > header.topbar.topbar > .search input {
    width: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body > header.topbar.topbar > .search button {
    width: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
  }

  html body > header.topbar.topbar > .search.is-open {
    position: absolute !important;
    top: 82px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    min-width: 0 !important;
  }

  html body > header.topbar.topbar > .search.is-open input {
    width: auto !important;
    padding: 0 16px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html body main :is(.hero-copy, .poems-hero-copy, .citations-hero-copy, .personalized-hero-copy, .love-hero-copy) h1 {
    font-size: var(--global-h1-mobile) !important;
    line-height: 1.06 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
  }

  html body main :is(.hero-copy, .poems-hero-copy, .citations-hero-copy, .personalized-hero-copy, .love-hero-copy) > p:last-child {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  html body main :is(.quote-intro, .poems-intro, .citations-images-intro, .collection-editorial, .collection-heading, .calculator-intro) h2,
  html body main h2.section-title {
    font-size: var(--global-h2-mobile) !important;
    line-height: 1.15 !important;
  }
}
