/* Empreinte Retrouvailles des lead magnets (docs/adr/0001-lead-magnets-structure-commune.md).
   Ce qui se reconnaît d'un site à l'autre : les deux polices, les formes (rayons, bouton à ombre décalée,
   filets), l'échelle typographique et le pied de page qui ramène à nos-retrouvailles.fr.
   Ce qui change : la palette. Chaque site pose ses couleurs en tête de sa feuille, sur :root :
     --lm-fond, --lm-encre, --lm-encre-douce, --lm-accent, --lm-accent-encre (texte sur l'accent),
     --lm-accent-appui (ombre du bouton), --lm-pop (deuxième couleur vive), --lm-carte (fond des panneaux),
     --lm-filet.
   Le site peut redéfinir n'importe quel jeton --lm-* ; il n'écrit aucune valeur en dur ailleurs. */

@font-face {
  font-family: "Caprasimo";
  src: url("/commun/fonts/caprasimo-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/commun/fonts/figtree-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/commun/fonts/figtree-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/commun/fonts/figtree-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Palette par défaut : le sapin et la guirlande de Retrouvailles. Chaque site la remplace. */
  --lm-fond: #f6f1e7;
  --lm-encre: #13261e;
  --lm-encre-douce: #4a5a52;
  --lm-accent: #e8553d;
  --lm-accent-encre: #fff;
  --lm-accent-appui: #a8321f;
  --lm-pop: #1e3a2f;
  --lm-carte: #fff;
  --lm-filet: rgb(19 38 30 / 0.18);

  /* Polices et échelle (rapport 1,25, corps 18 px), comme Retrouvailles. */
  --lm-police-titre: "Caprasimo", "Cooper Black", Georgia, serif;
  --lm-police-texte: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  --lm-t-petit: 1.0625rem;
  --lm-t-0: 1.125rem;
  --lm-t-1: 1.406rem;
  --lm-t-2: 1.758rem;
  --lm-t-h2: clamp(2.197rem, 1.6rem + 2.4vw, 3.433rem);
  --lm-t-h1: clamp(2.747rem, 1.8rem + 3.6vw, 4.292rem);
  --lm-t-affiche: clamp(3.433rem, 1.4rem + 7vw, 7.5rem);
  --lm-interligne: 1.55;
  --lm-interligne-titre: 1.02;
  --lm-mesure: 60ch;

  /* Espacement (base 8 px) et formes. */
  --lm-e-1: 0.25rem;
  --lm-e-2: 0.5rem;
  --lm-e-3: 1rem;
  --lm-e-4: 1.5rem;
  --lm-e-5: 2rem;
  --lm-e-6: 3rem;
  --lm-e-7: 4rem;
  --lm-e-8: 6rem;
  --lm-gouttiere: clamp(1rem, 0.4rem + 3vw, 4rem);
  --lm-largeur: 72rem;
  --lm-cible: 3rem;
  --lm-rayon-petit: 10px;
  --lm-rayon: 20px;
  --lm-rayon-photo: 12px;
  --lm-rayon-rond: 999px;
  --lm-trait: 1px;
  --lm-trait-fort: 2px;
  --lm-decalage-bouton: 4px;

  /* Mouvement. */
  --lm-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --lm-ressort: cubic-bezier(0.34, 1.56, 0.64, 1);
  --lm-duree-appui: 140ms;
  --lm-duree-ui: 220ms;
  --lm-duree-entree: 400ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--lm-fond);
  color: var(--lm-encre);
  font-family: var(--lm-police-texte);
  font-size: var(--lm-t-0);
  line-height: var(--lm-interligne);
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--lm-police-titre);
  font-weight: 400;
  line-height: var(--lm-interligne-titre);
  text-wrap: balance;
}
:focus-visible {
  outline: var(--lm-trait-fort) solid var(--lm-accent);
  outline-offset: var(--lm-trait-fort);
}

/* ---------- Le bouton de Retrouvailles : plein, ombre décalée qui s'écrase à l'appui ---------- */
.lm-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--lm-e-2);
  min-height: var(--lm-cible);
  padding: var(--lm-e-2) var(--lm-e-5);
  border: 0;
  border-radius: var(--lm-rayon-petit);
  background: var(--lm-accent);
  color: var(--lm-accent-encre);
  box-shadow: 0 var(--lm-decalage-bouton) 0 0 var(--lm-accent-appui);
  font: 700 var(--lm-t-0) / 1.2 var(--lm-police-texte);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--lm-duree-appui) var(--lm-ease-out), box-shadow var(--lm-duree-appui) var(--lm-ease-out);
}
.lm-bouton:active {
  transform: translateY(calc(var(--lm-decalage-bouton) - var(--lm-trait)));
  box-shadow: 0 var(--lm-trait) 0 0 var(--lm-accent-appui);
}
.lm-bouton:disabled {
  opacity: 0.6;
  cursor: progress;
}
.lm-bouton-second {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 var(--lm-trait-fort) currentColor;
}
.lm-bouton-second:active {
  transform: none;
  box-shadow: inset 0 0 0 var(--lm-trait-fort) currentColor;
}

/* ---------- Formulaire d'inscription (inscription.js) ---------- */
.in {
  display: grid;
  gap: var(--lm-e-2);
  max-width: var(--lm-mesure);
}
.in-titre {
  margin: 0;
  font-family: var(--lm-police-titre);
  font-size: var(--lm-t-2);
  line-height: 1.15;
}
.in-texte,
.in-note {
  margin: 0;
  color: var(--lm-encre-douce);
}
.in-note {
  font-size: var(--lm-t-petit);
}
.in-etiquette {
  margin-top: var(--lm-e-2);
  font-weight: 600;
}
.in-ligne {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lm-e-2);
}
.in input[type="email"] {
  flex: 1 1 14rem;
  min-height: var(--lm-cible);
  padding: 0 var(--lm-e-3);
  border: var(--lm-trait-fort) solid var(--lm-filet);
  border-radius: var(--lm-rayon-petit);
  background: var(--lm-carte);
  color: var(--lm-encre);
  font: inherit;
}
.in-envoyer {
  flex: 0 0 auto;
}
.in-accord {
  display: flex;
  align-items: flex-start;
  gap: var(--lm-e-2);
  font-size: var(--lm-t-petit);
  line-height: 1.3;
  cursor: pointer;
}
.in-accord input {
  flex: 0 0 auto;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  margin-top: var(--lm-e-1);
  accent-color: var(--lm-accent);
}
.in-message {
  margin: 0;
  font-weight: 700;
}
.in-piege {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.in-fait .in-ligne,
.in-fait .in-accord,
.in-fait .in-etiquette {
  display: none;
}

/* ---------- Pied de page : le retour vers nos-retrouvailles.fr, mis en scène par chaque site ---------- */
.lm-pied {
  padding: var(--lm-e-7) var(--lm-gouttiere) var(--lm-e-5);
}
.lm-pied-mentions {
  margin: var(--lm-e-5) 0 0;
  font-size: var(--lm-t-petit);
  color: var(--lm-encre-douce);
}
.lm-pied-mentions a {
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .lm-pied,
  .in,
  .lm-non-imprime {
    display: none !important;
  }
}
