/* === RESET DE BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* === TITRES & HEADER === */
/* Nom de l'utilisateur avec pulse arc-en-ciel néon */
.user-pseudo {
    text-align: center;
    font-size: 2rem;
    margin: 20px 0;
    font-weight: 600;
    display: block; /* pour conserver le centrage */
    animation: userPseudoRainbowSmooth 6s infinite alternate ease-in-out;
    color: #c1baff;
    text-shadow: 0 0 4px #c1baff44, 0 0 8px #00ffff33, 0 0 12px #a0dfff22;
}

/* Keyframes adoucis : glow et scale plus subtils */
@keyframes userPseudoRainbowSmooth {
    0% {
        color: #c1baff;
        text-shadow: 0 0 4px #c1baff44, 0 0 8px #00ffff33, 0 0 12px #a0dfff22;
        transform: scale(1);
    }
    33% {
        color: #a0dfff;
        text-shadow: 0 0 5px #a0dfff44, 0 0 10px #00ffff44, 0 0 14px #ffb36622;
        transform: scale(1.015);
    }
    66% {
        color: #ffb366;
        text-shadow: 0 0 6px #ffb36644, 0 0 12px #ffb36633, 0 0 16px #00ffff22;
        transform: scale(1.02);
    }
    100% {
        color: #c1baff;
        text-shadow: 0 0 4px #c1baff44, 0 0 8px #00ffff33, 0 0 12px #a0dfff22;
        transform: scale(1.015);
    }
}


h1 {
  text-align: center;
  margin: 20px 0;
  font-size: 4.8rem;
  color: #fff;
  text-shadow: 0 0 6px #29c9ff, 0 0 12px rgba(41, 201, 255, 0.7);
}

h2 {
  text-align: center;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 0 6px #29c9ff, 0 0 12px rgba(41, 201, 255, 0.7);
  border: none; /* Supprime toute bordure autour de h2 */
  padding: 5px; /* Retire tout espacement autour du titre */
  margin: 0; /* Enlève la marge par défaut */
}

h2 a.h2 {
  font-size: 1.2em;
  font-weight: normal;
  color: #e7e3e3;
  text-decoration: none;
  padding: 8px 16px;
  background-color: transparent; /* Fond transparent pour éviter tout cadre visible */
  border: none; /* Aucune bordure autour du lien */
  border-radius: 8px; /* Coins arrondis */
  display: inline-block; /* Éviter la séparation verticale et permettre de gérer le padding correctement */
  transition: background-color 0.3s, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.3); /* Ombre légère */
}

h2 a.h2:hover {
  background-color: rgba(0, 0, 0, 0.5); /* Fond léger au survol */
  color: #00eaff; /* Texte bleu néon au survol */
  box-shadow: 0 0 15px #00eaff, 0 0 25px rgba(0, 234, 255, 0.7); /* Ombre néon plus prononcée */
  transform: scale(1.05); /* Effet de zoom */
  cursor: pointer; /* Curseur main au survol */
}



h3 {
    margin-bottom: 10px;       /* ton espacement existant */
    font-size: 1.0rem;         /* taille actuelle */
    font-weight: 600;           /* un peu de poids pour le style */
    display: inline-block;      /* nécessaire pour l'animation sans casser le flow */
    text-align: left;           /* rester à gauche */
    animation: h3RainbowSmooth 6s infinite alternate ease-in-out;
    color: #c1baff;             /* couleur de départ */
    text-shadow: 0 0 4px #c1baff44, 0 0 8px #00ffff33, 0 0 12px #a0dfff22;
}

/* Keyframes adoucis pour l'animation arc-en-ciel + pulse */
@keyframes h3RainbowSmooth {
    0% {
        color: #c1baff;
        text-shadow: 0 0 4px #c1baff44, 0 0 8px #00ffff33, 0 0 12px #a0dfff22;
        transform: scale(1);
    }
    33% {
        color: #a0dfff;
        text-shadow: 0 0 5px #a0dfff44, 0 0 10px #00ffff44, 0 0 14px #ffb36622;
        transform: scale(1.015);
    }
    66% {
        color: #ffb366;
        text-shadow: 0 0 6px #ffb36644, 0 0 12px #ffb36633, 0 0 16px #00ffff22;
        transform: scale(1.02);
    }
    100% {
        color: #c1baff;
        text-shadow: 0 0 4px #c1baff44, 0 0 8px #00ffff33, 0 0 12px #a0dfff22;
        transform: scale(1.015);
    }
}

