/* PC4GAMER, « noel_theme » (26/11/2026). Mue, ~19:35: « c'est potentiellement les PC de Noël de PC for Gamer […] Qu'on
   peut un peu équiper en thème de Noël […] avec un peu des flocons de Noël […] que ça soit un peu stylé ». Loaded only where
   the trial puts it: /boutique/ (its PC section and the pages of the Christmas PCs) and the three home pages (their block).
   Decoration only: every flake is aria-hidden, takes no click, sits under the content or on a picture, never on a text, a
   button or a price. The falling flakes are few, move by transform and opacity only, and are not shown at all under
   prefers-reduced-motion. No file is loaded: the flake is an SVG written here, used as a mask (its colour is the
   element's background-color). Written by outils/construire.py into boutique/noel.css, from sources_essais/noel/, with
   the trial « noel » (the Christmas PCs' grid below); everything after the grid only acts on the markup of « noel_theme ». */

/* « noel » (26/11, the head ~19:50): the grid of the Christmas PCs, when it lists four or more (class bq-grille-noel, on
   /boutique/ and the home block): one column on phones, 2 × 2 from 760 px, four in a row from 1180 px. The packs' grid
   and the cards of /occasion/ keep boutique.css's three columns. */
@media (min-width: 760px) { .bq-grille.bq-grille-noel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .bq-grille.bq-grille-noel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

:root {
  --noel-glace: #eaf6ff;
  --noel-givre: #7fa7cc;
  --noel-flocon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath transform='rotate%280 24 24%29' d='M24 24V4M24 10l-5-4M24 10l5-4M24 16.5l-3.6-3M24 16.5l3.6-3'/%3E%3Cpath transform='rotate%2860 24 24%29' d='M24 24V4M24 10l-5-4M24 10l5-4M24 16.5l-3.6-3M24 16.5l3.6-3'/%3E%3Cpath transform='rotate%28120 24 24%29' d='M24 24V4M24 10l-5-4M24 10l5-4M24 16.5l-3.6-3M24 16.5l3.6-3'/%3E%3Cpath transform='rotate%28180 24 24%29' d='M24 24V4M24 10l-5-4M24 10l5-4M24 16.5l-3.6-3M24 16.5l3.6-3'/%3E%3Cpath transform='rotate%28240 24 24%29' d='M24 24V4M24 10l-5-4M24 10l5-4M24 16.5l-3.6-3M24 16.5l3.6-3'/%3E%3Cpath transform='rotate%28300 24 24%29' d='M24 24V4M24 10l-5-4M24 10l5-4M24 16.5l-3.6-3M24 16.5l3.6-3'/%3E%3C/g%3E%3C/svg%3E");
  --noel-flocon-gras: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='4.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath transform='rotate%280 24 24%29' d='M24 24V4M24 10l-5-4M24 10l5-4M24 16.5l-3.6-3M24 16.5l3.6-3'/%3E%3Cpath transform='rotate%2860 24 24%29' d='M24 24V4M24 10l-5-4M24 10l5-4M24 16.5l-3.6-3M24 16.5l3.6-3'/%3E%3Cpath transform='rotate%28120 24 24%29' d='M24 24V4M24 10l-5-4M24 10l5-4M24 16.5l-3.6-3M24 16.5l3.6-3'/%3E%3Cpath transform='rotate%28180 24 24%29' d='M24 24V4M24 10l-5-4M24 10l5-4M24 16.5l-3.6-3M24 16.5l3.6-3'/%3E%3Cpath transform='rotate%28240 24 24%29' d='M24 24V4M24 10l-5-4M24 10l5-4M24 16.5l-3.6-3M24 16.5l3.6-3'/%3E%3Cpath transform='rotate%28300 24 24%29' d='M24 24V4M24 10l-5-4M24 10l5-4M24 16.5l-3.6-3M24 16.5l3.6-3'/%3E%3C/g%3E%3C/svg%3E");
}

/* A section that carries the theme: the decoration under, the content over it. */
.noel-section { position: relative; isolation: isolate; }
.noel-section > :not(.noel-deco) { position: relative; z-index: 1; }
.noel-deco { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(560px 220px at 92% 0%, rgba(207, 232, 255, .075), transparent 72%); }

/* The flake: a mask on a coloured box. */
.noel-amas i, .noel-chute::before, .noel-titre::before, .noel-marque::before {
  -webkit-mask: var(--noel-flocon) center / contain no-repeat; mask: var(--noel-flocon) center / contain no-repeat; }

/* Still flakes in the top right corner of the section, in its padding, right of any heading. */
.noel-amas { position: absolute; top: 10px; right: max(20px, calc((100% - 1180px) / 2)); width: 112px; height: 64px; }
.noel-amas i { position: absolute; display: block; background-color: var(--noel-glace); }
.noel-amas i:nth-child(1) { right: 0; top: 0; width: 56px; height: 56px; opacity: .24; transform: rotate(8deg); }
.noel-amas i:nth-child(2) { right: 66px; top: 24px; width: 26px; height: 26px; opacity: .17; transform: rotate(-12deg); }
.noel-amas i:nth-child(3) { right: 50px; top: 2px; width: 14px; height: 14px; opacity: .15; }
.noel-amas i:nth-child(4) { right: 98px; top: 8px; width: 10px; height: 10px; opacity: .12; }
@media (max-width: 759px) { .noel-amas { top: 6px; right: 12px; transform: scale(.72); transform-origin: top right; } }

/* The name over the PC section: a small flake before the eyebrow, in its colour. */
.noel-titre::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 7px; vertical-align: -2px;
  background-color: currentColor; }

