/* =========================================================================
   SoriaHR — Landing
   Direction : style typographique suisse / dossier technique.
   Papier chaud, encre, un seul accent (vert de marque), filets hairline,
   figures numérotées, marques de repérage « + ».
   Fontes auto-hébergées (LPD) : Archivo variable + Fragment Mono.
   ========================================================================= */

/* ---- Fontes ----------------------------------------------------------- */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../../fonts/landing/archivo-normal-latin.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: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../../fonts/landing/archivo-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/landing/fragment-mono-normal-latin.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: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/landing/fragment-mono-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Jetons ------------------------------------------------------------ */

:root {
  /* Papier & encre */
  --paper: #f2f0e9;
  --paper-high: #faf9f4;
  --ink: #171b16;
  --ink-soft: #33392f;
  --ink-muted: #67705f;
  --ink-faint: #99a08f;

  /* Accent — vert de marque produit */
  --accent: #036141;
  --accent-deep: #054a33;
  --accent-bright: #35a87b; /* lisible sur encre */
  --accent-wash: #e4ece2;

  /* Filets */
  --line: rgba(23, 27, 22, 0.16);
  --line-strong: rgba(23, 27, 22, 0.4);
  --line-paper: rgba(242, 240, 233, 0.22);

  /* Typo */
  --font-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 200ms;
  --dur-slow: 650ms;

  /* Structure */
  --shell-max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

/* ---- Base -------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--paper-high);
}

h1,
h2,
h3 {
  margin: 0;
}

p {
  margin: 0;
}

/* ---- Rôles typographiques ---------------------------------------------- */

.landing-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Coquille : deux filets verticaux continus ------------------------- */

.landing-shell {
  max-width: var(--shell-max);
  margin-inline: auto;
  border-inline: 1px solid var(--line);
  background:
    /* trame de croix de repérage, très discrète */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M36 31v10M31 36h10' stroke='%23171b16' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E")
    var(--paper);
}

/* ---- Boutons ------------------------------------------------------------ */

.landing-button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color var(--dur) ease,
    background-color var(--dur) ease,
    border-color var(--dur) ease;
}

.landing-button svg {
  transition: transform var(--dur) var(--ease-out);
}

.landing-button:hover svg {
  transform: translateX(4px);
}

.landing-button--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-high);
}

.landing-button--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.landing-button--outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.landing-button--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-high);
}

.landing-button--paper {
  background: var(--paper-high);
  border-color: var(--paper-high);
  color: var(--ink);
}

.landing-button--paper:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--ink);
}

.landing-button--ghost-paper {
  border-color: var(--line-paper);
  color: var(--paper-high);
  background: transparent;
}

.landing-button--ghost-paper:hover {
  border-color: var(--paper-high);
}

.landing-button--quiet {
  color: var(--ink);
  border-color: transparent;
}

.landing-button--quiet:hover {
  color: var(--accent);
}

.landing-button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.landing-cta a:focus-visible,
.landing-footer a:focus-visible {
  outline-color: var(--accent-bright);
}

/* ---- Lien d'évitement --------------------------------------------------- */

.landing-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper-high);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 160ms ease;
}

.landing-skip-link:focus {
  transform: translateY(0);
}

/* ---- Révélations au défilement ------------------------------------------ */
/* Actives uniquement si JS présent (html.js) ; sinon tout est visible. */

html.js .landing-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

html.js .landing-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- Accessibilité : mouvement réduit ----------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.js .landing-reveal {
    opacity: 1;
    transform: none;
  }
}
