/* Message des Fêtes (rév. 10) — ruban + section de l'accueil. Réglages : outil-promos.html, onglet Fêtes.
   Palette : nuit #0e1a2b · neige #eef3f8 · lumière #f2c46d · canneberge #8c1a2b · sapin #1f4a3a.
   Les deux thèmes du site (clair « Blanc », sombre « Bleu marine ») sont couverts plus bas. */
:root {
  --f-nuit: #0e1a2b;
  --f-neige: #eef3f8;
  --f-lumiere: #f2c46d;
  --f-canneberge: #8c1a2b;
  --f-sapin: #1f4a3a;
  --f-ruban-h: 38px;
}
:root[data-theme="light"] { --f-accent: #8c1a2b; --f-trace: rgba(11, 18, 32, 0.28); }
:root[data-theme="dark"]  { --f-accent: #f2c46d; --f-trace: rgba(242, 245, 249, 0.32); }

/* ---------- Motif « ceinture fléchée » : chevrons lumière sur sapin ---------- */
.saison-ruban::after,
.fetes-temps::before {
  content: "";
  position: absolute; left: 0; right: 0; height: 5px;
  background:
    linear-gradient(135deg, var(--f-lumiere) 25%, transparent 25%) -5px 0 / 10px 10px,
    linear-gradient(225deg, var(--f-lumiere) 25%, transparent 25%) -5px 0 / 10px 10px,
    linear-gradient(315deg, var(--f-lumiere) 25%, transparent 25%) 0 0 / 10px 10px,
    linear-gradient(45deg,  var(--f-lumiere) 25%, transparent 25%) 0 0 / 10px 10px,
    var(--f-sapin);
}

/* ---------- Ruban en haut de page ---------- */
.saison-ruban {
  position: fixed; top: 0; left: 0; right: 0; z-index: 51;
  height: var(--f-ruban-h);
  display: flex; align-items: center; justify-content: center;
  padding: 0 44px 5px;
  background: var(--f-canneberge); color: #fff8ef;
  font-family: var(--font-body); font-size: 13.5px; line-height: 1; letter-spacing: 0.005em;
}
.saison-ruban::after { bottom: 0; }
.saison-ruban .sr-lien { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.saison-ruban .sr-lien:hover .sr-long, .saison-ruban .sr-lien:hover .sr-court { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 248, 239, 0.55); }
.saison-ruban .sr-lien:focus-visible { outline: 2px solid var(--f-lumiere); outline-offset: 3px; border-radius: 3px; }
.saison-ruban .sr-etoile { color: var(--f-lumiere); font-size: 14px; flex: 0 0 auto; }
.saison-ruban .sr-long, .saison-ruban .sr-court { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saison-ruban .sr-court { display: none; }
.saison-ruban .sr-sep { color: var(--f-lumiere); margin: 0 9px; }
.saison-ruban .sr-fermer {
  position: absolute; right: 8px; top: calc(50% - 2.5px); transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #fff8ef;
  font: 400 20px/1 var(--font-body); cursor: pointer; opacity: 0.8;
}
.saison-ruban .sr-fermer:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.saison-ruban .sr-fermer:focus-visible { outline: 2px solid var(--f-lumiere); outline-offset: 1px; opacity: 1; }
@media (max-width: 760px) {
  .saison-ruban { font-size: 13px; padding: 0 40px 5px 14px; justify-content: flex-start; }
  .saison-ruban .sr-long { display: none; }
  .saison-ruban .sr-court { display: inline; }
}
/* la barre de navigation et la bannière « fermé aujourd'hui » descendent sous le ruban */
body.has-ruban { padding-top: var(--f-ruban-h); }
body.has-ruban .nav { top: var(--f-ruban-h); }
body.has-ruban .ferie-banner { top: calc(68px + var(--f-ruban-h)); }
/* pendant le congé, le ruban dit déjà que c'est fermé : pas de deuxième bannière */
body.has-ruban.saison-pendant .ferie-banner { display: none !important; }
body.has-ruban.saison-pendant.has-ferie .hero { padding-top: 140px; }

/* ---------- Haut de l'accueil en paysage d'hiver (réglage « fond_accueil ») ---------- */
.hero-hiver { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero.avec-hiver > .container { position: relative; z-index: 1; }
/* le contenu du haut de page s'arrête au-dessus de la forêt : les sapins ne passent jamais derrière du texte */
.hero.avec-hiver { padding-bottom: calc(clamp(120px, 15vw, 220px) + 12px); }
@media (max-width: 760px) { .hero.avec-hiver { padding-bottom: 124px; } }
:root[data-theme="light"] .hero-hiver { background: linear-gradient(180deg, #f6f8fb 0%, #eef3f9 55%, #e3ebf5 100%); }
:root[data-theme="dark"] .hero-hiver {
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 27% 9%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 41% 24%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 58% 12%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.3px 1.3px at 71% 30%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1px 1px at 86% 16%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 94% 38%, rgba(255,255,255,.5), transparent 60%),
    linear-gradient(180deg, #08162a 0%, #0b1a2e 60%, #10243f 100%);
}
.hh-sapins { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 15vw, 220px); background-repeat: repeat-x; background-position: center bottom; background-size: auto 100%; }
:root[data-theme="light"] .hh-sapins { background-image: url("fetes-sapins-clair.svg"); }
:root[data-theme="dark"] .hh-sapins { background-image: url("fetes-sapins-sombre.svg"); }
.hero-hiver .fetes-neige { z-index: 0; }
:root[data-theme="light"] .hero-hiver .fetes-neige i { background: radial-gradient(circle, #9fb4cc 0%, rgba(159, 180, 204, 0.8) 45%, rgba(159, 180, 204, 0) 72%); }
@media (max-width: 760px) { .hh-sapins { height: 110px; } }

/* neige légère sur toute la page d'accueil (réglage « neige_page ») */
.saison-neige-page { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.saison-neige-page i {
  position: absolute; top: -10px; display: block; border-radius: 50%;
  animation-name: fetes-neige-page; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform;
}
:root[data-theme="light"] .saison-neige-page i { background: radial-gradient(circle, #a7bad0 0%, rgba(167, 186, 208, 0.7) 45%, rgba(167, 186, 208, 0) 72%); }
:root[data-theme="dark"] .saison-neige-page i { background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 0) 72%); }
@keyframes fetes-neige-page {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(var(--derive, 12px), 52vh, 0); }
  100% { transform: translate3d(calc(var(--derive, 12px) * -0.5), 106vh, 0); }
}
@media (prefers-reduced-motion: reduce) { .saison-neige-page, .hero-hiver .fetes-neige { display: none; } }

/* ---------- Section « Joyeux Noël » de l'accueil ---------- */
.fetes { padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 7vw, 96px); scroll-margin-top: 120px; }
.fetes-banniere {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 44vw, 600px);
  display: flex; align-items: center;
  border-radius: 28px;
  background: var(--f-nuit); color: var(--f-neige);
  box-shadow: 0 30px 70px -30px rgba(8, 14, 26, 0.55);
}
.fetes-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; z-index: -3; }
.fetes-banniere::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 18, 32, 0.92) 0%, rgba(10, 18, 32, 0.72) 34%, rgba(10, 18, 32, 0.12) 64%, rgba(10, 18, 32, 0) 80%),
    linear-gradient(0deg, rgba(10, 18, 32, 0.45) 0%, rgba(10, 18, 32, 0) 30%);
}
.fetes-banniere.sans-photo { background: radial-gradient(120% 90% at 75% 40%, #1d3352 0%, var(--f-nuit) 60%); }
.fetes-texte { position: relative; padding: clamp(36px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 110px); max-width: 680px; }
.fetes-tag { font-family: var(--font-body); font-size: 15px; color: var(--f-lumiere); margin-bottom: 18px; }
.fetes-titre {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(46px, 7.2vw, 100px); line-height: 0.96; letter-spacing: -0.025em;
  color: var(--f-neige); margin: 0 0 26px; text-wrap: balance;
}
.fetes-titre em { display: block; font-style: normal; font-size: 0.52em; line-height: 1.12; letter-spacing: -0.012em; color: rgba(238, 243, 248, 0.86); margin-top: 0.22em; }
.fetes-message { max-width: 46ch; }
.fetes-message p { font-family: var(--font-body); font-size: clamp(16px, 1.35vw, 18px); line-height: 1.62; color: rgba(238, 243, 248, 0.88); margin: 0 0 12px; }
.fetes-signature { margin-top: 20px; font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--f-lumiere); }

/* neige : petits flocons doux qui tombent sur la photo */
.fetes-neige { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fetes-neige i {
  position: absolute; top: -12px; display: block; border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0) 72%);
  animation-name: fetes-neige; animation-timing-function: linear; animation-iteration-count: infinite;
  will-change: transform;
}
@keyframes fetes-neige {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(var(--derive, 10px), 320px, 0); }
  100% { transform: translate3d(calc(var(--derive, 10px) * -0.4), 660px, 0); }
}
@media (prefers-reduced-motion: reduce) { .fetes-neige { display: none; } }

