/* ==========================================
   STYLES SPÉCIFIQUES À LA PAGE À PROPOS
   ========================================== */

/* --- Keyframes & Animations Globales --- */
@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes iconGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(13, 110, 253, 0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(13, 110, 253, 0.8)); }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Utilitaires d'Animations d'icônes */
.icon-pulse {
  display: inline-block;
  animation: iconPulse 2.5s infinite ease-in-out;
}

.icon-bounce {
  display: inline-block;
  animation: iconBounce 3s infinite ease-in-out;
}

.icon-glow {
  display: inline-block;
  animation: iconGlow 3s infinite ease-in-out;
}

.icon-spin-hover {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-item:hover .icon-spin-hover {
  transform: rotate(360deg);
}

/* Texte dégradé animé */
.animated-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a5c7ff 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
}

.animated-gradient-text-light {
  background: linear-gradient(135deg, #ffffff 0%, #e0edff 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
}

/* --- Hero About --- */
.about-hero {
  background: linear-gradient(135deg, rgba(0, 43, 107, 0.92), rgba(13, 110, 253, 0.88)), 
              url('https://images.unsplash.com/photo-1586528116311-ad8ed7c1590f?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
  color: #ffffff;
  text-align: center;
  padding: 100px 20px 80px 20px;
  position: relative;
  overflow: hidden;
}

.about-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #002b6b, #0d6efd);
}

.about-hero h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.about-hero p.sub-text-animated {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.75;
  opacity: 0.92;
  font-weight: 300;
}

/* --- Structure Grille Histoire & Identité --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text .section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #002b6b;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #4a5568;
  margin-bottom: 20px;
}

.about-text p strong {
  color: #002b6b;
  font-weight: 600;
}

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

/* Visuel Dynamique & Badges Glassmorphism */
.about-image-container {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 20px 40px rgba(0, 43, 107, 0.15);
}

.animated-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.image-wrapper:hover .animated-hero-img {
  transform: scale(1.02);
  filter: brightness(1.03);
}

/* Glassmorphism Badges */
.glass-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  font-size: 0.9rem;
  color: #002b6b;
  z-index: 5;
  animation: floatBadge 4s ease-in-out infinite;
}

.glass-badge i {
  font-size: 1.2rem;
  color: #0d6efd;
}

.badge-top-left {
  top: -20px;
  left: -20px;
}

.badge-bottom-right {
  bottom: -20px;
  right: -20px;
  animation-delay: 2s;
}

/* --- Cartes d'Expertise --- */
.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.expertise-item {
  display: flex;
  background: #ffffff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  gap: 25px;
  align-items: flex-start;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  border-left: 5px solid #0d6efd;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-right: 1px solid rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.expertise-item:hover {
  transform: translateX(10px) translateY(-2px);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.12);
}

.expertise-icon {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  width: 65px;
  height: 65px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.expertise-item:hover .expertise-icon {
  background: #0d6efd;
  color: #ffffff;
}

.expertise-content h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #002b6b;
  font-size: 1.35rem;
  font-weight: 700;
}

.expertise-content p {
  margin: 0;
  color: #556070;
  line-height: 1.7;
  font-size: 1rem;
}

/* --- Grille des Valeurs --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.value-box {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.value-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #0d6efd, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.value-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(13, 110, 253, 0.12);
  border-color: rgba(13, 110, 253, 0.25);
}

.value-box:hover::before {
  opacity: 1;
}

.value-box i {
  font-size: 3rem;
  color: #0d6efd;
  margin-bottom: 22px;
  display: inline-block;
}

.value-box h4 {
  font-size: 1.3rem;
  color: #002b6b;
  margin-bottom: 15px;
  font-weight: 700;
}

.value-box p {
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

/* --- Call To Action (CTA) Stylisé --- */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 90px 20px;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.btn-modern-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #0d6efd;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 42px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-modern-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  background: #f0f6ff;
  color: #002b6b;
}

.btn-modern-cta i {
  transition: transform 0.3s ease;
}

.btn-modern-cta:hover i {
  transform: translateX(5px);
}

/* Active Nav State */
header nav a.active-nav {
  color: #0d6efd !important;
  font-weight: 600;
  position: relative;
}

header nav a.active-nav::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #0d6efd;
  border-radius: 2px;
}

/* --- Animation au défilement (Scroll Reveal) --- */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

.scroll-animate.fade-up { transform: translateY(40px); }
.scroll-animate.fade-down { transform: translateY(-40px); }
.scroll-animate.slide-left { transform: translateX(-40px); }
.scroll-animate.slide-right { transform: translateX(40px); }
.scroll-animate.zoom-in { transform: scale(0.92); }

.scroll-animate.animated {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Fallback si JS non actif */
@noscript {
  .scroll-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .badge-top-left {
    top: -15px;
    left: 10px;
  }

  .badge-bottom-right {
    bottom: -15px;
    right: 10px;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 70px 20px 60px 20px;
  }

  .animated-hero-img {
    height: 300px;
  }

  .expertise-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
  }

  .expertise-icon {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .glass-badge {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .value-box {
    padding: 30px 20px;
  }

  .btn-modern-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 25px;
  }
}
