/* ===== SECTION SERVICES ===== */
.services {
  padding: 80px 0;
  background: #ffffff;
}

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

.services__header {
  text-align: center;
  margin-bottom: 60px;
}

.services__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.services__subtitle {
  font-size: 1.2rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #f3f4f6;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #6f64db;
}

.service-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #6f64db, #8b7ee8);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.service-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.service-card__description {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-card__link {
  color: #6f64db;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.service-card__link:hover {
  color: #5a52c7;
}

/* ===== SECTION ABOUT ===== */
.about {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__content {
  max-width: 500px;
}

.about__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 24px;
  line-height: 1.2;
}

.about__description {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 32px;
}

.about__features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: #374151;
}

.about__feature-icon {
  width: 20px;
  height: 20px;
  color: #6f64db;
  flex-shrink: 0;
}

.about__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__image {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .about__container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .about__title {
    font-size: 2rem;
  }
}

/* ===== SECTION CTA ===== */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #6f64db 0%, #5a52c7 100%);
  color: white;
  text-align: center;
}

.cta__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta__description {
  font-size: 1.2rem;
  margin-bottom: 32px;
  opacity: 0.9;
  line-height: 1.6;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .cta__title {
    font-size: 1.75rem;
  }
  
  .cta__description {
    font-size: 1.1rem;
  }
  
  .cta__actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .cta__title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }
}

/* ===== COMPARISON CARDS ===== */
.comparison-card {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #f3f4f6;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: #e5e7eb;
}

.comparison-card--featured {
  border-color: #6f64db;
  background: linear-gradient(135deg, #faf9ff 0%, #f3f1ff 100%);
}

/* Trait violet supprimé - .comparison-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6f64db, #7c6cd6);
} */

/* ===== SECTION FAQ ===== */
.faq {
  padding: 80px 0;
  background: #ffffff;
}

.faq__container {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq__item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq__question {
  width: 100%;
  padding: 24px 28px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  transition: all 0.3s ease;
}

/* Bloc .faq__question (BEM) */
.faq__question:hover {
  color: #6f64db;
}

.faq__question[aria-expanded="true"] {
  color: #6f64db;
  border-bottom: none; /* supprime le trait sous la question ouverte */
}

.faq__icon {
  transition: transform 0.3s ease;
  color: #6b7280;
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
  color: #6f64db;
}

.faq__answer {
  padding: 0 28px 24px;
  color: #4b5563;
  line-height: 1.6;
  display: none;
}

.faq__answer.is-open {
  display: block;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Styles */
.footer {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #333333;
    padding: 60px 0 20px;
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
}

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

.footer__content {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1.5fr 1fr 1fr 1fr;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
    -webkit-box-align: start;
    -webkit-align-items: start;
    -ms-flex-align: start;
    align-items: start;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.footer__section {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Alignement parfait des sections */
.footer__content > .footer__section:nth-child(2),
.footer__content > .footer__section:nth-child(3),
.footer__content > .footer__section:nth-child(4) {
    margin-top: 0;
    padding-top: 0;
}

.footer__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #7c6cd6;
    position: relative;
    margin-top: 0;
    padding-top: 0;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #7c6cd6;
    border-radius: 1px;
}

.footer__description {
    color: #666666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666666;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer__contact-item:hover {
    color: #7c6cd6;
}

.footer__icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    color: #666666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer__link:hover {
    color: #7c6cd6;
}

/* Suppression des styles de tiret */
/* .footer__link::before et .footer__link:hover::before supprimés */

.footer__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #333 20%, #333 80%, transparent 100%);
    margin: 20px 0;
}

.footer__bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
}

.footer__copyright {
    text-align: center;
}

.footer__copyright p {
    margin: 0;
    color: #9CA3AF;
    font-size: 0.9rem;
}

.footer__made-with {
    color: #888;
}

/* Logo section optimisée */
.footer__logo {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 12px;
    margin-top: 0;
    padding-left: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.footer__logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    display: block;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.footer__about {
    margin-top: 0;
    padding-top: 0;
}

.footer__section h3 {
    margin-top: 0;
    padding-top: 0;
}

.footer__tagline {
    text-align: left;
    color: #9CA3AF;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
    padding-left: 0;
}

.footer__logo .footer__title {
    margin-bottom: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Responsive amélioré */
@media (max-width: 768px) {
    .footer__content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer__logo {
        justify-content: center;
    }
    
    .footer__tagline {
        text-align: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    /* Suppression des traits violets sur mobile */
    .footer__title::after {
        display: none;
    }
    
    /* Centrage de tout le contenu */
    .footer__section {
        align-items: center;
        text-align: center;
    }
    
    .footer__contact {
        align-items: center;
    }
    
    .footer__links {
        align-items: center;
    }
}

/* Fix spécifique Safari mobile pour le footer */
@media screen and (max-width: 768px) {
    .footer__content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }
    
    .footer__logo {
        justify-content: center !important;
    }
    
    .footer__logo-img {
        height: 50px !important;
        max-height: 50px !important;
    }
    
    .footer__tagline {
        text-align: center !important;
    }
    
    .footer__bottom {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
    
    .footer {
        padding: 40px 0 20px !important;
    }
    
    .footer__title::after {
        display: none !important;
    }
    
    .footer__section {
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer__contact {
        align-items: center !important;
    }
    
    .footer__links {
        align-items: center !important;
    }
}

@media screen and (max-width: 480px) {
    .footer__logo-img {
        height: 40px !important;
        max-height: 40px !important;
    }
    
    .footer {
        padding: 30px 0 15px !important;
    }
}

/* Fix Safari iOS spécifique */
@supports (-webkit-touch-callout: none) {
    .footer__content,
    .footer__section,
    .footer__logo {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .footer__logo-img {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

@media (max-width: 1024px) {
    .footer__content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}