/* ==========================================================================
   1. CONFIGURATION (FONTS & VARIABLES)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Couleurs */
  --bg-dark: #070708;
  --fg-light: #f5f5f5;
  --muted: #bfbfbf;
  --primary: hsl(260, 78%, 66%);
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #7b2ff7, #4facfe);
  --grad-social: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  --grad-tiktok: linear-gradient(90deg, #000000, #202020);
  
  /* Effets & UI */
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --blur-val: 12px;
  --radius: 18px;
  --shadow-glow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--fg-light);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text { font-family: 'Sora', sans-serif; font-weight: 700; line-height: 1.2; }

/* ==========================================================================
   3. ARRIÈRE-PLANS
   ========================================================================== */
.bg-default { background: url("arriereplan.jpeg") no-repeat center/cover fixed; }
.bg-about { background: url("arriereplanabout.jpeg") no-repeat center/cover fixed; }
.bg-payment { background: url("raw.jpeg") no-repeat center/cover fixed; }
.bg-studio { background: url("A_digital_photograph_features_a_professional_audio.png") no-repeat center/cover fixed; }

.bg-overlay {
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(circle at 40% 40%, rgba(40, 20, 80, 0.5), rgba(10, 5, 20, 0.85));
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   4. COMPOSANTS UI (BOUTONS, CARTES, TEXTES)
   ========================================================================== */
/* Texte Gradient */
.text-gradient { 
  background: var(--grad-primary); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  background-clip: text; 
}

/* Panneaux Glassmorphism (Base) */
.glass-panel, .card, .stat-card {
  background: var(--glass);
  backdrop-filter: blur(var(--blur-val));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-glow);
  transition: 0.3s ease;
}

/* Boutons Principaux */
.btn-primary {
  background: var(--grad-primary);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(123, 47, 247, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(123, 47, 247, 0.5); }

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(20, 15, 25, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
}

.header-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 70px;
  display: flex; justify-content: space-between; align-items: center;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: white; }
.logo-box { 
  background: var(--grad-primary); width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-weight: 800; 
}

nav { display: flex; align-items: center; gap: 2rem; }
nav a { text-decoration: none; color: var(--muted); transition: 0.3s; font-weight: 500; }
nav a:hover, nav a.active { color: white; }

.hamburger { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Dropdown Social */
.dropdown { position: relative; z-index: 200; display: flex; align-items: center; height: 100%; }

.btn-social-dropdown {
  padding: 10px 20px; border-radius: 50px; border: none; color: white; font-weight: 700; cursor: pointer;
  animation: socialCarousel 8s infinite alternate; transition: transform 0.3s;
}
.btn-social-dropdown:hover { transform: scale(1.05); }

.dropdown-content {
  visibility: hidden; opacity: 0; position: absolute;
  top: 100%; right: 0; margin-top: 15px;
  background: rgba(20, 15, 25, 0.95); backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border); border-radius: 12px;
  min-width: 180px; box-shadow: var(--shadow-elevated); z-index: 1000; overflow: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

/* Le Pont Invisible (Zone de sécurité pour le hover) */
.dropdown-content::before { content: ""; position: absolute; top: -30px; left: -20px; right: -20px; height: 40px; }

.dropdown:hover .dropdown-content { visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s; }

.dropdown-content a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: white; text-decoration: none; }
.dropdown-content a:hover { background: rgba(255, 255, 255, 0.1); }

/* ==========================================================================
   6. PAGE D'ACCUEIL (HERO & COURS)
   ========================================================================== */
.hero { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.hero-title { font-size: 3rem; margin-bottom: 1.5rem; }
.hero-description { font-size: 1.125rem; color: var(--muted); margin-bottom: 2rem; }

/* Stats (Mix/Mastering Cards) */
.hero-stats { display: flex; gap: 1.5rem; margin-top: 2.5rem; }
.stat-card {
  flex: 1; text-align: center; text-decoration: none; color: var(--fg-light); display: block;
}
.stat-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.1); }
.stat-card h3 { color: white; margin-bottom: 0.5rem; }
.stat-card p { margin: 0; color: var(--muted); }

