/* ================================================================
   CADASTRE MINIER - PORTAIL DAMANDA
   Styles pour l'harmonisation avec Simandou 2040
   Version: 1.0
   ================================================================ */

/* ===== Hero Carousel ===== */
.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Flèches de navigation */
.hero-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 1.5rem;
  backdrop-filter: blur(5px);
}

.hero-carousel-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.hero-carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-carousel-prev {
  left: 20px;
}

.hero-carousel-next {
  right: 20px;
}

.hero-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  will-change: transform;
}

.hero-carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Assurer la visibilité du contenu dans les slides actifs */
.hero-carousel-slide.active .hero-image-minerals {
  opacity: 1;
  visibility: visible;
  display: block;
}

.hero-carousel-slide.active .minerals-showcase {
  opacity: 1;
  visibility: visible;
  display: grid;
}

.hero-carousel-slide.active .mineral-card {
  opacity: 1;
  visibility: visible;
}

/* Style pour hero-image-minerals */
.hero-image-minerals {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: var(--primary-mineral);
  font-size: 1.5rem;
}

.hero-carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.hero-carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-carousel-prev {
  left: 10px;
}

.hero-carousel-next {
  right: 10px;
}

.hero-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 0;
}

.hero-carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.hero-carousel-indicator.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 1);
  width: 30px;
  border-radius: 6px;
}

/* Masquer hero-image-minerals sur les petits écrans et améliorer la visibilité des textes */
@media (max-width: 992px) {
  /* Masquer les images et leur conteneur */
  .hero-carousel-slide .hero-image-minerals {
    display: none !important;
  }
  
  /* Masquer la colonne qui contient les images */
  .hero-carousel-slide .col-lg-6:has(.hero-image-minerals),
  .hero-carousel-slide .row > .col-lg-6:last-of-type:not(:first-of-type) {
    display: none !important;
  }
  
  /* Faire prendre toute la largeur à la colonne de texte */
  .hero-carousel-slide .col-lg-6:first-child {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Centrer le contenu verticalement et horizontalement */
  .hero-carousel-slide .row {
    justify-content: center !important;
    align-items: center !important;
    min-height: 60vh;
    margin: 0 !important;
    padding: 40px 15px !important;
  }
  
  /* Optimiser le contenu pour les petits écrans */
  .hero-carousel-slide .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  /* Titre principal - plus grand et plus visible */
  .hero-carousel-slide .hero-title-modern {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.5px;
  }
  
  /* Texte descriptif - bien visible */
  .hero-carousel-slide .text-muted-light {
    font-size: 1.15rem !important;
    line-height: 1.7 !important;
    margin-bottom: 2.5rem !important;
    color: rgba(255, 255, 255, 0.98) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 0, 0, 0.2) !important;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Boutons - bien espacés et visibles */
  .hero-carousel-slide .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-carousel-slide .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 768px) {
  .hero-carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .hero-carousel-prev {
    left: 10px;
  }

  .hero-carousel-next {
    right: 10px;
  }
  
  /* Ajustements spécifiques pour les très petits écrans */
  .hero-carousel-slide .row {
    min-height: 50vh;
    padding: 30px 15px !important;
  }
  
  .hero-carousel-slide .hero-title-modern {
    font-size: 1.8rem !important;
    margin-bottom: 1.2rem !important;
    padding: 0 10px;
  }
  
  .hero-carousel-slide .text-muted-light {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    padding: 0 10px;
  }
  
  .hero-carousel-slide .hero-buttons {
    gap: 1rem;
    padding: 0 15px;
  }
  
  .hero-carousel-slide .hero-buttons .btn {
    max-width: 100%;
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  /* Ajustements pour les très petits écrans (smartphones) */
  .hero-carousel-slide .row {
    min-height: 45vh;
    padding: 25px 10px !important;
  }
  
  .hero-carousel-slide .hero-title-modern {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    padding: 0 5px;
    line-height: 1.2 !important;
  }
  
  .hero-carousel-slide .text-muted-light {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.8rem !important;
    padding: 0 5px;
  }
  
  .hero-carousel-slide .hero-buttons {
    gap: 0.8rem;
    padding: 0 10px;
  }
  
  .hero-carousel-slide .hero-buttons .btn {
    padding: 11px 20px;
    font-size: 0.9rem;
  }
}

/* ===== Palette Simandou 2040 - Harmonisée ===== */
:root {
  --primary-mineral: #2c3e50;
  --secondary-mineral: #34495e;
  --accent-gold: #f39c12;
  --accent-diamond: #3498db;
  --accent-bauxite: #e67e22;
  --accent-iron: #95a5a6;
  --gradient-hero: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --gradient-gold: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
  --gradient-diamond: linear-gradient(135deg, #667eea 0%, #00d4ff 100%);
  --gradient-bauxite: linear-gradient(135deg, #f37335 0%, #fdc830 100%);
  --gradient-iron: linear-gradient(135deg, #757F9A 0%, #D7DDE8 100%);
}

/* ===== Hero Section - Slideshow ===== */
.hero-slider-section {
  position: relative;
  overflow: hidden;
  max-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-slider-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 47, 92, 0.65), rgba(14, 47, 92, 0.4));
  z-index: 1;
}

.hero-slider-section .container {
  position: relative;
  z-index: 2;
}

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroFadeSlide 18s infinite ease-in-out;
  animation-fill-mode: both;
  opacity: 0;
}

.hero-slide-1 {
  background-image: url("../../admin-assets/img/simandou-1.jpeg");
  animation-delay: 0s;
}

.hero-slide-2 {
  background-image: url("../../admin-assets/img/simandou-2.jpeg");
  animation-delay: 6s;
}

.hero-slide-3 {
  background-image: url("../../admin-assets/img/simandou-3.jpeg");
  animation-delay: 12s;
}

@keyframes heroFadeSlide {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  6% {
    opacity: 1;
  }
  30% {
    opacity: 1;
    transform: scale(1.04);
  }
  38% {
    opacity: 0.45;
  }
  44% {
    opacity: 0;
    transform: scale(1.08);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
}

.hero-title-modern {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary-mineral);
  line-height: 1.2;
  position: relative;
}

.hero-slider-section .hero-title-modern {
  color: #ffffff;
}

.hero-slider-section .text-muted-light {
  color: rgba(255, 255, 255, 0.85);
}

/* Effet de soulignement animé */
.hero-title-modern::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-diamond));
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.hero-title-modern[data-aos].aos-animate::after {
  width: 120px;
}