/* === BOUTONS === */
button {
  background: transparent;
  border: 2px solid #29c9ff;
  color: #f9f9f9;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  margin: 5px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); /* Ombre de base */
  transition: all 0.3s ease; /* Transition uniforme */
}

button:hover {
  background: linear-gradient(90deg, #29c9ff, #8a2be2);
  color: #121212;
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(0, 255, 255, 1), 0 0 45px rgba(138, 43, 226, 0.8); /* Ombre accentuée */
  z-index: 20; /* Assure que le bouton reste au-dessus */
}

#logout {
  position: fixed;
  top: 50px;
  inset-inline-end: 10px; /* respecte la marge interne de l'écran */
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,0,0,0.6);
  color: #f00;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(255,0,0,0.6), 0 0 20px rgba(255,69,0,0.5);
  transition: all 0.3s ease;
  z-index: 999;
}

/* 📱 Mobile : le ramener un peu plus vers l'intérieur */
@media (max-width: 768px) {
  #logout {
    right: 20px;  /* au lieu de 10px */
    padding: 8px; /* un peu plus petit */
    font-size: 16px;
  }
}

/* Effet hover */
#logout:hover {
  background: rgba(0,0,0,0.6);
  box-shadow: 0 0 15px rgba(255,0,0,0.8), 0 0 25px rgba(255,69,0,0.7);
  color: #f00;
  transform: scale(1.05);
}

/* Supprimer le style par défaut de l'icône */
#logout i {
  pointer-events: none;
}

#dashboard {
  position: absolute;
  top: 55px;
  left: 0px;
  z-index: 1000; /* ✅ Assure qu'il est cliquable au-dessus du canvas */
}

/* Bouton Accueil */
#dashboard-home {
    padding: 12px 25px;
    font-size: 16px;
    border: 2px solid #29c9ff;
    border-radius: 12px;
    background: transparent;
    color: #29c9ff;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0,255,255,0.5);
    transition: all 0.3s ease;
}

/* Bouton Ajouter un utilisateur */
#dashboard-add-user {
    padding: 12px 25px;
    font-size: 16px;
    border: 2px solid #ff4d6d;
    border-radius: 12px;
    background: transparent;
    color: #ff4d6d;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255, 77, 109, 0.5);
    transition: all 0.3s ease;
}

#dashboard-home:hover {
    background: linear-gradient(90deg, #29c9ff, #8a2be2);
    color: #121212;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0,255,255,1), 0 0 45px rgba(138,43,226,0.8);
}

#dashboard-add-user:hover {
    background: linear-gradient(90deg, #ff4d6d, #ff1a40);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 77, 109, 1), 0 0 45px rgba(255, 26, 64, 0.8);
}

/* === CONTAINER DU PLANNING === */
#planning-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* === BLOC UTILISATEUR === */
.planning-user {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.planning-user:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(41, 201, 255, 0.6);
}

