/* ============================================================
   louelafête — PAGE NOUVEL AN (maquette Nouvel An A, plein écran)
   Haut de page sombre : photo qui zoome lentement, trois faisceaux
   laser qui balaient, pastille des dates qui bat. Puis trois packs,
   la galerie et le bandeau de fin, sur fond sombre.
   Sur téléphone : mêmes règles que l'accueil (mobile-3a.css, 640 px).
   Textes relus dans NOUVEL-AN-A-TEXTES-A-RELIRE.md.
   ============================================================ */

@keyframes na-zoom    { from { transform: scale(1); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes na-monte   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes na-balaye  { 0% { transform: rotate(-24deg); } 50% { transform: rotate(22deg); } 100% { transform: rotate(-24deg); } }
@keyframes na-pouls   { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, .55); } 50% { box-shadow: 0 0 0 12px rgba(245, 166, 35, 0); } }

/* ---------- Haut de page ---------- */
.na-haut {
  position: relative; overflow: hidden;
  min-height: 640px; display: flex; align-items: flex-end;
  background: var(--fond-sombre); color: var(--texte-clair);
}
.na-haut__photo,
.na-haut__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.na-haut__photo img { object-fit: cover; animation: na-zoom 18s ease-in-out infinite alternate; }
.na-haut__voile {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35, 33, 53, .35) 0%, rgba(35, 33, 53, .55) 45%, var(--fond-sombre) 100%);
}
.na-faisceau {
  position: absolute; top: -40px; left: 50%;
  width: 3px; height: 900px;
  transform-origin: top center;
  animation: na-balaye 7s ease-in-out infinite;
  pointer-events: none;
}
.na-faisceau:nth-of-type(1) { background: linear-gradient(180deg, rgba(120, 255, 160, .9), rgba(120, 255, 160, 0)); }
.na-faisceau:nth-of-type(2) { background: linear-gradient(180deg, rgba(255, 90, 130, .85), rgba(255, 90, 130, 0)); animation-duration: 9s; animation-direction: reverse; }
.na-faisceau:nth-of-type(3) { background: linear-gradient(180deg, rgba(139, 133, 224, .9), rgba(139, 133, 224, 0)); animation-duration: 11s; animation-delay: -4s; }

.na-haut__inner {
  position: relative;
  max-width: var(--max-width); width: 100%; box-sizing: border-box;
  margin: 0 auto; padding: 120px 24px 64px;
}
.na-haut__inner > * { animation: na-monte .8s ease both; }
.na-haut__inner > :nth-child(2) { animation-delay: .1s; }
.na-haut__inner > :nth-child(3) { animation-delay: .25s; }
.na-haut__inner > :nth-child(4) { animation-delay: .4s; }

.na-haut .section__kicker {
  margin: 0 0 16px;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.na-haut__titre {
  margin: 0; max-width: 820px;
  font-family: 'Bricolage Grotesque', 'Poppins', system-ui, sans-serif;
  font-weight: 800; font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02; letter-spacing: -1.8px;
  color: var(--texte-clair);
}
.na-haut__titre span {
  display: block; margin-top: 14px;
  font-size: clamp(17px, 2vw, 21px); font-weight: 600;
  line-height: 1.3; letter-spacing: 0;
  color: #d9d7e8;
}
.na-haut__intro { margin: 22px 0 0; max-width: 620px; font-size: 20px; line-height: 1.5; color: #d9d7e8; }

.na-haut__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.na-pastille {
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 12px 18px; border-radius: 999px;
  background: rgba(35, 33, 53, .72); border: 1px solid rgba(245, 166, 35, .6);
  font-size: 15px; color: var(--texte-clair);
}
.na-pastille__point {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  animation: na-pouls 2s infinite;
}

/* ---------- Trois packs ---------- */
.na-packs { background: var(--fond-sombre); color: var(--texte-clair); padding: 84px 0 40px; }
.na-packs__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.na-packs .section__kicker { color: var(--primaire-vif); }
.na-packs .section__title { color: var(--texte-clair); margin-bottom: 36px; }

.na-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.na-carte {
  display: flex; flex-direction: column;
  background: #2c2942; color: var(--texte-clair);
  border-radius: 18px; overflow: hidden; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.na-carte:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0, 0, 0, .45); color: var(--texte-clair); }
.na-carte:focus-visible { outline: 3px solid var(--texte-clair); outline-offset: 3px; }
.na-carte--phare { outline: 2px solid var(--accent); }
.na-carte__photo { position: relative; height: 220px; overflow: hidden; }
.na-carte__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.na-carte:hover .na-carte__photo img { transform: scale(1.06); }
.na-carte__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: var(--fond-sombre);
  font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}
