/* =========================================
   1. VARIABLES & BASE (Ambiance Néon Dark)
   ========================================= */
:root {
  --bg-dark: #0b0f19;
  --bg-card: #131b2c;
  --bg-input: rgba(255, 255, 255, 0.1);
  --neon-gold: #ffc107;
  --text-main: #e6e6e6;
  --text-muted: #a0aec0;
  --rouge: #ff4d4d;
  --vert: #4CAF50;
  --vert-neon: #2ecc71;
  --vert-dark: #27ae60;
  --rouge-neon: #ff4d4d;
  --rouge-dark: #cc0000;

  /* Effets Néon & Ombres */
  --glow-gold: 0 0 10px rgba(255, 193, 7, 0.4), 0 0 20px rgba(255, 193, 7, 0.2);
  --text-glow: 0 0 8px rgba(255, 193, 7, 0.5);
  --img-drop-glow: drop-shadow(0 0 5px rgba(255, 193, 7, 0.8)) drop-shadow(0 0 10px rgba(255, 193, 7, 0.4));

  /* Variables FullCalendar */
  --fc-border-color: #333;
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: rgba(255, 255, 255, 0.05);
  --fc-list-event-hover-bg-color: rgba(207, 181, 59, 0.1);
  --fc-today-bg-color: rgba(207, 181, 59, 0.08) !important;
  --fc-now-indicator-color: #ff4d4d;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  background-image: radial-gradient(circle at 80% 20%, rgba(20, 30, 50, 0.8), transparent 50%);
  min-height: 100vh;
}

body.body-bg { overflow-y: auto; }

a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: var(--neon-gold); }
ul { list-style: none; padding: 0; margin: 0; }

/* =========================================
   2. ÉLÉMENTS GLOBAUX (Boutons, Icônes)
   ========================================= */
.btn-back-style {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(19, 27, 44, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px; padding: 10px 20px;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  transition: all 0.3s ease; backdrop-filter: blur(5px);
  cursor: pointer; z-index: 100;
}

.btn-back-style:hover {
  color: var(--neon-gold); border-color: var(--neon-gold);
  background: rgba(255, 193, 7, 0.1);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.2); transform: translateX(-5px);
}
.btn-back-style span { font-size: 1.2em; line-height: 1; }

/* =========================================
   3. HEADER
   ========================================= */
.main-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 40px;
  background: rgba(11, 15, 25, 0.95); backdrop-filter: blur(15px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255, 193, 7, 0.1); height: 70px;
}

.logo-container { display: flex; align-items: center; cursor: pointer; height: 100%; }
.logo-img { height: 90px; width: auto; object-fit: contain; transition: all 0.3s ease; mix-blend-mode: screen; }
.logo-container a { display: flex; align-items: center; height: 100%; }

.header-search {
  flex-grow: 1; max-width: 500px; margin: 0 40px;
  position: relative; display: flex; align-items: center;
}
.header-search input {
  width: 100%; padding: 12px 20px 12px 45px;
  background: var(--bg-input); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px; color: var(--text-main); font-size: 14px; transition: all 0.3s ease;
}
.header-search input:focus {
  outline: none; border-color: var(--neon-gold);
  box-shadow: var(--glow-gold); background: rgba(0, 0, 0, 0.3);
}
.search-icon { position: absolute; left: 15px; color: var(--text-muted); font-size: 18px; }

.header-actions { display: flex; align-items: center; gap: 25px; }
.icon-action { font-size: 24px; color: var(--text-muted); cursor: pointer; transition: 0.3s; position: relative; } /* Modifié ici */
.icon-action:hover { color: var(--neon-gold); text-shadow: var(--text-glow); }

.profile-icon-top img {
  width: 45px; height: 45px; border-radius: 50%;
  border: 2px solid var(--neon-gold); box-shadow: var(--glow-gold); transition: transform 0.3s;
}

/* =========================================
   4. BANNIÈRE DE BIENVENUE
   ========================================= */
.welcome-banner {
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  max-width: 1250px; 
  margin: 0 auto; /* <-- On enlève toute marge supérieure globale */
  padding: 0 40px; 
  box-sizing: border-box;
  width: 100%;
}

.welcome-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-top: -95px; /* <-- MAGIE ICI : Remonte violemment le texte vers le header */
  padding-left: 0;
}

.welcome-text h1 {
  font-size: 50px; 
  margin-top: 0;
  margin-bottom: 5px;
  margin-left: 0; 
  padding-left: 0;
  color: var(--text-main);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15); 
  line-height: 1.2;
  white-space: nowrap;
}

.welcome-text p { 
  font-size: 20px; 
  margin-top: 0; 
  margin-bottom: 0;
  margin-left: 0; 
  padding-left: 0;
  color: var(--text-muted); 
  white-space: nowrap; 
}

.neon-knight-display {
  margin-top: 0px; /* <-- Garde le cavalier à sa place initiale, indépendamment du texte */
}

.big-neon-img {
  height: 230px; 
  width: auto; 
  object-fit: contain;
  opacity: 0.85; 
  animation: pulseNeonImgSoft 4s infinite alternate ease-in-out;
}

@keyframes pulseNeonImgSoft {
  from { filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.4)) drop-shadow(0 0 10px rgba(255, 193, 7, 0.2)) brightness(1); transform: scale(1); }
  to { filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6)) drop-shadow(0 0 20px rgba(255, 193, 7, 0.3)) brightness(1.05); transform: scale(1.02); }
}

/* =========================================
   5. MENU LATÉRAL (Hamburger) & NOTIFICATIONS
   ========================================= */
.hamburger-btn {
  font-size: 24px; color: var(--text-muted); cursor: pointer;
  margin-right: 20px; padding: 5px; transition: color 0.3s;
}
.hamburger-btn:hover { color: var(--neon-gold); }

.side-menu-panel {
  position: fixed;
  top: 0; left: -300px;
  width: 250px; height: 100vh;
  background: rgba(19, 27, 44, 0.98); backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 193, 7, 0.2); box-shadow: 5px 0 30px rgba(0,0,0,0.5);
  z-index: 1000; 
  padding: 20px; display: flex;
  flex-direction: column; visibility: hidden; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-sizing: border-box;
  overflow-y: auto; padding-bottom: 40px; 
}

.side-menu-panel.open { left: 0; visibility: visible; }

