/*
Theme Name: Burkina Mine Theme
Author: Emmanuel Kamonou
Description: Mon thème personnalisé pour la Révolution Minière.
Version: 1.0
*/


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

:root {
  --noir: #080808;
  --anthracite: #141414;
  --charbon: #1E1C1A;
  --or: #C8860A;
  --or-clair: #E8A020;
  --ambre: #D4500A;
  --ivoire: #F5F0E8;
  --gris-clair: #A0998F;
  --blanc: #FFFFFF;
}

html { scroll-behavior: smooth; }

/* ============================================= */
/* ===== ANIMATIONS & INTERACTIONS (ajout) ====== */
/* ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(38px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes kenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.09); }
}
@keyframes softPulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,134,10,0.35); }
  50%      { box-shadow: 0 0 0 9px rgba(200,134,10,0); }
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@keyframes shimmerSweep {
  0%   { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(220%) skewX(-20deg); }
}
@keyframes underlineDraw {
  from { width: 0; }
  to   { width: 80px; }
}

/* Éléments révélés au scroll : cachés puis animés à l'entrée dans le viewport */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s cubic-bezier(0.16, 0.84, 0.44, 1),
              transform 0.9s cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes directionnelles : à combiner avec .reveal (ex: class="reveal reveal-left") */
.reveal-left {
  transform: translateX(-46px);
}
.reveal-left.in-view {
  transform: translateX(0);
}
.reveal-right {
  transform: translateX(46px);
}
.reveal-right.in-view {
  transform: translateX(0);
}
.reveal-scale {
  transform: scale(0.88);
}
.reveal-scale.in-view {
  transform: scale(1);
}

/* Accent doré animé sous les titres de section, inspiré des soulignements
   qui se dessinent au scroll sur abidjanaisesintech.ci */
.section-title {
  position: relative;
  padding-bottom: 22px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--or), var(--or-clair));
  border-radius: 2px;
}
.section-title.in-view::after {
  animation: underlineDraw 0.9s cubic-bezier(0.16, 0.84, 0.44, 1) 0.35s forwards;
}

/* Effet de balayage lumineux au survol des boutons principaux */
.nav-cta, .btn-primary, .btn-secondary {
  position: relative;
  overflow: hidden;
}
.nav-cta::before, .btn-primary::before, .btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
}
.nav-cta:hover::before, .btn-primary:hover::before, .btn-secondary:hover::before {
  animation: shimmerSweep 0.85s ease forwards;
}

/* Soulignement animé des liens du menu */
.nav-links a:not(.nav-cta) {
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--or-clair);
  transition: width 0.35s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

/* Effet cascade automatique pour les grilles de cartes */
.stagger-grid > .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-grid > .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger-grid > .reveal:nth-child(3) { transition-delay: 0.19s; }
.stagger-grid > .reveal:nth-child(4) { transition-delay: 0.26s; }
.stagger-grid > .reveal:nth-child(5) { transition-delay: 0.33s; }
.stagger-grid > .reveal:nth-child(6) { transition-delay: 0.40s; }
.stagger-grid > .reveal:nth-child(7) { transition-delay: 0.47s; }
.stagger-grid > .reveal:nth-child(8) { transition-delay: 0.54s; }
.stagger-grid > .reveal:nth-child(9) { transition-delay: 0.61s; }

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Trebuchet MS', 'Tamil Sangam MN', sans-serif;
  background: var(--noir);
  color: var(--ivoire);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(8,8,8,0.95), transparent);
  transition: background 0.3s;
}
nav.scrolled {
  background: rgba(8,8,8,0.97);
  border-bottom: 1px solid rgba(200,134,10,0.2);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-logo img { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nav-logo:hover img { transform: rotate(8deg) scale(1.06); }
/*.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--or);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
}*/
.nav-logo-text {
  font-family: 'Tamil Sangam MN', 'Trebuchet MS', sans-serif;
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--ivoire);
}
.nav-logo-text span { color: var(--or); }
.nav-links {
  display: flex;
  gap: 15px;
  list-style: none;
}
.nav-links a {
  color: var(--gris-clair);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--or-clair); }
.nav-cta {
  background: var(--or);
  color: var(--noir) !important;
  padding: 10px 24px;
  border-radius: 2px;
  font-weight: 600 !important;
  color: var(--noir) !important;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-cta:hover {
  background: var(--or-clair) !important;
  color: var(--noir) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200,134,10,0.35);
}

