/* Vitamine Billing - Styles personnalisés Studio Vitamine */

:root {
    --coral: #E96464;
    --saffron: #FBAE40;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    font-family: 'Montserrat', sans-serif;
}

/* Body et layout principal */
body {
    background: linear-gradient(135deg, var(--coral) 0%, var(--saffron) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Pas d'effet hover sur le glass-card principal pour éviter l'effet désagréable */

.sidebar-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
}

/* Page de connexion */
.login-page {
    background: linear-gradient(135deg, var(--coral) 0%, var(--saffron) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Inputs */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(233, 100, 100, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--coral);
    background: white;
    box-shadow: 0 0 0 3px rgba(233, 100, 100, 0.1);
}

textarea.input-field {
    resize: vertical;
    min-height: 100px;
}

select.input-field {
    cursor: pointer;
}

/* Buttons - Style VitamineDash (tailles réduites) */
.btn-primary {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--coral) 0%, var(--saffron) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 100, 100, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 100, 100, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--coral);
    border: 2px solid var(--coral);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--coral);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary.active {
    background: linear-gradient(135deg, var(--coral) 0%, var(--saffron) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(233, 100, 100, 0.3);
}

.btn-danger {
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 2px solid #ef4444;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 2px solid #16a34a;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #16a34a;
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
}

/* Animations pour les boutons */
button {
    transition: all 0.2s ease;
}

button:hover:not(:disabled) {
    transform: scale(1.05);
}

button:active:not(:disabled) {
    transform: scale(0.95);
}

/* Error Message */
.error-message {
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* Success Message */
.success-message {
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid #16a34a;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

table thead {
    background: linear-gradient(135deg, var(--coral) 0%, var(--saffron) 100%);
    color: white;
}

table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
}

table tbody tr:hover {
    background: rgba(233, 100, 100, 0.05);
}

table tbody td {
    padding: 1rem;
    color: #374151;
    font-size: 0.9rem;
}

table tbody tr:last-child {
    border-bottom: none;
}

/* Sidebar Navigation */
.sidebar-nav a,
aside nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #374151;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.sidebar-nav a:hover,
aside nav a:hover {
    background: rgba(233, 100, 100, 0.1);
    transform: translateX(4px);
}

.sidebar-nav a.active,
aside nav a.active {
    background: linear-gradient(135deg, var(--coral) 0%, var(--saffron) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 100, 100, 0.3);
}

aside nav a i {
    width: 20px;
    text-align: center;
}

/* Formulaires */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(233, 100, 100, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coral);
    background: white;
    box-shadow: 0 0 0 3px rgba(233, 100, 100, 0.1);
}

/* Badges et labels */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.badge-warning {
    background: rgba(251, 174, 64, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(251, 174, 64, 0.4);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.badge-hosting,
.badge-maintenance,
.badge-axeptio {
    background: rgba(233, 100, 100, 0.1);
    color: var(--coral);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Mois blocs (hébergement/maintenance) */
.month-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.month-block h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(233, 100, 100, 0.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-style: italic;
}

/* Modals - Positionné par rapport au body/html, pas au parent */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow-y: auto;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: auto;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--coral);
}

/* Logo */
.logo-header {
    transition: transform 0.3s ease;
}

.logo-header:hover {
    transform: scale(1.05);
}

.logo-login {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    max-height: 80px;
    width: auto;
}

.logo-login:hover {
    transform: scale(1.05);
}

/* Login button loader */
#loginButtonLoader {
    display: inline-block;
}

#loginButtonLoader.hidden {
    display: none;
}

#loginButton:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Boutons dans les tableaux - Style encore plus compact */
table .btn-primary,
table .btn-secondary,
table .btn-danger,
table .btn-success {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

/* Menu service (3 points) */
.service-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 150px;
    overflow: hidden;
}

.service-menu.service-menu-up {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.service-menu.hidden {
    display: none;
}

.service-menu-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: none;
    border: none;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.service-menu-item:hover {
    background: rgba(233, 100, 100, 0.1);
}

.service-menu-item i {
    margin-right: 0.5rem;
    width: 16px;
}

.service-menu-item.text-red-600 {
    color: #dc2626;
}

.service-menu-item.text-red-600:hover {
    background: rgba(220, 38, 38, 0.1);
}

/* Bouton Facturé/À facturer */
.btn-factured {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-factured.btn-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-color: #16a34a;
}

.btn-factured.btn-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-color: #6b7280;
}

