/*
 * Styles du site Digistory : une seule feuille, sans framework.
 * Ordre : police, variables, base, composants communs (boutons, en-tête, pied de page), puis une partie par section
 * de l'accueil, dans l'ordre de la page, et enfin les pages secondaires (mentions légales, 404).
 */

/* Manrope (SIL Open Font License, fonts/OFL.txt), servie par le site : aucun appel à Google Fonts.
   Sous-ensemble latin : couvre le français (accents, œ, « », espaces insécables, €). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Marque Digistory : nuit alpine et « alpenglow », la lueur des sommets au coucher du soleil */
  --night-950: #070c18;
  --night-900: #0b1324;
  --night-800: #121c31;
  --night-700: #1c2842;
  --glow: #ff7a59;
  --glow-2: #ffb36b;
  --dusk: #c0508a;
  --glow-ink: #c2410c; /* l'accent en version lisible sur fond clair (contraste 4,8:1 sur --snow) */

  /* Surfaces et texte */
  --snow: #f5f6fa; /* fond de page ; aussi le premier plan de assets/cretes.svg */
  --surface: #ffffff;
  --ink: #0d1424;
  --ink-2: #3d4759;
  --ink-3: #626b7f;
  --line: #e2e6ee;
  --on-night: #e8ecf5;
  --on-night-2: #aab4c8;

  /* Digitrek (website/src/styles/global.css) : ses couleurs restent les siennes */
  --dt-forest-900: #083c28;
  --dt-forest-700: #2e6b3f;
  --dt-leaf: #5fbd38;
  --dt-leaf-soft: #e3f3da;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(13 20 36 / 0.05), 0 10px 30px rgb(13 20 36 / 0.08);
  --shadow-lg: 0 2px 8px rgb(7 12 24 / 0.2), 0 30px 70px rgb(7 12 24 / 0.35);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px; /* les ancres ne passent pas sous l'en-tête collant (deux lignes sur mobile) */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--glow-ink);
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

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

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

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section--night {
  background: var(--night-900);
  color: var(--on-night);
}

.section--surface {
  background: var(--surface);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow-ink);
  margin-bottom: 14px;
}

.section--night .eyebrow,
.hero .eyebrow,
.contact .eyebrow {
  color: var(--glow);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 62ch;
}

.section--night .lead {
  color: var(--on-night-2);
}

/* Texte en dégradé « alpenglow » */
.glow-text {
  background: linear-gradient(90deg, var(--glow-2), var(--glow) 45%, var(--dusk));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Liste à puces cochées ; .checks--leaf aux couleurs de Digitrek */
.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.checks li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink-2);
}

.checks li::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-top: 1px;
  background: #ffe4da
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 15px no-repeat;
}

