/* ==========================================================================
   GABON GLOBAL INVEST (GGI) — CHARTE GRAPHIQUE OFFICIELLE
   Bleu pétrole sombre : #16333C | Principal : #163C4B | Profond : #0F2936
   Bleu très pâle : #F2F6F8 | Or institutionnel : #C5A049 | Or clair : #E6C982
   Beige doré : #FAF8F2 / #E2D6B5 | Vert forêt : #19533C / #F2F7F4
   Gris ardoise : #1E293B (corps) / #475569 (crédits)
   ========================================================================== */

:root {
  --teal-dark: #16333C;
  --teal-main: #163C4B;
  --teal-deep: #0F2936;
  --teal-pale: #F2F6F8;
  --gold-base: #C5A049;
  --gold-light: #E6C982;
  --beige-bg: #FAF8F2;
  --beige-border: #E2D6B5;
  --green-accent: #19533C;
  --green-bg: #F2F7F4;
  --slate-body: #1E293B;
  --slate-muted: #475569;
  --border-light: #CBD5E1;
  --white: #FFFFFF;

  --font-serif: Georgia, "Liberation Serif", "Times New Roman", serif;
  --font-sans: "Segoe UI", "Liberation Sans", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1040px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate-body);
  background-color: #FAFBFD;
  -webkit-font-smoothing: antialiased;
}

/* ---------- BARRE DE PROGRESSION DORÉE ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-base), var(--gold-light));
  z-index: 200;
  pointer-events: none;
  transition: width 0.1s linear;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-main);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HEADER / NAVIGATION ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(22, 51, 60, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold-base);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-logo {
  width: 42px;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--gold-light);
}

.main-nav .nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--gold-base);
  border-radius: 3px;
  color: var(--gold-light);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav .nav-cta:hover {
  background-color: var(--gold-base);
  color: var(--teal-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(230, 201, 130, 0.4);
  border-radius: 3px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background-color: var(--gold-light);
  border-radius: 1px;
}

/* ---------- HERO ---------- */
.hero {
  background-color: var(--teal-dark);
  background-image:
    radial-gradient(ellipse at center, rgba(15, 41, 54, 0.38) 0%, rgba(15, 41, 54, 0.14) 65%, rgba(15, 41, 54, 0.0) 100%),
    url("assets/bg-hero.webp");
  background-size: cover;
  background-position: center;
  padding: 28px 18px;
  color: var(--white);
  border-bottom: 4px solid var(--gold-base);
}

.hero-frame {
  max-width: 1140px;
  margin: 0 auto;
  border: 1px solid rgba(197, 160, 73, 0.55);
  padding: 52px 24px 44px;
}

.hero-content {
  text-align: center;
  max-width: 780px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold-light);
  margin-bottom: 28px;
}

.kicker-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background-color: var(--gold-base);
}

.hero-logo {
  margin: 0 auto 24px;
  width: 210px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  margin: 0 0 20px;
  color: var(--white);
}

.hero-title span {
  color: var(--gold-light);
}

.hero-divider {
  width: 96px;
  height: 2px;
  background-color: var(--gold-base);
  margin: 0 auto 22px;
}

.hero-lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 30px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 38px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.btn-gold {
  background-color: var(--gold-base);
  color: var(--teal-deep);
  border: 1px solid var(--gold-base);
}

.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(230, 201, 130, 0.65);
}

.btn-outline:hover {
  background-color: rgba(230, 201, 130, 0.12);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.hero-motto {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  padding-top: 20px;
  border-top: 1px solid rgba(197, 160, 73, 0.4);
}

/* ---------- BANDEAU DÉFILANT INSTITUTIONNEL ---------- */
.ticker-bar {
  background-color: var(--teal-deep);
  border-bottom: 1px solid rgba(197, 160, 73, 0.45);
  overflow: hidden;
  padding: 12px 0;
  user-select: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ggiTicker 36s linear infinite;
}

.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 24px;
  padding-right: 24px;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  white-space: nowrap;
}

.ticker-dot {
  color: var(--gold-base);
  opacity: 0.75;
}

