/* Page de garde suite Xtrem — encre / papier, alignée sur XtremToolBox */

:root {
  --encre: #13161b;
  --ardoise: #1c2029;
  --ardoise-2: #252a35;
  --trait-sombre: #333947;
  --papier: #f1f2f4;
  --papier-2: #e3e5ea;
  --trait-clair: #cfd3db;
  --texte: #1a1d23;
  --texte-doux: #585f6d;
  --texte-clair: #c5cad4;
  --texte-clair-doux: #8b94a5;
  --marque: #e0392c;
  --toolbox: #0078d4;
  --rec: #e0392c;
  --r: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  max-width: 16ch;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.wrap {
  width: min(1040px, 92vw);
  margin: 0 auto;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.saut {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  background: #fff;
  color: var(--texte);
  padding: 0.5rem 0.8rem;
  border-radius: var(--r);
}

.saut:focus {
  top: 1rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 22, 27, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--trait-sombre);
}

.bar {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  height: 60px;
}

.marque {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.sigle {
  width: 26px;
  height: 26px;
  border-radius: var(--r);
  background: var(--marque);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: Archivo, system-ui, sans-serif;
}

nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.93rem;
  color: var(--texte-clair);
}

nav a {
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a:focus-visible {
  border-bottom-color: #fff;
  color: #fff;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: #fff;
  border: 1px solid var(--trait-sombre);
  border-radius: var(--r);
  padding: 0.4rem 0.75rem;
  font: 600 0.9rem "IBM Plex Sans", sans-serif;
  cursor: pointer;
}

.btn {
  display: inline-block;
  border-radius: var(--r);
  padding: 0.66rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
}

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

.heros {
  background: var(--encre);
  color: #fff;
  padding: 5rem 0 4.2rem;
}

.fil {
  color: var(--texte-clair-doux);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.heros .chapeau {
  margin-top: 1.4rem;
  max-width: 58ch;
  color: var(--texte-clair);
  font-size: 1.1rem;
}

.heros .chapeau a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.heros .chapeau a:hover {
  color: var(--texte-clair);
}

.catalogue {
  padding: 4.2rem 0;
}

.produits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.produit {
  border: 1px solid var(--trait-clair);
  border-radius: 5px;
  background: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.produit .puce {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.produit-toolbox .puce {
  background: var(--toolbox);
}

.produit-rec .puce {
  background: var(--rec);
}

.produit .desc {
  color: var(--texte-doux);
  font-size: 0.99rem;
}

.produit ul {
  list-style: none;
  margin: 0;
  padding: 0.9rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--trait-clair);
}

.produit li {
  font-size: 0.9rem;
  color: var(--texte-doux);
  padding-left: 1rem;
  position: relative;
}

.produit li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.produit-toolbox li::before {
  background: var(--toolbox);
}

.produit-rec li::before {
  background: var(--rec);
}

.produit .btn {
  margin-top: 0.4rem;
  align-self: flex-start;
}

.produit-toolbox .btn {
  background: var(--toolbox);
  color: #fff;
}

.produit-toolbox .btn:hover {
  background: #0063ae;
}

.produit-rec .btn {
  background: var(--rec);
  color: #fff;
}

.produit-rec .btn:hover {
  background: #c93024;
}

footer {
  border-top: 1px solid var(--trait-clair);
  padding: 2rem 0;
}

.pied {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--texte-doux);
}

.pied a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.pied a:hover {
  color: var(--texte);
}

@media (max-width: 760px) {
  .produits {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.8rem 4vw 1rem;
    flex-direction: column;
    gap: 0.85rem;
    background: var(--encre);
    border-bottom: 1px solid var(--trait-sombre);
  }

  nav.is-open {
    display: flex;
  }
}

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