/* LayerHero.css - Style pour la section d'introduction héro */

.hero-intro-section {
  position: relative;
  padding: 4rem 0 2rem;
  margin-top: 0px;
  margin-bottom: 40px; /* Espace en bas pour que les boutons soient visibles */
  background-color: transparent;
  z-index: 10;
}

.hero-intro-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: row; /* Disposition horizontale */
  align-items: center;
  gap: 2rem;
}

/* Côté contenu texte */
.hero-intro-content {
  width: 60%; /* Largeur fixe pour le texte (3/5) */
}

/* Le badge "Agence de développement" */
.hero-intro-badge {
  display: inline-block;
  background-color: rgba(52, 179, 250, 0.1);
  color: var(--primary-02);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Titre principal avec partie colorée */
.hero-intro-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-intro-highlight {
  display: block;
  background: linear-gradient(135deg, #34B3FA, #75FAF3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* Paragraphe descriptif */
.hero-intro-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Bouton CTA */
.hero-intro-cta {
  display: inline-flex;
  align-items: center;
  background: var(--gradient-primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.hero-intro-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-color);
  filter: brightness(1.05);
}

.hero-intro-cta-icon {
  margin-left: 0.75rem;
  transition: transform 0.3s ease;
}

.hero-intro-cta:hover .hero-intro-cta-icon {
  transform: translateX(3px);
}

/* Côté image */
.hero-intro-image {
  width: 40%; /* Largeur fixe pour l'image (2/5) */
  position: relative;
}

.hero-intro-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px var(--shadow-color);
  transition: transform 0.5s ease;
}



/* Animation d'apparition */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Délais séquentiels */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* Ajustements pour le mode sombre */
[data-theme="dark"] .hero-intro-badge {
  background-color: rgba(52, 179, 250, 0.2);
}

/* Assurer que les boutons de navigation ont le bon z-index et sont visibles */
.nav-buttons-container {
  position: relative;
  z-index: 20; /* Z-index supérieur à celui de hero-intro-section */
  margin-top: 0; /* Réinitialiser la marge négative si nécessaire */
}

/* S'assurer que la grille de boutons est correctement affichée */
.nav-buttons-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}


  .section-method-highlight {
    position: relative;
    background-color: transparent;
    z-index: 50;
    padding: 2rem 1.5rem 1rem; /* Réduire drastiquement l'espace en bas */
    margin-bottom: -2rem; /* Réduire la marge négative */
  }
  
  .method-container {
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    display: flex;
    justify-content: flex-start;
  }

  .method-description {
  padding-left: 3rem;
}
  
  .method-text {
    max-width: 600px;
    margin-left: 10%; /* 👈 décalage vers la droite pour plus d’impact */
    text-align: left;
  }
  
  .method-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }
  
  .method-title-dark {
    color: var(--text-primary);
  }
  
  .method-title-gradient {
    background: linear-gradient(135deg, #34B3FA, #75FAF3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .method-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 1rem;
  }
  
  /* CTA badge intégré */
  .method-cta {
    display: inline-flex;
    align-items: center;
    background-color: rgba(52, 179, 250, 0.1);
    color: var(--primary-02);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-left: 0; /* Supprimer la marge à gauche */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
  }

  /* Ajout d'une classe spécifique pour le paragraphe contenant le bouton */
.method-description p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem; /* Espace vertical entre le texte et le bouton */
}
  
  .method-cta:hover {
    background-color: rgba(52, 179, 250, 0.2);
    transform: translateY(-2px);
    filter: brightness(1.1);
  }
  
  .method-cta-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
  }
  
  .method-cta:hover .method-cta-icon {
    transform: translateX(3px);
  }

  /* grille pour aligner CTA et sous-textes en desktop */
  .method-cta-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 1.25rem;
    row-gap: 0.4rem;
    margin-bottom: 0.5rem;
  }
  .method-cta-grid .method-cta-demo { grid-column: 1; grid-row: 1; }
  .method-cta-grid .method-subtext-line1 { grid-column: 2; grid-row: 1; }
  .method-cta-grid .method-cta-approach { grid-column: 1; grid-row: 2; }
  .method-cta-grid .method-subtext-line2 { grid-column: 2; grid-row: 2; }

  .method-subtext-line1,
  .method-subtext-line2 {
    color: var(--text-secondary);
  }

  /* CTA violet: Demander une démo */
  .method-cta-demo {
    background: rgba(139, 92, 246, 0.12); /* violet clair */
    color: #6D28D9; /* violet */
    margin-bottom: 0.5rem;
  }
  .method-cta-demo:hover {
    background: rgba(139, 92, 246, 0.2);
  }

  /* Améliorations de lisibilité du CTA violet en mode sombre */
  [data-theme="dark"] .method-cta-demo {
    background: rgba(139, 92, 246, 0.32); /* fond un peu plus présent */
    color: var(--primary-01); /* texte blanc */
    border: 1px solid rgba(139, 92, 246, 0.55); /* fin contour pour le contraste */
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2) inset; /* renforce la lisibilité */
  }
  [data-theme="dark"] .method-cta-demo:hover {
    background: rgba(139, 92, 246, 0.45);
    filter: none; /* évite d’assombrir le texte */
  }

  /* Harmonisation du CTA "Découvrir notre approche" en mode sombre */
  [data-theme="dark"] .method-cta-approach {
    background: rgba(52, 179, 250, 0.32); /* fond cyan renforcé */
    color: var(--primary-01); /* texte blanc pour le contraste */
    border: 1px solid rgba(52, 179, 250, 0.55);
    box-shadow: 0 0 0 1px rgba(52, 179, 250, 0.2) inset;
  }
  [data-theme="dark"] .method-cta-approach:hover {
    background: rgba(52, 179, 250, 0.45);
    filter: none;
  }

  /* Accessibilité focus visible pour tous les CTA */
  .method-cta:focus-visible,
  .method-cta-demo:focus-visible {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
  }

  /* Sous-texte descriptif, 2 lignes max en desktop */
  .method-subtext {
    color: var(--text-secondary);
    margin: 0.35rem 0 0.75rem 0;
    max-width: 560px;
    line-height: 1.5;
  }

  /* Styles spécifiques desktop 1025px+ */
  @media (min-width: 1025px) {
    .section-method-highlight {
      padding: 0 1.5rem 1rem; /* Supprimer complètement le padding-top */
    }
    
    .method-container {
      align-items: center; /* Centrage vertical naturel */
      gap: 3rem; /* Espacement entre le titre et la grille CTA */
    }
    
    .method-text {
      margin-left: 5%; /* Réduire le décalage */
      margin-top: -2.5rem; /* Remonter BEAUCOUP plus le titre */
    }
    
    .method-title {
      margin-bottom: 1rem; /* Remettre la marge normale */
      text-align: left; /* Alignement à gauche dans sa colonne */
    }
    
    .method-cta-grid {
      row-gap: 1.5rem; /* Augmenter l'espacement entre les sections CTA+texte */
      padding-left: 0; /* Supprimer le padding pour éviter le collage */
      grid-template-columns: auto 1fr; /* CTA au centre, texte à droite */
      justify-items: start; /* Aligner les CTA à gauche dans leur colonne */
    }
    
    .method-cta-grid .method-cta-demo { 
      grid-column: 1; /* CTA au centre */
      grid-row: 1; 
      justify-self: end; /* Aligner à droite de leur colonne pour être près du texte */
    }
    .method-cta-grid .method-subtext-line1 { 
      grid-column: 2; /* Texte à droite */
      grid-row: 1; 
      padding-left: 1rem; /* Espacement avec le CTA */
      text-align: left;
    }
    .method-cta-grid .method-cta-approach { 
      grid-column: 1; /* CTA au centre */
      grid-row: 2; 
      justify-self: end; /* Aligner à droite de leur colonne pour être près du texte */
    }
    .method-cta-grid .method-subtext-line2 { 
      grid-column: 2; /* Texte à droite */
      grid-row: 2; 
      padding-left: 1rem; /* Espacement avec le CTA */
      text-align: left;
    }
    
    .method-cta-demo {
      width: fit-content; /* Taille juste du texte */
      white-space: nowrap;
      margin-bottom: 0;
    }
    
    .method-cta-approach {
      width: fit-content; /* Pour cohérence */
      white-space: nowrap;
    }
    
    .method-description {
      padding-left: 0; /* Supprimer le padding-left pour éviter le collage */
    }
  }
    
  .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/Industry.jpg'); /* Image originale restaurée */
    background-size: cover;
    background-position: center;
    z-index: 1;
  }

