/* Page de liens mobile — Le Chemin d’Avelye
   Graphisme fidèle au mockup validé : fond WebP, boutons à deux lignes, pied de page. */

:root {
  --ivoire: #FFF9EE;
  --creme: #F7F3EB;
  --miel-pale: #F7E9C6;
  --jaune-miel: #F2DDA5;
  --miel-plus: #F3CE8A;
  --or-doux: #D9A23B;
  --brun: #2F2A25;
  --brun-chaud: #5A3E2A;
  --largeur: 430px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ivoire);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--brun);
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ivoire);
}

.page {
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 0;
}

.screen {
  width: min(100%, var(--largeur));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    max(20px, env(safe-area-inset-top))
    28px
    max(18px, env(safe-area-inset-bottom));
  background:
    linear-gradient(rgba(255, 249, 238, 0.05), rgba(255, 249, 238, 0.05)),
    url("assets/fond-ecran-avelye.webp") center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero {
  text-align: center;
  width: 100%;
  margin-inline: auto;
}

.logo {
  display: block;
  width: clamp(106px, 28vw, 134px);
  height: auto;
  margin: 0 auto 10px;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.05rem, 9vw, 2.62rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--brun);
}

.baseline {
  margin: 8px 0 0;
  font-size: clamp(0.87rem, 3.35vw, 0.98rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--brun-chaud);
}

.baseline span {
  color: var(--or-doux);
  padding-inline: 0.38em;
}

.signature {
  margin: 15px 0 0;
  font-family: "Allura", cursive;
  font-size: clamp(2.05rem, 9.5vw, 2.62rem);
  line-height: 0.82;
  color: var(--or-doux);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px auto 26px;
  color: var(--or-doux);
}

.ornament span {
  width: min(82px, 22vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,162,59,.72), transparent);
}

.ornament b {
  font-size: 0.82rem;
  font-weight: 400;
}

.intro {
  margin: 0 auto 34px;
  max-width: 390px;
  font-size: clamp(1rem, 3.8vw, 1.12rem);
  line-height: 1.72;
  letter-spacing: 0.005em;
}

.links {
  display: grid;
  gap: 17px;
  width: 100%;
  margin: 0 auto;
}

.link-button {
  min-height: 68px;
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  gap: 13px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #F9E7B8 0%, var(--jaune-miel) 100%);
  color: var(--brun);
  text-decoration: none;
  box-shadow:
    0 12px 24px rgba(90, 62, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.70);
  transition: transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: rgba(217, 162, 59, .16);
}

.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 16px 30px rgba(90, 62, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  outline: none;
}

.link-button:active {
  transform: translateY(1px) scale(.995);
}

.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--brun);
}

.icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.label {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.label strong {
  display: block;
  font-size: clamp(1.08rem, 4.35vw, 1.22rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.label small {
  display: block;
  font-size: clamp(0.72rem, 2.75vw, 0.82rem);
  line-height: 1.25;
  color: var(--brun-chaud);
  opacity: 0.92;
}

.chevron {
  justify-self: end;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 300;
  color: var(--brun);
  transform: translateY(-1px);
}

.footer {
  text-align: center;
  margin-top: clamp(54px, 8svh, 82px);
}

.footer-signature {
  margin: 0 0 18px;
  font-family: "Allura", cursive;
  font-size: clamp(1.42rem, 6vw, 1.72rem);
  line-height: 1;
  color: var(--or-doux);
}

.site-url {
  display: inline-block;
  color: var(--brun);
  text-decoration: none;
  font-size: clamp(1rem, 3.5vw, 1.08rem);
  letter-spacing: 0.045em;
}

.credit {
  margin: 16px 0 0;
  font-size: clamp(0.75rem, 2.7vw, 0.84rem);
  color: var(--brun-chaud);
  opacity: 0.55;
}

@media (min-width: 760px) {
  body {
    background: #f9f5ec;
  }

  .screen {
    min-height: 900px;
    border-radius: 34px;
    box-shadow: 0 22px 60px rgba(90, 62, 42, 0.16);
    margin: 28px auto;
  }
}

@media (max-height: 760px) {
  .screen {
    justify-content: flex-start;
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .logo {
    width: 92px;
    margin-bottom: 5px;
  }

  .signature {
    margin-top: 10px;
  }

  .ornament {
    margin-bottom: 14px;
  }

  .intro {
    margin-bottom: 18px;
    line-height: 1.45;
  }

  .links {
    gap: 10px;
  }

  .link-button {
    min-height: 58px;
  }

  .footer {
    margin-top: 28px;
  }
}
