/* ============================================
   INSTITUT NOON - Design System
   Palette inspirée des visuels officiels
   ============================================ */

:root {
  /* Couleurs principales */
  --magenta: #C2185B;
  --magenta-light: #E91E63;
  --magenta-dark: #8E1349;
  --magenta-deep: #5C0A2F;

  --gold: #D4A537;
  --gold-light: #E6C875;
  --gold-dark: #A67E1C;

  --navy: #1E2838;
  --navy-light: #2C3A50;
  --navy-deep: #131A26;

  --cream: #FAF6F1;
  --ivory: #FFFBF5;
  --sand: #F0E8DC;

  --white: #FFFFFF;
  --text: #2A2A2A;
  --text-light: #6B6B6B;
  --text-muted: #9A9A9A;
  --border: #E8E0D5;

  --success: #4CAF50;
  --warning: #FF9800;
  --error: #E53935;
  --info: #2196F3;

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(30, 40, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(30, 40, 56, 0.12);
  --shadow-lg: 0 16px 48px rgba(30, 40, 56, 0.18);
  --shadow-pink: 0 8px 32px rgba(194, 24, 91, 0.25);
  --shadow-gold: 0 4px 16px rgba(212, 165, 55, 0.3);

  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --font-cursive: 'Allura', 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'Amiri', 'Cairo', serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  min-height: 100vh;
}

body[dir="rtl"] {
  font-family: var(--font-arabic);
  text-align: right;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============================================
   MOTIFS DECORATIFS ARABES
   ============================================ */
.arabic-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212, 165, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(194, 24, 91, 0.05) 0%, transparent 50%);
}

.geometric-bg {
  background-color: var(--magenta);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 0l3.5 8.5L42 12l-8.5 3.5L30 24l-3.5-8.5L18 12l8.5-3.5L30 0zm0 36l3.5 8.5L42 48l-8.5 3.5L30 60l-3.5-8.5L18 48l8.5-3.5L30 36zM0 30l8.5 3.5L12 42l3.5-8.5L24 30l-8.5-3.5L12 18l-3.5 8.5L0 30zm36 0l8.5 3.5L48 42l3.5-8.5L60 30l-8.5-3.5L48 18l-3.5 8.5L36 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.noon-curtain {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.noon-curtain::before,
.noon-curtain::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-dark) 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.noon-curtain::before { left: 0; }
.noon-curtain::after {
  right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  width: 120px;
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-divider span {
  margin: 0 12px;
  color: var(--gold);
  font-size: 14px;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */
.text-cursive {
  font-family: var(--font-cursive);
  font-weight: 400;
}

.text-serif { font-family: var(--font-serif); }
.text-arabic { font-family: var(--font-arabic); direction: rtl; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

.title-cursive {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 40, 56, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 165, 55, 0.2);
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-mark .noon-logo-img,
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  color: var(--white);
  background: linear-gradient(135deg, var(--magenta-light), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tagline {
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav a {
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--gold-light);
}

.main-nav a.active {
  color: var(--gold);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-cta {
  background: linear-gradient(135deg, var(--magenta), var(--magenta-light)) !important;
  color: var(--white) !important;
  padding: 0.65rem 1.4rem !important;
  border-radius: var(--radius-full) !important;
  box-shadow: var(--shadow-pink);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(194, 24, 91, 0.4);
}

.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-left: 1rem;
  border: 1px solid rgba(212, 165, 55, 0.3);
}

.lang-switcher button {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.lang-switcher button.active {
  background: var(--gold);
  color: var(--navy-deep);
}

.menu-toggle {
  display: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--magenta), var(--magenta-light));
  color: var(--white);
  box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(194, 24, 91, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 165, 55, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--magenta);
  border: 1px solid var(--magenta);
}

.btn-ghost:hover {
  background: var(--magenta);
  color: var(--white);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--magenta-dark) 0%, var(--magenta) 50%, var(--magenta-light) 100%);
  overflow: hidden;
  color: var(--white);
  padding: 4rem 1.5rem;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.15'%3E%3Cpath d='M40 0L52.4 27.6L80 40L52.4 52.4L40 80L27.6 52.4L0 40L27.6 27.6Z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero-curtain-left,
.hero-curtain-right {
  position: absolute;
  top: -10%;
  width: 45%;
  height: 110%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  z-index: 1;
}

.hero-curtain-left {
  left: -5%;
  clip-path: polygon(0 0, 70% 0, 0 100%);
}

.hero-curtain-right {
  right: -5%;
  clip-path: polygon(30% 0, 100% 0, 100% 100%);
}

.gold-trim-left,
.gold-trim-right {
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-dark));
  z-index: 2;
}

.gold-trim-left {
  left: 35%;
  transform: rotate(35deg);
  transform-origin: top;
  box-shadow: 0 0 20px var(--gold);
}

.gold-trim-right {
  right: 35%;
  transform: rotate(-35deg);
  transform-origin: top;
  box-shadow: 0 0 20px var(--gold);
}

/* Lanternes retirées du hero pour un rendu apaisant et professionnel */

.mandala {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  z-index: 4;
  filter: drop-shadow(0 4px 16px rgba(212, 165, 55, 0.4));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-logo {
  margin: 0 auto 2.5rem;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero h1 {
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  width: 80px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin: 0 16px;
}

.hero-divider svg { color: var(--gold-light); }

/* ============================================
   SECTIONS GÉNÉRIQUES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  display: inline-block;
  color: var(--magenta);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-title-cursive {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--magenta);
  font-size: 1.2em;
  display: block;
  font-weight: 600;
}

.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-pink);
}

.feature-icon svg { width: 32px; height: 32px; }

.feature-card.gold .feature-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}

.feature-card.navy .feature-icon {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.feature-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ============================================
   COURSE CARDS
   ============================================ */
.course-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.course-banner {
  height: 140px;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-dark));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-banner.gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}

.course-banner.navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.course-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.2'%3E%3Cpath d='M30 0l3.5 8.5L42 12l-8.5 3.5L30 24l-3.5-8.5L18 12l8.5-3.5L30 0z'/%3E%3C/g%3E%3C/svg%3E");
}

