/* vednoel · Christmas look of Seb's mockup (redesign/noel/assets/module-noel.css and the inline styles of its sections
   noel-bandeau, noel-tirage, noel-pied, noel-introuvable), set on the veddistri theme's markup.
   Loaded only while Christmas is visible (preview cookie, or the back-office switch on): without it the theme is
   untouched. Module colours: red #8e1d26, logo gold #f7aa1e, fir green #173a2c. No important flag. */

/* ---------- Header: Santa hat on the left branch of the logo's "V", gold star garland under the header ---------- */
.k-logo { position: relative; }
/* The prod logo is the client's square monogram (500 x 500, since 26/10): the hat sits on the left branch of the
   big "V", whose top edge is at about 26-41 % across and 25 % down. The theme makes the logo box hug the image, so
   left/top/width in % follow the logo size. White brim and pompom on a white logo: a light shadow outlines them. */
.k-logo::before { content: ""; position: absolute; z-index: 2; left: 19%; top: 8%; width: 28%; aspect-ratio: 130 / 100; pointer-events: none;
  background: url("../img/bonnet.svg") no-repeat center / contain; transform: rotate(-12deg);
  filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / .35)); }
.k-entete { position: relative; }
.k-entete::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; pointer-events: none; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='9' viewBox='0 0 64 9'%3E%3Cpath d='M0 1.5c8 5 24 5 32 0s24-5 32 0' fill='none' stroke='%23f7aa1e' stroke-width='1' stroke-opacity='.8'/%3E%3Cpath d='M32 1l1.1 2.4 2.6.3-1.9 1.7.5 2.6-2.3-1.3-2.3 1.3.5-2.6-1.9-1.7 2.6-.3z' fill='%23f7aa1e'/%3E%3Ccircle cx='16' cy='5.2' r='1.3' fill='%238e1d26'/%3E%3Ccircle cx='48' cy='5.2' r='1.3' fill='%238e1d26'/%3E%3C/svg%3E") repeat-x 0 0 / 64px 9px; }

/* ---------- displayBanner: red contest banner, above the top bar as in the mockup.
   The theme prints displayBanner between the top bar and the header: the header column is reordered, only while the
   banner is there. ---------- */
.cyb-blocs--header > .is-layout-constrained:has(> .cyb-hook--displayBanner .noel-bandeau) { display: flex; flex-direction: column; }
.cyb-blocs--header > .is-layout-constrained > .cyb-hook--displayBanner > .noel-bandeau { order: -1; align-self: stretch; max-width: none; margin-inline: 0; }
.noel-bandeau { position: relative; overflow: hidden; background: #8e1d26; color: #fff8ec; font-size: .875rem; line-height: 1.35; }
.noel-bandeau::before { content: ""; position: absolute; inset: -60px 0 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle, rgb(255 255 255 / .8) 0 1.2px, transparent 1.8px), radial-gradient(circle, rgb(247 170 30 / .7) 0 1px, transparent 1.5px);
  background-size: 90px 60px, 140px 70px; background-position: 0 0, 40px 20px; animation: noel-bandeau-neige 14s linear infinite; }
