pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em
}
code.hljs {
  padding: 3px 5px
}
/*

Style with support for rainbow parens

*/
.hljs {
  background: #474949;
  color: #d1d9e1
}
.hljs-comment,
.hljs-quote {
  color: #969896;
  font-style: italic
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-type,
.hljs-addition {
  color: #cc99cc
}
.hljs-number,
.hljs-selector-attr,
.hljs-selector-pseudo {
  color: #f99157
}
.hljs-string,
.hljs-doctag,
.hljs-regexp {
  color: #8abeb7
}
.hljs-title,
.hljs-name,
.hljs-section,
.hljs-built_in {
  color: #b5bd68
}
.hljs-variable,
.hljs-template-variable,
.hljs-selector-id,
.hljs-title.class_,
.hljs-class .hljs-title {
  color: #ffcc66
}
.hljs-section,
.hljs-name,
.hljs-strong {
  font-weight: bold
}
.hljs-symbol,
.hljs-bullet,
.hljs-subst,
.hljs-meta,
.hljs-link {
  color: #f99157
}
.hljs-deletion {
  color: #dc322f
}
.hljs-formula {
  background: #eee8d5
}
.hljs-attr,
.hljs-attribute {
  color: #81a2be
}
.hljs-emphasis {
  font-style: italic
}
@charset "UTF-8";
/* Affichage du corps d'un article de blog (blog/default/article.html.twig). */
:root {
  /* Bullet kept as an escape so the compiled output stays ASCII. */
  --k-bullet: '\2022';
}

.contenu h1.article_title {
  display: none !important;
}

.contenu h2 {
  color: var(--k-sage-deep);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 2.2rem;
}

.contenu h3 {
  color: var(--k-ink);
  margin-top: 25px;
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: bold;
}

.contenu p {
  margin-bottom: 20px;
}

.contenu a {
  color: var(--k-coral);
  font-weight: bold;
  text-decoration: none;
}

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

.contenu img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px var(--k-shadow);
  margin: 20px 0;
}

/* .contenu pre : anciens articles non retouches depuis le passage a Quill (task WYSIWYG),
   et tous les articles crees/edites depuis le passage a HugeRTE (voir assets/js/hugerte-editor.js)
   qui produit un <pre> natif.
   .contenu .ql-code-block-container : articles crees/edites entre-temps avec Quill, qui
   n'utilisait pas la balise <pre> mais son propre wrapper (conserve pour compatibilite). */
/* .contenu pre : anciens articles non retouches depuis le passage a Quill (task WYSIWYG),
   et tous les articles crees/edites depuis le passage a HugeRTE (voir assets/js/hugerte-editor.js)
   qui produit un <pre> natif.
   .contenu .ql-code-block-container : articles crees/edites entre-temps avec Quill, qui
   n'utilisait pas la balise <pre> mais son propre wrapper (conserve pour compatibilite).

   IMPORTANT: overflow-x: auto peut clip le bouton absolument positionné, donc on utilise
   clip-path: unset ou une autre technique pour s'assurer que le bouton reste visible. */
.contenu pre,
.contenu .ql-code-block-container {
  background: var(--k-dark-bg);
  color: #d1d9e1;
  padding: 20px;
  border-radius: 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  border: none;
  margin-bottom: 20px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 1.3rem;
  line-height: 1.5;
  overflow-x: auto;
  overflow-y: visible;
  tab-size: 4;
  /* Ensure the copy button is visible above the code */
  display: block;
}

/* Neutralise le fond/padding applique par le theme highlight.js (.hljs) a CHAQUE
   ligne de code stockee par Quill dans son propre <div class="ql-code-block hljs"> :
   on veut UN seul bloc uni, pas une barre coloree par ligne. white-space preserve
   l'indentation (Quill met les espaces de tete dans les <span> et le white-space
   normal les ecrase, d'ou le code "a plat"). */
.contenu .ql-code-block {
  background: transparent;
  padding: 0;
  margin: 0;
  white-space: pre-wrap;
}

/* Position relative pour ancrer le bouton "Copier" ajoute par article-page.js. */
.contenu pre,
.contenu .ql-code-block-container {
  position: relative;
  overflow: visible !important;
}

/* Copy button functionality disabled */
/* Meme neutralisation pour les vieux articles qui utilisent <pre><code class="hljs">. */
.contenu pre code.hljs {
  background: transparent;
  padding: 0;
}

.contenu code {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 1.3rem;
  line-height: 1.5;
}

/* Code inside headings must match the heading size, not the body code size. */
.contenu h1 code,
.contenu h2 code,
.contenu h3 code,
.contenu h4 code,
.contenu h5 code,
.contenu h6 code {
  font-size: inherit;
  line-height: inherit;
}

/* Listes generees par Quill : la semantique bullet/ordered est portee par l'attribut
   data-list (Quill utilise toujours <ol> comme conteneur), pas par la balise ul/ol. */
.contenu ol {
  counter-reset: list-0;
}

.contenu li[data-list] {
  list-style-type: none;
  padding-left: 1.5em;
  position: relative;
}

