:root {
  --primary-color: #947128;
  --secondary-color: #c4a484;
  --background-color: #f2f2f7;
  --text-color: #1c1c1e;
  --card-background: #ffffff;
  --success-color: #34c759;
  --warning-color: #ff9500;
  --danger-color: #ff3b30;
  --border-radius: 12px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dark theme variables */
:root[data-theme="dark"] {
  --primary-color: #d4a574;
  --secondary-color: #a88c5e;
  --background-color: #1a1a1e;
  --text-color: #e5e5ea;
  --card-background: #2c2c2e;
  --success-color: #34c759;
  --warning-color: #ff9500;
  --danger-color: #ff3b30;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Light theme variables (explicit) */
:root[data-theme="light"] {
  --primary-color: #947128;
  --secondary-color: #c4a484;
  --background-color: #f2f2f7;
  --text-color: #1c1c1e;
  --card-background: #ffffff;
  --success-color: #34c759;
  --warning-color: #ff9500;
  --danger-color: #ff3b30;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body, html {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(to bottom, var(--background-color), var(--secondary-color));
  min-height: 100vh;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 100%;
  padding: 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.dashboard-logo {
  display: block;
  width: 120px;
  margin: 20px auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 600;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }

/* Cartes */
.dashboard-section {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Citation */
.quote-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
      padding: 24px;
  margin-bottom: 24px;
  width: 100%;
  color: white;
  position: relative;
  overflow: hidden;
    box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-text {
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.quote-author {
  text-align: right;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 150px;
  opacity: 0.2;
  font-family: Georgia, serif;
  z-index: 0;
}


/* challenge action */
.challenge-action-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-success-hover {
    background-color: #28a745;
    color: white;
    transform: scale(1.05);
}

.btn-danger-hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.05);
}

.btn-primary-hover {
    background-color: #007bff;
    color: white;
    transform: scale(1.05);
}

.challenge-card.completed {
    border-left: 4px solid #28a745;
}

.challenge-card.abandoned {
    border-left: 4px solid #dc3545;
}

.challenge-card.current {
    border-left: 4px solid #007bff;
}

/* Boutons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.btn-primary:hover, .btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Barre de navigation inférieure */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 12px;
}

.bottom-nav .nav-link img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

/* Challenge en cours */
.current-challenge {
  text-align: center;
}

.challenge-image {
  width: 100%;
  max-width: 200px;  /* Réduire la largeur maximale */
  height: auto;  /* Maintenir le ratio d'aspect */
  border-radius: 12px;  /* Coins arrondis pour correspondre au style Apple */
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;  /* Assure que l'image couvre bien la zone sans être déformée */
}

.challenge-description {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 20px;
  opacity: 0.8;  /* Légère transparence pour le texte secondaire */
}

/* Pour les challenges disponibles dans la liste */
.challenge-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.challenge-card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.challenge-card .challenge-image {
  width: 100%;
  height: 150px;  /* Hauteur fixe pour uniformité */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.challenge-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.challenge-card p {
  font-size: 14px;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 12px;
}

/* Calendrier */
.calendar-container {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

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

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e5e5ea;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.calendar-day.completed {
  background-color: var(--primary-color);
  color: white;
}

/* Barre de progression */
.progress-container {
  margin: 20px 0;
}

.progress-bar {
  background-color: #e0e0e0;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.progress {
  background-color: var(--primary-color);
  height: 100%;
  transition: width 0.3s ease;
}

/* Profil */
.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--primary-color);
}

/* Messages */
.success-message, .error-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  text-align: center;
  z-index: 1000;
  animation: fadeInOut 3s ease-in-out;
}

.success-message {
  background-color: var(--success-color);
}

.error-message {
  background-color: var(--danger-color);
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 1; }
}

/* Confettis */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  animation: fall 3s ease-in infinite;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(720deg);
  }
}

