/* ===== Offre de fin d'année (-20 %) ===== */
:root { --promo-h: 40px; --promo-red: #dc2626; --promo-red-light: #ef4444; }

/* Masqué par défaut, affiché seulement quand promo.js active la promo */
html:not(.promo-on) .promo-only { display: none !important; }
html.promo-on .promo-hide { display: none !important; }

/* Texte long (ordinateur) / court (mobile) */
.promo-m { display: none; }
@media (max-width: 767px) { .promo-d { display: none; } .promo-m { display: inline; } }

/* ---------- Barre du haut ---------- */
html.promo-on body { padding-top: var(--promo-h); }
html.promo-on #header { top: var(--promo-h); }

#promo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--promo-h);
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px;
  background: linear-gradient(90deg, #7f1d1d 0%, #b91c1c 30%, #dc2626 50%, #b91c1c 70%, #7f1d1d 100%);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px; line-height: 1;
  overflow: hidden;
}
#promo-bar::after { /* reflet qui attire l'œil */
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; left: -160px;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: promo-shine 6s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes promo-shine { 0% { left: -160px; } 30%, 100% { left: calc(100% + 160px); } }

.promo-bar__inner { display: flex; align-items: center; gap: 10px; white-space: nowrap; max-width: 100%; }
.promo-bar__tag {
  font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.18);
}
.promo-bar__pct {
  font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 700;
  font-size: 20px; letter-spacing: .01em;
}
.promo-bar__txt { color: rgba(255,255,255,0.92); }
.promo-bar__count {
  font-weight: 600; color: #fde68a;
}
.promo-bar__count:empty { display: none; }
.promo-bar__count::before { content: "· "; color: rgba(255,255,255,0.6); font-weight: 400; }
.promo-bar__cta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 12px; border-radius: 999px;
  background: #fff; color: #991b1b; font-weight: 700; font-size: 12.5px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.promo-bar__cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.promo-bar__tel {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: #fff; opacity: .95;
  padding: 6px 4px;
}
.promo-bar__tel:hover { text-decoration: underline; text-underline-offset: 3px; }
.promo-bar__tel svg { width: 14px; height: 14px; }
.promo-bar__cond { color: rgba(255,255,255,0.7); font-size: 11.5px; text-decoration: underline; text-underline-offset: 3px; }
.promo-bar__cond:hover { color: #fff; }

@media (max-width: 1023px) { .promo-bar__cond { display: none; } }
@media (max-width: 899px) { .promo-bar__tel { display: none; } }
@media (max-width: 767px) {
  #promo-bar { font-size: 12.5px; padding: 0 10px; }
  .promo-bar__inner { gap: 7px; }
  .promo-bar__tag { display: none; }
  .promo-bar__pct { font-size: 18px; }
  .promo-bar__cta { padding: 6px 10px; font-size: 12px; margin-left: 2px; }
}
@media (max-width: 359px) { .promo-bar__count { display: none; } }

/* ---------- Badge du hero (accueil) ---------- */
.promo-hero-badge {
  display: inline-flex; align-items: stretch;
  margin-bottom: 1.4rem;
  border-radius: 999px; overflow: hidden;
  background: rgba(10,10,10,0.6);
  border: 1px solid rgba(239,68,68,0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 0 rgba(220,38,38,0.5), 0 10px 40px rgba(220,38,38,0.35);
  text-align: left; color: #fff;
  animation: promo-in .7s cubic-bezier(.2,.8,.2,1) both, promo-pulse 2.6s ease-out 1.2s infinite;
  transition: transform .25s ease;
}
.promo-hero-badge:hover { transform: translateY(-2px) scale(1.02); }
.promo-hero-pct {
  display: flex; align-items: center;
  padding: 0 16px 0 18px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 700;
  font-size: 28px; letter-spacing: .01em; line-height: 1;
}
.promo-hero-txt { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 9px 20px 9px 14px; }
.promo-hero-txt strong {
  font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.promo-hero-txt span { font-family: 'DM Sans', system-ui, sans-serif; font-size: 12.5px; color: #d4d4d8; }
@media (max-width: 400px) {
  .promo-hero-pct { font-size: 24px; padding: 0 12px 0 14px; }
  .promo-hero-txt { padding: 8px 14px 8px 11px; }
  .promo-hero-txt strong { font-size: 12.5px; letter-spacing: .1em; }
  .promo-hero-txt span { font-size: 11.5px; }
}
@keyframes promo-in { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes promo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.55), 0 10px 40px rgba(220,38,38,0.35); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(220,38,38,0), 0 10px 40px rgba(220,38,38,0.35); }
}

/* Pastille -20% dans les boutons Réserver */
.promo-chip {
  display: inline-flex; align-items: center;
  margin-left: 6px; padding: 2px 6px; border-radius: 6px;
  background: #fff; color: #b91c1c;
  font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: 0;
}

/* ---------- Prix barrés ---------- */
.promo-price { white-space: nowrap; }
.promo-was {
  font-size: .58em; font-weight: 600; color: #a1a1aa;
  text-decoration: line-through; text-decoration-color: rgba(239,68,68,0.9); text-decoration-thickness: 1.5px;
  margin-right: .3em; vertical-align: .25em;
}
.promo-now { color: #fff; }
.promo-price .promo-off {
  display: inline-block; margin-left: .35em; vertical-align: .45em;
  padding: 3px 6px; border-radius: 6px;
  background: rgba(220,38,38,0.15); border: 1px solid rgba(239,68,68,0.4); color: #f87171;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 11px; font-weight: 700; line-height: 1.2;
}
.promo-pill-was { text-decoration: line-through; opacity: .6; margin-right: .3em; }

/* ---------- Encart conditions (Tarifs + accueil) ---------- */
.promo-card {
  display: flex; align-items: center; gap: 22px;
  margin: 0 auto 2.5rem; padding: 22px 24px;
  border-radius: 1rem;
  background: radial-gradient(ellipse 70% 120% at 0% 50%, rgba(220,38,38,0.22) 0%, rgba(220,38,38,0.05) 60%), rgba(255,255,255,0.02);
  border: 1px solid rgba(239,68,68,0.35);
  scroll-margin-top: 140px;
  text-align: left;
}
.promo-card__pct {
  flex-shrink: 0;
  font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 700;
  font-size: 54px; line-height: 1; color: #fff;
  text-shadow: 0 0 30px rgba(239,68,68,0.6);
}
.promo-card__body { flex: 1; min-width: 0; }
.promo-card__label {
  font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 600;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #ef4444; margin-bottom: 4px;
}
.promo-card__title { color: #fff; font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.promo-card__cond { color: #a1a1aa; font-size: .8rem; line-height: 1.5; }
.promo-card__ctas { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.promo-card__ctas a { min-height: 44px !important; padding: .7rem 1.2rem !important; }
@media (max-width: 767px) {
  .promo-card { flex-direction: column; text-align: center; gap: 12px; padding: 22px 18px; }
  .promo-card__ctas { flex-direction: row; width: 100%; }
  .promo-card__ctas a { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #promo-bar::after, .promo-hero-badge { animation: none !important; }
}
