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: 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;
}

/* 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;
}
/* 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: 4rem;
  line-height: 1.2;
  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.1em;
  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-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;
}