/* Image Hero */
.hero-image { position: relative; height: 450px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-elevated); }
.hero-image-slider { display: flex; width: 300%; height: 100%; animation: slideHero 15s ease-in-out infinite; }
.hero-image-slider img { width: 33.333%; height: 100%; object-fit: cover; }
.hero-image-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 7, 8, 0.4), transparent); pointer-events: none; }

/* Carrousel des Cours */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; }
.course-card { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; height: 250px; position: relative; border-radius: 20px; box-shadow: var(--shadow-glow); background: rgba(255, 255, 255, 0.05); }
.course-image-wrapper { width: 100%; height: 100%; overflow: hidden; position: relative; }
.carousel-track { display: flex; width: 200%; height: 100%; animation: slideImages 10s infinite ease-in-out; }
.course-card:hover .carousel-track { animation-play-state: paused; }
.carousel-slide { width: 50%; height: 100%; background-size: contain; background-position: center; background-repeat: no-repeat; }

/* Images Spécifiques Cours */
.slide-1-1 { background-image: url('cap1.png'); } .slide-1-2 { background-image: url('cap2.png'); }
.slide-2-1 { background-image: url('cap3.png'); } .slide-2-2 { background-image: url('cap4.png'); }
.slide-3-1 { background-image: url('cap5.png'); } .slide-3-2 { background-image: url('cap6.png'); }

/* ==========================================================================
   7. PAGE À PROPOS
   ========================================================================== */
#about { text-align: left; padding-top: 5rem; max-width: 1100px; }
#about h1 { font-size: 3rem; margin-bottom: 1rem; }
#about p { color: var(--muted); max-width: 600px; margin: 1rem 0 2rem 0; }

/* Valeurs */
#values h2 { margin-bottom: 1.5rem; }
.values-grid { display: grid; gap: 1.5rem; margin-top: 2rem; max-width: 100%; }

.value-card {
  display: flex; flex-direction: column; justify-content: flex-start; height: auto;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 1.5rem; backdrop-filter: blur(12px); transition: 0.3s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.value-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.value-card p { color: var(--muted); font-size: 0.95rem; }

/* Équipe */
.team-container { display: grid; gap: 2rem;margin-bottom: 3rem; }

/* --- CORRECTION APPLIQUÉE ICI : "3,5rem" corrigé en "3.5rem" --- */
.team p.intro { color: var(--muted); max-width: 600px; margin-bottom: 3.5rem; }

.team-list { display: flex; flex-direction: column; gap: 0.75rem; }

.team-member {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 0.75rem; cursor: pointer; transition: 0.3s; max-width: 100%;
}
.team-member.active { background: rgba(255,255,255,0.1); box-shadow: var(--shadow-glow); border-color: rgba(255,255,255,0.2); }
.team-member img { width: 50px !important; height: 50px !important; border-radius: 50%; object-fit: cover; transition: 0.4s; }
.team-member:hover img { transform: scale(1.05); }

.team-detail {
  display: flex; flex-direction: column; justify-content: flex-start;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 1.5rem; backdrop-filter: blur(12px); transition: opacity 0.5s; min-height: auto;
}
.team-detail img { width: 100%; height: auto !important; aspect-ratio: 16/9; object-fit: cover; object-position: center top; border-radius: var(--radius); margin-bottom: 1rem; max-height: 500px; }
.team-detail h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: white; }
.team-detail .role { color: var(--muted); margin-bottom: 1rem; }

/* ==========================================================================
   8. FORMULAIRES & PAIEMENT
   ========================================================================== */
.form-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 4rem 1rem; 
}

.form-container .glass-panel {
    text-align: center !important;
    width: 100%;           
    max-width: 600px;      
    margin: 0 auto;        
}

.glass-panel form { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1rem; 
    width: 100%; 
}

/* Inputs alignés à gauche pour l'écriture */
.glass-panel input, .glass-panel textarea {
  width: 100%; text-align: left; padding: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 10px; color: white;
}
.glass-panel button { width: auto; min-width: 200px; padding: 12px 24px; margin-top: 10px; }

.info-soumission { text-align: center; width: 100%; margin-top: 0.5rem; font-size: 0.9rem; opacity: 0.8; }

