/* ===== NOTIFICATIONS MODERNES ===== */

.icons {
  display: inline;
  float: right;
}

.notification {
  padding-top: 30px;
  position: relative;
  display: inline-block;
}

/* Badge de notification moderne */
.number {
  height: 20px;
  min-width: 20px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  border-radius: 10px;
  color: white;
  text-align: center;
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite;
}

.number:empty {
  display: none;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Bouton de notification */
.notBtn {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.tas {
  font-size: 24px;
  padding: 8px 12px;
  margin-right: 15px;
  margin-left: 15px;
  color: white;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.tas:hover {
  color: #ff6b6b;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

/* Boîte de notifications */
.box {
  width: 420px;
  height: 0px;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  overflow: hidden;
  right: 0;
  top: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  cursor: context-menu;
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.notBtn:hover > .box,
.box.active {
  height: 70vh;
  transform: translateY(5px);
  overflow-y: auto;
}

/* Scrollbar personnalisée */
.box::-webkit-scrollbar {
  width: 8px;
}

.box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.box::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Contenu des notifications */
.display {
  position: relative;
  height: 100%;
}

.cont {
  position: relative;
  width: 100%;
  min-height: 100%;
  background: transparent;
  padding: 20px;
}

.cont:empty {
  display: none;
}

/* Section de notification individuelle */
.sec {
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  transition: all 0.3s ease;
  border-left: 4px solid #1e3a8a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sec:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.sec.new {
  border-left-color: #ff6b6b;
  animation: slideIn 0.5s ease;
}

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

/* Conteneur du profil */
.profCont {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.profile {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1e3a8a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-right: 12px;
}

.profCont h4 {
  color: #2d3748;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  flex: 1;
}

/* Texte des notifications */
.txt {
  color: #2d3748;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
  padding: 0;
  font-weight: 400;
}

.txt.sub {
  color: #718096;
  font-size: 12px;
  font-style: italic;
}

/* Formulaire de réponse */
.sec form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.sec input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  box-sizing: border-box;
  background: white;
  color: #2d3748;
}

.sec input[type="text"]:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.sec button[type="submit"] {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.sec button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

/* État vide */
.cont:empty::after {
  content: "Aucune notification";
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  padding: 40px 20px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .box {
    width: 320px;
    right: -50px;
  }
  
  .tas {
    margin-right: 10px;
    margin-left: 10px;
  }
  
  .number {
    top: 5px;
    right: 5px;
  }
}