/* === UTILISATEUR CONNECTÉ (highlight) === */
.planning-user.current-user {
  border: 2px solid #29c9ff;
  box-shadow: 0 0 15px #29c9ff, 0 0 30px rgba(41, 201, 255, 0.6);
  background: rgba(41, 201, 255, 0.08);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px #29c9ff, 0 0 20px rgba(41, 201, 255, 0.6); }
  50% { box-shadow: 0 0 20px #29c9ff, 0 0 40px rgba(41, 201, 255, 0.9); }
  100% { box-shadow: 0 0 10px #29c9ff, 0 0 20px rgba(41, 201, 255, 0.6); }
}

.me-badge {
  background: #29c9ff;
  color: #121212;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 3px 8px;
  margin-left: 10px;
  border-radius: 8px;
  text-transform: uppercase;
  box-shadow: 0 0 6px #29c9ff;
}

/* === ITEMS DU PLANNING === */
.planning-item {
  position: relative;
  margin-bottom: 15px;
}

.planning-img {
  width: 100%;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.planning-img:hover {
  transform: scale(1.4);
  box-shadow: 0 0 15px #29c9ff;
}

/* === BADGE NOUVEAU === */
.new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #7aff00;
  color: #121212;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  box-shadow: 0 0 6px #7aff00;
  animation: pulse-badge 1.5s infinite;
}

@keyframes pulse-badge {
  0% { transform: scale(1); box-shadow: 0 0 6px #7aff00; }
  50% { transform: scale(1.1); box-shadow: 0 0 12px #7aff00; }
  100% { transform: scale(1); box-shadow: 0 0 6px #7aff00; }
}

/* === BOUTONS DANS LES IMAGES === */
.btn-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  gap: 20px; /* Réduit l'espace entre les boutons */
  flex-wrap: wrap; /* Permet aux boutons de se répartir sur plusieurs lignes si nécessaire */
  justify-content: flex-start; /* Aligne les boutons à gauche */
}

/* Styles spécifiques pour les petits écrans (mobiles) */
@media screen and (max-width: 768px) {
  .btn-overlay {
    gap: 10px; /* Réduit encore l'espace entre les boutons sur mobile */
 /*   flex-direction: column; /* Affiche les boutons en colonne si nécessaire */
    align-items: center; /* Centre les boutons sur les petits écrans */
  }
}

.btn-delete, .btn-edit {
  background: rgba(0,0,0,0.7);
  border: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
}

/* Bouton supprimer — rouge pulsant */
.btn-delete {
  box-shadow: 0 0 5px #ff4444;
  animation: pulseRed 2s infinite;
}

/* Bouton modifier — turquoise pulsant */
.btn-edit {
  box-shadow: 0 0 5px #29c9ff;
  animation: pulseBlue 2s infinite;
}

/* Hover — renforce la lueur et change fond */
.btn-delete:hover {
  background: #ff4444;
  box-shadow: 0 0 10px #ff4444, 0 0 20px #ff8888;
}

.btn-edit:hover {
  background: #29c9ff;
  color: #121212;
  box-shadow: 0 0 10px #29c9ff, 0 0 20px #7efcff;
}

/* Animation pulsante — rouge */
@keyframes pulseRed {
  0%, 100% {
    box-shadow: 0 0 5px #ff4444;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 15px #ff4444, 0 0 25px #ff8888;
    transform: scale(1.05);
  }
}

/* Animation pulsante — turquoise */
@keyframes pulseBlue {
  0%, 100% {
    box-shadow: 0 0 5px #29c9ff;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 15px #29c9ff, 0 0 25px #7efcff;
    transform: scale(1.05);
  }
}


/* === MODALE UPLOAD === */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #121212;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  border: 2px solid #29c9ff;
  box-shadow: 0 0 20px #29c9ff;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.close-modal:hover {
  color: #29c9ff;
}

/* === MODALE IMAGE === */
#modal-image {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

#modal-image img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  border: 2px solid #29c9ff;
  box-shadow: 0 0 20px #29c9ff;
}

  /* Appliquer un redimensionnement par défaut plus petit */
  .og-image {
    width: 800px; /* Limiter la largeur à 600px */
    height: auto; /* Garder l'aspect ratio intact */
  }

/* Conteneur du spoiler */
.spoiler {
  display: none; /* ou fermé par défaut */
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  max-height: 0; /* caché par défaut */
}

/* Quand ouvert */
.spoiler.open {
  max-height: 2000px; /* valeur grande pour contenir ton bloc */
  display: block;
}

/* Bouton rouge */
.toggle-btn {
  position: fixed;        /* pour rester visible même en scroll */
  bottom: 20px;           /* ajuste cette valeur pour descendre ou remonter */
  left: 8px;              /* distance depuis la gauche */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #29c9ff00;    /* rouge vif */
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 0 10px #ff4444;
}

/* Optionnel : effet respirant doux */
.toggle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #29c9ff00;
}

a.calendar-link {
  text-decoration: none;
  font-size: 1.6em;
  color: #fff;
  display: inline-block;
  padding: 8px;
  border-radius: 50%;

  /* Glow blanc permanent respirant */
  text-shadow: 
    0 0 6px rgba(255,255,255,0.7),
    0 0 12px rgba(255,255,255,0.5),
    0 0 18px rgba(255,255,255,0.35),
    0 0 24px rgba(255,255,255,0.25);

  /* Transitions plus douces */
  transition: transform 0.6s ease, color 0.6s ease, text-shadow 0.8s ease;

  /* Respiration au repos */
  animation: glowWhite 3.2s infinite alternate ease-in-out;
}

a.calendar-link:hover {
  color: #00eaff;
  transform: scale(1.15) rotate(-3deg);

  text-shadow: 
    0 0 12px #00eaff,
    0 0 24px #00eaff,
    0 0 36px #00eaff,
    0 0 16px rgba(255,255,255,0.3);

  /* Pulse turquoise doux et lent */
  animation: pulse 2.5s infinite ease-in-out;
}

@keyframes glowWhite {
  0% {
    text-shadow: 
      0 0 4px rgba(255,255,255,0.5),
      0 0 8px rgba(255,255,255,0.35),
      0 0 12px rgba(255,255,255,0.25),
      0 0 16px rgba(255,255,255,0.15);
  }
  100% {
    text-shadow: 
      0 0 10px rgba(255,255,255,0.8),
      0 0 20px rgba(255,255,255,0.6),
      0 0 30px rgba(255,255,255,0.45),
      0 0 40px rgba(255,255,255,0.35);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1.12) rotate(-3deg);
    text-shadow: 
      0 0 8px #00eaff,
      0 0 16px #00eaff,
      0 0 24px #00eaff,
      0 0 8px rgba(255,255,255,0.2);
  }
  50% {
    transform: scale(1.18) rotate(3deg);
    text-shadow: 
      0 0 16px #00eaff,
      0 0 32px #00eaff,
      0 0 48px #00eaff,
      0 0 12px rgba(255,255,255,0.3);
  }
}

