
/* =========================================================
   GALLIKA — Styles articles

   Rôle :
   - mise en forme éditoriale (chapo, synopsis, portfolio, etc.)
   - composants propres aux articles

   Ne pas :
   - redéfinir la typographie globale
   - dupliquer des styles présents dans oli.css
   ========================================================= */
			
			
/* =========================================================
   1. Base article
   ========================================================= */

.gallika-restricted {
  max-width: 720px;
  margin: 7rem auto;
  padding: 2.8rem 2.2rem;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  text-align: center;
  color: #444;
}

.gallika-restricted h1 {
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 1.2rem 0;
}

.gallika-restricted p {
  margin: 0 0 1rem 0;
  line-height: 1.65;
}

.gallika-restricted .gallika-login a {
  display: inline-block;
  margin-top: 1.4rem;
  text-decoration: underline;
}

/* Ajustement spécifique de la taille de lecture sur les pages article */
body {
  font-size: 1em;
}

.synopsis-el {
  line-height: 1.45;
}

.chapo {
  font-size: 1em;
  line-height: 1.65;
  color: #666;
  margin-bottom: 1.8rem;
}

.classic-view .post {
  max-width: 740px;
}

.post-content h3 {
  margin-top: 2.2rem;
  margin-bottom: .8rem;
}

.meta-ia {
  padding-top: 6px;
  font-size: 0.82rem;
  color: #6f7d8c;
  margin-top: -8px;
  margin-bottom: 14px;
}

.ia-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #6c7a89;
  background: #f4f6f9;
  border-radius: 20px;
  padding: 4px 10px;
  margin-top: -6px;
  margin-bottom: 10px;
}

.ia-badge i {
  font-size: 0.9rem;
}

blockquote {
	font-size: .9rem;
}

/* =========================================================
   2. Onglets, synopsis, résumés
   ========================================================= */

.nav-tabs .nav-link {
  background-color: #f4f5f7;
  color: #9aa0a6;
}

.nav-tabs .nav-link.active {
  background-color: #e9edf2;
  color: #1f2937;
  font-weight: 600;
  border-color: #d1d5db #d1d5db #e9edf2;
  box-shadow: inset 0 -1px 0 #e9edf2;
}

.nav-tabs .nav-link:hover {
  background-color: #eef1f4;
  color: #4b5563;
}

.ai-note {
  margin-top: .6rem;
  font-size: .75rem;
  color: #aaa;
  font-style: italic;
}

.synopsis {
  font-size: .9em;
  line-height: 1.6;
  color: #555;
}

.gallika-synopsis {
  margin-bottom: 1rem;
}

.gallika-synopsis button {
  border-radius: 8px;
  font-weight: 600;
}

.gallika-synopsis .card-body {
  padding: 1rem 1.35rem .9rem 1.35rem;
}

.gallika-synopsis .card {
  min-height: 0 !important;
}

.gallika-synopsis .synopsis,
.gallika-synopsis .ai-note {
  margin-bottom: 0;
}

.gallika-resumes {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}

.gallika-resumes .btn {
  padding: .35rem .75rem;
  font-size: .85rem;
  border-radius: 999px;
  background: #f2f3f5;
  border: 1px solid rgba(0,0,0,.06);
  color: #3a3a3a;
}

.gallika-resumes .btn:hover {
  background: #eceef1;
}


/* =========================================================
   3. Images, accroche, sidebar, sticky box, fil d’Ariane
   ========================================================= */

.rub-img-nb {
  filter: grayscale(100%);
  opacity: .85;
  mix-blend-mode: multiply;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}

.rub-img-nb:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.gallika-accroche {
  margin: 2rem 0 2.6rem 0;
  padding-left: 16px;
  border-left: 3px solid #6c8ed9;
}

.gallika-accroche i {
  margin-right: .4rem;
  margin-top: .25rem;
}

.gallika-accroche span {
  font-weight: 600;
  font-size: 1.05em;
}

.sidebar .widget {
  margin-bottom: 2.2rem;
}

.gallika-stickybox .sommaire {
  border-left: 2px solid #e9edf2;
  padding-left: .9rem;
}