/* BOUTON BURGER */
.nav-toggle {
display: none;
flex-direction: column;
justify-content: center;
gap: 5px;
width: 32px;
height: 32px;
background: none;
border: none;
cursor: pointer;
z-index: 110;
padding: 0;
}
.nav-toggle span {
display: block;
width: 100%;
height: 2px;
background: var(--ivoire);
transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* TABLETTE + TÉLÉPHONE */
@media (max-width: 992px) {
nav { padding: 18px 24px; }

.nav-toggle { display: flex; }

.nav-links {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(75vw, 320px);
  background: rgba(8, 8, 8, 0.98);
  border-left: 1px solid rgba(200, 134, 10, 0.2);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  padding: 40px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.nav-links.active {
  transform: translateX(0);
}
.nav-links a {
  font-size: 14px;
}
}

/* Menu plein écran sur petit téléphone */
@media (max-width: 480px) {
.nav-links { width: 100vw; }
}

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding: 0 0 80px 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/BANNNIERE-BM@4x-100.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  animation: kenBurns 22s ease-in-out infinite alternate;
}
.hero-content {
  position: relative;
  z-index: 4;
  padding: 0 60px;
  max-width: 1200px;
  width: 100%;
}
.hero-overlay {
  position: relative;
  z-index: 3; /* Met le texte au-dessus de l'image et des particules */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* TABLETTE — jusqu'à 992px */
  @media (max-width: 992px) {
.hero-bg {
  background-image: url("images/BANNIERE-BM-tablette.jpg");
}
}

/* TÉLÉPHONE — jusqu'à 576px */
@media (max-width: 576px) {
.hero-bg {
  background-image: url("images/BANNIERE-BM-mobile.jpg");
}
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8,8,8,0.05) 0%,
    rgba(8,8,8,0.05) 70%,
    rgba(8,8,8,0.7) 90%,
    rgba(8,8,8,0.95) 100%
  );
}

/* Ligne d'horizon — signature 
.horizon-line {
  position: absolute;
  top: 52%;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--or) 20%, var(--or-clair) 50%, var(--or) 80%, transparent 100%);
  opacity: 0.35;
  animation: pulse-line 4s ease-in-out infinite;
}
.horizon-glow {
  position: absolute;
  top: calc(52% - 30px);
  left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(200,134,10,0.06) 50%, transparent);
  animation: pulse-line 4s ease-in-out infinite;
}*/
@keyframes pulse-line {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.65; }
}

/* Particules 
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--or);
  opacity: 0;
  animation: float-up var(--dur, 6s) var(--delay, 0s) ease-in infinite;
}
@keyframes float-up {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.1; }
  100% { transform: translateY(-200px) scale(0.3); opacity: 0; }
}



.btn-primary {
  background: var(--or);
  color: var(--noir);
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--or-clair); transform: translateY(-1px); }
.btn-secondary {
  border: 1px solid rgba(200,134,10,0.4);
  color: var(--or-clair);
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--or); background: rgba(200,134,10,0.08); } */

/* SCROLL INDICATOR */
.hero-cta-bottom {
  position: relative;
  z-index: 3;
  padding: 0 60px 64px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  right: 60px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1.4s ease 0.8s forwards, gentleFloat 3.5s ease-in-out 2.2s infinite;
}
.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gris-clair);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--or), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.4); transform-origin: top; }
}

/* SECTION BASE */
section { padding: 100px 60px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--or);
}
.section-title {
  font-family: 'Tamil Sangam MN', 'Trebuchet MS', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 1px;
  color: var(--ivoire);
  margin-bottom: 20px;
}
.section-lead {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gris-clair);
  max-width: 600px;
}

/* À PROPOS */
#apropos { background: var(--anthracite); 
  clear: both;
  position: relative;
  z-index: 10;
  margin-top: 0;
  padding-top: 80px; }
