/* style.css */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.nav-item {
    transition: all 0.2s ease;
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #5E9DFF;
}

.nav-item:hover {
    color: #5E9DFF;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1A202C 0%, #171923 100%);
}

.logo-text {
    background: linear-gradient(90deg, #5E9DFF 0%, #4FD1C5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Responsive additions */
@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .feature-card {
        padding: 1rem !important;
    }

    .feature-icon {
        padding: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .feature-card h3 {
        font-size: 1rem !important;
    }

    .feature-card p {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 400px) {
    .features-grid {
        gap: 0.5rem !important;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        max-width: 800px;
        margin: 0 auto;
    }
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1A202C 0%, #171923 100%);
}

.logo-text {
    background: linear-gradient(90deg, #5E9DFF 0%, #4FD1C5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.selected-date {
    background-color: #FBBF24 !important;
    color: black !important;
}


.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fond de la case du jour actuel - Violet clair transparent */
.fc-today {
    background-color: rgba(168, 85, 247, 0.15) !important;
    /* violet-500 à 15% d'opacité */

}

/* En-tête du jour actuel (dans la vue mois) */
/* Style principal pour la date du jour */
.fc-today {
    background-color: rgba(204, 157, 248, 0.1) !important;
    /* Fond violet très léger */
    border-left: 3px solid rgba(168, 85, 247, 0.8) !important;
    /* Trait violet à gauche */
}

/* Style pour l'en-tête du jour (vue mois) */
.fc-day-header.fc-today {
    border-left: 3px solid rgba(168, 85, 247, 0.8) !important;
    background-color: rgba(168, 85, 247, 0.1) !important;
    color: white !important;
}

/* Texte de la date */
.fc-day-top.fc-today {
    color: #8B5CF6 !important;
    /* Violet clair */
    font-weight: bold;
}

/* Conteneur principal */
.palanquee-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #1b263b;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    min-height: 180px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    margin: 15px auto;
    flex-wrap: wrap;
    position: relative;
    /* Permet un centrage absolu du bouton */
}

/* Colonne gauche */
.palanquee-left {
    width: 50%;
    text-align: left;
}

/* Colonne droite */
.palanquee-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 50%;
}

/* Case à cocher sans marges et padding supplémentaires */
.palanquee-right .paliers-checkbox {
    margin: 0;
    /* Retirer toute marge */
    padding: 0;
    /* Retirer tout padding */
    width: 15px;
    /* Définir la taille de la case à cocher (tu peux ajuster si nécessaire) */
    height: 15px;
    /* Définir la hauteur de la case à cocher */
}

/* Labels */
.palanquee-right label {
    display: block;
    font-size: 14px;
    color: white;
    margin-top: 5px;
}

/* Champs de saisie */
.palanquee-right input {
    width: 80%;
    padding: 5px;
    margin-top: 3px;
    border-radius: 5px;
    border: none;
    font-size: 14px;
    background-color: white;
    color: black;
}

/* ========================= */
/* PALANQUÉES */
/* ========================= */

.palanquees-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

.palanquee-card {
    background-color: #1b263b;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    min-height: 140px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    margin: 15px auto;
}

.palanquee-card:hover {
    background: #4ac2b4;
}

.palanquee-nom {
    color: #64dfdf;
    font-size: 20px;
    font-weight: bold;
}

.plongeurs-list {
    list-style: none;
    padding: 0;
}

.plongeur-item {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 5px;
    display: inline-block;
}

/* Conteneur du bouton pour le centrer */
.btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    /* 🔹 Centre le bouton */
    position: absolute;
    bottom: 20px;
    /* 🔹 Ajuste la position en bas */
}

/* Bouton Enregistrer */
.btn-enregistrer {
    padding: 10px 20px;
    background-color: #28a745;
    /* ✅ Vert */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

/* Bouton Enregistrer */
.btn-enregistrer-consignes {
    padding: 10px 20px;
    background-color: #28a745;
    /* ✅ Vert */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

.mise-a-leau-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: gray !important;
}

.mise-a-leau-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mise-a-leau-btn.bg-green-500 {
    cursor: default;
    pointer-events: none;
    /* Désactive les interactions */
    opacity: 0.9;
    /* Légère transparence optionnelle */
}

/* Animation de l'icône */
.group:hover .fa-play {
    transform: translateX(3px);
}

/* Conteneur des bulles */
.bubble-container {
    position: relative;
    width: 100%;
    height: 50vh;
    /* Ajuste la hauteur en fonction de l'écran */
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    /* Rendre la couleur plus transparente */
    border-radius: 50%;
    /* Assure que la bulle est parfaitement ronde */
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    /* Ombre douce pour l'effet de bulle */
    opacity: 0.8;
    /* Réduction de l'opacité pour rendre les bulles moins visibles */
    filter: blur(2px);
    /* Effet de flou plus léger */
    animation: rise 5s linear infinite;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.btn-enregistrer-consignes:disabled,
.btn-enregistrer:disabled,
.btn-enregistrer-consignes[disabled],
.btn-enregistrer[disabled] {
    opacity: 0.7;
    filter: grayscale(50%) brightness(0.7);
    cursor: not-allowed;
}

.draggable-item {
    -webkit-user-select: none; /* Désactive la sélection sur iOS/Safari */
    user-select: none;         /* Désactive la sélection sur les autres navigateurs */
    touch-action: manipulation; /* Optimise pour les interactions tactiles */
}

/* Animation pour la modale */
#loginModal {
    transition: opacity 0.3s ease;
  }
  #loginModal:not(.hidden) {
    display: flex;
  }

  /* Dans votre fichier CSS */
.fa-spinner {
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    100% { transform: rotate(360deg); }
  }
  .hidden {
    display: none;
  }

  /* Animation au survol */
.fa-user-circle {
    transition: transform 0.3s ease;
}
a:hover .fa-user-circle {
    transform: scale(1.1);
}


.fa-spinner {
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.admin-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.admin-button:hover {
    background-color: #45a049;
}

/* Classes de rôle */
.role-active {
    @apply bg-gradient-to-r from-green-500 to-green-600 hover:from-green-600 hover:to-green-700 text-white cursor-pointer;
}

.role-inactive {
    @apply bg-gray-100 text-gray-400 cursor-not-allowed;
    @apply border border-gray-200 border-dashed; /* Bordure en pointillés */
    @apply opacity-80;
    pointer-events: none;
    position: relative;
}

.role-inactive::before {
    content: "🔒";
    @apply absolute right-2 top-1/2 transform -translate-y-1/2;
    @apply text-gray-400 text-sm;
}

/* Classes de visibilité */
.visible {
    display: block;
}

.invisible {
    display: none;
}

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }
    
    .bg-gradient-dark {
        background: #1A202C; /* Couleur unie sur mobile pour meilleures performances */
    }
    
    main {
        width: 100%;
        padding: 0;
    }
}

