/* LayerSectionOne.css - Styles pour les sections spécifiques avec améliorations */

/* CSS pour la solution hero alternative avec vidéo et image de secours */

/* Conteneur principal */
.hero {
  position: relative;
  height: 10vh;
  min-height: 100px;
  overflow: hidden;
}

/* Conteneur vidéo */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background-color: #081D27; /* Couleur de fond de secours */
}

/* Style partagé pour toutes les vidéos */
.hero-video {
  position: absolute;
  width: 100%;
  height: auto;
  z-index: 1;
  opacity: 0.88;
  display: none; /* Masquée par défaut, affichée via JS */
}

/* Vidéo desktop */
.desktop-video {
  top: -600px;
  left: 0;
}

/* Vidéo mobile (plus petite, différemment positionnée) */
.mobile-video {
  top: -300px;
  left: 0;
  width: 150%; /* Plus large pour remplir l'espace */
  left: -25%;
}

/* Image de secours */
.hero-fallback-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets2/hero-bg.jpg'); /* Créer une image statique */
  background-size: cover;
  background-position: center;
  z-index: 1;
  display: none; /* Masquée par défaut, affichée via JS */
}

/* Overlay pour améliorer la lisibilité */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 2;
}


/* Contenu texte */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0;
  width: 100%; /* Utiliser toute la largeur disponible */
  max-width: 100%; /* Supprimer la limitation de largeur qui pourrait causer un décentrage */
  margin: 1vh auto 0; /* Marges horizontales automatiques pour centrer */
  box-sizing: border-box; /* S'assurer que padding est inclus dans la largeur */
}

.hero-logo .emblem {
  height: 30px;
  margin: 0 auto;
}

.dynamic-text {
  font-size: 1.98rem;
  margin: 0 auto 1.75rem;
  min-height: 3.3rem;
  display: block;
  font-weight: 400;
  color: white;
  text-shadow: none;
  width: 100%;
  text-align: center;
}

/* Média queries pour tablettes */
@media (max-width: 1200px) {
  .hero {
    height: 15vh;
    min-height: 120px;
  }
  
  .hero-content {
    margin-top: 4vh;
  }
  
  .dynamic-text {
    font-size: 1.62rem;
    min-height: 2.7rem;
  }
}

/* Média queries pour mobile */
@media (max-width: 767px) {
  .hero {
    height: 10;
    min-height: 60px;
    position: absolute;
  }
  
  .hero-content
   {
    display: none;
  }
}

/* Mise à jour pour .nav-buttons-container - remplacer la déclaration existante */
.nav-buttons-container {
  padding: 2rem 1rem;
  background-color: transparent; /* Changé de var(--background-main) à transparent */
  position: relative;
  z-index: 2;
  margin-top: -100px;
}

/* Ajout pour l'effet reveal */
.nav-buttons-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0; /* Pour l'effet reveal */
  transform: translateY(30px); /* Pour l'effet reveal */
  transition: opacity 0.8s ease, transform 0.8s ease; /* Pour l'animation */
}

.nav-buttons-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background-color: var(--background-card);
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--shadow-color);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid var(--border-light);
}

/* Nouvel effet d'inversion de contraste au survol */
.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

/* Style amélioré pour les boutons "Soon" */
.nav-button.soon {
  cursor: not-allowed;
  opacity: 0.75;
  filter: grayscale(40%);
  position: relative;
  overflow: hidden;
}

.nav-button-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.75rem;
}

.nav-button-title {
  flex-grow: 1;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-button-arrow {
  width: 16px;
  height: 16px;
  margin-left: 0.5rem;
  color: var(--text-secondary);
}

/* Couleurs des boutons */
.nav-button[data-color="rose"] .nav-button-dot {
  background-color: #f43f5e;
}

.nav-button[data-color="emerald"] .nav-button-dot {
  background-color: #10b981;
}

.nav-button[data-color="indigo"] .nav-button-dot {
  background-color: #6366f1;
}

.nav-button[data-color="cyan"] .nav-button-dot {
  background-color: #06b6d4;
}

.nav-button-soon-tag {
  background-color: var(--graphite);
  color: white;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  margin-left: 0.4rem;
}

/* Style général des sections */
.section {
  padding-bottom: -25rem;
  background-color: var(--background-main);
}

/* Section avec fond blanc */
.section-white {
  background-color: var(--background-main);
}

/* Section avec fond gris léger - Couleur plus claire pour les sections */
.section-alt {
  background-color: #f8f9fc;
}

/* Conteneur principal des sections */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  padding-bottom: -10rem;
}

