/* =========================================================
   FAIDA — plugins.css
   Styles de la page /plugins uniquement.
   Chargé APRÈS style.css. Ne jamais modifier style.css.

   ORDRE DU FICHIER (à respecter) :
   1. Neutralisation des animations
   2. Bandeau d'offre
   3. Hero
   4. Les trois extensions
   5. Comparatif (surcharges scopées sur #comparatif)
   6. Tarifs
   7. FAQ
   8. CTA final
   9. MEDIA QUERIES — toujours en dernier
   ========================================================= */


/* ===== 1. ANIMATIONS NEUTRALISÉES =====
   script.js n'est pas chargé ici : sans lui, .fade-up resterait
   invisible. Contenu immédiatement visible = meilleure conversion. */
.fade-up {
  opacity: 1;
  transform: none;
  transition: none;
}


/* ===== 2. BANDEAU OFFRE DE LANCEMENT ===== */
.launch-banner {
  display: block;
  position: relative;
  z-index: 1001;
  background: #F59E0B;
  color: #0D1117;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  padding: 10px 16px;
  letter-spacing: -0.2px;
  transition: background 0.2s;
}

.launch-banner:hover {
  background: #FBBF24;
}


/* ===== 3. HERO ===== */
.hero-note {
  color: #94A3B8;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 0.25rem;
}


/* ===== 4. LES TROIS EXTENSIONS ===== */
.plugins-section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.plugin-detail {
  background: #161B27;
  border: 1px solid #252D3D;
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2rem;
}

.plugin-detail-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
  padding-left: 14px;
  border-left: 4px solid #6366F1;
  margin-bottom: 0.9rem;
}

.plugin-detail-form  .plugin-detail-title { border-left-color: #9333ea; }
.plugin-detail-grab  .plugin-detail-title { border-left-color: #06b6d4; }
.plugin-detail-boost .plugin-detail-title { border-left-color: #f59e0b; }

.plugin-detail-text {
  color: #94A3B8;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.plugin-shot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #252D3D;
  background: #0D1117;
}

.plugin-shot-caption {
  color: #64748B;
  font-size: 12px;
  text-align: center;
  margin-top: 0.6rem;
}


/* ===== 5. COMPARATIF =====
   Surcharges scopées sur #comparatif : elles doivent battre les
   règles de style.css placées dans ses media queries (notamment
   .savings-amount { white-space: nowrap } sous 768px, qui ferait
   déborder le texte FCFA horizontalement). */
/* 4 lignes par colonne : hauteur de ligne normalisée pour que les
   deux colonnes restent alignées ligne à ligne sur grand écran. */
#comparatif .comparison-row {
  min-height: 46px;
}

#comparatif .comparison-total {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

#comparatif .comparison-total .price-shopify,
#comparatif .comparison-total .price-faida {
  font-size: 1.15rem;
  line-height: 1.35;
  white-space: normal;
}

#comparatif .savings-amount {
  font-size: 1.5rem;
  line-height: 1.3;
  white-space: normal;
  color: #F1F5F9;
}

#comparatif .savings-highlight {
  max-width: 480px;
}

#comparatif .savings-highlight-sub {
  margin-top: 0.5rem;
  font-size: 14px;
  color: #94A3B8;
}


/* ===== 6. TARIFS ===== */
.pricing-price-old {
  font-size: 18px;
  font-weight: 600;
  color: #64748B;
  text-decoration: line-through;
  line-height: 1.2;
  margin-bottom: 2px;
}

#tarifs .pricing-price {
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: 0.25rem;
  letter-spacing: -1.5px;
}

.pricing-price-eur {
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
  margin-bottom: 1rem;
}

.pricing-note {
  color: #64748B;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 0.85rem;
  text-align: center;
}

#tarifs .pricing-card .pricing-name {
  margin-bottom: 1rem;
}


/* ===== 7. FAQ ===== */
.faq-section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.faq-list {
  max-width: 760px;
  margin: 2rem auto 0;
}

.faq-item {
  background: #161B27;
  border: 1px solid #252D3D;
  border-radius: 12px;
  padding: 0 1.25rem;
  margin-bottom: 12px;
}

.faq-question {
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #F1F5F9;
  line-height: 1.5;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #6366F1;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  color: #818CF8;
}

.faq-answer {
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.7;
  padding: 0 0 1.25rem;
  border-top: 1px solid #1E2433;
  padding-top: 1rem;
}


/* ===== 8. CTA FINAL ===== */
.cta-btn-wrap {
  margin-top: 2rem;
}


/* =========================================================
   9. MEDIA QUERIES — RIEN NE DOIT ÊTRE AJOUTÉ APRÈS
   ========================================================= */

@media (max-width: 768px) {
  .plugins-section,
  .faq-section {
    padding: 3.5rem 0;
  }

  .plugin-detail {
    padding: 1.25rem;
    margin-top: 1.5rem;
  }

  .plugin-detail-title {
    font-size: 18px;
  }

  #comparatif .savings-amount {
    font-size: 1.3rem;
  }

  #comparatif .comparison-total .price-shopify,
  #comparatif .comparison-total .price-faida {
    font-size: 1.05rem;
  }
}

/* --- Téléphones : cible prioritaire (380px) --- */
@media (max-width: 480px) {
  .launch-banner {
    font-size: 12px;
    padding: 8px 12px;
    line-height: 1.4;
  }

  /* Hero compact : le bouton d'achat doit être visible sans défiler */
  .hero {
    padding: 1.5rem 0 1.75rem;
  }

  .hero-title {
    font-size: 23px;
    line-height: 1.15;
    margin-bottom: 0.75rem;
  }

  .hero-sub {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  .hero-btns {
    margin-bottom: 0.9rem;
    gap: 9px;
  }

  .hero .btn-primary,
  .hero .btn-secondary {
    max-width: 320px;
    padding: 12px 18px;
  }

  .hero-note {
    font-size: 12px;
    margin-top: 0;
  }

  .plugins-section,
  .faq-section {
    padding: 3rem 0;
  }

  .plugin-detail {
    padding: 1.1rem;
    border-radius: 14px;
  }

  .plugin-detail-title {
    font-size: 17px;
    padding-left: 11px;
    border-left-width: 3px;
  }

  .plugin-detail-text {
    font-size: 14px;
    margin-bottom: 1.1rem;
  }

  #comparatif .comparison-col {
    padding: 1.1rem;
  }

  #comparatif .savings-amount {
    font-size: 1.2rem;
  }

  #comparatif .savings-highlight-sub {
    font-size: 13px;
  }

  #tarifs .pricing-price {
    font-size: 30px;
  }

  .pricing-price-old {
    font-size: 16px;
  }

  .faq-question {
    font-size: 14px;
    padding-right: 1.75rem;
  }

  .faq-answer {
    font-size: 13px;
  }
}

/* --- Très petits écrans (320px) --- */
@media (max-width: 360px) {
  .hero-title {
    font-size: 21px;
  }

  .hero .btn-primary,
  .hero .btn-secondary {
    font-size: 13px;
    padding: 12px 14px;
  }

  #tarifs .pricing-price {
    font-size: 26px;
  }

  #comparatif .comparison-total .price-shopify,
  #comparatif .comparison-total .price-faida {
    font-size: 1rem;
  }
}
