/* ===========================
   ANIMATIONS
   =========================== */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.blink {
    animation: blink 0.8s step-start infinite;
}

/* ===========================
   GENERAL STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* ===========================
   HERO BOX (Page d'accueil)
   =========================== */
#hero-box {
    background: #000;
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

#hero-box h1 {
    font-size: 2em;
    max-width: 80%;
    margin-bottom: 0;
    line-height: 1.4;
}

#hero-box .subtitle {
    font-size: 1.2em;
    color: #aaa;
    margin-top: 1em;
    max-width: 90%;
}

#hero-box .cta-button {
    margin-top: 2em;
    padding: 1em 2em;
    font-size: 1.5em;
    cursor: pointer;
    background: #003366;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#hero-box .cta-button:hover {
    background: #004488;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#hero-box .cta-button:active {
    transform: scale(0.98);
}

/* ===========================
   CONTENT (Dashboard)
   =========================== */
#content {
    display: none;
    position: relative;
    min-height: 100vh;
}

#main {
    width: 100%;
    height: 100%;
    min-height: 800px;
}

#blinkValue {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 96px;
    font-weight: bold;
    color: #f00;
    display: none;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

/* ===========================
   EXPLANATION (Message final)
   =========================== */
#explanation {
    color: #fff;
    font-size: xx-large;
    font-weight: bold;
    text-align: center;
    background: #000;
    min-height: 100vh;
    padding: 50px 20px;
    display: none;
}

#explanation.show {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#explanation img {
    width: 15%;
    height: auto;
    max-width: 200px;
    min-width: 100px;
}

#explanation h2 {
    color: #fff;
    margin-top: 20px;
    font-size: 2em;
}

#explanation .announcement {
    color: #fff;
    font-size: 24px;
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
}

#explanation .announcement .highlight {
    color: #f00;
    font-size: 36px;
    font-weight: bold;
}

#explanation .personal-note {
    color: #aaa;
    font-size: 18px;
    max-width: 750px;
    margin: 30px auto;
    line-height: 1.7;
    font-style: italic;
    border-left: 3px solid #555;
    padding-left: 20px;
    text-align: left;
}

#explanation .personal-note .future {
    color: #00aaff;
    font-weight: bold;
}

#explanation .tradition {
    color: #fff;
    font-size: 20px;
    max-width: 700px;
    margin: 20px auto;
    line-height: 1.6;
}

#explanation .croissants {
    color: gold;
    font-size: 32px;
    font-weight: bold;
    margin-top: 40px;
}

#explanation .thanks {
    color: #888;
    font-size: 16px;
    margin-top: 40px;
    font-style: italic;
}

#explanation .birthday-hint {
    color: #aaa;
    font-size: 14px;
    margin-top: 16px;
    font-style: italic;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablettes et petits écrans */
@media (max-width: 768px) {
    #hero-box h1 {
        font-size: 1.5em;
        max-width: 95%;
    }

    #hero-box .subtitle {
        font-size: 1em;
    }

    #hero-box .cta-button {
        font-size: 1.2em;
        padding: 0.8em 1.5em;
    }

    #main {
        min-height: 600px;
    }

    #blinkValue {
        font-size: 48px;
        bottom: 100px;
    }

    #explanation h2 {
        font-size: 1.5em;
    }

    #explanation .announcement {
        font-size: 18px;
        max-width: 95%;
    }

    #explanation .announcement .highlight {
        font-size: 24px;
    }

    #explanation .personal-note {
        font-size: 16px;
        max-width: 95%;
        padding-left: 15px;
    }

    #explanation .tradition {
        font-size: 16px;
        max-width: 95%;
    }

    #explanation .croissants {
        font-size: 24px;
    }

    #explanation .thanks {
        font-size: 14px;
    }

    #explanation img {
        width: 25%;
        max-width: 150px;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    #hero-box h1 {
        font-size: 1.2em;
    }

    #hero-box .subtitle {
        font-size: 0.9em;
    }

    #hero-box .cta-button {
        font-size: 1em;
        padding: 0.7em 1.2em;
    }

    #main {
        min-height: 400px;
    }

    #blinkValue {
        font-size: 36px;
        bottom: 80px;
    }

    #explanation h2 {
        font-size: 1.2em;
    }

    #explanation .announcement {
        font-size: 16px;
    }

    #explanation .announcement .highlight {
        font-size: 20px;
    }

    #explanation .personal-note {
        font-size: 14px;
    }

    #explanation .tradition {
        font-size: 14px;
    }

    #explanation .croissants {
        font-size: 20px;
    }

    #explanation img {
        width: 30%;
        max-width: 100px;
    }
}

/* Grands écrans */
@media (min-width: 1920px) {
    #hero-box h1 {
        font-size: 2.5em;
    }

    #hero-box .subtitle {
        font-size: 1.4em;
    }

    #hero-box .cta-button {
        font-size: 1.8em;
    }

    #main {
        min-height: 1000px;
    }

    #blinkValue {
        font-size: 120px;
        bottom: 200px;
    }

    #explanation .announcement {
        font-size: 28px;
    }

    #explanation .announcement .highlight {
        font-size: 42px;
    }
}