/* Mise en forme des tuiles de type application - Gris plus clair et élégant */
.app-tile {
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 40px;
  width: 100%;
}

/* En-tête de tuile simplifiée */
.app-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.app-title {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
  width: 100%;
}

/* Titres des sections avec trait dégradé */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

/* Trait dégradé sous les titres */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Ne pas souligner le titre innovation qui a un effet spécifique */
.innovation-title::after { display: none; }

/* Styles pour les tuiles d'information */
.info-tiles-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-tile {
  background-color: var(--background-card);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  padding-bottom: 1rem;
}

/* Effet d'inversion de contraste pour les info-tiles */
.info-tile:hover {
  transform: translateY(-5px);
  background-color: var(--primary-04);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-02);
}

.info-tile:hover .info-tile-title,
.info-tile:hover .info-tile-text {
  color: white;
}

.info-tile-icon {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Animation d'agrandissement pour les icônes */
.info-tile:hover .info-tile-icon {
  transform: scale(1.2);
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(52, 179, 250, 0.5));
}

.info-tile-icon object {
  width: 170px;
  height: 170px;
}

.info-tile-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.info-tile-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* Partenaires et sliders */
.partners-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.partners-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.partners-slider {
  overflow: hidden;
  margin: 2rem 0;
  position: relative;
}

.partners-track {
  display: flex;
  animation: scroll 30s linear infinite;
}

.partner-logo {
  min-width: 150px;
  height: 80px;
  margin: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 10px;
}

.partner-logo:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-150px * 6 - 1.5rem * 12));
  }
}

/* Nouveaux styles pour la section spécialités */
.specialties-section {
  padding: 2rem 0; /* Ajouter un peu d'espacement vertical */
  background-color: var(--background-main);
}

.specialties-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.specialties-text-new {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0; /* Réduire de 3rem à 2rem pour équilibrer */
  text-align: center;
}

