/* ============================================================
   louelafête — PAGE NOËL (maquette Noël C)
   Haut de page avec boules suspendues et neige, trois cartes de
   fêtes, crèche et bandeau sombre de fin de page. Le reste de la
   page garde les styles des pages villes (pack.css).
   Textes relus dans NOEL-C-TEXTES-A-RELIRE.md.
   ============================================================ */

@keyframes noel-monte   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes noel-balance { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes noel-neige   { 0% { transform: translate(0, -20px); } 50% { transform: translate(20px, 300px); } 100% { transform: translate(-8px, 620px); } }
@keyframes noel-flotte-1 { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2.5deg) translateY(-12px); } }
@keyframes noel-flotte-2 { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(4.5deg) translateY(10px); } }
@keyframes noel-flotte-3 { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-3.5deg) translateY(-8px); } }
@keyframes noel-brille  { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- Haut de page ---------- */
.noel-haut { position: relative; overflow: hidden; background: var(--fond-clair); }

.noel-boules { position: absolute; top: 0; left: 0; right: 0; height: 150px; pointer-events: none; }
.noel-boule {
  position: absolute; top: 0;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: top center;
  animation: noel-balance 4s ease-in-out infinite;
}
.noel-boule i { display: block; width: 2px; background: #b9b5a8; }
.noel-boule b {
  display: block; border-radius: 50%;
  box-shadow: inset -6px -8px 14px rgba(0, 0, 0, .22), inset 5px 6px 10px rgba(255, 255, 255, .45);
}
.noel-boule:nth-child(1) { left: 52%; }
.noel-boule:nth-child(1) i { height: 30px; }
.noel-boule:nth-child(1) b { width: 34px; height: 34px; background: #c8423b; }
.noel-boule:nth-child(2) { left: 62%; animation-duration: 5s; animation-delay: -1.5s; }
.noel-boule:nth-child(2) i { height: 58px; }
.noel-boule:nth-child(2) b { width: 26px; height: 26px; background: var(--accent); }
.noel-boule:nth-child(3) { left: 73%; animation-duration: 4.6s; animation-delay: -2.5s; }
.noel-boule:nth-child(3) i { height: 22px; }
.noel-boule:nth-child(3) b { width: 30px; height: 30px; background: var(--primaire); }
.noel-boule:nth-child(4) { left: 84%; animation-duration: 5.4s; animation-delay: -.8s; }
.noel-boule:nth-child(4) i { height: 44px; }
.noel-boule:nth-child(4) b { width: 36px; height: 36px; background: #2f8f6b; }
.noel-boule:nth-child(5) { left: 94%; animation-duration: 4.2s; animation-delay: -3s; }
.noel-boule:nth-child(5) i { height: 34px; }
.noel-boule:nth-child(5) b { width: 28px; height: 28px; background: var(--accent); }

.noel-neige { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.noel-neige span {
  position: absolute; top: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: #c9c5ee;
  animation: noel-neige 12s linear infinite;
}
.noel-neige span:nth-child(1)  { left: 5%;  animation-duration: 11s; animation-delay: -2s; }
.noel-neige span:nth-child(2)  { left: 14%; width: 5px; height: 5px; animation-duration: 15s; animation-delay: -7s; }
.noel-neige span:nth-child(3)  { left: 23%; animation-duration: 13s; animation-delay: -10s; }
.noel-neige span:nth-child(4)  { left: 32%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: -4s; }
.noel-neige span:nth-child(5)  { left: 42%; width: 10px; height: 10px; animation-duration: 16s; animation-delay: -12s; }
.noel-neige span:nth-child(6)  { left: 52%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: -6s; }
.noel-neige span:nth-child(7)  { left: 61%; animation-duration: 14s; animation-delay: -9s; }
.noel-neige span:nth-child(8)  { left: 70%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: -3s; }
.noel-neige span:nth-child(9)  { left: 79%; width: 10px; height: 10px; animation-duration: 17s; animation-delay: -13s; }
.noel-neige span:nth-child(10) { left: 88%; animation-duration: 12s; animation-delay: -8s; }
.noel-neige span:nth-child(11) { left: 95%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: -5s; }

.noel-haut__inner {
  position: relative;
  max-width: var(--max-width); margin: 0 auto;
  padding: 56px 24px 70px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
}
.noel-haut__texte { flex: 1 1 440px; min-width: 0; }
.noel-haut__texte > * { animation: noel-monte .8s ease both; }
.noel-haut__texte > :nth-child(2) { animation-delay: .1s; }
.noel-haut__texte > :nth-child(3) { animation-delay: .25s; }
.noel-haut__texte > :nth-child(4) { animation-delay: .35s; }
.noel-haut__texte > :nth-child(5) { animation-delay: .45s; }

.noel-haut__titre {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Poppins', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--texte);
}
.noel-haut__intro { margin: 22px 0 0; font-size: 19px; line-height: 1.55; color: #5c5a72; }

.noel-encart {
  margin-top: 26px; padding: 18px 20px;
  background: var(--fond-blanc); border: 1px solid var(--bordure); border-radius: 16px;
  display: flex; gap: 14px; align-items: center;
}
.noel-encart svg { flex: none; width: 24px; height: 24px; color: var(--primaire); }
.noel-encart p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--texte); }

.noel-haut__actions { margin-top: 28px; }

.noel-photos { flex: 1 1 400px; min-width: 0; position: relative; height: 500px; }
.noel-photos img {
  position: absolute; display: block;
  object-fit: cover; border-radius: 18px;
  box-shadow: 0 18px 40px rgba(35, 33, 53, .25);
}
.noel-photos img:nth-child(1) { left: 0; top: 10px; width: 58%; height: 360px; object-position: center 45%; animation: noel-flotte-1 7s ease-in-out infinite; }
.noel-photos img:nth-child(2) { right: 0; top: 130px; width: 56%; height: 230px; border: 5px solid var(--fond-clair); animation: noel-flotte-2 8s ease-in-out infinite; }
.noel-photos img:nth-child(3) { left: 22%; bottom: 0; width: 44%; height: 180px; border: 5px solid var(--fond-clair); animation: noel-flotte-3 9s ease-in-out infinite; }

/* ---------- Trois fêtes de Noël ---------- */
.noel-fetes { background: var(--fond-blanc); padding: 80px 0; }
.noel-fetes__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.noel-fetes .section__title { margin-bottom: 36px; }

.noel-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.noel-carte {
  display: flex; flex-direction: column;
  background: var(--fond-clair); color: var(--texte);
  border-radius: 18px; overflow: hidden; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.noel-carte:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(35, 33, 53, .16); color: var(--texte); }
.noel-carte:focus-visible { outline: 3px solid var(--primaire); outline-offset: 3px; }
.noel-carte__photo { position: relative; height: 210px; overflow: hidden; }
.noel-carte__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.noel-carte:hover .noel-carte__photo img { transform: scale(1.06); }
.noel-carte__corps { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.noel-carte h3 {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Poppins', system-ui, sans-serif;
  font-size: 25px; letter-spacing: -.5px; line-height: 1.15;
}
.noel-carte__texte { margin: 0; font-size: 16px; line-height: 1.5; color: #5c5a72; }
.noel-carte__prix {
  margin: 6px 0 0;
  font-family: 'Bricolage Grotesque', 'Poppins', system-ui, sans-serif;
  font-size: 30px; font-weight: 700;
}
.noel-carte__prix span { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 15px; font-weight: 400; color: #5c5a72; }

.noel-carte--sombre { background: var(--fond-sombre); color: var(--texte-clair); }
.noel-carte--sombre:hover { color: var(--texte-clair); }
.noel-carte--sombre .noel-carte__texte { color: #d9d7e8; }
.noel-carte--sombre .noel-carte__prix span { color: var(--texte-clair-2); }

.noel-pastille {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: var(--texte);
  font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}

/* ---------- Galerie (En vrai) ---------- */
.galerie.galerie--noel { background: var(--fond-clair); padding: 70px 0 40px; }
.galerie--noel .section__head { margin-bottom: 28px; }

/* ---------- Crèche et bandeau de fin ---------- */
.noel-creche { display: flex; flex-direction: column; align-items: center; margin-top: 50px; margin-bottom: -2px; }
.noel-creche__dessin { position: relative; width: 70%; max-width: 440px; height: auto; display: block; margin-bottom: -46px; }
.noel-creche__etoile { animation: noel-brille 2.8s ease-in-out infinite; }
.noel-creche__vague { display: block; width: 100%; height: 60px; }

.noel-date { position: relative; background: var(--fond-sombre); color: var(--texte-clair); overflow: hidden; }
.noel-date__etoile { position: absolute; border-radius: 50%; animation: noel-brille 3s ease-in-out infinite; }
.noel-date__etoile:nth-child(1) { top: 40px;  left: 12%; width: 6px; height: 6px; background: #fff; animation-duration: 2.6s; }
.noel-date__etoile:nth-child(2) { top: 90px;  left: 82%; width: 5px; height: 5px; background: var(--accent); animation-duration: 3.2s; animation-delay: -1s; }
.noel-date__etoile:nth-child(3) { top: 200px; left: 24%; width: 4px; height: 4px; background: var(--primaire-vif); animation-duration: 2.9s; animation-delay: -2s; }
.noel-date__etoile:nth-child(4) { top: 230px; left: 70%; width: 6px; height: 6px; background: #fff; animation-duration: 3.6s; animation-delay: -1.6s; }
.noel-date__inner { position: relative; max-width: 760px; margin: 0 auto; padding: 90px 24px; text-align: center; }
.noel-date h2 {
  margin: 0 0 16px;
  font-family: 'Bricolage Grotesque', 'Poppins', system-ui, sans-serif;
  font-weight: 800; font-size: clamp(30px, 5vw, 46px); letter-spacing: -1.2px;
  color: var(--texte-clair);
}
.noel-date p { margin: 0 0 32px; font-size: 19px; line-height: 1.5; color: var(--texte-clair-2); }

/* ---------- Tablette et téléphone : les photos passent sous le texte,
   les boules (au-dessus de la moitié droite) remontent au-dessus du titre ---------- */
@media (max-width: 960px) {
  .noel-haut__inner { padding-top: 104px; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 768px) {
  .noel-boules { transform: scale(.8); transform-origin: top center; }
  .noel-haut__inner { padding: 84px 16px 48px; gap: 36px; }
  .noel-haut__intro { font-size: 17px; }
  .noel-photos { height: 360px; flex-basis: 100%; }
  .noel-photos img:nth-child(1) { height: 250px; }
  .noel-photos img:nth-child(2) { top: 90px; height: 160px; }
  .noel-photos img:nth-child(3) { height: 130px; }
  .noel-fetes { padding: 56px 0; }
  .noel-fetes__inner { padding: 0 16px; }
  .noel-cartes { grid-template-columns: 1fr; }
  .noel-date__inner { padding: 64px 16px; }
  .noel-date p { font-size: 17px; }
}

/* ---------- Téléphone : mêmes règles que l'accueil (mobile-3a.css, 640 px) ----------
   Boules sur toute la largeur, haut de page centré avec un bouton large,
   cartes des fêtes en carrousel 264 px comme les packs : une carte et demie
   visible dit « ça continue à droite ». */
@media (max-width: 640px) {
  .noel-boule:nth-child(1) { left: 6%; }
  .noel-boule:nth-child(2) { left: 26%; }
  .noel-boule:nth-child(3) { left: 48%; }
  .noel-boule:nth-child(4) { left: 70%; }
  .noel-boule:nth-child(5) { left: 90%; }

  .noel-haut__texte { text-align: center; }
  .noel-encart { text-align: left; }
  .noel-haut__actions { display: flex; }
  .noel-haut__actions .btn--primary { flex: 1; min-width: 0; min-height: 48px; text-align: center; }

  .noel-fetes__inner { text-align: center; }
  .noel-cartes {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 6px 20px 14px;
    margin: 0 -16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    text-align: left;
  }
  .noel-cartes::-webkit-scrollbar { display: none; }
  .noel-carte { flex: 0 0 264px; width: 264px; scroll-snap-align: center; }
  .noel-carte:hover { transform: none; }
  .noel-carte__photo { height: 170px; }
  .noel-carte__corps { padding: 18px; }
  .noel-carte h3 { font-size: 21px; }
  .noel-carte__texte { font-size: 15px; }
  .noel-carte__prix { font-size: 26px; }

  .noel-date .btn--primary { display: flex; align-items: center; justify-content: center; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .noel-haut *, .noel-fetes *, .noel-creche *, .noel-date * { animation: none !important; transition: none !important; }
}
