/* =========================================================
   Domaine Cauffepé — waiting page
   Tous les blocs sont indépendants et repositionnables.
   ========================================================= */

:root {
  --bg: #f6ede6;
  --olive: #625d3e;
  --rose: #b09292;
  --brown: #4c292c;
  --brown-line: #7c5b5d;

  --page-gutter: clamp(28px, 7.3vw, 150px);
  --transition: 180ms ease;
}

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

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

html {
  background: var(--bg);
}

body {
  color: var(--brown);
  background: var(--bg);
font-family: "Libertinus Serif", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.waiting-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Décors latéraux ---------- */

.decor {
  position: absolute;
  z-index: 0;
  width: clamp(250px, 21vw, 430px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.decor--left {
  left: 0;
  top: 50%;
  transform: translate(-22%, -49%);
}

.decor--right {
  right: 0;
  top: 50%;
  transform: translate(22%, -49%);
}

/* ---------- Structure ---------- */

.main-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1780px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding:
    clamp(72px, 12vh, 145px)
    var(--page-gutter)
    clamp(54px, 7.5vh, 86px);

  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ---------- Logo ---------- */

.brand {
  width: min(100%, 680px);
  margin: 0 auto;
  text-align: center;
  color: var(--olive);
}

.brand__mark {
  display: block;
  width: clamp(105px, 8vw, 146px);
  height: auto;
  margin: 0 auto clamp(22px, 2.2vh, 32px);
}

.brand__name {
  margin: 0;
font-family: "Libertinus Serif", Georgia, "Times New Roman", serif;
font-size: clamp(31px, 2.55vw, 51px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
}

.brand__baseline {
  margin: clamp(14px, 1.7vh, 20px) 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(11px, 0.9vw, 17px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.19em;
}

/* ---------- Message central ---------- */

.message {
	font-family: "Libertinus Serif", Georgia, "Times New Roman", serif;
	font-weight:400;
  align-self: center;
  justify-self: center;
  width: min(100%, 650px);
  margin-top: clamp(10px, 2.5vh, 32px);
  text-align: center;
}

.message p {
  margin: 0;
  font-size: clamp(18px, 1.35vw, 27px);
  line-height: 1.16;
  letter-spacing: 0.002em;
}

.message strong {
  font-weight: 700;
}

/* ---------- Réseaux sociaux ---------- */

.socials {
  position: absolute;
  left: 50%;
  top: 75%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: clamp(16px, 1.25vw, 24px);
}

.socials__link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--olive);
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.socials__link:hover,
.socials__link:focus-visible {
  transform: translateY(-2px);
  opacity: .72;
}

.socials__link svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* ---------- Footer ---------- */

.contact {
  align-self: end;
  width: 100%;
}

.contact__line {
  width: 100%;
  height: 1px;
  margin-bottom: 22px;
  background: var(--brown-line);
}

.contact__items {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
}

.contact__item {
  text-decoration: none;
  font-size: clamp(18px, 1vw, 20px);
  line-height: 1.25;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.contact__item:hover,
.contact__item:focus-visible {
  opacity: .62;
}

.contact__item--address {
  justify-self: start;
}

.contact__item--phone {
  justify-self: center;
}

.contact__item--mail {
  justify-self: end;
}

/* =========================================================
   Tablette
   ========================================================= */

@media (max-width: 1100px) {
  :root {
    --page-gutter: clamp(30px, 5vw, 60px);
  }

  .decor {
    width: clamp(220px, 30vw, 340px);
    opacity: .68;
  }

  .contact__items {
    grid-template-columns: 1fr 1fr;
    gap: 12px 26px;
  }

  .contact__item--address {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .contact__item--phone {
    justify-self: end;
  }

  .contact__item--mail {
    justify-self: start;
  }
}

/* =========================================================
   Mobile
   Logo en haut / message au centre / réseaux en bas.
   Les coordonnées restent séparées et empilées.
   ========================================================= */

@media (max-width: 700px) {
  .waiting-page {
    min-height: 100svh;
  }

  .decor {
    display: none;
  }

  .main-content {
    width: 100%;
    min-height: 100svh;
    padding:
      max(26px, env(safe-area-inset-top))
      22px
      max(22px, env(safe-area-inset-bottom));

    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 0;
  }

  .brand {
    width: 100%;
  }

  .brand__mark {
    width: 82px;
    margin-bottom: 14px;
  }

  .brand__name {
    font-size: clamp(24px, 8.2vw, 36px);
  }

  .brand__baseline {
    max-width: 330px;
    margin: 11px auto 0;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: 0.16em;
  }

  .message {
    align-self: center;
    width: min(100%, 390px);
    margin: 0 auto;
    padding: 32px 0 22px;
  }

  .message p {
    font-size: clamp(17px, 4.9vw, 21px);
    line-height: 1.23;
  }

  .contact {
    align-self: end;
    margin-bottom: 23px;
  }

  .contact__line {
    width: min(100%, 390px);
    margin: 0 auto 15px;
  }

  .contact__items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .contact__item {
    justify-self: auto;
    font-size: 13px;
    white-space: normal;
  }

  .socials {
    position: static;
    justify-self: center;
    transform: none;
    display: flex;
    gap: 17px;
    padding-bottom: 2px;
  }

  .socials__link {
    width: 31px;
    height: 31px;
  }
}

/* Mobile très court : réduit les espaces sans casser la composition */
@media (max-width: 700px) and (max-height: 680px) {
  .main-content {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .brand__mark {
    width: 62px;
    margin-bottom: 9px;
  }

  .brand__name {
    font-size: 25px;
  }

  .brand__baseline {
    margin-top: 8px;
    font-size: 8px;
  }

  .message {
    padding: 15px 0;
  }

  .message p {
    font-size: 16px;
  }

  .contact {
    margin-bottom: 12px;
  }

  .contact__line {
    margin-bottom: 10px;
  }

  .contact__items {
    gap: 3px;
  }

  .contact__item {
    font-size: 11px;
  }

  .socials__link {
    width: 27px;
    height: 27px;
  }
}