.text-muted-light {
  font-size: 1.1rem;
  color: #6c757d;
  line-height: 1.8;
}

/* ===== Boutons harmonisés ===== */
.btn-mineral-primary {
  background: var(--primary-mineral);
  color: white;
  padding: 12px 30px;
  border: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Effet de vague au survol */
.btn-mineral-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--secondary-mineral);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.btn-mineral-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-mineral-primary:hover {
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(44, 62, 80, 0.3);
}

.btn-mineral-primary i {
  transition: transform 0.3s ease;
}

.btn-mineral-primary:hover i {
  transform: translateX(5px);
}

.btn-outline-mineral {
  border: 2px solid var(--primary-mineral);
  color: var(--primary-mineral);
  padding: 10px 30px;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.btn-outline-mineral::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-mineral);
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn-outline-mineral:hover::before {
  left: 0;
}

.btn-outline-mineral:hover {
  color: white;
  border-color: var(--primary-mineral);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.2);
}

/* ===== Showcase Mineraux dans Hero ===== */
.minerals-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
}

.mineral-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Animation initiale pour les cartes minerais - Style Simandou 2040 */
.mineral-card-animated {
  transform: translateY(30px) scaleY(1.1);
  opacity: 0;
  transform-origin: 50% 50%;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mineral-card-animated[data-aos].aos-animate {
  transform: translateY(0) scaleY(1);
  opacity: 1;
  transform-origin: 50% 50%;
}

/* Forcer la visibilité des cartes dans les slides actifs du carousel */
.hero-carousel-slide.active .mineral-card-animated {
  transform: translateY(0) scaleY(1);
  opacity: 1;
  transform-origin: 50% 50%;
}

/* Animation pour le titre - Effet Simandou 2040 */
.hero-title-modern[data-aos] {
  transform: translateY(30px) scaleY(1.1);
  opacity: 0;
  transform-origin: 50% 50%;
}

.hero-title-modern[data-aos].aos-animate {
  transform: translateY(0) scaleY(1);
  opacity: 1;
  transform-origin: 50% 50%;
}

/* Animation pour le paragraphe */
.text-muted-light[data-aos] {
  transform: translateY(30px) scaleY(1.1);
  opacity: 0;
  transform-origin: 50% 50%;
}

.text-muted-light[data-aos].aos-animate {
  transform: translateY(0) scaleY(1);
  opacity: 1;
  transform-origin: 50% 50%;
}

/* Animation pour les boutons */
.hero-buttons[data-aos] {
  transform: translateY(30px) scaleY(1.1);
  opacity: 0;
  transform-origin: 50% 50%;
}

.hero-buttons[data-aos].aos-animate {
  transform: translateY(0) scaleY(1);
  opacity: 1;
  transform-origin: 50% 50%;
}

.mineral-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Effet de brillance au survol */
.mineral-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.mineral-card:hover::before {
  opacity: 1;
  left: 100%;
}

.mineral-icon {
  width: 92px;
  height: 92px;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.mineral-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Animation de pulsation au hover */
.mineral-card:hover .mineral-icon {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mineral-card:hover .mineral-icon img {
  transform: scale(1.05);
}

.gold-gradient {
  background: var(--gradient-gold);
}

.diamond-gradient {
  background: var(--gradient-diamond);
}

.bauxite-gradient {
  background: var(--gradient-bauxite);
}

.iron-gradient {
  background: var(--gradient-iron);
}

.mineral-card h5 {
  font-weight: 600;
  color: var(--primary-mineral);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.mineral-purity {
  font-size: 0.85rem;
  color: #6c757d;
}

/* ===== Section Mineraux principale ===== */
.minerals-section {
  background: #f8f9fa;
}

.mineral-showcase-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  border: 1px solid #e9ecef;
}

.mineral-showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-mineral);
}

.mineral-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #3498db 100%);
}