.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 64px;
}
.apropos-visual {
  position: relative;
}
.apropos-card {
  background: var(--charbon);
  border: 1px solid rgba(200,134,10,0.15);
  border-radius: 4px;
  padding: 40px;
  transition: transform 0.45s cubic-bezier(0.16, 0.84, 0.44, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.apropos-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,134,10,0.35);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.apropos-card-title {
  font-family: 'Tamil Sangam MN', 'Trebuchet MS', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--or);
  margin-bottom: 16px;
}
.apropos-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gris-clair);
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.stat-box {
  background: rgba(200,134,10,0.06);
  border: 1px solid rgba(200,134,10,0.2);
  border-radius: 3px;
  padding: 24px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16, 0.84, 0.44, 1), border-color 0.4s ease, background 0.4s ease;
}
.stat-box:hover {
  transform: translateY(-5px);
  border-color: rgba(200,134,10,0.5);
  background: rgba(200,134,10,0.1);
}
.stat-num {
  font-family: 'Tamil Sangam MN', 'Trebuchet MS', sans-serif;
  font-size: 40px;
  color: var(--or);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris-clair);
}
.vision-list { margin-top: 32px; }
.vision-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(200,134,10,0.08);
  transition: transform 0.35s ease;
}
.vision-item:last-child { border-bottom: none; }
.vision-item:hover { transform: translateX(8px); }
.vision-icon {
  width: 8px;
  height: 8px;
  background: var(--or);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
  animation: softPulseRing 2.8s ease-in-out infinite;
}
.vision-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gris-clair);
}
.vision-text strong { color: var(--ivoire); font-weight: 600; }

/* THÉMATIQUES */
#thematiques { background: var(--noir); }
.axes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 64px;
  border: 1px solid rgba(200,134,10,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.axe-card {
  background: var(--charbon);
  padding: 48px 40px;
  border: 1px solid rgba(200,134,10,0.05);
  transition: background 0.3s, transform 0.45s cubic-bezier(0.16, 0.84, 0.44, 1), box-shadow 0.45s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.axe-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--or);
  transition: height 0.4s;
}
.axe-card:hover {
  background: rgba(30,28,26,1);
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.4);
  z-index: 2;
}
.axe-card:hover::before { height: 100%; }
.axe-num {
  font-family: 'Tamil Sangam MN', 'Trebuchet MS', sans-serif;
  font-size: 56px;
  color: rgba(200,134,10,0.12);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.4s ease, transform 0.4s ease;
}
.axe-card:hover .axe-num {
  color: rgba(200,134,10,0.3);
  transform: translateX(4px);
}
.axe-title {
  font-family: 'Tamil Sangam MN', 'Trebuchet MS', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ivoire);
  margin-bottom: 16px;
}
.axe-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.axe-items li {
  font-size: 14px;
  color: var(--gris-clair);
  padding-left: 18px;
  position: relative;
}
.axe-items li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--or);
  font-size: 11px;
}

.focus-banner {
  margin-top: 2px;
  background: linear-gradient(135deg, rgba(200,134,10,0.12), rgba(212,80,10,0.08));
  border: 1px solid rgba(200,134,10,0.25);
  border-radius: 4px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.focus-banner:hover {
  border-color: rgba(200,134,10,0.5);
  transform: translateY(-4px);
}
.focus-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 12px;
}
.focus-title {
  font-family: 'Tamil Sangam MN', 'Trebuchet MS', sans-serif;
  font-size: 36px;
  letter-spacing: 1px;
  color: var(--ivoire);
}
.pays-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pays-tag {
  background: rgba(200,134,10,0.1);
  border: 1px solid rgba(200,134,10,0.25);
  border-radius: 2px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--or-clair);
  display: inline-block;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.pays-tag:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(200,134,10,0.2);
  border-color: var(--or);
}

/* PROGRAMME */
#programme { background: var(--anthracite); }
.programme-timeline {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid rgba(200,134,10,0.2);
  padding-left: 40px;
  margin-left: 20px;
}
.timeline-item {
  position: relative;
  padding-bottom: 48px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -49px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--or);
  border: 3px solid var(--anthracite);
  animation: softPulseRing 2.6s ease-in-out infinite;
}
.timeline-item { transition: transform 0.35s ease; }
.timeline-item:hover { transform: translateX(6px); }
.timeline-time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 8px;
}
.timeline-title {
  font-family: 'Tamil Sangam MN', 'Trebuchet MS', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ivoire);
  margin-bottom: 10px;
}
.timeline-desc {
  font-size: 15px;
  color: var(--gris-clair);
  line-height: 1.7;
  max-width: 560px;
}
/* --- MISE EN PAGE DU PROGRAMME CÔTE À CÔTE --- */
.programme-split {
  display: flex;
 align-items: flex-start;  
 justify-content: space-between;
  gap: 60px;                
 margin-top: 40px;
}

.programme-left-content {
  flex: 1.2;              
}

.programme-right-image {
flex: 0.8;               
/* position: sticky; */
top: 100px; }       