.menu-link-item {
  display: flex; align-items: center; gap: 15px; color: var(--text-main);
  text-decoration: none; padding: 15px; border-radius: 12px;
  transition: all 0.2s; margin-bottom: 10px;
  font-family: 'Poppins', sans-serif; font-weight: 500;
}
.menu-link-item:hover {
  background: rgba(255, 193, 7, 0.1); color: var(--neon-gold); transform: translateX(5px);
}
.menu-link-item i { font-size: 20px; width: 25px; text-align: center; }

.menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 999;
  display: none; opacity: 0; transition: opacity 0.3s;
}
.menu-overlay.visible { display: block; opacity: 1; }

.nav-badge {
    background-color: var(--rouge);
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: auto;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
    display: none; 
}

.header-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--rouge);
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 0.65rem;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.6);
    display: none;
    z-index: 10;
}

.action-dot {
    width: 10px;
    height: 10px;
    background-color: var(--rouge);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.8);
    display: inline-block;
    animation: pulseAlert 2s infinite;
    margin-right: 8px;
    flex-shrink: 0;
}

/* =========================================
   6. BARRE DE FILTRES (STYLE TIROIR ANIMÉ)
   ========================================= */

.filters-master-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    max-width: 1250px;
    margin: -85px auto 30px auto; /* <-- On remonte le bouton pour le coller sous le paragraphe */
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
    position: relative; 
    z-index: 10; 
}

.btn-toggle-filters {
    background: transparent;
    color: var(--neon-gold);
    border: 2px solid var(--neon-gold);
    padding: 10px 22px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    background: var(--bg-main); 
    margin-left: 0; 
}

.btn-toggle-filters:hover, .btn-toggle-filters.active {
    background: var(--neon-gold);
    color: black;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.btn-toggle-filters .arrow-icon {
    transition: transform 0.4s ease;
}
.btn-toggle-filters.active .arrow-icon {
    transform: rotate(180deg);
}

.sliding-filters-wrapper {
    display: flex;
    align-items: center;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    margin-left: -15px; 
    padding-left: 15px;
}

.sliding-filters-wrapper.open {
    max-width: 1200px;
    opacity: 1;
}

.pills-filter-bar {
    display: flex;
    flex-wrap: nowrap; 
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px; 
    padding: 10px 18px; 
    transition: all 0.3s ease;
    color: var(--text-main);
    white-space: nowrap;
}

.filter-pill:hover, .filter-pill:focus-within {
    background: rgba(255, 193, 7, 0.05);
    border-color: var(--neon-gold);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
}

.filter-pill input {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    width: 120px; 
    text-align: center; 
}

.filter-pill input::placeholder {
    color: #888;
    transition: color 0.3s ease; 
}

.filter-pill input:focus::placeholder {
    color: transparent; 
}

.filter-pill.reset-text-btn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: #aaa;
    cursor: pointer;
    font-weight: 500;
}

.filter-pill.reset-text-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.schedule-pill-container {
    position: relative;
    padding: 0; 
    cursor: pointer;
}

.schedule-toggle {
    padding: 10px 18px;
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: white;
}

.schedule-dropdown {
    display: none; 
    position: absolute;
    top: 120%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--neon-gold);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    z-index: 200;
    flex-direction: column;
    gap: 15px;
    width: max-content;
}

.schedule-dropdown.show {
    display: flex; 
    animation: fadeIn 0.2s ease-out;
}

.schedule-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.schedule-group label {
    font-size: 0.75rem;
    color: var(--neon-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-group input {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    width: 140px;
    text-align: left;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1); opacity: 0.5; cursor: pointer; transition: 0.3s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1; filter: invert(0.8) sepia(1) hue-rotate(350deg) saturate(5);
}

@media (max-width: 900px) {
    .filters-master-container { 
        flex-direction: column; 
        align-items: flex-start; 
        padding: 0 20px;
        margin-top: 20px; 
    }
    .sliding-filters-wrapper.open { 
        max-width: 100%; 
        overflow-x: auto !important; 
        padding-bottom: 10px;
    }
}

/* =========================================
   7. GRILLE DES PROFS (Rectangle Parfait & Agrandies)
   ========================================= */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 30px; 
  padding: 0px 40px 60px 40px; /* Padding de 40px pour aligner avec les autres blocs */
  max-width: 1250px; 
  margin: 0 auto;
}

.teacher-card {
  position: relative; 
  aspect-ratio: 26 / 38; 
  border-radius: 15px; 
  overflow: hidden;
  background-color: var(--bg-card); 
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 15px rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
}

.card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.teacher-card:hover .card-img {
  filter: brightness(0.4) contrast(1.1);
  transform: scale(1.05);
}

