/* =========================================================
   THÈME NOËL (à retirer après les fêtes : supprimer le lien
   vers noel.css et le bloc « Décor de Noël » dans index.html)
   ========================================================= */

body {
    background:
        linear-gradient(rgba(6, 18, 48, 0.62), rgba(10, 8, 30, 0.72)),
        url('assets/imgs/ElieCouleur-32.jpg') center / cover no-repeat;
    background-color: #06122f;
}

/* Neige qui tombe */
#neige {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

/* Guirlande lumineuse en haut de page */
.guirlande {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 46px;
    z-index: 40;
    pointer-events: none;
    display: flex;
    justify-content: space-around;
    overflow: hidden;
}
.guirlande::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -5%;
    right: -5%;
    height: 50px;
    border-bottom: 2px solid #1b2a1b;
    border-radius: 0 0 50% 50% / 0 0 30px 30px;
}
.guirlande i {
    position: relative;
    width: 12px;
    height: 18px;
    margin-top: 14px;
    border-radius: 50% 50% 45% 45%;
    background: var(--c);
    box-shadow: 0 0 10px 2px var(--c);
    animation: clignote 1.2s ease-in-out infinite alternate;
}
.guirlande i:nth-child(odd) { margin-top: 18px; }
.guirlande i:nth-child(4n+1) { --c: #ff3b3b; }
.guirlande i:nth-child(4n+2) { --c: #ffd700; animation-delay: .3s; }
.guirlande i:nth-child(4n+3) { --c: #2ecc71; animation-delay: .6s; }
.guirlande i:nth-child(4n)   { --c: #3fa9ff; animation-delay: .9s; }
.guirlande i::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: #2a3a2a;
    border-radius: 2px;
}
@keyframes clignote {
    from { opacity: 1; }
    to   { opacity: .35; box-shadow: none; }
}

/* Logo : petit scintillement doré */
.pseudo {
    filter: drop-shadow(0 0 10px rgba(255, 215, 120, .55));
}

/* Photo de profil avec bonnet de Noël et contour rouge/vert */
.avatar-noel {
    position: relative;
    margin-bottom: 2rem;
}
.avatar-noel .logo-img {
    margin-bottom: 0;
    border: 4px solid #fff;
    animation: glowNoel 3s linear infinite;
}
.bonnet {
    position: absolute;
    width: 96px;
    top: -44px;
    right: -34px;
    transform: rotate(22deg);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4));
}
@keyframes glowNoel {
    0%, 100% { box-shadow: 0 0 12px #ff2d2d, 0 0 26px rgba(255, 45, 45, .6); }
    50%      { box-shadow: 0 0 12px #22c55e, 0 0 26px rgba(34, 197, 94, .6); }
}

/* Boutons enneigés */
.btn {
    position: relative;
    border-radius: 12px;
    padding-top: 22px;
    border: 2px solid rgba(255, 255, 255, .35);
}
.btn::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -2px;
    right: -2px;
    height: 20px;
    z-index: 2;
    border-radius: 12px 12px 0 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 0h200v7c-6 0-8 4-13 4s-6-5-12-5-7 9-13 9-6-7-12-7-8 4-14 4-7-6-13-6-6 11-12 11-7-8-13-8-8 5-14 5-6-4-12-4-7 7-13 7-6-6-12-6-8 4-14 4-6-5-12-5-7 8-13 8S6 7 0 7z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .15));
}
.btn-text, .btn img { position: relative; z-index: 1; }

/* Bouton Calendrier de l'Avent */
.btn--avent {
    background:
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, .10) 0 14px, transparent 14px 28px),
        linear-gradient(135deg, #e3262f, #9b1118);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, .25),
        0 0 12px #ff3b3b,
        0 0 24px #b3121b;
    animation: brille-avent 2.4s ease-in-out infinite;
}
.btn--avent .emoji {
    font-size: 1.7rem;
    line-height: 1;
    position: relative;
    z-index: 1;
}
.btn--avent:hover { animation: none; }
@keyframes brille-avent {
    0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,.25), 0 0 12px #ff3b3b, 0 0 24px #b3121b; }
    50%      { box-shadow: 0 4px 15px rgba(0,0,0,.25), 0 0 18px #ffd700, 0 0 34px #ff3b3b; }
}

