/* ===================================================================
 * ZayActu Glossaire — habillage
 *
 * Deux endroits : le mot lié dans un article, et les pages du
 * glossaire. Le mot lié doit se voir sans casser la lecture — un
 * soulignement pointillé suffit, là où une couleur vive ferait croire
 * à un lien d'article.
 *
 * Couleurs de la maison : marine #16216B, rouge #E4032E, or #F5B82E.
 * =================================================================== */

.zgl-mot {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(22, 33, 107, .45);
  cursor: help;
  transition: border-color .18s ease, background .18s ease;
}
.zgl-mot:hover,
.zgl-mot:focus-visible {
  border-bottom-color: #E4032E;
  background: rgba(245, 184, 46, .16);
}
.zgl-mot:focus-visible { outline: 2px solid #F5B82E; outline-offset: 2px }

/* L'infobulle, posée par le script. */
.zgl-bulle {
  position: absolute;
  z-index: 9999;
  max-width: 330px;
  padding: 14px 16px 13px;
  background: #16216B;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(10, 18, 60, .3);
  font: 400 14.5px/1.5 "Barlow", system-ui, sans-serif;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: auto;
}
.zgl-bulle.vue { opacity: 1; transform: translateY(0) }

.zgl-bulle b {
  display: block;
  margin-bottom: 5px;
  font: 800 11px/1 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #F5B82E;
}
.zgl-bulle a {
  display: inline-block;
  margin-top: 9px;
  color: #fff;
  font: 800 11px/1 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  text-decoration: none;
}
.zgl-bulle a:hover { border-bottom-color: #F5B82E; color: #F5B82E }

.zgl-bulle .zgl-fermer {
  position: absolute;
  top: 6px; right: 8px;
  width: 26px; height: 26px;
  display: none;
  align-items: center; justify-content: center;
  background: none; border: 0; padding: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 19px; line-height: 1; cursor: pointer;
}
.zgl-bulle.tactile .zgl-fermer { display: flex }

/* -------------------------------------------------------------------
 * Les pages du glossaire
 * ----------------------------------------------------------------- */

.zgl-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px max(16px, env(safe-area-inset-left, 0px)) 70px;
  font-family: "Barlow", system-ui, sans-serif;
  color: #16216B;
}

.zgl-fil { font-size: 13px; margin-bottom: 18px; color: #5A6383 }
.zgl-fil a { color: #5A6383; text-decoration: none }
.zgl-fil a:hover { text-decoration: underline }
.zgl-fil span { margin: 0 6px }

.zgl-k {
  margin: 0 0 10px;
  font: 800 11px/1 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #E4032E;
}

.zgl-index-tete h1,
.zgl-tete h1 {
  margin: 0 0 14px;
  font: 900 clamp(32px, 5vw, 46px)/1.06 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: .005em;
  text-wrap: balance;
}

.zgl-chapo { margin: 0; font-size: 17px; line-height: 1.6; color: #41496B; max-width: 62ch }

.zgl-courte {
  margin: 0;
  padding: 18px 20px;
  background: #F3F5FB;
  border-left: 4px solid #F5B82E;
  border-radius: 0 10px 10px 0;
  font-size: 18.5px;
  line-height: 1.55;
  font-weight: 600;
}

.zgl-doms { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 7px }
.zgl-doms a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #16216B;
  color: #fff;
  font: 800 10.5px/1 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.zgl-doms a:hover { background: #E4032E }

.zgl-var { margin: 14px 0 0; font-size: 14.5px; color: #5A6383 }
.zgl-var span {
  font: 800 10.5px/1 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8A93B4;
  margin-right: 7px;
}

.zgl-corps { margin-top: 26px; font-size: 17px; line-height: 1.7; color: #26304F }
.zgl-corps p { margin: 0 0 1.1em }

.zgl-bloc { margin-top: 42px; padding-top: 26px; border-top: 1px solid rgba(22, 33, 107, .12) }
.zgl-bloc h2 {
  margin: 0 0 16px;
  font: 900 20px/1.2 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.zgl-arts { list-style: none; margin: 0; padding: 0 }
.zgl-arts li + li { margin-top: 2px }
.zgl-arts a {
  display: flex; gap: 14px; align-items: baseline;
  padding: 11px 12px; border-radius: 9px;
  color: #16216B; text-decoration: none;
  transition: background .16s ease;
}
.zgl-arts a:hover { background: #F3F5FB }
.zgl-a-d { flex: 0 0 auto; font-size: 12.5px; color: #8A93B4; font-variant-numeric: tabular-nums }
.zgl-a-t { font-weight: 600; line-height: 1.4 }

.zgl-vois { margin: 0; display: flex; flex-wrap: wrap; gap: 8px }
.zgl-vois a {
  display: inline-block; padding: 8px 14px;
  border: 1px solid rgba(22, 33, 107, .2); border-radius: 999px;
  color: #16216B; text-decoration: none; font-size: 14px; font-weight: 600;
}
.zgl-vois a:hover { border-color: #16216B; background: #16216B; color: #fff }

.zgl-retour { margin: 40px 0 0 }
.zgl-retour a {
  font: 800 11.5px/1 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
  color: #E4032E; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}

/* L'index */
.zgl-index-tete { margin-bottom: 30px }

.zgl-outils { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 22px }
.zgl-rech { flex: 1 1 260px }
.zgl-rech input {
  width: 100%; box-sizing: border-box;
  height: 48px; padding: 0 18px;
  border: 1px solid rgba(22, 33, 107, .22); border-radius: 999px;
  font: 400 16px/1 "Barlow", system-ui, sans-serif; color: #16216B;
  background: #fff;
}
.zgl-rech input:focus { outline: 2px solid #F5B82E; outline-offset: 1px; border-color: #16216B }

.zgl-doms-nav { display: flex; flex-wrap: wrap; gap: 7px }
.zgl-doms-nav a {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(22, 33, 107, .2);
  color: #16216B; text-decoration: none;
  font: 800 11px/1 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: .12em; text-transform: uppercase;
}
.zgl-doms-nav a.actif, .zgl-doms-nav a:hover { background: #16216B; color: #fff; border-color: #16216B }

.zgl-alpha {
  display: flex; flex-wrap: wrap; gap: 5px;
  padding: 14px 0 20px; border-top: 1px solid rgba(22, 33, 107, .12);
}
.zgl-alpha a {
  min-width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #F3F5FB;
  color: #16216B; text-decoration: none;
  font: 800 13px/1 "Barlow Condensed", system-ui, sans-serif;
}
.zgl-alpha a:hover { background: #16216B; color: #fff }

.zgl-groupe { margin-bottom: 34px; scroll-margin-top: 90px }
.zgl-groupe h2 {
  margin: 0 0 10px;
  font: 900 15px/1 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: .2em; color: #E4032E;
}

.zgl-liste { list-style: none; margin: 0; padding: 0 }
.zgl-liste li { border-top: 1px solid rgba(22, 33, 107, .1) }
.zgl-liste a {
  display: block; padding: 15px 12px; border-radius: 10px;
  color: #16216B; text-decoration: none;
  transition: background .16s ease;
}
.zgl-liste a:hover { background: #F3F5FB }
.zgl-l-t { display: block; font-weight: 800; font-size: 17.5px; margin-bottom: 3px }
.zgl-l-d { display: block; font-size: 14.5px; line-height: 1.5; color: #5A6383 }

.zgl-vide { padding: 26px 0; color: #5A6383; font-size: 16px }

@media (max-width: 640px) {
  .zgl-page { padding-top: 20px }
  .zgl-arts a { flex-direction: column; gap: 3px }
  .zgl-courte { font-size: 17px; padding: 15px 16px }
}

/* Mode nuit du site. */
html.zrf-nuit .zgl-page { color: #E8ECFA }
html.zrf-nuit .zgl-courte { background: #1A2440; color: #E8ECFA }
html.zrf-nuit .zgl-corps { color: #C3CCE8 }
html.zrf-nuit .zgl-chapo { color: #B4BEDC }
html.zrf-nuit .zgl-liste a:hover,
html.zrf-nuit .zgl-arts a:hover { background: #1A2440 }
html.zrf-nuit .zgl-alpha a { background: #1A2440; color: #E8ECFA }
html.zrf-nuit .zgl-rech input { background: #101A33; color: #E8ECFA; border-color: rgba(255,255,255,.18) }
html.zrf-nuit .zgl-mot { border-bottom-color: rgba(245, 184, 46, .6) }

@media (prefers-reduced-motion: reduce) {
  .zgl-bulle, .zgl-mot, .zgl-liste a, .zgl-arts a { transition: none }
}

@media print {
  .zgl-bulle { display: none !important }
  .zgl-mot { border-bottom: 0 }
}
