/* Pages de connexion du connecteur de formulaires de 42 Lausanne. Repris de campagnes.42l.ch (même direction
   artistique : Jost, noir et blanc, filet en dégradé turquoise vers lavande). Aucun style inline. */

@font-face {
  font-family: "Jost";
  src: url("polices/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-2: #f6f6f4;
  --texte: #0b0b0b;
  --texte-2: #52514e;
  --ligne: #e6e5e1;
  --ligne-forte: #c9c8c2;
  --accent: #00999b;
  --accent-survol: #007577;
  --alerte-fond: #fff0f7;
  --alerte-texte: #a50e58;
  --degrade: linear-gradient(90deg, #00babc 0%, #96a3eb 100%);
  --rayon: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface: #1a1a19;
    --surface-2: #232322;
    --texte: #f0efec;
    --texte-2: #c3c2b7;
    --ligne: #383835;
    --ligne-forte: #55554f;
    --accent: #19a5a7;
    --accent-survol: #4cc4c6;
    --alerte-fond: #3a1426;
    --alerte-texte: #ffb3d6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--surface);
  color: var(--texte);
  font-family: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
code { font-size: .9em; background: var(--surface-2); padding: 0 .25em; border-radius: 4px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; font-weight: 600; }
h2 { font-size: 1.3rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }

.conteneur { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.entete { border-bottom: 1px solid var(--ligne); position: relative; }
.entete::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--degrade); }
.entete-contenu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.marque { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; }
.marque-nom { font-weight: 700; font-size: 1.2rem; }
.marque-sous { color: var(--texte-2); }

main.conteneur { padding-top: 1.75rem; padding-bottom: 2.5rem; }
footer.pied { border-top: 1px solid var(--ligne); padding-top: 1rem; padding-bottom: 2rem; color: var(--texte-2); font-size: .9rem; }
.pied p + p { margin-top: .35rem; }

.intro { color: var(--texte-2); max-width: 46rem; margin-top: .35rem; }
.discret { color: var(--texte-2); font-size: .92rem; }
.alerte { background: var(--alerte-fond); color: var(--alerte-texte); padding: .75rem 1rem; border-radius: 8px; margin: 1rem 0; }

.carte { display: block; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.25rem; }
.carte-etroite { max-width: 30rem; margin: 2rem auto; }
.carte-etroite h1 { font-size: 1.6rem; }
.formulaire { display: grid; gap: .6rem; margin-top: 1.25rem; }
.formulaire label { font-weight: 500; }
.formulaire input { width: 100%; padding: .7rem .8rem; border: 1px solid var(--ligne-forte); border-radius: 8px; background: var(--surface); }
.champ-code { font-size: 1.5rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.bouton { display: inline-block; background: var(--texte); color: var(--surface); border: 0; border-radius: 8px; padding: .75rem 1.2rem; font-weight: 600; cursor: pointer; text-decoration: none; margin-top: .4rem; }
.bouton:hover { opacity: .88; }
.carte-etroite .discret { margin-top: 1rem; }
.etapes { margin: 1rem 0 0 1.2rem; display: grid; gap: .45rem; }
.adresse-connecteur { margin-top: 1.25rem; }