a.calendar-link2 {
  text-decoration: none;
  font-size: 1.0em;
  color: #fff;
  display: inline-block;
  padding: 8px;
  border-radius: 50%;

  /* Glow blanc permanent respirant */
  text-shadow: 
    0 0 6px rgba(255,255,255,0.7),
    0 0 12px rgba(255,255,255,0.5),
    0 0 18px rgba(255,255,255,0.35),
    0 0 24px rgba(255,255,255,0.25);

  /* Transitions plus douces */
  transition: transform 0.6s ease, color 0.6s ease, text-shadow 0.8s ease;

  /* Respiration au repos */
  animation: glowWhite 3.2s infinite alternate ease-in-out;
}

a.calendar-link2:hover {
  color: #00eaff;
  transform: scale(1.15) rotate(-3deg);

  text-shadow: 
    0 0 12px #00eaff,
    0 0 24px #00eaff,
    0 0 36px #00eaff,
    0 0 16px rgba(255,255,255,0.3);

  /* Pulse turquoise doux et lent */
  animation: pulse 2.5s infinite ease-in-out;
}

@keyframes glowWhite {
  0% {
    text-shadow: 
      0 0 4px rgba(255,255,255,0.5),
      0 0 8px rgba(255,255,255,0.35),
      0 0 12px rgba(255,255,255,0.25),
      0 0 16px rgba(255,255,255,0.15);
  }
  100% {
    text-shadow: 
      0 0 10px rgba(255,255,255,0.8),
      0 0 20px rgba(255,255,255,0.6),
      0 0 30px rgba(255,255,255,0.45),
      0 0 40px rgba(255,255,255,0.35);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1.12) rotate(-3deg);
    text-shadow: 
      0 0 8px #00eaff,
      0 0 16px #00eaff,
      0 0 24px #00eaff,
      0 0 8px rgba(255,255,255,0.2);
  }
  50% {
    transform: scale(1.18) rotate(3deg);
    text-shadow: 
      0 0 16px #00eaff,
      0 0 32px #00eaff,
      0 0 48px #00eaff,
      0 0 12px rgba(255,255,255,0.3);
  }
}

