/* --- style.css --- */

:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --deep-gold: #f6d365;
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: "Lato", sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* --- NEIGE --- */
.snow,
.snow:before,
.snow:after {
    position: fixed;
    top: -650px;
    left: 0;
    bottom: 0;
    right: 0;
    background-image:
        radial-gradient(4px 4px at 100px 50px, #fff, transparent),
        radial-gradient(6px 6px at 200px 150px, #fff, transparent),
        radial-gradient(3px 3px at 300px 250px, #fff, transparent);
    background-size: 650px 650px;
    animation: snow 10s linear infinite;
    content: "";
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}
@keyframes snow {
    to {
        transform: translateY(650px);
    }
}

/* --- HEADER --- */
header {
    text-align: center;
    margin-bottom: 30px;
    z-index: 2;
    width: 100%;
}

h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin: 0;
    background: linear-gradient(to right, #f6d365 0%, #fda085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- GRILLE --- */
.calendar-grid {
    display: grid;
    gap: 15px;
    max-width: 1100px;
    width: 100%;
    z-index: 2;
    padding-bottom: 60px;
    perspective: 1000px;
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 600px) {
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}
@media (min-width: 1024px) {
    .calendar-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 25px;
    }
}

/* --- PORTES (DOORS) --- */
.door {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .door {
        aspect-ratio: auto;
        height: 160px;
    }
    .door:hover {
        transform: translateY(-10px) scale(1.05) rotateX(5deg);
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        z-index: 10;
    }
}

.day-number {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 2.5vw, 3rem);
}
.icon-status {
    margin-top: 10px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    transition: 0.3s;
}

.door.locked {
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.7;
    cursor: not-allowed;
}
.door.locked .day-number {
    opacity: 0.3;
}
.door.locked:hover {
    transform: none;
    box-shadow: none;
}

.door.opened {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.7)
    );
    border: 2px solid var(--deep-gold);
}
.door.opened .day-number {
    background: linear-gradient(to right, #ff9a9e, #d63384);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.door.opened .icon-status {
    color: #27ae60;
    transform: scale(1.2);
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-content {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.3s ease;
    border: 4px solid var(--deep-gold);
}

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

.modal-body h2 {
    font-family: "Playfair Display", serif;
    color: #d63384;
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.modal-body p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}
.modal-body img {
    width: 100%;
    border-radius: 10px;
    margin-top: 20px;
    max-height: 450px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 20px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    cursor: pointer;
    color: #aaa;
    transition: 0.2s;
}
.close-btn:hover {
    color: #d63384;
    transform: rotate(90deg);
}