.card-center-overlay {
  position: absolute; top: 50%; left: 0; width: 100%;
  transform: translateY(-50%); z-index: 5; opacity: 0;
  transition: all 0.4s ease; text-align: center; pointer-events: none;
}
.teacher-card:hover .card-center-overlay {
  opacity: 1; transform: translateY(-50%) scale(1.1);
}
.view-profile-text {
  display: block; color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.card-info {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  background: linear-gradient(to top, rgba(11, 15, 25, 1) 30%, rgba(11, 15, 25, 0.8) 60%, transparent 100%);
  padding: 40px 10px 15px 10px;
  color: white;
  box-sizing: border-box; text-align: center;
  z-index: 6;
}

.card-info h3 {
  margin: 0; color: var(--neon-gold);
  font-size: 1.3rem;
  text-shadow: var(--text-glow);
  line-height: 1.1;
}
.card-info p {
  margin: 2px 0 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase 
}

.card-tags {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 5px;
}

.card-tag {
  display: inline-block;
  background: rgba(255, 193, 7, 0.1); color: var(--neon-gold);
  border: 1px solid rgba(255, 193, 7, 0.3); padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold; font-size: 0.75rem;
}

.card-tag.tag-red { background: rgba(255, 77, 77, 0.1); color: #ff4d4d; border-color: rgba(255, 77, 77, 0.3); }
.card-tag.tag-green { background: rgba(76, 175, 80, 0.1); color: #4CAF50; border-color: rgba(76, 175, 80, 0.3); }

/* --- RESPONSIVITÉ POUR GRILLE & FILTRES --- */
@media (max-width: 1100px) {
  .teachers-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 850px) {
  .teachers-grid { grid-template-columns: repeat(2, 1fr); gap: 20px;}
}

@media (max-width: 550px) {
  .teachers-grid { grid-template-columns: minmax(250px, 350px); justify-content: center; }
}

/* =========================================
   8. PAGE MODIFICATION PROFIL (Privé)
   ========================================= */

/* --- WRAPPER GLOBAL --- */
.profile-page-wrapper {
    position: relative; /* Permet de positionner le bouton Accueil par rapport à ce conteneur */
    max-width: 820px; /* Élargi de 750px à 820px pour aérer le contenu */
    margin: 40px auto; /* Centre PARFAITEMENT la carte au milieu de l'écran */
    padding: 0 20px;
}
@media (max-width: 1100px) {
    .profile-page-wrapper {
        flex-direction: column;
    }
}

/* --- BOUTON ACCUEIL LATÉRAL (PRIVÉ UNIQUEMENT) --- */
.private-nav-container {
    position: absolute;
    top: 0;
    left: -150px; /* Décalé un peu plus vers la gauche pour matcher la page publique */
    z-index: 10;
    padding-top: 10px;
}
@media (max-width: 1100px) {
    .private-nav-container {
        position: relative;
        left: auto;
        top: auto;
        margin-bottom: 15px;
        padding-top: 0;
    }
}

/* --- FOND ET DESIGN DE LA CARTE --- */
.profile-container {
    background: rgba(19, 27, 44, 0.85); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border-radius: 20px; 
    color: var(--text-main); 
    animation: fadeIn 0.5s ease-out;
    padding: 30px;
    width: 100%;
    max-width: 800px; /* Élargi en cohérence avec le wrapper */
    box-sizing: border-box;
}

.profile-top-section {
    display: flex;
    gap: 30px;
    align-items: stretch; 
    width: 100%;
}
@media (max-width: 768px) {
    .profile-top-section {
        flex-direction: column;
        align-items: center;
    }
}

.profile-top-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; 
    width: 200px;
    flex-shrink: 0;
}

.profile-top-right {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

/* --- PHOTO DE PROFIL ET BOUTON --- */
.profile-avatar-large {
    width: 140px; 
    height: 140px; 
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 15px; 
}

input[type="file"], #avatar-input { display: none; }

.btn-upload-style {
    display: inline-block; margin-top: 5px; padding: 10px 20px;
    background: transparent; border: 1px solid var(--neon-gold); color: var(--neon-gold);
    border-radius: 30px; font-family: 'Poppins', sans-serif; font-size: 11px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    width: 100%; text-align: center; box-sizing: border-box;
}
.btn-upload-style:hover {
    background: rgba(255, 193, 7, 0.15); box-shadow: 0 0 15px rgba(255, 193, 7, 0.4); transform: translateY(-2px);
}

/* --- TITRE DU PROFIL --- */
.profile-title-area h1 { margin: 0 0 5px 0; font-size: 24px; }
.profile-title-area p { color: var(--text-muted); font-size: 13px; margin: 0 0 20px 0; }

/* --- STRIPE --- */
.stripe-setup-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stripe-setup-box h3 { margin: 0 0 5px 0; color: white; font-size: 1.1rem; }
.stripe-setup-box p { margin: 0; color: #888; font-size: 0.85rem; }

.btn-stripe {
    background: #635bff; 
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}
.btn-stripe:hover { background: #4b45cc; transform: translateY(-2px); }

.alert-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* --- LIGNE DE SÉPARATION GLOBALE --- */
.global-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
    width: 100%;
}

/* --- FORMULAIRE --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.full-width { grid-column: 1 / -1; }

label {
    font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 600;
    color: var(--neon-gold); text-transform: uppercase; letter-spacing: 0.5px;
}

.profile-container input[type="text"], .profile-container input[type="number"],
.profile-container textarea, .profile-container select {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; padding: 10px 12px; color: #fff;
    font-family: 'Poppins', sans-serif; font-size: 13px; transition: all 0.3s ease;
}
.profile-container textarea { resize: none; }
.profile-container input:focus, .profile-container textarea:focus {
    outline: none; border-color: var(--neon-gold); background: rgba(0, 0, 0, 0.3);
}

/* --- BOUTONS DU BAS --- */
.bottom-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    width: 100%;
}
.bottom-actions .btn-save {
    flex: 2; 
    margin: 0;
    background: linear-gradient(135deg, var(--neon-gold), #ffa000); color: #000;
    font-weight: 700; padding: 12px; border: none; border-radius: 30px;
    cursor: pointer; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; 
    transition: all 0.3s ease;
}
.bottom-actions .btn-save:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4); }

.bottom-actions .btn-logout {
    flex: 1; 
    margin: 0;
    background: #e74c3c; 
    color: white;
    border: none; 
    padding: 12px;
    border-radius: 30px; 
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.bottom-actions .btn-logout:hover {
    transform: scale(1.02) translateY(-2px); 
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5); 
}

@media (max-width: 700px) {
    .form-grid { grid-template-columns: 1fr; }
    .profile-container { padding: 20px; }
}

/* =========================================
   9. PAGE PROFIL PUBLIC (Layout Final - Bouton Gauche)
   ========================================= */

.public-container {
    max-width: 1250px; 
    margin: 30px auto; 
    padding: 0 20px;
    position: relative; 
}

.public-layout-grid {
    display: flex; 
    justify-content: center; 
    align-items: flex-start;
}

/* --- BOUTON ACCUEIL LATÉRAL (PUBLIC UNIQUEMENT) --- */
.public-nav-container {
    position: absolute; 
    left: -50px;            
    top: 0;             
    z-index: 10;
    padding-top: 10px;  
}
@media (max-width: 1250px) {
    .public-nav-container { position: relative; left: auto; top: auto; width: 100%; margin-bottom: 15px; text-align: left; }
}

/* --- STYLE DE BASE COMMUN DU BOUTON ACCUEIL --- */
.btn-back-style {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px; border-radius: 30px;
    color: var(--text-muted); font-size: 0.85rem; text-decoration: none;
    transition: 0.3s; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    white-space: nowrap; 
}
.btn-back-style span { font-size: 1.2rem; line-height: 0; padding-bottom: 2px; }
.btn-back-style:hover { background: var(--neon-gold); color: black; border-color: var(--neon-gold); transform: translateX(-5px); }

.profile-card {
    width: 100%;
    max-width: 1050px; 
    background: var(--bg-card); 
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; 
    padding: 25px 30px 30px 30px;
    display: grid; 
    grid-template-columns: 280px 1fr; 
    gap: 40px;
    align-items: start; 
    box-shadow: 0 15px 45px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.left-col { display: flex; flex-direction: column; gap: 15px; }

.name-row { display: flex; align-items: center; justify-content: space-between; }
.prof-name { margin: 0; font-size: 24px; color: white; line-height: 1.2; font-weight: 700; }

.like-btn-round {
    background: rgba(255, 255, 255, 0.1); border: none;
    width: 32px; height: 32px; border-radius: 50%; color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s; flex-shrink: 0; font-size: 14px;
}
.like-btn-round:hover { background: rgba(255, 255, 255, 0.2); }
.like-btn-round.active { color: var(--rouge); background: rgba(255, 77, 77, 0.15); }

.prof-title { 
    display: inline-block; color: var(--neon-gold); font-weight: 800; 
    font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-top: -10px;
}

.prof-avatar {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    border-radius: 12px; border: 2px solid var(--neon-gold);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.15); background-color: #131b2c;
}

.mini-stats-container {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; justify-content: space-between;
}
.mini-stat-card {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; padding: 8px 5px; text-align: center;
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.mini-stat-value { font-weight: 700; font-size: 0.9rem; color: white; display: block; line-height: 1.2; }
.mini-stat-label { font-size: 0.6rem; color: #888; text-transform: uppercase; margin-top: 2px; letter-spacing: 0.5px; }

.fide-style { border-color: rgba(255, 77, 77, 0.3); background: rgba(255, 77, 77, 0.05); }
.fide-style .mini-stat-value { color: #ff4d4d; }
.online-style { border-color: rgba(46, 204, 113, 0.3); background: rgba(46, 204, 113, 0.05); }
.online-style .mini-stat-value { color: #2ecc71; }

.bio-section { margin-top: 10px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }
.bio-section h3 { color: white; font-size: 11px; margin: 0 0 8px 0; text-transform: uppercase; opacity: 0.7; letter-spacing: 1px; }
.bio-text { color: var(--text-muted); font-size: 13px; line-height: 1.5; }

.right-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.booking-header-banner {
    border: 1px solid var(--neon-gold);
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.05) 0%, rgba(0,0,0,0) 100%);
    padding: 10px 20px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: space-between;
    min-height: 50px;
}

.booking-text h3 { margin: 0; font-size: 1rem; color: white; font-weight: 700; }
.booking-text p { margin: 2px 0 0 0; font-size: 0.85rem; color: #aaa; }

.booking-icon-large { font-size: 1.4rem; color: var(--neon-gold); opacity: 0.8; }

.planning-container {
    background: rgba(19, 27, 44, 0.4); border-radius: 16px; padding: 20px; border: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 1250px) {
    .public-layout-grid { flex-direction: column; align-items: center; }
    .profile-card { grid-template-columns: 1fr; }
    .left-col { flex-direction: column; align-items: center; text-align: center; }
    .prof-avatar { max-width: 250px; margin: 0 auto; }
    .name-row { justify-content: center; gap: 15px; }
    .mini-stats-container { justify-content: center; gap: 15px; }
    .mini-stat-card { flex: 0 0 100px; }
}
/* =========================================
   10. CROPPER MODAL
   ========================================= */
.crop-modal-overlay {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); z-index: 1000;
  justify-content: center; align-items: center; backdrop-filter: blur(5px);
}
.crop-modal-content {
  background: var(--bg-card); padding: 20px; border-radius: 15px;
  width: 90%; max-width: 500px; box-shadow: 0 0 30px rgba(0,0,0,0.8);
  border: 1px solid rgba(255, 193, 7, 0.3); text-align: center;
}
.img-container-crop { max-height: 400px; margin-bottom: 20px; overflow: hidden; }
#image-to-crop { display: block; max-width: 100%; }

.crop-actions { display: flex; justify-content: space-between; gap: 15px; }
.btn-cancel {
  background: transparent; border: 1px solid var(--text-muted); color: var(--text-muted); padding: 10px 20px; border-radius: 20px; cursor: pointer; font-weight: bold;
}
.btn-confirm-crop {
  background: var(--neon-gold); border: none; color: #000; padding: 10px 20px; border-radius: 20px; cursor: pointer; font-weight: bold;
}

/* =========================================
   11. AUTHENTIFICATION (Login & Inscription)
   ========================================= */
.auth-body {
  display: flex; align-items: flex-start; justify-content: center;
  min-height: 100vh; padding: 20px; padding-top: 20px;
  background-attachment: fixed; box-sizing: border-box;
}
.auth-container {
  width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center;
  gap: 30px; animation: fadeIn 0.8s ease-out;
}
.auth-logo { text-align: center; margin: 0px 0 0px 0; position: relative; z-index: 10; }
.auth-logo img { display: inline-block; height: 120px; width: auto; }

.auth-card {
  width: 100%; background: rgba(19, 27, 44, 0.9); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 193, 7, 0.2); border-radius: 20px; padding: 40px 30px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5); position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-gold), transparent);
}
.auth-title {
  text-align: center; color: #fff; font-size: 28px; margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1); font-weight: 600;
}
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-link { color: var(--neon-gold); font-weight: bold; text-decoration: underline; cursor: pointer; }
.auth-link:hover { text-shadow: 0 0 5px var(--neon-gold); }
.auth-back-btn { position: fixed; top: 30px; left: 50px; margin: 0; z-index: 1000; }