.gallika-stickybox ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.gallika-stickybox li {
  margin: .35rem 0;
  line-height: 1.3;
}

.gallika-stickybox a {
  text-decoration: none;
}

.gallika-stickybox .sommaire a {
  padding: .12rem .2rem;
  border-radius: 6px;
  display: inline-block;
}

.gallika-stickybox .sommaire a:hover {
  background: #f4f6f9;
}

/* Masquer le titre SOMMAIRE généré par le plugin */
.nav-sommaire h2 {
  display: none;
}



.gallika-nav-label {
  text-align: center;
  font-size: .85rem;
  color: #8a94a6;
  margin-bottom: .4rem;
  letter-spacing: .03em;
}

.gallika-prevnext a {
  text-decoration: none !important;
}

.gallika-prevnext a:hover {
  text-decoration: none !important;
  background: #eceef1;
}

.toc-progress {
  width: calc(100% - 32px);
  margin: 0 0 .6rem 32px;
  height: 2px;
  background: #eceff2;
  border-radius: 999px;
  overflow: hidden;
}

#tocProgressBar {
  width: 0;
  height: 2px;
  background: #bcc7d2;
  border-radius: 999px;
  transition: width .15s linear;
}

.sidebar .gallika-infos .accordion-item {
  border: 0 !important;
  margin-bottom: .55rem !important;
  background: transparent;
}

.sidebar .gallika-infos .accordion-button {
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem !important;
  border-radius: 999px !important;
  background: #f2f3f5 !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  font-size: .9rem !important;
  font-weight: 500 !important;
  color: #1f2937 !important;
  box-shadow: none !important;
}

.sidebar .gallika-infos .accordion-button:not(.collapsed) {
  background: #eceef1 !important;
  color: #1f2937 !important;
  box-shadow: none !important;
}

.sidebar .gallika-infos .accordion-button:focus {
  box-shadow: none !important;
}

.sidebar .gallika-infos .accordion-button::after {
  display: none !important;
}

.sidebar .gallika-infos .accordion-body {
  padding: .6rem .2rem .7rem .2rem !important;
}

.sidebar .gallika-infos .accordion-collapse {
  margin-bottom: .55rem !important;
}

.gallika-path {
  font-size: .9rem;
  color: #6b7280;
}

.gallika-path a {
  color: inherit;
  text-decoration: none;
}

.gallika-path a:hover {
  color: #1f2937;
}

.gallika-path li {
  margin: .15rem 0;
}


/* =========================================================
   4. À lire aussi, tags, notes
   ========================================================= */

.gallika-related {
  display: grid;
  gap: 1rem;
}

.gallika-related-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  border-radius: 12px;
  padding: .2rem 0;
}

.gallika-related-item:hover {
  background: transparent;
}

.gallika-related-fig {
  flex: 0 0 84px;
}

.gallika-related-fig .spip_logo {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
}

.gallika-related-content {
  min-width: 0;
  flex: 1 1 auto;
}

.gallika-related-title {
  display: block;
  font-weight: 500;
  line-height: 1.25;
  color: #1f2937;
}

.gallika-related-meta {
  display: block;
  font-size: .85rem;
  color: #8a94a6;
  margin-top: .2rem;
}

.gallika-ext {
  opacity: .35;
  margin-left: .15rem;
}

.gallika-related-item:hover .gallika-ext {
  opacity: .75;
}

.sidebar .tag-list li a::before {
  content: "" !important;
  display: none !important;
}

.gallika-count {
  margin-left: .35rem;
  font-size: .75em;
  opacity: .6;
}

.spip_note_ref {
  vertical-align: super;
  font-size: .75em;
  line-height: 0;
}

.spip_note_ref a {
  text-decoration: none;
}


/* =========================================================
   5. Bloc diaporamas / documents joints
   ========================================================= */

.bloc-docs {
  margin: 1.6rem 0 2rem;
}

.bloc-docs__intro {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .9rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #7a8696;
}

.bloc-docs__intro i {
  font-size: 1rem;
  color: #6f7f95;
  flex: 0 0 auto;
}

