* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #0a1428 0%, #1a2849 50%, #2d4263 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animation des flocons de neige */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: white;
    font-size: 1.5em;
    opacity: 0.8;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0s;
    font-size: 1.2em;
}

.snowflake:nth-child(2) {
    left: 20%;
    animation-duration: 12s;
    animation-delay: 2s;
    font-size: 1.8em;
}

.snowflake:nth-child(3) {
    left: 30%;
    animation-duration: 8s;
    animation-delay: 4s;
    font-size: 1.4em;
}

.snowflake:nth-child(4) {
    left: 40%;
    animation-duration: 14s;
    animation-delay: 1s;
    font-size: 1.6em;
}

.snowflake:nth-child(5) {
    left: 50%;
    animation-duration: 11s;
    animation-delay: 3s;
    font-size: 1.3em;
}

.snowflake:nth-child(6) {
    left: 60%;
    animation-duration: 9s;
    animation-delay: 5s;
    font-size: 1.7em;
}

.snowflake:nth-child(7) {
    left: 70%;
    animation-duration: 13s;
    animation-delay: 2s;
    font-size: 1.5em;
}

.snowflake:nth-child(8) {
    left: 80%;
    animation-duration: 10s;
    animation-delay: 4s;
    font-size: 1.4em;
}

.snowflake:nth-child(9) {
    left: 90%;
    animation-duration: 12s;
    animation-delay: 1s;
    font-size: 1.6em;
}

.snowflake:nth-child(10) {
    left: 15%;
    animation-duration: 11s;
    animation-delay: 6s;
    font-size: 1.8em;
}

.snowflake:nth-child(11) {
    left: 35%;
    animation-duration: 9s;
    animation-delay: 3s;
    font-size: 1.2em;
}

.snowflake:nth-child(12) {
    left: 75%;
    animation-duration: 13s;
    animation-delay: 5s;
    font-size: 1.5em;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

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

.title {
    font-size: 3.5em;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                 0 0 30px rgba(255, 215, 0, 0.6),
                 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 2px;
}

.title-icon {
    display: inline-block;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

.subtitle {
    font-size: 1.3em;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-style: italic;
}

/* Calendrier */
.calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Cases du calendrier */
.calendar-day {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #c41e3a, #8b1a2e);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid #ffd700;
    animation: fadeIn 0.5s ease-out backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.calendar-day:nth-child(1) { animation-delay: 0.1s; }
.calendar-day:nth-child(2) { animation-delay: 0.15s; }
.calendar-day:nth-child(3) { animation-delay: 0.2s; }
.calendar-day:nth-child(4) { animation-delay: 0.25s; }
.calendar-day:nth-child(5) { animation-delay: 0.3s; }
.calendar-day:nth-child(6) { animation-delay: 0.35s; }
.calendar-day:nth-child(7) { animation-delay: 0.4s; }
.calendar-day:nth-child(8) { animation-delay: 0.45s; }
.calendar-day:nth-child(9) { animation-delay: 0.5s; }
.calendar-day:nth-child(10) { animation-delay: 0.55s; }
.calendar-day:nth-child(11) { animation-delay: 0.6s; }
.calendar-day:nth-child(12) { animation-delay: 0.65s; }
.calendar-day:nth-child(13) { animation-delay: 0.7s; }
.calendar-day:nth-child(14) { animation-delay: 0.75s; }
.calendar-day:nth-child(15) { animation-delay: 0.8s; }
.calendar-day:nth-child(16) { animation-delay: 0.85s; }
.calendar-day:nth-child(17) { animation-delay: 0.9s; }
.calendar-day:nth-child(18) { animation-delay: 0.95s; }
.calendar-day:nth-child(19) { animation-delay: 1s; }
.calendar-day:nth-child(20) { animation-delay: 1.05s; }
.calendar-day:nth-child(21) { animation-delay: 1.1s; }
.calendar-day:nth-child(22) { animation-delay: 1.15s; }
.calendar-day:nth-child(23) { animation-delay: 1.2s; }
.calendar-day:nth-child(24) { animation-delay: 1.25s; }

.calendar-day:hover:not(.locked):not(.opened) {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    border-color: #fff;
}

.calendar-day.locked {
    background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #666;
}

.calendar-day.locked:hover {
    transform: none;
}

.calendar-day.opened {
    background: linear-gradient(145deg, #2d8a3e, #1f6129);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 5px 25px rgba(255, 215, 0, 0.6);
    }
}

.day-number {
    font-size: 3em;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
}

.day-icon {
    font-size: 2em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.lock-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(145deg, #fff, #f0f0f0);
    margin: 10% auto;
    padding: 0;
    border: 5px solid #ffd700;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.5s ease-out;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #c41e3a, #8b1a2e);
    padding: 30px;
    text-align: center;
    position: relative;
}

.modal-header h2 {
    color: #fff;
    font-size: 2.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.modal-body {
    padding: 40px;
    text-align: center;
}

.modal-body p {
    font-size: 1.3em;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.modal-footer {
    padding: 20px;
    text-align: center;
    background: rgba(255, 215, 0, 0.1);
}

.gift-icon {
    font-size: 3em;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.close {
    color: #fff;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.close:hover {
    color: #ffd700;
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .calendar {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
        padding: 15px;
    }

    .day-number {
        font-size: 2em;
    }

    .day-icon {
        font-size: 1.5em;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .modal-header h2 {
        font-size: 2em;
    }

    .modal-body p {
        font-size: 1.1em;
    }
}
