/* /noel/ — Commandes de Noël 2026. Couleurs de l'affiche : sapin, or, crème. */
body.noel {
  --n-nuit: #0b1d18;
  --n-sapin: #173a31;
  --n-sapin2: #20493e;
  --n-carte: #1b4137;
  --n-or: #e2b257;
  --n-or-clair: #f6d58e;
  --n-creme: #f7eedd;
  --n-muted: #b9c4b4;
  --n-ligne: rgba(226, 178, 87, .35);
  --n-alerte: #ffb4a6;
  background: linear-gradient(var(--n-sapin), var(--n-nuit) 900px) var(--n-nuit);
  color: var(--n-creme);
}
.noel a { color: var(--n-or-clair); }

/* ── En-tête ──────────────────────────────────────────── */
.noel-hero { position: relative; text-align: center; padding: 5.5rem 1rem 2rem; overflow: hidden; }
.noel-guirlande { position: absolute; inset: 0 0 auto; height: 70px; display: flex; justify-content: space-around; pointer-events: none; }
.noel-guirlande::before {
  content: ""; position: absolute; left: -5%; right: -5%; top: -40px; height: 80px;
  border-bottom: 2px solid rgba(0, 0, 0, .55); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.noel-guirlande span {
  width: 11px; height: 16px; margin-top: 30px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #ffe7b0; box-shadow: 0 0 14px 6px rgba(255, 200, 100, .45);
  animation: noel-scintille 3.2s ease-in-out infinite;
}
.noel-guirlande span:nth-child(3n) { animation-delay: -1.1s; margin-top: 36px; }
.noel-guirlande span:nth-child(3n + 1) { animation-delay: -2.2s; margin-top: 26px; }
@keyframes noel-scintille { 50% { opacity: .55; box-shadow: 0 0 8px 3px rgba(255, 200, 100, .3); } }
@media (prefers-reduced-motion: reduce) { .noel-guirlande span { animation: none; } }

.noel-marque { font-family: var(--font-script); color: var(--n-or); font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0; }
.noel-hero h1 {
  font-family: var(--font-serif); font-weight: 700; color: var(--n-creme);
  font-size: clamp(2.2rem, 7vw, 3.8rem); line-height: 1.05; margin: .2rem 0 1rem;
}
.noel-ruban {
  display: inline-block; margin: 0 0 1.2rem; padding: .45rem 1.4rem; border-radius: 8px;
  background: linear-gradient(135deg, var(--n-or-clair), var(--n-or) 55%, #c8913b);
  color: var(--n-sapin); font-weight: 800; font-size: 1.05rem;
}
.noel-intro { max-width: 640px; margin: 0 auto 1.6rem; color: var(--n-muted); font-size: 1.05rem; line-height: 1.6; }
.noel-intro strong { color: var(--n-creme); }
.noel-marches { list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.noel-marches li {
  display: grid; gap: .1rem; text-align: left; padding: .6rem .9rem; border-radius: 10px;
  border: 1px solid var(--n-ligne); background: rgba(255, 255, 255, .04); min-width: 168px;
}
.noel-marches b { color: var(--n-or-clair); }
.noel-marches span { font-size: .88rem; }
.noel-marches small { font-size: .78rem; color: var(--n-muted); }
.noel-marches li.clos { opacity: .45; }

/* ── Mise en page principale ─────────────────────────── */
.noel-main {
  max-width: 1200px; margin: 0 auto; padding: 1rem 16px 3rem;
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 2rem; align-items: start;
}
@media (max-width: 960px) { .noel-main { grid-template-columns: 1fr; } }

.noel-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.noel-carte {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: var(--n-carte); border: 1px solid rgba(255, 255, 255, .06);
}
.noel-carte img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.noel-carte.vedette { border-color: var(--n-ligne); }
.noel-carte-corps { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.noel-carte h2 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 700; margin: 0; color: var(--n-creme); }
.noel-carte h2 sup { color: var(--n-or); }
.noel-prix { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--n-or); margin: 0; }
.noel-carte p:not(.noel-prix) { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--n-muted); flex: 1; }
.noel-carte .noel-btn { margin-top: .5rem; }
.noel-note { grid-column: 1 / -1; font-size: .82rem; color: var(--n-muted); margin: 0; }

.noel-btn {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px; padding: .75rem 1.3rem;
  font: 700 1rem var(--font-body); color: var(--n-sapin);
  background: linear-gradient(135deg, var(--n-or-clair), var(--n-or));
  transition: transform .15s ease, filter .15s ease;
}
.noel-btn:hover { filter: brightness(1.06); }
.noel a.noel-btn { color: var(--n-sapin); text-decoration: none; display: inline-block; }
.noel-btn:active { transform: translateY(1px); }
.noel-btn:focus-visible, .noel input:focus-visible, .noel textarea:focus-visible, .noel select:focus-visible { outline: 2px solid var(--n-or-clair); outline-offset: 2px; }
.noel-btn[disabled] { opacity: .45; cursor: not-allowed; }
.noel-btn.secondaire { background: transparent; color: var(--n-creme); border: 1px solid rgba(255, 255, 255, .25); }
.noel-lien { background: none; border: 0; color: var(--n-or-clair); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; font-size: .88rem; }

/* ── Panier ──────────────────────────────────────────── */
.noel-panier {
  position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto;
  background: rgba(10, 25, 21, .85); border: 1px solid var(--n-ligne); border-radius: 18px; padding: 1.2rem 1.2rem 1.4rem;
}
@media (max-width: 960px) { .noel-panier { position: static; max-height: none; } }
.noel-panier h2 { font-family: var(--font-serif); font-size: 1.5rem; margin: 0 0 .6rem; color: var(--n-creme); }
.noel-vide { color: var(--n-muted); font-size: .92rem; margin: 0 0 .8rem; }
.noel-lignes { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.noel-lignes li {
  display: grid; grid-template-columns: 48px 1fr auto; gap: .65rem; align-items: center;
  padding: .55rem; border-radius: 10px; background: rgba(255, 255, 255, .05);
}
.noel-lignes img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.noel-lignes b { display: block; font-size: .95rem; }
.noel-lignes small { display: block; color: var(--n-muted); font-size: .8rem; line-height: 1.35; word-break: break-word; }
.noel-lignes .prix { text-align: right; font-weight: 700; color: var(--n-or-clair); white-space: nowrap; }
.noel-lignes .actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .2rem; }
/* Article dont les photos sont à remettre (retour d'un paiement annulé) */
.noel-lignes li.a-remettre { background: rgba(226, 178, 87, .14); box-shadow: inset 0 0 0 1.5px var(--n-or); }
.noel-lignes li.a-remettre small { color: var(--n-or-clair); }
.noel-alerte ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; }
.noel-alerte li { font-weight: 700; color: var(--n-creme); }

