/* Annonce du moment — Table en Forêt (shared with FR CMS styles) */
/* ── Site announcement (CMS « Annonce du moment ») ── */
.site-announce {
  --sa-bg: #2f4f5e;
  --sa-ink: #f6f1e8;
  --sa-accent: #c4a35a;
  --sa-muted: rgba(246, 241, 232, 0.82);
  z-index: 60;
}
.site-announce[data-theme="auberge"] {
  --sa-bg: #2f4f5e;
  --sa-ink: #f6f1e8;
  --sa-accent: #c4a35a;
}
.site-announce[data-theme="forest"] {
  --sa-bg: #2d4a3e;
  --sa-ink: #f3f7f2;
  --sa-accent: #a8c686;
}
.site-announce[data-theme="water"] {
  --sa-bg: #1e4d6b;
  --sa-ink: #eef6fb;
  --sa-accent: #7ec8e3;
}
.site-announce[data-theme="festive"] {
  --sa-bg: linear-gradient(120deg, #5c2a2a 0%, #8b3a1a 45%, #c4a35a 100%);
  --sa-ink: #fff8ef;
  --sa-accent: #ffe6a8;
}
.site-announce__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.45);
  backdrop-filter: blur(3px);
  z-index: 70;
}
.site-announce__panel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--sa-ink);
  background: var(--sa-bg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.site-announce__panel--banner {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--sa-accent) 45%, transparent);
}
.site-announce__panel--card {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 75;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1.1rem 1.2rem 1.15rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--sa-accent) 50%, transparent);
  animation: sa-pop 0.45s ease both;
}
.site-announce__panel--modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 80;
  transform: translate(-50%, -50%);
  width: min(28rem, calc(100vw - 2rem));
  padding: 1.5rem 1.4rem 1.35rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--sa-accent) 55%, transparent);
  flex-direction: column;
  text-align: center;
  animation: sa-pop 0.42s ease both;
}
.site-announce__panel--modal .site-announce__body {
  align-items: center;
}
.site-announce__panel--modal .site-announce__logo {
  margin: 0 auto 0.35rem;
}
@keyframes sa-pop {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.site-announce__panel--card {
  animation-name: sa-slide;
}
@keyframes sa-slide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.site-announce__logo {
  flex: 0 0 auto;
}
.site-announce__logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sa-accent) 40%, transparent);
}
.site-announce__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}
.site-announce__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sa-accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.site-announce__title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
}
.site-announce__text {
  margin: 0.1rem 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--sa-muted);
}
.site-announce__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 0.2rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--sa-accent);
  color: #1c1a17;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.site-announce__cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.site-announce__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--sa-ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.site-announce__close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.site-announce__panel--banner .site-announce__close {
  position: static;
  margin-left: 0.35rem;
  flex: 0 0 auto;
}
.site-announce__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.site-announce__logo,
.site-announce__body,
.site-announce__close {
  position: relative;
  z-index: 1;
}
/* Effects */
.site-announce__effect--shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.14) 45%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: sa-shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sa-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}
.site-announce__effect--sparkle::after {
  content: "✦ ✧ ✦";
  position: absolute;
  right: 2.5rem;
  top: 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--sa-accent);
  opacity: 0.85;
  animation: sa-spark 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sa-spark {
  0%, 100% { opacity: 0.35; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
/* Hearts decoration (CSS fallback; canvas also draws hearts) */
.site-announce__effect--hearts::after {
  content: "♥ ♡ ♥";
  position: absolute;
  right: 2.4rem;
  top: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: #ff8fab;
  opacity: 0.9;
  animation: sa-hearts-css 1.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes sa-hearts-css {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Pulsation / halo need overflow visible so the glow isn't clipped */
.site-announce__effect--pulse,
.site-announce__effect--glow {
  overflow: visible;
}

/* Pulsation lumineuse — anneau d’accent bien visible */
.site-announce__effect--pulse {
  animation: sa-pulse-ring 1.8s ease-in-out infinite;
}
.site-announce__effect--pulse::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    0 0 0 0 color-mix(in srgb, var(--sa-accent) 70%, #fff),
    0 0 18px 2px color-mix(in srgb, var(--sa-accent) 55%, transparent);
  animation: sa-pulse-ring-outer 1.8s ease-in-out infinite;
}
@keyframes sa-pulse-ring {
  0%, 100% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.12);
    transform: scale(1.012);
  }
}
@keyframes sa-pulse-ring-outer {
  0%, 100% {
    opacity: 0.85;
    box-shadow:
      0 0 0 0 color-mix(in srgb, var(--sa-accent) 75%, #fff),
      0 0 14px 2px color-mix(in srgb, var(--sa-accent) 40%, transparent);
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 0 8px color-mix(in srgb, var(--sa-accent) 25%, transparent),
      0 0 32px 6px color-mix(in srgb, var(--sa-accent) 55%, transparent);
  }
}

/* Halo doux — lueur chaude permanente et animée autour de la carte */
.site-announce__effect--glow {
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px color-mix(in srgb, var(--sa-accent) 55%, transparent),
    0 0 24px 4px color-mix(in srgb, var(--sa-accent) 50%, transparent),
    0 0 48px 12px color-mix(in srgb, var(--sa-accent) 28%, transparent);
  animation: sa-halo-breathe 2.4s ease-in-out infinite;
}
.site-announce__effect--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    color-mix(in srgb, var(--sa-accent) 28%, transparent) 0%,
    transparent 70%
  );
  animation: sa-halo-inner 2.4s ease-in-out infinite;
}
@keyframes sa-halo-breathe {
  0%, 100% {
    box-shadow:
      0 10px 40px rgba(0, 0, 0, 0.2),
      0 0 0 1px color-mix(in srgb, var(--sa-accent) 50%, transparent),
      0 0 20px 4px color-mix(in srgb, var(--sa-accent) 40%, transparent),
      0 0 40px 10px color-mix(in srgb, var(--sa-accent) 22%, transparent);
  }
  50% {
    box-shadow:
      0 14px 48px rgba(0, 0, 0, 0.24),
      0 0 0 2px color-mix(in srgb, var(--sa-accent) 70%, #fff),
      0 0 36px 10px color-mix(in srgb, var(--sa-accent) 65%, transparent),
      0 0 72px 20px color-mix(in srgb, var(--sa-accent) 35%, transparent);
  }
}
@keyframes sa-halo-inner {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (max-width: 700px) {
  .site-announce__panel--banner {
    flex-wrap: wrap;
    padding-right: 2.5rem;
  }
  .site-announce__panel--banner .site-announce__close {
    position: absolute;
    top: 0.45rem;
    right: 0.55rem;
  }
  .site-announce__panel--card {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal { opacity: 1; transform: none; }
  .hero__media img { animation: none; transform: none; }
  .season-fx__canvas,
  .season-fx__sun,
  .season-fx__toast,
  html.season-flash::after {
    display: none !important;
  }
  .site-announce__fx,
  .site-announce__effect--shimmer::before,
  .site-announce__effect--sparkle::after,
  .site-announce__effect--hearts::after,
  .site-announce__effect--pulse,
  .site-announce__effect--pulse::before,
  .site-announce__effect--glow,
  .site-announce__effect--glow::before {
    animation: none !important;
  }
  .site-announce__fx {
    display: none !important;
  }
}

/* Canvas FX (confetti, fireworks, snow, bubbles, stars, hearts) drawn in main.js */

html.has-announce-modal,
html.has-announce-modal body {
  overflow: hidden;
}