/* Modal général */
#upload-modal {
    display: none !important;
}

.modal {
  display: none;
  position: fixed;
  padding-top: 30px; /* Augmenter l'espace en haut de la modal */
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  display: flex;                 /* ✅ pour centrer modal */
  justify-content: center;       /* horizontal centering */
  align-items: center;           /* vertical centering */
  overflow-y: auto;
  padding: 20px;
}

/* Contenu modal avec style néon */
.modal-content.neon-box {
  background: #111;
  padding: 20px;
  border: 2px solid #00eaff;
  border-radius: 15px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 0 20px #00eaff, inset 0 0 12px rgba(0,234,255,0.2);
  color: #fff;
  position: relative;
  animation: fadeIn 0.4s ease;
  transition: box-shadow 0.3s ease;
}

/* Zone de texte modal */
.modal-content textarea {
  width: 100%;
  height: 200px;
  border: 2px solid #77a8b7;  /* Bordure initiale */
  border-radius: 12px;
  padding: 14px;
  background: #111;
  color: #fff;
  box-shadow: inset 0 0 10px #00eaff;  /* Ombre intérieure lumineuse initiale */
  resize: vertical;
  font-family: inherit;
  font-size: 1em;
  transition: border 0.6s ease-out, box-shadow 0.6s ease-out, transform 0.6s ease-out;  /* Transition plus lente et fluide */
}

/* Lorsque le champ est en focus, on ajoute un glow lumineux avec effet fluide */
.modal-content textarea:focus {
  outline: none;  /* Retirer le contour par défaut */
  border-color: #00eaff;  /* Bordure lumineuse */
  box-shadow: 0 0 25px #00eaff, 0 0 50px #8a2be2;  /* Glow lumineux plus large */
  transform: scale(1.03);  /* Légère augmentation de la taille pour un effet plus marqué */
}

.modal-content img {
    transition: transform 0.25s ease;
    cursor: zoom-in;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform-origin: center center; /* Centrer le zoom */
}

.zoomed-in {
    cursor: zoom-out;
    transform: scale(2); /* Ajuste le niveau de zoom */
}

/* Bouton fermer */
.close {
  color: #00eaff;
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
  transition: 0.3s;
}

/* Masquer la croix lors du zoom */
.modal img.zoomed-in + .close {
  display: none;
}

.close:hover {
  color: #fff;
  text-shadow: 0 0 10px #00eaff, 0 0 20px rgba(0,234,255,0.5);
}

#notes-tabs {
  display: flex;
  margin-bottom: 10px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  background: linear-gradient(145deg, #1a1a1a, #333); /* Dégradé pour plus de profondeur */
  color: #fff;
  border: 1px solid #444;
  cursor: pointer;
  border-radius: 8px; /* Coins arrondis pour un look plus moderne */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre subtile pour donner du relief */
  transition: all 0.3s ease; /* Transition fluide pour tous les effets */
}

.tab-btn:hover {
  background: linear-gradient(145deg, #333, #1a1a1a); /* Inversion du dégradé pour effet hover */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); /* Ombre renforcée au survol */
}

.tab-btn.active {
  background: linear-gradient(145deg, #00c6ff, #0072ff); /* Dégradé vibrant pour l'élément actif */
  color: #fff;
  border: 1px solid #0056b3; /* Bordure bleue foncée pour l'élément actif */
  box-shadow: 0 4px 12px rgba(0, 114, 255, 0.6); /* Ombre portée avec la couleur active */
  border-bottom: none;
  transform: scale(1.05); /* Effet de zoom subtil lors de l'activation */
}

.notes-slot textarea {
  width: 100%;
  height: 150px;
  background: #000;
  color: #0ff;
  border: 1px solid #0ff;
  padding: 5px;
  font-family: monospace;
}

/* 🔹 Lien néon stylisé */
.neon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* espace avec une icône éventuelle */
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.4); /* fond discret */
    color: #e0e0ff;
    font-size: 0.95em;
    text-decoration: none;
    letter-spacing: 0.5px;
    border: 0px solid #8a2be2;
    box-shadow: 0 0 6px #8a2be200, inset 0 0 6px rgba(138, 43, 226, 0.2);
    text-shadow: 0 0 6px #8a2be2;
    transition: all 0.3s ease;
}

