/* FICHIER : dangote-group/assets/css/main.css */
/* Variables CSS, reset, typographie globale — Dangote Group */

/* ══════════════════════════════════════════
   VARIABLES CSS — DESIGN SYSTEM
   ══════════════════════════════════════════ */
:root {
  /* Fonds */
  --color-black:      #0A0A0A;  /* Black Crude — fond principal */
  --color-dark:       #111111;  /* Dark Rig */
  --color-dark-2:     #1A1A1A;  /* Steel Dark — cards */
  --color-dark-3:     #232323;  /* Graphite — borders */
  --color-mid:        #333333;  /* Mid dark */

  /* Accent principal — Dangote Gold */
  --color-gold:       #C8972A;
  --color-gold-light: #E8B84B;
  --color-gold-dark:  #8A6219;

  /* Texte */
  --color-ivory:      #F5F0E8;  /* Titres principaux */
  --color-text:       #CCCCCC;  /* Texte principal */
  --color-text-dim:   #888888;  /* Texte secondaire */

  /* Fonctionnels */
  --color-success:    #27AE60;
  --color-danger:     #C0392B;
  --color-info:       #2980B9;
  --color-warning:    #F39C12;
  --color-nigeria:    #1A4A2E;  /* Vert Nigeria */

  /* Typographie */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono:        'IBM Plex Mono', 'Courier New', monospace;

  /* Espacements */
  --section-padding:  80px 0;
  --container-max:    1280px;
  --container-pad:    clamp(16px, 4vw, 40px);

  /* En-tête fixe — hauteurs utilisées pour le padding-top du body */
  --ticker-h:         36px;   /* Hauteur du bandeau boursier */
  --nav-h:            72px;   /* Hauteur de la navigation principale */
  --header-h:         108px;  /* Total = --ticker-h + --nav-h */

  /* Transitions */
  --transition-fast:  0.15s ease;
  --transition-base:  0.25s ease;
  --transition-slow:  0.4s ease;

  /* Ombres */
  --shadow-gold:      0 4px 24px rgba(200, 151, 42, 0.15);
  --shadow-card:      0 2px 16px rgba(0, 0, 0, 0.4);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  /* Ensure anchor links scroll to the right position below the fixed header */
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Push all content below the fixed ticker + nav */
  padding-top: var(--header-h);
}

/* ══════════════════════════════════════════
   TYPOGRAPHIE
   ══════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-ivory);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
}

h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

h5 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 1em;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold-light);
}

strong, b {
  font-weight: 600;
  color: var(--color-ivory);
}

em, i {
  font-style: italic;
}

/* Labels mono */
.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* ══════════════════════════════════════════
   CONTENEUR
   ══════════════════════════════════════════ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}

.container--narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ══════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════ */
.section {
  padding: var(--section-padding);
}

.section--dark {
  background-color: var(--color-dark);
}

.section--darker {
  background-color: var(--color-dark-2);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .label-mono {
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-dim);
  font-size: 1rem;
}

/* Séparateur doré */
.gold-divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 16px auto 0;
}

.gold-divider--left {
  margin-left: 0;
}

/* ══════════════════════════════════════════
   GRILLES
   ══════════════════════════════════════════ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

/* ══════════════════════════════════════════
   TICKER BOURSIER (bandeau)
   ══════════════════════════════════════════ */
.ticker-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ticker-h);
  background: var(--color-dark-2);
  border-bottom: 1px solid var(--color-dark-3);
  overflow: hidden;
  z-index: 1001;   /* above nav (z-index 1000) */
  display: flex;
  align-items: center;
}

/* Override container inside ticker to span full width */
.ticker-bar .container {
  max-width: none;
  padding: 0;
  overflow: hidden;
  width: 100%;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  will-change: transform;
  padding: 0 16px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
}

.ticker-symbol {
  color: var(--color-gold);
  font-weight: 600;
}

.ticker-price {
  color: var(--color-ivory);
}

.ticker-change--up   { color: var(--color-success); }
.ticker-change--down { color: var(--color-danger); }

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

/* ══════════════════════════════════════════
   HERO — BASE
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-black);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.9) 0%,
    rgba(10,10,10,0.7) 50%,
    rgba(10,10,10,0.85) 100%
  );
  z-index: 1;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  padding-top: 40px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-gold);
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--color-ivory);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  max-width: 800px;
}

.hero__title span {
  color: var(--color-gold);
}

.hero__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 28px;
}

.hero__description {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-text);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ══════════════════════════════════════════
   PAGE HERO (sous-pages)
   ══════════════════════════════════════════ */
.page-hero {
  padding: 60px 0 60px;
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
  border-bottom: 1px solid var(--color-dark-3);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,151,42,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--color-ivory);
  margin-bottom: 16px;
}

.page-hero__description {
  font-size: 1.05rem;
  color: var(--color-text-dim);
  max-width: 600px;
  line-height: 1.75;
}

/* ══════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--color-text-dim);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb__sep {
  color: var(--color-dark-3);
}

.breadcrumb__current {
  color: var(--color-gold);
}

/* ══════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════ */
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-dim);
  background: var(--color-dark-2);
  border: 1px solid var(--color-dark-3);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination-btn:hover {
  color: var(--color-gold);
  border-color: var(--color-gold-dark);
  background: rgba(200,151,42,0.07);
}

.pagination-btn--active {
  color: var(--color-black) !important;
  background: var(--color-gold) !important;
  border-color: var(--color-gold) !important;
}

/* ══════════════════════════════════════════
   MESSAGES (alertes)
   ══════════════════════════════════════════ */
.alert {
  padding: 14px 20px;
  font-size: 14px;
  border-left: 3px solid;
  margin-bottom: 20px;
}

.alert--success {
  background: rgba(39, 174, 96, 0.1);
  border-color: var(--color-success);
  color: var(--color-success);
}

.alert--danger {
  background: rgba(192, 57, 43, 0.1);
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.alert--info {
  background: rgba(41, 128, 185, 0.1);
  border-color: var(--color-info);
  color: var(--color-info);
}

/* ══════════════════════════════════════════
   UTILITAIRES
   ══════════════════════════════════════════ */
.text-gold     { color: var(--color-gold); }
.text-ivory    { color: var(--color-ivory); }
.text-dim      { color: var(--color-text-dim); }
.text-center   { text-align: center; }
.text-left     { text-align: left; }
.text-right    { text-align: right; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════════
   SCROLL REVEAL (état initial)
   ══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════════
   CHARGEMENT (loader)
   ══════════════════════════════════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.page-loader.loaded {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-gold);
  letter-spacing: 4px;
  animation: loader-pulse 1.2s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ══════════════════════════════════════════
   SELECTION DE TEXTE
   ══════════════════════════════════════════ */
::selection {
  background: rgba(200, 151, 42, 0.3);
  color: var(--color-ivory);
}

/* ══════════════════════════════════════════
   SCROLLBAR PERSONNALISÉE
   ══════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-black);
}

::-webkit-scrollbar-thumb {
  background: var(--color-dark-3);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dark);
}
