@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/instrument-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/instrument-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
:root {
  --fond: #f4f5f7;
  --surface: #ffffff;
  --bordure: #e2e5ea;
  --texte: #14181f;
  --texte-doux: #4e5866;
  --accent: #3d5a80;
  --vert: #3f6b4f;
  --ocre: #85621f;
  --ombre: 0 1px 2px rgba(20, 24, 31, 0.04), 0 12px 32px -12px rgba(20, 24, 31, 0.18);
  --ombre-forte: 0 2px 6px rgba(20, 24, 31, 0.08), 0 24px 48px -16px rgba(20, 24, 31, 0.32);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --fond: #12151a;
    --surface: #1a1e25;
    --bordure: #2c323c;
    --texte: #edf0f4;
    --texte-doux: #9aa4b2;
    --accent: #8fb0d9;
    --vert: #7fb08e;
    --ocre: #d6a94e;
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --ombre-forte: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.75);
  }
}
:root[data-theme='dark'] {
  --fond: #12151a;
  --surface: #1a1e25;
  --bordure: #2c323c;
  --texte: #edf0f4;
  --texte-doux: #9aa4b2;
  --accent: #8fb0d9;
  --vert: #7fb08e;
  --ocre: #d6a94e;
  --ombre: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --ombre-forte: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.75);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
main,
.bandeau {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
}
p,
ul.net,
h2,
h3,
figcaption {
  max-width: 38rem;
}
.accroche + .accroche {
  margin-top: -0.35rem;
}
.chapo {
  font-size: 1.05rem;
}
section > ul.net {
  margin: 0 0 1.35rem;
  color: var(--texte-doux);
}
section > ul.net strong {
  color: var(--texte);
  font-weight: 600;
}
main {
  padding-bottom: 6rem;
}
section {
  margin-top: 4rem;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin: 0 0 0.75rem;
}
h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
p {
  margin: 0 0 1rem;
}
a {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
code,
pre {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}
code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.bandeau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
}
.marque {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin: 0;
}
.themes {
  display: flex;
  gap: 0.375rem;
}
.themes button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--bordure);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--texte-doux);
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s,
    background-color 0.15s;
}
.themes button:hover {
  color: var(--texte);
}
.themes button[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

header {
  padding-top: 3.5rem;
}
.accroche {
  font-size: 1.15rem;
  color: var(--texte-doux);
  max-width: 34rem;
}

.carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 10px;
  padding: 1.5rem;
}
.grille {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.grille p {
  margin: 0;
  color: var(--texte-doux);
  font-size: 0.96rem;
}

pre {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 10px;
  padding: 1.1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}
figure {
  margin: 2rem 0 0;
}
figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--bordure);
  border-radius: 10px;
  background: var(--surface);
}
figcaption {
  color: var(--texte-doux);
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.bouton {
  display: inline-block;
  background: var(--accent);
  color: var(--fond);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  min-height: 44px;
}
.bouton:hover {
  filter: brightness(1.08);
}

ul.net {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.net li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.45rem;
}
ul.net li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--texte-doux);
}
ul.net.oui li::before {
  content: '✓';
  color: var(--vert);
  font-weight: 600;
}
ul.net.non li::before {
  content: '✕';
  color: var(--ocre);
  font-weight: 600;
}

.tableau {
  border: 1px solid var(--bordure);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  margin: 0 0 1.35rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
thead th {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--texte-doux);
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--bordure);
}
tbody th,
tbody td {
  padding: 0.95rem 1.1rem;
  vertical-align: top;
  border-top: 1px solid var(--bordure);
}
tbody tr:first-child th,
tbody tr:first-child td {
  border-top: 0;
}
tbody th {
  text-align: left;
  font-weight: 400;
  white-space: nowrap;
  width: 1%;
}
tbody td {
  color: var(--texte-doux);
}
@media (max-width: 40rem) {
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  tbody th,
  tbody td {
    display: block;
    white-space: normal;
    width: auto;
  }
  tbody th {
    padding-bottom: 0.2rem;
  }
  tbody td {
    padding-top: 0;
  }
}

footer {
  border-top: 1px solid var(--bordure);
  margin-top: 5rem;
  padding: 2rem 0 4rem;
  color: var(--texte-doux);
  font-size: 0.9rem;
}

.ecart {
  margin-top: 2rem;
}
.ecart-moyen {
  margin-top: 1.5rem;
}
.ecart-large {
  margin-top: 2.5rem;
}
.note {
  color: var(--texte-doux);
  font-size: 0.95rem;
}

.marque a {
  color: inherit;
  text-decoration: none;
}
.marque a:hover {
  color: var(--texte);
}
.adresse {
  line-height: 1.5;
}
footer a {
  color: var(--accent);
}

