/* ============================================================
   Space Sparks · pages légales
   Feuille commune à impressum.html et confidentialite.html : elle
   doit rester identique dans les deux fichiers, caractère pour
   caractère, afin que la construction n'en tire qu'un seul fichier.
   Les jetons reprennent ceux de index.html.
   ============================================================ */

:root{
  --ink:        oklch(0.135 0.022 268);
  --ink-2:      oklch(0.185 0.026 268);
  --ivory:      oklch(0.965 0.010 85);
  --muted:      oklch(0.735 0.018 268);
  --faint:      oklch(0.545 0.022 268);
  --spark:      oklch(0.835 0.155 78);
  --spark-deep: oklch(0.585 0.135 62);
  --spark-solid: var(--spark);
  --on-spark:   oklch(0.19 0.03 70);
  --line:       color-mix(in oklch, var(--ivory) 13%, transparent);
  --line-soft:  color-mix(in oklch, var(--ivory) 7%, transparent);
  --font: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-titre: 'Familjen Grotesk', 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gut: clamp(20px, 5vw, 72px);
  --max: 1320px;
  color-scheme: dark;
}

*,*::before,*::after{ box-sizing: border-box; }
[hidden]{ display: none !important; }
html{ scroll-behavior: smooth; }

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

.aura{
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  top: -18vh; right: -12vw;
  width: 62vw; height: 62vw;
  background: radial-gradient(circle, color-mix(in oklch, var(--spark) 16%, transparent), transparent 66%);
  opacity: .45;
}

.shell{ position: relative; z-index: 1; }
.wrap{
  width: min(100% - var(--gut) * 2, var(--max));
  margin-inline: auto;
}

/* ---------- Barre de navigation ---------- */
.nav{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color .4s linear, border-color .4s linear;
}
.nav.is-stuck{
  background: color-mix(in oklch, var(--ink) 82%, transparent);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(14px);
}
.nav__in{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.mark{
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ivory);
}
.mark__glyph{ width: 15px; height: 15px; flex: none; color: var(--spark); }
.mark__text{
  font-family: var(--font-titre);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.mark:focus-visible{ outline: 2px solid var(--spark); outline-offset: 5px; border-radius: 3px; }

/* ---------- Boutons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  font-stretch: 96%;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ivory);
  background: transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before{
  content: '';
  position: absolute;
  inset: 0;
  background: var(--spark-solid);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn > *{ position: relative; z-index: 1; }
.btn:hover{ color: var(--on-spark); border-color: var(--spark-solid); }
.btn:hover::before{ transform: translateY(0); }
.btn:focus-visible{ outline: 2px solid var(--spark); outline-offset: 3px; }
.btn__dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--spark);
  transition: background-color .35s var(--ease);
}
.btn:hover .btn__dot{ background: var(--on-spark); }
.btn--solid{
  background: var(--spark-solid);
  border-color: var(--spark-solid);
  color: var(--on-spark);
}
.btn--solid::before{ background: var(--ivory); }
.btn--solid .btn__dot{ background: var(--on-spark); }
.btn--solid:hover{ color: var(--ink); }
.btn--solid:hover .btn__dot{ background: var(--spark-solid); }

/* ---------- Ouverture ---------- */
.label{
  font-size: 0.7rem;
  font-weight: 600;
  font-stretch: 86%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}
.label--spark{ color: var(--spark); }
.tete{ padding-block: clamp(130px, 18vh, 190px) clamp(36px, 5vw, 60px); }
.tete__titre{
  font-family: var(--font-titre);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.034em;
  line-height: 0.98;
  margin: 18px 0 clamp(22px, 3vw, 34px);
  text-wrap: balance;
}
.tete__chapeau{
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  max-width: 52ch;
  margin: 0 0 22px;
}
.tete__date{ margin: 0; font-size: 0.83rem; color: var(--faint); }

/* ---------- Articles ---------- */
.texte{ padding-bottom: clamp(80px, 12vh, 140px); }
.article{
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  gap: clamp(14px, 4vw, 70px);
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}
.article__tete{ display: grid; gap: 10px; align-content: start; }
.article__num{
  font-size: 0.7rem;
  font-weight: 600;
  font-stretch: 86%;
  letter-spacing: 0.18em;
  color: var(--spark);
}
.article__titre{
  font-family: var(--font-titre);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}
.article__corps{ display: grid; gap: 16px; max-width: 66ch; color: var(--muted); }
.article__corps p,
.article__corps ul,
.article__corps address{ margin: 0; }
.article__corps address{ font-style: normal; color: var(--ivory); line-height: 1.6; }
.article__corps b{ color: var(--ivory); font-weight: 600; }
.article__corps h3{
  font-family: var(--font-titre);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin: 10px 0 -6px;
}
.article__corps ul{ list-style: none; padding: 0; display: grid; gap: 9px; }
.article__corps li{ position: relative; padding-left: 20px; }
.article__corps li::before{
  content: '';
  position: absolute;
  left: 2px; top: 0.72em;
  width: 6px; height: 1px;
  background: var(--spark);
}
.fiche{
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--line-soft);
}
.fiche dt,
.fiche dd{ margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.fiche dt{ font-size: 0.83rem; color: var(--faint); padding-right: 16px; }
.fiche dd{ color: var(--ivory); }

/* ---------- Liens dans le texte ---------- */
.lien,
.courriel a{
  color: var(--spark);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklch, var(--spark) 40%, transparent);
  transition: border-color .28s var(--ease);
}
.lien:hover,
.courriel a:hover{ border-bottom-color: var(--spark); }
.lien:focus-visible,
.courriel a:focus-visible{ outline: 2px solid var(--spark); outline-offset: 3px; border-radius: 2px; }

/* ---------- Avis de confidentialité ---------- */
/* Même avis que sur la page d'accueil : aucun cookie, donc rien à
   accepter ni à refuser, seulement le devoir d'informer de la nLPD. */
.avis{
  position: fixed;
  z-index: 60;
  right: var(--gut);
  bottom: clamp(16px, 3vw, 28px);
  width: min(calc(100% - var(--gut) * 2), 384px);
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in oklch, var(--ink-2) 94%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px oklch(0.05 0.02 268 / .55);
  animation: avis-entree .6s var(--ease) both;
}
@keyframes avis-entree{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: none; }
}
.avis__texte{ margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
.avis__texte b{ color: var(--ivory); font-weight: 600; }
.avis__pied{ display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avis__pied .lien{ font-size: 0.82rem; }

/* ---------- Pied ---------- */
.foot{ border-top: 1px solid var(--line); padding-block: 34px 44px; }
.foot__in{ display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot p{ margin: 0; color: var(--faint); font-size: 0.83rem; }
.foot a{ color: var(--muted); text-decoration: none; }
.foot a:hover{ color: var(--spark); }
.foot a[aria-current]{ color: var(--ivory); }

/* ---------- Petits écrans ---------- */
@media (max-width: 760px){
  body{ font-size: 16px; }
  .tete{ padding-top: 110px; }
  .article{ grid-template-columns: minmax(0, 1fr); }
  .fiche{ grid-template-columns: minmax(0, 1fr); }
  .fiche dt{ border-bottom: 0; padding-bottom: 0; }
  .fiche dd{ padding-top: 3px; }
}