/* sous la bannière : la ligne du temps du congé + les 3 cartes posées sur le bord */
.fetes-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.fetes-grille.sans-temps { grid-template-columns: 1fr; }
.fetes-cartes { display: flex; justify-content: center; gap: clamp(10px, 1.6vw, 22px); margin-top: -96px; padding: 0 8px; position: relative; z-index: 2; }
.fetes-photo {
  margin: 0; flex: 1 1 0; max-width: 220px;
  background: #fffdf8; padding: 9px 9px 0; border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 34px -12px rgba(8, 14, 26, 0.5);
}
.fetes-photo:nth-child(1) { transform: rotate(-4deg) translateY(6px); }
.fetes-photo:nth-child(2) { transform: rotate(1.5deg) translateY(-8px); }
.fetes-photo:nth-child(3) { transform: rotate(4.5deg) translateY(10px); }
.fetes-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.fetes-photo figcaption { font-family: var(--font-display); font-style: italic; font-size: 15px; line-height: 1.25; color: #2a2a2a; text-align: center; padding: 10px 4px 12px; }

.fetes-temps { position: relative; padding-top: 30px; margin-top: clamp(36px, 4vw, 52px); }
.fetes-temps::before { top: 0; right: auto; width: 132px; border-radius: 2px; }
.fetes-temps h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.01em; color: var(--cream); margin: 0 0 22px; }
.ft-ligne { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
/* les pas dans la neige entre les étapes */
.ft-ligne::before {
  content: ""; position: absolute; top: 7px; left: 8px; right: calc(33.333% - 8px); height: 2px;
  background: radial-gradient(circle, var(--f-trace) 1.4px, transparent 1.8px) 0 0 / 11px 2px repeat-x;
}
.ft-ligne li { position: relative; padding: 30px 12px 0 0; }
.ft-ligne li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--f-accent);
}
.ft-ligne li.ft-retour::before { background: var(--f-accent); }
.ft-jour { display: block; font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 42px); line-height: 1; letter-spacing: -0.02em; color: var(--cream); }
.ft-mois { display: block; font-family: var(--font-body); font-size: 14px; color: var(--cream-dim); margin-top: 6px; }
.ft-quoi { display: block; font-family: var(--font-body); font-size: 15.5px; font-weight: 600; color: var(--cream); margin-top: 12px; }
.ft-retour .ft-quoi { color: var(--f-accent); }
.ft-note { font-family: var(--font-body); font-size: 15px; color: var(--cream-dim); margin: 26px 0 0; max-width: 60ch; }
.ft-note a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.ft-note a:hover { text-decoration-color: currentColor; }
.ft-note a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