/* The mark on the picture of a Christmas PC. */
.bq-carte.is-noel .bq-visuel, .noel-scene { position: relative; }
.noel-scene { overflow: hidden; border-radius: var(--radius, 8px); }
.noel-marque { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--red-dark, #b91612); color: #fff;
  font-size: 12px; font-weight: 850; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .28); }
.noel-marque::before { content: ""; width: 13px; height: 13px; background-color: #fff; }
.noel-scene .noel-marque { top: 14px; left: 14px; padding: 6px 12px 6px 9px; font-size: 13px; }

/* Falling flakes: each box is as tall as its zone, its flake at the top; the box goes down one zone height (100%), a
   little sideways, and fades in and out: one animation per flake. Delays are negative: the snow is already falling. */
.noel-neige, .noel-chute-zone { position: absolute; overflow: hidden; pointer-events: none; }
.noel-neige { inset: 0; z-index: 1; }
.noel-chute-zone { display: none; top: 0; right: calc((100% - 1180px) / 2); width: 250px; height: 210px; }
@media (min-width: 1280px) { .noel-chute-zone { display: block; } }
.noel-chute { position: absolute; top: 0; left: var(--x, 50%); width: var(--t, 10px); height: 100%; opacity: 0;
  animation: noel-chute var(--d, 12s) linear var(--r, 0s) infinite; }
.noel-chute::before { content: ""; position: absolute; top: 0; left: 0; width: var(--t, 10px); height: var(--t, 10px);
  -webkit-mask-image: var(--noel-flocon-gras); mask-image: var(--noel-flocon-gras); background-color: var(--noel-glace); }
.noel-neige .noel-chute::before { background-color: var(--noel-givre); }
@keyframes noel-chute {
  0% { transform: translate3d(0, -14%, 0); opacity: 0; }
  12% { opacity: var(--o, .5); }
  86% { opacity: var(--o, .5); }
  100% { transform: translate3d(var(--dx, 10px), 100%, 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) { .noel-chute, .noel-chute-zone { display: none; animation: none; } }
@media (forced-colors: active) { .noel-deco, .noel-neige, .noel-titre::before, .noel-marque::before { display: none; } }
@media print { .noel-deco, .noel-neige { display: none; } }