@keyframes ggiTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 68px 0;
}

.section-alt {
  background-color: #EAF1F4;
  border-top: 1px solid #D7E3E9;
  border-bottom: 1px solid #D7E3E9;
}

.section-dark {
  background: linear-gradient(155deg, #16333C 0%, #0F2936 100%);
  color: rgba(255, 255, 255, 0.9);
  border-top: 2px solid rgba(197, 160, 73, 0.55);
  border-bottom: 2px solid rgba(197, 160, 73, 0.55);
}

.section-dark .section-title {
  color: var(--white);
  border-bottom-color: var(--gold-base);
}

.section-dark .section-intro strong {
  color: var(--gold-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 2.5vw, 1.78rem);
  font-weight: 700;
  color: var(--teal-main);
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 2.5px solid var(--gold-base);
}

.section-title-spaced {
  margin-top: 56px;
}

.section-intro {
  margin-bottom: 26px;
}

p {
  margin: 0 0 16px;
}

/* ---------- VISUELS PANORAMIQUES ---------- */
.panoramic-figure {
  margin: 30px 0 12px;
  border: 1px solid var(--border-light);
  background-color: var(--white);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 41, 54, 0.06);
}

.panoramic-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.panoramic-figure:hover img {
  transform: scale(1.015);
}

.panoramic-figure figcaption {
  padding: 12px 18px;
  background-color: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--slate-body);
}

.panoramic-figure figcaption strong {
  color: var(--teal-deep);
}

.photo-credit {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--slate-muted);
}

/* ---------- CARTES PILIERS (DEVISE) ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pillar-card {
  background-color: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(197, 160, 73, 0.32);
  border-top: 3px solid var(--gold-base);
  border-radius: 3px;
  padding: 26px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  background-color: rgba(255, 255, 255, 0.075);
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-light);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(197, 160, 73, 0.4);
}

.pillar-card p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- TABLEAUX INSTITUTIONNELS ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background-color: var(--white);
}

.ggi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.ggi-table thead th {
  background-color: var(--teal-main);
  color: var(--white);
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
  border-bottom: 2px solid var(--gold-base);
}

.ggi-table tbody tr:nth-child(even) {
  background-color: var(--teal-pale);
}

.ggi-table tbody th,
.ggi-table tbody td {
  padding: 15px 18px;
  vertical-align: top;
  border-top: 1px solid #DDE5EC;
  text-align: left;
}

.ggi-table tbody th {
  width: 30%;
  color: var(--teal-deep);
  font-weight: 700;
}

/* ---------- LEVIERS CAPITAL HUMAIN ---------- */
.levers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 22px 0 24px;
}

.lever-item {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--gold-base);
  border-radius: 3px;
  padding: 20px 22px;
  box-shadow: 0 3px 12px rgba(15, 41, 54, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lever-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(15, 41, 54, 0.09);
}

.lever-item h3 {
  font-size: 1.03rem;
  color: var(--teal-deep);
  margin: 0 0 8px;
}

.lever-item p {
  margin: 0;
  font-size: 0.94rem;
}

/* ---------- ENCADRÉS (CALLOUTS) ---------- */
.callout {
  margin: 26px 0;
  padding: 18px 22px;
  border-radius: 3px;
  font-size: 0.94rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-green {
  background-color: var(--green-bg);
  border: 1px solid #C8DDD2;
  border-left: 5px solid var(--green-accent);
}

.callout-title {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--green-accent);
  margin-bottom: 6px;
}

.callout-gold {
  background-color: var(--beige-bg);
  border: 1px solid var(--beige-border);
  border-left: 5px solid var(--gold-base);
}

.callout-gold strong {
  color: var(--teal-deep);
}

.callout-sub {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--beige-border);
}

/* ---------- MÉTHODOLOGIE (3 ÉTAPES) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card {
  background-color: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(197, 160, 73, 0.32);
  border-top: 3px solid var(--gold-base);
  border-radius: 3px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  background-color: rgba(255, 255, 255, 0.075);
}

.step-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.08rem;
  color: var(--white);
  margin: 0 0 10px;
}

.step-card p {
  margin: 0;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- ENCART CONTACTS OFFICIELS ---------- */
