/* ==========================================================================
   ARCHIV — site de vente
   Noir et blanc seulement, Inter servie par le site.
   Grandes capitales serrées, filets fins, cartes à bordure d'un pixel.
   Aucune ressource externe : la police est dans assets/fonts/inter/.
   ========================================================================== */

/* 1. Police --------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-600-normal.woff2") format("woff2");
}

/* 2. Variables ------------------------------------------------------------ */

:root {
  --bg: #050505;
  --surface: #0c0c0c;
  --surface-2: #141414;
  --fg: #ffffff;
  --fg-2: rgba(255, 255, 255, 0.64); /* texte courant */
  --fg-3: #808080;                   /* étiquettes, légendes */
  --rule: rgba(255, 255, 255, 0.08); /* filets */
  --rule-strong: rgba(255, 255, 255, 0.22);
  --accent: #ffffff;                 /* repères, lueur : du blanc, aucune couleur */
  --survol: #d6d6d6;                 /* fond du bouton blanc au survol */

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --display-track: -0.045em;

  --marge: 20px;
  --max: 1320px;
  --header: 64px;
  --section: 96px;
  --pad: 24px;
}

@media (min-width: 45em) {
  :root {
    --marge: 40px;
    --header: 76px;
    --section: 140px;
    --pad: 32px;
  }
}

/* 3. Base ----------------------------------------------------------------- */

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

html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font: 400 1rem/1.55 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Les deux filets verticaux du gabarit, de haut en bas de la page */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: min(100% - 2 * var(--marge), var(--max));
  transform: translateX(-50%);
  border-inline: 1px solid var(--rule);
  pointer-events: none;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
  list-style-type: ""; /* garde le rôle de liste pour les lecteurs d'écran */
}

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

a {
  color: var(--fg);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

main:focus {
  outline: 0;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

[hidden] {
  display: none !important;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--marge));
  margin-inline: auto;
  padding-inline: var(--marge);
}

/* Étiquette : petites capitales */
.label {
  color: var(--fg-3);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Pastille : cadre fin, trois barres blanches, capitales */
.chip,
.section__head .label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--surface);
  color: var(--fg);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip::before,
.section__head .label::before {
  content: "";
  flex: none;
  width: 22px;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 5px);
}

/* Lien d'évitement : visible au clavier seulement */
.skip {
  position: absolute;
  top: -100px;
  left: var(--marge);
  z-index: 30;
  padding: 12px 16px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 8px;
}

/* 4. Boutons -------------------------------------------------------------- */

/* Bouton plein : texte, puis une case sombre avec la flèche */
.btn {
  --fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M4.5 11.5l7-7M5.5 4.5h6v6'/%3E%3C/svg%3E");
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 6px 6px 6px 22px;
  border: 0;
  border-radius: 2px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
}

.btn::after {
  content: "";
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--bg) var(--fleche) center / 16px no-repeat;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--survol);
  transform: translateY(101%);
}

.btn:hover {
  color: var(--bg);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn--petit {
  min-height: 44px;
  gap: 14px;
  padding: 4px 4px 4px 16px;
  font-size: 0.8125rem;
}

.btn--petit::after {
  width: 36px;
  height: 36px;
}

/* Lien fléché : texte et flèche, filet dessous */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: linear-gradient(var(--rule-strong), var(--rule-strong)) left calc(50% + 0.9em) / 100% 1px no-repeat;
}

.lien-fleche::after {
  content: "";
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M4.5 11.5l7-7M5.5 4.5h6v6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lien-fleche:hover {
  background-image: linear-gradient(var(--accent), var(--accent));
}

.text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.3em;
  cursor: pointer;
}

.text-btn:hover {
  text-decoration-color: var(--accent);
}

