/* Variables CSS */
:root {
  --brand-primary: #0B1F21;
  --brand-secondary: #D58A2A;
  --brand-accent: #2563EB;
  --brand-light: #F8FAFC;
  --gradient-hero: linear-gradient(135deg, #0B1F21 0%, #1e3a42 100%);
  --gradient-orange: linear-gradient(135deg, #D58A2A 0%, #F59E0B 100%);
}

/* Styles de base */
.hero-gradient {
  background: var(--gradient-hero);
}

.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(47, 54, 64, 0.18);
  border: 1px solid rgba(47, 54, 64, 0.18);
}

/* Animations */
.floating-animation {
  animation: floating 6s ease-in-out infinite;
}

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

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0;
  transform: translateX(-50px);
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Patterns et textures */
.pattern-dots {
  background-image: radial-gradient(circle, #D58A2A 2px, transparent 2px);
  background-size: 30px 30px;
  opacity: 0.1;
}

.text-gradient {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Boutons */
.btn-primary {
  background: var(--gradient-orange);
  color: white !important;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(213, 138, 42, 0.3);
  color: white !important;
}

/* Cards expertise */
.expertise-card {
  transition: all 0.4s ease;
  border: 1px solid rgba(213, 138, 42, 0.1);
  background: white;
  display: block;
}

.expertise-card:hover {
  transform: translateY(-8px);
  border-color: #D58A2A;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Compteurs */
.number-counter {
  font-weight: 800;
  color: #D58A2A;
}

/* Indicateur de scroll */
.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

/* Responsive */
@media (max-width: 768px) {
  .hero-gradient h1 {
    font-size: 2.5rem !important;
    line-height: 1.1;
  }
  
  .floating-animation {
    display: none;
  }
  
  .expertise-card {
    margin-bottom: 1rem;
  }
}

/* Formulaires - CORRECTION POUR SELECT */
input, textarea, select {
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none !important;
  ring: 2px solid var(--brand-secondary) !important;
}

/* Fix spécifique pour les SELECT - résout le problème de lisibilité */
select {
  color: white !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

select option {
  background-color: #0B1F21 !important;
  color: white !important;
  padding: 8px !important;
}

select option:hover,
select option:focus,
select option:checked {
  background-color: #D58A2A !important;
  color: white !important;
}

/* Pour les navigateurs WebKit (Chrome, Safari) */
select::-webkit-scrollbar {
  width: 8px;
}

select::-webkit-scrollbar-track {
  background: #0B1F21;
}

select::-webkit-scrollbar-thumb {
  background: #D58A2A;
  border-radius: 4px;
}

/* Force l'affichage des cards */
.grid {
  display: grid !important;
}

/* Assure l'affichage du background hero */
.hero-section {
  background-image: url('../hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Fix pour les icônes FontAwesome */
.fas, .fab {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

/* Couleurs par spécialité */
.expertise-card:nth-child(1) .bg-blue-100 {
  background-color: rgb(219 234 254) !important;
}

.expertise-card:nth-child(1) .text-blue-600 {
  color: rgb(37 99 235) !important;
}

.expertise-card:nth-child(2) .bg-orange-100 {
  background-color: rgb(254 215 170) !important;
}

.expertise-card:nth-child(2) .text-orange-600 {
  color: rgb(234 88 12) !important;
}

.expertise-card:nth-child(3) .bg-green-100 {
  background-color: rgb(220 252 231) !important;
}

.expertise-card:nth-child(3) .text-green-600 {
  color: rgb(22 163 74) !important;
}