.course-banner-icon {
  color: var(--white);
  width: 60px;
  height: 60px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.course-body { padding: 1.8rem; }

.course-level {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--cream);
  color: var(--magenta);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.course-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.course-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.3px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.auth-card {
  max-width: 480px;
  margin: 3rem auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--magenta), var(--gold), var(--magenta));
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--magenta);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.3px;
}

.auth-header p {
  color: var(--text-light);
  margin-top: 0.3rem;
}

.auth-tabs {
  display: flex;
  background: var(--cream);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 2rem;
}

.auth-tab {
  flex: 1;
  padding: 0.7rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
  font-size: 0.9rem;
}

.auth-tab.active {
  background: var(--white);
  color: var(--magenta);
  box-shadow: var(--shadow-sm);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-light);
}

.auth-footer a {
  color: var(--magenta);
  font-weight: 600;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard {
  min-height: 100vh;
  background: var(--cream);
  padding: 2rem 1.5rem;
}

.dashboard-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.dashboard-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.05'%3E%3Cpath d='M40 0L52.4 27.6L80 40L52.4 52.4L40 80L27.6 52.4L0 40L27.6 27.6Z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.dashboard-header > * { position: relative; z-index: 2; }

.dashboard-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.dashboard-greeting h1 {
  color: var(--white);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.3px;
  margin-bottom: 0.4rem;
}

.dashboard-greeting p {
  color: var(--gold-light);
  font-size: 0.95rem;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 165, 55, 0.3);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.avatar.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name { font-weight: 600; color: var(--white); font-size: 0.95rem; }
.user-role { font-size: 0.75rem; color: var(--gold-light); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(194, 24, 91, 0.1);
  color: var(--magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.stat-card.gold .stat-icon {
  background: rgba(212, 165, 55, 0.15);
  color: var(--gold-dark);
}

.stat-card.navy .stat-icon {
  background: rgba(30, 40, 56, 0.1);
  color: var(--navy);
}

.stat-card.green .stat-icon {
  background: rgba(76, 175, 80, 0.1);
  color: var(--success);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-serif);
  line-height: 1;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 600;
}

.panel-subtitle {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ============================================
   TABLES
   ============================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table thead {
  background: var(--cream);
}

.table th {
  text-align: left;
  padding: 1rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: rgba(194, 24, 91, 0.03); }

.cell-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pink { background: rgba(194, 24, 91, 0.12); color: var(--magenta); }
.badge-gold { background: rgba(212, 165, 55, 0.18); color: var(--gold-dark); }
.badge-green { background: rgba(76, 175, 80, 0.12); color: var(--success); }
.badge-blue { background: rgba(33, 150, 243, 0.12); color: var(--info); }
.badge-orange { background: rgba(255, 152, 0, 0.15); color: var(--warning); }
.badge-gray { background: rgba(0, 0, 0, 0.06); color: var(--text-light); }

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-right: 4px;
}

.action-btn:hover {
  background: var(--magenta);
  color: var(--white);
}

.action-btn.danger:hover { background: var(--error); }

/* ============================================
   CALENDAR
   ============================================ */
.calendar {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
}

.calendar-title { font-family: var(--font-serif); font-size: 1.3rem; }

.calendar-nav {
  display: flex;
  gap: 4px;
}

.calendar-nav button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.calendar-nav button:hover { background: var(--gold); color: var(--navy-deep); }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--cream);
  padding: 0.6rem 0;
  font-weight: 600;
  font-size: 0.75rem;
  text-align: center;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-day {
  min-height: 80px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.cal-day:hover { background: rgba(194, 24, 91, 0.04); }
.cal-day:nth-child(7n) { border-right: none; }
.cal-day.other-month { opacity: 0.35; }
.cal-day.today { background: linear-gradient(135deg, rgba(194, 24, 91, 0.06), rgba(212, 165, 55, 0.08)); }

.cal-day-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.cal-day.today .cal-day-num {
  background: var(--magenta);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cal-event {
  font-size: 0.7rem;
  background: var(--magenta);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.cal-event.gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.cal-event.navy { background: var(--navy); }

/* ============================================
   MESSAGES
   ============================================ */
.message-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.message-item {
  display: flex;
  gap: 12px;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.message-item:hover {
  background: rgba(194, 24, 91, 0.06);
  transform: translateX(4px);
}

.message-item.unread {
  border-left: 3px solid var(--magenta);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.message-content { flex: 1; min-width: 0; }
.message-from { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.message-time { font-size: 0.75rem; color: var(--text-muted); }
.message-preview {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   MODAL
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 40, 56, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: var(--transition);
  position: relative;
}

.modal-backdrop.open .modal { transform: scale(1); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: var(--error); color: var(--white); }

.modal-body { padding: 2rem; }

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  border-left: 4px solid var(--magenta);
  pointer-events: auto;
  animation: slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.info { border-left-color: var(--info); }

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(194, 24, 91, 0.12);
  color: var(--magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast.success .toast-icon { background: rgba(76, 175, 80, 0.12); color: var(--success); }
.toast.error .toast-icon { background: rgba(229, 57, 53, 0.12); color: var(--error); }

.toast-content { flex: 1; }
.toast-title { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.toast-msg { font-size: 0.82rem; color: var(--text-light); margin-top: 2px; }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 4rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--magenta), var(--gold), var(--magenta));
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 800px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer-content { grid-template-columns: 1fr; }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--magenta);
  transform: translateY(-3px);
}

.footer-contact {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-contact a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   TEACHER PROFILE PAGE
   ============================================ */
.profile-hero {
  background: linear-gradient(135deg, var(--magenta-dark) 0%, var(--magenta) 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.1'%3E%3Cpath d='M50 0L62.5 35L100 50L62.5 62.5L50 100L37.5 62.5L0 50L37.5 37.5Z'/%3E%3Cpath d='M50 25L57 43L75 50L57 57L50 75L43 57L25 50L43 43Z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.profile-hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 800px) {
  .profile-hero-content { grid-template-columns: 1fr; text-align: center; }
}

.profile-portrait {
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  border: 6px solid var(--gold);
  box-shadow: 0 0 60px rgba(212, 165, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.profile-eyebrow {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.profile-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--white);
  margin: 0.5rem 0;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.profile-tagline {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .profile-badges { justify-content: center; }
}

.profile-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(212, 165, 55, 0.4);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
}

.bio-section {
  padding: 5rem 1.5rem;
  background: var(--cream);
}

.bio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.bio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.bio-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--magenta), var(--magenta-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.bio-card.gold .bio-card-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
}

.bio-card.navy .bio-card-icon {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.bio-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.bio-list {
  list-style: none;
  padding: 0;
}

.bio-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.bio-list li::before {
  content: '◆';
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 0.8rem;
  font-size: 0.7rem;
}

.bio-list li:last-child { border-bottom: none; }
.bio-list li strong { color: var(--navy); font-weight: 600; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .site-header .container {
    position: relative;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    padding: 1.2rem 1rem;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .main-nav.open {
    display: flex !important;
    animation: menu-slide 0.25s ease;
  }

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

  .main-nav a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 165, 55, 0.15);
    font-size: 1rem;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(212, 165, 55, 0.15);
    border-color: var(--gold);
  }

  .main-nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 165, 55, 0.3);
  }

  .menu-toggle svg {
    pointer-events: none;
  }

  .lang-switcher {
    margin: 0.6rem 0 0 0;
    align-self: center;
  }
}

@media (max-width: 600px) {
  .hero { min-height: 80vh; }
  .lantern { width: 50px; }
  .mandala { width: 130px; }
  .hero-logo { width: 110px; height: 110px; }
  .section { padding: 3.5rem 0; }
  .dashboard { padding: 1rem; }
  .dashboard-header { padding: 1.5rem; }
  .auth-card { padding: 2rem 1.5rem; margin: 1.5rem auto; }
}

/* ============================================
   ANIMATIONS & EFFETS CRÉATIFS
   ============================================ */

/* === Particules dorées flottantes === */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light), var(--gold));
  box-shadow: 0 0 10px var(--gold-light), 0 0 20px rgba(212, 165, 55, 0.5);
  opacity: 0;
  animation: particle-float linear infinite;
}

.particle.star {
  width: 8px;
  height: 8px;
  background: transparent;
  box-shadow: none;
}

.particle.star::before {
  content: '✦';
  position: absolute;
  inset: 0;
  color: var(--gold-light);
  font-size: 12px;
  text-shadow: 0 0 8px var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: twinkle 2s ease-in-out infinite;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0.5);
  }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% {
    opacity: 0;
    transform: translateY(-110vh) translateX(var(--drift, 30px)) scale(1.2);
  }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

/* === Animation d'entrée sobre du hero (une seule fois, douce) === */
.hero-logo {
  opacity: 0;
  animation: logo-fade-in 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

@keyframes logo-fade-in {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero h1 {
  opacity: 0;
  animation: title-fade 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

@keyframes title-fade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-divider, .hero-subtitle, .hero-cta-group {
  opacity: 0;
  animation: fade-up 0.9s ease 1.1s forwards;
}

.hero-subtitle { animation-delay: 1.3s; }
.hero-cta-group { animation-delay: 1.5s; }

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

/* === Scroll Reveal === */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="scale"] { transform: scale(0.85); }
[data-reveal="rotate"] { transform: rotate(-5deg) scale(0.9); }

[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }

/* === 3D Card Tilt === */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.tilt-card > * {
  transform: translateZ(20px);
}

.tilt-card .feature-icon,
.tilt-card .course-banner-icon {
  transform: translateZ(40px);
}

/* === Boutons avec glow animé === */
.btn-gold, .btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-gold::before, .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.btn-gold:hover::before, .btn-primary:hover::before {
  left: 100%;
}

/* === Pulse animation pour CTA principal === */
.btn-pulse {
  animation: btn-pulse 2.5s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: var(--shadow-gold); }
  50% { box-shadow: 0 0 0 12px rgba(212, 165, 55, 0); }
}

/* === Section : Compteurs animés === */
.stats-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4A537' stroke-width='0.5' stroke-opacity='0.15'%3E%3Cpath d='M40 0L52.4 27.6L80 40L52.4 52.4L40 80L27.6 52.4L0 40L27.6 27.6Z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.stats-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.stat-item:last-child::after { display: none; }

@media (max-width: 700px) {
  .stat-item::after { display: none; }
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-suffix {
  color: var(--gold);
  font-size: 0.8em;
  margin-left: 4px;
  -webkit-text-fill-color: var(--gold);
}

.stat-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* === Testimonials === */
.testimonials-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, #FFF8FC 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 5%;
  font-family: var(--font-serif);
  font-size: 20rem;
  color: var(--magenta);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 calc(33.333% - 1.4rem);
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  scroll-snap-align: center;
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--magenta);
  line-height: 1;
  opacity: 0.2;
}

.testimonial-stars {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.96rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.testimonial-author .avatar {
  background: linear-gradient(135deg, var(--magenta), var(--magenta-light));
}

.testimonial-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-light);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--magenta);
  width: 30px;
  border-radius: 6px;
}

