/* =============================================================
   GUSTAVIA PATRIMOINE — Design Tokens
   Source de vérité : Figma Rdn5u9MvVo8s2oGANh3ztE (2026-05-25)
   ============================================================= */

/* -------------------------------------------------------------
   1. GOOGLE FONTS IMPORT
   ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Playfair+Display:ital@1&family=Inter:wght@400;700&display=swap');


/* -------------------------------------------------------------
   2. COLOR TOKENS
   ------------------------------------------------------------- */
:root {

  /* — Brand palette — */
  --brand:              #212C55;   /* Navy principal — surfaces, header scrollé */
  --or:                 #D4AF37;   /* Or — CTAs, accents italiques, séparateurs */
  --or-hover:           #E8C659;   /* Or clair — état hover boutons */
  --blanc:              #FFFFFF;   /* Texte principal sur fond sombre */
  --gris:               #9BAFB2;   /* Texte secondaire, body copy sur dark */
  --noir:               #191617;   /* Contraste profond — overlays, footer détails */
  --stroke:             #474747;   /* Bordures, séparateurs structurels */

  /* — Système de profondeur backgrounds — */
  --bg-zero:            #000000;   /* Noir absolu — moments rares */
  --bg-deep:            #050A14;   /* Sections les plus sombres */
  --bg-night:           #0A1428;   /* Background dark standard */
  --Dark:               #0A1428;   /* Alias Figma pour fallback gradient */
  --Linear:             linear-gradient(180deg, var(--Dark, #0A1428) 0%, #182950 31.25%, #182950 71.16%, var(--Dark, #0A1428) 100%);
  --surface-card:       #07101E;   /* Cards, partner cards, timeline */
  --surface-elevated:   #15243F;   /* Surfaces élevées, hover depth */

  /* — Bordures sur fond sombre — */
  --border-card:        rgba(255, 255, 255, 0.08);
  --border-section:     rgba(255, 255, 255, 0.12);

  /* — Overlay hero image — */
  --hero-overlay:       rgba(33, 44, 85, 0.35);

  /* — Header scrollé — */
  --header-bg-scrolled: rgba(33, 44, 85, 0.85);
}


/* -------------------------------------------------------------
   3. TYPOGRAPHY TOKENS
   ------------------------------------------------------------- */
:root {

  /* — Familles — */
  --font-display: 'Oswald', sans-serif;       /* Headlines, stats, steps */
  --font-serif:   'Playfair Display', serif;  /* Accents italiques en or */
  --font-ui:      'Inter', sans-serif;        /* Body, nav, boutons, labels */

  /* — Échelle de taille (Figma desktop) — */
  --text-xxs:  10px;
  --text-xs:   12px;                          /* Eyebrow labels, légal, captions */
  --text-sm:   14px;                          /* Nav, boutons, tags */
  --text-base: 15px;                          /* Corps de texte */
  --text-lg:   20px;                          /* Lead / intro paragraphes */
  --text-xl:   26px;                          /* H3 titres de cards */
  --text-2xl:  36px;                          /* H2 titres de sections */
  --text-3xl:  52px;
  --text-4xl:  68px;                          /* H1 hero — Figma 52px desktop */

  /* — Line-heights — */
  --lh-tight:    0.95;  /* H1 Oswald grands formats */
  --lh-display:  1.05;  /* H2 Oswald */
  --lh-heading:  1.2;   /* H3 */
  --lh-body:     1.555; /* Corps Inter */
  --lh-lead:     1.4;   /* Paragraphe intro */

  /* — Letter-spacing — */
  --ls-body:     0.32px;  /* Corps de texte */
  --ls-ui:       0.28px;  /* Nav, boutons, eyebrow — uppercase */
  --ls-accent:  -2.4px;   /* Playfair Display Italic en accent */
}

/* -------------------------------------------------------------
   4. SPACING TOKENS
   ------------------------------------------------------------- */
:root {

  --s-4:    4px;
  --s-8:    8px;
  --s-12:   12px;
  --s-16:   16px;
  --s-24:   24px;
  --s-32:   32px;
  --s-48:   48px;
  --s-64:   64px;
  --s-80:   80px;
  --s-120:  120px;

  /* — Layout — */
  --max:     1920px;   /* Largeur maximale globale */
  --frame-max: 1920px; /* Cadre commun header + sections */
  --gutter:  32px;     /* Mobile/tablette */
  --col-gap: 16px;     /* Gap entre cards et colonnes */
}
/* -------------------------------------------------------------
   13. RESPONSIVE — BREAKPOINT PRINCIPAL
   ------------------------------------------------------------- */
@media (max-width: 920px) {

  :root {
    /* — Typo mobile (Figma) — */
    --text-sm:   12px;
    --text-base: 14px;
    --text-lg:   16px;
    --text-2xl:  26px;
    --text-3xl:  38px;

    /* — Spacing mobile (Figma) — */
    --s-8:    4px;
    --s-32:   16px;
    --s-64:   48px;
    --s-80:   56px;
    --s-120:  64px;

    --gutter: 16px;
  }

  .section {
    padding-block: var(--s-64);
    padding-inline: var(--gutter);
  }
}

/* Gutter fixed to 32px across viewports for frame consistency */

/* -------------------------------------------------------------
   5. BORDER RADIUS TOKENS
   ------------------------------------------------------------- */
:root {

  --radius-btn:   4px;   /* CTA boutons */
  --radius-card:  12px;   /* Cards, partner cards, timeline items */
  --radius-input: 6px;   /* Champs de formulaire */
  --radius-pill:  999px; /* Eyebrow labels si pill */

  /* — Card system (Figma Cards section 2064:3471) — */
  --card-title-w: 248px;
  --card-title-h: 116px;
  --card-simple-w: 316px;
  --card-simple-h: 94px;
  --card-value-w: 672px;
  --card-value-h: 454px;
  --card-partner-w: 338px;
  --card-partner-h: 371px;
  --card-number-w: 332px;
  --card-number-h: 164px;
  --card-date-w: 400px;
  --card-date-h: 346px;
  --card-redac-w: 680px;
  --card-redac-h: 243px;
  --card-corporate-w: 480px;
  --card-corporate-h: 306px;
}


/* -------------------------------------------------------------
   6. SHADOW TOKENS
   ------------------------------------------------------------- */
:root {

  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-header:  0 1px 0 var(--or);  /* Border-bottom header scrollé */
}


/* -------------------------------------------------------------
   7. TRANSITIONS
   ------------------------------------------------------------- */
:root {

  --ease-premium:  cubic-bezier(0.22, 1, 0.36, 1);  /* Scroll reveals GSAP */
  --ease-default:  cubic-bezier(0.4, 0, 0.2, 1);    /* Transitions UI */
  --duration-fast: 180ms;
  --duration-mid:  400ms;
  --duration-slow: 800ms;
}


/* -------------------------------------------------------------
   8. RESET MINIMAL
   ------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--blanc);
  background-color: var(--bg-night);
  letter-spacing: var(--ls-body);
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* -------------------------------------------------------------
   9. LAYOUT UTILITIES
   ------------------------------------------------------------- */

/* Conteneur centré avec gutter */
.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
}

/* Padding de section standard */
.section {
  padding-block: var(--s-64);
  padding-inline: var(--gutter);
}

.section--lg {
  padding-block: var(--s-80);
}

.section--xl {
  padding-block: var(--s-120);
}


/* -------------------------------------------------------------
   10. TYPOGRAPHY UTILITIES
   ------------------------------------------------------------- */

/* Titres display — Oswald uppercase */
.t-display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: var(--lh-tight);
  color: var(--blanc);
}

