/* ==========================================================
   Domaine Louis Moreau — Page d'attente
   Maquette Figma : "Page d'attente" (1920 × 993)
   ========================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Raleway";
  src: url("fonts/raleway-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Text";
  src: url("fonts/crimson-text-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --blanc: #ffffff;
  --noir: #1c1b19;
  --bordure: rgba(109, 109, 91, 0.5); /* #6D6D5B à 50 % */

  --font-serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --font-sans: "Raleway", "Helvetica Neue", Arial, sans-serif;

  /* Marge entre la page et le cadre (36 / 37 px sur la maquette) */
  --frame-inset: 36px;
  /* Espace logo → textes et textes → maison (92 px sur la maquette) */
  --section-gap: clamp(40px, 9.3vh, 92px);
  /* Largeur de l'illustration (346 px), réduite sur les écrans peu hauts */
  --house-width: min(346px, 80vw, max(220px, 34.8vh));
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--noir);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- Cadre ---------- */
.frame {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--frame-inset) calc(var(--frame-inset) + 1px);
}

.frame__inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--blanc);
  border: 1px solid var(--bordure);
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ---------- Logo ---------- */
.logo {
  margin: 0;
  line-height: 0;
}

.logo img {
  width: min(279px, 72vw);
}

/* ---------- Messages FR / EN ---------- */
.messages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 425px));
  column-gap: 48px;
  margin-top: var(--section-gap);
}

.message--fr {
  text-align: right;
}

.message--en {
  text-align: left;
}

.message__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  line-height: 29px;
  letter-spacing: 1.21px;
}

.message__text {
  margin: 16px 0 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.62; /* 24.3px */
  letter-spacing: 0.6px;
}

/* ---------- Illustration maison ---------- */
.house {
  position: relative;
  width: var(--house-width);
  aspect-ratio: 82 / 73; /* 346 × 308 */
  margin: var(--section-gap) 0 0;
  overflow: hidden;
}

/* Recadrage identique à la maquette (masque la légende du dessin) */
.house img {
  position: absolute;
  top: -0.446%;
  left: -2.872%;
  width: 103.647%;
  max-width: none;
  height: 105.799%;
}

/* Fondu blanc sur le coin supérieur droit */
.house::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(255deg, var(--blanc) 0.69%, rgba(255, 255, 255, 0) 21.08%);
  pointer-events: none;
}

/* ---------- Apparition ---------- */
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.logo,
.messages,
.house {
  animation: appear 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.messages {
  animation-delay: 0.25s;
}

.house {
  animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .messages,
  .house {
    animation: none;
  }
}

/* ---------- Mobile / tablette portrait ---------- */
@media (max-width: 767px) {
  :root {
    --frame-inset: 16px;
    --section-gap: 48px;
    --house-width: min(300px, 78vw);
  }

  .frame {
    padding: var(--frame-inset);
  }

  .frame__inner {
    padding: 56px 20px;
  }

  .messages {
    grid-template-columns: minmax(0, 425px);
    row-gap: 32px;
  }

  .message--fr,
  .message--en {
    text-align: center;
  }

  .message__title {
    font-size: 21px;
  }

  .message__text {
    font-size: 14px;
  }
}