.noel fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.noel legend { font-weight: 700; margin-bottom: .5rem; color: var(--n-creme); padding: 0; }
.noel-remise label {
  display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .65rem; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .1); margin-bottom: .4rem; font-size: .92rem; line-height: 1.35;
}
.noel-remise label:has(input:checked) { border-color: var(--n-or); background: rgba(226, 178, 87, .08); }
.noel-remise label.clos { opacity: .45; cursor: not-allowed; }
.noel-remise input { margin-top: .2rem; accent-color: var(--n-or); }
.noel-remise small { color: var(--n-muted); }
.noel-remise .offert { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--n-sapin); background: var(--n-or); border-radius: 4px; padding: 0 .35rem; margin-left: .25rem; }

.noel-totaux { margin: 0 0 1.1rem; display: grid; gap: .25rem; }
.noel-totaux div { display: flex; justify-content: space-between; color: var(--n-muted); font-size: .95rem; }
.noel-totaux dd { margin: 0; color: var(--n-creme); }
.noel-totaux .total { border-top: 1px solid var(--n-ligne); padding-top: .45rem; margin-top: .2rem; font-size: 1.15rem; font-weight: 700; }
.noel-totaux .total dt, .noel-totaux .total dd { color: var(--n-or-clair); }

.noel-client { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .7rem; }
.noel-client legend { grid-column: 1 / -1; }
.noel-client .large { grid-column: 1 / -1; }
.noel label { font-size: .88rem; color: var(--n-muted); }
.noel label small { font-size: .78rem; }
.noel input:not([type=radio]):not([type=checkbox]), .noel textarea, .noel select {
  display: block; width: 100%; box-sizing: border-box; margin-top: .25rem; padding: .6rem .7rem; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .25); color: var(--n-creme); font: 1rem var(--font-body);
}
.noel textarea { resize: vertical; min-height: 2.6rem; }
.noel select option { color: #111; }
.noel-cgv { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem !important; line-height: 1.5; margin-bottom: 1rem; }
.noel-cgv input { margin-top: .2rem; accent-color: var(--n-or); flex: none; }
.noel-erreur { color: var(--n-alerte); background: rgba(179, 38, 30, .18); border: 1px solid rgba(255, 140, 120, .4); border-radius: 8px; padding: .55rem .7rem; font-size: .9rem; margin: 0 0 .8rem; }
.noel-payer { width: 100%; font-size: 1.08rem; padding: .9rem; }
.noel-securite { font-size: .78rem; color: var(--n-muted); text-align: center; margin: .6rem 0 0; }

.noel-flottant {
  position: fixed; z-index: 50; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: var(--n-or); color: var(--n-sapin) !important; font-weight: 800; text-decoration: none;
  padding: .75rem 1.3rem; border-radius: 999px; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); white-space: nowrap;
}
@media (min-width: 961px) { .noel-flottant { display: none; } }

