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

body {
    font-family: 'Arial Black', sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

/* --- LOGO FIXE --- */
.header {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 100;
}
.logo { width: 180px; height: auto; }

/* --- ÉCRAN DE CONNEXION --- */
.main-container {
    width: 100%;
    height: 100vh;
    background-image: url('assets/bg/bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.instruction-text {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 3px;
    line-height: 1.8;
    text-transform: uppercase;
}

#login-form {
    position: absolute;
    bottom: 60px;
}

#password-input {
    width: 320px;
    padding: 15px;
    text-align: center;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    outline: none;
}

/* --- CONTENEUR DE SCROLL --- */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar { display: none; }

.page-section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.section-bg1 { background-image: url('assets/bg/bg.png'); background-size: cover; background-position: center; }
.section-bg2 { background-image: url('assets/bg/bg2.png'); background-size: cover; background-position: center; }

/* --- GLASSMORPHISM --- */
.glass-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px; /* Style plus carré/moderne */
    padding: 40px;
    max-width: 900px;
    text-align: center;
}

/* --- TIMER STYLE --- */
.welcome-text { font-size: 0.9rem; margin-bottom: 40px; line-height: 1.6; max-width: 600px; }
.timer-container { display: flex; gap: 20px; justify-content: center; }
.timer-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    min-width: 100px;
}
.timer-item span { display: block; font-size: 2.5rem; }
.timer-item label { font-size: 0.7rem; opacity: 0.7; }

/* --- NOTE PAD --- */
.note-label, .surprise-label { margin-bottom: 20px; letter-spacing: 2px; background: white; color: black; padding: 5px 15px; font-size: 0.8rem; }
.note-container { width: 80%; height: 50vh; padding: 0; overflow: hidden; }
#note-pad {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 30px;
    font-family: inherit;
    font-size: 1.1rem;
    resize: none;
    outline: none;
}

/* --- GRID GIFTS --- */
.gift-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr); 
    gap: 40px;
}
.gift-item { width: 60px; height: 60px; opacity: 0.6; transition: 0.3s; cursor: pointer; }
.gift-item:hover { opacity: 1; transform: scale(1.1); }

/* --- MODALE D'ERREUR --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-box {
    width: 400px;
    animation: shake 0.4s ease-in-out;
}

.error-message {
    color: #ff4d4d;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

#close-modal {
    background: white;
    color: black;
    border: none;
    padding: 10px 20px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

#close-modal:hover { background: #ccc; }


/* --- AJOUTS CSS --- */

.gift-item.opened {
    opacity: 0.15 !important;
    filter: grayscale(1);
    pointer-events: none; /* Empêche de cliquer à nouveau */
    cursor: default;
}

/* Animation de vibration pour le clic */
.shake-animation {
    animation: shake 0.4s ease-in-out;
}

#gift-modal-message {
    font-size: 1rem;
    margin-bottom: 20px;
}

#close-gift-modal {
    background: white;
    color: black;
    border: none;
    padding: 10px 20px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
}

/* Animation de secousse */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* --- UTILS --- */
.hidden { display: none !important; }

/* --- 2K OPTIMIZATION --- */
@media (min-width: 2000px) {
    .logo { width: 300px; }
    .timer-item span { font-size: 4rem; }
    .welcome-text { font-size: 1.4rem; max-width: 800px; }
    .gift-grid { gap: 80px; }
    .gift-item { width: 100px; height: 100px; }
}