.na-carte__corps { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.na-carte__public { margin: 0; font-size: 14px; color: var(--texte-clair-2); }
.na-carte h3 {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Poppins', system-ui, sans-serif;
  font-size: 25px; letter-spacing: -.5px; line-height: 1.15;
  color: var(--texte-clair);
}
.na-carte__texte { margin: 0; font-size: 16px; line-height: 1.5; color: #d9d7e8; }
.na-carte__prix {
  margin: 6px 0 0;
  font-family: 'Bricolage Grotesque', 'Poppins', system-ui, sans-serif;
  font-size: 30px; font-weight: 700;
}
.na-carte__prix span { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 15px; font-weight: 400; color: var(--texte-clair-2); }

/* ---------- Galerie (En vrai), sur fond sombre ---------- */
.galerie.galerie--nouvel-an { background: var(--fond-sombre); padding: 60px 0 30px; }
.galerie--nouvel-an .section__head { margin-bottom: 28px; }
.galerie--nouvel-an .section__title { color: var(--texte-clair); }

/* ---------- FAQ allégée, sur fond sombre ---------- */
.faq.faq--nouvel-an { background: var(--fond-sombre); color: var(--texte-clair); padding-top: 40px; }
.faq--nouvel-an .section__kicker { color: var(--primaire-vif); }
.faq--nouvel-an .section__title { color: var(--texte-clair); }
.faq--nouvel-an .faq__item { border-bottom-color: rgba(246, 244, 240, .14); }
.faq--nouvel-an .faq__item summary { color: var(--texte-clair); }
.faq--nouvel-an .faq__item summary .faq__marqueur { color: var(--accent); }
.faq--nouvel-an .faq__item p { color: var(--texte-clair-2); }

/* ---------- Bandeau de fin ---------- */
.na-date { background: var(--fond-sombre); color: var(--texte-clair); }
.na-date__inner { max-width: 760px; margin: 0 auto; padding: 80px 24px 100px; text-align: center; }
.na-date h2 {
  margin: 0 0 16px;
  font-family: 'Bricolage Grotesque', 'Poppins', system-ui, sans-serif;
  font-weight: 800; font-size: clamp(32px, 5vw, 48px); letter-spacing: -1.2px;
  color: var(--texte-clair);
}
.na-date p { margin: 0 0 32px; font-size: 19px; line-height: 1.5; color: var(--texte-clair-2); }

/* ---------- Tablette ---------- */
@media (max-width: 768px) {
  .na-haut { min-height: 600px; }
  .na-haut__inner { padding: 96px 16px 48px; }
  .na-haut__intro { font-size: 17px; }
  .na-packs { padding: 56px 0 24px; }
  .na-packs__inner { padding: 0 16px; }
  .na-date__inner { padding: 64px 16px 80px; }
  .na-date p { font-size: 17px; }
}

/* ---------- Téléphone : mêmes règles que l'accueil (mobile-3a.css, 640 px) ----------
   Haut de page centré avec un bouton large, packs en carrousel 264 px :
   une carte et demie visible dit « ça continue à droite ». */
@media (max-width: 640px) {
  .na-haut__inner { text-align: center; }
  .na-haut__titre, .na-haut__intro { margin-left: auto; margin-right: auto; }
  .na-haut__titre { letter-spacing: -1px; }
  .na-haut__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .na-haut__actions .btn--primary { display: flex; align-items: center; justify-content: center; min-height: 48px; }
  .na-pastille { justify-content: center; border-radius: 14px; text-align: left; }

  .na-packs__inner { text-align: center; }
  .na-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;
  }
  .na-cartes::-webkit-scrollbar { display: none; }
  .na-carte { flex: 0 0 264px; width: 264px; scroll-snap-align: center; }
  .na-carte:hover { transform: none; }
  .na-carte__photo { height: 170px; }
  .na-carte__corps { padding: 18px; }
  .na-carte h3 { font-size: 21px; }
  .na-carte__texte { font-size: 15px; }
  .na-carte__prix { font-size: 26px; }

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

@media (prefers-reduced-motion: reduce) {
  .na-haut *, .na-packs * { animation: none !important; transition: none !important; }
  .na-faisceau { display: none; }
}
