/* --- VARIABLES & BASE --- */
:root {
  --primary: #f97316;
  --primary-hover: #ea580c;
  --bg-dark: #0f172a;
  --card-dark: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --glass-bg: rgba(30, 41, 59, 0.7);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 0 25px rgba(249, 115, 22, 0.8); }
}

/* --- SECTION HERO / A PROPOS --- */
.about-hero {
  padding: 80px 0 60px;
  background: radial-gradient(circle at top right, #1e293b, #0f172a);
  color: var(--text-main);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  animation: fadeInUp 0.8s ease-out;
}

.about-copy h2 {
  font-size: 38px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-copy p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 15px;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.about-point {
  background: var(--card-dark);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 14px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.about-point:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.about-point i {
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 10px;
}

.about-point strong {
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
}

.about-point span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-image {
  position: relative;
  padding: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-image img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 18px;
}

/* Badge Statistique Flottant */
.stat-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--primary);
  color: #fff;
  padding: 15px 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-badge .num {
  font-size: 28px;
  font-weight: 900;
}

.stat-badge .txt {
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
}

/* --- SECTION CHIFFRES CLES --- */
.stats-section {
  padding: 60px 0;
  background: #0b1120;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-card {
  padding: 20px;
}

.stat-card h3 {
  font-size: 36px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 5px;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* --- SECTION VALEURS --- */
.values-section {
  padding: 80px 0;
  background: #0f172a;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 10px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  background: var(--card-dark);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
}

.value-icon {
  width: 50px;
  height: 50px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.value-card h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* --- SECTION PARTENAIRES --- */
/* --- NOUVELLE SECTION PARTENAIRES & RÉFÉRENCES --- */
.partners-section-v2 {
  padding: 90px 0;
  background: linear-gradient(180deg, #0f172a 0%, #090d16 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

/* Effets de halo de lumière en arrière-plan */
.partners-section-v2::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.partners-v2-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
  position: relative;
  z-index: 2;
}

.partners-v2-header .badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #f97316;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.partners-v2-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.partners-v2-header p {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* CARROUSEL DÉFILANT INFINI (MARQUEE) */
.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 30px;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  padding: 20px 0;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: 30px;
  min-width: 100%;
  animation: scrollMarquee 35s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused; /* Pause au survol pour faciliter le clic/consultation */
}

@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* NOUVELLE CONCEPTION DE LA CARTE / BOX */
.partner-box-v2 {
  width: 260px;
  height: 140px;
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.partner-box-v2::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.5), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.partner-box-v2:hover {
  transform: translateY(-8px) scale(1.03);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(249, 115, 22, 0.2);
}

.partner-box-v2:hover::after {
  opacity: 1;
}

/* LOGO ET TEXTE DANS LA NOUVELLE BOX */
.partner-logo-container {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 8px 15px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.partner-logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-box-v2:hover .partner-logo-container img {
  transform: scale(1.08);
}

.partner-title-v2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.3px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .partner-box-v2 {
    width: 200px;
    height: 120px;
    padding: 15px;
  }
  .partner-logo-container {
    height: 50px;
  }
  .partner-title-v2 {
    font-size: 0.85rem;
  }
}

/* --- BOUTONS FLOTTANTS --- */
.floating-btn {
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* WhatsApp Flottant */
.whatsapp-float {
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  animation: pulseGlow 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
}

/* Retour en haut */
.back-to-top {
  bottom: 85px;
  right: 25px;
  background-color: #f97316;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background-color: #ea580c;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stat-badge { position: relative; bottom: 0; left: 0; margin-top: 15px; display: inline-flex; }
}

@media (max-width: 640px) {
  .about-points, .values-grid, .stats-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}