/* ===================================================================
   DRAGON Homepage Styles - Pure CSS
   ================================================================ */

/* Variables CSS */
:root {
  --dragon-blue: #3CB2E1;
  --dragon-blue-dark: #2892c1;
  --dragon-blue-light: #5cc2e9;
  --dragon-orange: #F2971C;
  --dragon-orange-dark: #d27d0a;
  --dragon-orange-light: #f5ae4c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset et base */
.homepage-container {
  min-height: 100vh;
  background: white;
}

/* ===================================================================
   HERO SECTION (conservée avec modifications)
   ================================================================ */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--dragon-blue-dark), var(--dragon-blue), var(--dragon-blue-light));
  padding: 4rem 1rem 6rem;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.hero-logo {
  height: 8rem;
  margin: 0 auto 3rem;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: white;
  margin: 0 auto 2rem;
  max-width: 56rem;
  line-height: 1.75;
  opacity: 0.95;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--dragon-orange);
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.2s ease;
}

.hero-cta:hover {
  background: var(--dragon-orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.hero-cta svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.75rem;
}

/* Vague séparatrice */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  fill: white;
  width: 100%;
  height: 48px;
}

/* ===================================================================
   SECTIONS COMMUNES
   ================================================================ */
.section {
  padding: 4rem 1rem;
}

.section-bg-gray {
  background-color: var(--gray-50);
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================================
   GRILLES
   ================================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Grille spécifique pour les modules (toujours empilés verticalement) */
.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem; /* Plus d'espace entre les modules */
  max-width: 1050px; /* Largeur maximale augmentée pour meilleure lisibilité */
  margin: 0 auto;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-title {
    font-size: 3.5rem;
  }
}

/* ===================================================================
   CARTES DÉFIS
   ================================================================ */
.challenge-card {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border-top: 4px solid var(--dragon-blue);
}

.challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.challenge-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.challenge-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.challenge-problem {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.challenge-impact {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-style: italic;
}

/* ===================================================================
   CARTES MODULES (Dataflow & Analytics)
   ================================================================ */
.module-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.module-card:hover {
  border-color: var(--dragon-blue);
  transform: translateY(-2px);
}

.module-header {
  padding: 2.5rem 2rem;
  background: linear-gradient(to bottom right, var(--gray-50), white);
  border-bottom: 2px solid var(--gray-100);
}

.module-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.module-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.module-baseline {
  font-size: 1.125rem;
  color: var(--dragon-blue);
  font-weight: 500;
  margin-bottom: 1rem;
}

.module-description {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.module-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--dragon-blue);
  color: white;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.module-cta:hover {
  background: var(--dragon-blue-dark);
  transform: translateX(4px);
}

.module-cta svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.module-cta:hover svg {
  transform: translateX(4px);
}

/* Accordéon des cas d'usage */
.use-cases-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.use-cases-accordion.expanded {
  max-height: 5000px;
  transition: max-height 0.5s ease-in;
}

.use-case {
  padding: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.use-case:last-child {
  border-bottom: none;
}

.use-case-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.use-case-context {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}

.use-case-context strong {
  color: var(--gray-900);
}

.use-case-solution {
  font-size: 0.95rem;
  color: var(--dragon-blue-dark);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--dragon-blue);
}

.use-case-solution strong {
  font-weight: 600;
}

.use-case-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.use-case-benefits li {
  font-size: 0.875rem;
  color: var(--gray-600);
  padding: 0.375rem 0 0.375rem 1.75rem;
  position: relative;
}

.use-case-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0.5rem;
  color: var(--dragon-blue);
  font-weight: 700;
}

/* Fonctionnalités clés du module */
.module-features {
  padding: 2rem;
  background: var(--gray-50);
  border-top: 2px solid var(--gray-200);
}

.module-features-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.module-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.module-features-list li {
  font-size: 0.875rem;
  color: var(--gray-700);
  padding-left: 1.5rem;
  position: relative;
}

.module-features-list li:before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  top: 0;
  color: var(--dragon-orange);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

@media (min-width: 768px) {
  .module-features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================================
   SECTION ROI - Tableau comparatif
   ================================================================ */
.roi-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .roi-comparison {
    grid-template-columns: repeat(2, 1fr);
  }
}

.roi-column {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.roi-column.dragon {
  border: 2px solid var(--dragon-blue);
  box-shadow: 0 0 0 4px rgba(60, 178, 225, 0.1), var(--shadow-lg);
}

.roi-column-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.roi-column.dragon .roi-column-title {
  color: var(--dragon-blue);
  border-bottom-color: var(--dragon-blue);
}

.roi-section {
  margin-bottom: 2rem;
}

.roi-section:last-child {
  margin-bottom: 0;
}

.roi-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.roi-section p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.roi-summary {
  background: white;
  border: 2px solid var(--dragon-blue);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.roi-summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  text-align: center;
}

.roi-summary-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .roi-summary-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

.roi-summary-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.roi-summary-section p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.roi-summary-highlight {
  background: linear-gradient(to right, var(--dragon-blue-light), var(--dragon-orange-light));
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: 1.125rem;
}

/* ===================================================================
   CARTES FONCTIONNALITÉS AVANCÉES
   ================================================================ */
.feature-card {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.feature-description {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===================================================================
   SECTION COMPATIBILITÉ
   ================================================================ */
.compatibility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .compatibility-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compatibility-column {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.compatibility-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dragon-blue);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--dragon-blue);
}

.compatibility-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compatibility-list li {
  font-size: 0.95rem;
  color: var(--gray-700);
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
}

.compatibility-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--dragon-blue);
  font-weight: 700;
}

/* ===================================================================
   SECTION PROCESSUS (Stepper)
   ================================================================ */
.process-stepper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .process-stepper {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.process-step {
  position: relative;
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

@media (min-width: 1024px) {
  .process-step {
    box-shadow: none;
  }

  .process-step:not(:last-child):after {
    content: "→";
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--dragon-blue);
    font-weight: 700;
  }
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--dragon-blue);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.process-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
}

.process-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.process-description {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.process-detail {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-style: italic;
}

/* ===================================================================
   CTA FINAL
   ================================================================ */
.final-cta {
  background: linear-gradient(135deg, rgba(60, 178, 225, 0.1), rgba(242, 151, 28, 0.1));
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.final-cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.final-cta-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .final-cta-buttons {
    flex-direction: row;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--dragon-orange);
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--dragon-orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  color: var(--dragon-blue);
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  border: 2px solid var(--dragon-blue);
}

.btn-secondary:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===================================================================
   UTILITAIRES
   ================================================================ */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* Responsive text sizes */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}