.contact-card {
  margin-top: 34px;
  background-color: var(--teal-dark);
  background-image:
    linear-gradient(135deg, rgba(22, 51, 60, 0.35) 0%, rgba(15, 41, 54, 0.48) 100%),
    url("assets/bg-contact.webp");
  background-size: cover;
  background-position: center;
  border: 2px solid var(--gold-base);
  border-radius: 4px;
  padding: 36px 36px;
  color: var(--white);
  box-shadow: 0 12px 32px rgba(15, 41, 54, 0.18);
}

.contact-card-header {
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(230, 201, 130, 0.55);
}

.contact-card-header h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 30px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 4px;
}

.medallion {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 50%;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.member-name {
  font-weight: 700;
  font-size: 1.03rem;
  color: var(--white);
  margin-bottom: 4px;
}

.member-role {
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.member-email {
  display: inline-block;
  font-size: 0.88rem;
  color: #F8FAFC;
  word-break: break-all;
  border-bottom: 1px dotted rgba(230, 201, 130, 0.55);
  transition: color 0.2s ease;
}

.member-email:hover {
  color: var(--gold-light);
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(230, 201, 130, 0.35);
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 4px;
  color: var(--white);
  transition: background-color 0.2s ease;
}

a.channel-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

a.channel-item:hover .channel-value {
  color: var(--gold-light);
}

.channel-item img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.channel-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.channel-value {
  display: block;
  font-size: 0.92rem;
  color: #F8FAFC;
  word-break: break-word;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background-color: var(--teal-deep);
  color: rgba(255, 255, 255, 0.82);
  border-top: 2px solid var(--gold-base);
  padding: 24px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-brand strong {
  color: var(--gold-light);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--gold-light);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-btn:hover {
  color: var(--white);
}

/* ---------- MODALE MENTIONS LÉGALES ---------- */
.legal-dialog {
  max-width: 680px;
  width: calc(100% - 32px);
  border: 2px solid var(--gold-base);
  border-radius: 4px;
  padding: 0;
  color: var(--slate-body);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.legal-dialog::backdrop {
  background: rgba(15, 41, 54, 0.72);
  backdrop-filter: blur(3px);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--teal-dark);
  color: var(--gold-light);
  padding: 16px 22px;
  border-bottom: 2px solid var(--gold-base);
}

.legal-header h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0;
}

.legal-close {
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.legal-body {
  padding: 22px;
  max-height: 75vh;
  overflow-y: auto;
  font-size: 0.92rem;
}

.legal-body h3 {
  font-size: 1rem;
  color: var(--teal-main);
  margin: 16px 0 6px;
}

.legal-body h3:first-child {
  margin-top: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .pillars-grid,
  .steps-grid,
  .team-grid,
  .contact-channels,
  .levers-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--teal-dark);
    border-bottom: 2px solid var(--gold-base);
    padding: 12px 24px 20px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  .ggi-table tbody th {
    width: 36%;
  }
}

@media (max-width: 560px) {
  .hero-frame {
    padding: 36px 16px 32px;
  }

  .team-member {
    flex-direction: column;
    text-align: center;
  }

  .contact-card {
    padding: 26px 18px;
  }

  .ggi-table thead {
    display: none;
  }

  .ggi-table,
  .ggi-table tbody,
  .ggi-table tr,
  .ggi-table th,
  .ggi-table td {
    display: block;
    width: 100%;
  }

  .ggi-table tbody th {
    width: 100%;
    padding-bottom: 4px;
    border-bottom: none;
  }

  .ggi-table tbody td {
    padding-top: 0;
    border-top: none;
  }
}

/* ---------- APPARITIONS AU DÉFILEMENT (SCROLL-REVEAL) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-delay="1"] {
  transition-delay: 0.12s;
}

[data-reveal][data-delay="2"] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ticker-track {
    animation: none;
  }
}