/* === Wavy section divider === */
.wave-divider {
  display: block;
  width: 100%;
  height: 80px;
  margin-bottom: -1px;
}

.wave-divider path {
  animation: wave-shift 8s ease-in-out infinite;
}

@keyframes wave-shift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-15px); }
}

/* === CTA section : dégradé statique élégant === */
.cta-animated {
  background: linear-gradient(135deg, var(--magenta-deep) 0%, var(--magenta-dark) 50%, var(--magenta) 100%);
}

/* === Floating decorative elements === */
.float-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 55, 0.4), transparent 70%);
  pointer-events: none;
  animation: float-orb 15s ease-in-out infinite;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 20px); }
}

/* Pattern du hero : statique pour une atmosphère sereine */

/* === Section Cours - background coloré et vivant === */
.courses-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 165, 55, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(194, 24, 91, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(30, 40, 56, 0.06) 0%, transparent 60%),
    linear-gradient(135deg, #FFF8FC 0%, #FFF4F8 50%, #FAF0F5 100%);
}

.courses-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C2185B' stroke-width='0.8' stroke-opacity='0.08'%3E%3Cpath d='M60 10L75 45L110 60L75 75L60 110L45 75L10 60L45 45Z'/%3E%3Cpath d='M60 30L67 53L90 60L67 67L60 90L53 67L30 60L53 53Z'/%3E%3Ccircle cx='60' cy='60' r='8'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

