.emergency-page {
  background: #fff;
}
.emergency-page section {
  margin-top: 0;
}
.emergency-home-link {
  background: transparent !important;
  color: #e2e8f0;
  border-color: #475569;
}
.emergency-header {
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid #e2e8f0;
}
.emergency-header .nav {
  min-height: 58px;
}
.emergency-header .brand-name {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 750;
}
.mobile-home-item { display: none; }
.emergency-hero {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 0;
  background:
    radial-gradient(900px 460px at 94% 18%, rgb(209 8 8 / 0.055), transparent 68%),
    #fff;
  overflow: hidden;
}
.emergency-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.emergency-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 4.4vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.emergency-lead {
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.5;
}
.emergency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.6rem;
}
.emergency-primary {
  min-height: 50px;
  padding: 0.7rem 1.15rem;
  font-size: 1.05rem;
  justify-content: center;
  animation: emergency-call-pulse 2.15s ease-in-out infinite;
}
.emergency-secondary {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
    justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid #94a3b8;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 650;
}
.emergency-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.emergency-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  margin: 1.4rem 0 2.5rem;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.emergency-status li {
  position: relative;
  padding-left: 0.75rem;
}
.emergency-status li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.emergency-hero-media {
  align-self: stretch;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding: 0 14px 14px 0;
}
.emergency-hero-media::before {
  content: "";
  position: absolute;
  inset: 17% 0 0 14%;
  border-radius: 24px 24px 0 0;
  background: #e8edf3;
  box-shadow: 0 18px 50px rgb(15 23 42 / 0.12);
}
.emergency-hero-media img {
  width: 100%;
  min-height: 410px;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
  border-radius: 18px 18px 0 0;
  box-shadow: -14px 18px 44px rgb(15 23 42 / 0.16);
}
.emergency-hero-media figcaption {
  position: relative;
  z-index: 1;
  padding: 0.65rem 0.8rem;
  background: var(--ink);
  color: #e2e8f0;
  font-size: 0.86rem;
  border-left: 5px solid var(--brand);
  border-radius: 0 0 10px 10px;
}
.priority-zone {
  padding: 0.75rem 0;
  background: #fff;
  color: #fff;
}
.priority-layout {
  width: min(calc(100% - 1rem), var(--w));
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
  margin: 0 auto;
  padding: 0 1rem;
  background: var(--brand);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgb(209 8 8 / 0.2);
  overflow: hidden;
}
.priority-layout h2 {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 1.25rem 1.5rem 1.25rem 0;
  border-right: 1px solid rgb(255 255 255 / 0.28);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  animation: priority-label-pulse 2.15s ease-in-out infinite;
}
.priority-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.priority-list li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 96px;
  padding: 1rem 1.15rem;
  border-right: 1px solid rgb(255 255 255 / 0.25);
}
.priority-list li:last-child { border-right: 0; }
.priority-list strong { font-size: 1.12rem; }
.priority-list span { font-size: 0.78rem; opacity: 0.84; }
.response-section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.section-heading {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-heading h2,
.advice-section h2,
.video-section h2,
.emergency-faq h2 {
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.section-heading p { margin: 0; color: var(--ink-2); font-size: 1.06rem; }
.response-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.response-steps article {
  min-height: 260px;
  padding: 0 2rem;
  border-right: 1px solid #cbd5e1;
  transition: transform 180ms ease;
}
.response-steps article:hover { transform: translateY(-4px); }
.response-steps article:first-child { padding-left: 0; }
.response-steps article:last-child { padding-right: 0; border-right: 0; }
.step-number {
  display: inline-block;
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
}
.response-steps h3 { margin: 1rem 0 0.65rem; font-size: 1.45rem; }
.response-steps p { color: var(--ink-2); }
.solidarity-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: #f1f5f9;
  border-block: 1px solid #e2e8f0;
}
.solidarity-layout {
  display: grid;
  grid-template-columns: 110px minmax(0, 790px);
  justify-content: center;
  gap: 1.5rem;
}
.solidarity-mark {
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 0.8;
  opacity: 0.22;
}
.solidarity-section h2 { margin: 0 0 0.75rem; font-size: clamp(2rem, 3.4vw, 3.2rem); }
.solidarity-section p { margin: 0; color: var(--ink-2); font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.solidarity-neighbour {
  margin-top: 1.15rem !important;
  padding-top: 1.15rem;
  border-top: 1px solid #cbd5e1;
  color: var(--ink) !important;
}
.solidarity-signature { margin-top: 1rem !important; color: var(--ink) !important; font-weight: 750; }
.solidarity-team-photo {
  margin: 1.6rem 0 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d8e0ea;
  box-shadow: 0 18px 42px rgb(15 23 42 / 0.15);
}
.solidarity-team-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 38%;
}
.solidarity-team-photo figcaption {
  padding: 0.7rem 0.9rem;
  border-left: 5px solid var(--brand);
  color: var(--ink-2);
  font-size: 0.88rem;
}
.advice-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.7fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.advice-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.advice-list li { position: relative; margin: 0.8rem 0; padding-left: 2rem; color: var(--ink-2); }
.advice-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
}
.advice-callout {
  padding: 2rem;
  border-top: 5px solid var(--brand);
  background: var(--ink);
  color: #e2e8f0;
  box-shadow: var(--shadow);
}
.advice-callout h3 { margin-top: 0; color: #fff; font-size: 1.55rem; }
.advice-callout p { color: #cbd5e1; }
.advice-callout .cta { margin-top: 0.75rem; padding: 0.65rem 0.9rem; }
.video-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: #f8fafc;
  border-block: 1px solid #e2e8f0;
}
.video-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.video-layout > div:first-child > p { color: var(--ink-2); }
.video-credit { font-size: 0.88rem; }
.x-video-gallery {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}
.x-video-frame {
  min-height: 350px;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  border: 1px solid #94a3b8;
  background: #fff;
  box-shadow: 12px 12px 0 #e2e8f0;
}
.x-video-placeholder { text-align: center; }
.play-symbol {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.25rem;
}
.x-video-placeholder p { color: var(--ink-2); }
.x-video-placeholder button { margin: 0 auto 0.8rem; border: 0; font: inherit; cursor: pointer; }
.x-video-placeholder a { display: block; text-decoration: underline; }
.twitter-tweet { margin-inline: auto !important; }
.x-video-frame iframe { max-width: 100% !important; }

@keyframes priority-label-pulse {
  0%, 100% { color: #fff; text-shadow: 0 0 0 rgb(255 255 255 / 0); }
  50% { color: rgb(255 255 255 / 0.48); text-shadow: 0 0 12px rgb(255 255 255 / 0.42); }
}
@keyframes emergency-call-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgb(209 8 8 / 0.28); filter: brightness(1); }
  50% { box-shadow: 0 0 0 6px rgb(209 8 8 / 0.13), 0 12px 28px rgb(209 8 8 / 0.38); filter: brightness(1.08); }
}
.emergency-faq {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.emergency-faq h2 { text-align: center; margin-bottom: 2rem; }
.emergency-faq details { max-width: 900px; margin-inline: auto; border-radius: 8px; box-shadow: none; }
.emergency-faq details + details { margin-top: 0.6rem; }
.emergency-faq summary { padding-right: 2rem; }
.emergency-faq details > div { padding-top: 0.65rem; color: var(--ink-2); }
.source-note {
  padding-top: 0;
  padding-bottom: 3rem;
  color: var(--ink-3);
  font-size: 0.85rem;
}
.source-note h2 { margin: 0; font-family: var(--font-sans); font-size: 0.92rem; color: var(--ink-2); }
.source-note p { margin: 0.35rem 0 0; }
.source-note a { text-decoration: underline; }
.emergency-contact {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--ink);
  color: #fff;
}
.emergency-contact-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.emergency-contact h2 { margin: 0; color: #fff; font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.05; }
.emergency-contact p { margin: 0.6rem 0 0; color: #cbd5e1; }
.emergency-contact-layout > div:last-child { text-align: center; }
.emergency-contact-cta { padding: 0.75rem 1.5rem; font-size: 1.25rem; }
.emergency-page :focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }

@media (max-width: 900px) {
  .emergency-header nav ul.open .mobile-home-item { display: block; }
  .emergency-hero-grid { grid-template-columns: 1fr; }
  .emergency-hero-media img { min-height: 300px; }
  .priority-layout { grid-template-columns: 1fr; }
  .priority-layout h2 { border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 0.35); padding-right: 0; }
  .priority-list { grid-template-columns: repeat(5, minmax(125px, 1fr)); overflow-x: auto; }
  .response-steps { grid-template-columns: 1fr; }
  .response-steps article,
  .response-steps article:first-child,
  .response-steps article:last-child { min-height: 0; padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid #cbd5e1; }
  .response-steps article:last-child { border-bottom: 0; }
  .advice-section,
  .video-layout { grid-template-columns: 1fr; }
  .x-video-gallery { width: 100%; }
  .emergency-contact-layout { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
}

@media (max-width: 640px) {
  .emergency-header .nav { min-height: 52px; }
  .emergency-hero { padding-top: 2.5rem; }
  .emergency-hero h1 { font-size: clamp(2.15rem, 12vw, 3.2rem); }
  .emergency-actions { align-items: stretch; flex-direction: column; }
  .emergency-primary,
  .emergency-secondary { width: 100%; }
  .emergency-hero-media img { min-height: 230px; }
  .emergency-status { display: grid; }
  .priority-zone { padding: 0.5rem 0; }
  .priority-layout {
    width: calc(100% - 1rem);
    padding: 0;
    text-align: center;
  }
  .priority-layout h2 {
    justify-content: center;
    padding: 1rem 0.75rem;
    border-right: 0;
    border-bottom: 1px solid rgb(209 8 8 / 0.28);
    text-align: center;
  }
  .priority-list {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }
  .priority-list li {
    align-items: center;
    min-width: 0;
    min-height: 78px;
    text-align: center;
    border-bottom: 1px solid rgb(255 255 255 / 0.25);
  }
  .priority-list li:first-child {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    gap: 0.45rem;
  }
  .priority-list li:first-child span::before { content: "— "; }
  .solidarity-layout { grid-template-columns: 1fr; gap: 0; }
  .solidarity-mark { height: 65px; font-size: 6rem; }
  .advice-callout { padding: 1.4rem; }
  .x-video-frame { min-height: 310px; padding: 1rem; box-shadow: 7px 7px 0 #e2e8f0; }
  .emergency-contact-cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .emergency-page *,
  .emergency-page *::before,
  .emergency-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .response-steps article:hover { transform: none; }
}

/* Sur mobile, l'alerte événementielle conserve volontairement ses animations,
   même lorsque le système demande une réduction des mouvements. */
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .emergency-primary {
    animation: emergency-call-pulse 2.15s ease-in-out infinite !important;
  }
  .priority-layout h2 {
    animation: priority-label-pulse 2.15s ease-in-out infinite !important;
  }
}