/* Calendrier & Séparateurs */
.calendar-wrapper { width: 100%; height: 650px; border-radius: 10px; overflow: hidden; background: white; }
.separator-container { display: flex; align-items: center; width: 100%; max-width: 500px; margin: 2rem 0; }
.separator-line { flex-grow: 1; height: 1px; background: rgba(255, 255, 255, 0.2); }
.separator-badge { margin: 0 15px; padding: 8px 16px; background: rgba(255, 255, 255, 0.1); border-radius: 50px; font-weight: 700; }

/* Paiement */
.flex-center { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 2rem; }
.payment-card-layout { max-width: 500px; width: 100%; text-align: center; }
.payment-icon { font-size: 3.5rem; color: #4facfe; margin-bottom: 1rem; }

/* ==========================================================================
   9. ANIMATIONS
   ========================================================================== */
@keyframes socialCarousel {
  0%, 45% { background: var(--grad-social); box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4); }
  55%, 100% { background: var(--grad-tiktok); box-shadow: -3px 0 0 #25F4EE, 3px 0 0 #FE2C55, 0 4px 15px rgba(0,0,0,0.5); }
}
@keyframes slideHero { 0%, 30% { transform: translateX(0); } 35%, 65% { transform: translateX(-33.333%); } 70%, 100% { transform: translateX(-66.666%); } }
@keyframes slideImages { 0%, 45% { transform: translateX(0); } 50%, 95% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.fade-in { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   10. RESPONSIVE & MOBILE (VERSION OPTIMISÉE)
   ========================================================================== */

/* --- Tablette et Desktop (Structure de base) --- */
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .team-container { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
}

/* --- Mobile (Optimisation UX et Espacements) --- */
@media (max-width: 768px) {

  /* --- CORRECTION APPLIQUÉE : Fix pour bug de scroll sur iPhone/iOS --- */
  .bg-default, .bg-about, .bg-payment, .bg-studio {
    background-attachment: scroll;
  }
  
  /* 1. Ajustements de structure et espacements globaux */
  .section {
    padding: 3rem 1rem; /* Moins de padding latéral pour gagner de la place */
  }

  .section h2 {
    margin-bottom: 2rem; /* Espace équilibré sous les titres */
    font-size: 1.8rem;   /* Taille de police adaptée */
    text-align: center;
  }

  /* 2. Navigation & Hamburger */
  .hamburger { 
    display: block !important; 
    z-index: 2100; 
    position: relative;
    background: none; border: none;
    color: var(--fg-light); font-size: 2rem;
    cursor: pointer; transition: 0.3s;
  }

  .hamburger.active {
    color: var(--primary);
    transform: rotate(90deg);
  }

  nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(7, 7, 8, 0.98); backdrop-filter: blur(15px);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 2rem;
    transform: translateX(100%); transition: transform 0.4s ease-in-out;
    z-index: 1500; overflow-y: auto; padding: 80px 0;
  }

  nav.active { transform: translateX(0); }

  nav a { font-size: 1.5rem; font-weight: 700; color: var(--fg-light); text-decoration: none; }

  /* 3. Dropdown "Nous suivre" vertical */
  .dropdown { width: 100%; display: flex; flex-direction: column; align-items: center; }

  .dropdown.open .dropdown-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static; /* S'insère dans la liste pour un clic facile */
    width: 90%; max-width: 250px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transform: none; box-shadow: none;
    animation: fadeInUp 0.3s ease;
  }

  .dropdown-content a { font-size: 1.1rem; justify-content: center; padding: 15px; }

  /* 4. Ajustements spécifiques (Index et About) */
  .hero-title, #about h1 { 
    font-size: 2rem; 
    text-align: center; 
    margin-bottom: 1.5rem;
  }

  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { height: 250px; margin-bottom: 2rem; }

  /* Correction de l'étalement et de l'espacement "collé" */
  .courses-grid {
    margin-top: 2.5rem; 
    gap: 1.5rem;
  }

  .team p.intro {
    margin-bottom: 2.5rem;
    text-align: center;
    padding: 0 1rem;
  }

  .team-container {
    margin-top: 2rem;
    gap: 1.5rem;
  }
}

footer { 
  padding: 3rem 1.5rem; 
  text-align: center; 
  color: var(--muted); 
  border-top: 1px solid var(--glass-border); 
  margin-top: 4rem; 
}