/* Botanine — « Noël au jardin d'hiver » (décor daté du 14/11 au 26/12/2026, chargé seulement par noel_decor() : voir app/src/noel.php) */
:root { --n-nuit: #0F2118; --n-sapin: #1C3B2C; --n-or: #C9A45C; --n-or-clair: #E8CF95; --n-baie: #9E2B3A; --n-baie-vif: #C23B4B; --n-creme: #F4EBD8; }

/* ---------- Bandeau des cadeaux ---------- */
.noel-bandeau { position: relative; overflow: hidden; isolation: isolate; color: var(--n-creme); font-size: .84rem; line-height: 1.3;
  background: radial-gradient(ellipse 50% 140% at 50% 0%, #22432F 0%, var(--n-nuit) 70%); }
.noel-bandeau::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image: radial-gradient(1px 1px at 12px 9px, #FFF6DD, transparent), radial-gradient(1px 1px at 61px 27px, #FFF6DD, transparent), radial-gradient(1.5px 1.5px at 118px 14px, #E8CF95, transparent), radial-gradient(1px 1px at 170px 31px, #FFF6DD, transparent), radial-gradient(1px 1px at 214px 6px, #FFF6DD, transparent);
  background-size: 240px 40px; animation: noel-scintille-fond 5s ease-in-out infinite alternate; }
.noel-bandeau__ligne { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40px; padding-block: 6px; }
.noel-bandeau__paquet { flex: none; width: 21px; height: 21px; animation: noel-sautille 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
.noel-bandeau__paquet svg { display: block; width: 100%; height: 100%; }
.noel-bandeau__texte { min-width: 0; }
.noel-bandeau__court { display: none; }
.noel-bandeau__compte { flex: none; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; padding: 3px 9px; border-radius: 99px; border: 1px solid rgba(232,207,149,.55); color: var(--n-or-clair); }
.noel-bandeau__compte b { font-weight: 600; }
.noel-bandeau__lien { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--n-or-clair); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(232,207,149,.45); padding-bottom: 1px; }
.noel-bandeau__lien:hover { color: #FFF3D6; border-color: #FFF3D6; }
.noel-bandeau__lien .icone { width: 14px; height: 14px; }
@media (max-width: 860px) { .noel-bandeau__long { display: none; } .noel-bandeau__court { display: inline; } .noel-bandeau__ligne { gap: 10px; font-size: .8rem; } }
@media (max-width: 520px) { .noel-bandeau__lien { display: none; } .noel-bandeau__ligne { justify-content: flex-start; } .noel-bandeau { font-size: .78rem; } }

/* ---------- La guirlande du jour (dessinée par noel.js) ---------- */
.noel-guirlande { position: relative; z-index: 6; height: 58px; margin-bottom: -26px; pointer-events: none; }
.noel-guirlande canvas { display: block; width: 100%; height: 100%; }
.noel-guirlande i { position: absolute; width: 6px; height: 8px; margin: -4px 0 0 -3px; border-radius: 50% 50% 46% 46%; background: var(--c);
  box-shadow: 0 0 5px 2px var(--h); animation: noel-lumiere 2.6s ease-in-out var(--d) infinite alternate; }
@media (max-width: 700px) { .noel-guirlande { height: 40px; margin-bottom: -16px; } .noel-guirlande i { width: 5px; height: 6px; } }

/* ---------- Le logo : un brin de houx ---------- */
.noel .logo b { position: relative; }
.noel .logo b::after { content: ""; position: absolute; right: -19px; top: -11px; width: 26px; height: 20px; transform: rotate(16deg); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath fill='%232F5D46' d='M19 17C15 16 13 12 9 12l1-3-4 1V7L2 8c1-4 7-5 11-2l1-3 2 3 2-2c1 4 3 8 1 13z'/%3E%3Cpath fill='%231F4A36' d='M21 17c4-1 6-5 10-5l-1-3 4 1V7l4 1c-1-4-7-5-11-2l-1-3-2 3-2-2c-1 4-3 8-1 13z'/%3E%3Ccircle cx='17' cy='20' r='3.6' fill='%23B23646'/%3E%3Ccircle cx='23.2' cy='20.6' r='3.6' fill='%239E2B3A'/%3E%3Ccircle cx='20' cy='25.4' r='3.6' fill='%23C23B4B'/%3E%3Ccircle cx='15.9' cy='18.8' r='1.1' fill='%23fff' opacity='.75'/%3E%3Ccircle cx='22.1' cy='19.4' r='1.1' fill='%23fff' opacity='.6'/%3E%3Ccircle cx='18.9' cy='24.2' r='1.1' fill='%23fff' opacity='.7'/%3E%3C/svg%3E") no-repeat center / contain; }
.noel .logo--pied b::after { display: none; }

/* ---------- Accueil : le jardin d'hiver ---------- */
.noel .jardin__petales { display: none; }
/* l'astre devient une boule de Noël à bandes, suspendue à son fil, qui se balance */
.noel .jardin__astre { opacity: 1; overflow: visible;
  background: radial-gradient(circle at 33% 28%, rgba(255,255,255,.9) 0 3%, rgba(255,255,255,.35) 7%, rgba(255,255,255,0) 15%),
    linear-gradient(180deg, transparent 43%, rgba(232,207,149,.95) 43% 45.5%, transparent 45.5% 48%, rgba(232,207,149,.85) 48% 50.5%, transparent 50.5% 57%, rgba(232,207,149,.6) 57% 58.5%, transparent 58.5%),
    radial-gradient(circle at 40% 36%, #DE5B6E 0%, #B23646 46%, #7A1D2A 100%);
  box-shadow: 0 0 110px 30px rgba(222,91,110,.22), inset -14px -22px 46px rgba(60,8,18,.38), inset 10px 10px 30px rgba(255,220,200,.18); }
.noel .jardin__astre::before { content: ""; position: absolute; left: 50%; top: -7%; width: 19%; height: 10%; transform: translateX(-50%); border-radius: 3px 3px 2px 2px;
  background: repeating-linear-gradient(90deg, rgba(60,40,10,.25) 0 1px, transparent 1px 4px), linear-gradient(90deg, #7D5E25, #EBD39B 34%, #B48A3E 62%, #7D5E25); box-shadow: 0 2px 3px rgba(0,0,0,.2); }
.noel .jardin__astre::after { content: ""; position: absolute; left: 50%; bottom: 102%; width: 1.5px; height: 70vh; transform: translateX(-50%);
  background: linear-gradient(to top, #B48A3E, rgba(180,138,62,.35)); }
.js .noel .jardin__astre { transform-origin: 50% -160%; animation: astre-leve 2.6s cubic-bezier(.2,.7,.2,1) both, noel-balance 5.5s ease-in-out 2.6s infinite alternate; }
@media (max-width: 700px) { .noel .jardin__astre { width: 14vw; right: 7%; top: 4px; opacity: .95; box-shadow: 0 0 40px 10px rgba(222,91,110,.2), inset -6px -9px 20px rgba(60,8,18,.38); } }
.noel-neige { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.noel-congere { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; height: clamp(24px, 3.6vw, 54px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath fill='%23DCE6EC' d='M0 28c120-20 220 6 340-6s220-16 360 2 250 16 360-6 140-4 140 2v40H0z'/%3E%3Cpath fill='%23FBFCFD' d='M0 37c140-18 240 4 380-8s220-14 360 2 240 14 350-4 110-2 110 3v30H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.jardin .noel-ancre { margin: 18px 0 0; }
.noel-ancre a { display: inline-flex; align-items: center; text-decoration: none; color: #3A1A1F; transform: rotate(-2.5deg); transform-origin: 0 50%; transition: transform .35s; }
.noel-ancre a:hover { color: #3A1A1F; transform: rotate(0) translateY(-2px); }
.noel-ancre__ficelle { width: 26px; height: 1.5px; background: var(--n-or); margin-right: -4px; }
.noel-ancre__carte { position: relative; display: grid; gap: 1px; padding: 8px 16px 8px 26px; font-family: var(--titre); font-style: italic; font-size: 1.02rem; line-height: 1.2;
  background: linear-gradient(135deg, transparent 9px, #F3E4C4 0) top left / 51% 51% no-repeat, linear-gradient(45deg, transparent 9px, #F3E4C4 0) bottom left / 51% 51% no-repeat,
    linear-gradient(#F3E4C4, #F3E4C4) top right / 50% 100% no-repeat; filter: drop-shadow(0 6px 10px rgba(80,40,20,.18)); }
.noel-ancre__carte::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--fond); box-shadow: inset 0 0 0 1.5px var(--n-or); }
.noel-ancre__carte small { font-family: var(--mono); font-style: normal; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--n-baie); }

/* ---------- Accueil : le paquet du jour ---------- */
.noel-paquet { position: relative; overflow: hidden; isolation: isolate; color: var(--n-creme); padding-block: clamp(64px, 8vw, 116px) clamp(48px, 6vw, 88px);
  background: radial-gradient(ellipse 60% 70% at 74% 42%, #2A5240 0%, #18352A 42%, var(--n-nuit) 100%); }
.noel-paquet__ciel { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .85;
  background-image: radial-gradient(1px 1px at 18px 22px, #FFF6DD, transparent), radial-gradient(1.4px 1.4px at 92px 70px, #E8CF95, transparent), radial-gradient(1px 1px at 160px 30px, #FFF6DD, transparent),
    radial-gradient(1px 1px at 210px 120px, #FFF6DD, transparent), radial-gradient(1.6px 1.6px at 40px 150px, #FFF1C8, transparent), radial-gradient(1px 1px at 130px 180px, #FFF6DD, transparent);
  background-size: 260px 220px; animation: noel-scintille-fond 6s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 70%, transparent); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 70%, transparent); }
.noel-paquet .noel-neige { z-index: 0; }
.noel-paquet__grille { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.noel-paquet .surtitre { color: var(--n-or); }
.noel-paquet__etoile { width: 12px; height: 12px; background: var(--n-or-clair); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: noel-lumiere 2.2s ease-in-out infinite alternate; }
.noel-paquet h2 { color: #FBF6EA; font-size: clamp(2.1rem, 4.4vw, 3.7rem); font-weight: 500; line-height: 1.02; letter-spacing: -.025em; max-width: 14ch; text-wrap: balance; }
.noel-paquet h2 em { font-style: italic; font-weight: 380; color: var(--n-or-clair); }
.noel-paquet__chapo { color: rgba(244,235,216,.84); font-size: clamp(1rem, 1.2vw, 1.1rem); max-width: 48ch; }
.noel-paquet__form { margin: 26px 0 8px; max-width: 560px; }
.noel-paquet__label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--n-or); margin-bottom: 8px; }
.noel-paquet__champ { display: flex; gap: 10px; flex-wrap: wrap; }
.noel-paquet__champ input { flex: 1 1 220px; min-width: 0; padding: 14px 16px; border-radius: var(--rayon); border: 1px solid rgba(232,207,149,.45); background: rgba(255,255,255,.07);
  color: #FFF8EA; font-family: var(--titre); font-style: italic; font-size: 1.25rem; transition: border-color .2s, background .2s; }
.noel-paquet__champ input::placeholder { color: rgba(244,235,216,.42); }
.noel-paquet__champ input:focus { outline: none; border-color: var(--n-or-clair); background: rgba(255,255,255,.11); box-shadow: 0 0 0 3px rgba(232,207,149,.18); }
.noel-bouton { flex: none; color: #fff; border-color: #8E2533; background: linear-gradient(180deg, var(--n-baie-vif), var(--n-baie)); box-shadow: 0 10px 26px -12px rgba(194,59,75,.8); }
.noel-bouton:hover { color: #fff; border-color: #A3303F; background: linear-gradient(180deg, #D44A5A, #B03343); }
.noel-bouton:focus-visible { outline-color: var(--n-or-clair); }
.noel-bouton-clair { color: var(--n-creme); border-color: rgba(244,235,216,.45); }
.noel-bouton-clair:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.06); }
.noel-paquet__erreur { margin: 10px 0 0; color: #F6BCC4; font-size: .9rem; }
.noel-paquet__atouts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 9px; font-size: .9rem; color: rgba(244,235,216,.8); }
.noel-paquet__atouts li { display: flex; gap: 10px; align-items: flex-start; }
.noel-paquet__atouts .icone { flex: none; width: 18px; height: 18px; color: var(--n-or); margin-top: 1px; }

.noel-paquet__scene { position: relative; }
.paquet { position: relative; width: min(100%, 410px); margin-inline: auto; perspective: 1600px; cursor: pointer; }
.paquet__boite { position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d; transform: rotateX(5deg) rotateY(-9deg) rotateZ(1deg); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.paquet:hover .paquet__boite { transform: rotateX(2deg) rotateY(-4deg); }
.paquet.est-ouvert .paquet__boite { transform: none; }
.paquet__oeuvre { position: absolute; inset: 0; padding: 7%; background: #FBF8F1; border: clamp(8px, 1.6vw, 13px) solid #1D1915;
  box-shadow: 0 46px 70px -34px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06), inset 0 0 0 1px rgba(0,0,0,.08), inset 0 3px 10px rgba(0,0,0,.18); transition: box-shadow 1.2s; }
.paquet.est-ouvert .paquet__oeuvre { box-shadow: 0 46px 70px -34px rgba(0,0,0,.8), 0 0 90px 10px rgba(232,207,149,.28), inset 0 0 0 1px rgba(0,0,0,.08), inset 0 3px 10px rgba(0,0,0,.18); }
.paquet__oeuvre img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s; }
.paquet__papier { position: absolute; top: -2%; bottom: -2%; width: 52%; backface-visibility: hidden;
  background-color: #B98B5E;
  background-image: radial-gradient(circle, rgba(255,250,238,.62) 0 1.3px, transparent 1.6px), radial-gradient(circle, rgba(255,250,238,.4) 0 .9px, transparent 1.2px),
    repeating-linear-gradient(93deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px), repeating-linear-gradient(2deg, rgba(60,30,10,.04) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse 80% 60% at 30% 18%, rgba(255,235,205,.22), transparent 70%);
  background-size: 30px 30px, 30px 30px, auto, auto, auto; background-position: 0 0, 15px 15px, 0 0, 0 0, 0 0;
  transition: transform 1s cubic-bezier(.55,0,.25,1) .38s, opacity .45s ease .95s; }
.paquet__papier--g { left: -2%; transform-origin: 0 50%; box-shadow: inset -10px 0 16px -12px rgba(40,20,5,.55), inset 0 0 0 1px rgba(60,30,10,.12); border-radius: 2px 0 0 2px; }
.paquet__papier--d { right: -2%; transform-origin: 100% 50%; box-shadow: inset 10px 0 16px -12px rgba(40,20,5,.55), inset 0 0 0 1px rgba(60,30,10,.12); border-radius: 0 2px 2px 0; }
.paquet.est-ouvert .paquet__papier--g { transform: rotateY(-118deg) skewY(-3deg); opacity: 0; }
.paquet.est-ouvert .paquet__papier--d { transform: rotateY(118deg) skewY(3deg); opacity: 0; }
.paquet__ruban { position: absolute; box-shadow: 0 0 10px rgba(40,5,10,.35); transition: transform .6s cubic-bezier(.6,0,.4,1) .12s, opacity .4s .35s; }
.paquet__ruban--v { top: -2%; bottom: -2%; left: 50%; width: 12%; transform: translateX(-50%);
  background: linear-gradient(90deg, #6E1824, #A3303F 18%, #D65A69 40%, #B23646 58%, #8E2533 82%, #6E1824); }
.paquet__ruban--h { left: -2%; right: -2%; top: 38%; height: 9.5%;
  background: linear-gradient(180deg, #6E1824, #A3303F 18%, #D65A69 40%, #B23646 58%, #8E2533 82%, #6E1824); }
.paquet.est-ouvert .paquet__ruban--v { transform: translateX(-50%) translateY(118%); opacity: 0; }
.paquet.est-ouvert .paquet__ruban--h { transform: translateX(112%); opacity: 0; }
.paquet__noeud { position: absolute; left: 50%; top: 29.1%; width: 56%; height: auto; transform: translateX(-50%); filter: drop-shadow(0 6px 8px rgba(30,5,10,.45)); transition: transform .55s cubic-bezier(.3,0,.3,1), opacity .4s .15s; }
.paquet.est-ouvert .paquet__noeud { transform: translateX(-50%) translateY(-70%) scale(1.3) rotate(-14deg); opacity: 0; }
.paquet__etiquette { position: absolute; right: -9%; top: 49%; width: 40%; min-width: 132px; padding: 10px 12px 10px 24px; color: #2B2018; transform: rotate(9deg); transform-origin: 0 40%;
  background: linear-gradient(135deg, transparent 10px, #F7EEDB 0) top left / 51% 51% no-repeat, linear-gradient(45deg, transparent 10px, #F7EEDB 0) bottom left / 51% 51% no-repeat, linear-gradient(#F7EEDB, #F7EEDB) top right / 50% 100% no-repeat;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); transition: transform .6s cubic-bezier(.4,0,.3,1) .05s, opacity .45s .2s; animation: noel-etiquette 4.2s ease-in-out infinite alternate; }
.paquet__etiquette::before { content: ""; position: absolute; left: 9px; top: 40%; width: 8px; height: 8px; border-radius: 50%; background: #3A2A1E; box-shadow: inset 0 0 0 1.5px var(--n-or); }
.paquet__ficelle { position: absolute; right: 100%; top: 40%; width: 64%; height: 1.5px; margin-top: 3px; margin-right: -14px; background: linear-gradient(90deg, rgba(201,164,92,.4), var(--n-or)); transform: rotate(-24deg); transform-origin: 100% 50%; }
.paquet__pour { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--n-baie); }
.paquet__etiquette b { display: block; font-family: var(--titre); font-style: italic; font-weight: 500; font-size: 1.3rem; line-height: 1.1; overflow-wrap: anywhere; margin: 1px 0 3px; }
.paquet__etiquette small { display: block; font-family: var(--titre); font-style: italic; font-size: .78rem; color: #7A6A58; }
.paquet.est-ouvert .paquet__etiquette { animation: none; transform: translate(30%, 150%) rotate(34deg); opacity: 0; }
/* refermer : sans les délais d'ouverture */
.paquet.se-ferme .paquet__papier, .paquet.se-ferme .paquet__ruban, .paquet.se-ferme .paquet__noeud, .paquet.se-ferme .paquet__etiquette { transition-delay: 0s; transition-duration: .55s; }
.paquet.se-ferme .paquet__oeuvre img { opacity: 0; }
.paquet.secoue .paquet__boite { animation: noel-secoue .42s ease-in-out infinite; }
.paquet__eclats { position: absolute; left: -35%; top: -30%; width: 170%; height: 160%; pointer-events: none; z-index: 5; }
.paquet__ombre { position: absolute; left: 10%; right: 10%; bottom: -26px; height: 30px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 70%); filter: blur(4px); z-index: -1; }
.paquet__cartel { text-align: center; margin: 34px auto 0; max-width: 460px; animation: noel-apparait .7s cubic-bezier(.2,.7,.2,1) both; }
.paquet__titre { display: grid; gap: 4px; margin-bottom: 16px; }
.paquet__titre a { color: #FBF6EA; text-decoration: none; font-family: var(--titre); font-size: 1.32rem; }
.paquet__titre a:hover { color: var(--n-or-clair); }
.paquet__titre small { color: var(--n-or); font-size: .86rem; }
.paquet__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; }

/* « Pour qui ? » */
.noel-qui { position: relative; z-index: 1; margin-top: clamp(56px, 8vw, 104px); }
.noel-qui__tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 16px; }
.noel-qui__tete h3 { color: #FBF6EA; font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; }
.noel-qui__tete p { margin: 0; color: rgba(244,235,216,.7); font-size: .95rem; }
.noel-qui__onglets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-bottom: 18px; }
.noel-qui__onglets::-webkit-scrollbar { display: none; }
.noel-qui__onglets button { flex: none; padding: 9px 16px; border-radius: 99px; border: 1px solid rgba(232,207,149,.35); background: transparent; color: var(--n-creme); cursor: pointer; font-size: .92rem; transition: background .2s, color .2s, border-color .2s; }
.noel-qui__onglets button:hover { border-color: var(--n-or-clair); }
.noel-qui__onglets button[aria-selected="true"] { background: var(--n-or-clair); border-color: var(--n-or-clair); color: var(--n-nuit); font-weight: 600; }
.js .noel-qui__panneau:not(.est-actif) { display: none; }
.noel-qui__panneau.est-actif { animation: noel-apparait .5s cubic-bezier(.2,.7,.2,1) both; }
.noel-qui__oeuvres { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.noel-qui__oeuvres a { display: grid; gap: 4px; text-decoration: none; color: var(--n-creme); }
.noel-qui__mur { position: relative; display: block; padding: 9%; background: #F4EEE2; box-shadow: 0 22px 34px -22px rgba(0,0,0,.75); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; margin-bottom: 8px; overflow: hidden; }
.noel-qui__oeuvres a:hover .noel-qui__mur { transform: translateY(-5px); box-shadow: 0 30px 40px -24px rgba(0,0,0,.85); }
.noel-qui__noeud { position: absolute; right: -16px; top: -16px; width: 60px; height: 60px; transform: rotate(45deg);
  background: linear-gradient(90deg, transparent 40%, #A3303F 40%, #D65A69 50%, #A3303F 60%, transparent 60%); }
.noel-qui__titre { font-family: var(--titre); font-style: italic; font-size: 1.02rem; line-height: 1.2; }
.noel-qui__oeuvres a:hover .noel-qui__titre { color: var(--n-or-clair); }
.noel-qui__oeuvres small { color: rgba(244,235,216,.62); font-size: .82rem; }
.noel-qui__guide { color: var(--n-or-clair); }
.noel-qui__guide:hover { color: #FFF3D6; }

@media (max-width: 900px) {
  .noel-paquet__grille { grid-template-columns: minmax(0, 1fr); }
  .noel-paquet h2 { max-width: 18ch; }
  .paquet { width: min(78%, 360px); }
  .paquet__etiquette { right: -14%; }
  .noel-paquet__grille { row-gap: 0; }
  .noel-paquet__texte { display: contents; }
  .noel-paquet__scene { order: 2; margin: 30px 0 34px; }
  .noel-paquet__atouts { order: 3; margin-top: 0; }
}
@media (max-width: 700px) {
  .noel-qui__oeuvres { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
  .noel-qui__oeuvres li { scroll-snap-align: start; }
  .noel-paquet__champ .noel-bouton { width: 100%; }
  .paquet { width: 74%; }
  .paquet__etiquette { min-width: 112px; padding: 8px 10px 8px 22px; }
  .paquet__etiquette b { font-size: 1.08rem; }
}

/* ---------- Pied de page : le talus enneigé (dessiné par noel.js) ---------- */
.noel-talus { position: relative; height: clamp(92px, 10vw, 150px); margin-top: -1px; pointer-events: none; }
.noel-talus canvas { display: block; width: 100%; height: 100%; }
.noel .engagements + .noel-talus { margin-top: -1px; }
.noel .pied { border-top: 0; }

/* ---------- Fiche : l'encadré de Noël en étiquette cadeau ---------- */
.noel .achat__noel { position: relative; padding: 11px 40px 11px 16px; border: 1px solid #E6CF9C; border-left: 0; border-radius: 0 6px 6px 0; color: #4A1C22;
  background: linear-gradient(90deg, var(--n-baie) 0 5px, #FBF3E2 5px); }
.noel .achat__noel .icone { color: var(--n-baie); }
.noel .achat__noel::after { content: ""; position: absolute; right: 8px; top: 50%; width: 26px; height: 20px; margin-top: -10px; transform: rotate(-8deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath fill='%232F5D46' d='M19 17C15 16 13 12 9 12l1-3-4 1V7L2 8c1-4 7-5 11-2l1-3 2 3 2-2c1 4 3 8 1 13z'/%3E%3Cpath fill='%231F4A36' d='M21 17c4-1 6-5 10-5l-1-3 4 1V7l4 1c-1-4-7-5-11-2l-1-3-2 3-2-2c-1 4-3 8-1 13z'/%3E%3Ccircle cx='17' cy='20' r='3.6' fill='%23B23646'/%3E%3Ccircle cx='23.2' cy='20.6' r='3.6' fill='%239E2B3A'/%3E%3Ccircle cx='20' cy='25.4' r='3.6' fill='%23C23B4B'/%3E%3C/svg%3E") no-repeat center / contain; }

/* ---------- Animations ---------- */
@keyframes noel-scintille-fond { from { opacity: .35; } to { opacity: .85; } }
@keyframes noel-lumiere { from { opacity: .45; filter: brightness(.8); } to { opacity: 1; filter: brightness(1.25); } }
@keyframes noel-sautille { 0%, 82%, 100% { transform: translateY(0) rotate(0); } 86% { transform: translateY(-4px) rotate(-6deg); } 90% { transform: translateY(0) rotate(4deg); } 94% { transform: translateY(-2px) rotate(-2deg); } }
@keyframes noel-balance { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
@keyframes noel-etiquette { from { transform: rotate(6deg); } to { transform: rotate(12deg); } }
@keyframes noel-secoue { 0%, 100% { transform: rotateZ(0) translateY(0); } 25% { transform: rotateZ(-2.2deg) translateY(-3px); } 75% { transform: rotateZ(2.2deg) translateY(-3px); } }
@keyframes noel-apparait { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .noel-bandeau::before, .noel-bandeau__paquet, .noel-guirlande i, .noel-paquet__ciel, .noel-paquet__etoile, .paquet__etiquette, .paquet.secoue .paquet__boite, .paquet__cartel, .noel-qui__panneau.est-actif { animation: none !important; }
  .js .noel .jardin__astre { animation: none; }
  .paquet__papier, .paquet__ruban, .paquet__noeud, .paquet__etiquette, .paquet__boite { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* ---------- Leçons et coloriages : le dessin de la page, en tableau à offrir (16/11/2026, templates/_noel-lecon.php) ---------- */
.noel-lecon { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(170px, 290px) minmax(0, 1fr); gap: clamp(26px, 4.5vw, 64px); align-items: center;
  margin-block: clamp(36px, 5vw, 64px); padding: clamp(26px, 4vw, 52px) clamp(22px, 4.5vw, 60px); border-radius: 6px; color: var(--n-creme);
  background: radial-gradient(ellipse 60% 100% at 18% 40%, #2A5240 0%, #18352A 48%, var(--n-nuit) 100%); box-shadow: 0 30px 60px -40px rgba(15,33,24,.9); }
.noel-lecon::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .75; pointer-events: none;
  background-image: radial-gradient(1px 1px at 18px 22px, #FFF6DD, transparent), radial-gradient(1.4px 1.4px at 92px 70px, #E8CF95, transparent), radial-gradient(1px 1px at 160px 30px, #FFF6DD, transparent), radial-gradient(1px 1px at 210px 120px, #FFF6DD, transparent), radial-gradient(1.6px 1.6px at 40px 150px, #FFF1C8, transparent);
  background-size: 260px 190px; animation: noel-scintille-fond 6s ease-in-out infinite alternate; }
.noel-lecon__tableau { position: relative; padding: 4px 6px 14px 18px; }
.noel-lecon__cadre { position: relative; display: block; padding: 7%; background: #FBF8F1; border: clamp(7px, 1vw, 10px) solid #1D1915; transform: rotate(-2deg); transition: transform .45s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 34px 50px -26px rgba(0,0,0,.85), inset 0 2px 8px rgba(0,0,0,.16); }
.noel-lecon:hover .noel-lecon__cadre { transform: rotate(0) translateY(-3px); }
.noel-lecon__cadre img { width: 100%; height: auto; transition: opacity .3s; }
.noel-lecon__cadre.est-attente img { opacity: .45; }
.noel-lecon__ruban { position: absolute; right: -12px; top: -12px; width: 96px; height: 96px; overflow: hidden; pointer-events: none; }
.noel-lecon__ruban::before { content: ""; position: absolute; left: -30px; top: 30px; width: 170px; height: 20px; transform: rotate(45deg);
  background: linear-gradient(180deg, #6E1824, #A3303F 18%, #D65A69 42%, #B23646 60%, #7E1F2C); box-shadow: 0 2px 6px rgba(40,5,10,.45); }
.noel-lecon__noeud { position: absolute; right: 4px; top: -18px; width: 66px; height: 44px; pointer-events: none; filter: drop-shadow(0 4px 5px rgba(30,5,10,.45)); transform: rotate(18deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Cpath d='M100 66C70 20 18 6 14 40c-4 32 46 38 86 26z' fill='%23B23646'/%3E%3Cpath d='M100 66c30-46 82-60 86-26 4 32-46 38-86 26z' fill='%239E2B3A'/%3E%3Cpath d='M100 66C76 38 40 30 34 44c-4 12 28 22 66 22zm0 0c24-28 60-36 66-22 4 12-28 22-66 22z' fill='%237E1F2C' opacity='.55'/%3E%3Cpath d='M94 70 70 116l14-6 6 10 12-46z' fill='%238E2533'/%3E%3Cpath d='m106 70 24 46-14-6-6 10-12-46z' fill='%23A3303F'/%3E%3Cellipse cx='100' cy='66' rx='15' ry='12' fill='%23C23B4B'/%3E%3C/svg%3E") no-repeat center / contain; }
.noel-lecon__etiquette { position: absolute; left: 0; bottom: 18%; min-width: 92px; max-width: 78%; display: grid; padding: 7px 12px 7px 22px; color: #2B2018; transform: rotate(-7deg); transform-origin: 0 50%;
  background: linear-gradient(135deg, transparent 8px, #F7EEDB 0) top left / 51% 51% no-repeat, linear-gradient(45deg, transparent 8px, #F7EEDB 0) bottom left / 51% 51% no-repeat, linear-gradient(#F7EEDB, #F7EEDB) top right / 50% 100% no-repeat;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); animation: noel-etiquette-lecon 4.4s ease-in-out infinite alternate; }
.noel-lecon__etiquette::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #3A2A1E; box-shadow: inset 0 0 0 1.5px var(--n-or); }
.noel-lecon__etiquette small { font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--n-baie); }
.noel-lecon__etiquette b { font-family: var(--titre); font-style: italic; font-weight: 500; font-size: 1.08rem; line-height: 1.1; overflow-wrap: anywhere; }
.noel-lecon .surtitre { color: var(--n-or); }
.noel-lecon h2 { color: #FBF6EA; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: .45em; text-wrap: balance; }
.noel-lecon h2 em { font-style: italic; font-weight: 380; color: var(--n-or-clair); }
.noel-lecon__chapo { color: rgba(244,235,216,.85); max-width: 56ch; }
.noel-lecon__chapo a { color: var(--n-or-clair); }
.noel-lecon__chapo a:hover { color: #FFF3D6; }
.noel-lecon__form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; margin: 0 0 4px; }
.noel-lecon__form input { flex: 1 1 200px; min-width: 0; padding: 12px 14px; border-radius: var(--rayon); border: 1px solid rgba(232,207,149,.45); background: rgba(255,255,255,.07); color: #FFF8EA; font-family: var(--titre); font-style: italic; font-size: 1.12rem; }
.noel-lecon__form input::placeholder { color: rgba(244,235,216,.42); }
.noel-lecon__form input:focus { outline: none; border-color: var(--n-or-clair); background: rgba(255,255,255,.11); box-shadow: 0 0 0 3px rgba(232,207,149,.18); }
.noel-lecon__erreur { margin: 8px 0 0; color: #F6BCC4; font-size: .9rem; }
.noel-lecon__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 18px 0 0; }
.noel-lecon__actions .lien-fleche { color: var(--n-or-clair); }
.noel-lecon__actions .lien-fleche:hover { color: #FFF3D6; }
.noel-lecon__atouts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .86rem; color: rgba(244,235,216,.75); }
.noel-lecon__atouts li { display: flex; gap: 8px; align-items: center; }
.noel-lecon__atouts .icone { width: 17px; height: 17px; color: var(--n-or); flex: none; }
@keyframes noel-etiquette-lecon { from { transform: rotate(-9deg); } to { transform: rotate(-4deg); } }
@media (max-width: 760px) {
  .noel-lecon { grid-template-columns: minmax(0, 1fr); }
  .noel-lecon__tableau { width: min(70%, 250px); margin-inline: auto; }
  .noel-lecon__form .bouton { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .noel-lecon::before, .noel-lecon__etiquette { animation: none !important; } }