.btn-factured:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .glass-card {
        padding: 1rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table thead th,
    table tbody td {
        padding: 0.5rem;
    }
    
    .sidebar-glass {
        width: 100%;
    }
    
    .logo-header,
    .logo-login {
        max-height: 50px !important;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Scrollbar personnalisé */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--coral) 0%, var(--saffron) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus visible pour accessibilité */
*:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

/* Sortable placeholder pour drag and drop */
.sortable-ghost {
    opacity: 0.4;
    background: rgba(233, 100, 100, 0.1);
    border: 2px dashed var(--coral);
}

/* Colonnes draggables */
.column-item {
    user-select: none;
}

.column-item.sortable-ghost {
    opacity: 0.5;
    background: rgba(233, 100, 100, 0.2);
    border-color: var(--coral);
}

.column-item:hover {
    border-color: var(--coral);
}

/* Colonne échéance — écran Facturation */
.factu-echeance-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    line-height: 1.35;
}

.factu-echeance-date {
    display: block;
}

.factu-echeance-meta {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.3;
}

/* Défilement horizontal des grilles type tableau sur petits écrans */
.table-like-scroll-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.table-like-scroll-wrap .table-like {
    min-width: max(100%, 960px);
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Table-like layout (sans balises table) */
.table-like {
    display: grid;
    background: white;
    border-radius: 8px;
    overflow: visible;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Les colonnes sont définies par les classes spécifiques (table-like-5cols, etc.) */
    /* Par défaut, on utilise auto-fit pour les cas non spécifiés */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

/* Table-like avec colonnes flexibles selon le nombre de colonnes */
/* Le conteneur .table-like définit les colonnes, les lignes utilisent display: contents */
.table-like-header {
    display: contents;
}

.table-like-header .table-like-cell {
    background: #f3f4f6;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #374151;
    border-bottom: 2px solid rgba(233, 100, 100, 0.2);
    padding: 1rem;
}

.table-like-row {
    display: contents;
}

.table-like-row .table-like-cell {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
    padding: 1rem;
}

/* Variantes pour différentes pages - Les colonnes sont définies sur .table-like */
.table-like.table-like-5cols {
    grid-template-columns: 2fr 2fr 1.5fr 1.5fr 2fr;
}

.table-like.table-like-7cols {
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr 1.5fr 1.5fr 2fr;
}

.table-like.table-like-4cols {
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
}

.table-like.table-like-2cols {
    grid-template-columns: 3fr 2fr;
}

.table-like.table-like-6cols {
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr;
}

.table-like.table-like-8cols {
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr 2fr;
}

.table-like.table-like-9cols {
    grid-template-columns: 0.5fr 1fr 2fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr 2fr;
}

.table-like.table-like-10cols {
    grid-template-columns: 0.5fr 2fr 1fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr 2fr;
}

.table-like.table-like-11cols {
    grid-template-columns: 0.5fr 2fr 1fr 1fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr 2fr;
}

.table-like.table-like-12cols {
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1.2fr 1.2fr 1.2fr 0.8fr 1fr 1fr 1.5fr 1.5fr;
}

/* Spécifique à Axeptio : Client plus large, Mensuel HT et Actions plus petites */
.table-like.table-like-10cols.table-like-axeptio {
    grid-template-columns: 3fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr 1fr !important;
}

/* S'assurer que les cellules dans les lignes Axeptio s'alignent correctement */
.table-like.table-like-axeptio .table-like-cell {
    min-width: 0; /* Permet au contenu de se rétrécir si nécessaire */
    word-wrap: break-word; /* Permet au texte de se couper si nécessaire */
}

.table-like-row.table-like-total .table-like-cell {
    background: rgba(233, 100, 100, 0.1);
    border-top: 2px solid var(--coral);
    font-weight: 600;
}

/* Tooltip pour les commentaires - DÉSACTIVÉ (conflit avec la version ci-dessous) */

/* Styles pour le tri */
.sortable-header {
    transition: background-color 0.2s ease;
}

.sortable-header:hover {
    background-color: rgba(233, 100, 100, 0.1);
}

.sort-icon {
    display: inline-block;
    margin-left: 0.5rem;
}

.sort-icon i {
    font-size: 0.875rem;
}

.table-like-row:hover {
    background: rgba(233, 100, 100, 0.05);
}

.table-like-row:last-child {
    border-bottom: none;
}

.table-like-cell {
    padding: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #374151;
    position: relative;
    overflow: visible;
}

.table-like-header .table-like-cell {
    padding: 1rem;
}

/* Cards */
.client-card,
.item-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(233, 100, 100, 0.1);
    transition: all 0.3s ease;
}

.client-card:hover,
.item-card:hover {
    border-color: rgba(233, 100, 100, 0.3);
    transform: translateY(-2px);
}

/* Tooltip personnalisé pour affichage immédiat */
/* IMPORTANT: Font Awesome utilise ::before pour afficher les icônes */
/* Donc on utilise ::after pour le tooltip pour éviter les conflits */
[data-tooltip] {
    position: relative;
    cursor: help;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Les icônes avec data-tooltip doivent être visibles */
i[data-tooltip],
.fa[data-tooltip],
[class*="fa-"][data-tooltip] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Le tooltip utilise ::after (Font Awesome utilise ::before pour l'icône) */
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background-color: #1f2937;
    color: white;
    font-size: 0.75rem;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s, visibility 0.1s;
    margin-bottom: 0;
    width: max-content;
    /* Flèche du tooltip */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);  font-family: 'Montserrat', sans-serif;
}

[data-tooltip]:hover::after {
    opacity: 1 !important;
    visibility: visible !important;
    transition-delay: 0s;
}

/* Forcer l'affichage des icônes d'avertissement et d'information */
.fa-exclamation-triangle,
.fa-info-circle {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Styles pour l'autocomplétion des clients */
.client-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.client-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
}

.client-autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

.client-autocomplete-item:last-child {
    border-bottom: none;
}

.client-autocomplete-item:hover,
.client-autocomplete-item.active {
    background-color: #f3f4f6;
}

.client-autocomplete-no-results {
    color: #6b7280;
    font-style: italic;
    cursor: default;
}

.client-autocomplete-no-results:hover {
    background-color: transparent;
}

/* Styles pour les checkboxes de visibilité des colonnes */
.column-visibility-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--coral);
}