.mineral-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mineral-image-container img {
  max-height: 150px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.mineral-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 7.15;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gold-card .mineral-overlay i {
  color: var(--accent-gold);
}

.diamond-card .mineral-overlay i {
  color: var(--accent-diamond);
}

.bauxite-card .mineral-overlay i {
  color: var(--accent-bauxite);
}

.iron-card .mineral-overlay i {
  color: var(--accent-iron);
}

.other-card .mineral-overlay i {
  color: #667eea;
}

.mineral-info {
  padding: 25px;
}

.mineral-info h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-mineral);
  margin-bottom: 15px;
}

.mineral-description {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.mineral-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mineral-stats .badge {
  padding: 6px 12px;
  font-weight: 500;
  font-size: 0.8rem;
  border-radius: 20px;
}

/* ===== Badges personnalisés ===== */
.bg-gold {
  background: var(--gradient-gold);
  color: white;
}

.bg-outline-gold {
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
}

.bg-diamond {
  background: var(--gradient-diamond);
  color: white;
}

.bg-outline-diamond {
  border: 1px solid var(--accent-diamond);
  color: var(--accent-diamond);
  background: transparent;
}

.bg-bauxite {
  background: var(--gradient-bauxite);
  color: white;
}

.bg-outline-bauxite {
  border: 1px solid var(--accent-bauxite);
  color: var(--accent-bauxite);
  background: transparent;
}

.bg-iron {
  background: var(--gradient-iron);
  color: white;
}

.bg-outline-iron {
  border: 1px solid var(--accent-iron);
  color: var(--accent-iron);
  background: transparent;
}

.bg-other {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* ===== Section Features simplifiée ===== */
.feature-box {
  padding: 30px;
  background: white;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-box:hover {
  border-color: var(--primary-mineral);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-box i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-box i.orange {
  background: var(--gradient-gold);
  color: white;
}

.feature-box i.blue {
  background: var(--gradient-diamond);
  color: white;
}

.feature-box i.green {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.feature-box i.pink {
  background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
  color: white;
}

.feature-box h4 {
  font-weight: 600;
  color: var(--primary-mineral);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.feature-box p {
  color: #6c757d;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===== Section Services/Permis ===== */
.service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #e9ecef;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-mineral);
}

.service-card .image-hero {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card .contenu {
  padding: 20px;
}

.service-card .contenu h3 {
  color: var(--primary-mineral);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.service-card .contenu p {
  color: #6c757d;
  line-height: 1.6;
  font-size: 0.95rem;
}

.service-card .read-more {
  color: var(--primary-mineral);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-card .read-more:hover {
  color: var(--accent-gold);
  transform: translateX(5px);
  display: inline-block;
}

/* ===== Section Titles ===== */
.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-mineral);
  margin-bottom: 20px;
}

.section-title p {
  color: #6c757d;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== Call to Action ===== */
.call-to-action-2 {
  background: var(--primary-mineral);
}

.call-to-action-2 h3 {
  color: white;
  font-weight: 600;
  margin-bottom: 15px;
}

.call-to-action-2 p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.cta-btn {
  background: #ffffff;
  color: var(--primary-mineral);
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  border: 2px solid white;
}

.cta-btn:hover {
  background: var(--accent-gold);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
  border-color: var(--accent-gold);
}

/* ===== FAQ Section ===== */
.faq-9 h2 {
  color: var(--primary-mineral);
  font-weight: 700;
}

.faq-9 .faq-description {
  color: #6c757d;
  line-height: 1.7;
}

.faq-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-mineral);
}

.faq-item h3 {
  color: var(--primary-mineral);
  font-weight: 600;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .hero-title-modern {
    font-size: 2.2rem;
  }
  
  .hero-slider-section {
    min-height: auto;
    padding: 80px 0;
  }
  
  .minerals-showcase {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
  }
  
  .mineral-icon {
    width: 70px;
    height: 70px;
    padding: 3px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title-modern {
    font-size: 1.8rem;
  }
  
  .text-muted-light {
    font-size: 1rem;
  }
  
  .hero-slider-section {
    min-height: auto;
    padding: 60px 0;
  }
  
  .minerals-showcase {
    grid-template-columns: 1fr;
    margin: 0 20%;
  }
  
  .mineral-showcase-card {
    margin-bottom: 20px;
  }
  
  .section-title p {
    width: 100% !important;
  }
}

/* Désactiver animations si préférence pour réduire le mouvement */
@media (prefers-reduced-motion: reduce) {
  .hero-slider-section .hero-slider {
    animation: none;
  }
}

/* ===== Section Partenaires - Style Galerie de Logos ===== */
.partners-section {
  background: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.partners-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(255, 140, 0, 0.03) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(13, 106, 168, 0.03) 50%, transparent 52%);
  background-size: 30px 30px;
  pointer-events: none;
}

.partners-static-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.partners-static-logos .partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.partners-static-logos .partner-item:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 12px 28px rgba(25, 52, 92, 0.18));
}

.partners-static-logos .partner-logo {
  width: 190px;
  height: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.partners-static-logos .partner-logo-img {
  width: 100%;
  max-height: 90px;
  object-fit: contain;
  padding: 0;
  transition: transform 0.35s ease;
}

.partners-static-logos .partner-item:hover .partner-logo-img {
  transform: scale(1.05);
}

/* Wrapper du carrousel de partenaires */
.partners-carousel-wrapper {
  width: 100%;
  overflow: hidden;
}

/* Track de défilement */
.partners-carousel-track {
  display: flex;
  overflow: hidden;
  width: 100%;
  margin-bottom: 30px;
}

.partners-carousel-track:last-child {
  margin-bottom: 0;
}

/* Conteneur des slides */
.partners-slide {
  display: flex;
  gap: 30px;
  animation: scroll-left 30s linear infinite;
  will-change: transform;
}

/* Ligne 1 - Animation normale */
.partners-track-1 .partners-slide {
  animation-duration: 30s;
}

/* Ligne 2 - Animation plus lente */
.partners-track-2 .partners-slide {
  animation-duration: 40s;
}

/* Animation de défilement - Droite vers Gauche */
@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause au survol */
.partners-carousel-track:hover .partners-slide {
  animation-play-state: paused;
}

/* Item partenaire */
.partner-item {
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin: 10px 0;
}

.partner-item:hover {
  transform: scale(1.1);
  z-index: 10;
}

/* Logo partenaire carré */
.partner-logo {
  width: 150px;
  height: 150px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid #f0f0f0;
}

.partner-item:hover .partner-logo {
  box-shadow: 0 12px 35px rgba(52, 152, 219, 0.25);
  border-color: var(--accent-diamond);
}

/* Initiales (fallback si pas de logo) */
.partner-initials {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-mineral);
  position: relative;
  z-index: 2;
  letter-spacing: 2px;
  font-family: 'Nunito', sans-serif;
}

.partner-item:hover .partner-initials {
  color: var(--accent-diamond);
}

/* Image du logo */
.partner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: all 0.3s ease;
}

.partner-item:hover .partner-logo-img {
  transform: scale(1.1);
}

/* Éléments cachés */
.partner-badge,
.partner-name,
.partner-country,
.partner-abbr {
  display: none;
}

/* État vide */
.empty-state {
  padding: 60px 20px;
}

/* Animation d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.company-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 992px) {
  .partners-slide {
    gap: 25px;
  }
  
  .partner-logo {
    width: 130px;
    height: 130px;
  }
  
  .partner-initials {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .partners-section {
    padding: 60px 0;
  }

  .partners-carousel-wrapper {
    padding: 30px 0;
  }

  .partners-carousel-track {
    margin-bottom: 20px;
  }

  .partners-slide {
    gap: 20px;
  }
  
  .partner-logo {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
  }
  
  .partner-initials {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
  
  .partner-logo-img {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .partners-slide {
    gap: 15px;
  }
  
  .partner-logo {
    width: 90px;
    height: 90px;
    border-radius: 10px;
  }
  
  .partner-initials {
    font-size: 1.5rem;
  }
  
  /* Accélérer un peu sur mobile */
  .partners-track-1 .partners-slide {
    animation-duration: 20s;
  }
  
  .partners-track-2 .partners-slide {
    animation-duration: 25s;
  }
}

/* ===== Section Investisseurs ===== */
.investors-section {
     position: relative;
     background: linear-gradient(90deg, rgba(47, 71, 95, 0.96) 0%, rgba(40, 59, 83, 0.92) 48%, rgba(202, 217, 232, 0.82) 100%);
     overflow: hidden;
 }
 
.investors-section::before {
     content: "";
     position: absolute;
     inset: 0;
     background:
         radial-gradient(circle at 82% 22%, rgba(255, 175, 64, 0.28), transparent 45%),
         radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 55%),
         radial-gradient(circle at 68% 82%, rgba(92, 140, 196, 0.25), transparent 60%);
     pointer-events: none;
     mix-blend-mode: screen;
 }
 
.investors-layout {
    display: flex;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.investors-heading {
     flex: 0 0 280px;
     max-width: 320px;
     display: flex;
     flex-direction: column;
     justify-content: center;
     gap: 14px;
 }
 
 .investors-subtitle {
     font-size: 0.9rem;
     text-transform: uppercase;
     letter-spacing: 3px;
     font-weight: 600;
     color: rgba(255, 213, 140, 0.9);
 }
 
 .investors-heading h3 {
     font-size: 2.1rem;
     font-weight: 700;
     color: #ffffff;
     margin: 0;
     line-height: 1.2;
 }
 
.investors-divider {
     width: 70px;
     height: 3px;
     border-radius: 999px;
     background: linear-gradient(90deg, rgba(255, 205, 120, 0.95), rgba(120, 198, 255, 0.9));
     display: inline-block;
 }
 
.investors-carousel-wrapper {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    padding: 6px 0;
}

.investors-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.investors-track {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 10px;
    will-change: transform;
    animation: investorsScroll 32s linear infinite;
}

.investors-carousel {
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.investors-carousel:hover .investors-track {
    animation-play-state: paused;
}

.investor-card {
    flex: 0 0 clamp(240px, 30vw, 320px);
    display: flex;
}

.investor-card-inner {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 14px 32px rgba(7, 24, 48, 0.22);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    width: 100%;
}

.investor-card-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 46px rgba(7, 24, 48, 0.32);
    border-color: rgba(255, 255, 255, 0.38);
}

.investor-logo {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.1rem;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 35, 64, 0.2);
}

.investor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.investor-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #102a4d;
    margin: 0;
    line-height: 1.35;
}