.specialty-item-new {
  font-size: 1.5rem;
  color: var(--text-primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.specialty-item-new:hover {
  transform: scale(1.05);
}

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

.separator {
  color: var(--text-secondary);
  font-size: 2.2rem;
}

/* YouTube container */
.youtube-container {
  position: absolute;
  top: calc(50% + 42px);
  left: 50%;
  transform: translate(-50%, -50%);

  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;

  /* Supprimer padding ici 👇 */
  padding: 0;

  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Section contact */
.contact-section {
  padding: 5rem 0;
  background-color: var(--background-card);
}

.contact-section .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contact-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.contact-section p {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-form .form-group:last-of-type {
  grid-column: span 2;
}

.contact-form button[type="submit"] {
  grid-column: span 2;
  justify-self: center;
  min-width: 200px;
}

/* Styles spécifiques pour les boutons */
.nav-button[data-color="rose"]:hover {
  background-color: rgba(244, 63, 94, 0.1);
  border-color: #f43f5e;
}

.nav-button[data-color="rose"]:hover .nav-button-title {
  color: #f43f5e;
}

.nav-button[data-color="rose"]:hover .nav-button-arrow {
  color: #f43f5e;
}

.nav-button[data-color="emerald"]:hover {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.nav-button[data-color="emerald"]:hover .nav-button-title {
  color: #10b981;
}

.nav-button[data-color="emerald"]:hover .nav-button-arrow {
  color: #10b981;
}

.nav-button[data-color="indigo"]:hover {
  background-color: rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
}

.nav-button[data-color="indigo"]:hover .nav-button-title {
  color: #6366f1;
}

.nav-button[data-color="indigo"]:hover .nav-button-arrow {
  color: #6366f1;
}

.nav-button[data-color="cyan"]:hover {
  background-color: rgba(6, 182, 212, 0.1);
  border-color: #06b6d4;
}

.nav-button[data-color="cyan"]:hover .nav-button-title {
  color: #06b6d4;
}

.nav-button[data-color="cyan"]:hover .nav-button-arrow {
  color: #06b6d4;
}

/* Style simplifié pour les boutons "soon" */
.nav-button.soon {
  cursor: not-allowed;
  opacity: 0.75;
  filter: grayscale(30%);
}

/* Effet de survol léger pour les boutons soon */
.nav-button.soon:hover {
  transform: none;
  box-shadow: 0 2px 10px var(--shadow-color);
  background-color: rgba(0, 0, 0, 0.09);
  border-color: var(--border-light);
}

.nav-button.soon:hover .nav-button-title {
  color: var(--text-primary);
}


/* Dark mode adjustments */
[data-theme="dark"] .section-alt {
  background-color: rgba(20, 30, 40, 0.5);
}

[data-theme="dark"] .app-container {
  background-color: var(--background-card);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .app-tile {
  background-color: #323945;
}

[data-theme="dark"] .info-tile {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .info-tile:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .info-tile:hover .info-tile-title,
[data-theme="dark"] .info-tile:hover .info-tile-text {
  color: white;
}

[data-theme="dark"] .app-header {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .partner-logo {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 0.6;
}

[data-theme="dark"] .partner-logo:hover {
  background-color: rgba(255, 255, 255, 0.2);
  opacity: 0.9;
}

[data-theme="dark"] .nav-button.soon:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Version corrigée pour masquer/afficher les éléments mobiles/desktop */
@media (min-width: 768px) {
  /* Sur desktop, masquer les éléments mobiles */
  .services-menu-item span {
    display: inline !important; /* Forcer l'affichage du texte */
  }
  
  /* Masquer toutes les classes contenant 'mobile' */
  [class*="mobile-"] {
    display: none !important;
  }
}

@media (max-width: 767px) {
  /* Sur mobile, masquer les détails desktop dans les services */
  .services-content-details {
    display: none !important;
  }
  
  /* Masquer le texte dans les éléments de menu */
  .services-menu-item span {
    display: none !important;
  }
}

/* Règle spécifique pour fixer le problème des icônes sur desktop */
@media (min-width: 768px) {
  .services-menu-item svg {
    width: 24px !important;
    height: 24px !important;
    margin-right: 10px !important;
  }
  
  .services-menu-item {
    padding: 0.75rem 1rem !important;
    background-color: transparent !important;
    border: none !important;
  }
}

.interest-options-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.interest-option {
  display: flex;
  align-items: center;
}

.interest-option-text {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #e5e7eb; /* Couleur de bordure claire du formulaire */
  border-radius: 8px;
  text-align: center;
  color: #1f2937; /* Couleur de texte sombre mais pas noir du formulaire */
  background-color: #f9fafb; /* Fond très clair du formulaire */
  transition: all 0.3s ease;
  cursor: pointer;
}

.interest-option-text:hover {
  background-color: #f3f4f6;
  color: #374151;
}

/* Ajustements pour très petits écrans */
@media (max-width: 480px) {
  .interest-options-simple {
    grid-template-columns: 1fr;
  }
}

.interest-option-text.active {
  background: linear-gradient(135deg, #34B3FA, #75FAF3);
  color: white;
  border-color: var(--primary-02);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(52, 179, 250, 0.3);
}

.interest-options-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.interest-option {
  display: flex;
  align-items: center;
}

.interest-option-text {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #e5e7eb; /* Couleur de bordure claire du formulaire */
  border-radius: 8px;
  text-align: center;
  color: #1f2937; /* Couleur de texte sombre mais pas noir du formulaire */
  background-color: #f9fafb; /* Fond très clair du formulaire */
  transition: all 0.3s ease;
  cursor: pointer;
}

.interest-option-text:hover {
  background-color: #f3f4f6;
  color: #374151;
}

/* Ajustements pour très petits écrans */
@media (max-width: 480px) {
  .interest-options-simple {
    grid-template-columns: 1fr;
  }
}