.column-item label {
    user-select: none;
}

.column-item:hover .column-visibility-checkbox {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Styles pour les inputs de taille des colonnes */
.column-size-input {
    text-align: center;
}

.column-size-input:focus {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
    border-color: var(--coral);
}

/* Styles pour le mois courant */
.month-section.current-month {
    position: relative;
    padding: 1.5rem;
    background: rgba(233, 100, 100, 0.05);
    border: 2px solid var(--coral);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(233, 100, 100, 0.15);
    animation: highlightMonth 0.5s ease-in-out;
}

@keyframes highlightMonth {
    0% {
        background: rgba(233, 100, 100, 0.2);
        transform: scale(1.02);
    }
    100% {
        background: rgba(233, 100, 100, 0.05);
        transform: scale(1);
    }
}

.current-month-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #E96464 0%, #FBAE40 100%);
    box-shadow: 0 4px 12px rgba(233, 100, 100, 0.5), 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.current-month-badge i {
    margin-right: 0.5rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.month-section.current-month .table-like-scroll-wrap {
    background: rgba(255, 255, 255, 0.95);
}

.month-section.current-month .table-like-scroll-wrap .table-like {
    background: transparent;
}

/* Composant de recherche en temps réel */
.page-search-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-search-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral) 0%, var(--saffron) 100%);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.page-search-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-search-toggle:active {
    transform: scale(0.95);
}

.page-search-toggle:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-search-toggle:focus-visible {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 6px 10px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
}

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

.page-search-input {
    border: none;
    outline: none;
    font-size: 14px;
    padding: 6px 12px;
    width: 250px;
    background: transparent;
    color: #374151;
}

.page-search-input:focus {
    outline: none;
    box-shadow: none;
}

.page-search-input::placeholder {
    color: #9ca3af;
}

.page-search-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    padding: 0;
}

.page-search-nav-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.page-search-nav-btn:active {
    transform: scale(0.95);
}

.page-search-nav-btn:focus {
    outline: none;
}

.page-search-nav-btn:focus-visible {
    outline: none;
}

.page-search-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-search-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    padding: 0;
}

.page-search-close:hover {
    background: #d1d5db;
    color: #374151;
}

.page-search-close:focus {
    outline: none;
}

.page-search-close:focus-visible {
    outline: none;
}

.page-search-count {
    font-size: 12px;
    color: #6b7280;
    padding: 0 8px;
    font-weight: 500;
}

/* Surbrillance des résultats de recherche */
.page-search-highlight {
    background: #fef08a;
    color: #1f2937;
    padding: 2px 0;
    border-radius: 2px;
    font-weight: 500;
}

.page-search-highlight-active {
    background: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.5);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.5);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.3);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .page-search-container {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .page-search-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .page-search-input {
        width: 200px;
        font-size: 13px;
    }
}