/* 5. En-tête -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: rgba(5, 5, 5, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
}

.brand img {
  width: auto;
  height: 26px;
}

.site-header__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav {
  display: none;
}

.nav ul {
  display: flex;
  align-items: center;
}

.nav li + li::before {
  content: "/";
  padding-inline: 14px;
  color: var(--fg-3);
  font-size: 0.75rem;
}

.nav a,
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.lang {
  color: var(--fg-3);
}

.nav a {
  color: var(--fg-2);
}

.nav a:hover,
.lang:hover,
.nav a[aria-current] {
  color: var(--fg);
}

.site-header .btn {
  display: none;
}

@media (min-width: 34em) {
  .site-header .btn {
    display: inline-flex;
  }
}

@media (min-width: 45em) {
  .brand img {
    height: 30px;
  }
}

@media (min-width: 72em) {
  .nav {
    display: block;
  }

  .site-header__links {
    flex: 1;
    justify-content: flex-end;
    gap: 28px;
  }

  .nav {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (forced-colors: active) {
  .nav a[aria-current] {
    text-decoration: underline;
  }
}

/* 6. Héros ---------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(90% 70% at 50% -10%, #1c1c1c 0%, #0b0b0b 45%, transparent 75%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%),
    var(--bg);
}

/* Le grain du métal brossé, très discret */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.012) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
}

/* La lueur : un trait de lumière en diagonale */
.hero__lueur {
  position: absolute;
  right: -4%;
  bottom: 34%;
  width: min(62vw, 980px);
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.7) 62%, #ffffff 78%, transparent 100%);
  transform: rotate(-24deg);
  transform-origin: right center;
  box-shadow: 0 0 22px 3px rgba(255, 255, 255, 0.22), 0 0 90px 18px rgba(255, 255, 255, 0.06);
  opacity: 0.9;
  pointer-events: none;
}

.hero__in {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 48px;
}

