@import url('polices.css');

/* TERRE ARIDE — atelier d'impression
   Le vocabulaire visuel est celui d'un plan d'imprimeur : hirondelles aux
   angles, lignes de cote, tout ce qui est chiffre est en chasse fixe. Les
   couleurs viennent du desert : sable, papier, ocre, terre cuite. */

:root {
  --sable: #e7ddce;
  --papier: #fbf8f3;
  --ocre: #c6763f;
  --terre: #8a4b2a;
  --encre: #1e1a16;
  --craie: rgba(30, 26, 22, 0.54);
  --trait: rgba(30, 26, 22, 0.18);
  --appui: rgba(30, 26, 22, 0.06);

  --titre: 'Archivo', system-ui, sans-serif;
  --chiffre: 'IBM Plex Mono', ui-monospace, monospace;

  --marge: clamp(20px, 5vw, 64px);
  --large: 1180px;
}

* { box-sizing: border-box; }

/* Sans cela, un [hidden] portant .bouton reste visible : display l'emporte. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--sable);
  color: var(--encre);
  font: 400 16px/1.6 var(--titre);
  -webkit-font-smoothing: antialiased;
}

.enveloppe { max-width: var(--large); margin: 0 auto; padding: 0 var(--marge); }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--terre); outline-offset: 3px; border-radius: 1px;
}

/* ---------------------------------------------------------------- en-tete */

.entete {
  display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap;
  padding: 26px 0 20px; border-bottom: 1px solid var(--encre);
}
.marque {
  font: 700 15px/1 var(--titre); letter-spacing: 0.28em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; align-items: baseline; }
.nav a {
  font: 500 12px/1 var(--titre); letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; color: var(--craie);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--encre); border-bottom-color: var(--ocre); }
.nav a[aria-current] { color: var(--encre); border-bottom-color: var(--encre); }
.jauge {
  font: 500 12px/1 var(--chiffre); color: var(--terre);
  border: 1px solid var(--trait); border-radius: 2px; padding: 5px 8px;
}

/* ------------------------------------------------------------- typographie */

.eyebrow {
  font: 500 11px/1 var(--titre); letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--craie); margin: 0 0 18px;
}
h1 {
  font: 700 clamp(38px, 7.4vw, 82px)/0.94 var(--titre);
  letter-spacing: -0.045em; margin: 0;
}
h2 {
  font: 600 clamp(24px, 3.4vw, 36px)/1.06 var(--titre);
  letter-spacing: -0.035em; margin: 0 0 16px;
}
h3 { font: 600 17px/1.25 var(--titre); letter-spacing: -0.02em; margin: 0 0 8px; }
p { margin: 0 0 14px; max-width: 62ch; }
.mou { color: var(--craie); }
.nb { font-family: var(--chiffre); font-variant-numeric: tabular-nums; }

section { padding: clamp(44px, 7vw, 84px) 0; border-bottom: 1px solid var(--trait); }

/* ----------------------------------------------------------- hirondelles */
/* Les quatre angles d'un panneau portent les reperes de coupe d'un plan
   d'impression. C'est le seul ornement du site, et il dit quelque chose. */

.plaque {
  position: relative; background: var(--papier);
  border: 1px solid var(--trait); padding: clamp(20px, 3vw, 34px);
}
.plaque::before, .plaque::after {
  content: ''; position: absolute; width: 13px; height: 13px; pointer-events: none;
}
.plaque::before {
  top: -1px; left: -1px;
  border-top: 1px solid var(--terre); border-left: 1px solid var(--terre);
}
.plaque::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid var(--terre); border-right: 1px solid var(--terre);
}

/* ---------------------------------------------------------------- boutons */

.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--titre); letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--encre); color: var(--sable); border: 1px solid var(--encre);
  padding: 15px 22px; border-radius: 2px; cursor: pointer; text-decoration: none;
  transition: background 0.16s, color 0.16s;
}
.bouton:hover { background: var(--terre); border-color: var(--terre); }
.bouton[disabled] { opacity: 0.4; cursor: not-allowed; }
.bouton.creux { background: none; color: var(--encre); }
.bouton.creux:hover { background: var(--encre); color: var(--sable); }
.lien-sobre { font: 500 13px/1 var(--titre); color: var(--craie); }

/* --------------------------------------------------------------- formules */

label { display: block; font: 500 11px/1 var(--titre); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--craie); margin: 0 0 7px; }
input {
  width: 100%; font: 400 15px/1.2 var(--titre); color: inherit;
  background: var(--papier); border: 1px solid var(--trait);
  border-radius: 2px; padding: 13px 12px;
}
.champ { margin-bottom: 18px; }
.message {
  font: 500 13px/1.5 var(--titre); padding: 12px 14px; border-radius: 2px;
  border: 1px solid var(--trait); background: var(--appui); margin-bottom: 18px;
}
.message.rate { border-color: var(--terre); color: var(--terre); }

/* ----------------------------------------------------------------- tables */

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 24px 11px 0; border-bottom: 1px solid var(--trait); }
th:last-child, td:last-child { padding-right: 0; }
th { font: 500 11px/1 var(--titre); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--craie); }
td.nb, th.nb { font-family: var(--chiffre); font-variant-numeric: tabular-nums;
  text-align: right; white-space: nowrap; }

/* ------------------------------------------------------------------- pied */

footer { padding: 34px 0 46px; font-size: 13px; color: var(--craie); }
footer .liens { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }

/* ------------------------------------------------------------- animations */

@media (prefers-reduced-motion: no-preference) {
  .monte { animation: monte 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes monte { from { opacity: 0; transform: translateY(14px); } }
}
