/* ==========================================================
   1. STYLES GÉNÉRAUX & FOND DÉGRADÉ ANIMÉ
   ========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  /* Fond dégradé subtil bleu nuit / ardoise */
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 70%, #020617 100%);
  background-attachment: fixed;
  color: white;
  line-height: 1.7;
  font-size: 1.15rem; /* Écriture de base plus grosse */
  position: relative;
  overflow-x: hidden;
}

/* Lueur d'ambiance verte IA animée en tâche de fond */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulseGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Alterne subtilement le fond d'une section sur deux */
.section:nth-of-type(even) {
  background-color: rgba(30, 41, 59, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

/* ==========================================================
   2. HERO SECTION (Centrée pour PC)
   ========================================================== */
.hero {
  display: flex;
  flex-direction: column; /* Aligne le texte et l'image verticalement */
  align-items: center;    /* Centre horizontalement */
  justify-content: center;/* Centre verticalement */
  text-align: center;     /* Centre le texte */
  padding: 80px 10%;
  min-height: 100vh;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 40px; /* Espace avant l'image */
  animation: fadeIn 1.2s ease;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 25px;
  color: #22c55e;
}

.hero-text p {
  font-size: 1.5rem;
  margin-bottom: 25px;
  opacity: 0.85;
}

.hero-img {
  max-width: 450px;
  display: block;
  margin-left: auto;
  margin-right: auto; /* Centrage PC */
  animation: float 3s ease-in-out infinite;
}

.hero-img img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}


 .hero-img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ==========================================================
   3. BOUTONS & COMPOSANTS RÉUTILISABLES
   ========================================================== */
.btn {
  display: inline-block;
  padding: 16px 35px;
  background: linear-gradient(45deg, #22c55e, #4ade80);
  border-radius: 30px;
  text-decoration: none;
  color: #000;
  font-weight: 700;
  font-size: 1.2rem;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #22c55e;
}

.section {
  padding: 80px 10%;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  text-align: center;
}

.highlight {
  background: #1e293b;
  padding: 45px;
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.highlight h2 {
  font-size: 2rem;
  text-align: left;
  margin-top: 25px;
  margin-bottom: 20px;
  color: #22c55e;
}

.highlight p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.list {
  margin: 20px 0 20px 25px;
  font-size: 1.2rem;
}

.list li {
  margin-bottom: 12px;
}

/* ==========================================================
   4. STRUCTURE DES GRILLES DE CARTES FIXES (CONCEPT & FAQ)
   ========================================================== */
/* Conteneur des cartes de présentation */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cartes de présentation principales */
.pro-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 35px 30px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.pro-card h2 {
  font-size: 1.6rem !important;
  color: white;
  text-align: left !important;
  margin-bottom: 20px !important;
  line-height: 1.3;
}

.card-body {
  font-size: 1.15rem;
  color: #cbd5e1;
}

.card-body p {
  margin-bottom: 15px;
}

.accent-text {
  border-left: 3px solid #22c55e;
  padding-left: 12px;
  color: #e2e8f0;
}

/* Grille spécifique pour "POUR QUI" */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: #1e293b;
  padding: 30px;
  border-radius: 15px;
  transition: 0.3s;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #4ade80;
}

.card p {
  font-size: 1.1rem;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Grille spécifique pour les cartes FAQ Fixes */
.faq-grid-fixe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.faq-card-fixe {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-card-fixe h3 {
  font-size: 1.3rem;
  color: #4ade80;
  line-height: 1.4;
  margin-bottom: 15px;
}

.faq-divider {
  height: 2px;
  width: 50px;
  background: #22c55e;
  margin-bottom: 20px;
}

.faq-card-fixe p {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Effets de survol combinés pour toutes les cartes pro */
.pro-card:hover, .faq-card-fixe:hover {
  transform: translateY(-8px);
  border-color: #22c55e;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(34, 197, 94, 0.15);
}

/* 1. Assurer que le conteneur FAQ est bien limité pour permettre le centrage */
.faq-grid-fixe {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Force 2 colonnes sur grand écran */
  gap: 30px;
  max-width: 950px; /* Réduit un peu la largeur pour que les cartes ne soient pas trop étirées */
  margin: 0 auto;
}

/* 2. Centrer le dernier bloc uniquement quand il y en a 3 */
/* On cible le 3ème enfant dans la grille */
@media (min-width: 900px) {
  .faq-grid-fixe .faq-card-fixe:nth-child(3) {
    grid-column: span 2; /* Il prend la largeur des 2 colonnes */
    max-width: 450px;    /* Il garde la largeur d'une seule carte */
    margin: 0 auto;      /* Il se centre automatiquement */
  }
}

footer {
  text-align: center;
  padding: 40px 20px;
  opacity: 0.6;
  font-size: 1rem;
}

/* ==========================================================
   6. ANIMATIONS GLOBALLES
   ========================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

/* ==========================================================
   7. VERSION MOBILE 
   ========================================================== */
@media (max-width: 768px) {
  body {
    font-size: 1.1rem;
  }

  .hero {
    padding: 40px 5%;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .hero-text p {
    font-size: 1.15rem;
  }

  .hero-img {
    margin-top: 30px;
    max-width: 90%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 50px 5%;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .highlight {
    padding: 25px 20px;
  }

  .highlight h2 {
    font-size: 1.5rem;
  }

  .highlight p, .list {
    font-size: 1.1rem;
  }

  .cards-container, .faq-grid-fixe, .grid {
    grid-template-columns: 1fr; /* Force une seule colonne sur mobile */
    gap: 20px;
  }
  
  .pro-card, .faq-card-fixe {
    padding: 25px 20px;
  }

  .faq-card-fixe h3 {
    font-size: 1.15rem;
  }

  .accordion h2 {
    font-size: 1.2rem;
  }
