@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --papier: #f2f5f3;
  --blanc: #ffffff;
  --encre: #14223f;
  --encre-douce: #4a5a6e;
  --magenta: #a8135f;
  --magenta-pale: #f6e3ec;
  --bleu: #2a5aa3;
  --trait: #c9d3d6;
  --titre: "Archivo", "Arial Narrow", sans-serif;
  --texte: "Atkinson", "Segoe UI", system-ui, sans-serif;
  --mesure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bleu); text-underline-offset: 0.18em; }
a:hover { color: var(--magenta); }

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 2px;
}

.cadre {
  width: min(72rem, 100% - 2.5rem);
  margin-inline: auto;
}

/* En-tête */
.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
}
.marque {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--encre);
  text-decoration: none;
}
.marque strong {
  font-family: var(--titre);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.marque img { display: block; }
.marque span {
  font-size: 0.85rem;
  color: var(--encre-douce);
}
.lien-beta {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--encre);
  text-decoration: none;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--encre);
  border-radius: 999px;
  white-space: nowrap;
}
.lien-beta:hover { background: var(--encre); color: var(--blanc); }

/* Accroche */
.accroche {
  position: relative;
  padding-block: 3rem 5rem;
  overflow: hidden;
}
.zones {
  position: absolute;
  inset: auto -12rem -14rem auto;
  width: 46rem;
  height: 46rem;
  pointer-events: none;
  opacity: 0.9;
}
.accroche-grille {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.accroche-grille > div:first-child { padding-top: 2.5rem; }
@media (max-width: 860px) { .accroche-grille > div:first-child { padding-top: 0; } }
h1 {
  font-family: var(--titre);
  font-stretch: 118%;
  font-weight: 780;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.intro {
  max-width: var(--mesure);
  font-size: 1.15rem;
  color: var(--encre-douce);
  margin: 0 0 2rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
}
.bouton {
  display: inline-block;
  font-family: var(--texte);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blanc);
  background: var(--magenta);
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
}
.bouton:hover { background: #8c0e4e; color: var(--blanc); }
.bouton[disabled] { opacity: 0.6; cursor: progress; }

/* Échange radio */
.echange {
  background: var(--blanc);
  border-radius: 1.25rem;
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: 0 1px 0 var(--trait), 0 24px 48px -28px rgba(20, 34, 63, 0.45);
  display: grid;
  gap: 1.1rem;
}
.echange-titre {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--encre-douce);
  margin: 0;
}
.voyant {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #2f9e6a;
  box-shadow: 0 0 0 4px #2f9e6a22;
}
.message { margin: 0; max-width: 30rem; }
.qui {
  display: block;
  font-family: var(--titre);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}
.message.pilote .qui { color: var(--bleu); }
.message.charlie .qui { color: var(--magenta); }
.message.pilote p {
  margin: 0;
  background: #e8eef7;
  border-radius: 0.2rem 1rem 1rem 1rem;
  padding: 0.7rem 0.95rem;
}
.message.charlie p {
  margin: 0;
  border-left: 3px solid var(--magenta);
  padding: 0.15rem 0 0.15rem 0.95rem;
}
.source {
  display: inline-block;
  margin-top: 0.55rem;
  margin-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--magenta);
  background: var(--magenta-pale);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
.message.cache { opacity: 0; transform: translateY(6px); }
.message.vu { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }

/* Sections */
.section { padding-block: 4.5rem; }
.section + .section { border-top: 1px solid var(--trait); }
h2 {
  font-family: var(--titre);
  font-stretch: 112%;
  font-weight: 750;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  max-width: 24ch;
}
.chapeau {
  max-width: var(--mesure);
  color: var(--encre-douce);
  margin: 0 0 2.5rem;
}

.sources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
}
.sources li {
  padding: 1rem 0;
  border-top: 1px solid var(--trait);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  align-items: baseline;
}
.sources strong { font-weight: 700; }
.sources .portee {
  font-size: 0.85rem;
  color: var(--encre-douce);
  white-space: nowrap;
}
.sources .prioritaire .portee { color: var(--magenta); font-weight: 700; }
.sources small {
  grid-column: 1 / -1;
  color: var(--encre-douce);
  font-size: 0.92rem;
}