.contenu li[data-list=bullet]::before {
  content: var(--k-bullet);
  display: inline-block;
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
  width: 1.2em;
}

.contenu li[data-list=ordered] {
  counter-increment: list-0;
}

.contenu li[data-list=ordered]::before {
  content: counter(list-0, decimal) ". ";
  display: inline-block;
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
  width: 1.2em;
}

/* Sur mobile, le retrait de liste (1.5em du corps agrandi) prend trop de place :
   on le reduit et on cale la puce/le numero en proportion. */
@media only screen and (max-width: 767px) {
  .contenu ol {
    /* Le <ol> Quill garde son padding-left par defaut (40px navigateur),
       qui domine le retrait : on l'annule pour ne garder que celui du li. */
    padding-left: 0;
  }
  .contenu li[data-list] {
    padding-left: 1em;
  }
  .contenu li[data-list=bullet]::before,
  .contenu li[data-list=ordered]::before {
    margin-left: -1em;
    width: 1em;
  }
}
@charset "UTF-8";
/* blog.scss - pages de liste d'articles (blog/default/blog.html.twig, touslesarticles.html.twig) */
.blog-hero-title {
  color: var(--k-cream);
  font-size: 4.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.blog-hero-lead {
  max-width: 800px;
  margin: 0 auto;
  color: var(--k-cream-soft);
  font-size: 1.6rem;
  line-height: 1.5;
}

.blog-article-list {
  border: none;
}

.blog-article-item {
  margin-bottom: 80px;
  padding-bottom: 60px;
  border-bottom: 2px dashed var(--k-shadow);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-article-header {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.blog-article-date {
  flex: 0 0 150px;
  height: 150px;
  background-color: var(--k-ink);
  color: var(--k-paper);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px var(--k-shadow-strong);
  border: 4px solid var(--k-gold);
  text-align: center;
  transform: rotate(-4deg);
  transition: transform 0.3s;
}
.blog-article-date:hover {
  transform: rotate(0deg) scale(1.05);
}

.blog-article-day {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
}

.blog-article-month {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--k-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.blog-article-year {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--k-cream-soft);
  line-height: 1;
  margin-top: 4px;
}

.blog-article-title {
  margin: 0;
  font-size: 5.2rem;
  line-height: 1.15;
  font-weight: 800;
}
.blog-article-title a {
  color: var(--k-ink);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-article-title a:hover {
  color: var(--k-coral);
}

.blog-article-body {
  width: 100%;
}

.blog-article-media {
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 24px var(--k-shadow);
}
.blog-article-media a {
  display: block;
}

.blog-article-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-article-image:hover {
  transform: scale(1.03);
}

.blog-article-excerpt {
  color: var(--k-ink-soft);
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.blog-article-footer {
  margin: 0;
}

.blog-article-cta {
  background: var(--k-gold);
  border: none;
  color: var(--k-dark-bg);
  font-weight: 800;
  padding: 12px 30px;
  font-size: 1.15rem;
  text-transform: uppercase;
  border-radius: 4px;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-article-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--k-shadow);
}

.blog-empty {
  font-size: 3rem;
  text-align: center;
}

.blog-pagination-wrapper {
  margin-bottom: 80px;
}
.blog-pagination-wrapper ul.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}
.blog-pagination-wrapper ul.pagination > li {
  display: inline-flex;
}
.blog-pagination-wrapper ul.pagination > li > a,
.blog-pagination-wrapper ul.pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(46, 42, 37, 0.15);
  border-radius: 10px;
  background: transparent;
  color: var(--k-ink);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.blog-pagination-wrapper ul.pagination > li > a:hover {
  background: var(--k-paper);
  border-color: var(--k-coral);
  color: var(--k-coral);
  transform: translateY(-1px);
}
.blog-pagination-wrapper ul.pagination > li.active > a,
.blog-pagination-wrapper ul.pagination > li.active > span {
  background: var(--k-coral);
  border-color: var(--k-coral);
  color: var(--k-paper);
  cursor: default;
}
@media only screen and (max-width: 767px) {
  .blog-pagination-wrapper ul.pagination > li:first-child:has(a[title="Première page"]),
  .blog-pagination-wrapper ul.pagination > li:last-child:has(a[title="Dernière page"]) {
    display: none;
  }
}

.blog-rss-link {
  display: inline-block;
  margin-right: 15px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.blog-rss-link:hover {
  opacity: 1;
}

.blog-archives-link {
  color: var(--k-sage-deep);
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
}

/* ---------- Mobile: stack the date stamp and the title, shrink the stamp ---------- */
@media only screen and (max-width: 767px) {
  .blog-article-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    gap: 20px;
  }
  .blog-article-header {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .blog-article-date {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
  }
  .blog-article-day {
    font-size: 2.2rem;
  }
  .blog-article-month {
    font-size: 1.15rem;
  }
  .blog-article-year {
    font-size: 1rem;
  }
  .blog-article-title {
    font-size: 3.6rem;
    text-align: center;
  }
}
