@charset "UTF-8";
table.tcalendrier {
    width: 99%;
    height: 80px;
    margin: auto;
    border: 2px solid #fb923c;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
    background-color: #fff7ed;
    table-layout: fixed;
}

td.semainecalendar12 {
    margin: 0;
    padding: 5px;
    text-align: center;
    font: 11px 'Poppins', sans-serif;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nomarge {
    font-size: 12px;
    margin: 0;
    padding: 0;
    width: 7px;
    background-color: #fed7aa;
}

a.jourpasse {
    font-size: 11px;
    margin: 0;
    padding: 5px;
    background-color: #d1d5db;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    color: #6b7280;
    display: block;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

a.jourpasse:hover {
    background-color: #9ca3af;
    transform: scale(1.05);
}

a.jourpasseAvecSortie {
    font-size: 14px;
    margin: 0;
    padding: 5px;
    background-color: #22c55e;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    text-align: center;
    color: #ffffff;
    display: block;
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

a.jourpasseAvecSortie::after {
    content: '★';
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    font-size: 10px;
    color: #facc15;
}

a.jourpasseAvecSortie:hover {
    background-color: #16a34a;
    transform: scale(1.05);
}

a.jourpasseAvecSortieLA {
    font-size: 15px;
    margin: 0;
    padding: 5px;
    background-color: #fdba74;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    text-align: center;
    border: 2px solid #f43f5e;
    color: #1f2937;
    display: block;
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

a.jourpasseAvecSortieLA::after {
    content: '★';
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    font-size: 10px;
    color: #f43f5e;
}

a.jourpasseAvecSortieLA:hover {
    background-color: #fb923c;
    transform: scale(1.05);
}

.jourfinsemaine {
    background-color: #fed7aa;
    border: 2px solid #fb923c;
    font: 11px 'Poppins', sans-serif;
    width: 45px;
    height: 40px;
    vertical-align: middle;
    text-align: center;
    border-radius: 8px;
    color: #1f2937;
    transition: border 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.jourfinsemaine::after {
    content: '★';
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    font-size: 10px;
    color: #facc15;
    visibility: hidden;
}

.jourfinsemaine.has-event::after {
    visibility: visible;
}

.jourfinsemaine:hover {
    border: 2px solid #16a34a;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.jourfinsemaineTete {
    background: linear-gradient(135deg, #f97316, #fb923c);
    text-decoration: none;
    font: 12px 'Poppins', sans-serif;
    width: 45px;
    height: 40px;
    vertical-align: middle;
    text-align: center;
    border-radius: 8px;
    border: 2px solid #f43f5e;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.jourfinsemaineTete::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 146, 60, 0.3), transparent);
    transition: left 0.5s ease;
}

.jourfinsemaineTete:hover::after {
    left: 100%;
}

.jourfinsemaine a {
    text-decoration: none;
    cursor: pointer;
    color: #1f2937;
    display: block;
    width: 100%;
    height: 100%;
}

.jourfinsemainePasse {
    background-color: #f59e0b;
    text-decoration: none;
    font: 11px 'Poppins', sans-serif;
    width: 45px;
    height: 40px;
    vertical-align: middle;
    text-align: center;
    border-radius: 8px;
    color: #1f2937;
}

.jourEnCour {
    background-color: #fef3c7;
    border: 3px solid #ea580c;
    text-decoration: none;
    font: 12px 'Poppins', sans-serif;
    width: 45px;
    height: 40px;
    vertical-align: middle;
    text-align: center;
    border-radius: 8px;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite ease-in-out;
}

.jourEnCour::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 146, 60, 0.3), transparent);
    transition: left 0.5s ease;
}

.jourEnCour:hover::after {
    left: 100%;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.jourNormal {
    background-color: #fff7ed;
    text-decoration: none;
    border: 2px solid #fb923c;
    font: 12px 'Poppins', sans-serif;
    width: 45px;
    height: 40px;
    vertical-align: middle;
    text-align: center;
    border-radius: 8px;
    color: #1f2937;
    transition: border 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.jourNormal:hover {
    border: 2px solid #16a34a;
    background-color: #d1fae5;
    transform: scale(1.05);
}

.jourNormal a {
    text-decoration: none;
    cursor: pointer;
    color: #ea580c;
    display: block;
    width: 100%;
    height: 100%;
}

.jourAvecSortie {
    background-color: #16a34a;
    text-decoration: none;
    font: 15px 'Poppins', sans-serif;
    border: 2px solid #1f2937;
    width: 45px;
    height: 40px;
    vertical-align: middle;
    text-align: center;
    border-radius: 8px;
    color: #ffffff;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.jourAvecSortie::before {
    content: '★';
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    font-size: 10px;
    color: #facc15;
}

.jourAvecSortie:hover {
    border: 2px solid #ea580c;
    background-color: #22c55e;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.5);
    animation: bounce 0.4s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.jourAvecSortie::after {
    content: 'Événement';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease;
}

.jourAvecSortie:hover::after {
    opacity: 1;
    top: -40px;
}

td.jourPasseeVide {
    background-color: #e5e7eb;
    text-decoration: none;
    font: 12px 'Poppins', sans-serif;
    border: 0;
    border-radius: 8px;
    width: 45px;
    height: 40px;
    vertical-align: middle;
    text-align: center;
    color: #6b7280;
}

.tete1 {
    margin: 0;
    padding: 5px;
    font: 12px 'Poppins', sans-serif;
    color: #ea580c;
    background: linear-gradient(135deg, #fb923c, #f97316);
    border-radius: 8px;
}

a.l1, a.l2 {
    text-decoration: none;
}

a.l2 {
    background-color: #d1d5db;
    color: #6b7280;
    display: block;
    border-radius: 8px;
}

a.AjourEnCour {
    font: 16px 'Poppins', sans-serif;
    color: #f43f5e;
    text-decoration: none;
    border: 2px solid #1f2937;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
    display: block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

a.AjourEnCour:hover {
    background-color: #1f2937;
    color: #ffffff;
    transform: scale(1.05);
}

/* Mode sombre optionnel */
@media (prefers-color-scheme: dark) {
    table.tcalendrier {
        background-color: #1f2937;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    td.semainecalendar12 {
        background: linear-gradient(135deg, #16a34a, #22c55e);
        color: #ffffff;
    }

    .nomarge {
        background-color: #fb923c;
    }

    a.jourpasse {
        background-color: #4b5563;
        color: #d1d5db;
    }

    a.jourpasse:hover {
        background-color: #6b7280;
    }

    a.jourpasseAvecSortie {
        background-color: #16a34a;
    }

    a.jourpasseAvecSortieLA {
        background-color: #f97316;
        border: 2px solid #f43f5e;
    }

    .jourfinsemaine {
        background-color: #fb923c;
        color: #1f2937;
    }

    .jourfinsemaineTete {
        background: linear-gradient(135deg, #f97316, #ea580c);
    }

    .jourfinsemainePasse {
        background-color: #d97706;
    }

    .jourEnCour {
        background-color: #fef3c7;
        border: 3px solid #f43f5e;
    }

    .jourNormal {
        background-color: #374151;
        color: #d1d5dfb;
        border: 2px solid #fb923c;
    }

    .jourNormal:hover {
        background-color: #4b5563;
    }

    .jourAvecSortie {
        background-color: #16a34a;
    }

    td.jourPasseeVide {
        background-color: #4b5563;
        color: #d1d5db;
    }

    .tete1 {
        background: linear-gradient(135deg, #fb923c, #f97316);
        color: #ffffff;
    }
}