/* Christmas decoration of L'As du Débarras, in the colours of the site (orange, white, blue: no red nor green).
   Loaded by views/partials/head.php during the season only; the elements come from assets/js/christmas.js. */

:root {
    --xmas-orange: #F59532;
    --xmas-blue: #014d75;
    --xmas-sky: #6ec1f0;
    --xmas-snow: #ffffff;
}

/* GARLAND under the contact bar ************/

.asdd-garland {
    position: absolute;
    left: 0;
    right: 0;
    height: 46px;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}
.asdd-garland svg {
    display: block;
    width: 100%;
    height: 100%;
}
.asdd-garland .wire {
    fill: none;
    stroke: var(--xmas-blue);
    stroke-width: 1.6;
}
.asdd-garland .cap {
    fill: var(--xmas-blue);
}
.asdd-garland .bulb {
    animation: asdd-twinkle 2.8s ease-in-out infinite;
}
.asdd-garland .bulb.orange { fill: var(--xmas-orange); filter: drop-shadow(0 0 4px rgba(245, 149, 50, .85)); }
.asdd-garland .bulb.sky { fill: var(--xmas-sky); filter: drop-shadow(0 0 4px rgba(110, 193, 240, .9)); }
.asdd-garland .bulb.white { fill: #fff; stroke: #cfe3f0; stroke-width: .8; filter: drop-shadow(0 0 4px rgba(150, 200, 235, .9)); }

@keyframes asdd-twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

/* SNOW on the logo (sofa and caps) **********/

.header-1 .logo a {
    position: relative;
    display: inline-block;
}
.asdd-logo-snow {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.asdd-logo-snow path {
    fill: var(--xmas-snow);
    stroke: #a9d0ea;
    stroke-width: .9;
    stroke-linejoin: round;
}

/* SNOWFALL in a few sections ***************/

.asdd-snow-host {
    position: relative;
}
.asdd-snow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* SPARKLES around the illustration of the hero */

.asdd-sparkle {
    position: absolute;
    width: 22px;
    height: 22px;
    pointer-events: none;
    z-index: 2;
    animation: asdd-sparkle 3.2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px currentColor);
}
.asdd-sparkle path {
    fill: currentColor;
}
@media (max-width: 991px) {
    .asdd-sparkle {
        display: none;
    }
}
@keyframes asdd-sparkle {
    0%, 100% { transform: scale(.65) rotate(0deg); opacity: .55; }
    50% { transform: scale(1) rotate(45deg); opacity: 1; }
}

/* SNOW on the main buttons *****************/

.asdd-snowcap-host {
    position: relative;
    overflow: visible !important;
}
.asdd-snowcap {
    position: absolute;
    left: -3px;
    right: -3px;
    margin: 0 !important;   /* style.css gives every span of a button an 8 px right margin */
    top: -8px;
    height: 17px;
    pointer-events: none;
    z-index: 2;
    /* Rounded ends that fall over the corners of the button: the snow covers its whole width. */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 17' preserveAspectRatio='none'%3E%3Cpath d='M0.6 17 C0 11 1 7 5 6 C8 2 14 2 18 5 C21 1 28 1 31 5 C35 3 40 3 43 6 C47 2 54 1 58 5 C62 2 68 2 71 6 C75 3 81 2 85 5 C89 1 96 2 99 6 C103 3 109 2 113 5 C118 6 120 11 119.4 17 C118 13 116 11 112 11 C100 12 90 10 78 11 C64 12 52 10 40 11 C28 12 18 10 8 11 C4 11 2 13 0.6 17 Z' fill='%23fff' stroke='%23c9e2f2' stroke-width='.8'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    filter: drop-shadow(0 1px 1px rgba(1, 77, 117, .25));
}

/* WISHES in the footer *********************/

.asdd-wishes {
    margin: 0 0 .6rem;
    font-family: "Rubik", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff !important;
    letter-spacing: .02em;
}
.asdd-flake {
    width: 1.1em;
    height: 1.1em;
    margin: 0 .55rem;
    vertical-align: -.15em;
    fill: none;
    stroke: var(--xmas-orange);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
    .asdd-garland .bulb,
    .asdd-sparkle {
        animation: none;
    }
}
