/**************************************************
 * WebAlchimie - CSS Rapide à Appliquer
 * Copier-coller dans WordPress Customizer > CSS Additionnel
 **************************************************/

/* ===== ANIMATIONS ===== */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

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

/* ===== HERO SECTION ===== */
.wp-block-post-content > h1:first-of-type {
  position: relative !important;
  margin: -60px -20px 0 !important;
  padding: 100px 20px 80px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
  background-size: 200% 200% !important;
  animation: gradient-shift 8s ease infinite !important;
  color: white !important;
  font-size: clamp(1.8rem, 5vw, 3rem) !important;
  text-align: center !important;
  border: none !important;
  border-radius: 0 0 50px 50px !important;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4) !important;
  line-height: 1.2 !important;
}

.wp-block-post-content > h1:first-of-type::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.5);
  margin: 25px auto 0;
  border-radius: 2px;
}

/* Sous-titre */
.wp-block-post-content > h1:first-of-type + p {
  text-align: center !important;
  font-size: clamp(1rem, 2vw, 1.3rem) !important;
  color: #4a5568 !important;
  max-width: 700px !important;
  margin: -30px auto 40px !important;
  animation: slide-up 0.6s ease-out 0.2s backwards;
}

/* Bouton CTA Principal */
.wp-block-post-content > h1:first-of-type + p + p {
  text-align: center !important;
  margin-bottom: 60px !important;
}

.wp-block-post-content > h1:first-of-type + p + p a[href="#audit"] {
  display: inline-block !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%) !important;
  color: white !important;
  padding: 18px 40px !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4) !important;
  transition: all 0.3s ease !important;
}

.wp-block-post-content > h1:first-of-type + p + p a[href="#audit"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 40px rgba(255, 107, 107, 0.5) !important;
}

/* ===== TITRES SECTIONS ===== */
.wp-block-post-content h2 {
  text-align: center !important;
  font-size: clamp(1.6rem, 4vw, 2.2rem) !important;
  color: #1a202c !important;
  margin: 60px 0 40px !important;
  position: relative !important;
}

.wp-block-post-content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ===== CARDS SERVICES ===== */
.wp-block-post-content h3 {
  background: white !important;
  padding: 30px 25px 20px !important;
  margin: 20px auto 0 !important;
  max-width: 400px !important;
  border-radius: 15px 15px 0 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(102, 126, 234, 0.1) !important;
  border-bottom: none !important;
  text-align: center !important;
  border-top: 4px solid #667eea !important;
  transition: transform 0.3s ease !important;
}

.wp-block-post-content h3:hover {
  transform: translateY(-5px);
}

.wp-block-post-content h3 + p {
  background: white !important;
  padding: 0 25px 30px !important;
  margin: 0 auto 30px !important;
  max-width: 400px !important;
  border-radius: 0 0 15px 15px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(102, 126, 234, 0.1) !important;
  border-top: none !important;
  color: #4a5568 !important;
  text-align: center !important;
}

/* Emojis avec animation */
.wp-block-post-content p:contains("🚀"),
.wp-block-post-content p:contains("📊"),
.wp-block-post-content p:contains("💡") {
  font-size: 3rem !important;
  text-align: center !important;
  margin: 30px 0 0 !important;
  animation: float 3s ease-in-out infinite;
}

/* ===== TÉMOIGNAGE ===== */
.wp-block-post-content p:contains("« En 3 mois") {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  padding: 40px !important;
  margin: 0 auto 30px !important;
  max-width: 700px !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  font-size: 1.2rem !important;
  font-style: italic !important;
  color: #2d3748 !important;
  border-left: 4px solid #667eea !important;
}

/* Stats */
.wp-block-post-content p:contains("+180%") strong,
.wp-block-post-content p:contains("+47%") strong,
.wp-block-post-content p:contains("90") strong {
  font-size: 2rem !important;
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 800 !important;
}

/* ===== CTA FINAL ===== */
.wp-block-post-content h2:contains("Prêt à travailler") {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 60px 30px 20px !important;
  margin: 60px -20px 0 !important;
  border-radius: 25px 25px 0 0 !important;
}

.wp-block-post-content h2:contains("Prêt à travailler") + p {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0 30px 20px !important;
  margin: 0 -20px !important;
  text-align: center !important;
}

.wp-block-post-content h2:contains("Prêt à travailler") + p + p {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  padding: 0 30px 60px !important;
  margin: 0 -20px 60px !important;
  text-align: center !important;
  border-radius: 0 0 25px 25px !important;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3) !important;
}

.wp-block-post-content h2:contains("Prêt à travailler") + p + p a[href="#audit"] {
  display: inline-block !important;
  background: white !important;
  color: #667eea !important;
  padding: 16px 35px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
}

.wp-block-post-content h2:contains("Prêt à travailler") + p + p a[href="#audit"]:hover {
  transform: translateY(-3px) scale(1.02) !important;
}

/* ===== FORMULAIRE ===== */
.wp-block-post-content form#webalchimie-audit-form {
  background: white !important;
  padding: 40px !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
  max-width: 600px !important;
  margin: 0 auto 60px !important;
}

.wp-block-post-content form#webalchimie-audit-form::before {
  content: '🎯';
  display: block;
  text-align: center;
  font-size: 3rem;
  margin-bottom: 25px;
  animation: float 3s ease-in-out infinite;
}

.wp-block-post-content form#webalchimie-audit-form input,
.wp-block-post-content form#webalchimie-audit-form select,
.wp-block-post-content form#webalchimie-audit-form textarea {
  width: 100% !important;
  padding: 14px 18px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  margin-bottom: 20px !important;
  background: #f7fafc !important;
  transition: all 0.3s ease !important;
}

.wp-block-post-content form#webalchimie-audit-form input:focus,
.wp-block-post-content form#webalchimie-audit-form select:focus,
.wp-block-post-content form#webalchimie-audit-form textarea:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
  outline: none !important;
  background: white !important;
}

.wp-block-post-content form#webalchimie-audit-form button[type="submit"] {
  width: 100% !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 16px !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
}

.wp-block-post-content form#webalchimie-audit-form button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .wp-block-post-content > h1:first-of-type {
    padding: 60px 15px 50px !important;
    font-size: 1.5rem !important;
    border-radius: 0 0 30px 30px !important;
  }
  
  .wp-block-post-content h3,
  .wp-block-post-content h3 + p {
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
  
  .wp-block-post-content p:contains("« En 3 mois") {
    margin: 0 15px 25px !important;
    padding: 30px 20px !important;
  }
  
  .wp-block-post-content form#webalchimie-audit-form {
    padding: 30px 20px !important;
    margin: 0 15px 40px !important;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 4px;
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}
