/* End-of-year touches. Everything is hidden unless <html> carries the class "fetes" (set by the inline script in
   index.html's <head>, 1 Dec – 6 Jan, Tunisia time). The worker swaps in the festive hero photo for the same dates
   (festiveSeason in seo/metadata.js). Preview any day with ?fetes=1 or ?fetes=nouvel-an, hide with ?fetes=0. */
html:not(.fetes) .fetes-only { display: none !important; }

/* 1. Ribbon above the header: beige, one line, no motion. */
.fetes-ribbon { position: relative; z-index: 61; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 36px; padding: 6px 16px;
  background: #ece5d8; color: #111; font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.3; text-align: center; }
.fetes-ribbon .dot { width: 3px; height: 3px; border-radius: 50%; background: #111; opacity: .45; flex: none; }
.fetes-ribbon svg { width: 13px; height: 13px; flex: none; fill: #9a342b; }
.fetes-ribbon a { display: inline-flex; align-items: center; gap: 6px; color: #111; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fetes-ribbon a svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 700px) {
  .fetes-ribbon { min-height: 34px; gap: 10px; font-size: 11.5px; }
  .fetes-ribbon .wide { display: none; }
}

/* 1b. Light garland hanging from the ribbon: a thin wire with small warm bulbs (static drawing), two glow layers that
   breathe in turn (opacity only). Sits over the top of the header, never takes space. */
.fetes-garland { position: absolute; left: 0; right: 0; top: 100%; height: 16px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='16'%3E%3Cpath d='M0 1Q48 9 96 1' fill='none' stroke='%23111' stroke-opacity='.5' stroke-width='.8'/%3E%3Cg fill='%23111' fill-opacity='.55'%3E%3Crect x='15' y='3' width='2' height='1.8' rx='.4'/%3E%3Crect x='47' y='4.8' width='2' height='1.8' rx='.4'/%3E%3Crect x='79' y='3' width='2' height='1.8' rx='.4'/%3E%3C/g%3E%3Cg fill='%23fff6e2' stroke='%23111' stroke-opacity='.22' stroke-width='.6'%3E%3Cellipse cx='16' cy='7.6' rx='2.1' ry='3'/%3E%3Cellipse cx='48' cy='9.4' rx='2.1' ry='3'/%3E%3Cellipse cx='80' cy='7.6' rx='2.1' ry='3'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 96px 16px repeat-x; }
.fetes-garland::before, .fetes-garland::after { content: ""; position: absolute; inset: 0; opacity: .25; background-size: 96px 16px; background-repeat: repeat-x;
  animation: fetes-glow 2.8s ease-in-out infinite alternate; }
.fetes-garland::before { background-image: radial-gradient(circle at 16px 7.6px, rgba(255,214,140,.95) 0 1.6px, rgba(255,214,140,.35) 3px, transparent 7px), radial-gradient(circle at 80px 7.6px, rgba(255,214,140,.95) 0 1.6px, rgba(255,214,140,.35) 3px, transparent 7px); }
.fetes-garland::after { background-image: radial-gradient(circle at 48px 9.4px, rgba(255,214,140,.95) 0 1.6px, rgba(255,214,140,.35) 3px, transparent 7px); animation-delay: -1.4s; }
@keyframes fetes-glow { from { opacity: .2; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fetes-garland::before, .fetes-garland::after { animation: none; opacity: .7; } }

/* 2. Hanging stars in the hero: thin threads with small four-point stars, static. */
.hero .fetes-stars { position: absolute; z-index: 1; top: 0; right: 19%; width: 300px; height: 320px; max-width: none; pointer-events: none; }
.fetes-stars line { stroke: rgba(255,255,255,.42); stroke-width: 1; }
.fetes-stars path { fill: #f4efe6; }
.fetes-stars path.red { fill: #b8473b; }
.hero .hero-layout { position: relative; z-index: 2; }
@media (max-width: 900px) { .hero .fetes-stars { top: 64px; right: 0; width: 180px; height: 200px; opacity: .9; } }
/* Phone: no hanging stars. Below the header the threads started in mid-air and crossed the photo like scratches
   (sister's feedback, 3 Dec); the ribbon's red star, the gift chip and the gift tiles carry the season there. */
@media (max-width: 700px) { .hero .fetes-stars { display: none; } }

/* 3. Gift ideas: four tiles in the site's own card style. */
.fetes-chip { display: inline-flex !important; align-items: center; gap: 7px; color: #fff !important; background: #111; border-color: #111 !important; }
.quick-nav .fetes-chip svg { width: 12px; height: 12px; fill: #e7a59c; stroke: none; }
section.section.fetes-gifts { background: #f3eee6; border-radius: 28px; padding: 56px clamp(20px, 4vw, 56px); margin-top: 24px; }
.gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.gift-grid a { display: flex; flex-direction: column; height: 100%; padding: 14px 14px 20px; border-radius: 20px; background: #fff; color: #111; text-decoration: none;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1); }
.gift-grid a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17,17,17,.08); }
.gift-photo { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 18px; border-radius: 14px; background: #fff; overflow: hidden; }
.gift-photo img { width: 82%; height: 82%; object-fit: contain; }
.gift-grid small { padding: 0 6px; color: #9a342b; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.gift-grid strong { margin: 8px 0 16px; padding: 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.gift-grid .gift-more { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; white-space: nowrap; margin-top: auto; padding: 0 6px; font-size: 12px; font-weight: 700; }
.gift-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fetes-gifts .gift-note { margin: 22px 0 0; color: #626262; font-size: 13px; }
@media (max-width: 900px) {
  section.section.fetes-gifts { border-radius: 22px; padding: 32px 16px 28px; margin-top: 8px; }
  .gift-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gift-grid a { padding: 8px 8px 14px; border-radius: 16px; }
  .gift-photo { margin-bottom: 12px; }
  .gift-grid small { font-size: 9px; letter-spacing: .12em; }
  .gift-grid strong { margin: 6px 0 12px; font-size: 15px; }
}

/* 4. Slow falling sparkles over the hero photo for the whole season (transform only, three loops, then they stop), with a pause button. */
.fetes-sparkles, .fetes-pause { display: none; }
.fetes .fetes-sparkles { display: block; position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.fetes .fetes-sparkles::before, .fetes .fetes-sparkles::after { content: ""; position: absolute; left: 0; right: 0; top: -640px; height: calc(100% + 640px);
  background-image: radial-gradient(circle at 24px 40px, rgba(255,255,255,.9) 0 1.6px, transparent 2.3px), radial-gradient(circle at 146px 12px, rgba(236,229,216,.8) 0 1.1px, transparent 1.8px), radial-gradient(circle at 252px 96px, rgba(255,255,255,.9) 0 1.9px, transparent 2.6px), radial-gradient(circle at 84px 176px, rgba(236,229,216,.8) 0 1.2px, transparent 1.9px), radial-gradient(circle at 206px 228px, rgba(255,255,255,.9) 0 1.5px, transparent 2.2px), radial-gradient(circle at 298px 286px, rgba(236,229,216,.8) 0 1.1px, transparent 1.8px), radial-gradient(circle at 40px 300px, rgba(255,255,255,.9) 0 1.3px, transparent 2.0px);
  background-size: 320px 320px;
  animation: fetes-fall-a 32s linear 3 both; }
.fetes .fetes-sparkles::after { top: -520px; height: calc(100% + 520px); opacity: .7;
  background-image: radial-gradient(circle at 60px 30px, rgba(236,229,216,.8) 0 1.1px, transparent 1.8px), radial-gradient(circle at 190px 80px, rgba(255,255,255,.9) 0 1.4px, transparent 2.1px), radial-gradient(circle at 20px 150px, rgba(255,255,255,.9) 0 1px, transparent 1.7px), radial-gradient(circle at 130px 200px, rgba(236,229,216,.8) 0 1.2px, transparent 1.9px), radial-gradient(circle at 230px 240px, rgba(255,255,255,.9) 0 0.9px, transparent 1.6px);
  background-size: 260px 260px;
  animation-name: fetes-fall-b; animation-duration: 40s; }
/* Each layer moves by exactly two of its tiles, so every loop joins up without a jump. */
@keyframes fetes-fall-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 640px, 0); } }
@keyframes fetes-fall-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 520px, 0); } }
.fetes .fetes-pause { display: grid; place-items: center; position: absolute; z-index: 3; left: 24px; top: 100px; width: 34px; height: 34px; padding: 0;
  border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(17,17,17,.35); color: #fff; cursor: pointer; }
@media (max-width: 900px) { .fetes .fetes-pause { left: 16px; top: 80px; } }
.fetes-pause svg { width: 14px; height: 14px; fill: currentColor; }
.fetes-paused .fetes-sparkles::before, .fetes-paused .fetes-sparkles::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .fetes .fetes-sparkles, .fetes .fetes-pause { display: none; } }

/* Phone: the four gift tiles sit in one row that slides sideways, so the section stays short. */
@media (max-width: 700px) {
  .fetes-gifts .section-heading { margin-bottom: 20px; }
  .gift-grid { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .gift-grid::-webkit-scrollbar { display: none; }
  .gift-grid li { flex: 0 0 144px; min-width: 0; scroll-snap-align: start; }
  .gift-grid .gift-more { font-size: 11.5px; gap: 6px; }
  .gift-grid strong { font-size: 14.5px; }
  .fetes-gifts .gift-note { margin-top: 16px; font-size: 12px; }
}

/* Small phones: the ribbon keeps one line. */
@media (max-width: 359px) {
  .fetes-ribbon { gap: 8px; font-size: 11px; }
  .fetes-ribbon .dot, .fetes-ribbon a { display: none; }
}

/* 5. Packs des fêtes (filled by packs-fetes.js from packs-fetes-data.js), homepage and /promotions. Self-contained styles,
   because the two pages do not share their section styles. */
.fetes-packs:empty { display: none; }
.fetes-packs { max-width: 1440px; margin: 0 auto; padding: clamp(48px, 6vw, 88px) clamp(16px, 4vw, 56px); color: #111; font-family: var(--sans, "DM Sans", system-ui, sans-serif); scroll-margin-top: 80px; }
.fetes-packs .fp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.fetes-packs .fp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: #111; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.fetes-packs .fp-eyebrow svg, .fetes-packs .fp-tag svg { width: 11px; height: 11px; fill: #9a342b; flex: none; }
.fetes-packs .fp-head h2 { margin: 0; font-family: inherit; font-size: clamp(36px, 4.1vw, 60px); font-weight: 600; line-height: 1.04; letter-spacing: -.06em; }
.fetes-packs .fp-head h2 em { font-family: inherit; font-style: normal; font-weight: inherit; color: #8a8a8a; }
.fetes-packs .fp-head > p { max-width: 360px; margin: 0; color: #626262; font-size: 14px; line-height: 1.55; }
.fetes-packs .fp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.fetes-packs .fp-grid > li { min-width: 0; }
.fp-card { display: flex; flex-direction: column; height: 100%; border-radius: 28px; background: #f3eee6; }
.fp-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 5%; height: clamp(230px, 22vw, 300px); margin: 10px 10px 0; padding: 52px 7% 20px; border-radius: 20px; background: #fff; overflow: hidden; }
.fp-stage img { display: block; flex: 0 1 auto; width: auto; min-width: 0; max-width: 46%; height: calc(var(--h, 1) * 100%); object-fit: contain; object-position: 50% 100%; mix-blend-mode: multiply; }
.fp-tag { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: #f3eee6; color: #111; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fp-badge { position: absolute; top: 16px; right: 16px; padding: 6px 11px; border-radius: 999px; background: #9a342b; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.fp-body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 24px; }
.fp-body h3 { margin: 0 0 14px; font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
.fp-items { margin: 0 0 22px; padding: 0; list-style: none; border-top: 1px solid rgba(17,17,17,.12); }
.fp-items a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(17,17,17,.12); color: #111; text-decoration: none; }
.fp-items a strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.fp-items a small { display: block; margin-top: 3px; color: #777; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.fp-items a:hover strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fp-item-price { flex: none; color: #626262; font-size: 13px; white-space: nowrap; }
.fp-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; }
.fp-price { margin: 0; }
.fp-price del { display: block; margin-bottom: 2px; color: #626262; font-size: 13px; }
.fp-price strong { display: block; font-size: 40px; font-weight: 600; line-height: 1.05; letter-spacing: -.05em; }
.fp-price strong small { font-size: 16px; letter-spacing: 0; }
.fp-save { display: block; margin-top: 6px; color: #9a342b; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.fp-order { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; background: #111; color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background-color .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1); }
.fp-order:hover { background: #2c2c2c; transform: translateY(-1px); }
.fp-order svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.fp-note { margin: 16px 0 0; color: #626262; font-size: 12px; line-height: 1.45; }
@media (max-width: 1100px) { .fetes-packs .fp-grid { grid-template-columns: minmax(0, 1fr); max-width: 680px; } }
/* Phone: the packs sit in one row that slides sideways; the next card peeks in. */
@media (max-width: 700px) {
  .fetes-packs { padding: 40px 16px 32px; }
  .fetes-packs .fp-head { display: block; margin-bottom: 22px; }
  .fetes-packs .fp-head > p { margin-top: 12px; font-size: 13px; }
  .fetes-packs .fp-grid { display: flex; align-items: flex-start; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .fetes-packs .fp-grid::-webkit-scrollbar { display: none; }
  .fetes-packs .fp-grid > li { flex: 0 0 86%; scroll-snap-align: start; }
  .fp-card { border-radius: 22px; }
  .fp-stage { height: 210px; margin: 8px 8px 0; padding: 48px 6% 16px; border-radius: 16px; }
  .fp-tag, .fp-badge { top: 12px; }
  .fp-tag { left: 12px; } .fp-badge { right: 12px; }
  .fp-body { padding: 18px 16px 18px; }
  .fp-body h3 { font-size: 21px; }
  .fp-items a strong { font-size: 13px; }
  .fp-price strong { font-size: 34px; }
  .fp-foot { display: block; }
  .fp-order { width: 100%; margin-top: 14px; }
}