/* 🔹 Effet au survol */
.neon-link:hover {
    background: rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 12px cyan, 0 0 24px #8a2be2;
    transform: translateY(-2px) scale(1.08);
    color: cyan;
    text-shadow: 0 0 10px cyan, 0 0 20px cyan;
}


/* 🔹 Icône bloc-notes (Font Awesome) */
.icon-notes {
    font-size: 1.4em;
    margin-right: 8px;
    color: #8a2be2;
    filter: drop-shadow(0 0 4px rgba(138, 43, 226, 0.8));
    transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.neon-link:hover .icon-notes {
    color: cyan; /* Change de couleur au survol */
    transform: scale(1.3) rotate(-5deg); /* Effet dynamique */
    filter: drop-shadow(0 0 8px cyan) drop-shadow(0 0 15px cyan);
}

/* Conteneur de l'en-tête et du formulaire */
.header-container {
    display: flex;
    justify-content: space-between; /* Sépare les éléments */
    align-items: center; /* Aligne verticalement */
    gap: 20px; /* Espacement entre les éléments */
    margin-bottom: 20px; /* Un peu d'espace en bas */
}

/* Style pour l'élément <h3> */
.header-container h3 {
    font-size: 24px;
    margin: 0; /* Retirer la marge par défaut */
}

/* Le formulaire de l'auto-switch doit être compact */
.auto-switch {
    display: flex;
    align-items: center;
    gap: 10px; /* Un peu d'espace entre le switch et le message */
    font-size: 14px; /* Plus petit pour ne pas encombrer */
}

/* Message de statut */
.status-message {
    font-size: 14px;
    color: #4CAF50;
    display: none; /* Ne prend pas de place par défaut */
    transition: opacity 0.3s ease; /* Transition douce */
    opacity: 0; /* Commence avec opacité à 0 */
}

/* Visibilité du message */
.status-message.visible {
    display: block;  /* Affiche le message */
    opacity: 1; /* Rendre le message visible */
}

/* Apparence du slider et du switch */
.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease; /* Transition fluide pour tous les changements */
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-container .slider {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 50px;
    transition: all 0.4s ease; /* Transition fluide pour le slider */
}

.switch-container .slider:before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: white;
    transition: all 0.4s ease; /* Transition fluide pour la "bulle" */
    left: 3px;
    bottom: 3px;
}

.switch-container input:checked + .slider {
    background-color: #4CAF50;
}

.switch-container input:checked + .slider:before {
    transform: translateX(20px); /* Déplacement du bouton glissant */
}

/* Message d'erreur ou de succès */
.status-message.success {
    color: #4CAF50; /* Vert pour succès */
}

.status-message.error {
    color: #f44336; /* Rouge pour erreur */
}

.planning-visibility {
  background: rgba(255,255,255,0.00);
  padding: 5px;
  border: 0px solid rgba(255,255,255,0.0);
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 0 10px rgba(0,234,255,0.0);
}
.planning-visibility h3 {
  margin-bottom: 10px;
}
.planning-visibility select,
.planning-visibility button {
  margin-top: 10px;
  display: block;
}
#visibility-status {
    transition: opacity 0.5s ease;
    opacity: 1; /* visible par défaut */
}

.visibility-options {
  border: 1px solid #555;
  padding: 12px;
  margin-top: 15px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}

.visibility-options p {
  margin: 0 0 10px 0;
  font-weight: bold;
  color: #ccc;
}

.visibility-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}

.visibility-options i {
  color: #888;
  cursor: help;
}
