/* 
 * Styles pour index.html - Déplacé depuis le style inline
 * Version: 1.0 - Remplace le <style> inline qui causait des conflits
 */

/* Hero Home Enhanced */
.hero-home {
  position: relative;
  /* Combine gradient + image so the image is not overridden */
  background-image: linear-gradient(135deg, rgba(0, 51, 102, 0.60) 0%, rgba(0, 68, 136, 0.60) 50%, rgba(0, 188, 212, 0.60) 100%), url('../img/business-8577380_1280.jpg') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: unset;
  max-height: none;
  overflow: hidden;
  color: white !important;
  height: auto;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="800" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.4) 0%, transparent 70%);
  top: -150px;
  left: -100px;
  animation: float 20s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  bottom: -100px;
  right: 10%;
  animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.3) 0%, transparent 70%);
  top: 50%;
  right: -150px;
  animation: float 25s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  .fade-in,
  .hero-badge,
  .shape-1,
  .shape-2,
  .shape-3 {
    animation: none !important;
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  padding: 80px 0;
  height: auto;
  min-height: unset;
  max-height: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: normal;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
  height: auto;
  min-height: auto;
}

.hero-badge {
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  }

  70% {
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
  color: white !important;
}

.hero-content p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.95;
  color: white !important;
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stats-inline {
  display: flex;
  gap: 40px;
  margin-bottom: 35px;
}

.stat-inline {
  display: flex;
  flex-direction: column;
}

.stat-inline strong {
  font-size: 32px;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
  color: white !important;
}

.stat-inline span {
  font-size: 14px;
  opacity: 0.9;
  color: white !important;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 20px;
  color: white !important;
}

/* Forcer le texte en blanc dans le hero pour tout fond coloré */
.hero-home * {
  color: #ffffff !important;
}

.hero-home .hero-badge,
.hero-home .hero-stats-inline *,
.hero-home .hero-highlights *,
.hero-home .highlight *,
.hero-home .highlight-icon,
.hero-home .highlight-text {
  color: #000000;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white !important;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
}

/* Hero Highlights */
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.highlight {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.highlight-icon {
  font-size: 24px;
}

.highlight-text strong {
  display: block;
  font-size: 16px;
  color: rgb(0, 0, 0) !important;
}

.highlight-text span {
  font-size: 13px;
  color: rgba(14, 13, 13, 0.9) !important;
}

/* Services Section */
.services-section {
  padding: 80px 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #1f2937 !important;
}

.services-section *:not(.hero *):not(.hero-home *) {
  color: #1f2937 !important;
}

.services-section h2,
.services-section h3 {
  color: #111827 !important;
}

.services-section p {
  color: #4b5563 !important;
}

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #ffffff !important;
  color: #1f2937 !important;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card * {
  color: #1f2937 !important;
}

.service-card h3 {
  color: #111827 !important;
}

.service-card p {
  color: #4b5563 !important;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #003366, #004488);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
}

.service-icon--ghost {
  background: #f3f4f6;
  color: #003366;
}

/* Advantages Section */
.advantages-section,
.advantages-section.bg-gray-50 {
  padding: 80px 0 !important;
  background: #f9fafb !important;
  background-color: #f9fafb !important;
  color: #1f2937 !important;
}

.advantages-section *:not(.hero *):not(.hero-home *) {
  color: #1f2937 !important;
}

.advantages-section h2,
.advantages-section h4 {
  color: #111827 !important;
}

.advantages-section p {
  color: #4b5563 !important;
}

.advantage-icon {
  width: 60px;
  height: 60px;
  background: #003366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 28px;
}

.advantage-icon--outline {
  background: transparent;
  border: 2px solid #003366;
  color: #003366;
}

.advantage-item {
  background: transparent !important;
  color: #1f2937 !important;
}

.advantage-item * {
  color: #1f2937 !important;
}

.advantage-item h4 {
  color: #111827 !important;
}

.advantage-item p {
  color: #4b5563 !important;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #1f2937 !important;
}

.testimonials-section *:not(.hero *):not(.hero-home *) {
  color: #1f2937 !important;
}

.testimonials-section h2 {
  color: #111827 !important;
}

.testimonials-section p {
  color: #4b5563 !important;
}

.testimonial-card {
  transition: transform 0.3s ease;
  background: #ffffff !important;
  color: #1f2937 !important;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-card * {
  color: #1f2937 !important;
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-content p {
  font-style: italic;
  color: #4b5563 !important;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-info h4 {
  margin: 0;
  font-size: 16px;
  color: #111827 !important;
}

.author-info span {
  font-size: 14px;
  color: #6b7280 !important;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #003366 0%, #004488 100%) !important;
  color: white !important;
  padding: 80px 0;
}

.cta-section * {
  color: white !important;
}

.cta-content h2 {
  color: #ffffff !important;
  margin-bottom: 16px;
}

.cta-content p {
  color: #ffffff !important;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.section-eyebrow--inverse {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Section Header */
.section-header {
  margin-bottom: 50px;
  background: transparent !important;
  color: #1f2937 !important;
}

.section-header * {
  color: #1f2937 !important;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280 !important;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  color: #111827 !important;
}

.section-header p {
  font-size: 18px;
  color: #4b5563 !important;
  max-width: 700px;
  margin: 0 auto;
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
  background: transparent !important;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Fix pour le bouton Connexion */
.btn-outline {
  background: #003366 !important;
  color: #ffffff !important;
  border: 2px solid #003366 !important;
  font-weight: 600;
}

.btn-outline:hover {
  background: #004488 !important;
  color: #ffffff !important;
  border-color: #004488 !important;
}

@media (max-width: 768px) {

  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  /* Réduction des espacements verticaux inutiles dans le hero */
  .hero-grid {
    padding: 40px 0;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}