/* Configuration Tailwind CSS centralisée */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

/* Classe personnalisée pour largeur 90vw */
.max-w-90vw {
  max-width: 90vw;
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: #0b0b0b;
  overflow-x: hidden;
  position: relative;
  font-family: 'Syne', sans-serif;
}

/* Confinement du scroll horizontal sur overlays mobiles */
.mobile-menu {
  overscroll-behavior-x: none;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}


/* Header sticky */
.header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Style FROOHM - Grille de navigation */
.nav-grid {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(243, 189, 25, 0.03) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.nav-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20% 100%, 100% 20%;
  pointer-events: none;
}

/* Effet de survol FROOHM */
.nav-item {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    rgba(243, 189, 25, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-item:hover::before {
  opacity: 1;
}

/* Focus ring personnalisé */
.focus-ring:focus {
  outline: none;
}

.focus-ring:focus-visible {
  outline: none;
}

/* Animations au scroll */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Effets hover */
.halate {
  position: relative;
  overflow: hidden;
}

.halate:after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    closest-side,
    rgba(243, 189, 25, 0.08),
    transparent 65%
  );
  mix-blend-mode: screen;
}

.halate:hover:after {
  opacity: 1;
}

/* Boutons personnalisés */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Cartes de service */
.service-card {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(51, 51, 51, 0.5);
}

/* Ligne lumineuse (active quand réduction) */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f3bd19, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* État visuel renforcé quand réduction active */
.service-card.discount-active {
  border-color: rgba(243, 189, 25, 0.6);
  box-shadow: 0 0 0 2px rgba(243, 189, 25, 0.35), 0 12px 32px rgba(243, 189, 25, 0.18);
}

.service-card.discount-active::before {
  opacity: 1;
}

/* Pastille de réduction à cheval sur la bordure */
.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f3bd19 0%, #e6a800 100%);
  color: #000;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 
    0 0 0 3px rgba(0, 0, 0, 0.8),
    0 6px 18px rgba(243, 189, 25, 0.4),
    0 0 0 6px rgba(243, 189, 25, 0.3);
  z-index: 10;
  transform: rotate(-4deg);
}

.discount-badge__label {
  text-transform: uppercase;
  font-size: 0.75rem;
}

.discount-badge__percent {
  font-size: 1rem;
  font-weight: 900;
}

.icon-container {
  position: relative;
  transition: all 0.3s ease;
}

/* Étapes du processus */
.process-step {
  position: relative;
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
}

.process-number {
  background: linear-gradient(135deg, #f3bd19 0%, #e6a800 100%);
  transition: all 0.3s ease;
}

.process-step:hover .process-number {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(243, 189, 25, 0.4);
}

/* Effet de brillance pour l'étoile */
.text-shadow-glow {
  text-shadow: 0 0 10px #f3bd19, 0 0 20px #f3bd19, 0 0 30px #f3bd19, 0 0 40px #f3bd19;
}

/* Timeline styles pour about.php */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: #f3bd19;
  border-radius: 50%;
  z-index: 2;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5rem;
  width: 2px;
  height: calc(100% - 0.5rem);
  background: #333333;
  z-index: 1;
}

.timeline-item:last-child::after {
  display: none;
}

/* Animation de l'étoile - brillance fixe */
.star-icon {
  text-shadow: 
    0 0 10px #f3bd19,
    0 0 20px #f3bd19,
    0 0 30px #f3bd19,
    0 0 40px #f3bd19;
}

@keyframes starGlow {
  0%, 100% { 
    text-shadow: 
      0 0 10px #f3bd19,
      0 0 20px #f3bd19,
      0 0 30px #f3bd19,
      0 0 40px #f3bd19;
  }
  50% { 
    text-shadow: 
      0 0 15px #f3bd19,
      0 0 25px #f3bd19,
      0 0 35px #f3bd19,
      0 0 45px #f3bd19,
      0 0 55px #f3bd19;
  }
}

/* Grille responsive pour les projets */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Animations personnalisées */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Spinner pour les boutons de chargement */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Améliorations pour les cartes de projets */
.gallery-slider {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet hover supprimé pour améliorer l'ergonomie */

/* Animation des overlays */
.project-overlay {
  backdrop-filter: blur(8px);
}

/* Animations pour les informations au hover */
.project-info-item {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Amélioration des pastilles */
.project-badge {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

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

/* Animations pour la page détaillée */
.project-detail-info {
  transition: all 0.3s ease;
}

.project-detail-info:hover {
  transform: translateX(8px);
}

/* Effet de zoom sur les images */
.project-image {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image:hover {
  transform: scale(1.02);
}

/* Styles pour le hover des projets - Style référence */
.project-overlay-metrics {
  backdrop-filter: blur(12px);
}

.project-metric-item {
  transition: all 0.3s ease;
}

.project-metric-item:hover {
  transform: translateY(-2px);
}

.project-metric-label {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1em;
}

.project-metric-value {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

/* Animation du bouton play */
.play-button {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(243, 189, 25, 0.3);
}

/* Amélioration du gradient overlay */
.project-overlay-gradient {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

/* Animation des métriques */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .metric-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Hero Section Styles */
.hero-featured-project {
  background: linear-gradient(135deg, #0b0b0b 0%, #1a1a1a 100%);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 4rem;
  border: 1px solid rgba(243, 189, 25, 0.1);
}

.hero-media {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 3rem;
}

.hero-badge {
  background: #f3bd19;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #f3bd19;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.hero-metric {
  display: flex;
  flex-direction: column;
}

.hero-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #f3bd19;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.hero-metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #f3bd19;
  line-height: 1;
}

@media (max-width: 1024px) {
  .hero-featured-project {
    padding: 2rem;
  }
  
  .hero-content {
    padding-left: 0;
    padding-top: 2rem;
  }
  
  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .hero-metric-value {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-featured-project {
    padding: 1.5rem;
  }
  
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-metric-value {
    font-size: 1.25rem;
  }
}

.clients-carousel {
  position: relative;
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.clients-track {
  display: flex;
  gap: 5rem;
  width: max-content;
  will-change: transform;
  animation: clients-scroll 30s linear infinite;
}

.clients-logo {
  height: 28px;
  
  /* L'ORDRE EST CRUCIAL ICI :
     1. brightness(0) : Transforme TOUT le logo en une silhouette noire pure.
     2. invert(1) : Inverse ce noir pur pour qu'il devienne blanc pur.
  */
  filter: brightness(0) invert(1);
  
  opacity: 0.9;
  transition: opacity 200ms ease; /* J'ai simplifié la transition vu qu'il n'y a plus de hover */
}

@keyframes clients-scroll {
  to { transform: translateX(-50%); }
}

@media (min-width: 768px) {
  .clients-logo { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}

@media (min-width: 1024px) {
  .clients-carousel { margin-bottom: 3rem; }
}
