/* ═══════════════════════════════════════════════════
   POLYZEA · eleve.css
   Même design que index.css
═══════════════════════════════════════════════════ */

:root {
  --bg: #FFFDF8;
  --primary: #14B8A6;
  --primary-deep: #0EA5A4;
  --primary-10: rgba(20, 184, 166, 0.10);
  --primary-05: rgba(20, 184, 166, 0.05);
  --accent: #84CC16;
  --accent-10: rgba(132, 204, 22, 0.12);
  --orange: #FB923C;
  --orange-10: rgba(251, 146, 60, 0.12);
  --text: #1F2937;
  --text-sec: #6B7280;
  --text-light: #9CA3AF;
  --white: #FFFFFF;
  --border: rgba(20, 184, 166, 0.14);
  --shadow-sm: 0 2px 12px rgba(20, 184, 166, 0.07);
  --shadow-md: 0 8px 32px rgba(20, 184, 166, 0.12);
  --shadow-lg: 0 20px 60px rgba(20, 184, 166, 0.16);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition: 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.hex-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.65;
}

.orb--teal {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  top: -180px;
  right: -100px;
}

.orb--green {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.12) 0%, transparent 70%);
  bottom: 60px;
  left: -100px;
}

.orb--orange {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.11) 0%, transparent 70%);
  bottom: 28%;
  right: 10%;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(14px);
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.logo-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-sec);
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-link:hover {
  background: var(--primary-05);
  color: var(--primary);
}

.nav-link--active {
  background: var(--primary-10);
  color: var(--primary);
  font-weight: 600;
}

.btn-outline-nav {
  padding: 0.42rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(20, 184, 166, 0.35);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  background: none;
  cursor: pointer;
}