/* Background d’image secondaire (personnalisable) */
.background-image2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets2/45.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
  }
  
  /* Masque fluide */
  .section-mask {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 190px;
    z-index: 2;
    pointer-events: none;
    display: block;
  }

  .masked-image-section {
    position: relative;
    height: 400px; /* ou plus selon ton effet recherché */
    overflow: hidden;
    z-index: 1;
  }

  .masked-image-secondary {
    height: 800px; /* plus grande pour intégrer ta vidéo YouTube */
  }
  
  /* Bande de sécurité anti-liseré au sommet des sections masquées */
  .masked-image-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px; /* couvre toute micro-ligne au sommet */
    background: var(--background-main);
    z-index: 2;
    pointer-events: none;
  }

  /* Légère compensation pour les backgrounds afin d’éviter tout aliasing en haut */
  .background-image, .background-image2 {
    top: -2px;
  }

  /* Améliorer le rendu du tracé pour éviter les artefacts subpixel */
  .section-mask path {
    shape-rendering: geometricPrecision;
  }
    .scroll-down-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--primary-02);
    z-index: 1000;
    opacity: 0.8;
    pointer-events: none;
  }
  
  .scroll-down-indicator svg {
    width: 48px;
    height: 48px;
  }
  
  .scroll-gradient-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(52, 179, 250, 0.15), transparent);
    z-index: 500;
    pointer-events: none;
  }
  
  @keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
  }

  /* Styles pour la section Services */

  /* Styles pour la section Services */
