/* ===== UCARE UTS — Premium Design v2 ===== */

/* ===== OVERRIDES GLOBAUX ===== */
.section-title { color: var(--violet) !important; }
.section-title span { color: inherit; }

/* Sections alternées */
.cycles    { background: #F5F0FF !important; }
.activites { background: #ffffff !important; }
.galerie   { background: #F5F0FF !important; }
.temoignages { background: #ffffff !important; }
.inscription { background: #F5F0FF !important; }
.contact   { background: #ffffff !important; }

/* ===== BOUTONS PRINCIPAUX (S'inscrire / Inscrire mon enfant) ===== */
.btn-primary,
a.btn-primary {
  background: linear-gradient(135deg, #EC4899, #6B21A8) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 14px 32px !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 20px rgba(236,72,153,0.5) !important;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: filter 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}
.btn-primary:hover,
a.btn-primary:hover {
  filter: brightness(1.15) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(236,72,153,0.65) !important;
}

/* ===== BOUTON WHATSAPP ===== */
.btn-whatsapp,
a.btn-whatsapp,
.contact-item.whatsapp,
.footer-whatsapp {
  background: #25D366 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 32px !important;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4) !important;
  transition: filter 0.25s ease, transform 0.25s ease !important;
}
.btn-whatsapp:hover,
a.btn-whatsapp:hover,
.contact-item.whatsapp:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(37,211,102,0.55) !important;
}

/* ===== BOUTON NAVBAR "S'inscrire" ===== */
.btn-nav,
a.btn-nav {
  background: linear-gradient(135deg, #EC4899, #6B21A8) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: 25px !important;
  padding: 10px 24px !important;
  border: none !important;
  box-shadow: 0 3px 14px rgba(236,72,153,0.4) !important;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  animation: navPulse 2.5s ease-in-out infinite !important;
}
.btn-nav:hover,
a.btn-nav:hover {
  filter: brightness(1.12) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(236,72,153,0.6) !important;
}

/* ===== BOUTONS CYCLES (S'inscrire dans chaque cycle) ===== */
.cycle-btn,
a.cycle-btn {
  background: transparent !important;
  border: 2px solid #6B21A8 !important;
  color: #6B21A8 !important;
  font-weight: 700 !important;
  border-radius: 25px !important;
  padding: 11px 20px !important;
  box-shadow: none !important;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
}
.cycle-btn:hover,
a.cycle-btn:hover {
  background: #6B21A8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(107,33,168,0.38) !important;
  transform: translateY(-2px) !important;
}
/* Exception : carte featured (fond violet) → bordure blanche */
.cycle-card.featured .cycle-btn,
.cycle-card.featured a.cycle-btn {
  background: transparent !important;
  border-color: rgba(255,255,255,0.7) !important;
  color: #FFFFFF !important;
}
.cycle-card.featured .cycle-btn:hover,
.cycle-card.featured a.cycle-btn:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: white !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(255,255,255,0.2) !important;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255,255,255,0.0);
  backdrop-filter: none;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(24px) !important;
  box-shadow: 0 2px 24px rgba(107,33,168,0.12) !important;
}

/* Logo avec bordure rose */
.logo-icon {
  position: relative;
  width: 46px; height: 46px;
  flex-shrink: 0;
}
.nav-logo-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6B21A8, #EC4899, #6B21A8);
  background-size: 200% 200%;
  animation: rotateBorder 3s linear infinite;
  z-index: 0;
}
.nav-logo-img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  display: block;
}
@keyframes rotateBorder {
  0%   { background-position: 0% 50%; filter: hue-rotate(0deg); }
  100% { background-position: 200% 50%; filter: hue-rotate(360deg); }
}

.logo-name { color: var(--violet) !important; font-size: 19px !important; }

/* Bouton navbar pulse rose */
.btn-nav {
  background: linear-gradient(135deg, #EC4899, #6B21A8) !important;
  animation: navPulse 2.5s ease-in-out infinite !important;
  color: white !important;
}
@keyframes navPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236,72,153,0.45); }
  50%       { box-shadow: 0 0 0 8px rgba(236,72,153,0); }
}
.nav-links a { color: var(--gray-800); font-weight: 500; }
.nav-links a:hover { color: var(--violet) !important; background: rgba(107,33,168,0.08) !important; }

/* ===== HERO CENTRÉ ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(160deg, #1a0040 0%, #2d0d6e 30%, #6B21A8 60%, #9a1f6b 80%, #1a0040 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  overflow: hidden;
  flex-direction: column;
}

/* Canvas Three.js */
#hero-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-center { position: relative; z-index: 3; text-align: center; max-width: 820px; width: 100%; }

/* --- Logo hero avec anneau tournant --- */
.hero-logo-wrap {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 20px;
}
.logo-ring-outer {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(236,72,153,0.6);
  animation: spinRing 8s linear infinite;
}
.logo-ring-inner {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #EC4899;
  border-right-color: #6B21A8;
  animation: spinRing 3s linear infinite;
}
.logo-ring-dots {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  animation: spinRing 10s linear infinite reverse;
}
.ring-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px rgba(236,72,153,0.8);
}
.ring-dot.d1 { top: 50%; left: -4px;  transform: translateY(-50%); }
.ring-dot.d2 { top: -4px; left: 50%;  transform: translateX(-50%); }
.ring-dot.d3 { top: 50%; right: -4px; transform: translateY(-50%); }
.ring-dot.d4 { bottom: -4px; left: 50%; transform: translateX(-50%); }
@keyframes spinRing {
  to { transform: rotate(360deg); }
}
.hero-logo-img {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 0 2px rgba(236,72,153,0.4),
              0 8px 40px rgba(107,33,168,0.6),
              0 0 60px rgba(236,72,153,0.3);
}

/* Nom de l'école */
.hero-school-name {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 20px;
  font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
}
.school-uts {
  background: linear-gradient(135deg, #EC4899, #F472B6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 800; font-size: 17px;
}
.school-sep { color: rgba(255,255,255,0.3); }

/* Titre hero */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: white;
}
.text-gradient-hero {
  background: linear-gradient(135deg, #EC4899 0%, #F472B6 40%, #C084FC 80%, #EC4899 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
}
@keyframes shimmerText {
  to { background-position: 200% center; }
}
.hero-title-white { color: white; }

.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto; margin-right: auto;
}
.hero-proud {
  color: #F472B6;
  font-weight: 700;
}

/* Stats 4 colonnes */
.hero-stats {
  display: flex; align-items: stretch;
  gap: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 22px 8px;
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
}
.stat-card {
  flex: 1; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.stat-number {
  font-size: 38px; font-weight: 900;
  background: linear-gradient(135deg, #EC4899, #C084FC);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.stat-suffix {
  font-size: 18px; font-weight: 700;
  background: linear-gradient(135deg, #EC4899, #C084FC);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
  margin-top: -4px;
}
.stat-label { font-size: 11px; color: rgba(255,255,255,0.58); font-weight: 500; margin-top: 4px; }
.stat-divider { width: 1px; background: rgba(255,255,255,0.14); flex-shrink: 0; margin: 4px 0; }

/* CTA hero */
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.4);
  color: #7bf0a8;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-whatsapp:hover {
  background: #25D366; color: white;
  border-color: #25D366;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transform: translateY(-2px);
}

/* Photo strip */
.hero-photo-strip {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.photo-strip-inner {
  display: flex; gap: 3px;
  height: 180px;
}
.photo-strip-inner img {
  flex: 1; object-fit: cover;
  transition: flex 0.4s ease;
  filter: brightness(0.85);
}
.photo-strip-inner img:hover { flex: 2.5; filter: brightness(1); }
.photo-strip-label {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.9);
  font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 100px;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}

/* ===== SECTION TITLES violet ===== */
.cycles .section-title,
.activites .section-title,
.galerie .section-title,
.temoignages .section-title,
.inscription .section-title,
.contact .section-title {
  color: var(--violet);
}

/* ===== CYCLES — section violet clair ===== */
.cycle-card h3 { color: var(--violet); }
.cycle-card.featured h3 { color: white !important; }

/* ===== ACTIVITÉS ===== */
.activite-card h3 { color: var(--violet); }
.featured-activite h3 { color: white !important; }

/* ===== TÉMOIGNAGES ===== */
.temoignage-card { background: #F5F0FF !important; border-color: rgba(107,33,168,0.1) !important; }
.temoignage-card.featured-temo { background: linear-gradient(135deg, #6B21A8, #EC4899) !important; }
.author-name { color: var(--violet); }
.featured-temo .author-name { color: white !important; }

/* ===== RÉSULTATS ===== */
.resultats {
  background: linear-gradient(160deg, #0A0A1A 0%, #1a0533 40%, #2d0050 70%, #0A0A1A 100%) !important;
}

/* ===== INSCRIPTION form ===== */
.inscription-form h3 { color: var(--violet); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(107,33,168,0.12);
}
.step-num { background: linear-gradient(135deg, #6B21A8, #EC4899); }

/* ===== FOOTER violet sombre ===== */
.footer {
  background: linear-gradient(180deg, #1a0040 0%, #0A0A14 100%) !important;
}
.footer-bottom { border-top-color: rgba(107,33,168,0.25) !important; }
.footer-credit a { color: var(--pink-light) !important; }
.social-btn:hover { background: linear-gradient(135deg, #6B21A8, #EC4899) !important; border-color: transparent !important; }

/* ===== CONTACT cards ===== */
.contact-card h4 { color: var(--violet); }
.contact-card:hover { border-color: var(--pink) !important; }

/* ===== CHAT avatar couleur ===== */
.chat-header { background: linear-gradient(135deg, #6B21A8, #EC4899) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-stats { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .stat-divider { display: none; }
  .stat-card { min-width: 40%; }
  .photo-strip-inner { height: 120px; }
  .hero-logo-wrap { width: 110px; height: 110px; }
  .hero-title { font-size: clamp(36px, 9vw, 56px); }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-whatsapp { width: 100%; justify-content: center; }
}
