/* Variables pour faciliter la personnalisation */
:root {
  --primary-color: #2c3e50;      /* Gris anthracite (7016) */
  --secondary-color: #6f0400;    /* Orange chaleureux */
  --accent-color: #3498db;       /* Bleu pour les liens */
  --bg-light: #f8f9fa;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --white: #ffffff;
  --border-radius: 20px;
  --card-radius: 16px;
  --box-shadow: 0 15px 35px rgba(44, 62, 80, 0.08);
  --hover-shadow: 0 25px 50px rgba(44, 62, 80, 0.15);
}

/* Conteneur principal */
.faq-accueil-container {
  max-width: 1300px;
  margin: 60px auto;
  padding: 0 25px;
  font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif;
}

/* En-tête du bloc */
.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), #1a2632);
  color: var(--white);
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
}

.faq-title {
  color: var(--primary-color);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.faq-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 20px auto 0;
  font-weight: 300;
}

/* Grille des FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

/* ===== ANIMATION AU DÉFILEMENT ===== */
/* État initial des cartes - VISIBLE PAR DÉFAUT */
.faq-card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 35px 30px;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  
  /* Les cartes sont visibles par défaut */
  opacity: 1;
  transform: translateY(0);
  
  /* Transition pour l'animation au scroll */
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease;
}

/* Optionnel : si vous voulez quand même l'effet d'apparition */
.faq-card {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-card:nth-child(1) { animation-delay: 0.1s; }
.faq-card:nth-child(2) { animation-delay: 0.3s; }
.faq-card:nth-child(3) { animation-delay: 0.5s; }

/* Effet au survol */
.faq-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Ligne colorée au survol */
.faq-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.faq-card:hover::before {
  transform: scaleX(1);
}

/* Icône Font Awesome */
.faq-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(145deg, var(--primary-color), #34495e);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 10px 20px rgba(44, 62, 80, 0.15);
  transition: all 0.3s ease;
}

.faq-card:hover .faq-icon {
  transform: scale(1.05) rotate(5deg);
  background: linear-gradient(145deg, #be2109, #d35400);
}

.faq-icon i {
  font-size: 32px;
  color: var(--white);
}

/* Question */
.faq-question {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 15px;
  line-height: 1.4;
  min-height: 70px;
}

/* Réponse */
.faq-answer {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Lien "Lire la réponse" */
.faq-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.faq-link i {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.faq-link:hover {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

.faq-link:hover i {
  transform: translateX(5px);
}

/* Footer avec bouton VOIR PLUS */
.faq-footer {
  text-align: center;
}

.faq-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: linear-gradient(145deg, var(--secondary-color), #891211);
  color: var(--white);
  padding: 18px 45px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 15px 30px rgba(230, 126, 34, 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  /* Le bouton est visible par défaut */
  opacity: 1;
  transform: translateY(0);
}

.faq-button:hover {
  background: linear-gradient(145deg, #c31901, #a90600);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px rgba(230, 126, 34, 0.4);
  color: #fff;
}

.faq-button:active {
  transform: translateY(0);
}

.button-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.faq-button:hover .button-icon {
  transform: translateX(8px);
}

/* Responsive pour tablette */
@media (max-width: 992px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .faq-title {
    font-size: 2.2rem;
  }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .faq-accueil-container {
    margin: 40px auto;
    padding: 0 20px;
  }
  
  .faq-title {
    font-size: 1.8rem;
  }
  
  .faq-subtitle {
    font-size: 1rem;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .faq-card {
    padding: 25px 20px;
    animation: fadeInUp 0.8s ease forwards;
  }
  
  .faq-card:nth-child(1) { animation-delay: 0s; }
  .faq-card:nth-child(2) { animation-delay: 0.1s; }
  .faq-card:nth-child(3) { animation-delay: 0.2s; }
  
  .faq-question {
    font-size: 1.2rem;
    min-height: auto;
  }
  
  .faq-answer {
    font-size: 1rem;
  }
  
  .faq-button {
    padding: 15px 30px;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
  }
}