.bloc-docs__items {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* Neutralise le |center SPIP */
.bloc-docs .spip_documents_center,
.bloc-docs .spip_document_center {
  float: none !important;
  text-align: initial !important;
  margin: 0 !important;
}

.bloc-docs .spip_document,
.bloc-docs .spip_documents {
  margin: 0 !important;
}

.bloc-docs .spip_doc_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.bloc-docs .spip_doc_lien img {
  display: block;
  width: 44px;
  height: auto;
  margin-bottom: .2rem;
}

.bloc-docs .spip_doc_legende {
  margin: 0;
}

.bloc-docs .spip_doc_titre {
  margin-top: .1rem;
  width: 140px;
  max-width: 140px;
  text-align: center;
  font-size: .58rem;
  line-height: 1.3;
  color: #7a8696;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.bloc-docs .spip_doc_titre strong {
  font-weight: 500;
}

.bloc-docs .spip_doc_descriptif,
.bloc-docs .spip_doc_credits {
  font-size: .55rem;
  color: #8a95a3;
  text-align: center;
}

.bloc-docs .spip_doc_inner:hover {
  opacity: .9;
}

.documents_joints {
  margin-top: 1.8rem;
  padding-top: 0.8rem;
}

.documents_joints h2 {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8a95a3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.documents_joints ul.spip {
  list-style: none;
  padding: 0;
  margin: 0;
}

.documents_joints li {
  margin: 0.15rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.documents_joints a.spip_doc {
  text-decoration: none;
  color: #4a5c9c;
}

.documents_joints .titre {
  font-weight: 400;
}

.documents_joints .info_document {
  font-size: 0.78rem;
  color: #9aa6b2;
  margin-left: 0.25rem;
}

.documents_joints .ext {
  border: none;
  text-decoration: none;
}

.documents_joints .descriptif,
.documents_joints .credits {
  margin: 0.05rem 0 0 0;
  font-size: 0.78rem;
  color: #a3adba;
}


/* =========================================================
   6. Portfolio + lightbox
   ========================================================= */

#documents_portfolio ul {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#documents_portfolio li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#documents_portfolio a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f3f3;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#documents_portfolio img,
#documents_portfolio img.spip_logo {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  transition: transform 0.35s ease, filter 0.35s ease;
}

#documents_portfolio a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  pointer-events: none;
}

#documents_portfolio a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

#documents_portfolio a:hover img,
#documents_portfolio a:hover img.spip_logo {
  transform: scale(1.04);
  filter: brightness(0.92);
}

#documents_portfolio a:hover::after {
  background: rgba(0,0,0,0.08);
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.84);
}

.portfolio-lightbox.is-open {
  display: flex;
}

.portfolio-lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  background: #fff;
}

.portfolio-lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.portfolio-lightbox-close:hover {
  background: rgba(255,255,255,0.26);
}

body.portfolio-lightbox-open {
  overflow: hidden;
}


/* =========================================================
   7. Audio, images, ajustements divers
   ========================================================= */

.gk-audio-minimal {
  margin: .6rem 0 1.2rem 0;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  opacity: .8;
}

.gk-audio-minimal:hover {
  opacity: 1;
}

.gk-audio-minimal__btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  background: transparent;
  cursor: pointer;
  font-size: .75rem;
  color: #6b7785;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gk-audio-minimal__label {
  font-size: .85rem;
  color: #8a96a3;
}

.gk-audio-minimal__audio {
  display: none;
}

.spip_document.img-shadow img {
  width: auto;
  max-width: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  border-radius: 6px;
  display: block;
}

.img-shadow:hover {
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

.spip-puce::before {
  content: "\2013\00a0";
  font-weight: normal;
}


/* =========================================================
   8. Responsive
   ========================================================= */

@media screen and (min-width:61.25em) {
  body {
    font-size: 1em;
  }

  .gallika-stickybox {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 140px);
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    border-radius: 12px;
    padding: 14px 14px 12px 14px;
    z-index: 2;
  }
}

