:root {
  --els-violet: #99005F;
  --els-violet-seam: #89005B; /* sampled from hero_decoration.png bottom */
  --els-magenta: #DB0055;
  --els-orange: #FF510B;
  --els-orange-alt: #FF4E14;
  --els-black: #000000;
  --els-gradient: linear-gradient(180deg, #FF510B 0%, #DB0055 50%, #99005F 100%);
  --els-gradient-text: linear-gradient(180deg, #FF510B 0%, #DB0055 55%, #99005F 100%);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stork { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: "Roboto", sans-serif;
  color: #111;
  background: #fff;
  overflow-x: clip;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.font-display {
  font-family: "El Messiri", serif;
}

.brand-gradient-text {
  background: var(--els-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1.2px;
}

.brand-gradient-bg {
  background: var(--els-gradient);
}

/* Header CTA: pill to match nav pill */
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  background: var(--els-magenta);
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-nav:hover {
  background: #c4004c;
}

.btn-nav:focus-visible {
  outline: 2px solid var(--els-orange);
  outline-offset: 3px;
}

/* Hero / page CTAs: square-ish like the maquette */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0.85rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  background: var(--els-magenta);
  border: 1.5px solid var(--els-magenta);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
  background: #c4004c;
  border-color: #c4004c;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--els-orange);
  outline-offset: 3px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0.85rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--els-magenta);
  background: #ffffff;
  border: 1.5px solid var(--els-magenta);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-outline:hover {
  background: #fff5f8;
  box-shadow: 0 8px 20px rgba(219, 0, 85, 0.12);
}

.btn-outline:focus-visible {
  outline: 2px solid var(--els-orange);
  outline-offset: 3px;
}

.btn-offer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.2s ease, gap 0.2s ease;
}

.btn-offer:hover {
  color: #FF510B;
  gap: 0.65rem;
}

.nav-pill {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border-radius: 4px; /* aligné sur btn-primary / btn-outline */
}

.hero-tagline-link {
  color: #DB0055;
  text-decoration: underline;
  text-decoration-color: rgba(219, 0, 85, 0.45);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.2s ease;
}

.hero-tagline-link:hover {
  text-decoration-color: #DB0055;
}

.nav-dd {
  position: relative;
}

.nav-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-dd__btn:hover,
.nav-dd__btn.is-active,
.nav-dd.is-open .nav-dd__btn {
  color: #DB0055;
}

.nav-dd__chevron {
  transition: transform 0.2s ease;
}

.nav-dd.is-open .nav-dd__chevron {
  transform: rotate(180deg);
}

.nav-dd__menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  z-index: 60;
  min-width: 13.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateX(-50%);
}

.nav-dd__menu[hidden] {
  display: none;
}

.nav-dd__link {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 4px;
  color: #111;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dd__link:hover,
.nav-dd__link.is-active {
  background: rgba(219, 0, 85, 0.06);
  color: #DB0055;
}

/*
 * Hero: illustration visible as bottom layer (no white slab covering it).
 * White fill only on .btn-outline ("Voir l'offre") for contrast on the skyline.
 */
.hero {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: clamp(8rem, 22vw, 14rem);
}

.hero-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  line-height: 0;
  font-size: 0;
  pointer-events: none;
}

.hero-skyline {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  user-select: none;
  vertical-align: bottom;
}

.logo-mark {
  background: transparent;
  mix-blend-mode: normal;
}

/* Smooth stork flight — continuous, no hard bounce */
.stork {
  position: absolute;
  z-index: 2;
  width: clamp(56px, 8vw, 110px);
  opacity: 0.92;
  will-change: transform;
  animation: stork-drift 14s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  line-height: 0;
}

.stork img {
  display: block;
  width: 100%;
  height: auto;
}

.stork-1 {
  top: 16%;
  right: 12%;
  animation-delay: 0s;
}

.stork-2 {
  top: 26%;
  right: 4%;
  width: clamp(40px, 6vw, 80px);
  animation-delay: -4s;
  animation-duration: 18s;
}

@keyframes stork-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(-2deg); }
  25%  { transform: translate3d(-10px, -14px, 0) rotate(1deg); }
  50%  { transform: translate3d(-4px, -6px, 0) rotate(-1deg); }
  75%  { transform: translate3d(8px, -18px, 0) rotate(2deg); }
  100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
}

/* Violet sampled from hero_decoration.png bottom row — seamless join */
.section-offers {
  background-color: var(--els-violet-seam);
  background-image: none;
  color: #fff;
}

.section-contact {
  background-color: #DB0055;
  background-image: none;
  color: #fff;
}