.hero h1 {
  max-width: 17ch;
  margin-top: 28px;
  color: var(--fg);
  font-size: clamp(2.5rem, 7.4vw, 6.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: var(--display-track);
  text-transform: uppercase;
  text-wrap: balance;
}

.hero h1 .ton {
  color: #7c7c7c;
}

.hero__bas {
  display: grid;
  gap: 32px;
  align-items: end;
}

.hero__sub {
  max-width: 34em;
  color: var(--fg-2);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

@media (min-width: 45em) {
  .hero {
    min-height: calc(100svh - var(--header));
  }

  .hero__in {
    padding-top: 120px;
    padding-bottom: 56px;
  }

  .hero__bas {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
  }
}

/* 7. Sections ------------------------------------------------------------- */

.section {
  position: relative;
  padding-block: var(--section);
  border-bottom: 1px solid var(--rule);
}

.section__in {
  display: grid;
  gap: 48px;
}

.section__head {
  display: grid;
  gap: 22px;
}

.section__title {
  color: var(--fg);
  font-size: clamp(2.375rem, 6.2vw, 5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: var(--display-track);
  text-transform: uppercase;
  text-wrap: balance;
}

.section__body > * + * {
  margin-top: 56px;
}

.section h3 {
  color: var(--fg);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section p {
  max-width: 44em;
}

/* La phrase de tête : un énoncé, pas un paragraphe */
.section .lead {
  max-width: 26em;
  color: var(--fg);
  font-size: clamp(1.5rem, 2.9vw, 2.375rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.note {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--fg-3);
  font-size: 0.875rem;
}

@media (min-width: 64em) {
  .section__in {
    gap: 72px;
  }
}

/* Grille de cartes à filets partagés */
.cells,
.options {
  display: grid;
  gap: 1px;
  border: 1px solid var(--rule);
  background: var(--rule);
  counter-reset: carte;
}

.cells > li,
.options > li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--pad);
  background: var(--bg);
  counter-increment: carte;
  transition: background-color 0.25s ease;
}

.cells > li:hover,
.options > li:hover {
  background: var(--surface);
}

/* Numéro de carte : /01/ */
.cells > li::before {
  content: "/" counter(carte, decimal-leading-zero) "/";
  margin-bottom: 36px;
  color: var(--fg-3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.cells p,
.options p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (min-width: 45em) {
  .cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 72em) {
  .cells {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cells > li::before {
    margin-bottom: 72px;
  }
}

/* Grille à trois colonnes (la plateforme en détail) */
@media (min-width: 72em) {
  .cells--trois {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cells--trois > li::before {
    margin-bottom: 48px;
  }
}

/* Fiche : un terme, sa réponse, une rangée chacun */
.specs {
  border-top: 1px solid var(--rule-strong);
}

.specs > div {
  display: grid;
  gap: 8px 48px;
  padding-block: 24px;
  border-bottom: 1px solid var(--rule);
}

.specs dt {
  color: var(--fg);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.specs dd {
  max-width: 46em;
  font-size: 0.9375rem;
}

@media (min-width: 56em) {
  .specs > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  }
}

/* 8. Comment ça marche : les étapes en rangées ------------------------------ */

.steps {
  display: grid;
  gap: 8px;
  counter-reset: etape;
}

.steps > li {
  display: grid;
  gap: 12px 24px;
  padding: 22px var(--pad);
  border: 1px solid var(--rule);
  background: var(--surface);
  counter-increment: etape;
}

.steps > li::before {
  content: "/" counter(etape, decimal-leading-zero) "/";
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--fg-3);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
}

.steps h3 {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  letter-spacing: -0.02em;
}

.steps p {
  font-size: 0.9375rem;
}

@media (min-width: 56em) {
  .steps > li {
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: center;
    padding-block: 28px;
  }
}

/* Étapes avec « qui fait quoi » sous le titre */
.steps--qui > li > div {
  display: grid;
  gap: 8px;
}

.steps--qui .label {
  color: var(--fg-2);
}

/* Schéma : un gestionnaire, un site par installateur.
   Téléphone : arbre vertical. Écran large : éventail. */

.schema {
  padding: var(--pad);
  border: 1px solid var(--rule);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%),
    var(--surface);
}

.schema__hub,
.schema__sites > li {
  position: relative;
  padding: 18px;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
}

.schema__hub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.schema .label {
  color: var(--fg-3);
}

.schema__hub .label {
  color: var(--accent);
}

.schema__text {
  margin-top: 6px;
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
}

.schema__flow {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.schema__sites {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px 0 0 24px;
}

.schema__sites > li::before,
.schema__sites > li::after,
.schema__hub::after {
  position: absolute;
  border: 0 solid var(--rule-strong);
}

/* Branche vers chaque site */
.schema__sites > li::before {
  content: "";
  top: 50%;
  left: -25px;
  width: 24px;
  border-top-width: 1px;
}

/* Tronc */
.schema__sites > li::after {
  content: "";
  top: -9px;
  bottom: -1px;
  left: -25px;
  border-left-width: 1px;
}

.schema__sites > li:first-child::after {
  top: -17px;
}

.schema__sites > li:last-child::after {
  bottom: 50%;
}

.schema__sites > .schema__more {
  border-style: dashed;
  background: transparent;
}

.schema figcaption {
  margin-top: 20px;
}

@media (min-width: 45em) {
  .schema__sites {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 32px 0 0;
  }

  /* Barre horizontale, du centre du premier site au centre du dernier */
  .schema__sites::before {
    content: "";
    position: absolute;
    top: 16px;
    right: calc(12.5% - 6px);
    left: calc(12.5% - 6px);
    border-top: 1px solid var(--rule-strong);
  }

  .schema__sites > li::before {
    top: -17px;
    left: calc(50% - 0.5px);
    width: auto;
    height: 16px;
    border-width: 0 0 0 1px;
  }

  .schema__sites > li::after {
    content: none;
  }

  .schema__hub::after {
    content: "";
    bottom: -17px;
    left: calc(50% - 0.5px);
    height: 16px;
    border-left-width: 1px;
  }
}

/* 9. Figures : emplacements à remplir et captures -------------------------- */

figcaption {
  margin-top: 14px;
  color: var(--fg-3);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Emplacement : même format partout. Cadre fin, hachures, étiquettes. */
.slot__frame {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 176px;
  aspect-ratio: 16 / 10;
  padding: 18px;
  border: 1px dashed var(--rule-strong);
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(255, 255, 255, 0.025) 11px 12px),
    var(--surface);
}

.slot--proof .slot__frame {
  aspect-ratio: auto;
}

.slot__frame .label:first-child {
  color: var(--fg);
}

/* Capture réelle : remplace un emplacement (voir LISEZMOI.md) */
.shot img {
  width: 100%;
  border: 1px solid var(--rule);
}

.pair {
  display: grid;
  gap: 40px;
}

@media (min-width: 45em) {
  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

/* 10. Ce que chacun voit : deux colonnes ---------------------------------- */

.views {
  display: grid;
  gap: 24px;
}

.views > div {
  padding: var(--pad);
  border: 1px solid var(--rule);
  background: var(--surface);
}

.views h3 {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  letter-spacing: -0.02em;
}

.views figure {
  margin-top: 24px;
}

.rows {
  margin-top: 28px;
}

.rows > li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.rows > li::before {
  content: "";
  position: absolute;
  top: 1.35em;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

@media (min-width: 56em) {
  .views {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 11. Les options --------------------------------------------------------- */

.options > li {
  justify-content: space-between;
  min-height: 220px;
}

.options > li > div {
  display: grid;
  gap: 14px;
}

.options .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.options .label::before {
  content: "+";
  color: var(--accent);
  font-size: 0.875rem;
  line-height: 1;
}

.options h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* Option A : trois parties dans une seule carte, sur toute la largeur */
.options__parts strong {
  color: var(--fg);
  font-weight: 600;
}

@media (min-width: 45em) {
  .options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .options > li {
    min-height: 280px;
  }

  .options > li.options__ensemble {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 32px;
  }
}

@media (min-width: 64em) {
  .options > li > .options__parts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

/* 12. Le pilote : un panneau à part ---------------------------------------- */

.band-light .section__in {
  /* .section__in est aussi le .wrap : le panneau garde l'alignement des filets */
  width: calc(100% - 2 * var(--marge));
  max-width: var(--max);
  padding: var(--pad);
  border: 1px solid var(--rule-strong);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(255, 255, 255, 0.07), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}

@media (min-width: 45em) {
  .band-light .section__in {
    padding: 56px;
  }
}

.band-light {
  border-bottom: 0;
}

.facts {
  display: grid;
  gap: 1px;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.facts > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: var(--pad);
  background: var(--bg);
}

.facts dd {
  color: var(--fg);
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: var(--display-track);
  text-transform: uppercase;
}

.pilot__text {
  font-size: 1.0625rem;
}

@media (min-width: 45em) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 13. Questions ----------------------------------------------------------- */

.faq {
  display: grid;
  gap: 8px;
}

.faq details {
  border: 1px solid var(--rule);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--rule-strong);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 18px 72px 18px var(--pad);
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Le « + » dans sa case, qui devient « − » */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--pad) + 9px);
  width: 14px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.2s ease;
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq details p {
  padding: 0 var(--pad) 24px;
  font-size: 0.9375rem;
}

@media (min-width: 64em) {
  .faq {
    max-width: 920px;
    margin-left: auto;
  }
}

/* 14. Contact ------------------------------------------------------------- */

#contact {
  padding-bottom: 0;
}

.contact__text {
  font-size: 1.0625rem;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.contact__mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.contact__mail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}

.contact__mail a:hover {
  color: var(--fg-2);
}

/* Le bandeau qui défile : un seul lien, le texte répété pour la boucle */
.defile {
  display: block;
  margin-top: var(--section);
  padding-block: 28px;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  color: var(--fg);
  text-decoration: none;
}

.defile__piste {
  display: flex;
  width: max-content;
}

.defile__piste > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding-right: 0.6em;
  font-size: clamp(3rem, 9vw, 8.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--display-track);
  text-transform: uppercase;
  white-space: nowrap;
}

.defile__piste > span::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.2'%3E%3Cpath d='M4.5 11.5l7-7M5.5 4.5h6v6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s ease;
}

.defile:hover .defile__piste > span {
  color: var(--fg-3);
}

.defile:hover .defile__piste > span::after {
  transform: rotate(45deg);
}

/* 15. Pied de page -------------------------------------------------------- */

.site-footer {
  padding-top: 72px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
}

.site-footer__cols {
  display: grid;
  gap: 40px;
}

.site-footer__titre {
  margin-bottom: 14px;
  color: var(--fg-3);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__cols p:not(.site-footer__titre) {
  max-width: 22em;
  color: var(--fg-2);
}

.site-footer__cols a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--fg);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer__cols a:hover {
  color: var(--fg-3);
}

/* Le mot ARCHIV, en très grand, presque éteint */
.site-footer__mot {
  width: 100%;
  margin-top: 72px;
  opacity: 0.16;
}

.site-footer__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 40px;
  padding-block: 24px;
  border-top: 1px solid var(--rule);
  color: var(--fg-3);
  font-size: 0.75rem;
}

@media (min-width: 45em) {
  .site-footer {
    padding-top: 96px;
  }

  .site-footer__cols {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* 15b. Fiche technique ------------------------------------------------------ */

.fiche__tete {
  padding-bottom: 64px;
}

.fiche__corps {
  padding-block: 24px var(--section);
}

.fiche__groupe {
  display: grid;
  gap: 20px;
  padding-block: 40px;
}

.fiche__titre {
  color: var(--fg);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.fiche__retour {
  margin-top: 48px;
}

@media (min-width: 64em) {
  .fiche__groupe {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 48px;
  }
}

/* À l'impression : noir sur blanc, sans en-tête ni effets */
@media print {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --fg: #000000;
    --fg-2: #222222;
    --fg-3: #555555;
    --rule: #cccccc;
    --rule-strong: #888888;
  }

  body::before,
  .site-header,
  .skip,
  .fiche__retour,
  .defile {
    display: none !important;
  }

  body {
    font-size: 10.5pt;
  }

  .section,
  .fiche__tete {
    padding-block: 0 16px;
    border: 0;
  }

  .section__title {
    font-size: 26pt;
  }

  .section .lead {
    font-size: 14pt;
  }

  .fiche__groupe {
    grid-template-columns: 1fr 3fr;
    gap: 16px;
    padding-block: 14px;
    break-inside: avoid;
  }

  .specs > div {
    grid-template-columns: 1fr 2.4fr;
    padding-block: 8px;
    break-inside: avoid;
  }

  .specs dd {
    font-size: 9.5pt;
  }

  .site-footer {
    padding-top: 0;
    border: 0;
  }

  .apparait {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 16. Mouvement ----------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .btn::before {
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .btn::after {
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .btn:hover::after {
    transform: rotate(45deg);
  }

  .nav a,
  .lang,
  .site-footer__cols a,
  .defile__piste > span {
    transition: color 0.2s ease;
  }

  .defile__piste {
    animation: defiler 28s linear infinite;
  }

  .defile:hover .defile__piste,
  .defile:focus-visible .defile__piste {
    animation-play-state: paused;
  }

  @keyframes defiler {
    to {
      transform: translateX(-50%);
    }
  }

  /* Apparition au défilement : seulement quand le script l'a préparée */
  .apparait {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .apparait.est-vu {
    opacity: 1;
    transform: none;
  }

  .hero__in > * {
    animation: monter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__in > :nth-child(2) {
    animation-delay: 0.15s;
  }

  .hero__lueur {
    animation: lueur 1.6s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes monter {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
  }

  @keyframes lueur {
    from {
      opacity: 0;
      clip-path: inset(0 0 0 100%);
    }
  }
}

@media (forced-colors: active) {
  .btn::after,
  .lien-fleche::after,
  .defile__piste > span::after {
    forced-color-adjust: none;
  }
}