.courses-section .container {
  position: relative;
  z-index: 2;
}

/* Orbes flottantes décoratives pour la section cours */
.courses-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  z-index: 1;
}

.courses-orb-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(212, 165, 55, 0.4), transparent);
  top: 10%;
  left: -80px;
}

.courses-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(194, 24, 91, 0.25), transparent);
  bottom: 5%;
  right: -100px;
}

.courses-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 165, 55, 0.3), transparent);
  top: 50%;
  left: 50%;
}

/* Améliorer la lisibilité des cartes sur ce nouveau fond */
.courses-section .course-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(194, 24, 91, 0.08);
  border: 1px solid rgba(212, 165, 55, 0.15);
}

.courses-section .course-card:hover {
  background: var(--white);
  box-shadow: 0 16px 40px rgba(194, 24, 91, 0.18);
  border-color: var(--gold);
}

/* ============================================
   SECTION TARIFS
   ============================================ */
.pricing-section {
  padding: 5rem 1.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(194, 24, 91, 0.06), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(212, 165, 55, 0.08), transparent 40%),
    var(--cream);
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.pricing-card.popular {
  border-color: var(--magenta);
  background: linear-gradient(180deg, #FFF8FC, var(--white));
  box-shadow: 0 12px 32px rgba(194, 24, 91, 0.15);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--magenta), var(--magenta-light));
  color: var(--white);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--shadow-pink);
  white-space: nowrap;
}

