/* Style des blocs citation dans les articles */
body.single-post blockquote.wp-block-quote {
    font-size: 0.9em;
    color: #F2F2F2;
    font-style: italic;
    border-left: 4px solid #B5D140;
    background-color: #504845;
    padding: 1em;
    margin: 1.5em 0;
    border-radius: 4px;
}

/* Marges standards titres dans le contenu */
h1, .wp-block-heading h1 {
    margin-top: 3rem;
    margin-bottom: 2rem;
}
h2, .wp-block-heading h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.75rem;
}
h3, .wp-block-heading h3 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}
h4, h5, h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* === STYLES DE LA PAGE DE RECHERCHE === */

/* ✅ Titre principal */
body.search h1.search-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 40px;
}

/* ✅ Mot-clé surligné dans le titre ou l'extrait */
body.search .mot-cle {
    color: #B5D140;
    font-weight: bold;
}

/* ✅ Conteneur de chaque résultat */
body.search li.resultat-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* ✅ Titre du lien de résultat */
body.search h2.resultat-titre a {
    color: #F8C315;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 4px;
}

body.search h2.resultat-titre a:hover {
    text-decoration: underline;
}

/* ✅ Extrait limité à 2 lignes */
body.search p.resultat-extrait {
    font-size: 0.92rem;
}

body.search p.search-tip {
  color: #bbb;
  font-size: 0.78rem;
  margin-top: -6px;     /* rapproché du titre */
  margin-bottom: 32px;  /* plus d’espace avant la liste */
  font-style: italic;
  line-height: 1.3;
}



/* Icône active = orange */
.souscat-active svg {
  color: #FD4F01 !important;
  transition: color 0.3s ease;
}

/* Icône active = orange */
.souscat-active svg {
  color: #FD4F01 !important;
  transition: color 0.3s ease;
}

/* Structure de la liste des articles */
.liste-articles-souscat {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 4rem;
}

.bloc-article {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

/* Affichage des miniatures */
.vignette {
  width: 95px;  /* largeur réduite (anciennement ~186px) */
  height: 71.25px;  /* 4:3 */
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
}

.vignette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Réduction de l'espace entre les blocs */
.liste-articles-souscat {
  gap: 2.2rem;
}

/* Extrait */
.extrait {
  font-size: 1rem;
  color: #ddd;
  line-height: 1.2;
  margin: 0;
  margin-top: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em;
}

/* Date intégrée à l’extrait */
.extrait .date-fin {
  font-style: italic;
  color: #F2F2F2;
  font-size: 0.92rem;
  margin-left: 0.5em;
  white-space: nowrap;
}

/* Ancienne date masquée */
.date-article {
  display: none;
}

.titre-article {
  color: #F8C315;
  text-decoration: none;
  line-height: 1.0;
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.bloc-article .contenu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4px; /* essaie 4 à 8px selon le rendu */
  gap: 0.2rem;
}

.conteneur-centre {
  max-width: 1290px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}