.checks--leaf li::before {
  background-color: var(--dt-leaf-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e6b3f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.checks strong {
  color: var(--ink);
}

/* Étiquettes (technologies) */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags li {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

.section--night .tags li,
.spot .tags li {
  color: var(--on-night-2);
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.12);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--glow {
  background: var(--glow);
  color: var(--night-950);
  box-shadow: 0 8px 24px rgb(255 122 89 / 0.35);
}

.btn--glow:hover {
  background: #ff8d70;
  box-shadow: 0 12px 30px rgb(255 122 89 / 0.45);
}

.btn--ghost {
  color: var(--on-night);
  border: 1px solid rgb(255 255 255 / 0.22);
}

.btn--ghost:hover {
  background: rgb(255 255 255 / 0.07);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.95rem;
}

/* Coordonnée affichée au clic (assets/contact.js) */
.reveal {
  font: inherit;
  font-weight: 800;
  color: var(--glow-ink);
  background: #ffe4da;
  border: 0;
  border-radius: 999px;
  padding: 3px 14px;
  cursor: pointer;
}

.reveal:hover {
  background: #ffd3c4;
}

.reveal-noscript {
  color: var(--ink-3);
  font-size: 0.9em;
}

/* ---------- En-tête ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(11 19 36 / 0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
}

/* Mobile : logo et Contact sur une ligne, les liens des sections sur une seconde ligne.
   Grand écran (760 px et plus) : tout sur une ligne. */
.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  min-height: 60px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.header__nav {
  order: 3;
  width: 100%;
  display: flex;
  gap: 24px;
  padding-top: 8px;
}

.header__nav a {
  color: var(--on-night-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.97rem;
}

.header__nav a:hover {
  color: #fff;
}

.header .btn {
  margin-left: auto;
}

@media (min-width: 760px) {
  .header__inner {
    column-gap: 24px;
    flex-wrap: nowrap;
    height: 68px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .header__nav {
    order: 0;
    width: auto;
    margin-left: auto;
    padding-top: 0;
    gap: 28px;
  }
  .header .btn {
    margin-left: 0;
  }
}

/* Choix de la langue (assets/i18n.js l'affiche ; sans JavaScript, il reste caché) */
.lang {
  margin-left: auto;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--on-night);
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab4c8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    right 10px center / 12px no-repeat;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  padding: 7px 28px 7px 13px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.lang:hover {
  border-color: rgb(255 255 255 / 0.45);
}

.lang option {
  color: var(--ink);
  background: var(--surface);
}

.header .lang + .btn {
  margin-left: 0;
}

/* Petits téléphones : logo, langue et Contact tiennent sur la première ligne */
@media (max-width: 420px) {
  .header .brand {
    font-size: 1.2rem;
  }
  .header .brand img {
    width: 30px;
    height: 30px;
  }
  .header .btn--sm {
    padding: 8px 14px;
  }
  .lang {
    padding: 6px 24px 6px 10px;
    background-position: right 8px center;
  }
}

@media (min-width: 760px) {
  .lang {
    margin-left: 0;
  }
}

/* Logo : la marque (favicon.svg) et le nom, « digi » + « story » comme « digi » + « trek » chez Digitrek */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand__story {
  color: var(--glow);
}

/* ---------- Accueil : bandeau ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 520px at 80% 100%, rgb(255 122 89 / 0.3), transparent 65%),
    radial-gradient(700px 420px at 10% 0%, rgb(192 80 138 / 0.2), transparent 60%),
    linear-gradient(180deg, var(--night-950), var(--night-900) 55%, #1a2140);
  padding: clamp(56px, 9vw, 112px) 0 clamp(150px, 22vw, 300px);
}

/* Trame de points : le « digital » au-dessus des montagnes */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.1) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none;
}

.hero__ridges {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(150px, 24vw, 340px);
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.hero .lead {
  color: var(--on-night-2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 36px 0 0;
  padding: 0;
  color: var(--on-night-2);
  font-weight: 700;
  font-size: 0.93rem;
}

.hero__facts li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow);
  margin-right: 9px;
  vertical-align: middle;
}

/* Carte « produit phare » du bandeau */
.spot {
  position: relative;
  width: 100%;
  max-width: 420px;
  justify-self: center;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgb(255 255 255 / 0.11), rgb(255 255 255 / 0.03));
  border: 1px solid rgb(255 255 255 / 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.spot__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.spot__head img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
}

.spot__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow);
}

.spot__name {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 2px 0 0;
  letter-spacing: -0.035em;
}

.spot p {
  color: var(--on-night-2);
  margin: 18px 0;
}

.spot__link {
  display: inline-block;
  margin-top: 20px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.spot__link:hover {
  color: var(--glow);
}

/* Pastille d'état : « Bientôt sur Google Play » */
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--dt-forest-700);
  background: var(--dt-leaf-soft);
  border-radius: 999px;
  padding: 6px 14px;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dt-leaf);
  box-shadow: 0 0 0 0 rgb(95 189 56 / 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(95 189 56 / 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgb(95 189 56 / 0);
  }
}

/* ---------- Accueil : Digitrek ---------- */

.product {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
  align-items: center;
}

@media (min-width: 920px) {
  .product {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.product__visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 12px;
}

.product__map {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}

.product__icon {
  position: absolute;
  top: -26px;
  right: 0;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: rotate(6deg);
}

.float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

.float svg {
  width: 18px;
  height: 18px;
  color: var(--dt-forest-700);
}

.float--a {
  top: 18%;
  left: 0;
  transform: rotate(-4deg);
}

.float--b {
  bottom: 9%;
  right: 0;
  transform: rotate(3deg);
}

.float__dot {
  width: 12px;
  height: 5px;
  border-radius: 3px;
  background: #e67e00;
}

.dt-name {
  color: var(--dt-forest-700);
}

.product__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 34px;
  font-weight: 700;
  color: var(--ink-3);
  font-size: 0.95rem;
}

/* ---------- Accueil : sous le capot ---------- */

.stack {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}

@media (min-width: 900px) {
  .stack {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stack > li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 26px;
  border-radius: var(--radius);
  background: var(--night-800);
  border: 1px solid rgb(255 255 255 / 0.08);
}

/* Flèche entre deux étages : vers le bas sur mobile, vers la droite sur grand écran */
.stack > li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 26px;
  bottom: -19px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glow);
  color: var(--night-950);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