.offer-card {
  display: flex;
  flex-direction: column;
  background: #fce4ee;
  background: color-mix(in srgb, #DB0055 14%, #ffffff);
  color: #111;
  border: 1px solid #DB0055;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.offer-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: rgba(219, 0, 85, 0.1);
  color: #DB0055;
  font-family: "El Messiri", serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.offer-card .btn-offer svg {
  display: inline-block;
  vertical-align: middle;
}

.offer-card h3 {
  color: #111;
}

.offer-card ul {
  color: rgba(17, 17, 17, 0.72);
}

.offer-card .btn-offer {
  color: #DB0055;
}

.offer-card .btn-offer:hover {
  color: #FF510B;
}

.advantage-item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Forms */
.form-panel {
  background: #fff;
  border: 1px solid rgba(219, 0, 85, 0.12);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(153, 0, 95, 0.1);
}

.form-panel--on-dark {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  box-shadow: none;
  height: fit-content;
  align-self: start;
}

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.field {
  width: 100%;
  border-radius: 0.75rem;
  border: 1.5px solid rgba(153, 0, 95, 0.18);
  background: #fff7fa;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  color: #111;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field::placeholder {
  color: rgba(17, 17, 17, 0.35);
}

.field:hover {
  border-color: rgba(219, 0, 85, 0.35);
}

.field:focus {
  border-color: var(--els-magenta);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(219, 0, 85, 0.14);
}

.form-panel--on-dark .field {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

.form-panel--on-dark .field:focus {
  box-shadow: 0 0 0 4px rgba(255, 81, 11, 0.35);
}

.slot-btn {
  border: 1.5px solid rgba(153, 0, 95, 0.18);
  border-radius: 0.65rem;
  padding: 0.65rem 0.9rem;
  background: #fff7fa;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111;
  transition: all 0.2s ease;
}

.slot-btn:hover,
.slot-btn[aria-pressed="true"] {
  border-color: var(--els-magenta);
  color: var(--els-magenta);
  background: rgba(219, 0, 85, 0.08);
}

/* Compact booking block */
.booking-panel {
  border-radius: 1rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  box-sizing: border-box;
}

.booking-layout,
.booking-cal,
.booking-form {
  min-width: 0;
  max-width: 100%;
}

.booking-form .field-label {
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
}

.booking-form .field {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 0.55rem;
  font-size: 0.875rem;
}

.booking-form .field:focus {
  box-shadow: 0 0 0 3px rgba(219, 0, 85, 0.12);
}

.booking-message {
  min-height: 0;
  resize: vertical;
}

.booking-cal .field-label {
  margin-bottom: 0.5rem;
}

.booking-quick {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.booking-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(219, 0, 85, 0.12);
}

.booking-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.booking-footer__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  margin-left: auto;
  max-width: 100%;
}

.booking-footer__submit {
  flex: 0 0 auto;
  margin-left: 0;
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

.booking-footer__note {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
  color: rgba(17, 17, 17, 0.45);
}

.booking-quick__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.booking-quick__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.55rem;
  border: 1.5px solid rgba(153, 0, 95, 0.18);
  background: #fff7fa;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: capitalize;
  color: #111;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.booking-quick__btn:hover {
  border-color: rgba(219, 0, 85, 0.45);
  background: rgba(219, 0, 85, 0.06);
}

.booking-quick__btn.is-selected {
  border-color: var(--els-magenta);
  background: rgba(219, 0, 85, 0.1);
  color: var(--els-magenta);
}

.booking-quick__empty {
  margin: 0;
}

@media (max-width: 639px) {
  .booking-footer__row {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-footer__actions {
    align-items: stretch;
    margin-left: 0;
  }

  .booking-footer__submit {
    width: 100%;
  }

  .booking-footer__note {
    text-align: center;
  }

  .booking-quick__list {
    width: 100%;
  }

  .booking-quick__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

.booking-cal .slot-btn {
  padding: 0.4rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 0.45rem;
}

.booking-cal .cal-head {
  margin-bottom: 0.5rem;
  gap: 0.35rem;
  min-width: 0;
}

.booking-cal .cal-head strong {
  font-size: 0.95rem;
  min-width: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-cal .cal-nav {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.booking-cal .cal-grid {
  gap: 0.2rem;
  width: 100%;
}

.booking-cal .cal-day {
  min-height: 0;
  aspect-ratio: 1;
  width: 100%;
  padding: 0;
  font-size: 0.75rem;
  border-radius: 0.45rem;
}

.booking-cal .cal-dow {
  font-size: 0.65rem;
  padding-bottom: 0.15rem;
}

@media (max-width: 379px) {
  .booking-panel {
    border-radius: 0.85rem;
  }

  .booking-cal .cal-head strong {
    font-size: 0.875rem;
  }

  .booking-cal .cal-day {
    font-size: 0.7rem;
    border-radius: 0.35rem;
  }

  .booking-cal .cal-grid {
    gap: 0.12rem;
  }

  .booking-form .field {
    padding: 0.65rem 0.7rem;
  }
}

/* Custom calendar */
.cal {
  user-select: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  min-width: 0;
}

.cal-head strong {
  font-family: "El Messiri", serif;
  font-size: 1.15rem;
  text-transform: capitalize;
}

.cal-nav {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  border: 1.5px solid rgba(153, 0, 95, 0.18);
  background: #fff7fa;
  color: var(--els-magenta);
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.cal-nav:hover {
  background: rgba(219, 0, 85, 0.1);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
}

.cal-dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(17, 17, 17, 0.45);
  padding-bottom: 0.35rem;
  text-transform: uppercase;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 0.65rem;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  color: #111;
  min-width: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.cal-day:hover:not(:disabled):not(.is-selected) {
  background: rgba(219, 0, 85, 0.08);
}

.cal-day:disabled,
.cal-day.is-muted {
  color: rgba(17, 17, 17, 0.25);
  cursor: default;
}

.cal-day.is-selected {
  background: var(--els-magenta);
  color: #fff;
  font-weight: 600;
}

.cal-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1.5px var(--els-orange);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  background: var(--els-magenta);
  border-color: var(--els-magenta);
}

.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.linkedin-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(219, 0, 85, 0.12);
}

.linkedin-feed__item {
  display: grid;
  gap: 0.75rem 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(219, 0, 85, 0.12);
}

@media (min-width: 640px) {
  .linkedin-feed__item {
    grid-template-columns: 7.5rem 1fr;
    align-items: start;
  }
}

.linkedin-feed__date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.2rem;
  font-size: 0.8125rem;
  color: rgba(17, 17, 17, 0.45);
}

.linkedin-feed__title {
  font-family: "El Messiri", serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
}

.linkedin-feed__title a {
  color: inherit;
  transition: color 0.2s ease;
}

.linkedin-feed__title a:hover {
  color: #DB0055;
}

.linkedin-feed__excerpt {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.65);
}

.linkedin-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #DB0055;
}

.linkedin-card__link:hover {
  color: #FF510B;
}

.linkedin-card__badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(219, 0, 85, 0.08);
  color: #DB0055;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


.status-msg {
  min-height: 1.25rem;
  font-size: 0.875rem;
}

.status-msg.is-error { color: #b00020; }
.status-msg.is-success { color: #0f7a3a; }

.form-panel--on-dark .status-msg.is-error { color: #ffc9d0; }
.form-panel--on-dark .status-msg.is-success { color: #b8f5c8; }

/* —— Error pages (404 / 500) —— */
.error-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(255, 81, 11, 0.18), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(219, 0, 85, 0.16), transparent 50%),
    radial-gradient(80% 60% at 70% 100%, rgba(153, 0, 95, 0.14), transparent 45%),
    linear-gradient(165deg, #fff8f6 0%, #ffffff 42%, #fff5f9 100%);
}

.error-page__atmosphere {
  pointer-events: none;
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    linear-gradient(125deg, rgba(255, 81, 11, 0.09), transparent 40%),
    linear-gradient(210deg, rgba(153, 0, 95, 0.08), transparent 45%);
  filter: blur(8px);
  animation: error-drift 18s ease-in-out infinite alternate;
}

.error-page__glow {
  pointer-events: none;
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: min(52vw, 28rem);
  height: min(52vw, 28rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 0, 85, 0.22), rgba(255, 81, 11, 0.08) 45%, transparent 70%);
  animation: error-pulse 9s ease-in-out infinite;
}

.error-page__top {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.25rem 0;
}

.error-page__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.error-page__brand:hover {
  opacity: 0.82;
}

.error-page__main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 5rem);
  min-height: calc(100dvh - 5rem);
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: left;
}

.error-page__code {
  margin: 0;
  font-size: clamp(5.5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  background: var(--els-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: error-rise 0.7s ease-out both;
}

.error-page__title {
  margin: 1.25rem 0 0;
  max-width: 18ch;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  animation: error-rise 0.7s ease-out 0.08s both;
}

.error-page__text {
  margin: 1rem 0 0;
  max-width: 36ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.62);
  animation: error-rise 0.7s ease-out 0.16s both;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: error-rise 0.7s ease-out 0.24s both;
}

@keyframes error-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes error-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, 3%, 0) scale(1.04); }
}

@keyframes error-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .error-page__atmosphere,
  .error-page__glow,
  .error-page__code,
  .error-page__title,
  .error-page__text,
  .error-page__actions {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .error-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-page__actions .btn-primary,
  .error-page__actions .btn-outline {
    width: 100%;
  }
}

/* WebMCP declarative tool focus (ignored by browsers without support) */
form:tool-form-active {
  outline: 2px dashed var(--els-magenta);
  outline-offset: 4px;
}

button:tool-submit-active,
input:tool-submit-active {
  outline: 2px dashed var(--els-orange);
  outline-offset: 2px;
}
