/* Noël 2026 de Tapis Dedans Dehors : « Noël sur le seuil ». Chargé seulement pendant les fêtes (src/noel.php), sur la classe .noel du corps.
   Le décor : un bandeau terracotta fini par une lisière tissée et ses franges ; en accueil, les deux portes : une guirlande chaude côté Dedans, la neige
   qui tombe côté Dehors (assets/noel.js), une couronne sur le montant, un paillasson au pied (templates/_noel-hero.php) ; « Un tapis sous le sapin »,
   une carte en forme de tapis (templates/_noel-accueil.php) ; la date sur les fiches. Rien d'autre ne change : ni prix, ni textes, ni parcours d'achat. */

/* ---------- bandeau, lisière tissée et franges sous l'en-tête */
.noel-bandeau { position: relative; background: #8a3f1d; color: #fbf3e8; font-size: .92rem; }
.noel-bandeau a { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3em 1.1em; padding: .6em 1em; color: inherit; text-decoration: none; }
.noel-bandeau a:hover .noel-bandeau__texte { text-decoration: underline; }
.noel-bandeau__sapin { width: 20px; height: 20px; flex: none; }
.noel-bandeau strong { font-family: var(--titre); font-style: italic; font-weight: 400; font-size: 1.3em; line-height: 1; color: #f6d9a6; }
.noel-bandeau__date { opacity: .92; }
.noel-bandeau__compte { padding: .12em .85em; border-radius: 999px; background: #fbf3e8; color: #8a3f1d; font-weight: 700; font-size: .86em; white-space: nowrap; }
.noel-lisiere { display: block; height: 26px; background:
  repeating-linear-gradient(90deg, #cdbfa6 0 2px, transparent 2px 7px) 0 100% / auto 9px no-repeat,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='17'%3E%3Crect width='48' height='17' fill='%23f7f3ec'/%3E%3Cpath d='M0 17 12 0l12 17z' fill='%23b5552b'/%3E%3Cpath d='M24 17 36 0l12 17z' fill='%2351694b'/%3E%3Cpath d='M12 17l4-5.6 4 5.6zM36 17l4-5.6 4 5.6z' fill='%23f7f3ec'/%3E%3Cpath d='M0 0 6 8.5 12 0zM24 0l6 8.5L36 0z' fill='%23e9dcc4'/%3E%3C/svg%3E") 0 0 / 48px 17px repeat-x; }
@media (max-width: 700px) { .noel-bandeau__date { display: none; } }

/* ---------- accueil : le seuil, entre dedans et dehors */
.noel .seuil { margin-top: clamp(64px, 7vw, 92px); margin-bottom: 26px; }
.noel .seuil__porte { overflow: visible; }
.noel .seuil__porte img { display: block; }
.noel .seuil__porte:hover img { transform: none; }
.noel .seuil__legende { z-index: 3; }
.noel .seuil__porte::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.noel .seuil__porte--dedans::after { background: radial-gradient(130% 75% at 50% 0, rgba(255, 186, 92, .42), rgba(255, 186, 92, 0) 72%); mix-blend-mode: soft-light; }
.noel .seuil__porte--dehors::after { background: linear-gradient(180deg, rgba(206, 226, 242, .42), rgba(206, 226, 242, .1) 62%, rgba(206, 226, 242, 0)); }
@media (min-width: 701px) { .noel .seuil__porte--dedans .seuil__legende { right: calc(clamp(104px, 10vw, 144px) / 2 + 14px); } }
.noel .seuil__porte::before { z-index: 1; }
.noel-guirlande { position: absolute; left: 0; top: -2px; width: 100%; height: 84px; z-index: 2; pointer-events: none; }
.ng-ampoule { animation: ng-brille 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.53s); }
.ng-halo { opacity: .38; filter: blur(5px); }
.noel-neige { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.noel-congere { position: absolute; left: -1px; right: -1px; top: -12px; width: calc(100% + 2px); height: 40px; z-index: 3; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(31, 27, 23, .18)); }
.noel-couronne { position: absolute; left: 50%; top: calc(clamp(104px, 10vw, 144px) * -.56); width: clamp(104px, 10vw, 144px); z-index: 4; transform: translateX(-50%); pointer-events: none; filter: drop-shadow(0 8px 10px rgba(31, 27, 23, .3)); }
.nc-tourne { transform-box: view-box; transform-origin: 60px 4px; animation: nc-balance 4.6s ease-in-out infinite alternate; }
.noel-paillasson { position: absolute; left: 50%; bottom: -42px; z-index: 4; transform: translateX(-50%); padding: .5em 1.6em; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 5px), #8a3f1d; color: #fbf3e8; border: 2px solid #f6d9a6; outline: 5px solid #8a3f1d; box-shadow: 0 10px 18px rgba(31, 27, 23, .28); pointer-events: none; white-space: nowrap; }
.noel-paillasson::before, .noel-paillasson::after { content: ""; position: absolute; top: -5px; bottom: -5px; width: 12px; background: repeating-linear-gradient(180deg, #cdbfa6 0 2px, transparent 2px 6px); }
.noel-paillasson::before { right: calc(100% + 5px); }
.noel-paillasson::after { left: calc(100% + 5px); }
.noel-paillasson b { font-family: var(--titre); font-style: italic; font-weight: 400; font-size: clamp(1.2rem, 2.2vw, 1.8rem); letter-spacing: .02em; }
@keyframes ng-brille { from { opacity: .7; } to { opacity: 1; } }
@keyframes nc-balance { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@media (max-width: 700px) { .noel-paillasson { bottom: -40px; } .noel .seuil { margin-top: 70px; margin-bottom: 30px; } }

/* ---------- accueil : « Un tapis sous le sapin », une carte en forme de tapis */
.noel-tapis { padding: clamp(48px, 7vw, 88px) 0 0; }
.noel-tapis__tapis { position: relative; margin: 0 16px clamp(28px, 4vw, 48px); padding: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Crect width='48' height='24' fill='%238a3f1d'/%3E%3Cpath d='M0 12 12 0l12 12-12 12z' fill='%23b5552b'/%3E%3Cpath d='M24 12 36 0l12 12-12 12z' fill='%2351694b'/%3E%3Cpath d='M6 12l6-6 6 6-6 6zM30 12l6-6 6 6-6 6z' fill='%23f6d9a6'/%3E%3C/svg%3E") 0 0 / 48px 24px; box-shadow: 0 18px 40px rgba(31, 27, 23, .18); }
.noel-tapis__tapis::before, .noel-tapis__tapis::after { content: ""; position: absolute; top: 0; bottom: 0; width: 16px; background: repeating-linear-gradient(180deg, #cdbfa6 0 2px, transparent 2px 7px); }
.noel-tapis__tapis::before { right: 100%; }
.noel-tapis__tapis::after { left: 100%; }
.noel-tapis__champ { padding: clamp(26px, 4vw, 52px); background: #fbf6ee; border: 2px solid #f6d9a6; text-align: center; }
.noel-tapis__sur { margin: 0 0 .1em; font-family: var(--titre); font-style: italic; font-size: 1.4rem; color: var(--dedans); }
.noel-tapis h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: .2em; }
.noel-tapis__date { margin: 0 auto 1.4em; max-width: 60ch; color: var(--gris); }
.noel-tapis__date strong { color: var(--dedans-fonce); }
.noel-tapis__liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.noel-tapis__liens a { display: inline-flex; align-items: center; gap: .5em; padding: .6em 1.1em; border: 1px solid var(--encre); border-radius: 999px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.noel-tapis__liens a:hover { background: var(--encre); color: #fbf6ee; }
.noel-tapis__liens .icone { width: 1em; height: 1em; }

/* ---------- fiche : la date limite, sous la disponibilité */
.noel-fiche { margin: .7em 0 0; padding: .55em .85em; border-left: 3px solid var(--dedans); border-radius: var(--rayon, 8px); background: var(--dedans-clair, #f6e7dd); font-size: .9rem; }