.principes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.principes h3 {
  font-family: var(--titre);
  font-stretch: 108%;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}
.principes p { margin: 0; color: var(--encre-douce); }
.avertissement {
  margin: 2.8rem 0 0;
  max-width: 40rem;
  font-size: 0.95rem;
  color: var(--encre-douce);
}

/* Liste d'attente */
.attente {
  background: var(--encre);
  color: var(--blanc);
  border-radius: 1.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.attente h2 { color: var(--blanc); }
.attente .chapeau { color: #c3cddc; margin-bottom: 0; }
.formulaire { display: grid; gap: 1.1rem; }
.champ { display: grid; gap: 0.35rem; }
.champ label { font-weight: 700; font-size: 0.95rem; }
.champ input, .champ select {
  font: inherit;
  color: var(--encre);
  background: var(--blanc);
  border: 2px solid transparent;
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.champ input:focus-visible, .champ select:focus-visible {
  outline: none;
  border-color: #f08fbf;
}
.consentement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.9rem;
  color: #c3cddc;
}
.consentement input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--magenta); }
.consentement a { color: #ffffff; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .bouton { justify-self: start; }
.retour {
  margin: 0;
  min-height: 1.6em;
  font-weight: 700;
}
.retour.ok { color: #8fe0b5; }
.retour.erreur { color: #ffb3c9; }

.beta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.beta p { margin: 0; max-width: var(--mesure); }

/* Pied */
.pied {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--trait);
  font-size: 0.9rem;
  color: var(--encre-douce);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.pied p { margin: 0; }

/* Page texte (mentions) */
.page-texte { max-width: 44rem; padding-block: 2rem 4rem; }
.page-texte h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-texte h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.page-texte p, .page-texte li { color: var(--encre); }

@media (max-width: 860px) {
  .accroche-grille, .attente { grid-template-columns: 1fr; gap: 2.5rem; }
  .principes { grid-template-columns: 1fr; gap: 1.8rem; }
  .sources { grid-template-columns: 1fr; }
  .zones { width: 30rem; height: 30rem; inset: auto -10rem -6rem auto; opacity: 0.5; }
  .marque img { display: block; }
.marque span { display: none; }
}

/* Mise en avant du tuto d'installation */
.nav { display: flex; align-items: center; gap: 1.2rem; }
.lien-install { font-weight: 700; font-size: 0.95rem; color: var(--magenta); text-decoration: none; }
.lien-install:hover { text-decoration: underline; }
.bandeau-install {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem 1.4rem;
  background: var(--magenta-pale);
  border: 1.5px solid #ecc3d6;
  border-radius: 1.1rem;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
  color: var(--encre);
  text-decoration: none;
}
.bandeau-install img { border-radius: 0.9rem; box-shadow: 0 2px 8px rgba(20,34,63,.15); }
.bandeau-texte { display: grid; gap: 0.15rem; }
.bandeau-texte strong { font-family: var(--titre); font-stretch: 108%; font-size: 1.15rem; }
.bandeau-texte span { color: var(--encre-douce); font-size: 0.97rem; }
.bandeau-bouton {
  font-weight: 700; color: var(--blanc); background: var(--magenta);
  border-radius: 999px; padding: 0.7rem 1.3rem; white-space: nowrap;
}
.bandeau-install:hover .bandeau-bouton { background: #8c0e4e; }
.bandeau-install:hover { color: var(--encre); }
@media (max-width: 860px) {
  .bandeau-install { grid-template-columns: auto 1fr; }
  .bandeau-bouton { grid-column: 1 / -1; justify-self: start; }
  .lien-install { display: none; }
}

.outil {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--bleu);
  background: #e8eef7;
  border-radius: 0.4rem;
  padding: 0.1rem 0.5rem;
  margin: 0 0 0.45rem 1.1rem;
}