@media screen and (max-width:61.1875em) {
  .sidebar .gallika-infos {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .sidebar .gallika-infos .card-body {
    padding: 0 !important;
  }

  .sidebar .gallika-infos .accordion-button {
    font-size: 1rem !important;
    padding: .55rem .95rem !important;
  }

  .gallika-related {
    gap: 1.15rem;
  }

  .gallika-related-title {
    font-size: 1rem;
  }

  .gallika-related-meta {
    margin-top: .28rem;
  }
}

@media (max-width: 768px) {
  #documents_portfolio ul {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .bloc-docs__items {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .bloc-docs .spip_doc_titre {
    width: 160px;
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  #documents_portfolio ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .portfolio-lightbox {
    padding: 14px;
  }
}



/* =========================
   Sommaire — correction réelle
========================== */

.well.nav-sommaire {
  padding: 0 !important;
  margin: 1rem 0 2rem 1rem;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.well.nav-sommaire h2 {
  display: none;
}

.well.nav-sommaire ul.spip {
  list-style: none;
  margin: 0 !important;
  padding: 0 0 0 .75rem !important;
  border-left: 2px solid #e6e9ee;
}

.well.nav-sommaire ul.spip li {
  margin: .35rem 0;
  padding: 0 !important;
}

.well.nav-sommaire ul.spip li::marker,
.well.nav-sommaire ul.spip li::before {
  content: none !important;
}

.well.nav-sommaire a[id] {
  display: none !important;
}

.well.nav-sommaire a.spip_ancre {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
  text-decoration: none;
  line-height: 1.35;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.well.nav-sommaire a.spip_ancre:hover {
  text-decoration: underline;
  background: transparent !important;
}

.well.nav-sommaire a.spip_ancre {
  font-size: .9rem;
  line-height: 1.35;
}


/* =========================
   CONTENUS DÉPLOYÉS SIDEBAR
   ========================= */

.gk-side-content {
  font-size: .92rem;
  line-height: 1.55;
  color: #5f6b7a;

  margin-top: .6rem;
  margin-bottom: 1.2rem;

  padding-left: .6rem;
  border-left: 2px solid #e6e9ee;
}

/* Liens dans ces blocs */
.gk-side-content a {
  color: #4f6fae;
  text-decoration: none;
}

.gk-side-content a:hover {
  text-decoration: underline;
}

/* Fil d’Ariane un peu plus compact */
.gk-side-content.gk-ariane {
  font-size: .88rem;
  color: #6b7280;
}

/* APA : aspect plus “éditorial” */
.gk-side-content.gk-apa {
  font-size: .9rem;
  font-style: normal;
}

/* Crédits : légèrement plus discret */
.gk-side-content.gk-credits {
  font-size: .88rem;
  color: #6f7680;
}

/* Liste "Sur la même notion" */
.gallika-same-notion,
.gallika-same-notion li {
  font-size: .96rem;
  line-height: 1.55;
}

/* Microtexte sous la lettre */
.gallika-newsletter-note {
  font-size: .88rem;
  line-height: 1.5;
  color: #8a94a3;
}


/* =========================
   Sidebar — hiérarchie typographique
   ========================= */

.sidebar {
  font-size: 0.94rem;
}

/* Titres de sections de la sidebar */
.sidebar h2,
.sidebar h3,
.sidebar .widget-title {
  font-size: 1rem;
  line-height: 1.3;
  color: #2f3f55;
}

/* Titres d’articles / liens forts dans la sidebar */
.sidebar .gallika-related-title,
.sidebar .gallika-related-item,
.sidebar .gallika-related-item a,
.sidebar .menu-aside a,
.sidebar .widget a {
  font-size: 0.92rem;
  line-height: 1.4;
}

/* Couleur un peu moins appuyée pour les titres de contenus secondaires */
.sidebar .gallika-related-title,
.sidebar .gallika-related-item a {
  color: #3f4b60;
}

/* Métadonnées de la sidebar */
.sidebar .gallika-related-meta,
.sidebar .meta,
.sidebar small,
.sidebar .small {
  font-size: 0.84rem;
  color: #8a94a3;
}

/* Listes type "Sur la même notion" */
.sidebar ul li,
.sidebar ol li {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Pastilles dossiers : on ne touche presque pas */
.sidebar .gallika-count {
  font-size: 0.72em;
  opacity: 0.55;
}