/* BifroX · page « Bientôt disponible »
   Identité retenue (design/DECISIONS.md, D23 et D26) : la route, aux couleurs
   du minerai, thème sombre. Le cuivre pour l'action, le mauve pour le logo
   seulement, le pointillé pour l'attente (D31). Aucun JavaScript. */

@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --fond: #0c1530;
  --chaussee: #060b1a;
  --encre: #eef1f8;
  --encre-douce: #b2bcd8;
  --regle: #2c3c72;
  --cuivre: #e2955c;
  --sur-cuivre: #0c1530;
  --contour: #7c8fcb;
  --tiret: #d7dded;
  --plaque: #f4f6fb;
  --marque: #a855f7;
  --marque-traits: #f5f3fa;

  --largeur: 1120px;
  --marge: clamp(20px, 5vw, 56px);
  --condensee: "Barlow Condensed", "Arial Narrow", sans-serif;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  color: var(--encre);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.colonne {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--marge);
}

/* Bandeau */

.bandeau {
  background: var(--chaussee);
  border-bottom: 4px solid var(--cuivre);
}

.bandeau .colonne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.marque svg {
  flex: none;
  display: block;
}

.marque span {
  font-family: "Hanken Grotesk", "Barlow", system-ui, sans-serif;
  font-size: 1.625rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.langue {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--encre-douce);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.langue:hover {
  color: var(--encre);
}

/* Contenu */

main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 9vh, 112px);
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.75rem, 1.4rem + 5.6vw, 5.75rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.definition {
  margin: clamp(20px, 3vh, 32px) 0 0;
  max-width: 34em;
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--encre);
}

.contact {
  margin-top: clamp(36px, 6vh, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--regle);
  max-width: 40rem;
}

.contact p {
  margin: 0 0 16px;
  color: var(--encre-douce);
  font-size: 1.0625rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--contour);
  border-radius: 6px;
  color: var(--encre);
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.bouton:hover {
  background: rgba(124, 143, 203, 0.14);
}

.bouton-principal {
  background: var(--cuivre);
  border-color: var(--cuivre);
  color: var(--sur-cuivre);
  font-weight: 700;
}

.bouton-principal:hover {
  background: #eaa874;
  border-color: #eaa874;
}

.bouton .numero {
  white-space: nowrap;
  font-family: var(--condensee);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* La chaussée : le pointillé dit l'attente */

.chaussee {
  position: relative;
  height: 72px;
  background-color: var(--chaussee);
  background-image: repeating-linear-gradient(
    to right,
    var(--tiret) 0,
    var(--tiret) 28px,
    transparent 28px,
    transparent 56px
  );
  background-size: 100% 3px;
  background-position: 0 50%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.chaussee .colonne {
  height: 100%;
  display: flex;
  align-items: center;
}

.plaque {
  display: inline-flex;
  align-items: stretch;
  background: var(--plaque);
  border: 2px solid var(--plaque);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 6px var(--chaussee);
}

.plaque::before {
  content: "";
  width: 8px;
  background: var(--cuivre);
}

.plaque span {
  padding: 2px 12px 3px;
  font-family: var(--condensee);
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fond);
}

@media (prefers-reduced-motion: no-preference) {
  .chaussee {
    background-size: calc(100% + 56px) 3px;
    animation: route 2.8s linear infinite;
  }

  @keyframes route {
    from {
      background-position: 0 50%;
    }
    to {
      background-position: -56px 50%;
    }
  }
}

/* Pied */

.pied {
  padding-block: 22px 28px;
  color: var(--encre-douce);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pied .colonne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
}

.pied p {
  margin: 0;
}

.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.pied a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
}

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

@media (max-width: 520px) {
  .bouton {
    width: 100%;
    justify-content: center;
  }

  .chaussee {
    height: 64px;
  }
}
