/* style-spoil.css */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #F8F3E9;
    color: #424242;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Navigation (Retour accueil) --- */
.page-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.nav-link.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    vertical-align: middle;
}

.nav-link.nav-icon img {
    width: 50px;
    height: 50px;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.nav-link.nav-icon:hover img {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* --- Corner Decorations --- */
.corner {
    position: fixed;
    width: 20vw;
    max-width: 280px;
    height: auto;
    z-index: -1;
}

.top-left {
    top: 0;
    left: 0;
}

.top-right {
    top: 0;
    right: 0;
}

.bottom-left {
    bottom: 0;
    left: 0;
}

.bottom-right {
    bottom: 0;
    right: 0;
}

@media (max-width: 768px) {
    .corner {
        width: 25vw;
        max-width: 120px;
    }

    .spoil-container {
        padding: 30px 15px;
    }
}

/* --- Main Container --- */
.spoil-container {
    max-width: 900px;
    width: 100%;
    background: #fcf9f5;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

/* --- Spoiler Cover --- */
.spoil-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(252, 249, 245, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 1s ease, visibility 1s ease;
}

.spoil-cover.hidden {
    opacity: 0;
    visibility: hidden;
}

.spoil-cover h2 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #d32f2f;
    margin-bottom: 20px;
    padding: 0 20px;
}

.spoil-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
    color: white;
    background-color: #d32f2f;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}

.spoil-btn:hover {
    transform: scale(1.05);
    background-color: #b71c1c;
}

/* --- Revealed Content --- */
.revealed-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.5s;
    /* Wait for cover to fade */
}

.revealed-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.revealed-content h1 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #e91e63;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(233, 30, 99, 0.2);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.1);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
    }

    60% {
        transform: scale(1);
    }
}

.revealed-content p {
    font-size: 1.2rem;
    color: #5a4e49;
    margin-bottom: 30px;
}

/* --- Wall of Fame --- */
.wall-section {
    max-width: 1000px;
    width: 100%;
    margin-top: 20px;
}

.wall-header {
    text-align: center;
    margin-bottom: 30px;
}

.wall-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #5a4e49;
    margin-bottom: 10px;
}

.wall-header p {
    font-size: 1.1rem;
    color: #796c66;
}

.padlet-wrapper {
    width: 100%;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.padlet-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Confetti (Optional visually) --- */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}