/* H1 hero */
.t-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-3xl);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  color: var(--blanc);
}

/* H2 section */
.t-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  text-transform: uppercase;
  line-height: var(--lh-display);
  color: var(--blanc);
}

/* H3 card */
.t-h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  text-transform: uppercase;
  line-height: var(--lh-heading);
  color: var(--blanc);
}
.t-h3-big {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-3xl);
  text-transform: uppercase;
  line-height: var(--lh-heading);
  color: var(--blanc);
}

/* Accent Playfair Italic — or */
.t-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--or);
  letter-spacing: var(--ls-accent);
  text-transform: none !important;
}
.card--value .t-accent, .card--simple .t-accent {
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--or);
  letter-spacing: normal;
  text-transform: none !important;
}

/* Corps de texte */
.t-body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--gris);
  letter-spacing: var(--ls-body);
}

/* Lead / intro */
.t-lead {
  font-family: var(--font-ui);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: var(--lh-lead);
  color: var(--blanc);
  letter-spacing: var(--ls-body);
}

/* Eyebrow label — section identifier */
.t-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--ls-ui);
  color: var(--or);
}

/* Label UI — nav, boutons, captions */
.t-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-ui);
}

/* Texte muted */
.t-muted {
  color: var(--gris);
}


/* -------------------------------------------------------------
   11. COMPOSANTS DE BASE
   ------------------------------------------------------------- */