.programme-right-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;       
  border: 1px solid rgba(200, 134, 10, 0.25); 
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); 
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 720px) {
.programme-split {
  flex-direction: column; 
  gap: 40px;
}

.programme-right-image {
  display: none;
  /*width: 100%;
  max-width: 450px;      
  margin: 0 auto;        
  position: static;    */   
}
}



/* PARTICIPANTS */
#participants { background: var(--noir); }
.participants-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.participant-col {
  background: var(--charbon);
  padding: 32px 24px;
  transition: background 0.4s ease, transform 0.4s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.participant-col:hover {
  background: rgba(30,28,26,1);
  transform: translateY(-6px);
}
.pcol-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200,134,10,0.2);
}
.pcol-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pcol-list li {
  font-size: 13px;
  color: var(--gris-clair);
  line-height: 1.4;
}

.raisons-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}
.raison-card {
  background: var(--charbon);
  border: 1px solid rgba(200,134,10,0.1);
  border-radius: 3px;
  padding: 32px;
  flex: 1 1 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  transition: border-color 0.4s ease, transform 0.45s cubic-bezier(0.16, 0.84, 0.44, 1), box-shadow 0.45s ease;
}
@media (max-width: 900px) {
  .raison-card {
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}
@media (max-width: 560px) {
  .raison-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
.raison-card:hover {
  border-color: rgba(200,134,10,0.4);
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.4);
}
.raison-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(200,134,10,0.16), rgba(212,80,10,0.08));
  border: 1px solid rgba(200,134,10,0.3);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.raison-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--or-clair);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}
.raison-card:hover .raison-icon {
  transform: scale(1.1) rotate(-6deg);
  background: linear-gradient(135deg, rgba(200,134,10,0.3), rgba(212,80,10,0.16));
  border-color: var(--or);
  box-shadow: 0 10px 26px rgba(200,134,10,0.28);
}
.raison-card:hover .raison-icon svg { stroke: var(--or); }
.raison-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--ivoire);
  line-height: 1.5;
}

/* INSCRIPTION */
#inscription {
  background: linear-gradient(135deg, #10090A, #16110A, #0A0A08);
  position: relative;
  overflow: hidden;
}
#inscription::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,134,10,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.inscription-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.inscription-inner .section-tag {
  justify-content: center;
}
.inscription-inner .section-tag::before { display: none; }
.inscription-inner .section-title { margin-bottom: 16px; }
.inscription-inner .section-lead {
  max-width: 100%;
  text-align: center;
  margin: 0 auto 48px;
  font-size: 17px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.contact-box {
  background: rgba(200,134,10,0.06);
  border: 1px solid rgba(200,134,10,0.2);
  border-radius: 3px;
  padding: 28px;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.16, 0.84, 0.44, 1), border-color 0.4s ease, background 0.4s ease;
}
.contact-box:hover {
  transform: translateY(-5px);
  border-color: rgba(200,134,10,0.45);
  background: rgba(200,134,10,0.1);
}
.contact-box-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 10px;
}
.contact-box-value {
  font-size: 16px;
  color: var(--ivoire);
  font-weight: 400;
}
.organisateur-line {
  font-size: 13px;
  color: var(--gris-clair);
  letter-spacing: 1px;
  margin-bottom: 36px;
}
.organisateur-line strong { color: var(--or); }
#inscription-form {
display: flex;
flex-direction: column;
gap: 15px;
max-width: 400px;
margin: 40px auto;
padding: 20px;
background: var(--anthracite);
border-radius: 4px;
}

#inscription-form h3 {
color: var(--or);
font-family: 'Tamil Sangam MN', 'Trebuchet MS', sans-serif;
letter-spacing: 2px;
margin-bottom: 10px;
}

#inscription-form input {
padding: 15px;
background: var(--noir);
border: 1px solid var(--gris-clair);
color: var(--ivoire);
font-family: 'Trebuchet MS', 'Tamil Sangam MN', sans-serif;
border-radius: 2px;
transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
#inscription-form input:focus {
transform: translateY(-1px);
box-shadow: 0 0 0 3px rgba(200,134,10,0.15);
}

#inscription-form input:focus {
outline: none;
border-color: var(--or);
}

/* FOOTER */
footer {
  background: var(--noir);
  border-top: 1px solid rgba(200,134,10,0.1);
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Tamil Sangam MN', 'Trebuchet MS', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--gris-clair);
}
.footer-logo span { color: var(--or); }
.footer-motto {
  font-size: 12px;
  font-style: italic;
  color: rgba(160,153,143,0.6);
  max-width: 380px;
  text-align: center;
  line-height: 1.6;
}
.footer-date {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris-clair);
}

