/*
 * Every position is the Figma value: calc(N * var(--u)) on desktop (frame 1728 wide,
 * scales down to 768px), calc(N * var(--m)) on mobile (frame 402 wide, scales with the screen).
 */
/* Polices de la maquette, auto-hébergées. font-display: swap : le texte s'affiche tout de suite
   avec la police de secours, puis bascule dès que la police est chargée. */
@font-face {
  font-family: "Titre";
  src: url(/fonts/halisa-condensed-black.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Etiquette";
  src: url(/fonts/halisa-regular.woff2) format("woff2");
  font-weight: 400; /* Regular only: the mockup uses Halisa Black (800), synthesized bold until that file is added */
  font-display: swap;
}
@font-face {
  font-family: "Texte";
  src: url(/fonts/compadre-regular.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --fond: #f9f2e0;
  --encre: #ce692f;
  /* Size correction factors, kept at 1 now that the mockup fonts are installed. */
  --k-titre: 1;
  --k-texte: 1;
  --k-etiquette: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--fond); color: var(--encre); }
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: inline-size;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, p, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.m { display: none; }

.poster {
  --u: calc(min(100cqw, 1728px) / 1728);
  position: relative;
  width: calc(1728 * var(--u));
  height: calc(1117 * var(--u));
  letter-spacing: calc(-0.4 * var(--u));
  text-align: center;
}
.poster > *, .contacts > *, .contact > * { position: absolute; }

/* TITRE — Halisa Condensed 800 283 / lh 32 */
.title { left: 0; top: 0; width: 100%; height: 100%; font-weight: 400; }
.title__line {
  position: absolute;
  left: 0;
  width: 100%;
  font-family: "Titre", "Arial Narrow", sans-serif;
  font-size: calc(283 * var(--k-titre) * var(--u));
  line-height: calc(32 * var(--u));
  text-transform: uppercase;
  white-space: nowrap;
}
.title__line--1 { top: calc(142 * var(--u)); }
.title__line--2 { top: calc(356 * var(--u)); }

/* Compadre's vertical metrics put the text 3px (at 26px) lower in browsers than in Figma:
   lift every Compadre block by the same proportion of its font size. */
.intro, .contact__value { transform: translateY(-0.115em); }

/* TEXTE — Compadre 26 / 40 */
.intro {
  left: calc(88 * var(--u));
  top: calc(555 * var(--u));
  width: calc(1550 * var(--u));
  font-family: "Texte", sans-serif;
  font-size: calc(26 * var(--k-texte) * var(--u));
  line-height: calc(40 * var(--u));
  text-transform: uppercase;
}

/* EN ATTENDANT — Halisa Condensed 47 / 40, arrows 348 × 17.86 */
.waiting { left: calc(88 * var(--u)); top: calc(783 * var(--u)); width: calc(1550 * var(--u)); height: calc(38 * var(--u)); }
.waiting__text {
  font-family: "Titre", "Arial Narrow", sans-serif;
  font-size: calc(47 * var(--k-titre) * var(--u));
  line-height: calc(40 * var(--u));
  text-transform: uppercase;
  white-space: nowrap;
}
.waiting__text u { text-decoration-thickness: calc(2 * var(--u)); text-underline-offset: calc(6 * var(--u)); }
.arrow { position: absolute; top: calc(12 * var(--u)); width: calc(348 * var(--u)); height: calc(17.86 * var(--u)); fill: var(--encre); }
.arrow--left { left: 0; }
.arrow--right { right: 0; transform: scaleX(-1); }

/* COORDONNÉES — pills Halisa 800 26 in 177 × 46 ellipses, values Compadre 26 / 40 */
.contacts { left: 0; top: 0; width: 100%; height: 100%; }
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(177 * var(--u));
  height: calc(46 * var(--u));
  font-family: "Etiquette", "Archivo", sans-serif;
  font-weight: 800;
  font-size: calc(26 * var(--k-etiquette) * var(--u));
  line-height: 1;
  top: calc(908 * var(--u));
  --pill-border: calc(2 * var(--u));
  --pill-shift: calc(4 * var(--u));
}
/* Outline drawn apart from the label so it can sit a few px lower than the text
   (the label alone stays at its mockup position). */
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border: var(--pill-border) solid var(--encre);
  border-radius: 50%;
  transform: translateY(var(--pill-shift));
  pointer-events: none;
}
.contact__value {
  font-family: "Texte", sans-serif;
  font-size: calc(26 * var(--k-texte) * var(--u));
  line-height: calc(40 * var(--u));
  text-transform: uppercase;
  white-space: nowrap;
}
.contact--follow .pill { left: calc(179 * var(--u)); }
.contact--follow .contact__value { left: calc(89 * var(--u)); width: calc(359 * var(--u)); top: calc(974 * var(--u)); }
.contact--follow .contact__value a { text-decoration: underline; text-underline-offset: calc(4 * var(--u)); text-decoration-thickness: calc(2 * var(--u)); }
.contact--call .pill { left: calc(1240 * var(--u)); }
.contact--write .pill { left: calc(1415 * var(--u)); }
.contact--call .contact__value { left: calc(1194 * var(--u)); width: calc(444 * var(--u)); top: calc(974 * var(--u)); }
.contact--write .contact__value { left: calc(1194 * var(--u)); width: calc(444 * var(--u)); top: calc(1014 * var(--u)); }

