/* ============================================================
   GEOVENTURES — Design System Experte
   Direction Artistique Premium — Corporate Minier
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Poppins:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Roboto:wght@300;400;500&display=swap');

/* SF Pro / San Francisco Bold — system-native on Apple, Montserrat as web fallback */
@font-face {
  font-family: 'SF Pro Display';
  src: local('-apple-system'), local('BlinkMacSystemFont'), local('SF Pro Display');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* ── Core Palette ── */
  --navy:          #001e4f;
  --navy-deep:     #000d24;
  --navy-mid:      #002a6e;
  --navy-light:    #0a3580;
  --gold:          #c9943f;
  --gold-warm:     #d4a55a;
  --gold-dark:     #6d4100;
  --gold-pale:     rgba(201,148,63,0.12);
  --white:         #ffffff;
  --off-white:     #f7f6f2;
  --warm-gray:     #f0ede8;
  --cool-gray:     #f2f4f8;
  --border:        #e4e6ee;
  --border-dark:   rgba(255,255,255,0.1);

  /* ── Text ── */
  --text-primary:  #0d1117;
  --text-secondary:#4a4f5c;
  --text-muted:    #8b909f;
  --text-ghost:    rgba(255,255,255,0.55);

  /* ── Gradients ── */
  --grad-navy:     linear-gradient(160deg, #000d24 0%, #001e4f 50%, #002a6e 100%);
  --grad-navy-h:   linear-gradient(90deg, #000d24 0%, #001e4f 100%);
  --grad-gold:     linear-gradient(135deg, #c9943f 0%, #6d4100 100%);
  --grad-gold-r:   linear-gradient(135deg, #6d4100 0%, #c9943f 100%);
  --grad-white:    linear-gradient(180deg, #fff 0%, #f7f6f2 100%);

  /* ── Fonts ── */
  /* SF Pro Display (San Francisco Bold) — native Apple, Montserrat fallback */
  --f-display:  'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Montserrat', sans-serif;
  --f-heading:  'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Montserrat', sans-serif;
  --f-sub:      'Poppins', sans-serif;
  --f-body:     'Roboto', sans-serif;

  /* ── Type Scale (Display-first) ── */
  --display:    clamp(3.5rem, 7vw, 6.5rem);
  --h1:         clamp(2.5rem, 5vw, 4rem);
  --h2:         clamp(1.9rem, 3.5vw, 2.75rem);
  --h3:         clamp(1.3rem, 2.5vw, 1.7rem);
  --h4:         1.15rem;
  --body-lg:    1.125rem;
  --body:       1rem;
  --body-sm:    0.875rem;
  --label:      0.75rem;

  /* ── Spacing ── */
  --sp-2xs:  0.25rem;
  --sp-xs:   0.5rem;
  --sp-sm:   0.875rem;
  --sp-md:   1.5rem;
  --sp-lg:   2.5rem;
  --sp-xl:   4rem;
  --sp-2xl:  6rem;
  --sp-3xl:  9rem;

  /* ── Layout ── */
  --max-w:     1320px;
  --col-gap:   2rem;
  --header-h:  80px;

  /* ── Section padding ── */
  --sec-py:    clamp(4rem, 8vw, 7rem);

  /* ── Radius ── */
  --r-xs:   3px;
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-full: 9999px;

  /* ── Shadows ── */
  --shadow-xs:  0 1px 4px rgba(0,14,40,0.06);
  --shadow-sm:  0 2px 12px rgba(0,14,40,0.08);
  --shadow-md:  0 6px 24px rgba(0,14,40,0.12);
  --shadow-lg:  0 16px 48px rgba(0,14,40,0.18);
  --shadow-xl:  0 28px 80px rgba(0,14,40,0.25);
  --shadow-gold:0 8px 32px rgba(201,148,63,0.3);

  /* ── Transitions ── */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:     0.18s var(--ease);
  --t-base:     0.32s var(--ease);
  --t-slow:     0.55s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--f-body);
  font-size: var(--body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--f-body); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--f-body); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display {
  font-family: var(--f-display);
  font-size: var(--display);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-family: var(--f-heading);
  font-size: var(--h1);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h2, .h2 {
  font-family: var(--f-heading);
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3, .h3 {
  font-family: var(--f-heading);
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h4, .h4 {
  font-family: var(--f-sub);
  font-size: var(--h4);
  font-weight: 600;
  line-height: 1.4;
}

.label {
  font-family: var(--f-sub);
  font-size: var(--label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-sub);
  font-size: var(--label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: var(--sp-md);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--grad-gold);
  border-radius: var(--r-full);
  flex-shrink: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.section {
  padding: var(--sec-py) 0;
}

.section--dark  { background: var(--grad-navy); }
.section--navy  { background: var(--navy); }
.section--black { background: var(--navy-deep); }
.section--warm  { background: var(--off-white); }
.section--gray  { background: var(--cool-gray); }

/* ============================================================
   GOLD ACCENT ELEMENTS
   ============================================================ */
.gold-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--grad-gold);
  border-radius: var(--r-full);
  margin: var(--sp-md) 0;
}

.gold-rule--center { margin: var(--sp-md) auto; }
.gold-rule--sm { width: 28px; height: 2px; }
.gold-rule--lg { width: 72px; }

.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   BUTTONS — Premium
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.25rem;
  font-family: var(--f-sub);
  font-size: var(--body-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.98); }

/* Gold solid */
.btn-gold {
  background: var(--grad-gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-gold::before { background: rgba(255,255,255,0.12); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,148,63,0.45); }

/* Ghost on dark */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-ghost::before { background: rgba(255,255,255,0.08); }
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }

/* Outline gold */
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline-gold::before { background: var(--gold-pale); }
.btn-outline-gold:hover { color: var(--navy); background: var(--gold); border-color: var(--gold); }

/* Navy solid */
.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy::before { background: rgba(255,255,255,0.1); }
.btn-navy:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* White */
.btn-white {
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}

.btn-white::before { background: var(--off-white); }
.btn-white:hover { transform: translateY(-2px); }

/* Size modifiers */
.btn-lg { padding: 1.05rem 2.75rem; font-size: var(--body); }
.btn-sm { padding: 0.6rem 1.35rem; font-size: 0.7rem; }

/* Icon button */
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}

/* ============================================================
   PLACEHOLDER IMAGES
   ============================================================ */
.placeholder {
  background: linear-gradient(135deg, #c8cdd8 0%, #9ea5b5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--f-sub);
  font-size: var(--body-sm);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}

.placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%, rgba(0,0,0,0.08) 100%);
}

.placeholder svg { position: relative; z-index: 1; }
.placeholder span { position: relative; z-index: 1; opacity: 0.8; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal        { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-left   { opacity: 0; transform: translateX(-28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-right  { opacity: 0; transform: translateX(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-scale  { opacity: 0; transform: scale(0.92); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }

.reveal.in, .reveal-left.in, .reveal-right.in, .reveal-scale.in {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.1s !important; }
.d2 { transition-delay: 0.2s !important; }
.d3 { transition-delay: 0.3s !important; }
.d4 { transition-delay: 0.4s !important; }
.d5 { transition-delay: 0.5s !important; }
.d6 { transition-delay: 0.6s !important; }

/* ============================================================
   PAGE HEADER (Inner pages banners)
   ============================================================ */
.page-header {
  background: var(--grad-navy);
  padding: calc(var(--header-h) + 4.5rem) 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 75% 50%, rgba(201,148,63,0.08) 0%, transparent 55%),
    linear-gradient(rgba(201,148,63,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,148,63,0.04) 1px, transparent 1px);
  background-size: auto, 50px 50px, 50px 50px;
  pointer-events: none;
  z-index: 1;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25; /* Reduced opacity to blend nicely with navy background */
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-sub);
  font-size: var(--label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.page-header__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--grad-gold);
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.page-header h1 { 
  color: var(--white); 
  margin-bottom: 1rem;
  font-family: var(--f-display);
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: var(--body-lg);
  color: var(--text-ghost);
  max-width: 680px;
  line-height: 1.75;
}

/* Breadcrumb */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-full);
}

.breadcrumb a, .breadcrumb span {
  font-family: var(--f-sub);
  font-size: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  transition: color var(--t-fast);
}

.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(255,255,255,0.2) !important; }
.breadcrumb .current { color: var(--gold) !important; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--grad-gold);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--t-base);
  z-index: 999;
}

.scroll-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(201,148,63,0.5); }
.scroll-top svg { width: 20px; height: 20px; color: var(--white); }

/* ============================================================
   GRID UTILITIES
   ============================================================ */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--col-gap); }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--col-gap); }
.grid-52 { display: grid; grid-template-columns: 5fr 4fr; gap: var(--col-gap); }
.grid-25 { display: grid; grid-template-columns: 2fr 5fr; gap: var(--col-gap); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cool-gray); }
::-webkit-scrollbar-thumb { background: var(--grad-gold); border-radius: var(--r-full); }

::selection { background: rgba(201,148,63,0.2); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r-xs); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-52, .grid-25 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
}
