/* Carte Noël 2027 — overlay + décor saisonnier (accueil)
   Coupe temporaire : js DISABLED=true (retravail plus tard). */

:root {
  --lc-noel-ink: #0c3d5c;
  --lc-noel-spice: #c45c26;
  --lc-noel-cyan: #1a6b9c;
  --lc-noel-line: rgba(12, 61, 92, 0.14);
  --lc-noel-arriere: url("../img/noel/carte-2027-arriere.jpg");
  --lc-noel-avant: url("../img/noel/carte-2027-avant.jpg");
}

/* —— Décor page (léger) —— */
body.lc-noel-season .hero--v3 {
  position: relative;
}
body.lc-noel-season .lc-noel-decor {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background-repeat: no-repeat;
  opacity: 0.55;
}
body.lc-noel-season .lc-noel-decor--bl {
  left: 0;
  bottom: 0;
  width: min(220px, 28vw);
  height: min(200px, 32vh);
  background-image: var(--lc-noel-arriere);
  background-size: 280% auto;
  background-position: 0% 100%;
  filter: saturate(1.08);
  mask-image: linear-gradient(to top right, #000 20%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top right, #000 20%, transparent 85%);
}
body.lc-noel-season .lc-noel-decor--br {
  right: 0;
  bottom: 0;
  width: min(240px, 30vw);
  height: min(210px, 34vh);
  background-image: var(--lc-noel-avant);
  background-size: 200% auto;
  background-position: 100% 80%;
  filter: saturate(1.1);
  mask-image: linear-gradient(to top left, #000 18%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top left, #000 18%, transparent 85%);
}
body.lc-noel-season .lc-noel-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(420px 180px at 8% 100%, rgba(212, 160, 23, 0.14), transparent 70%),
    radial-gradient(380px 160px at 92% 100%, rgba(196, 92, 38, 0.1), transparent 70%);
}
@media (prefers-reduced-motion: reduce) {
  body.lc-noel-season .lc-noel-decor { opacity: 0.35; }
}

/* —— Overlay —— */
.lc-noel-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000; /* au-dessus du cookie banner (10000) — sinon flash ~0,25 s */
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 32, 48, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.lc-noel-overlay.is-on {
  opacity: 1;
  visibility: visible;
}
.lc-noel-overlay .lc-noel-card {
  width: min(100%, 640px);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 16px;
  background: #fffdf8;
  border: 1px solid rgba(12, 61, 92, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.3s ease;
}
.lc-noel-overlay.is-on .lc-noel-card {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .lc-noel-overlay,
  .lc-noel-overlay .lc-noel-card {
    transition: none;
  }
}

/* En-tête : formule + 2027 découpé de la carte originale */
.lc-noel-head {
  background: #f4efe6;
  padding: 12px 16px 6px;
  border-bottom: 1px solid rgba(12, 61, 92, 0.08);
}
.lc-noel-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.lc-noel-formule {
  margin: 0 0 0.55rem;
  font-size: clamp(0.92rem, 2.2vw, 1.12rem);
  font-weight: 650;
  line-height: 1.2;
  color: #2e2e31;
  max-width: 12.5rem;
  align-self: center;
}
.lc-noel-formule em {
  font-style: normal;
  font-weight: 800;
  color: #0c507a;
}
.lc-noel-year {
  display: block;
  width: min(340px, 62%);
  height: auto;
  flex-shrink: 0;
  margin-right: -10px;
  margin-bottom: -10px;
  /* Image originale + léger fondu G→D dans le PNG */
}

.lc-noel-photo-wrap {
  height: 210px;
  overflow: hidden;
  background: #1a3348;
}
.lc-noel-photo {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: 38% 68%;
}

.lc-noel-copy {
  position: relative;
  overflow: hidden;
  padding: 0.7rem 0.75rem 0.8rem;
  background: #f3ebe0;
}
.lc-noel-baubles,
.lc-noel-powders {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
}
.lc-noel-baubles {
  left: -6%;
  bottom: -14%;
  width: 42%;
  height: 92%;
  background-image: var(--lc-noel-arriere);
  background-size: 280% auto;
  background-position: 0% 100%;
  opacity: 0.95;
  filter: saturate(1.1) contrast(1.04);
}
.lc-noel-powders {
  right: -8%;
  bottom: -8%;
  width: 48%;
  height: 96%;
  background-image: var(--lc-noel-avant);
  background-size: 195% auto;
  background-position: 100% 72%;
  opacity: 0.78;
  filter: saturate(1.12);
  mask-image: linear-gradient(240deg, transparent 8%, #000 38%, #000 100%);
  -webkit-mask-image: linear-gradient(240deg, transparent 8%, #000 38%, #000 100%);
}
.lc-noel-copy-inner {
  position: relative;
  z-index: 3;
  padding: 0.75rem 0.9rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 22px rgba(12, 61, 92, 0.08);
  color: var(--lc-noel-ink);
}
.lc-noel-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--lc-noel-ink);
}
.lc-noel-body {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.42;
  color: #0c3d5c;
}
.lc-noel-spice {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  font-style: italic;
  color: var(--lc-noel-spice);
}
.lc-noel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  margin-top: 0.7rem;
}
.lc-noel-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 13px;
  border-radius: 999px;
}
.lc-noel-btn--skip {
  background: #fff;
  color: var(--lc-noel-ink);
  border: 1px solid var(--lc-noel-line);
}
.lc-noel-btn--go {
  background: linear-gradient(125deg, #d97706 0%, #c2410c 40%, #1a6b9c 100%);
  color: #fff;
}

@media (max-width: 520px) {
  .lc-noel-head {
    padding: 10px 12px 4px;
  }
  .lc-noel-year {
    width: min(230px, 62%);
  }
  .lc-noel-formule {
    font-size: 0.88rem;
    max-width: 9.5rem;
    margin-bottom: 0.4rem;
  }
  .lc-noel-photo-wrap,
  .lc-noel-photo {
    height: 150px;
  }
  .lc-noel-body {
    font-size: 0.74rem;
  }
}
