/* -------------------------------------------------------
   PAGE D'ATTENTE — SAINTE-DENISE-LOUISE
   Utilise uniquement les couleurs de la charte du site.
   ------------------------------------------------------- */

:root {
  --azur: #436B83;
  --blue: #436B83;
  --gray: #C6C6C6;
  --black: #000000;
  --red: #B3252D;
  --white: #FFFFFF;

  --font-display: "Zing Rust Base", Impact, "Arial Narrow", sans-serif;
  --font-sans: "Zing Sans Rust", "Segoe UI", Arial, sans-serif;
  --font-serif: "Recoleta", Georgia, "Times New Roman", serif;
}

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-sans);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.waiting-page {
  min-height: 100svh;
}

.waiting-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--blue);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Image connue du site, collée à droite comme sur la homepage */
.waiting-picture {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("../img/sauver-le-sainte-denise-louise-dunkerque.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}

/* Grand fondu horizontal vers le bleu de la charte */
.waiting-fade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      var(--blue) 0%,
      var(--blue) 27%,
      rgba(67, 107, 131, .98) 34%,
      rgba(67, 107, 131, .88) 43%,
      rgba(67, 107, 131, .58) 52%,
      rgba(67, 107, 131, .22) 62%,
      rgba(67, 107, 131, 0) 72%
    );
}

.waiting-header,
.waiting-content,
.waiting-footer {
  width: 100%;
  padding-left: max(1.25rem, calc((100vw - 1500px) / 2));
  padding-right: max(1.25rem, calc((100vw - 1500px) / 2));
}

.waiting-header {
  min-height: 5.2rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(67, 107, 131, .80);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.waiting-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
}

.waiting-logo-frame {
  width: 3.7rem;
  height: 3.7rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.waiting-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.waiting-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .75rem;
  border: 1px solid rgba(255,255,255,.25);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(0,0,0,.12);
}

.status-light {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(179,37,45,.6);
  animation: pulse 1.8s infinite;
}

.waiting-content {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding-top: clamp(3rem, 7vh, 6rem);
  padding-bottom: 2rem;
}

.waiting-copy {
  max-width: 43rem;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--gray);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.4vw, 7rem);
  line-height: .91;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--white);
}

h1 span {
  color: var(--gray);
}

.intro {
  max-width: 36rem;
  margin: 1.5rem 0 .6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  line-height: 1.35;
}

.promise {
  max-width: 40rem;
  margin: 0;
  color: rgba(255,255,255,.83);
  font-size: 1rem;
}

.waiting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: .75rem 1.15rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .025em;
  transition: transform .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: #962027;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.55);
  color: var(--white);
  background: rgba(67,107,131,.25);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.10);
}

.launch-box {
  width: min(40rem, 100%);
  padding: 1rem 1.1rem;
  background: rgba(0,0,0,.23);
  border-left: 3px solid var(--red);
  backdrop-filter: blur(5px);
}

.launch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.dots {
  display: inline-flex;
  gap: .25rem;
}

.dots i {
  width: .34rem;
  height: .34rem;
  border-radius: 50%;
  background: var(--white);
  opacity: .25;
  animation: dot 1.2s infinite;
}

.dots i:nth-child(2) { animation-delay: .18s; }
.dots i:nth-child(3) { animation-delay: .36s; }

.progress {
  height: 4px;
  margin: .75rem 0 .7rem;
  overflow: hidden;
  background: rgba(255,255,255,.15);
}

.progress span {
  display: block;
  width: 58%;
  height: 100%;
  background: var(--red);
  transform-origin: left center;
  animation: progress 3.2s ease-in-out infinite alternate;
}

.launch-box p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .88rem;
}

.waiting-footer {
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
  color: rgba(255,255,255,.65);
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .78rem;
}

/* Mobile : image en haut, texte dessous, sans toucher au desktop */
@media (max-width: 800px) {
  .waiting-hero {
    min-height: 100svh;
    grid-template-rows: auto 1fr auto;
  }

  .waiting-picture {
    height: 58vw;
    min-height: 245px;
    max-height: 390px;
    background-position: top right;
    background-size: 100% auto;
  }

  .waiting-fade {
    background:
      linear-gradient(
        180deg,
        rgba(67,107,131,0) 0%,
        rgba(67,107,131,.08) 25%,
        rgba(67,107,131,.70) 42%,
        var(--blue) 55%
      );
  }

  .waiting-header {
    min-height: 4.5rem;
    padding-top: .55rem;
    padding-bottom: .55rem;
    background: rgba(67,107,131,.70);
  }

  .waiting-logo-frame {
    width: 3.1rem;
    height: 3.1rem;
  }

  .waiting-brand {
    gap: .55rem;
    font-size: .95rem;
    line-height: 1.05;
  }

  .waiting-status {
    display: none;
  }

  .waiting-content {
    justify-content: flex-end;
    padding-top: clamp(13rem, 50vw, 21rem);
    padding-bottom: 1.4rem;
    gap: 1.5rem;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
    max-width: 10ch;
  }

  .intro {
    font-size: 1.15rem;
  }

  .waiting-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
    text-align: center;
  }

  .launch-box {
    width: 100%;
  }

  .waiting-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
  }
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179,37,45,.55); }
  50% { box-shadow: 0 0 0 .45rem rgba(179,37,45,0); }
}

@keyframes dot {
  0%, 70%, 100% { opacity: .25; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-2px); }
}

@keyframes progress {
  from { transform: scaleX(.55); }
  to { transform: scaleX(1); }
}
