html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 0.5px;
}

/* === HERO SERVICES === */
.hero-services {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 7rem;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* === PATTERN DE FOND === */
.hero-services__pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  pointer-events: none;
}

.hero-services__pattern--dots {
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero-services__pattern--grid {
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-services__pattern--waves {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='white' fill-opacity='0.1'/%3E%3C/svg%3E");
  background-size: 100px 20px;
}

.hero-services__pattern--circuit {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='white' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* === FORMES DÉCORATIVES === */
.hero-services__shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero-services__shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(50px);
}

.hero-services__shape--1 {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
  animation: float 20s infinite;
}

.hero-services__shape--2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -100px;
  animation: float 25s infinite reverse;
}

.hero-services__shape--3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 30s infinite;
}

/* === CONTAINER === */
.hero-services__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-services__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* === TEXTE === */
.hero-services__text {
  animation: slideInLeft 0.8s ease-out;
}

.hero-services__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.hero-services__subtitle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-services__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-services__title-highlight {
  background: linear-gradient(45deg, #fff, #f0f8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-services__description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

.hero-services__description p {
  margin: 0 0 1rem 0;
}

.hero-services__description p:last-child {
  margin-bottom: 0;
}

/* === BOUTONS === */
.hero-services__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-services__btn {
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Bouton principal - style identique à hero-about */
.hero-services__btn.btn--primary {
  background: white;
  color: #667eea;
  border-color: white;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-services__btn.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.hero-services__btn.btn--primary:hover::before {
  left: 100%;
}

.hero-services__btn.btn--primary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.hero-services__btn.btn--primary svg {
  transition: transform 0.3s ease;
}

.hero-services__btn.btn--primary:hover svg {
  transform: translateX(2px);
}

/* Bouton secondaire */
.hero-services__btn.btn--secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-services__btn.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-services__btn {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-services__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-services__btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    margin: 0 auto;
  }
}

/* === FEATURES === */
.hero-services__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-services__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.hero-services__feature:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-services__feature-icon {
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.hero-services__feature-content {
  flex: 1;
  color: white;
}

.hero-services__feature-content strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.hero-services__feature-content span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* === VISUEL === */
.hero-services__visual {
  animation: slideInRight 0.8s ease-out 0.2s both;
  position: relative;
}

.hero-services__image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero-services__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* === BADGES FLOTTANTS === */
.hero-services__floating-badges {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero-services__badge {
  position: absolute;
  background: white;
  color: #667eea;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  animation: floatBadge 3s ease-in-out infinite;
}

.hero-services__badge--1 {
  top: 10%;
  left: -20px;
  animation-delay: 0s;
}

.hero-services__badge--2 {
  top: 50%;
  right: -30px;
  animation-delay: 1s;
}

.hero-services__badge--3 {
  bottom: 15%;
  left: 20px;
  animation-delay: 2s;
}

.hero-services__badge-icon {
  font-size: 1.125rem;
}

/* === GRAPHIQUE PLACEHOLDER === */
.hero-services__graphic {
  position: relative;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-services__graphic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hero-services__graphic-item {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-family: 'Courier New', monospace;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out both;
}

.hero-services__graphic-item--1 {
  animation-delay: 0.1s;
}
.hero-services__graphic-item--2 {
  animation-delay: 0.2s;
}
.hero-services__graphic-item--3 {
  animation-delay: 0.3s;
}
.hero-services__graphic-item--4 {
  animation-delay: 0.4s;
}
.hero-services__graphic-item--5 {
  animation-delay: 0.5s;
}
.hero-services__graphic-item--6 {
  animation-delay: 0.6s;
}

.hero-services__graphic-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* === SCROLL INDICATOR === */
.hero-services__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 45%;
  transform: translateX(-50%);
  animation: fadeInUp 1s ease-out 1s both;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: white;
  border-radius: 10px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

/* === ANIMATIONS === */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(20px) rotate(240deg);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes scrollWheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
}

.hero-services__scroll-text {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
  .hero-services__content {
    display: flex;
    flex-direction: column-reverse;
    gap: 3rem;
  }

  .hero-services__visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-services__text {
    text-align: center;
  }

  .hero-services__subtitle::before {
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
  }

  .hero-services__buttons {
    justify-content: center;
  }

  .hero-services__features {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-services__badge--1 {
    left: 10px;
  }

  .hero-services__badge--2 {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .hero-services {
    padding: 5rem 0 9rem;
  }

  .hero-services__container {
    padding: 0 1.5rem;
  }

  .hero-services__features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-services__graphic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hero-services__badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
  }

  .hero-services__floating-badges {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-services__title {
    font-size: 2rem;
  }

  .hero-services__description {
    font-size: 1rem;
  }

  .hero-services__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-services__btn {
    width: 100%;
    justify-content: center;
  }

  .hero-services__feature {
    padding: 0.875rem;
  }

  .hero-services__feature-icon {
    min-width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  .hero-services__scroll-indicator {
    left: 40%;
  }
}

/* === DARK MODE (optionnel) === */
@media (prefers-color-scheme: dark) {
  .hero-services__badge {
    background: rgba(30, 30, 40, 0.95);
    color: white;
  }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
  .hero-services__text,
  .hero-services__visual,
  .hero-services__buttons,
  .hero-services__features,
  .hero-services__scroll-indicator,
  .hero-services__graphic-item {
    animation: none;
  }

  .hero-services__shape,
  .scroll-wheel,
  .hero-services__badge {
    animation: none;
  }

  .hero-services__btn:hover,
  .hero-services__feature:hover,
  .hero-services__graphic-item:hover {
    transform: none;
  }
}