/* RESPONSIVE */
@media (max-width: 720px) {
  nav { padding: 20px 24px; }
  section { padding: 72px 24px; }
  .hero-content { padding: 0 24px; }
  .apropos-grid { grid-template-columns: 1fr; gap: 40px; }
  .axes-grid { grid-template-columns: 1fr; }
  .participants-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .footer-motto { display: none; }
  .hero-title { font-size: 52px; }
  .hero-meta { flex-wrap: wrap; gap: 20px; }
  .focus-banner { flex-direction: column; }
  .hero-cta-bottom {
  position: relative;
  z-index: 3;
  padding: 0 60px 64px;
  justify-content: center;
  display: flex;
  gap: 16px;
  align-items: center;  }
}
/* --- SECTION GALERIE PHOTOS (STYLE MASONRY / PINTEREST) --- */
#galerie {
padding: 100px 0;
background: var(--noir);
}

.gallery-grid {
/* On remplace le grid par un système de colonnes fluides */
column-count: 3;    /* 3 colonnes de photos sur grand écran */
column-gap: 24px;   /* Espace horizontal entre les colonnes */
margin-top: 48px;
max-width: 1100px;  /* Limite la largeur globale pour un rendu compact et élégant */
margin-left: auto;  /* Centre automatiquement la galerie */
margin-right: auto;
}

.gallery-item {
position: relative;
overflow: hidden; 
border-radius: 4px;
border: 1px solid rgba(200, 134, 10, 0.15); 
background: var(--anthracite);
cursor: pointer;

/* --- LES DEUX LIGNES CRUCIALES POUR LE STYLE PINTEREST --- */
margin-bottom: 24px;  /* Crée l'espace vertical entre les photos */
break-inside: avoid;  /* Empêche absolument une image de se couper en deux entre deux colonnes */
}

.gallery-item img {
width: 100%;
height: auto;         /* MAGIQUE : L'image garde sa proportion exacte (verticale ou horizontale) */
display: block;       /* Supprime un petit espace vide technique sous l'image */
transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
filter: grayscale(15%); 
}

/* --- EFFETS AU SURVOL (HOVER) --- */
.gallery-item:hover img {
transform: scale(1.04); /* Un zoom très léger qui respecte le cadrage d'origine */
filter: grayscale(0%);  
}

/* Ajout d'un cadre doré interne lumineux au survol */
.gallery-item::after {
content: '';
position: absolute;
inset: 0;
border: 2px solid var(--or);
opacity: 0;
border-radius: 4px;
transition: opacity 0.4s ease;
pointer-events: none; 
}

.gallery-item:hover::after {
opacity: 1; 
}

/* --- ADAPTATION ÉCRANS TABLETTES --- */
@media (max-width: 992px) {
.gallery-grid {
  column-count: 2;   /* On passe à 2 colonnes sur tablette */
  column-gap: 16px;
}
.gallery-item {
  margin-bottom: 16px;
}
}

/* --- ADAPTATION ÉCRANS TÉLÉPHONES --- */
@media (max-width: 576px) {
.gallery-grid {
  column-count: 1;   /* Tout s'empile proprement sur une seule colonne sur mobile */
  padding: 0 20px;   /* Petite marge de sécurité sur les côtés du téléphone */
}
}

/* --- CRÉDITS FOOTER KT DIGIT --- */
.footer-credits {
text-align: center;
padding: 20px 0;
font-size: 12px;                  /* Écriture petite et discrète */
color: var(--gris-clair);         /* Utilise ta couleur de texte secondaire */
letter-spacing: 1px;              /* Espacement des lettres élégant */
border-top: 1px solid rgba(255, 255, 255, 0.05); /* Fine ligne de séparation noire/gris très subtile */
margin-top: 40px;
}

.footer-credits a {
color: var(--or);                 /* Le nom KT DIGIT s'affiche avec ta couleur dorée */
text-decoration: none;            /* Supprime le soulignement vilain par défaut */
font-weight: 600;                 /* Un poil plus épais pour ressortir */
transition: color 0.3s ease;
}

/* Effet au survol du lien */
.footer-credits a:hover {
color: #ffffff;                   /* Devient blanc lumineux quand on passe la souris dessus */
text-shadow: 0 0 8px rgba(200, 134, 10, 0.3); /* Léger reflet doré */
}

