
/**
 * OHVN Tools — Apparence des sapins de Noël
 * Version : 1.0.0
 *
 * RÔLE :
 * Définit l'apparence des deux sapins décoratifs.
 *
 * DÉPENDANCES :
 * - trees.js : crée les sapins, les boules et les lumières.
 *
 * EFFETS :
 * - Silhouette de sapin vert foncé à trois étages.
 * - Boules rouges et dorées.
 * - Étoile dorée au sommet.
 * - Petites lumières blanc chaud scintillantes.
 * - Deux sapins disposés en miroir.
 * - Décoration transparente qui ne bloque aucun clic.
 */

/* Couche générale */
#ohvn-trees-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    overflow: visible;
    z-index:100000;
}

/* Sapins */
.ohvn-tree {
    position: absolute;
    top: 700px;
    width: 150px;
    height: 260px;
    transform: scale(0.78);
    transform-origin: top left;
}

.ohvn-tree-left {
    left: 0;
}

.ohvn-tree-right {
    left: auto;
    right: 0;
    transform: scale(0.78);
    transform-origin: top right;
}
/* Étoile au sommet */
.ohvn-tree-star {
    position: absolute;
    top: 0;
    left: 66px;
    color: #ffd700;
    font-size: 27px;
    line-height: 1;
    text-shadow:
        0 0 5px #fff5b0,
        0 0 12px #ffd700,
        0 0 20px #ffb700;
}

/* Étages du sapin */
.ohvn-tree-branch {
    position: absolute;
    left: 50%;
    height: 85px;
    background: linear-gradient(
        110deg,
        #0b351b,
        #286237 45%,
        #0c3b1e
    );
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    transform: translateX(-50%);
    filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.35));
}

/* Boules décoratives */
.ohvn-tree-ornament {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow:
        inset -2px -2px 3px rgba(0, 0, 0, 0.25),
        0 0 5px rgba(255, 255, 255, 0.3);
}

.ohvn-tree-red {
    background: radial-gradient(
        circle at 30% 25%,
        #ff9999,
        #e00000 60%,
        #790000
    );
}

.ohvn-tree-gold {
    background: radial-gradient(
        circle at 30% 25%,
        #fff4ad,
        #ffc107 60%,
        #a66c00
    );
}

/* Petites lumières */
.ohvn-tree-light {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff4b0;
    box-shadow:
        0 0 5px #fff4b0,
        0 0 10px #ffd700,
        0 0 16px #ffbf00;
    animation: ohvn-tree-twinkle 2.4s ease-in-out infinite;
}

/* Scintillement doux */
@keyframes ohvn-tree-twinkle {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.8);
        filter: brightness(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.35);
        filter: brightness(1.7);
    }
}

/* Adaptation aux petits écrans */
@media (max-width: 700px) {

    .ohvn-tree {
        top: 48vh;
        transform: scale(0.5);
        transform-origin: top left;
    }

    .ohvn-tree-right {
        top: 48vh;
        left: auto;
        right: 0;
        transform: scale(0.5);
        transform-origin: top right;
    }
}