input, select, button {
    transition: all 0.2s ease;
}

@media (hover: hover) {
    button:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 640px) {
    .bg-gradient-dark {
        background: #1A202C;
    }
    
    #signupForm {
        gap: 0.75rem;
    }
    
    input, select {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 320px) {
    .bubble-container .absolute {
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }
    .bubble-container .text-xs {
        font-size: 0.65rem;
    }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
  }
  
  .blinking-text {
    animation: blink 1.5s infinite;
  }

  @keyframes fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }
  
  .animate-fade-in {
    animation: fade-in 0.2s ease-out forwards;
  }
  
  /* Style du toast */
.toast {
    transition: opacity 0.3s ease;
    opacity: 0;
 }
 
 .toast.hidden {
    opacity: 0;
 }
 
 .toast.visible {
    opacity: 1;
 }
 
 /* Style pour le spinner */
 .fa-spinner {
    font-size: 1.5rem;
 }
 
 #flip-countdown .flip-unit {
    text-align: center;
  }
  
  .flip-card {
    font-size: 3rem;
    font-weight: bold;
    background: #1e1e1e;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.1);
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
  }
  
  .flip-card::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    background: #555;
  }
  
  .label {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: #f0a500;
    letter-spacing: 1px;
  }
  
  .flip-unit {
    text-align: center;
  }

  .label {
    font-size: 0.75rem;
    color: #ccc;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
  }

  .flip-card {
    font-family: monospace;
    font-size: 2.5rem;
    background: #111;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    min-width: 60px;
    perspective: 1000px;
    display: inline-block;
    transition: transform 0.5s;
  }

  .flip-animate {
    animation: flip 0.5s ease-in-out;
  }

  @keyframes flip {
    0% {
      transform: rotateX(0deg);
    }
    50% {
      transform: rotateX(-90deg);
    }
    100% {
      transform: rotateX(0deg);
    }
  }