@keyframes noel-bandeau-neige { to { transform: translateY(60px); } }
.noel-bandeau__inner { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 8px 15px; text-align: center; }
.noel-bandeau__texte { margin: 0; }
.noel-bandeau__sapin { flex: none; width: 16px; height: 16px; color: #f7aa1e; }
.noel-bandeau__texte strong { color: #f7aa1e; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8125rem; }
.noel-bandeau a { color: #fff8ec; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.noel-bandeau a:hover, .noel-bandeau a:focus-visible { color: #f7aa1e; }
@media (max-width: 640px) { .noel-bandeau__sapin { display: none; } .noel-bandeau__inner { font-size: .8125rem; } }

/* ---------- Light snow on the slider image (still when the visitor reduces motion) ---------- */
.k-hero--diaporama .k-diapo > .cyb-slider__viewport { position: relative; overflow: hidden; isolation: isolate; }
.k-hero--diaporama .k-diapo > .cyb-slider__viewport::after { content: ""; position: absolute; inset: -340px 0 0; z-index: 2; pointer-events: none;
  background-image: radial-gradient(circle, rgb(255 255 255 / .9) 0 1.8px, transparent 2.4px), radial-gradient(circle, rgb(255 255 255 / .65) 0 1.2px, transparent 1.8px);
  background-size: 120px 110px, 70px 80px; background-position: 0 0, 35px 25px; animation: noel-diapo-neige 16s linear infinite; }
@keyframes noel-diapo-neige { to { transform: translateY(330px); } }

/* ---------- displayHome (1/2): "Our Christmas gift ideas", cream background with snowflakes, star under the title;
   the cards are the theme's ---------- */
.noel-cadeaux.k-section--grille { position: relative; background-color: #fbf3e8; border-top: 3px solid #8e1d26; border-bottom: 3px solid #8e1d26;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23d9c6a5' stroke-width='1' stroke-linecap='round' opacity='.6'%3E%3Cpath d='M40 30v20M30 40h20M33 33l14 14M47 33L33 47'/%3E%3Cpath d='M130 110v14M123 117h14M125 112l10 10M135 112l-10 10'/%3E%3C/g%3E%3C/svg%3E"); }
.noel-cadeaux .k-tete { flex-direction: column; align-items: center; gap: 6px; }
.noel-cadeaux .k-surtitre { margin: 0; color: #8e1d26; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.noel-cadeaux .k-titre-section { padding-bottom: 16px; text-align: center; }
.noel-cadeaux .k-titre-section::after { content: ""; display: block; width: 72px; height: 10px; margin: 10px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='10' viewBox='0 0 72 10'%3E%3Cpath d='M0 5h28M44 5h28' stroke='%23f7aa1e' stroke-width='1.2'/%3E%3Cpath d='M36 .5l1.3 2.9 3.1.3-2.3 2.1.7 3.1-2.8-1.6-2.8 1.6.7-3.1-2.3-2.1 3.1-.3z' fill='%238e1d26'/%3E%3C/svg%3E") no-repeat center / 72px 10px; }
/* Desktop: Santa and his sack by a decorated tree left of the title, two elves on the right, on the snow;
   mobile and tablet: the same scene above the title */
@media (min-width: 1024px) {
  .noel-cadeaux.k-section--grille { padding-top: calc(var(--k-section) + 96px); }
  .noel-cadeaux .k-tete { position: relative; }
  .noel-cadeaux .k-tete::before, .noel-cadeaux .k-tete::after { content: ""; position: absolute; bottom: -14px; width: clamp(270px, 24vw, 330px); aspect-ratio: 330 / 226;
    pointer-events: none; background: no-repeat center bottom / contain; }
  .noel-cadeaux .k-tete::before { left: -6px; background-image: url("../img/scene-pere-noel.svg"); }
  .noel-cadeaux .k-tete::after { right: -6px; background-image: url("../img/scene-lutins.svg"); }
}
@media (max-width: 1023px) {
  .noel-cadeaux .k-tete::before { content: ""; display: block; width: min(100%, 440px); aspect-ratio: 400 / 166; margin: 0 auto 4px;
    background: url("../img/scene-mobile.svg") no-repeat center bottom / contain; }
}

/* ---------- displayHome (2/2): the site's Christmas prize draw ---------- */
.noel-tirage { position: relative; overflow: hidden; background: #8e1d26; color: #fff8ec; padding: clamp(40px, 6vw, 72px) 16px; padding-bottom: clamp(112px, 12vw, 150px); isolation: isolate; }
.noel-tirage__sol { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: clamp(96px, 12vw, 150px); pointer-events: none;
  background: url("../img/tirage-gauche.svg") no-repeat left bottom / auto 100%, url("../img/tirage-droite.svg") no-repeat right bottom / auto 100%,
    url("../img/neige-sol.svg") no-repeat center bottom / 100% 22%; }
.noel-tirage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(circle at 12% 30%, rgb(247 170 30 / .35) 0 1.5px, transparent 2px), radial-gradient(circle at 78% 70%, rgb(255 248 236 / .4) 0 1.2px, transparent 1.8px), radial-gradient(circle at 45% 85%, rgb(247 170 30 / .3) 0 1px, transparent 1.6px);
  background-size: 140px 120px, 96px 110px, 170px 150px; }
.noel-tirage__grille { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 980px; margin: 0 auto; }
.noel-tirage__boule { width: clamp(120px, 18vw, 190px); height: auto; display: block; }
.noel-tirage__surtitre { margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f7aa1e; }
.noel-tirage h2 { margin: 0 0 12px; font-family: var(--k-police-titres); font-weight: 600; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; color: #fff8ec; }
.noel-tirage p { margin: 0 0 22px; max-width: 46ch; line-height: 1.6; color: #f6e7d6; }
.noel-tirage .noel-tirage__surtitre { margin: 0 0 8px; color: #f7aa1e; }
.noel-tirage .k-bouton { padding: 12px 24px; background: #f7aa1e; color: #1f1a17; border-color: #f7aa1e; }
.noel-tirage .k-bouton:hover, .noel-tirage .k-bouton:focus-visible { background: #fff8ec; border-color: #fff8ec; color: #1f1a17; }
@media (max-width: 640px) {
  .noel-tirage__grille { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .noel-tirage p { margin-left: auto; margin-right: auto; }
}

/* ---------- displayFooterBefore: "Happy holidays" night band that opens the footer.
   The theme prints the hook in the first column of the footer grid: the band is laid over the full width of the top
   of the footer, and the footer makes room for it (fixed band height). ---------- */
.k-pied:has(.noel-pied) { --noel-pied-h: 268px; position: relative; padding-top: calc(var(--noel-pied-h) + 48px * var(--k-espace, 1)); }
.k-pied .noel-pied { position: absolute; top: 0; left: 0; right: 0; height: var(--noel-pied-h, auto); box-sizing: border-box; }
.noel-pied { background: #173a2c; color: #fff8ec; text-align: center; padding: 96px 16px 72px; overflow: hidden; isolation: isolate; }
.noel-pied__collines { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: 56px; display: block; color: var(--k-fond); }
.noel-pied__ciel { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle, rgb(255 248 236 / .9) 0 1px, transparent 1.6px), radial-gradient(circle, rgb(247 170 30 / .8) 0 1px, transparent 1.6px);
  background-size: 130px 90px, 210px 120px; background-position: 20px 70px, 90px 110px; }
.noel-pied__lune { position: absolute; z-index: -1; top: 64px; left: calc(50% + 410px); width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffdf5 0 52%, #f2e4c6 53% 100%); box-shadow: 0 0 0 12px rgb(255 248 236 / .05), 0 0 48px 14px rgb(255 248 236 / .14); }
.noel-pied img.noel-pied__traineau { position: absolute; z-index: -1; top: 80px; left: calc(50% + 160px); width: 250px; height: auto; transform-origin: 70% 60%;
  animation: noel-pied-traineau 5s ease-in-out infinite alternate; }
@keyframes noel-pied-traineau { from { transform: translate(0, 0) rotate(-1.5deg); } to { transform: translate(-12px, -7px) rotate(1deg); } }
.noel-pied img.noel-pied__gauche, .noel-pied img.noel-pied__droite { position: absolute; z-index: -1; bottom: 0; width: auto; height: clamp(104px, 12vw, 150px); pointer-events: none; }
.noel-pied img.noel-pied__gauche { left: 0; }
.noel-pied img.noel-pied__droite { right: 0; }
.noel-pied__etoiles { display: block; margin: 0 auto 12px; width: 132px; height: 18px; }
.k-pied .noel-pied__titre, .noel-pied__titre { margin: 0; font-family: var(--k-police-titres); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; color: #fff8ec; }
.k-pied .noel-pied__texte, .noel-pied__texte { margin: 6px 0 0; font-size: .9rem; letter-spacing: .04em; color: #e9dcc7; }
@media (max-width: 767px) {
  .k-pied:has(.noel-pied) { --noel-pied-h: 352px; }
  .noel-pied { padding-top: 140px; padding-bottom: 124px; }
  .noel-pied__lune { top: 62px; left: auto; right: 26px; width: 52px; height: 52px; }
  .noel-pied img.noel-pied__traineau { top: 66px; left: auto; right: 54px; width: 170px; }
}

/* ---------- displayNotFound: the snow globe takes the place of the big "404", at the top of the page ---------- */
.k-introuvable:has(.noel-404) .k-introuvable__code { display: none; }
.k-introuvable .noel-404-visuel { order: -1; }
.noel-404 { display: flex; justify-content: center; align-items: flex-end; margin: 8px auto 4px; }
.noel-404 svg { width: min(300px, 70vw); height: auto; display: block; overflow: visible; }
.noel-404 img.noel-404__lutin, .noel-404 img.noel-404__sapin { flex: none; width: auto; display: block; margin-bottom: 22px; }
.noel-404 img.noel-404__lutin { height: 150px; margin-right: -6px; }
.noel-404 img.noel-404__sapin { height: 176px; margin-left: -4px; }
.noel-404__flocon { animation: noel-404-chute 7s linear infinite; }
.noel-404__flocon:nth-child(2n) { animation-duration: 9s; animation-delay: -3s; }
.noel-404__flocon:nth-child(3n) { animation-duration: 11s; animation-delay: -6s; }
@keyframes noel-404-chute { from { transform: translateY(-40px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { transform: translateY(150px); opacity: 0; } }
@media (max-width: 767px) {
  .noel-404 svg { width: min(190px, 52vw); }
  .noel-404 img.noel-404__lutin { height: 92px; margin-bottom: 12px; }
  .noel-404 img.noel-404__sapin { height: 104px; margin-bottom: 12px; }
}

/* ---------- Visitors who reduce motion: everything stays still ---------- */
@media (prefers-reduced-motion: reduce) {
  .noel-bandeau::before, .k-hero--diaporama .k-diapo > .cyb-slider__viewport::after, .noel-pied__traineau, .noel-404__flocon { animation: none; }
}