.sommaire {
  display: none;
  gap: 1.25rem;
  font-size: 0.9rem;
}
.sommaire a {
  color: var(--texte-doux);
  text-decoration: none;
}
.sommaire a:hover {
  color: var(--texte);
}
@media (min-width: 46rem) {
  .sommaire {
    display: flex;
  }
}

body.accueil main {
  max-width: 62rem;
}
body.accueil .bandeau {
  max-width: 62rem;
}
body.accueil .tableau,
body.accueil pre,
body.accueil .etapes,
body.accueil .preuves,
body.accueil .grille {
  max-width: 46rem;
}
body.accueil .grille-duo {
  max-width: 54rem;
}

body.accueil {
  background-image: radial-gradient(
    110% 60% at 50% -5%,
    color-mix(in srgb, var(--accent) 10%, transparent),
    transparent 70%
  );
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero {
  padding-top: 4rem;
}
.surtitre {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin: 0 0 1.1rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 7vw, 3.9rem);
  max-width: 16ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.bouton-calme {
  background: var(--surface);
  color: var(--texte);
  border: 1px solid var(--bordure);
}
.bouton-calme:hover {
  filter: none;
  border-color: var(--accent);
  color: var(--accent);
}
.hero .note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

.scene {
  position: relative;
  margin-top: 3.5rem;
  margin-bottom: 4.5rem;
}
.scene-bureau {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--bordure);
  border-radius: 14px;
  box-shadow: var(--ombre);
  background: var(--surface);
}
.scene-mobile {
  display: none;
  position: absolute;
  right: -2rem;
  bottom: -2.5rem;
  width: 15%;
  min-width: 126px;
  height: auto;
  border: 1px solid var(--bordure);
  border-radius: 14px;
  box-shadow: var(--ombre-forte);
  background: var(--surface);
}
@media (min-width: 52rem) {
  .scene-mobile {
    display: block;
  }
  .scene {
    margin-bottom: 5.5rem;
  }
}

.preuves {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  border-top: 1px solid var(--bordure);
  padding-top: 1.75rem;
}
.preuves li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.preuves strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}
.preuves span {
  color: var(--texte-doux);
  font-size: 0.92rem;
  max-width: 18rem;
}

.appui {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--texte);
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem;
  margin-top: 1.75rem;
}

.demo {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-top: 3.5rem;
}
@media (min-width: 58rem) {
  .demo {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
    margin-top: 5rem;
  }
  .demo-inverse .demo-texte {
    order: 2;
  }
}
.demo-texte h3 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 0.7rem;
}
.demo-texte p {
  color: var(--texte-doux);
}
.etape {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.demo-image {
  margin: 0;
}
.demo-image img,
.paire img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--bordure);
  border-radius: 12px;
  box-shadow: var(--ombre);
  background: var(--surface);
}
.demo-image img.haut,
.paire img.haut {
  height: 30rem;
  object-fit: cover;
  object-position: top;
}

.paire {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}
@media (min-width: 52rem) {
  .paire {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
.paire figure {
  margin: 0;
}
.paire .telephone {
  max-width: 17rem;
  margin: 0 auto;
  border-radius: 18px;
}
.paire figcaption {
  margin-top: 0.75rem;
}

.grille-duo {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.carte ul.net {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--texte-doux);
}

.souverain ul.net {
  margin-bottom: 1.35rem;
  color: var(--texte-doux);
}

.etapes {
  list-style: none;
  counter-reset: etape;
  padding: 0;
  margin: 2rem 0 0;
}
.etapes > li {
  counter-increment: etape;
  position: relative;
  padding-left: 3.25rem;
  padding-bottom: 1.75rem;
}
.etapes > li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bordure);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--accent);
}
.etapes > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.125rem;
  top: 2.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--bordure);
}
.etapes h3 {
  margin-bottom: 0.5rem;
}
.etapes pre {
  margin: 0 0 0.9rem;
}

.final {
  border-top: 1px solid var(--bordure);
  padding-top: 3.5rem;
  margin-top: 5.5rem;
}
.final h2 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
}

@media (max-width: 52rem) {
  .demo-image img.haut,
  .paire img.haut {
    height: 22rem;
  }
  .scene-bureau {
    display: none;
  }
  .scene-mobile {
    display: block;
    position: static;
    width: auto;
    max-width: 16rem;
    margin: 0 auto;
    border-radius: 18px;
  }
  .scene {
    margin-bottom: 3.5rem;
  }
}
@media (max-width: 30rem) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .actions .bouton {
    text-align: center;
  }
}
