/* ==========================================================================
   Terres Ethniques — page d'attente
   Anne Requillart, sculptrice · plasticienne
   ========================================================================== */

@font-face {
  font-family: 'Marcellus';
  src: url('/assets/fonts/marcellus.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/assets/fonts/jost.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --noir:  #000000;
  --creme: #EDE7DE;
  --dim:   #968F86;
  --terre: #B84E3A;
  --filet: #3A3632;
  --gris:  #56524E;
}

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

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

body {
  background: var(--noir);
  color: var(--creme);
  font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6vh 24px 0;
  text-align: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  width: 100%;
  max-width: 720px;
  animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.oeuvre {
  display: block;
  width: min(56vw, 340px);
  height: auto;
  margin: 0 auto 40px;
  filter: contrast(1.04);
}

.logo {
  display: block;
  width: 52px;
  height: auto;
  margin: 0 auto 34px;
  opacity: .95;
}

h1 {
  font-family: 'Marcellus', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(30px, 6.4vw, 54px);
  letter-spacing: .16em;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--terre);
  font-size: 13px;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.signature::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--terre);
  opacity: .8;
}

.role {
  margin-top: 12px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.filet {
  width: 90px;
  height: 1px;
  background: var(--filet);
  margin: 40px auto;
}

.message {
  max-width: 34em;
  margin: 0 auto;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.7;
}

.contact { margin-top: 46px; }

.label {
  margin-bottom: 18px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.cta {
  display: inline-block;
  padding: 16px 38px;
  border: 1px solid var(--terre);
  color: var(--creme);
  text-decoration: none;
  font-size: clamp(14px, 2.1vw, 16px);
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .35s ease, color .35s ease;
}
.cta:hover,
.cta:focus-visible {
  background: var(--terre);
  color: #0A0A0A;
  outline: none;
}

.fallback {
  margin-top: 18px;
  color: var(--dim);
  font-size: 14px;
  letter-spacing: .04em;
}
.fallback em { font-style: normal; color: var(--gris); }

footer {
  margin-top: auto;
  padding: 56px 0 28px;
  color: var(--gris);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .oeuvre { width: 66vw; margin-bottom: 30px; }
  h1 { letter-spacing: .1em; }
  .signature { gap: 12px; }
  .signature::before { width: 28px; }
  .cta { padding: 15px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .wrap { animation: none; }
  * { transition: none !important; }
}

/* Écrans peu hauts (portables 13-14") : la page tient sans défilement */
@media (min-width: 700px) and (max-height: 860px) {
  body { padding-top: 4vh; }
  .oeuvre { width: min(40vw, 240px); margin-bottom: 26px; }
  .logo { width: 44px; margin-bottom: 24px; }
  .filet { margin: 30px auto; }
  .contact { margin-top: 34px; }
  footer { padding: 34px 0 20px; }
}