.pricing-eyebrow {
  font-size: 0.8rem;
  color: var(--magenta);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.pricing-card .pricing-desc {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  min-height: 2.6em;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 1.2rem 0;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed var(--border);
}

.pricing-price .currency {
  font-size: 1.4rem;
  color: var(--magenta);
  font-weight: 600;
}

.pricing-price .amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.pricing-price .period {
  font-size: 0.9rem;
  color: var(--text-light);
}

.pricing-card.popular .pricing-price .amount {
  background: linear-gradient(135deg, var(--magenta), var(--magenta-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-savings {
  text-align: center;
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 1rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  color: var(--text);
}

.pricing-features li svg {
  color: var(--success);
  flex-shrink: 0;
}

.paypal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0070BA, #003087);
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 112, 186, 0.3);
}

.paypal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 112, 186, 0.45);
  color: var(--white);
}

.paypal-btn svg { flex-shrink: 0; }

.pricing-card.popular .paypal-btn {
  background: linear-gradient(135deg, var(--magenta), var(--magenta-light));
  box-shadow: var(--shadow-pink);
}

.pricing-card.popular .paypal-btn:hover {
  box-shadow: 0 12px 28px rgba(194, 24, 91, 0.4);
}

.pricing-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1rem;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: 0.85rem;
}

