/* Import d'une police très moderne façon SaaS (Inter ou Plus Jakarta Sans) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Ta nouvelle identité graphique */
  --primary: #d30094; /* Ton rose magenta signature */
  --primary-hover: #a80076; /* Rose légèrement plus foncé pour les survols */
  --dark: #111827; /* Sombre très chic pour les titres */
  --bg-color: #fdfafc; /* Fond très légèrement teinté rose/gris, ultra premium */
  --card-bg: #FFFFFF;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-color);
  color: #374151; /* Gris foncé pour le texte, plus doux que du noir pur */
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------
   SURCHARGE DE BOOTSTRAP
--------------------------------------- */

/* Forcer l'utilisation de ton rose sur les utilitaires Bootstrap */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

/* Surcharge pour un effet "Carte SaaS" */
.card {
  background-color: var(--card-bg);
  border: none;
  border-radius: 16px; /* Coins bien arrondis */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Ombre douce */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Surcharge des boutons avec ton rose */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  border-radius: 8px; /* Moins rond que les cartes, mais moderne */
  padding: 10px 24px;
  font-weight: 600;
  letter-spacing: 0.3px;
  /* Ombre colorée calculée sur base du #d30094 (rgb 211, 0, 148) */
  box-shadow: 0 4px 6px -1px rgba(211, 0, 148, 0.3); 
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(211, 0, 148, 0.4);
}

/* Titres épurés */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.02em; /* Rend les titres plus compacts et modernes */
}

/* Tracking text très resserré pour les gros titres */
.letter-spacing-tight {
  letter-spacing: -0.03em;
}

/* Tracking text (lettres espacées pour les surtitres en majuscules) */
.tracking-wide {
  letter-spacing: 0.05em;
}

/* --------------------------------------
   ANIMATIONS ET INTERACTIONS
--------------------------------------- */

/* Interactions subtiles des liens du footer */
.nav-footer-link {
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.nav-footer-link:hover {
  color: var(--primary) !important;
  padding-left: 4px; /* Petit effet de glissement vers la droite très chic */
}

/* Effet SaaS sur les logos clients (Gris -> Couleur au survol) */
.grayscale-hover > div {
  transition: all 0.3s ease;
  filter: grayscale(100%) opacity(0.6);
  cursor: default;
}
.grayscale-hover > div:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* Transition douce sur les icônes d'étapes (Page Accueil) */
.step-icon {
  transition: all 0.3s ease;
}
.step-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Animation des cartes globales */
.card-hover-effect {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* Animations des images au survol (Effet de zoom léger) */
.group {
  overflow: hidden; /* Empêche l'image de déborder pendant le zoom */
}
.group img {
  transition: transform 0.5s ease;
}
.group:hover img {
  transform: scale(1.05);
}

/* Flèche qui glisse vers la droite au survol */
.transition-transform {
  transition: transform 0.2s ease;
}
.group:hover .transition-transform,
a:hover .transition-transform {
  transform: translateX(4px); 
}

/* Fix Bootstrap Object Fit */
.object-fit-cover {
  object-fit: cover;
}

/* --------------------------------------
   CARROUSEL MÉTIERS (Défilement fluide)
--------------------------------------- */

/* Conteneur avec scroll horizontal masqué et masque de fondu transparent à droite */
.carousel-fade-right {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 1rem;
  scrollbar-width: none; /* Cache la barre sur Firefox */
  -ms-overflow-style: none; /* Cache la barre sur IE/Edge */
  /* Le masque qui crée le fondu ! */
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
  mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.carousel-fade-right::-webkit-scrollbar {
  display: none; /* Cache la barre sur Chrome/Safari */
}

/* Les cartes à l'intérieur du carrousel */
.carousel-fade-right > div {
  scroll-snap-align: start;
  flex: 0 0 85%; /* Largeur d'une carte sur mobile (laisse deviner la suivante) */
}

/* Sur tablette et écran plus grand */
@media (min-width: 768px) {
  .carousel-fade-right > div {
    flex: 0 0 45%; /* Affiche 2 cartes avant le fondu */
  }
}
@media (min-width: 1200px) {
  .carousel-fade-right > div {
    flex: 0 0 30%; /* Affiche 3 cartes avant le fondu */
  }
}

/* Le fameux dégradé de texte SaaS (Rose vers un ton légèrement orangé/pêche très chic) */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #ff4d85 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
  display: inline-block;
}

/* Effet Glassmorphism (Verre dépoli) pour les badges ou cartes flottantes */
.glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hover-primary:hover {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

/* --------------------------------------
   CARROUSEL INFINI LOGOS CLIENTS
--------------------------------------- */

.marquee-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  white-space: nowrap;
  /* Masque transparent sur les bords gauche et droit pour un effet fondu */
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 4rem; /* Espace entre les logos */
  padding-left: 4rem; /* Compense le gap initial */
  /* Animation CSS : 30 secondes en boucle, linéaire (sans accélération) */
  animation: scroll-marquee 40s linear infinite;
}

/* Pause l'animation quand la souris passe dessus (Optionnel mais très apprécié) */
.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.marquee-item img {
  height: 40px; /* Hauteur fixe pour uniformiser les logos */
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.4);
  transition: all 0.3s ease;
}

.marquee-item img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* L'animation qui décale le bloc de 50% (d'où l'importance de doubler les logos) */
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 2rem)); } /* -2rem pour compenser la moitié du gap */
}

/* Bordure d'accentuation pour les CTA sombres */
.border-bottom-primary {
  border-bottom: 4px solid var(--primary) !important;
}

/* Motif de grille très discret pour les fonds clairs (Chic & Tech) */
.bg-grid-pattern {
  background-color: var(--bg-color);
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Animation de la galerie au survol */
.group:hover .transition-transform { transform: scale(1.05); }
.group:hover .group-hover-opacity-50 { opacity: 0.3 !important; }