:root {
  --rouge-suisse: #FF0000;
  --rouge-suisse-dark: #CC0000;
  --gris-helve: #1E1E1E;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: white;
  color: var(--gris-helve);
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

.btn-helve {
  background: var(--rouge-suisse);
  color: white;
  transition: all 0.25s ease;
}

.btn-helve:hover {
  background: var(--rouge-suisse-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(255,0,0,0.25);
}

section {
  scroll-margin-top: 6rem;
}

/* ==============================
   SERVICE CARDS AMÉLIORÉES
   ============================== */
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--rouge-suisse);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover {
  border-color: rgba(255, 0, 0, 0.2);
  box-shadow: 0 20px 40px -10px rgba(255, 0, 0, 0.15);
  transform: translateY(-8px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--rouge-suisse), #ff4444);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  margin-bottom: 20px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 16px -4px rgba(255, 0, 0, 0.2);
}

.service-card:hover .service-card-icon {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 12px 24px -6px rgba(255, 0, 0, 0.3);
}

.service-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-cta {
  margin-top: auto;
  transition: all 0.3s ease;
}

.service-cta a {
  position: relative;
  display: inline-block;
}

.service-cta a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--rouge-suisse);
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-cta a::after {
  width: 100%;
}

/* ==============================
   ADVANTAGE CARDS AMÉLIORÉES
   ============================== */
.advantage-card {
  text-align: center;
  padding: 32px 24px;
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 4px;
  background: var(--rouge-suisse);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.advantage-card:hover {
  border-color: rgba(255, 0, 0, 0.2);
  box-shadow: 0 20px 40px -10px rgba(255, 0, 0, 0.15);
  transform: translateY(-8px);
}

.advantage-card:hover::before {
  width: 60%;
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--rouge-suisse), #ff4444);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 20px -6px rgba(255, 0, 0, 0.2);
}

.advantage-card:hover .advantage-icon {
  transform: scale(1.2) rotate(5deg);
  box-shadow: 0 15px 30px -8px rgba(255, 0, 0, 0.3);
}

.advantage-card h3 {
  transition: all 0.3s ease;
  color: var(--gris-helve);
}

.advantage-card:hover h3 {
  color: var(--rouge-suisse);
}

/* ==============================
   ANIMATIONS HERO AMÉLIORÉES
   ============================== */
/* Animation du fond avec particules */
.hero-bg {
  background: linear-gradient(135deg, transparent 0%, rgba(255, 0, 0, 0.03) 50%, transparent 100%);
  animation: bgShift 15s ease-in-out infinite;
}

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

/* Animation du premier titre (Précision suisse) */
.hero-title-1 {
  display: inline-block;
  animation: slideInDown 0.8s ease-out 0.2s both;
  letter-spacing: -0.02em;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation du deuxième titre (Exécution irréprochable) */
.hero-title-2 {
  display: inline-block;
  animation: slideInDown 0.8s ease-out 0.4s both;
  letter-spacing: -0.02em;
}

/* Animation du sous-titre */
.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

/* Animation de la description */
.hero-description {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Animation du CTA (bouton) */
.hero-cta {
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
  position: relative;
  overflow: hidden;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Effet de brillance au hover du CTA */
.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.hero-cta:hover::before {
  left: 100%;
}

/* Animation de l'icône dans le CTA */
.hero-cta i {
  animation: slideArrow 2s ease-in-out infinite 1.5s;
}

@keyframes slideArrow {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}

/* ==============================
   ÉLÉMENTS FLOTTANTS ANIMÉS
   ============================== */
.floating-element {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.15;
}

.floating-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--rouge-suisse), transparent);
  top: 10%;
  right: 5%;
  animation: float1 12s ease-in-out infinite;
  filter: blur(40px);
}

@keyframes float1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -50px) scale(1.1);
  }
  50% {
    transform: translate(50px, 0) scale(1);
  }
  75% {
    transform: translate(30px, 50px) scale(0.9);
  }
}

.floating-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #4F46E5, transparent);
  bottom: 15%;
  left: 5%;
  animation: float2 14s ease-in-out infinite;
  filter: blur(50px);
}

@keyframes float2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-40px, 40px) scale(0.95);
  }
  50% {
    transform: translate(-60px, 0) scale(1.05);
  }
  75% {
    transform: translate(-40px, -40px) scale(1);
  }
}

.floating-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--rouge-suisse), transparent);
  top: 40%;
  left: 10%;
  animation: float3 16s ease-in-out infinite;
  filter: blur(45px);
}

@keyframes float3 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, 30px) rotate(90deg);
  }
  50% {
    transform: translate(30px, 60px) rotate(180deg);
  }
  75% {
    transform: translate(-20px, 30px) rotate(270deg);
  }
}

/* ==============================
   ANIMATIONS TEXTE HERO
   ============================== */
/* Effet de révélation progressive du texte */
.hero-section h1 {
  position: relative;
}

.hero-section h1 span {
  position: relative;
}

/* Animation au chargement de la page */
@keyframes revealText {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .floating-element {
    opacity: 0.08;
  }
  .floating-1 {
    width: 200px;
    height: 200px;
  }
  .floating-2 {
    width: 180px;
    height: 180px;
  }
  .floating-3 {
    width: 150px;
    height: 150px;
  }
}

/* ==============================
   EFFECTS DE TRANSITION SUPPLÉMENTAIRES
   ============================== */
/* Effet de scintillement subtil sur les éléments de texte */
@keyframes subtleGlow {
  0%, 100% {
    text-shadow: none;
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
  }
}

.hero-section h1 span:first-child {
  animation: subtleGlow 3s ease-in-out infinite 2s;
}

/* Animation parallaxe douce au scroll (optionnelle) */
.hero-section {
  position: relative;
}

/* jdid */
.btn-helve {
  background-color: var(--rouge-suisse);
  transition: all 0.3s ease;
}

.btn-helve:hover {
  background-color: var(--rouge-suisse-dark);
  transform: translateY(-2px);
}

/* Amélioration du bouton CTA avec animation de pulsation */
.hero-cta {
  box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both, pulse 2.5s infinite 2s;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

/* ==============================
   MENU MOBILE – Ajouts pour overlay, panneau, stagger et icône
   ============================== */

/* Overlay (fond noir semi-transparent + blur) */
#mobile-menu-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Panneau slide depuis la droite */
#mobile-menu-panel {
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#mobile-menu-panel.active {
  transform: translateX(0) !important;
}

/* Stagger apparition des liens (cascade) */
.mobile-nav-link {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#mobile-menu-panel.active .mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
}

/* Délais cascade pour chaque lien */
#mobile-menu-panel.active .mobile-nav-link:nth-child(1) { transition-delay: 0.08s; }
#mobile-menu-panel.active .mobile-nav-link:nth-child(2) { transition-delay: 0.16s; }
#mobile-menu-panel.active .mobile-nav-link:nth-child(3) { transition-delay: 0.24s; }
#mobile-menu-panel.active .mobile-nav-link:nth-child(4) { transition-delay: 0.32s; }

/* Icône burger → croix avec rotation */
#menu-icon {
  transition: all 0.4s ease;
}

#menu-icon.active {
  transform: rotate(90deg);
}

/* Hover rouge sur icônes réseaux sociaux */
#mobile-menu-panel .text-gray-600 a:hover {
  color: var(--rouge-suisse) !important;
  transform: scale(1.15);
  transition: all 0.3s ease;
}

#close-menu {
  position: relative;
  z-index: 60;
}