/* Bouton verrouillé avant le 1er décembre */
.btn--avent.verrouille {
    cursor: not-allowed;
    animation: none;
    filter: saturate(.55) brightness(.85);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .25);
}
.btn--avent.verrouille:hover { transform: none; }

/* Love Room en vert sapin pour l'ambiance */
.btn--loveroom {
    background: linear-gradient(135deg, #1f9d55, #0f5e32);
    box-shadow: 0 4px 15px rgba(0,0,0,.2), 0 0 10px #22c55e, 0 0 20px #0f5e32;
}
.btn--loveroom:hover {
    background: linear-gradient(135deg, #0f5e32, #1f9d55);
    box-shadow: 0 6px 20px rgba(0,0,0,.3), 0 0 15px #22c55e, 0 0 25px #0f5e32;
}

/* Congère de neige en bas de page */
.footer {
    position: relative;
    z-index: 1;
}
.congere {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44px;
    z-index: 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath fill='%23eef5ff' d='M0 40C120 10 220 30 330 22s200-20 320 4 230 20 330 0 160-10 220 6V70H0z'/%3E%3Cpath fill='%23d7e6fb' d='M0 55c150-18 300-6 450-10s300-18 450-6 220 6 300-2v33H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
    opacity: .9;
}
.footer { padding-bottom: 46px; }
.footer .copyright, .footer .link-btn { text-shadow: 0 1px 3px rgba(0,0,0,.8); }

@media (prefers-reduced-motion: reduce) {
    .guirlande i, .btn--avent, .avatar-noel .logo-img { animation: none; }
    #neige { display: none; }
}


/* =========================================================
   ACCUEIL À LA TAILLE EXACTE DE L'ÉCRAN (pas de scroll)
   Les tailles suivent la hauteur de l'écran (vh).
   ========================================================= */
html, body { height: 100%; overflow: hidden; }
body {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}
.container {
    min-height: 0;
    padding: clamp(40px, 6vh, 64px) 16px clamp(6px, 1.5vh, 20px);
}
.pseudo {
    width: min(clamp(200px, 30vw, 460px), 34vh);
    margin-bottom: clamp(6px, 1.4vh, 16px);
}
.avatar-noel { margin-bottom: clamp(12px, 3vh, 32px); }
.avatar-noel .logo-img {
    width: clamp(78px, 15vh, 150px);
    height: clamp(78px, 15vh, 150px);
}
.bonnet {
    width: clamp(56px, 9.6vh, 96px);
    top: clamp(-44px, -4.4vh, -26px);
    right: clamp(-34px, -3.4vh, -20px);
}
.button-container { gap: clamp(8px, 1.6vh, 20px); }
.btn {
    padding-top: clamp(16px, 2.4vh, 26px);
    padding-bottom: clamp(8px, 1.5vh, 20px);
}
.btn::before { height: clamp(13px, 1.9vh, 20px); }
.footer { padding-bottom: clamp(30px, 5vh, 46px); }
.social-icons { margin-bottom: clamp(2px, 1vh, 10px); }
.copyright { margin: 0; }
.link-btn { margin-top: 2px; }

/* Pendant un live TikTok (un bouton de plus) : tout se resserre un peu */
body:has(#live-banner:not([hidden])) .pseudo { width: min(clamp(180px, 26vw, 420px), 27vh); }
body:has(#live-banner:not([hidden])) .avatar-noel { margin-bottom: clamp(10px, 2vh, 26px); }
body:has(#live-banner:not([hidden])) .avatar-noel .logo-img { width: clamp(64px, 12vh, 140px); height: clamp(64px, 12vh, 140px); }
body:has(#live-banner:not([hidden])) .button-container { gap: clamp(6px, 1.2vh, 16px); }
body:has(#live-banner:not([hidden])) .btn { padding-top: clamp(14px, 2vh, 24px); padding-bottom: clamp(6px, 1.1vh, 16px); }
body:has(#live-banner:not([hidden])) .container { padding-top: clamp(36px, 5vh, 56px); }

/* Téléphone à l'horizontale ou écran minuscule : on autorise le scroll pour ne rien couper */
@media (max-height: 520px) {
    html, body { height: auto; overflow: auto; }
    body { height: auto; min-height: 100vh; }
}
