.today {
    background: #dbeafe !important;
}


.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    z-index: 80;
}


.tour-tooltip {
    position: absolute;
    max-width: 320px;
    background: radial-gradient(circle at top left, #0f172a, #020617 70%);
    color: #e5e7eb;
    padding: 16px 18px;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 0.875rem;
    line-height: 1.4;
    z-index: 82;
}

.tour-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tour-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #38bdf8;
    font-weight: 600;
}

.tour-step-index {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.3);
    border: 1px solid rgba(45, 212, 191, 0.6);
}

.tour-close-btn {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.tour-close-btn:hover {
    color: #e5e7eb;
}

.tour-tooltip-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.tour-tooltip-text {
    font-size: 0.85rem;
    color: #cbd5f5;
    margin-bottom: 10px;
}

.tour-tooltip-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.tour-btn-primary,
.tour-btn-secondary {
    border-radius: 999px;
    border: none;
    font-size: 0.8rem;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 500;
}

.tour-btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
}

.tour-btn-primary:hover {
    filter: brightness(1.05);
}

.tour-btn-secondary {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.tour-btn-secondary:hover {
    background: rgba(15, 23, 42, 1);
}

/* Petit bandeau "Astuce : teste le didacticiel" */
.tour-tip-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.96);
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px dashed rgba(45, 212, 191, 0.7);
    cursor: pointer;
    font-size: 0.75rem;
    color: #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
}

.tour-tip-banner:hover {
    background: rgba(15, 23, 42, 1);
}

.tour-tip-label {
    font-size: 0.7rem;
    background: #22c55e;
    color: #022c22;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 700;
}

/* ✅ Style de la notification "Fiche mise à jour" */
#save-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #16a34a;
    color: #ecfdf5;
    padding: 10px 16px;
    border-radius: 999px;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 90;
}

#save-message i {
    font-size: 1rem;
}

/* ✅ Boutons Oui / Non / Non renseigné à la place des radios */
.fiche-btn-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fiche-btn {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 4px 10px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: #e5e7eb;
    color: #111827;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.fiche-btn span {
    line-height: 1.2;
}

.fiche-btn-yes {
    background: #dcfce7;
    color: #166534;
}

.fiche-btn-no {
    background: #fee2e2;
    color: #991b1b;
}

.fiche-btn-null {
    background: #e5e7eb;
    color: #374151;
}

.fiche-btn-active {
    border-color: rgba(37, 99, 235, 0.8);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
}


/* Confettis pour la fin du didacticiel */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 95;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    opacity: 0.9;
    animation: confetti-fall 1.8s linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}


.locked {
    background: #fef2f2;
    opacity: 0.95;
    pointer-events: none;
}

.lock-info {
    font-size: 12px;
    color: #b91c1c;
    font-weight: bold;
    margin-top: 4px;
}

.field {
    width: 100%;
    padding: 4px 6px;
    margin-bottom: 4px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    font-size: 0.8rem;
}

.cell-actions {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.cell-btn {
    border-radius: 4px;
    border: none;
    font-size: 0.7rem;
    padding: 3px 6px;
    cursor: pointer;
    background: #e5e7eb;
    color: #111827;
}

.cell-btn:hover {
    background: #d1d5db;
}

/* DIDACTICIEL */
.tour-highlight {
    position: relative;
    z-index: 81 !important;
    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.9),
        0 18px 45px rgba(15, 23, 42, 0.65);
    border-radius: 14px;
}






/* Boutons fiche de vie */
.fiche-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    cursor: pointer;
    transition: 0.2s;
}

.fiche-btn:hover:not([disabled]) {
    background: #e5e7eb;
}

.fiche-btn.active {
    color: white;
    font-weight: bold;
}

.fiche-oui.active {
    background: #22c55e;
}

.fiche-non.active {
    background: #ef4444;
}

.fiche-indispo.active {
    background: #6b7280;
    color: white;
}

/* POPUP RESET JOURNÉE */
#resetModal {
    backdrop-filter: blur(3px);
}

.reset-popup {
    animation: popupfade 0.25s ease-out;
}

@keyframes popupfade {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* === Toast de sauvegarde (même style que fiche-de-vie.php) === */
#save-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #16a34a;
    /* succès par défaut */
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
}



/* visible */
#save-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* variante erreur */
#save-message.error {
    background: #dc2626;
}




/* Surbrillance de l’élément courant */
.tour-highlight {
    position: relative;
    z-index: 81 !important;
    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.9),
        0 18px 45px rgba(15, 23, 42, 0.65);
    border-radius: 14px;
}



  



    /* Boutons fiche de vie – état normal */
.fiche-btn {
    transition: all 0.15s ease;
}

/* État ACTIF */
.fiche-btn-active {
    color: #fff !important;
    border-color: transparent !important;
}

/* OUI actif */
.fiche-btn-yes.fiche-btn-active {
    background-color: #16a34a; /* vert */
}

/* NON actif */
.fiche-btn-no.fiche-btn-active {
    background-color: #dc2626; /* rouge */
}

/* NON RENSEIGNÉ actif */
.fiche-btn-null.fiche-btn-active {
    background-color: #6b7280; /* gris */
}

/* Icônes en blanc quand actif */
.fiche-btn-active i {
    color: #fff !important;
}