.btn-outline-nav:hover {
  background: var(--primary-10);
  border-color: var(--primary);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-sec);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 0.6rem;
  overflow: hidden;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile__link {
  padding: 0.9rem 1.5rem;
  font-weight: 500;
  color: var(--text-sec);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  text-decoration: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.nav-mobile__link--cta {
  color: var(--primary);
  font-weight: 600;
}

/* MAIN */
.page-main {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  margin-top: 2rem;
}

/* SECTION CARDS */
.section-card {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-title-small {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* MATIERES GRID */
.matieres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.matiere-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.matiere-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.matiere-card__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.matiere-card__name {
  font-weight: 600;
  color: var(--text);
}

/* PROF LIST */
.profs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prof-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

.prof-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.prof-card__info h4 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.prof-card__info p {
  font-size: 0.8rem;
  color: var(--text-sec);
}

.prof-card__stars {
  color: var(--orange);
  font-size: 0.85rem;
}

.prof-card__btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.prof-card__btn:hover {
  background: var(--primary-deep);
  transform: scale(1.02);
}

/* FILTERS */
.filters-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
}

/* STATS CARDS */
.stats-card {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.stat-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-emoji {
  font-size: 1.8rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-sec);
}

/* CONVERSATIONS */
.conversations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.conversation-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.conversation-item:hover {
  border-color: var(--primary);
  background: var(--primary-05);
}

.conversation-item__name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.conversation-item__last {
  font-size: 0.75rem;
  color: var(--text-sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* STUDENT INFO */
.student-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.student-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.student-details p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
}

/* MODALS */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal__card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  border: 1px solid rgba(20, 184, 166, 0.2);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal__card--large {
  max-width: 700px;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-sec);
}

.modal__icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.modal__desc {
  text-align: center;
  color: var(--text-sec);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.9rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.photo-preview {
  margin-top: 0.5rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}

.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}

.btn-secondary:hover {
  background: var(--primary-10);
}

/* DISPONIBILITES */
.dispos-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.dispo-item {
  background: var(--primary-05);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.dispo-item:hover {
  background: var(--primary-10);
}

.reservation-options {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.reservation-options button {
  flex: 1;
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
}

.reservation-options button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* CONVERSATION MODAL */
.conversation-messages {
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--primary-05);
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

.message {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  max-width: 80%;
}

.message--student {
  background: var(--primary);
  color: white;
  margin-left: auto;
}

.message--prof {
  background: var(--white);
  border: 1px solid var(--border);
}

.message small {
  font-size: 0.65rem;
  opacity: 0.7;
  display: block;
}

.conversation-input {
  display: flex;
  gap: 0.5rem;
}

.conversation-input textarea {
  flex: 1;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  resize: none;
  height: 60px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-main {
    padding: 0 1rem 2rem;
  }
  .nav-links,
  .nav-auth {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .stats-card {
    flex-direction: column;
  }
}

/* ===================================================== */
/* STYLES AUTHENTIFICATION (comme prof.html)            */
/* ===================================================== */

.page-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.back-link {
  position: absolute;
  top: 2rem;
  left: 2rem;
  color: var(--text-sec);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  z-index: 10;
}

.back-link:hover {
  color: var(--primary);
}

.auth-card {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}

.auth-card__logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card__brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.5rem;
}

.auth-card__role {
  font-size: 0.85rem;
  color: var(--text-sec);
  margin-top: 0.25rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form__title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.btn--full {
  width: 100%;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-google:hover {
  background: var(--primary-05);
  border-color: var(--primary);
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 0.5rem 0;
}

.auth-divider span {
  background: var(--bg);
  padding: 0 0.75rem;
  color: var(--text-sec);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-sec);
  margin-top: 0.5rem;
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.sous-matieres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.prof-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  transition: all var(--transition);
}

.prof-card__avatar {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

.prof-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  cursor: pointer;
}

.prof-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.prof-card__info {
  flex: 1;
}

.prof-card__btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.prof-card__btn:hover {
  background: var(--primary-deep);
  transform: scale(1.02);
}

.prof-media {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.prof-media__item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.prof-media__item:hover {
  transform: scale(1.05);
}

.prof-media__thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}

.prof-media__item span {
  display: block;
  font-size: 0.7rem;
  margin-top: 0.3rem;
  color: var(--text-sec);
}

.modal__card--media {
  max-width: 800px;
  background: transparent;
  box-shadow: none;
}

.media-modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.media-modal-content img,
.media-modal-content video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* MODAL PROFESSEUR - NOUVELLE MISE EN PAGE */
.prof-modal-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.prof-modal-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.5rem;
}

.prof-details-grid {
  background: var(--primary-05);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

.prof-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.prof-detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prof-detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.prof-other-matieres h4,
.prof-disponibilites h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.other-matieres-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.other-matiere-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  color: var(--text-sec);
}

.dispos-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.dispo-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.dispo-item:hover {
  background: var(--primary-10);
  border-color: var(--primary);
}

/* CALENDRIER RESERVATION - VERSION PROPRE */
.modal-large {
  max-width: 900px;
  width: 90%;
}

.calendar-container {
  margin-top: 1rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.week-info {
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-small {
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
}

/* Conteneur principal avec scroll synchronisé */
.agenda-container {
  display: flex;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: auto;
}

.hour-header {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.7rem;
  background: var(--primary-05);
  border-radius: 8px;
  margin-bottom: 2px;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hour-cell {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  background: var(--primary-05);
  border-radius: 8px;
}

.agenda-grid {
  overflow-y: auto;
  max-height: 700px;
}

.agenda-hours {
  overflow: hidden;
}

.days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}

.day-header {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.7rem;
  background: var(--primary-10);
  border-radius: 8px;
}

.agenda-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.agenda-cell {
  height: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.agenda-cell:hover {
  background: var(--primary-10);
  border-color: var(--primary);
}

.agenda-cell.available {
  background: var(--accent-10);
  border-color: var(--accent);
}

.agenda-cell.available:hover {
  background: var(--accent);
  color: white;
}

.agenda-cell.booked {
  background: var(--text-light);
  border-color: var(--text-sec);
  cursor: not-allowed;
  opacity: 0.5;
}

.agenda-cell.unavailable {
  background: var(--orange-10);
  border-color: var(--orange);
  cursor: not-allowed;
  opacity: 0.5;
}

.badge-orange {
  background: var(--orange);
  color: white;
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.upcoming-courses-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upcoming-course-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.upcoming-course-item:hover {
  border-color: var(--primary);
  background: var(--primary-05);
  transform: translateX(4px);
}

.upcoming-course__date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.upcoming-course__prof {
  font-size: 0.85rem;
  font-weight: 500;
}

.upcoming-course__matiere {
  font-size: 0.75rem;
  color: var(--text-sec);
  background: var(--primary-05);
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
}

.upcoming-course__price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* Fond blanc pour le modal calendrier */
#reservationCalendarModal {
  background: rgba(31, 41, 55, 0.6);
  backdrop-filter: blur(8px);
}

#reservationCalendarModal .modal-content,
#reservationCalendarModal .modal__card {
  background: #FFFDF8 !important;
  border-radius: 24px !important;
  padding: 1.5rem !important;
  max-width: 900px;
  width: 90%;
}

#reservationCalendarModal .agenda-cell {
  background: #FFFFFF !important;
}

/* Centrer le calendrier */
#reservationCalendarModal .agenda-container {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

#reservationCalendarModal .agenda-grid {
  flex: 1;
  min-width: 0;
}

#reservationCalendarModal .days-header,
#reservationCalendarModal .agenda-cells {
  display: grid;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  gap: 4px;
}

#reservationCalendarModal .day-header,
#reservationCalendarModal .agenda-cell {
  min-width: 70px;
  text-align: center;
}

@media (max-width: 768px) {
  #reservationCalendarModal .days-header,
  #reservationCalendarModal .agenda-cells {
    grid-template-columns: repeat(7, minmax(50px, 1fr));
  }
  #reservationCalendarModal .day-header,
  #reservationCalendarModal .agenda-cell {
    min-width: 45px;
    font-size: 0.65rem;
  }
}