/* =========================================
   12. SÉLECTEUR DE RÔLE (Grandes Cartes Inscription)
   ========================================= */
.register-steps-container { width: 100%; }
.big-role-selector { display: flex; gap: 20px; margin-bottom: 30px; width: 100%; }

.big-role-card {
  flex: 1; background: rgba(19, 27, 44, 0.9);
  border: 1px solid rgba(255, 193, 7, 0.2); border-radius: 16px;
  text-align: center; cursor: pointer; position: relative; overflow: hidden; height: 180px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  transition: all 0.3s ease;
}
.role-card-content { padding: 20px; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 1; }
.big-role-icon { font-size: 40px; display: block; margin-bottom: 15px; text-shadow: 0 0 15px rgba(255, 193, 7, 0.4); }
.big-role-title { font-family: 'Poppins', sans-serif; font-weight: 700; color: #fff; font-size: 16px; line-height: 1.3; }

.role-hover-text {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-sizing: border-box; padding: 20px;
  background-color: #131b2c; border: 1px solid var(--neon-gold); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--neon-gold); font-size: 14px; font-weight: 600;
  transform: translateY(100%); opacity: 1; z-index: 10;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.big-role-card:hover { box-shadow: 0 0 25px rgba(255, 193, 7, 0.25); border-color: var(--neon-gold); }
.big-role-card:hover .role-card-content { transform: translateY(-40px); opacity: 0.3; }
.big-role-card:hover .role-hover-text { transform: translateY(0); }
#step-credentials { display: none; animation: fadeIn 0.5s ease-out; }

/* =========================================
   13. SYSTÈME DE FAVORIS (Cœur)
   ========================================= */
.card-like-btn {
  background: none; border: none; padding: 5px; cursor: pointer; transition: all 0.3s ease; color: #fff; font-size: 18px;
}
.card-like-btn:hover { transform: scale(1.2); }
.card-like-btn.liked, .card-like-btn.active { color: #ff4d4d; text-shadow: 0 0 10px rgba(255, 77, 77, 0.6); }

.like-btn-top {
  position: absolute; top: 10px; left: 10px; z-index: 10;
  background: rgba(0,0,0,0.5); border: none; border-radius: 50%;
  width: 35px; height: 35px; cursor: pointer; color: white;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.3s;
}
.like-btn-top:hover { transform: scale(1.1); background: rgba(0,0,0,0.8); }
.like-btn-top.liked { color: #ff4d4d; }

/* =========================================
   14. TABLEAU DE BORD (DASHBOARD & CALENDRIER)
   ========================================= */
.dashboard-container {
  max-width: 1200px; margin: 20px auto; padding: 0 15px; min-height: 80vh;
}

/* Grille principale */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px; align-items: start; margin-top: 20px;
}
.dashboard-left { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.dashboard-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }

/* Header Inline (Dashboard) */
.planning-header-inline {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(19, 27, 44, 0.6);
  padding: 15px 25px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.planning-info h2 { margin: 0; font-size: 20px; color: white; }
.planning-info p { margin: 5px 0 0 0; font-size: 13px; color: var(--neon-gold); }

.btn-open-modal {
  background: var(--neon-gold); color: black; border: none;
  padding: 5px 15px; border-radius: 30px; font-weight: bold; cursor: pointer;
  display: flex; align-items: center; gap: 8px; transition: 0.3s;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}
.btn-open-modal:hover { box-shadow: 0 0 20px rgba(255, 193, 7, 0.6); }

/* Sidebar Sections */
.sidebar-section {
  background: rgba(19, 27, 44, 0.8); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; padding: 20px; max-height: 400px; overflow-y: auto;
}
.sidebar-title {
  font-size: 13px; font-weight: 700; color: var(--neon-gold);
  text-transform: uppercase; margin: 0 0 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px;
  display: flex; align-items: center; gap: 10px; letter-spacing: 1px;
}

/* Mini Cartes */
.mini-card {
  background: rgba(255, 255, 255, 0.03); border-radius: 8px; padding: 12px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px; transition: 0.2s; border: 1px solid transparent;
}
.mini-card:hover { background: rgba(255, 255, 255, 0.07); transform: translateX(2px); }
.mini-card.urgent { border-color: rgba(255, 77, 77, 0.3); background: rgba(255, 77, 77, 0.05); }
.mini-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--text-muted); }
.mini-info h4 { margin: 0; font-size: 13px; color: white; font-weight: 600; }
.mini-info p { margin: 2px 0 0 0; font-size: 11px; color: #aaa; }

/* Mini Actions */
.mini-actions { display: flex; gap: 8px; margin-left: auto; }
.btn-mini { width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: 0.2s; }
.btn-mini:hover { transform: scale(1.1); }
.btn-mini-accept { background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid #2ecc71; }
.btn-mini-accept:hover { background: #2ecc71; color: white; }
.btn-mini-refuse { background: rgba(255, 77, 77, 0.2); border: 1px solid #ff4d4d; color: #ff4d4d; }
.btn-mini-refuse:hover { background: #ff4d4d; color: white; }

/* --- FullCalendar Customization --- */
.calendar-card {
  background-color: rgba(18, 18, 18, 0.95); border: 1px solid #333; border-radius: 12px;
  padding: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); font-family: 'Poppins', sans-serif;
}
.fc .fc-toolbar-title { color: var(--neon-gold); font-family: 'Poppins', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 1.5rem; }
.fc .fc-button { background-color: transparent; border: 1px solid var(--neon-gold); color: var(--neon-gold); font-weight: 600; text-transform: uppercase; transition: all 0.3s ease; border-radius: 6px; padding: 3px 11px; }
.fc .fc-button:hover, .fc .fc-button-active { background-color: var(--neon-gold) !important; color: #000 !important; border-color: var(--neon-gold) !important; }
.fc .fc-button:disabled { opacity: 0.5; }
.fc .fc-col-header-cell-cushion { color: #fff; text-decoration: none; font-weight: 600; padding: 5px 0; }
.fc .fc-timegrid-slot-label-cushion { color: #aaa; }
.fc-theme-standard td, .fc-theme-standard th { border-color: #333; }

/* -----------------------------------------------------------
   STYLES DES ÉVÉNEMENTS (Unifiés pour Dashboard & Public)
   Utilisation de !important pour écraser FullCalendar
----------------------------------------------------------- */

/* Base Event */
.fc-event {
  border: none !important;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 1. COURS COLLECTIF (ROUGE) */
a.fc-event.bg-collectif,
div.fc-event.bg-collectif,
a.fc-event.evt-collectif,
div.fc-event.evt-collectif {
  background-color: rgba(255, 77, 77, 0.25) !important;
  border: 1px solid rgba(255, 77, 77, 0.3) !important;
  border-left: 4px solid #ff4d4d !important;
}
.fc-event.bg-collectif .fc-event-main,
.fc-event.evt-collectif .fc-event-main {
  color: #ff4d4d !important;
  font-weight: 700;
}

/* 2. EN ATTENTE (Ancienne classe conservée pour compatibilité si nécessaire) */
a.fc-event.bg-reserve-orange,
div.fc-event.bg-reserve-orange {
  background-color: rgba(255, 152, 0, 0.2) !important;
  border: 1px solid rgba(255, 152, 0, 0.3) !important;
  border-left: 4px solid #FF9800 !important;
}
.fc-event.bg-reserve-orange .fc-event-main {
  color: #FF9800 !important;
  font-weight: 700;
}

/* 3. CONFIRMÉ (BLEU) (Ancienne classe conservée) */
a.fc-event.bg-confirme-blue,
div.fc-event.bg-confirme-blue {
  background-color: rgba(33, 150, 243, 0.2) !important;
  border: 1px solid rgba(33, 150, 243, 0.3) !important;
  border-left: 4px solid #2196F3 !important;
}
.fc-event.bg-confirme-blue .fc-event-main {
  color: #2196F3 !important;
  font-weight: 700;
}

/* 4. OCCUPÉ / COMPLET SUR PROFIL PUBLIC (GRIS) */
a.fc-event.evt-occuped,
div.fc-event.evt-occuped {
  background-color: #4a5568 !important;
  border: 1px solid #2d3748 !important;
  opacity: 0.6;
  pointer-events: none;
}
.fc-event.evt-occuped .fc-event-main {
  color: #a0aec0 !important;
}

/* 5. DEMANDE EN ATTENTE (BLANC) */
a.fc-event.bg-demande-white,
div.fc-event.bg-demande-white {
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-left: 4px solid #b0b0b0 !important;
}
.fc-event.bg-demande-white .fc-event-main,
.fc-event.bg-demande-white .event-alert-icon {
  color: #333 !important; 
  font-weight: 700;
}
.fc-event.bg-demande-white .event-alert-icon {
  background: #333 !important;
  color: #fff !important;
}

/* 6. CONFIRMÉ (ORANGE) */
a.fc-event.bg-confirme-orange,
div.fc-event.bg-confirme-orange {
  background-color: rgba(255, 152, 0, 0.2) !important;
  border: 1px solid rgba(255, 152, 0, 0.3) !important;
  border-left: 4px solid #FF9800 !important;
}
.fc-event.bg-confirme-orange .fc-event-main {
  color: #FF9800 !important;
  font-weight: 700;
}

/* 7. EN ATTENTE DE PAIEMENT (ROUGE / ALERTE) */
a.fc-event.bg-attente-paiement,
div.fc-event.bg-attente-paiement {
  background-color: rgba(231, 76, 60, 0.15) !important;
  border: 1px solid rgba(231, 76, 60, 0.4) !important;
  border-left: 4px solid var(--rouge) !important;
}
.fc-event.bg-attente-paiement .fc-event-main,
.fc-event.bg-attente-paiement .event-alert-icon {
  color: var(--rouge) !important;
  font-weight: 700;
}
.fc-event.bg-attente-paiement .event-alert-icon {
  background: var(--rouge) !important;
  color: white !important;
}

/* Ellipsis pour le texte dans le calendrier */
.fc-event-main-frame {
  display: block !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px;
}
.event-alert-icon {
  position: absolute; top: -6px; right: -6px; background: var(--rouge); color: white;
  width: 20px; height: 20px; border-radius: 50%; font-size: 11px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5); z-index: 10; animation: pulseAlert 2s infinite;
}
@keyframes pulseAlert { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* Légende Calendrier */
.calendar-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 15px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #aaa; font-weight: 500; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-green { background-color: var(--vert-neon); box-shadow: 0 0 8px rgba(46, 204, 113, 0.4); }
.dot-red { background-color: var(--rouge-neon); box-shadow: 0 0 8px rgba(255, 77, 77, 0.4); }

@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-section { flex: 1; min-width: 280px; }
}
@media (max-width: 768px) {
  .fc-toolbar { flex-direction: column; gap: 10px; }
  .fc-toolbar-title { font-size: 1.2rem; }
}

/* =========================================
   15. VUE ÉLÈVE
   ========================================= */
.student-view-container { max-width: 900px; margin: 0 auto; color: white; }
.tabs-container { display: flex; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.tab-btn { background: none; border: none; color: #888; font-size: 1.1rem; padding-bottom: 10px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.tab-btn.active { color: var(--neon-gold); border-bottom: 2px solid var(--neon-gold); }
.courses-grid { display: flex; flex-direction: column; gap: 20px; }
.course-card {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 20px; transition: 0.3s;
}
.course-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,193,7,0.3); }
.course-info { display: flex; align-items: center; gap: 20px; }
.course-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--neon-gold); }
.course-details h3 { margin: 0 0 5px 0; color: white; font-size: 1.1rem; }
.course-details p { margin: 0; color: #888; font-size: 0.9rem; }
.course-date {
  background: rgba(255,193,7,0.1); color: var(--neon-gold);
  padding: 5px 10px; border-radius: 5px; font-weight: bold; font-size: 0.9rem; margin-bottom: 5px; display: inline-block;
}
.btn-join {
  background: #4CAF50; color: white; border: none; padding: 10px 20px;
  border-radius: 8px; font-weight: bold; cursor: pointer; text-decoration: none;
  display: flex; align-items: center; gap: 8px; transition: 0.2s;
}
.btn-join:hover { background: #45a049; transform: scale(1.05); }
.btn-join.disabled { background: #555; cursor: not-allowed; opacity: 0.7; transform: none; }

/* Bouton annuler côté élève */
.btn-cancel-course {
  background: transparent; border: 1px solid var(--rouge); color: var(--rouge);
  padding: 8px 15px; border-radius: 8px; font-weight: 600; cursor: pointer;
  text-decoration: none; font-size: 0.9rem; transition: 0.3s; margin-left: 10px;
}
.btn-cancel-course:hover { background: var(--rouge); color: white; }

@media (max-width: 700px) {
  .course-card { flex-direction: column; align-items: flex-start; gap: 15px; }
  .btn-join { width: 100%; justify-content: center; }
}

/* =========================================
   16. MODALES (Utilisées dans Dashboard et Réservation)
   ========================================= */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); z-index: 2000;
  justify-content: center; align-items: center; backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}
.modal-box {
  background: var(--bg-card); width: 400px; padding: 30px;
  border-radius: 16px; border: 1px solid var(--neon-gold);
  box-shadow: 0 0 30px rgba(255, 193, 7, 0.2); position: relative;
  transform: translateY(20px); animation: slideUp 0.3s forwards;
  text-align: center;
}
@keyframes slideUp { to { transform: translateY(0); } }

.modal-close { position: absolute; top: 15px; right: 15px; color: var(--text-muted); cursor: pointer; font-size: 20px; }
.modal-close:hover { color: white; }
.modal-title { color: white; font-size: 18px; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }

.form-group-modal { margin-bottom: 15px; }

/* Boutons de la modale */
.modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: center; }

.btn-save-modal, .btn-confirm {
  flex: 2; padding: 12px; background: var(--neon-gold); color: black;
  border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.btn-save-modal:hover, .btn-confirm:hover { background: #ffca2c; }

.btn-delete-modal, .btn-cancel {
  flex: 1; padding: 12px; background: transparent; color: var(--rouge);
  border: 1px solid var(--rouge); border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.btn-delete-modal:hover, .btn-cancel:hover { background: var(--rouge); color: white; }

.btn-reset-slot {
  background: #ff9800; color: black; border: none; padding: 12px;
  border-radius: 8px; font-weight: bold; cursor: pointer; flex: 1;
}
.btn-reset-slot:hover { background: #e68900; }

/* =========================================
   17. COURS COLLECTIFS & DÉTAILS
   ========================================= */

/* Modale de détails du cours */
.course-detail-content {
  text-align: left;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.6;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.detail-label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; }
.detail-value { font-weight: 700; color: white; }
.detail-desc {
  margin-top: 15px;
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #ccc;
}
.capacity-badge {
  background: var(--bg-dark);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--neon-gold);
  color: var(--neon-gold);
  font-size: 0.8rem;
}
.capacity-full {
  border-color: var(--rouge);
  color: var(--rouge);
}

/* =========================================
   NOUVEAUX AJOUTS (Néon Calendrier + Pages Légales)
   ========================================= */

/* --- CALENDRIER : CRÉNEAUX DISPOS (EFFET NÉON) --- */
.bg-individuel, 
.evt-dispo {
    background-color: rgba(46, 204, 113, 0.15) !important;
    border: 1px solid rgba(46, 204, 113, 0.8) !important;
    color: #2ecc71 !important;
    border-radius: 6px !important;
    box-shadow: inset 0 0 8px rgba(46, 204, 113, 0.2);
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.bg-individuel:hover, 
.evt-dispo:hover {
    background-color: rgba(46, 204, 113, 0.25) !important;
    border-color: #2ecc71 !important;
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.6), inset 0 0 8px rgba(46, 204, 113, 0.4) !important;
    transform: translateY(-2px);
    z-index: 10 !important;
}

.event-plus-btn {
    background: #2ecc71;
    color: #000;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.8);
    transition: transform 0.2s ease;
    /* Ajustements pour le centrage */
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
}
.evt-dispo:hover .event-plus-btn {
    transform: scale(1.2) rotate(90deg);
}

/* =========================================
   FOOTER (Pied de page)
   ========================================= */
.site-footer {
    background: rgba(19, 27, 44, 0.95);
    border-top: 1px solid rgba(255, 193, 7, 0.1);
    padding: 30px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-gold);
}

.footer-copy {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
}

/* =========================================
   PAGES LÉGALES (Pour cgu.html etc.)
   ========================================= */
.legal-container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 40px;
    background: rgba(19, 27, 44, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    color: #ccc;
    line-height: 1.6;
}

.legal-container h1 {
    color: var(--neon-gold);
    text-align: center;
    margin-bottom: 40px;
}

.legal-container h2 {
    color: white;
    margin-top: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.legal-container ul {
    margin-left: 20px;
}

/* =========================================
   18. RESPONSIVE DESIGN GLOBALE (MOBILES & TABLETTES)
   ========================================= */
@media screen and (max-width: 768px) {
    
    .main-header { 
        flex-wrap: wrap; 
        height: auto; 
        padding: 5px 15px !important; 
    }
    .header-search { 
        display: flex !important; 
        margin: 0 !important; 
        width: 100%; 
        max-width: 100%; 
        order: 4; 
        padding-bottom: 3px !important; 
    }
    .logo-img { height: 45px; }

    .welcome-banner { 
        display: flex !important;
        flex-direction: row !important; 
        align-items: center !important; 
        justify-content: center !important; 
        padding: 0 10px 15px 10px !important; 
        margin-top: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 15px !important; 
    }
    .welcome-text { 
        flex: 1 !important; 
        text-align: center !important; 
        padding: 0 !important; 
    }
    .welcome-text h1 { 
        font-size: 26px !important; 
        margin-bottom: 5px !important; 
        line-height: 1.1 !important;
    }
    .welcome-text p { 
        font-size: 14px !important; 
        margin-bottom: 0 !important; 
        line-height: 1.3 !important;
    }
    .big-neon-img { 
        width: 85px !important; 
        height: auto !important; 
        flex-shrink: 0 !important; 
        padding-right: 10px !important;
        padding-top: 5px !important; 
        margin: 0 !important; 
        display: block; 
    }
    
    /* --- FILTRES COMPACTS --- */
    .pills-filter-bar { flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto !important; justify-content: flex-start !important; gap: 8px !important; margin: 10px auto 20px auto !important; padding: 5px 15px 15px 15px !important; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.4) transparent; }
    .pills-filter-bar::-webkit-scrollbar { display: block !important; height: 4px; }
    .pills-filter-bar::-webkit-scrollbar-track { background: transparent; }
    .pills-filter-bar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.5); border-radius: 10px; }
    .filter-pill { width: auto !important; flex: 0 0 auto !important; padding: 4px 8px !important; }
    .filter-pill input { width: 80px !important; flex: none !important; font-size: 0.65rem !important; }
    .schedule-toggle { width: auto !important; padding: 6px 10px !important; font-size: 0.65rem !important; }

    /* --- FIX DROPDOWN HORAIRES (FOND + CENTRAGE) --- */
    .schedule-overlay { 
        display: none; 
        position: fixed !important; 
        top: 0 !important; 
        left: 0 !important; 
        width: 100vw !important; 
        height: 100vh !important; 
        background: rgba(0, 0, 0, 0.7) !important; 
        backdrop-filter: blur(2px); 
        z-index: 9999 !important; 
        cursor: pointer !important; 
    }
    .schedule-overlay.show { display: block !important; }
    
    .schedule-dropdown { position: fixed !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; width: 85% !important; max-width: 320px !important; z-index: 10000 !important; background: var(--bg-card) !important; border: 2px solid var(--neon-gold) !important; padding: 25px !important; border-radius: 20px !important; box-shadow: 0 15px 35px rgba(0,0,0,0.9) !important; flex-direction: column !important; align-items: center !important; text-align: center !important; }
    .schedule-dropdown.show { display: flex !important; }
    .schedule-dropdown .schedule-group { display: flex !important; flex-direction: column !important; align-items: center !important; width: 100% !important; margin-bottom: 10px !important;}
    .schedule-dropdown label { text-align: center !important; width: 100% !important; margin-bottom: 5px !important; }
    .schedule-dropdown input { text-align: center !important; margin: 0 auto !important; width: 90% !important; }
    
    /* Grilles et Conteneurs globaux */
    .dashboard-container, .main-container { padding: 0 10px 15px 10px !important; margin-top: 5px !important; }
    
    /* --- GRILLE DES PROFS --- */
    .teachers-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; padding: 10px !important; }
    .card-info h3 { font-size: 1.05rem; }
    .card-info p { font-size: 0.7rem; }
    .card-tag { font-size: 0.65rem; padding: 2px 4px; }

    /* --- PROFIL PRIVÉ (MODIFICATION) : CENTRAGE COMPLET FORMULAIRE --- */
    .profile-layout { flex-direction: column !important; gap: 20px !important; align-items: center !important; }
    .profile-left-col { width: 100% !important; border-bottom: 1px solid rgba(255,255,255,0.05) !important; padding-bottom: 20px !important; }
    
    .profile-right-col { width: 100% !important; display: flex !important; flex-direction: column !important; align-items: center !important; }
    .profile-title-area { text-align: center !important; width: 100% !important; }
    
    .form-grid { 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
        width: 100% !important; 
    }
    
    .form-group { 
        width: 100% !important; 
        max-width: 350px !important; 
        align-items: center !important; 
        text-align: center !important; 
    }
    
    .profile-container input[type="text"], 
    .profile-container input[type="number"], 
    .profile-container textarea, 
    .profile-container select { 
        text-align: center !important; 
        width: 100% !important; 
        box-sizing: border-box !important; 
    }
    
    .btn-save { max-width: 350px !important; margin-left: auto !important; margin-right: auto !important; display: block !important; }
    .profile-container { margin: 10px !important; padding: 20px !important; }

    /* --- PROFIL PUBLIC : MISE EN PAGE CENTRÉE --- */
    .public-container { margin-top: 10px !important; padding: 0 10px 15px 10px !important; position: relative !important; }
    .side-nav-container { position: absolute !important; top: 15px !important; left: 20px !important; margin: 0 !important; padding: 0 !important; z-index: 50 !important; }
    .btn-back-style { padding: 6px 12px !important; font-size: 0.7rem !important; }
    .btn-back-style span { font-size: 1rem !important; }

    .profile-card { grid-template-columns: 1fr; padding: 15px 10px 10px 10px !important; margin-top: 0 !important; gap: 10px !important; }
    
    .left-col { 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
        text-align: center !important; 
        gap: 12px !important; 
        border-right: none !important; 
        padding-right: 0 !important; 
        border-bottom: none !important; 
        padding-bottom: 0 !important; 
        margin-bottom: 0 !important; 
    }
    
    .name-row { justify-content: center !important; width: 100% !important; margin: 0 !important; gap: 15px !important; }
    .prof-name { font-size: 22px !important; line-height: 1.2 !important; text-align: center !important; }
    
    .prof-title { margin: -5px 0 5px 0 !important; font-size: 11px !important; text-align: center !important; width: 100% !important; }
    
    .prof-avatar { width: 140px !important; height: 140px !important; object-fit: cover !important; margin: 0 auto !important; border-radius: 12px !important; }
    
    .mini-stats-container { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; gap: 10px !important; margin: 0 !important; width: 100% !important; height: auto !important; }
    .mini-stat-card { flex: 0 0 auto !important; min-width: 90px !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; padding: 10px !important; border-radius: 8px !important; min-height: 0 !important; }
    .mini-stat-value { font-size: 1rem !important; margin-bottom: 2px !important; line-height: 1 !important; }
    .mini-stat-label { font-size: 0.65rem !important; margin: 0 !important; line-height: 1 !important; text-align: center !important; }
    
    .bio-section { margin-top: 5px !important; margin-bottom: 0 !important; padding-top: 15px !important; padding-bottom: 0 !important; border-top: 1px solid rgba(255, 255, 255, 0.05) !important; text-align: center !important; width: 100% !important; }
    .bio-section h3 { margin-bottom: 5px !important; font-size: 11px !important; }
    .bio-text { font-size: 11px !important; line-height: 1.3 !important; margin-bottom: 0 !important; }
    
    .right-col { gap: 8px !important; margin-top: 0 !important; padding-top: 0 !important; } 
    .booking-header-banner { padding: 8px 15px !important; min-height: 45px !important; margin-top: 0 !important; }
    .booking-text h3 { font-size: 0.9rem !important; }
    .planning-container { padding: 10px; min-height: 450px; margin-top: 5px !important; }

    .modal-box { width: 95%; padding: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .visio-header { padding: 0 10px; }
    #room-title { font-size: 0.9rem; }
    .local-video-wrapper { width: 100px; height: 75px; bottom: 15px; right: 15px; border-width: 1px; }
    .controls-bar { gap: 10px; }
    .btn-control { width: 45px; height: 45px; font-size: 1rem; }
    .chat-panel { position: absolute; right: 0; top: 0; height: 100%; width: 100%; z-index: 50; }
    .legal-container { padding: 20px; margin-top: 30px; }
}

@media screen and (max-width: 400px) {
    .teachers-grid { grid-template-columns: minmax(200px, 280px) !important; justify-content: center; }
    .btn-back-style { font-size: 0 !important; padding: 6px 8px !important; } 
    .btn-back-style span { font-size: 1.2rem !important; margin: 0 !important; }
}