/* ==========================================================================
   LES FÊTES CHEZ RSM · du 1er décembre au 6 janvier, puis plus rien.
   Le serveur n'ajoute ce fichier (et fetes.js) aux pages que pendant la saison
   (src/saison.ts). Après les fêtes : supprimer site/fetes.css et site/fetes.js.
   ========================================================================== */

/* neige : une toile posée sur la page, jamais sur les clics */
.fx-snow { position: fixed; inset: 0; z-index: 60; pointer-events: none; }

/* ---------- pastille « Offrir » flottante ---------- */
.fx-offrir { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70;
  display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .6rem .55rem 1rem; border-radius: 999px;
  background: var(--terra-deep); color: #fff; font: 700 .9rem/1.2 var(--sans); text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(60, 25, 10, .55); transform: translateY(140%); transition: transform .5s var(--ease); }
.fx-offrir.on { transform: none; }
.fx-offrir:hover { background: var(--terra); }
.fx-offrir small { display: block; font-weight: 600; font-size: .72rem; opacity: .85; }
.fx-offrir .fx-j { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .4rem; border-radius: 999px;
  background: var(--gold); color: #2a1a0c; font-weight: 800; font-size: .82rem; }
.fx-offrir button { all: unset; cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  margin-left: -.2rem; font-size: 1rem; opacity: .75; }
.fx-offrir button:hover { opacity: 1; background: rgba(255, 255, 255, .15); }
@media (max-width: 720px) {
  .fx-offrir { left: 12px; right: 12px; justify-content: space-between; padding: .4rem .5rem .4rem .45rem; }
  .fx-offrir .fx-j { min-width: 2.2rem; height: 2.2rem; }
  /* au-dessus du dock du site (Soins, Rendez-vous…) */
  body:has(.dock) .fx-offrir { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- bandeau de l'accueil ---------- */
.fx-band { position: relative; padding: clamp(2.2rem, 6vw, 3.6rem) 0 calc(clamp(2.2rem, 6vw, 3.6rem) + 70px); overflow: hidden;
  background: radial-gradient(120% 140% at 85% 0%, #7e3d20 0%, #4a2616 55%, #2a1a12 100%); color: var(--light); }
.fx-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.fx-band .eyebrow { color: var(--gold); margin-bottom: .6rem; }
.fx-band h2 { font: 500 clamp(2rem, 5vw, 3.1rem)/1.05 var(--serif); margin: 0 0 .8rem; }
.fx-band h2 em { color: var(--sand); }
.fx-band p { color: rgba(246, 239, 230, .86); max-width: 52ch; }
.fx-band .fx-ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.fx-band .btn--ghost { color: var(--light); border-color: rgba(246, 239, 230, .45); }
.fx-band .fx-tree-slot { justify-self: center; width: min(100%, 340px); }
@media (max-width: 760px) { .fx-band .wrap { grid-template-columns: 1fr; } .fx-band .fx-tree-slot { width: min(100%, 280px); } }

/* ---------- carte cadeau : habit de fête ---------- */
.gift-visual.fx-dressed { position: relative; overflow: hidden; }
.gift-visual.fx-dressed::before { content: ""; position: absolute; top: 0; bottom: 0; left: 22%; width: 14px; background: linear-gradient(90deg, #c99130, var(--gold), #c99130); opacity: .9; }
.gift-visual.fx-dressed::after { content: ""; position: absolute; left: 0; right: 0; top: 34%; height: 14px; background: linear-gradient(#c99130, var(--gold), #c99130); opacity: .9; }
.gift-visual.fx-dressed > * { position: relative; z-index: 1; }

/* ---------- guide des idées cadeaux (page Cartes cadeaux) ---------- */
.fx-idees { padding: clamp(2.6rem, 7vw, 4.5rem) 0; }
.fx-idees .head { max-width: 680px; margin-bottom: 1.6rem; }
.fx-idees h2 { font: 500 clamp(2rem, 5vw, 3rem)/1.05 var(--serif); margin: 0 0 .6rem; }
.fx-idees h2 em { color: var(--accent-ink); }
.fx-bonus { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; margin-bottom: 1.6rem; border-radius: 20px;
  background: color-mix(in srgb, var(--gold) 22%, var(--bg)); border: 1.5px dashed color-mix(in srgb, var(--gold) 70%, var(--terra)); }
.fx-bonus b { color: var(--terra-ink); }
.fx-bonus .fx-ico { font-size: 1.6rem; flex: none; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.fx-idea { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); }
.fx-idea .fx-amt { font: 600 2rem/1 var(--serif); color: var(--terra-ink); }
.fx-idea .fx-for { font-weight: 700; }
.fx-idea ul { margin: 0; padding-left: 1.1rem; color: var(--text-soft); font-size: .92rem; }
.fx-idea .fx-plus { font-size: .85rem; font-weight: 700; color: var(--terra-ink); }
.fx-idea .btn { margin-top: auto; }
.fx-autres { margin-top: 2.2rem; }
.fx-autres h3 { font: 600 1.4rem/1.2 var(--serif); margin: 0 0 .9rem; }
.fx-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; }
.fx-links a { display: flex; flex-direction: column; gap: .2rem; padding: .95rem 1.1rem; border-radius: 18px; text-decoration: none; color: inherit;
  border: 1.5px solid var(--line); transition: border-color .2s, transform .2s; }
.fx-links a:hover { border-color: var(--terra); transform: translateY(-2px); }
.fx-links b { font-size: 1rem; }
.fx-links span { font-size: .86rem; color: var(--text-soft); }
.fx-line { margin-top: .7rem; font-weight: 700; color: var(--terra-ink); font-size: .92rem; }
.fx-line:empty { display: none; }

/* ---------- le sapin des vœux ---------- */
.fx-tree { position: relative; margin: 0; display: grid; gap: .6rem; justify-items: center; }
.fx-tree svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 24px rgba(20, 12, 6, .35)); }
.fx-tree figcaption { display: grid; gap: .35rem; width: 100%; text-align: center; font-size: .9rem; }
.fx-tree figcaption small { opacity: .8; font-size: .8rem; }
.fx-hang { justify-self: center; background: #e4a547; color: #2a1a0c; border-color: transparent; }
.fx-hang:hover { background: #f3c063; }
.fx-hang:disabled { background: transparent; color: inherit; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); cursor: default; opacity: .85; }
.fx-mine { cursor: pointer; outline: none; filter: drop-shadow(0 0 6px rgba(243, 192, 99, .85)); }
.fx-mine:focus-visible circle:first-child { stroke-width: 3; }
.fx-new { transform-box: fill-box; transform-origin: center top; animation: fx-drop .9s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes fx-drop { from { transform: translateY(-60px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.fx-b { animation: fx-twinkle 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: center; }
@keyframes fx-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.fx-idee { cursor: pointer; transform-box: fill-box; transform-origin: center; animation: fx-pulse 3s ease-in-out infinite; outline: none; }
.fx-idee:hover circle:first-child, .fx-idee:focus-visible circle:first-child { fill: #f3c063; }
.fx-idee:focus-visible circle:last-child { stroke-width: 2.5; opacity: 1; }
@keyframes fx-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.fx-tree.is-lit .fx-star { filter: drop-shadow(0 0 8px #f3c063); animation: fx-glow 2s ease-in-out infinite; }
@keyframes fx-glow { 0%, 100% { opacity: 1; } 50% { opacity: .75; } }
.fx-wiggle svg { animation: fx-shake .8s ease-in-out; }
.fx-bubble { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); z-index: 3; width: min(92%, 270px); display: grid; gap: .45rem; padding: .9rem 2rem .9rem 1rem;
  border-radius: 16px; background: var(--bg); color: var(--text); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); text-align: left; font-size: .9rem; }
.fx-bubble[hidden] { display: none; }
.fx-bubble b { font-size: 1rem; }
.fx-bubble .btn { justify-self: start; }
.fx-bubble button { all: unset; cursor: pointer; position: absolute; top: .4rem; right: .6rem; font-size: 1.2rem; opacity: .7; }
.fx-sapin { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 2rem; align-items: center; margin: 0 0 2rem; padding: 1.4rem; border-radius: 24px;
  background: radial-gradient(120% 140% at 0% 0%, #4a2616, #2a1a12); color: var(--light); }
.fx-sapin h3 { font: 500 clamp(1.6rem, 4vw, 2.2rem)/1.1 var(--serif); margin: 0 0 .6rem; }
.fx-sapin h3 em { color: var(--sand); }
.fx-sapin p { color: rgba(246, 239, 230, .85); }
.fx-sapin .eyebrow { color: var(--gold); }
@media (max-width: 700px) { .fx-sapin { grid-template-columns: 1fr; text-align: center; } .fx-sapin .fx-tree-slot { width: min(100%, 280px); margin: 0 auto; } }


/* ---------- calendrier de l'Avent ---------- */
.fx-avent { padding: clamp(2.6rem, 7vw, 4.5rem) 0; background: var(--bg-2); }
.fx-avent .head { max-width: 640px; margin-bottom: 1.4rem; }
.fx-avent h2 { font: 500 clamp(2rem, 5vw, 3rem)/1.05 var(--serif); margin: 0 0 .6rem; }
.fx-avent h2 em { color: var(--accent-ink); }
.fx-doors { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .55rem; }
@media (max-width: 760px) { .fx-doors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fx-door { all: unset; box-sizing: border-box; cursor: pointer; aspect-ratio: 1; display: grid; place-items: center; border-radius: 16px; position: relative;
  background: linear-gradient(145deg, #7e3d20, #5a2a17); color: #fbf3e8; font: 600 1.5rem/1 var(--serif); box-shadow: inset 0 0 0 1.5px rgba(228, 165, 71, .35); transition: transform .2s; }
.fx-door:hover:not(.is-locked) { transform: translateY(-3px) rotate(-1deg); }
.fx-door:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fx-door.is-today { box-shadow: inset 0 0 0 2.5px var(--gold), 0 10px 22px -10px rgba(228, 165, 71, .8); animation: fx-pulse 2.4s ease-in-out infinite; }
.fx-door.is-flash:not(.is-locked) { background: linear-gradient(145deg, #e4a547, #b9782a); color: #2a1a0c; }
.fx-door.is-seen::after { content: "✓"; position: absolute; top: 6px; right: 8px; font: 700 .7rem/1 var(--sans); opacity: .7; }
.fx-door.is-locked { cursor: default; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-soft); box-shadow: inset 0 0 0 1px var(--line); }
.fx-optin { margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); max-width: 640px; }
.fx-optin[hidden], .fx-optin__row[hidden] { display: none; }
.fx-optin__row { display: flex; gap: .5rem; margin: .6rem 0; }
.fx-optin__row input { flex: 1; min-width: 0; min-height: var(--tap); padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: inherit; font: inherit; }
.fx-optin__msg:empty { display: none; }
.fx-case { border: 0; border-radius: 24px; padding: 0; max-width: min(92vw, 440px); background: var(--bg); color: var(--text); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.fx-case::backdrop { background: rgba(20, 12, 6, .55); backdrop-filter: blur(3px); }
.fx-case__in { padding: 1.6rem 1.5rem 1.3rem; display: grid; gap: .6rem; }
.fx-case h3 { font: 500 1.8rem/1.1 var(--serif); margin: 0; }
.fx-case__cta:empty { display: none; }
@media (max-width: 560px) { .fx-case { margin: auto 0 0; max-width: 100vw; width: 100vw; border-radius: 24px 24px 0 0; } .fx-case__in { padding-bottom: calc(1.3rem + env(safe-area-inset-bottom)); } }

/* ---------- entreprises ---------- */
.fx-pro { padding: clamp(2.6rem, 7vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.fx-pro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.fx-pro h2 { font: 500 clamp(2rem, 5vw, 3rem)/1.05 var(--serif); margin: 0 0 .6rem; }
.fx-pro h2 em { color: var(--accent-ink); }
.fx-pro__list { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--text-soft); }
.fx-pro__form { display: grid; gap: .2rem; padding: 1.3rem; border-radius: 22px; background: var(--bg-2); }
.fx-pro__two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.fx-pro__form .btn { margin-top: .5rem; }
.fx-pro__msg:empty { display: none; }
@media (max-width: 760px) { .fx-pro__grid, .fx-pro__two { grid-template-columns: 1fr; gap: 0; } .fx-pro__grid { gap: 1.4rem; } }

/* ---------- petits secrets ---------- */
.fx-toast { position: fixed; left: 50%; top: calc(84px + env(safe-area-inset-top)); z-index: 1000; max-width: min(92vw, 420px);
  transform: translate(-50%, -160%); padding: .8rem 1.1rem; border-radius: 18px; background: #2a1a12; color: var(--light);
  font: 600 .95rem/1.4 var(--sans); text-align: center; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); transition: transform .5s var(--ease); }
.fx-toast.on { transform: translate(-50%, 0); }
.fx-orn { all: unset; cursor: pointer; display: inline-block; width: 13px; height: 13px; margin-left: .35em; vertical-align: .55em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe1a1, var(--gold) 45%, #a8681b); box-shadow: 0 0 0 2px rgba(228, 165, 71, .25); animation: fx-swing 3.2s ease-in-out infinite; transform-origin: 50% -6px; }
.fx-orn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@keyframes fx-swing { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.fx-shake { animation: fx-shake .7s ease-in-out; }
@keyframes fx-shake { 0%, 100% { transform: none; } 20% { transform: rotate(-9deg) scale(1.06); } 40% { transform: rotate(8deg) scale(1.06); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
.fx-sleigh { position: fixed; top: 12vh; left: -220px; z-index: 61; font-size: 2.2rem; pointer-events: none; white-space: nowrap; animation: fx-fly 9s linear forwards; }
@keyframes fx-fly { 0% { transform: translate(0, 0); } 50% { transform: translate(60vw, -4vh); } 100% { transform: translate(calc(100vw + 260px), 2vh); } }

@media (prefers-reduced-motion: reduce) {
  .fx-orn, .fx-shake, .fx-b, .fx-idee, .fx-door.is-today, .fx-tree.is-lit .fx-star, .fx-wiggle svg, .fx-new { animation: none; }
  .fx-sleigh { display: none; }
  .fx-offrir, .fx-toast { transition: none; }
}
@media print { .fx-snow, .fx-offrir, .fx-toast, .fx-sleigh { display: none !important; } }