.pricing-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pricing-trust svg { color: var(--success); }

/* ============================================
   SECTION FAQ
   ============================================ */
.faq-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '?';
  position: absolute;
  top: 5%;
  right: 5%;
  font-family: var(--font-serif);
  font-size: 25rem;
  color: var(--gold);
  opacity: 0.05;
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}

.faq-section .section-eyebrow { color: var(--gold-light); }
.faq-section .section-title { color: var(--white); }
.faq-section .section-desc { color: rgba(255, 255, 255, 0.7); }

.faq-list {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 165, 55, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.faq-item.open {
  background: rgba(212, 165, 55, 0.1);
  border-color: var(--gold);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  user-select: none;
}

.faq-question:hover { color: var(--gold-light); }

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--magenta-light);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* ============================================
   BOUTON REJOINDRE (GOOGLE MEET)
   ============================================ */
.join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  background: #00897B;
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  white-space: nowrap;
}

.join-btn:hover {
  transform: translateY(-2px);
  background: #00796B;
  box-shadow: 0 6px 16px rgba(0, 137, 123, 0.4);
  color: var(--white);
}

.join-btn.imminent {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  animation: join-pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(212, 165, 55, 0.7);
}

@keyframes join-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 165, 55, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(212, 165, 55, 0);
    transform: scale(1.04);
  }
}

.imminent-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 8px;
  animation: blink 1s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============================================
   PAYMENT
   ============================================ */
.pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0070BA, #003087);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  white-space: nowrap;
}

.pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 112, 186, 0.4);
  color: var(--white);
}

.payment-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.payment-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--success);
}

.payment-card.pending { border-left-color: var(--warning); }

.payment-amount {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin: 0.4rem 0;
}

.payment-label {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ============================================
   RESOURCES
   ============================================ */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.resource-item {
  display: flex;
  gap: 12px;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
  transition: var(--transition);
}

.resource-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.resource-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.resource-icon.pdf { background: linear-gradient(135deg, #E53935, #C62828); }
.resource-icon.audio { background: linear-gradient(135deg, #43A047, #2E7D32); }
.resource-icon.video { background: linear-gradient(135deg, #1E88E5, #1565C0); }
.resource-icon.link { background: linear-gradient(135deg, var(--magenta), var(--magenta-light)); }

.resource-info { flex: 1; min-width: 0; }

.resource-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.resource-desc {
  color: var(--text-light);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.resource-meta {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.resource-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* === Course card hover enhanced === */
.course-card .course-banner {
  transition: var(--transition);
}

.course-card:hover .course-banner {
  background-size: 110% 110%;
}

.course-card:hover .course-banner-icon {
  animation: icon-bounce 0.6s ease;
}

@keyframes icon-bounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(8deg); }
}

/* === Section title underline animation === */
.section-title {
  position: relative;
  display: inline-block;
}

.section-header[data-reveal].in-view .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
  margin: 12px auto 0;
  animation: line-expand 1s ease forwards;
}

@keyframes line-expand {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* === Smooth scroll for the whole page === */
html { scroll-behavior: smooth; }

/* === Reduce motion preference === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Utility classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