@media (min-width: 900px) {
  .stack > li:not(:last-child)::after {
    content: "→";
    left: auto;
    bottom: auto;
    right: -20px;
    top: 30px;
  }
}

.stack__num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--glow);
}

.stack h3 {
  color: #fff;
  margin: 10px 0 8px;
}

.stack p {
  color: var(--on-night-2);
  font-size: 0.98rem;
  margin: 0 0 18px;
}

.stack .tags {
  margin-top: auto;
}

.stack-note {
  max-width: 760px;
  margin: clamp(40px, 5vw, 56px) auto 0;
  text-align: center;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--on-night);
}

/* ---------- Accueil : savoir-faire ---------- */

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--glow-ink);
  background: linear-gradient(135deg, #fff3ec, #ffe1d6);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin: 20px 0 8px;
}

.card p {
  color: var(--ink-2);
  margin: 0 0 18px;
}

.card .tags {
  margin-top: auto;
}

.cards-note {
  margin: 36px 0 0;
  text-align: center;
  color: var(--ink-2);
  font-weight: 700;
}

/* ---------- Accueil : le studio ---------- */

.studio {
  display: grid;
  gap: clamp(44px, 6vw, 80px);
  align-items: start;
}

@media (min-width: 940px) {
  .studio {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.timeline {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius);
  background: var(--night-900);
  color: var(--on-night);
  box-shadow: var(--shadow-lg);
}

.timeline h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.timeline__intro {
  color: var(--on-night-2);
  margin-bottom: 18px;
}

.timeline ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.timeline strong {
  display: block;
  color: #fff;
}

.timeline span {
  color: var(--on-night-2);
  font-size: 0.95rem;
}

.timeline .timeline__year {
  font-size: 1rem;
  font-weight: 800;
  color: var(--glow);
  font-variant-numeric: tabular-nums;
}

.timeline__foot {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: 0.9rem;
  color: var(--on-night-2);
}

/* ---------- Accueil : contact ---------- */

.contact {
  text-align: center;
  color: #fff;
  background:
    radial-gradient(900px 420px at 50% 125%, rgb(255 122 89 / 0.32), transparent 70%),
    var(--night-950);
}

.contact .lead {
  color: var(--on-night-2);
  margin: 0 auto;
}

.contact__list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  max-width: 980px;
  margin: 44px auto 0;
}

.contact__list > div {
  padding: 22px 20px;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
}

.contact dt {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-night-2);
  margin-bottom: 8px;
}

.contact dd {
  margin: 0;
  font-weight: 800;
}

.contact dd a {
  color: #fff;
}

.contact .reveal {
  color: var(--night-950);
  background: var(--glow);
}

.contact .reveal:hover {
  background: #ff8d70;
}

.contact .reveal-noscript {
  color: var(--on-night-2);
}

/* ---------- Pied de page ---------- */

.footer {
  background: var(--night-950);
  color: var(--on-night-2);
  border-top: 1px solid rgb(255 255 255 / 0.07);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand p {
  margin: 16px 0 0;
  max-width: 38ch;
}

.footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer nav a {
  color: var(--on-night-2);
  text-decoration: none;
}

.footer nav a:hover {
  color: #fff;
}

.footer__legal {
  margin: 44px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: 0.82rem;
  color: #8792a8;
}

/* ---------- Mentions légales ---------- */

.legal {
  max-width: calc(780px + 2 * var(--gutter));
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(64px, 9vw, 110px);
}

.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 8px;
}

.legal h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 48px 0 14px;
}

.legal p,
.legal li {
  color: var(--ink-2);
}

.legal ul {
  padding-left: 22px;
}

.legal .updated {
  font-size: 0.9rem;
  color: var(--ink-3);
}

.facts {
  margin: 0 0 1em;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .facts > div {
    grid-template-columns: 210px 1fr;
  }
}

.facts dt {
  font-weight: 800;
  color: var(--ink);
}

.facts dd {
  margin: 0;
  color: var(--ink-2);
}

/* Mentions légales traduites : rappel que seule la version française fait foi (vide, donc caché, en français) */
.legal__notice {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #ffe4da;
  color: #7a2e0e;
  font-weight: 700;
}

.legal__notice:empty {
  display: none;
}


/* ---------- Page 404 ---------- */

.notfound {
  min-height: calc(100vh - 68px);
  display: grid;
  align-content: center;
  text-align: center;
  padding-bottom: clamp(170px, 26vw, 320px);
}

.notfound > .wrap {
  position: relative; /* au-dessus des crêtes */
}

.notfound .lead {
  margin: 0 auto 32px;
}

.notfound__code {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 12px;
}

/* ---------- Accessibilité ---------- */

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