/* ============================================================
   Glypho — Release note (dark, modern & sober)
   Feuille de style autonome et réutilisable pour les pages
   de release note hébergées sur abstrastudio.com.
   Valeurs de marque reprises de glypho/src/styles/tokens.css
   (thème sombre), recopiées ici pour que la page soit autonome.
   ============================================================ */

:root {
  /* Couleurs (thème sombre Glypho) */
  --bg: #191919;
  --surface: #202020;
  --surface-2: #161616;
  --text: #E8E8E6;
  --text-muted: #9A9A9A;
  --border: #2A2A2A;
  --border-strong: #383838;
  --accent: #5A9FE8;
  --accent-soft: rgba(90, 159, 232, 0.14);
  --success: #5ABF8A;

  /* Typographie */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rythme */
  --radius: 12px;
  --radius-sm: 8px;
  --content-width: 720px;
}

/* ---------- Reset léger ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  max-width: 100%;
  border-radius: 10px;
  border-width: 2px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Conteneur ---------- */
.release {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

/* ---------- Header ---------- */
.release-header {
  margin-bottom: 56px;
  text-align: center;
}

.version-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(90, 159, 232, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.release-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

.release-subtitle {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ---------- Sections ---------- */
.section {
  margin-top: 48px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--text);
}

.section-title + .group-title {
  margin-top: 28px;
}

.group-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 36px 0 16px;
}

/* ---------- Cartes de fonctionnalité ---------- */
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.feature-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.075rem;
  margin: 0 0 6px;
  color: var(--text);
}

.feature-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* ---------- Liste des corrections ---------- */
.fixes {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.fixes li {
  position: relative;
  padding: 10px 0 10px 26px;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.fixes li:last-child {
  border-bottom: none;
}

.fixes li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Séparateur ---------- */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 56px 0;
}

/* ---------- Blocs média réutilisables ----------
   Usage (à ajouter dans le HTML quand tu as les médias) :

   <figure class="media">
     <img src="..." alt="..." />
     <figcaption>Légende optionnelle</figcaption>
   </figure>

   <figure class="media media--16x9">
     <video src="..." controls></video>
   </figure>

   <figure class="media media--16x9">
     <iframe src="..." allowfullscreen></iframe>
   </figure>
   ----------------------------------------------- */
.media {
  margin: 20px 0 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}

.media img,
.media video,
.media iframe {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

/* Ratio fixe pour vidéos / iframes (évite le saut de mise en page) */
.media--16x9 video,
.media--16x9 iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}

.media figcaption {
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ---------- Footer ---------- */
.release-footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.release-footer strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .release {
    padding: 48px 18px 72px;
  }

  .release-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .feature {
    padding: 18px 18px;
  }

  .divider {
    margin: 40px 0;
  }
}
