/* ==========================================================
   Sommaire Gallika — styles locaux
   Ordre : base → titres → articles → blocs → utilitaires → responsive
   ========================================================== */


/* ==========================================================
   1. Base
   ========================================================== */

@media screen and (min-width: 61.25em) {
  body {
    font-size: 0.85em;
  }
}


/* ==========================================================
   2. Titres de sections — tension typographique
   ========================================================== */

.home-section-title {
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.78);
}

.home-section-title--primary {
  font-size: 1.26em;
  font-weight: 750;
  color: rgba(0, 0, 0, 0.92);
  margin-bottom: 1.05rem !important;
}

.home-section-title--secondary {
  font-size: 0.98em;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.66);
  margin-bottom: 0.75rem !important;
}

.home-section-title .uil {
  font-size: 0.95em;
  opacity: 0.55;
}

.home-primary-block {
  margin-bottom: 3rem;
}


/* ==========================================================
   3. Articles — liste de la page d’accueil
   ========================================================== */

.blog.single .post {
  margin-bottom: 1.9rem;
}

.blog.single .post h3 {
  font-size: 1.24em;
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: 0.005em;
  margin-bottom: 0.6rem;
}

.blog.single .post h3 a {
  color: rgba(0, 0, 0, 0.97);
  text-decoration: none;
}

.blog.single .post h3 a:hover {
  text-decoration: underline;
}

.blog.single .post .fs-sm {
  font-size: 0.76em;
  opacity: 0.5;
  margin-top: 0.15rem;
}

.blog.single .classic-view .post p {
  font-size: 0.92em;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
}

.blog.single hr,
.classic-view hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 1;
  margin: 1.4rem 0 1.7rem;
}


/* ==========================================================
   4. Bloc de transition — anciens domaines
   ========================================================== */

.gk-transition-domains {
  margin: 1.5rem 0 2rem;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid rgba(58, 58, 58, 0.22);
  border-radius: 12px;
  background: rgba(58, 58, 58, 0.025);
  color: #3a3a3a;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 420;
}

.gk-transition-domains p {
  margin: 0;
}

.gk-transition-domains p + p {
  margin-top: 0.35rem;
}

.gk-transition-title {
  font-weight: 650;
}


/* ==========================================================
   5. Bloc « Commencer ici »
   ========================================================== */

.commencer-ici {
  padding-left: 1rem;
  border-left: 2px solid rgba(0, 0, 0, 0.06);
}

.commencer-ici .uil {
  font-size: 0.95em;
  opacity: 0.75;
}

.commencer-ici-link {
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.commencer-ici-link:hover {
  border-bottom-style: solid;
}

.commencer-ici-arrow {
  opacity: 0.65;
  margin-right: 0.25rem;
}


/* ==========================================================
   6. Intro bilingue
   ========================================================== */

.intro-fr p {
  margin: 0 0 0.75rem;
}

.intro-fr p:last-of-type {
  margin-bottom: 0;
}

.intro-lang-btn {
  display: inline-flex;
  align-items: center;
  margin: 0.25rem 0;
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.intro-lang-btn:hover {
  text-decoration-style: solid;
}

.intro-gr {
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.75);
}

.intro-gr p {
  margin: 0.5rem 0 0;
}


/* ==========================================================
   7. Utilitaires
   ========================================================== */

.external-icon {
  font-size: 0.75em;
  vertical-align: 0.3em;
}

.discover-refresh {
  border: 0;
  background: none;
  padding: 0 0.15rem;
  margin-left: 0.25rem;
  opacity: 0.28;
  line-height: 1;
  transform: translateY(-0.02em);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.discover-refresh:hover {
  opacity: 0.7;
  transform: translateY(-0.06em);
}

.discover-refresh:focus-visible {
  outline: none;
  opacity: 0.85;
}


/* ==========================================================
   8. Responsive
   ========================================================== */

@media (max-width: 576px) {
  .home-section-title--primary {
    font-size: 1.18em;
  }

  .blog.single .post h3 {
    font-size: 1.16em;
  }

  .home-primary-block {
    margin-bottom: 2.2rem;
  }
}