/* ── Infos ───────────────────────────────────────────── */
.noel-infos { max-width: 1200px; margin: 0 auto; padding: 0 16px 4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.noel-infos h2 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--n-creme); margin: 0 0 .7rem; }
.noel-infos ol, .noel-infos ul { margin: 0; padding-left: 1.2rem; color: var(--n-muted); line-height: 1.65; display: grid; gap: .4rem; }
.noel-infos b { color: var(--n-creme); }
.noel-clos { max-width: 640px; margin: 0 auto; padding: 1rem 16px 4rem; text-align: center; color: var(--n-muted); }
.noel-clos h2 { color: var(--n-creme); font-family: var(--font-serif); }

/* ── Fenêtre de personnalisation ─────────────────────── */
/* Le reset global du site (margin: 0) décentrerait la fenêtre ; [hidden] doit gagner sur les display: grid. */
.noel [hidden] { display: none !important; }
.noel-dialog {
  margin: auto; overflow: auto;
  width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--n-ligne);
  border-radius: 18px; background: #12302a; color: var(--n-creme); box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.noel-dialog::backdrop { background: rgba(5, 12, 10, .7); }
.noel-dialog form { display: grid; gap: .8rem; padding: 1.1rem 1.2rem 1.2rem; }
.noel-dialog header { display: grid; grid-template-columns: 72px 1fr auto; gap: .8rem; align-items: center; }
.noel-dialog header img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.noel-dialog h2 { margin: 0; font-family: var(--font-serif); font-size: 1.35rem; }
.noel-dialog header p { margin: .1rem 0 0; color: var(--n-or); font-weight: 700; }
.noel-fermer { background: none; border: 0; color: var(--n-muted); font-size: 1.8rem; cursor: pointer; line-height: 1; padding: .2rem .4rem; align-self: start; }
.noel-dialog .libelle { font-size: .88rem; color: var(--n-muted); display: block; margin-bottom: .25rem; }
.noel-photo {
  display: flex; align-items: center; justify-content: center; gap: .8rem; min-height: 86px; padding: .6rem; cursor: pointer;
  border: 1.5px dashed rgba(226, 178, 87, .6); border-radius: 12px; color: var(--n-or-clair) !important; font-weight: 700; text-align: center;
}
.noel-photos { list-style: none; margin: 0 0 .5rem; padding: 10px 10px 0 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.noel-photos li { position: relative; }
.noel-photos img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--n-ligne); }
.noel-photos button {
  position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--n-ligne);
  background: #0b1f1b; color: var(--n-creme); font-size: 1.1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.noel-photos button:hover, .noel-photos button:focus-visible { background: #b3261e; }
.noel-alerte form { gap: .6rem; text-align: center; padding: 1.4rem 1.4rem 1.3rem; }
.noel-alerte h2 { font-size: 1.5rem; }
.noel-alerte p { margin: 0; line-height: 1.55; color: var(--n-creme); }
.noel-alerte .noel-alerte-photos { color: var(--n-or-clair); background: rgba(226, 178, 87, .1); border-radius: 10px; padding: .7rem .8rem; }
.noel-alerte footer { justify-content: center; margin-top: .3rem; }
.noel-dialog .deux { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.noel-qte input { max-width: 110px; }
.noel-dialog footer { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 480px) { .noel-dialog .deux, .noel-client { grid-template-columns: 1fr; } }