@media (max-width: 1000px) {
  .fetes-grille { grid-template-columns: 1fr; }
  .fetes-cartes { order: -1; margin-top: -70px; }
  .fetes-banniere { align-items: flex-end; min-height: 560px; }
  .fetes-banniere::after { background: linear-gradient(0deg, rgba(10, 18, 32, 0.94) 0%, rgba(10, 18, 32, 0.78) 42%, rgba(10, 18, 32, 0.2) 72%, rgba(10, 18, 32, 0.05) 100%); }
  .fetes-fond { object-position: 66% 40%; }
  .fetes-texte { padding-bottom: 104px; }
}
@media (max-width: 760px) {
  /* sur téléphone : la photo en haut (on voit le chalet), le texte en dessous sur fond de nuit */
  .fetes-banniere { display: block; min-height: 0; }
  .fetes-fond { position: relative; display: block; height: 300px; object-position: 60% 62%; z-index: -3; }
  .fetes-banniere::after { inset: 0 0 auto 0; height: 300px; background: linear-gradient(0deg, var(--f-nuit) 0%, rgba(14, 26, 43, 0.55) 22%, rgba(14, 26, 43, 0) 55%); }
  .fetes-texte { padding: 0 24px 96px; margin-top: -34px; }
}
@media (max-width: 560px) {
  .fetes-banniere { border-radius: 20px; }
  .fetes-fond, .fetes-banniere::after { height: 240px; }
  .fetes-texte { padding: 0 22px 88px; }
  .fetes-cartes { margin-top: -62px; gap: 8px; padding: 0; }
  .fetes-photo { padding: 5px 5px 0; }
  .fetes-photo figcaption { font-size: 12px; padding: 6px 2px 8px; }
  .ft-ligne { grid-template-columns: 1fr; gap: 18px; }
  .ft-ligne::before { top: 8px; bottom: 24px; left: 7px; right: auto; width: 2px; height: auto; background: radial-gradient(circle, var(--f-trace) 1.4px, transparent 1.8px) 0 0 / 2px 11px repeat-y; }
  .ft-ligne li { padding: 0 0 0 34px; }
  .ft-jour { font-size: 30px; }
}

/* impression (fiches produit, etc.) : ni ruban ni neige */
@media print {
  .saison-ruban, .saison-neige-page, .hero-hiver { display: none !important; }
  body.has-ruban { padding-top: 0 !important; }
  body.has-ruban .nav { top: 0 !important; }
  .fetes-neige { display: none !important; }
}
