/*
 * Page provisoire « bientôt disponible » d'Allô Morgane.
 * Reprend la direction de la landing v5 (src/components/landing) : photo du hero sous un voile onyx,
 * titres Salmond, pastille « Morgane ». Pas de formulaire : un simple lien mail.
 * Polices hébergées sur le site (aucune ressource tierce), aucun script.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

/* Titres principaux : Salmond (en essai). */
@font-face {
  font-family: "Salmond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/salmond-semibold.otf") format("opentype");
}

:root {
  --onyx: #171721;
  --graphite: #1e1e2a;
  --ivory: #ededf3;
  --ash: #c3c3cc;
  --slate: #8a8a97;
  --cobalt: #5266eb;
  --line: rgb(237 237 243 / 12%);

  --f: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-display: "Salmond", var(--f);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--onyx);
  color: var(--ivory);
  font-family: var(--f);
  font-size: 16px;
  font-feature-settings: "cv11", "ss01";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--cobalt);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 3px;
  border-radius: 8px;
}

p,
h1,
h2,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

/* ------------------------------------------------------------------ */
/* En-tête : logotype seul, comme la navigation de la landing          */
/* ------------------------------------------------------------------ */
.nav {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  padding: 16px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ivory);
}

.wordmark {
  display: block;
  height: 26px;
  width: auto;
}

.navNote {
  color: var(--ash);
  font-size: 14px;
  font-weight: 480;
}

/* ------------------------------------------------------------------ */
/* Hero : photo, voile, texte centré                                    */
/* ------------------------------------------------------------------ */
/* Le hero occupe tout l'écran, texte centré verticalement ; le pied de page reste en bas. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1;
  align-items: center;
  overflow: clip;
  padding: 120px 0 96px;
}

.photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--onyx) url("/images/hero-chauffagiste.webp") 60% 40% / cover no-repeat;
}

/* Voile plus dense derrière le texte, puis fondu vers la toile. */
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 45% at 50% 38%, rgb(23 23 33 / 55%), rgb(23 23 33 / 15%) 100%),
    linear-gradient(to bottom, rgb(23 23 33 / 60%) 0%, rgb(23 23 33 / 15%) 30%, rgb(23 23 33 / 45%) 70%, var(--onyx) 100%);
}

.copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.display {
  color: #fff;
  font-family: var(--f-display);
  font-size: clamp(40px, 6.2vw, 72px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* « Morgane » surligné du même cobalt que le bouton principal, texte blanc (4,7:1). */
.hl {
  /* Légèrement incliné, comme une étiquette posée sur le titre (inline-block pour que la rotation s'applique). */
  display: inline-block;
  padding: 0.12em 0.12em;
  border-radius: 0.12em;
  background: var(--cobalt);
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  rotate: -1deg;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lead {
  max-width: 580px;
  margin-top: 24px;
  color: var(--ash);
  font-size: 18px;
  text-wrap: pretty;
}

.lead strong {
  color: var(--ivory);
  font-weight: 480;
}

.note {
  max-width: 520px;
  margin-top: 32px;
  color: var(--ash);
  font-size: 15px;
  line-height: 1.45;
}

.note a {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: rgb(237 237 243 / 40%);
  text-underline-offset: 3px;
  white-space: nowrap;
  /* Zone tactile de 44 px sans changer la mise en page. */
  display: inline-block;
  margin-block: -13px;
  padding-block: 13px;
}

.note a:hover {
  text-decoration-color: var(--ivory);
}

/* ------------------------------------------------------------------ */
/* Pied de page                                                         */
/* ------------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  color: var(--slate);
  font-size: 14px;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ash);
  text-decoration: underline;
  text-decoration-color: rgb(195 195 204 / 40%);
  text-underline-offset: 3px;
}

.footer a:hover {
  color: var(--ivory);
  text-decoration-color: var(--ivory);
}

/* ------------------------------------------------------------------ */
/* Entrée en douceur (sans JavaScript ; désactivée si mouvement réduit) */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.9s var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 110ms + 80ms);
  }

  .photo {
    animation: settle 1.6s var(--ease-out) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    scale: 1.04;
  }
}

/* ------------------------------------------------------------------ */
/* Mobile                                                               */
/* ------------------------------------------------------------------ */
@media (max-width: 760px) {
  .hero {
    padding: 112px 0 64px;
  }
}

@media (max-width: 640px) {
  .photo {
    background-position: 72% 40%;
  }

  .navNote {
    display: none;
  }

  /* Mobile : logo centré dans l'en-tête. */
  .nav .container {
    justify-content: center;
  }
}

/* ------------------------------------------------------------------ */
/* Page mentions légales                                                */
/* ------------------------------------------------------------------ */
.legal .nav {
  position: static;
}

.legalMain {
  flex: 1;
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.legal h1 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal section {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--graphite);
}

.legal h2 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 560;
  line-height: 1.3;
}

.legal p + p {
  margin-top: 12px;
}

.legal p,
.legal dd {
  color: var(--ash);
}

.legal dt {
  margin-top: 12px;
  color: var(--ivory);
  font-weight: 480;
}

.legal dt:first-child {
  margin-top: 0;
}

.legal section a {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: rgb(237 237 243 / 40%);
  text-underline-offset: 3px;
}