/* --- STYLE DU COMPTE À REBOURS --- */
.countdown-wrapper {
margin: 40px auto;
width: 100%;
}

.countdown-container {
display: flex;
justify-content: center;
align-items: center;
gap: 20px; /* Espace entre les boîtes */
}

.countdown-box {
background: var(--anthracite);
border: 1px solid rgba(200, 134, 10, 0.25); /* Fine bordure dorée */
border-radius: 6px;
padding: 15px 10px;
min-width: 95px; /* S'assure que toutes les boîtes ont la même largeur */
text-align: center;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); /* Ombre pour donner du relief */
transition: transform 0.35s cubic-bezier(0.16, 0.84, 0.44, 1), border-color 0.35s ease;
animation: gentleFloat 4.5s ease-in-out infinite;
}
.countdown-box:nth-child(2) { animation-delay: 0.15s; }
.countdown-box:nth-child(3) { animation-delay: 0.3s; }
.countdown-box:nth-child(4) { animation-delay: 0.45s; }
.countdown-box:hover {
transform: translateY(-4px);
border-color: rgba(200, 134, 10, 0.55);
}

/* Le chiffre du chrono */
.countdown-box span[id^="countdown-"] {
display: block;
font-family: 'Tamil Sangam MN', 'Trebuchet MS', sans-serif; /* Reprend la police de tes grands titres */
font-size: 60px;
color: var(--or); /* Ta couleur dorée */
line-height: 1;
font-weight: bold;
}

/* Les textes sous les chiffres */
.countdown-label {
display: block;
font-size: 15px;
text-transform: uppercase;
color: var(--gris-clair);
letter-spacing: 1px;
margin-top: 8px;
}

/* --- ADAPTATION ÉCRANS MOBILES --- */
@media (max-width: 576px) {
.countdown-container {
  gap: 10px; /* On resserre les boîtes sur téléphone */
}
.countdown-box {
  padding: 10px 5px;
  min-width: 75px; /* Boîtes plus petites sur smartphone */
}
.countdown-box span[id^="countdown-"] {
  font-size: 30px; /* Chiffres plus petits */
}
.countdown-label {
  font-size: 9px;
}
}

/* ============================================= */
/* ===== EFFET CARTES EMPILÉES VIA GSAP JS ===== */
/* ============================================= */

/* On nettoie les premières sections : flux normal complet */
#apropos,
#thematiques,
#programme {
  position: relative;
  z-index: 1;
}

/* La section Participants est gérée par JS, on lui remet un comportement naturel */
#participants {
  position: relative;
  z-index: 1;
  background: var(--noir);
  max-height: none;       /* Libéré : la section prend toute la place nécessaire */
  overflow-y: visible;    /* Plus aucun scroll interne vilain */
}

/* La Galerie arrive avec ses ombres et ses bords arrondis pour recouvrir les participants */
#galerie {
  position: relative;
  z-index: 2; /* Passe au-dessus de l'élément épinglé */
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -40px 70px rgba(0,0,0,0.55);
  background: var(--noir);
}

/* L'inscription et le footer suivent normalement */
#inscription {
  position: relative;
  z-index: 3;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -40px 70px rgba(0,0,0,0.55);
  background: linear-gradient(135deg, #10090A, #16110A, #0A0A08);
}

footer {
  position: relative;
  z-index: 4;
  background: var(--noir);
}

/* Reset propre sur mobile */
@media (max-width: 720px) {
  #galerie,
  #inscription {
    border-radius: 0;
    box-shadow: none;
  }
}

.stat-num {
  font-variant-numeric: tabular-nums; /* Empêche les chiffres de trembler horizontalement pendant l'animation */
  /* ... (conserve le reste de tes propriétés pour cette classe) ... */
}

/* --- POP-UP COOKIES --- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  background: var(--charbon);
  border: 1px solid rgba(200, 134, 10, 0.3);
  border-radius: 6px;
  padding: 20px 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  z-index: 9999; /* S'assure qu'il est au-dessus de tout le reste */
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cookie-text strong {
  display: block;
  color: var(--or);
  font-family: 'Tamil Sangam MN', 'Trebuchet MS', sans-serif;
  font-size: 16px;
  margin-bottom: 8px;
}

.cookie-text p {
  font-size: 13px;
  color: var(--gris-clair);
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: var(--ivoire);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

/* Adaptation Mobile */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }
  .cookie-actions button {
    width: 100%;
  }
}