/* — HorizontalBorder (eyebrow de section) — */
.horizontal-border {
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  margin-bottom: var(--s-32);
}

/* .horizontal-border::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background-color: var(--or);
  flex-shrink: 0;
} */

.horizontal-border span {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--ls-ui);
  color: var(--or);
}


/* — Card — */
.card {
  background-color: transparent; /* override wp-admin/css/forms.css qui force white */
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: var(--s-32);
  transition: border-color var(--duration-mid) var(--ease-default),
              box-shadow var(--duration-mid) var(--ease-default);
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow-card-hover);
}


/* — CTA Button primaire (gold fill) — */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  background: var(--or);
  color: var(--brand);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-ui);
  border-radius: var(--radius-btn);
  padding: 18px 27px;
  border: 1px solid transparent;
  transition: background var(--duration-fast) var(--ease-default),
              transform var(--duration-fast) var(--ease-default);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--or-hover);
  transform: translateY(-1px);
}


/* — CTA Button secondaire (gold outline) — */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  background: transparent;
  color: var(--or);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-ui);
  border-radius: var(--radius-btn);
  padding: 18px 27px;
  border: 1px solid var(--or);
  transition: background var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default),
              transform var(--duration-fast) var(--ease-default);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--or);
  color: var(--brand);
  transform: translateY(-1px);
}


/* — CTA Button ghost (white outline — header) — */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  background: transparent;
  color: var(--blanc);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-ui);
  border-radius: var(--radius-btn);
  padding: 18px 27px;
  border: 1px solid var(--blanc);
  transition: background var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default),
              border-color var(--duration-fast) var(--ease-default);
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--or);
  color: var(--or);
}


/* — Champ de formulaire — */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.field label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--ls-ui);
  color: var(--gris);
}

.field input,
.field textarea {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-input);
  padding: var(--s-16);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  color: var(--blanc);
  transition: border-color var(--duration-fast) var(--ease-default);
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--or);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}


/* — Focus visible global — */
:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
  border-radius: var(--radius-input);
}


/* -------------------------------------------------------------
   12. ANIMATION — ÉTATS INITIAUX (GSAP gère les transitions)
   ------------------------------------------------------------- */

/* Éléments qui seront animés au scroll */
[data-anim="reveal"],
[data-anim="reveal-stagger"] > *,
[data-anim="split-on-scroll"] {
  opacity: 0;
  transform: translateY(40px);
}

/* Accessibilité : désactive toutes les animations */
@media (prefers-reduced-motion: reduce) {
  [data-anim="reveal"],
  [data-anim="reveal-stagger"] > *,
  [data-anim="split-on-scroll"] {
    opacity: 1 !important;
    transform: none !important;
  }
}