/* Styles pour la section Services */
.partners-section {
    padding: 2rem 0 1rem 0; /* Réduire l'espace en bas */
    background-color: var(--background-main);
  }
  
  .services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Menu des services */
  .services-menu {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
  }
  
  .services-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    background-color: transparent;
  }
  
  .services-menu-item svg {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    transition: color 0.3s ease;
  }
  
  .services-menu-item.active {
    color: var(--primary-02);
    background-color: rgba(52, 179, 250, 0.08);
  }
  
  .services-menu-item:hover {
    color: var(--primary-02);
    background-color: rgba(52, 179, 250, 0.05);
    transform: translateY(-2px);
  }
  
  /* Contenu des services */
  .services-content-item {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
  }
  
  .services-content-item.active {
    display: block;
  }
  
  .services-content-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .services-content-header h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
  }
  
  .services-content-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
  }
  
  .services-content-details {
    display: flex;
    flex-direction: row-reverse; /* Inverse l'ordre : vidéo à droite, texte à gauche */
    align-items: flex-start;
    gap: 2rem;
  }
  
  .services-content-text {
    flex: 1;
    order: 2; /* S'assurer que le texte est à gauche */
    padding-right: 1rem;
  }
  
  .services-content-text ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 2rem;
  }
  
  .services-content-text li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
  }
  
  .services-content-text li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-02);
    font-weight: bold;
  }
  
  .services-content-text li b {
    color: var(--text-primary);
    font-weight: 600;
  }
  
  .services-content-text li i {
    font-style: italic;
    color: var(--primary-02);
  }
  
/* Réduire la taille de la vidéo de moitié et ajuster le texte */
.services-content-visual {
  flex: 0 0 40%; /* Prend 40% de l'espace au lieu de 50% */
  max-width: 40%; /* Limite la largeur à 40% */
  margin: 0; /* Supprime les marges auto */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  height: 250px; /* Hauteur réduite */
}
  
  .services-content-visual video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
  
  /* CTA button */
  .services-cta {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
  }
  
  .services-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color);
    filter: brightness(1.05);
  }
  
  /* Animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Mode sombre */
  [data-theme="dark"] .services-menu-item:hover,
  [data-theme="dark"] .services-menu-item.active {
    background-color: rgba(52, 179, 250, 0.15);
  }

  /* Styles minimaux pour ajouter uniquement la vidéo en fond sans autres changements */

/* Ajout de position relative et overflow hidden au bouton existant */
.hero-intro-cta {
  position: relative !important;
  overflow: hidden !important;
  /* Ne pas modifier d'autres propriétés pour conserver le style original */
}

/* Vidéo en arrière-plan */
.hero-intro-cta .video-background {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -1 !important; /* Derrière le contenu */
}

.hero-intro-cta .video-background video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Supprimer le dégradé de fond original */
.hero-intro-cta {
  background: none !important;
  /* Garder un overlay léger pour la lisibilité du texte */
  background-image: linear-gradient(to right, rgba(52, 179, 250, 0.3), rgba(117, 250, 243, 0.3)) !important;
}
  



