.calendrier-container {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.calendrier-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 15px 25px, #ffffff, transparent),
        radial-gradient(2px 2px at 89px 67px, #ffd700, transparent),
        radial-gradient(1px 1px at 156px 43px, #ffff88, transparent),
        radial-gradient(2px 2px at 234px 89px, #ffffff, transparent),
        radial-gradient(1px 1px at 298px 12px, #ffd700, transparent),
        radial-gradient(1px 1px at 45px 156px, #ffffff, transparent),
        radial-gradient(2px 2px at 123px 134px, #ffff88, transparent),
        radial-gradient(1px 1px at 267px 178px, #ffffff, transparent),
        radial-gradient(2px 2px at 334px 145px, #ffd700, transparent),
        radial-gradient(1px 1px at 67px 234px, #ffff88, transparent),
        radial-gradient(2px 2px at 178px 267px, #ffffff, transparent),
        radial-gradient(1px 1px at 289px 223px, #ffd700, transparent),
        radial-gradient(2px 2px at 356px 289px, #ffffff, transparent),
        radial-gradient(1px 1px at 12px 334px, #ffff88, transparent),
        radial-gradient(2px 2px at 134px 356px, #ffd700, transparent);
    background-repeat: repeat;
    background-size: 400px 400px;
    opacity: 0.6;
    animation: twinkle 4s ease-in-out infinite alternate;
}

.calendrier-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 78px 56px, #ffffff, transparent),
        radial-gradient(2px 2px at 198px 134px, #ffd700, transparent),
        radial-gradient(1px 1px at 267px 78px, #ffff88, transparent),
        radial-gradient(1px 1px at 345px 156px, #ffffff, transparent),
        radial-gradient(2px 2px at 23px 189px, #ffd700, transparent),
        radial-gradient(1px 1px at 156px 234px, #ffffff, transparent),
        radial-gradient(2px 2px at 278px 267px, #ffff88, transparent),
        radial-gradient(1px 1px at 334px 234px, #ffd700, transparent),
        radial-gradient(2px 2px at 45px 334px, #ffffff, transparent),
        radial-gradient(1px 1px at 189px 345px, #ffff88, transparent);
    background-repeat: repeat;
    background-size: 500px 450px;
    opacity: 0.4;
    animation: twinkle-slow 6s ease-in-out infinite alternate;
}

@keyframes twinkle-slow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

@keyframes twinkle {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

@keyframes trail-realistic {
    0% {
        width: 0;
        opacity: 0;
    }
    5% {
        width: 80px;
        opacity: 1;
    }
    95% {
        width: 120px;
        opacity: 1;
    }
    100% {
        width: 0;
        opacity: 0;
    }
}

@keyframes trail-fade {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

.lune {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5dc 0%, #e6e6fa 100%);
    box-shadow: 
        inset -10px -10px 0 rgba(0,0,0,0.1),
        0 0 30px rgba(245,245,220,0.5);
    animation: lune-glow 6s ease-in-out infinite alternate;
    z-index: 1;
}

.lune::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    box-shadow: 
        25px 10px 0 -2px rgba(0,0,0,0.05),
        10px 25px 0 -5px rgba(0,0,0,0.08);
}

@keyframes lune-glow {
    0% { box-shadow: inset -10px -10px 0 rgba(0,0,0,0.1), 0 0 30px rgba(245,245,220,0.3); }
    100% { box-shadow: inset -10px -10px 0 rgba(0,0,0,0.1), 0 0 50px rgba(245,245,220,0.7); }
}

@keyframes twinkle {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

.calendrier-header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 4rem;
    color: white;
    position: relative;
    z-index: 2;
}

.calendrier-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calendrier-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.calendrier-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.calendrier-case {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 2px solid rgba(255,215,0,0.3);
    border-radius: 4px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.calendrier-case::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #87ceeb, #b0e0e6, #add8e6, #87ceeb);
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calendrier-case:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #87ceeb;
    box-shadow: 0 10px 25px rgba(135,206,235,0.2);
}

.case-numero {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.case-date {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 0.3rem;
}

.case-surprise {
    font-size: 0.8rem;
    color: #ffed4e;
    font-style: italic;
}

.calendrier-case.special {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,215,0,0.1));
    border-color: #ffd700;
}

.calendrier-case.special .case-numero {
    color: #fff;
    text-shadow: 0 0 10px #ffd700;
}

.calendrier-case.reveillon {
    background: linear-gradient(135deg, rgba(255,0,0,0.3), rgba(255,215,0,0.2));
    border: 3px solid #ffd700;
    box-shadow: 0 0 8px #ffd700, 0 0 0 0 #ffd700;
    animation: noel-status-pulse 1.2s infinite;
}

@keyframes noel-status-pulse {
    0% {
        box-shadow: 0 0 8px #ffd700, 0 0 0 0 #ffd700;
    }
    70% {
        box-shadow: 0 0 8px #ffd700, 0 0 0 12px rgba(46,204,64,0);
    }
    100% {
        box-shadow: 0 0 8px #ffd700, 0 0 0 0 #ffd700;
    }
}

.calendrier-case.reveillon .case-numero {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 15px #ffd700;
}

.calendrier-case.opened {
    background: linear-gradient(135deg, rgba(0,255,0,0.2), rgba(0,255,0,0.1));
    border-color: #4CAF50;
    opacity: 0.8;
}

.calendrier-case.opened .case-numero {
    color: #4CAF50;
}

.calendrier-case.future {
    background: linear-gradient(135deg, rgba(100,100,100,0.2), rgba(100,100,100,0.1));
    border-color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.calendrier-case.future:hover {
    transform: none;
    border-color: #666;
    box-shadow: none;
}

.calendrier-case.future::before {
    display: none;
}

.calendrier-case.future .case-numero {
    color: #888;
}

.calendrier-case.locked {
    background: linear-gradient(135deg, rgba(100,100,100,0.2), rgba(100,100,100,0.1));
    border-color: #666;
    cursor: wait;
    opacity: 0.6;
}

.calendrier-case.locked:hover {
    transform: none;
    border-color: #666;
    box-shadow: none;
}

.calendrier-case.locked::before {
    display: none;
}

.calendrier-case.locked .case-numero {
    color: #888;
}

@media (max-width: 1200px) {
    .calendrier-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .calendrier-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .calendrier-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .calendrier-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 1rem;
    }
    
    .calendrier-case {
        padding: 1.5rem 0.5rem;
        min-height: 100px;
    }
    
    .case-numero {
        font-size: 2rem;
    }
    
    .calendrier-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .calendrier-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calendrier-case {
        padding: 1rem;
        min-height: 80px;
    }
    
    .case-numero {
        font-size: 1.8rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendrier-case {
    animation: fadeInUp 0.6s ease-out;
}

.calendrier-case:nth-child(1) { animation-delay: 0.1s; }
.calendrier-case:nth-child(2) { animation-delay: 0.2s; }
.calendrier-case:nth-child(3) { animation-delay: 0.3s; }
.calendrier-case:nth-child(4) { animation-delay: 0.4s; }
.calendrier-case:nth-child(5) { animation-delay: 0.5s; }
.calendrier-case:nth-child(6) { animation-delay: 0.6s; }
.calendrier-case:nth-child(7) { animation-delay: 0.7s; }
.calendrier-case:nth-child(8) { animation-delay: 0.8s; }
.calendrier-case:nth-child(9) { animation-delay: 0.9s; }
.calendrier-case:nth-child(10) { animation-delay: 1.0s; }
.calendrier-case:nth-child(11) { animation-delay: 1.1s; }
.calendrier-case:nth-child(12) { animation-delay: 1.2s; }
.calendrier-case:nth-child(13) { animation-delay: 1.3s; }
.calendrier-case:nth-child(14) { animation-delay: 1.4s; }
.calendrier-case:nth-child(15) { animation-delay: 1.5s; }
.calendrier-case:nth-child(16) { animation-delay: 1.6s; }
.calendrier-case:nth-child(17) { animation-delay: 1.7s; }
.calendrier-case:nth-child(18) { animation-delay: 1.8s; }
.calendrier-case:nth-child(19) { animation-delay: 1.9s; }
.calendrier-case:nth-child(20) { animation-delay: 2.0s; }
.calendrier-case:nth-child(21) { animation-delay: 2.1s; }
.calendrier-case:nth-child(22) { animation-delay: 2.2s; }
.calendrier-case:nth-child(23) { animation-delay: 2.3s; }
.calendrier-case:nth-child(24) { animation-delay: 2.4s; }

.lune {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5dc 0%, #e6e6fa 100%);
    box-shadow: 
        inset -10px -10px 0 rgba(0,0,0,0.1),
        0 0 30px rgba(245,245,220,0.5);
    animation: lune-glow 6s ease-in-out infinite alternate;
    z-index: 1;
}

.lune::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    box-shadow: 
        25px 10px 0 -2px rgba(0,0,0,0.05),
        10px 25px 0 -5px rgba(0,0,0,0.08);
}

@keyframes lune-glow {
    0% { 
        box-shadow: inset -10px -10px 0 rgba(0,0,0,0.1), 0 0 30px rgba(245,245,220,0.3);
        transform: scale(1);
    }
    100% { 
        box-shadow: inset -10px -10px 0 rgba(0,0,0,0.1), 0 0 50px rgba(245,245,220,0.7);
        transform: scale(1.05);
    }
}

.nuage {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 40px;
    animation: nuage-float 15s ease-in-out infinite;
    z-index: 1;
}

.nuage:nth-child(8) {
    top: 25%;
    left: -100px;
    animation-delay: 0s;
}

.nuage:nth-child(9) {
    top: 70%;
    left: -80px;
    animation-delay: 7s;
    animation-duration: 18s;
}

@keyframes nuage-float {
    0% {
        left: -100px;
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        left: calc(100% + 100px);
        opacity: 0;
    }
}