/* Minuteur de méditation */
.meditation-timer {
  font-size: 64px;
  font-weight: 200;
  text-align: center;
  margin: 20px 0;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.timer-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.start-btn { background-color: var(--success-color); color: white; }
.pause-btn { background-color: var(--warning-color); color: white; }
.reset-btn { background-color: var(--danger-color); color: white; }

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.btn-edit, .btn-delete {
  padding: 5px 10px;
  margin: 2px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.btn-edit {
  background-color: #4CAF50;
  color: white;
}

.btn-delete {
  background-color: #f44336;
  color: white;
}

.btn-delete:hover {
  background-color: #d32f2f;
}

.success {
  color: #4CAF50;
  background-color: #e8f5e9;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.error {
  color: #f44336;
  background-color: #ffebee;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.popup-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 80%;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

.popup-content h3 {
  color: #947128;
  margin-bottom: 10px;
}

.popup-content p {
  margin-bottom: 5px;
}

.encouragement {
  font-style: italic;
  color: #4a4a4a;
  margin-top: 10px;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

#breathing-animation {
  width: 100px;
  height: 100px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin: 20px auto;
}

.breathing {
  animation: breathe 4s infinite ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-out {
  animation: fadeOut 0.5s ease-in;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}


/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }

  .btn-primary, .btn-secondary {
    padding: 10px 16px;
    font-size: 14px;
  }

  .calendar-day {
    font-size: 12px;
  }

  .meditation-timer {
    font-size: 48px;
  }
}

/* ===== THÈME SOMBRE ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #1c1c1e;
    --text-color: #f2f2f7;
    --card-background: #2c2c2e;
  }

  body, html {
    background: linear-gradient(to bottom, var(--background-color), var(--secondary-color));
  }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotateZ(360deg);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.dashboard-section {
  animation: slideInUp 0.3s ease-out;
}

/* ===== LOADERS ===== */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(148, 113, 40, 0.3);
  border-top-color: #947128;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===== MESSAGES D'ERREUR ET DE SUCCÈS ===== */
.error-message {
  background-color: #ff3b30;
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  animation: slideInUp 0.3s ease-out;
}

.success-message {
  background-color: #34c759;
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  animation: slideInUp 0.3s ease-out;
}

.warning-message {
  background-color: #ff9500;
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  animation: slideInUp 0.3s ease-out;
}

/* ===== POPUP FEEDBACK ===== */
.popup-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  animation: slideInUp 0.3s ease-out;
  max-width: 90%;
}

.popup-content {
  text-align: center;
}

.popup-content h3 {
  margin-top: 0;
  color: #947128;
}

.encouragement {
  font-style: italic;
  color: #947128;
  margin-top: 16px;
  font-weight: 600;
}

.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

/* ===== CONFETTI ===== */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(100vh) rotateZ(360deg);
    opacity: 0;
  }
}

/* ===== INDICATEUR DE CONNEXION ===== */
.connection-indicator {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  z-index: 1500;
}

.connection-indicator.online {
  background-color: #34c759;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.5);
}

.connection-indicator.offline {
  background-color: #ff3b30;
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.5);
  animation: pulse 1s infinite;
}

/* ===== TRANSITIONS FLUIDES ===== */
.dashboard-section {
  transition: all 0.3s ease;
}

.bottom-nav {
  transition: all 0.3s ease;
}

.nav-link {
  transition: all 0.3s ease;
}

.nav-link.active {
  background-color: rgba(148, 113, 40, 0.1);
  color: #947128;
  font-weight: 700;
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #947128;
  outline-offset: 2px;
}

/* ===== ADMIN HEADER NAVIGATION ===== */
.admin-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-header-nav h1 {
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.btn-back-to-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #947128;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-back-to-dashboard:hover {
  background-color: #7a5a1f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(148, 113, 40, 0.3);
}

.btn-back-to-dashboard:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .admin-header-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-header-nav h1 {
    text-align: center;
  }

  .btn-back-to-dashboard {
    justify-content: center;
    width: 100%;
  }
}

/* ===== BOUTON ADMIN (dans le profil) ===== */
.btn-admin {
  display: inline-block;
  width: 100%;
  padding: 12px 24px;
  margin-top: 12px;
  background: linear-gradient(135deg, #947128, #7a5a1f);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-admin:hover {
  background: linear-gradient(135deg, #7a5a1f, #5f4816);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(148, 113, 40, 0.4);
}

.btn-admin:active {
  transform: translateY(0);
}

/* ===== BADGE ADMIN ===== */
.admin-badge {
  position: fixed;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #947128, #7a5a1f);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(148, 113, 40, 0.3);
  animation: slideInDown 0.3s ease-out;
}

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

/* Challenge Detail Modal */
.challenge-detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
  animation: fadeIn 0.3s ease-in;
}

.challenge-detail-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-detail-content {
  background: white;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-color);
  z-index: 10001;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
}

.error-banner {
  background: var(--danger-color);
  color: white;
  padding: 12px 16px;
  margin: 0;
  text-align: center;
  border-radius: 16px 16px 0 0;
}

.challenge-detail-header {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-header-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px;
}

.detail-header-info h1 {
  color: white;
  margin: 0 0 10px 0;
  font-size: 28px;
}

.detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-status,
.detail-duration {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.challenge-detail-body {
  padding: 24px;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
}

.detail-section p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-color);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.detail-card {
  background: linear-gradient(135deg, var(--background-color), rgba(196, 164, 132, 0.1));
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  border-left: 4px solid var(--primary-color);
}

.detail-card strong {
  display: block;
  color: var(--primary-color);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.detail-card p {
  margin: 0;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 500;
}

.progress-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--background-color);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success-color), var(--primary-color));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--background-color);
  padding-top: 24px;
}

.btn-action {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.btn-action.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(148, 113, 40, 0.3);
}

.btn-action.btn-secondary {
  background: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--secondary-color);
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Theme Selector */
.theme-selector {
  margin: 24px 0;
  padding: 20px;
  background: var(--card-background);
  border-radius: var(--border-radius);
  border: 1px solid var(--secondary-color);
  box-shadow: var(--shadow);
}

.theme-selector label {
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 16px;
}

.theme-toggle-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-btn {
  flex: 1;
  min-width: 100px;
  padding: 10px 16px;
  border: 2px solid var(--secondary-color);
  background: transparent;
  color: var(--text-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-btn:hover {
  background: var(--secondary-color);
  color: var(--card-background);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.theme-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(148, 113, 40, 0.3);
}

/* Video Container pour YouTube */
.video-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--background-color);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.video-container p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 20px;
}

/* Smooth transition between themes */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}