/*
 * CapDroits typography scale
 * Reference: home page Elementor styles.
 */

:root {
  --cap-type-eyebrow: 13px;
  --cap-type-small: 14px;
  --cap-type-body: 16px;
  --cap-type-lead: 18px;
  --cap-type-card-title: 22px;
  --cap-type-section-title: 30px;
  --cap-type-section-line: 36px;
  --cap-type-hero-title: 60px;
  --cap-type-hero-line: 1.12;
  --cap-type-counter: 40px;
}

/* Custom page shells */
.cap-org-page,
.cap-auvi-page,
.cap-history,
.cap-values,
.incotra-page,
.capdroits-content-blocks,
.cap-news,
.am-auvi-all,
.am-confcap,
.am-caplab,
.am-ressources,
#cap-autoethno-collective,
#cap-report-2025 {
  font-size: var(--cap-type-body);
}

/* Main hero titles */
.cap-org-hero h1,
.cap-auvi-hero h1,
.incotra-hero h1,
.cap-news-title,
.am-auvi-all-title,
.am-confcap-title,
.am-caplab-title,
.am-ressources-title,
.auvi-hero h1,
#cap-autoethno-collective h1,
#cap-report-2025 .cover h1,
#cap-report-2025 .closing .report-title {
  font-size: var(--cap-type-hero-title) !important;
  line-height: var(--cap-type-hero-line) !important;
}

/* Section titles */
.cap-org-section h2,
.cap-auvi-page h2,
.cap-values h2,
.cap-history h2,
.incotra-page h2,
.cap-news-main-head h2,
.am-auvi-all-heading-left h2,
.am-confcap-heading-left h2,
.am-caplab-heading-left h2,
.am-ressources-heading-left h2,
#cap-autoethno-collective h2,
#cap-report-2025 .report-title,
#cap-report-2025 h2 {
  font-size: var(--cap-type-section-title) !important;
  line-height: var(--cap-type-section-line) !important;
}

/* Subtitles, cards, and h3s */
.cap-org-page h3,
.cap-org-distinction__grid strong,
.cap-auvi-page h3,
.cap-auvi-word-stack span,
.cap-values h3,
.cap-history h3,
.incotra-page h3,
.incotra-hero__subtitle,
.cap-news-card-title,
.am-auvi-all-card-title,
.am-confcap-card-title,
.am-caplab-card-title,
.am-ressources-card-title,
#cap-autoethno-collective h3,
#cap-autoethno-collective .aec-mini-card strong,
#cap-autoethno-collective .aec-profile-grid::before,
#cap-report-2025 h3,
#cap-report-2025 .report-cell p:first-of-type {
  font-size: var(--cap-type-card-title) !important;
  line-height: 1.35 !important;
}

/* Introductory text mirrors the prominent 18px text used on the home page. */
.cap-org-role__lead,
.cap-org-distinction__grid p,
.cap-auvi-standfirst,
.cap-news-intro,
.auvi-hero p,
.am-auvi-all-intro,
.am-confcap-intro,
.am-caplab-intro,
.am-ressources-intro,
.cap-values .values-hero p,
.cap-history .history-hero p,
.incotra-intro,
.incotra-hero__text,
.capdroits-content-blocks .content-lead,
#cap-autoethno-collective .aec-hero__lead,
#cap-autoethno-collective .aec-callout,
#cap-autoethno-collective .aec-progress-note p,
#cap-report-2025 .cover-subtitle,
#cap-report-2025 .composition--prose,
#cap-report-2025 .report-lead,
#cap-report-2025 .closing-copy {
  font-size: var(--cap-type-lead) !important;
}

/* Keep large numeric treatments aligned with the home counters. */
.cap-auvi-hero-card::before,
.cap-auvi-stat__number,
.cap-values .values-number,
.cap-history .history-number,
.incotra-expertise__number,
#cap-report-2025 .metric-grid p:first-child,
#cap-report-2025 .key-figures__grid strong,
#cap-report-2025 .anr-finance__metric p:first-child {
  font-size: var(--cap-type-counter) !important;
  line-height: 1.1 !important;
}

@media (max-width: 767px) {
  .cap-org-hero h1,
  .cap-auvi-hero h1,
  .cap-about-hero h1,
  .cap-values h1,
  .cap-history h1,
  .incotra-hero h1,
  .cap-news-title,
  .am-auvi-all-title,
  .am-confcap-title,
  .am-caplab-title,
  .am-ressources-title,
  .auvi-hero h1,
  #cap-autoethno-collective h1,
  #cap-report-2025 .cover h1,
  #cap-report-2025 .closing .report-title {
    font-size: 42px !important;
  }

  .cap-org-section h2,
  .cap-auvi-page h2,
  .cap-values h2,
  .cap-history h2,
  .incotra-page h2,
  .cap-news-main-head h2,
  .am-auvi-all-heading-left h2,
  .am-confcap-heading-left h2,
  .am-caplab-heading-left h2,
  .am-ressources-heading-left h2,
  #cap-autoethno-collective h2,
  #cap-report-2025 .report-title,
  #cap-report-2025 h2 {
    font-size: 30px !important;
    line-height: 36px !important;
  }
}