.investor-amount {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.02rem;
    letter-spacing: 0.2px;
}

.investor-amount::before {
    content: "\f51e";
    font-family: "bootstrap-icons";
    font-size: 1.05rem;
}

.investor-logo-cbg {
    background: linear-gradient(135deg, #f2994a, #f2c94c);
}

.investor-logo-smb {
    background: linear-gradient(135deg, #ff6f61, #d7263d);
}

.investor-logo-sag {
    background: linear-gradient(135deg, #a855f7, #6366f1);
}

.investor-logo-gac {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

.investor-logo-nimba {
    background: linear-gradient(135deg, #3498db, #2c3e50);
}

@keyframes investorsScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * var(--investors-track-width)));
    }
}
 
 @media (max-width: 1200px) {
     .investors-layout {
         gap: 28px;
     }
 
     .investors-heading {
         flex: 0 0 240px;
     }

     .investor-card {
         flex: 0 0 clamp(220px, 42vw, 280px);
     }
     .header .logo img  {
      max-height: 85px;
     }
 }
 
 @media (max-width: 768px) {
     .investors-layout {
         flex-direction: column;
     }
 
     .investors-heading {
         flex: 0 0 auto;
         max-width: none;
     }

     .investors-track {
         gap: 16px;
     }

     .investor-card {
         flex: 0 0 70vw;
     }
 }
 
 @media (max-width: 576px) {
     .investors-heading h3 {
         font-size: 1.8rem;
     }
 
     .investor-card-inner {
         padding: 20px;
         gap: 10px;
     }

     .investor-logo {
         width: 64px;
         height: 64px;
         border-radius: 16px;
         font-size: 1rem;
     }
 }
 
.badge.bg-favorable,
.badge.bg-valide {
    background-color: #28a745 !important;
    color: white !important;
}
