/* AstafLab — feuille de style commune
   Thème sombre unique. Laiton sur bleu nuit, d'après l'icône AWAS. */

:root {
  color-scheme: dark;

  --ink:        #0A1622;
  --panel:      #102636;
  --panel-edge: #1C3B4E;
  --ivory:      #EFE9DC;
  --muted:      #9DB0BC;
  --teal:       #63CDB6;
  --brass:      #D9AE52;
  --brass-dim:  #8A6E2F;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 34rem;
  --gutter: clamp(1.15rem, 5vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image: radial-gradient(70rem 34rem at 50% -14rem, rgba(217, 174, 82, .08), transparent 72%);
  background-repeat: no-repeat;
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Trame ---------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { padding-bottom: 3rem; }

section + section { margin-top: 2.75rem; }

/* ---------- Accès clavier ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .6rem 1rem;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .8125rem;
  z-index: 10;
}

.skip:focus {
  left: .5rem;
  top: .5rem;
}

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

:focus:not(:focus-visible) { outline: none; }

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

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

.masthead {
  padding-top: clamp(2rem, 8vw, 3.75rem);
  padding-bottom: 1.5rem;
  text-align: center;
}

.dial {
  display: block;
  width: min(15rem, 62%);
  height: auto;
  margin: 0 auto 1.4rem;
  color: var(--brass);
  opacity: .9;
}

.overline {
  margin: 0 0 .55rem;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: .01em;
  color: var(--ivory);
}

.lede {
  max-width: 30rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Titres de section ---------- */

h2 {
  margin: 0 0 .85rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--teal);
}

h2::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin-bottom: .9rem;
  background: var(--brass-dim);
}

h3 {
  margin: 0 0 .4rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ivory);
}

p { margin: 0 0 1rem; }

p:last-child { margin-bottom: 0; }

strong { font-weight: 500; }

/* ---------- Liens ---------- */

a {
  color: var(--teal);
  text-decoration-color: rgba(99, 205, 182, .4);
  text-underline-offset: .18em;
  transition: color .15s ease, text-decoration-color .15s ease;
}

a:hover {
  color: var(--brass);
  text-decoration-color: var(--brass);
}

/* ---------- Listes ---------- */

ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }

li { margin-bottom: .45rem; }

li:last-child { margin-bottom: 0; }

ul.plain {
  list-style: none;
  padding-left: 0;
}

ul.plain > li {
  position: relative;
  padding-left: 1.15rem;
}

ul.plain > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: .45rem;
  height: 1px;
  background: var(--brass-dim);
}

/* ---------- Encarts ---------- */

.panel {
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 4px;
}

.panel :last-child { margin-bottom: 0; }

.notice {
  border-left: 2px solid var(--brass);
}

.notice .overline { margin-bottom: .5rem; }

.notice p { color: var(--muted); }

/* ---------- Bloc de métadonnées ---------- */

.meta {
  margin: 0;
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1.6;
}

.meta > div {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .75rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--panel-edge);
}

.meta > div:last-child { border-bottom: 0; }

.meta dt {
  flex: 0 0 9.5rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .6875rem;
  padding-top: .12rem;
}

.meta dd {
  flex: 1 1 10rem;
  margin: 0;
  color: var(--ivory);
}

/* ---------- Carte application ---------- */

.app-card { display: block; }

.app-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: .02em;
}

.app-card p { color: var(--muted); }

/* ---------- Questions fréquentes ---------- */

.faq > div {
  padding: 1.1rem 0;
  border-top: 1px solid var(--panel-edge);
}

.faq > div:last-child { border-bottom: 1px solid var(--panel-edge); }

.faq p { color: var(--muted); }

/* ---------- Bloc « In English » ---------- */

.aside-lang {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--panel-edge);
}

.aside-lang h2 { color: var(--brass); }

.aside-lang h2::before { background: var(--brass-dim); }

/* ---------- Sélecteur de langue ---------- */
/* Liste horizontale : une troisième langue s'ajoute sans autre changement. */

.lang {
  margin-top: 1.5rem;
}

.lang ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang li {
  margin: 0;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .05em;
}

.lang li + li {
  padding-left: .9rem;
  border-left: 1px solid var(--brass-dim);
}

.lang a { text-decoration: none; }

.lang a:hover { text-decoration: underline; }

.lang [aria-current="page"] {
  color: var(--muted);
  cursor: default;
}

.lang [aria-current="page"]:hover {
  color: var(--muted);
  text-decoration: none;
}

/* ---------- Fil d'Ariane ---------- */

.crumbs {
  padding-top: 1.35rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li { margin: 0; }

.crumbs li + li::before {
  content: "›";
  margin-right: .5rem;
  color: var(--brass-dim);
}

.crumbs a { text-decoration: none; }

.crumbs a:hover { text-decoration: underline; }

.crumbs [aria-current="page"] { color: var(--ivory); }

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

.site-foot {
  margin-top: 3.5rem;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--panel-edge);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--muted);
  text-align: center;
}

.site-foot p { margin: 0 0 .5rem; }

.site-foot p:last-child { margin-bottom: 0; }

/* ---------- Divers ---------- */

code, .pkg {
  font-family: var(--mono);
  font-size: .875em;
  color: var(--brass);
  word-break: break-word;
}

.updated {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- 360 px ---------- */

@media (max-width: 24rem) {
  body { font-size: 1rem; }

  .meta > div { display: block; }

  .meta dt { margin-bottom: .1rem; }
}

/* ---------- Mouvement réduit ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