/* 45 - 48® — Halisa Condensed 209 / 32 */
.brand {
  left: calc(619 * var(--u));
  top: calc(951 * var(--u));
  width: calc(488 * var(--u));
  font-family: "Titre", "Arial Narrow", sans-serif;
  font-size: calc(209 * var(--k-titre) * var(--u));
  line-height: calc(32 * var(--u));
  white-space: nowrap;
}


/* MOBILE — iPhone frame 402 × 821 */
@media (max-width: 767px) {
  .d { display: none; }
  .m { display: inline; }
  .poster {
    --u: calc(100cqw / 402);
    height: calc(821 * var(--u));
  }
  .title__line { font-size: calc(63 * var(--k-titre) * var(--u)); }
  .title__line--1 { top: calc(46 * var(--u)); }
  .title__line--2 { top: calc(97 * var(--u)); }
  .intro {
    left: calc(36 * var(--u));
    top: calc(186 * var(--u));
    width: calc(330 * var(--u));
    font-size: calc(14 * var(--k-texte) * var(--u));
    line-height: calc(19 * var(--u));
  }
  .waiting { left: 0; top: calc(338 * var(--u)); width: 100%; height: calc(55 * var(--u)); }
  .waiting__text { font-size: calc(30 * var(--k-titre) * var(--u)); line-height: calc(32 * var(--u)); }
  .arrow { top: calc(18 * var(--u)); }
  .arrow--left { left: calc(-278 * var(--u)); }
  .arrow--right { right: auto; left: calc(337 * var(--u)); }

  .pill { width: calc(97 * var(--u)); height: calc(26 * var(--u)); font-size: calc(14 * var(--k-etiquette) * var(--u)); --pill-border: calc(2 * var(--u)); --pill-shift: calc(2 * var(--u)); }
  .contact__value { font-size: calc(14 * var(--k-texte) * var(--u)); line-height: calc(18 * var(--u)); }
  .contact--follow .contact__value a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .contact--follow .pill { left: calc(159 * var(--u)); top: calc(449 * var(--u)); }
  .contact--follow .contact__value { left: calc(92 * var(--u)); width: calc(233 * var(--u)); top: calc(483 * var(--u)); }
  .contact--call .pill { left: calc(159 * var(--u)); top: calc(551 * var(--u)); }
  .contact--call .contact__value { left: calc(121 * var(--u)); width: calc(173 * var(--u)); top: calc(585 * var(--u)); }
  .contact--write .pill { left: calc(159 * var(--u)); top: calc(634 * var(--u)); }
  .contact--write .contact__value { left: calc(71 * var(--u)); width: calc(273 * var(--u)); top: calc(668 * var(--u)); }
  .brand { left: 0; width: 100%; top: calc(739 * var(--u)); font-size: calc(63 * var(--k-titre) * var(--u)); }
}
