/*
 * Champagne Hespéria — habillage de la page d'attente (noyau 0.13.0, site.config.ts › attente.styles).
 * Maquette validée par Joris le 7 octobre 2026 : piste A « Cadre et filets » (canevas Design
 * « Champagne Hespéria — Page d'attente »). Chargée APRÈS la feuille du noyau, qui garde la structure.
 * Charte (guideline Justine, octobre 2026) : Or antique #968259, fond #F6F0E8, Josefin Slab Bold
 * (approche 150 = 0.15em) et Josefin Sans Regular (approche 100 = 0.1em). Couleurs jamais modifiées.
 * Polices auto-hébergées (Fontsource 5.3.0, licence SIL OFL 1.1), sous-ensemble latin (français complet).
 */
@font-face {
  font-family: 'Josefin Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/josefin-slab-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/josefin-sans-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --hesp-or: #968259;
  --hesp-vert: #828F63;
  --hesp-fond: #F6F0E8;
  --hesp-marge: clamp(12px, 2vw, 24px);
  --hesp-titres: 'Josefin Slab', 'Palatino Linotype', Palatino, serif;
  --hesp-texte: 'Josefin Sans', 'Century Gothic', sans-serif;
  --hesp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { background: var(--hesp-fond); }

/* Le cadre fin qui fait le tour de la page */
body {
  margin: var(--hesp-marge);
  min-height: calc(100vh - 2 * var(--hesp-marge));
  min-height: calc(100dvh - 2 * var(--hesp-marge));
  border: 1px solid var(--hesp-or);
  padding: 0 clamp(16px, 4vw, 48px);
  background: var(--hesp-fond);
  color: var(--hesp-or);
  font-family: var(--hesp-texte);
  font-size: 17px;
  line-height: 1.5;
}

a { color: var(--hesp-or); transition: color 180ms var(--hesp-ease); }
a:hover, a:focus-visible { color: var(--hesp-vert); }

/* Choix de la langue, en haut à droite */
header {
  padding-top: 8px;
  opacity: 1;
  font-family: var(--hesp-titres);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
header a { display: inline-flex; align-items: center; min-height: 44px; }

main { max-width: 600px; padding: clamp(32px, 5vw, 56px) 0 48px; }

/* Logo principal, puis un court filet de séparation */
.logo { margin: 0 auto 32px; }
.logo img { width: min(280px, 72vw); max-height: none; height: auto; }
.logo::after { content: ''; display: block; width: 64px; height: 1px; margin: 32px auto 0; background: var(--hesp-or); }

h1 {
  margin: 0 0 32px;
  font-family: var(--hesp-titres);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Deux lignes : une par phrase */
.phrase { margin: 0 auto 48px; max-width: none; font-size: 19px; line-height: 1.6; letter-spacing: 0.04em; opacity: 1; }

/* Coordonnées : un filet sur toute la largeur, puis trois colonnes (une seule sur téléphone) */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 24px;
  width: 100%;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--hesp-or);
  border-radius: 0;
  text-align: center;
  font-size: 17px;
}
.contact h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact p { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; }
.contact span { min-width: 0; opacity: 1; }
.contact p > span:first-child {
  font-family: var(--hesp-titres);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.contact .c-adresse { order: -1; }
.contact .adr-l { display: block; }
.contact .sep { display: none; }
.contact a { color: var(--hesp-or); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact a:hover, .contact a:focus-visible { color: var(--hesp-vert); }

/* Pied de page : liens légaux, © et loi Évin */
footer { padding: 0 0 32px; opacity: 1; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.pied { column-gap: 20px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 20px; }
footer nav a, .copyright { display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
footer nav a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.evin { margin: 6px auto 0; max-width: none; font-size: 13px; opacity: 1; }

/* Entrée courte et amortie (règles Emil) ; rien si le visiteur refuse les animations (règle du noyau) */
main > * { animation-duration: 280ms; animation-timing-function: var(--hesp-ease); }
main > :nth-child(2) { animation-delay: 60ms; }
main > :nth-child(3) { animation-delay: 120ms; }
main > :nth-child(4) { animation-delay: 180ms; }
main > :nth-child(5) { animation-delay: 240ms; }
@media (prefers-reduced-motion: reduce) { main > * { animation: none; } }
