/*
 * Feuille de style dédiée à la page article (single post)
 * Ne s'applique qu'à la page single grâce à l'enqueue conditionnel
 * Toutes les classes sont préfixées single-article-
 */

.single-article {
  background: #232323;
  color: #e0e0e0;
  width: 100%;
  margin: 0 0 2rem 0;
  padding: 2rem;
  padding-top: 6rem;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: -2rem;
}

.single-article-thumbnail {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
}
.single-article-thumbnail img {
  width: 100%;
  height: auto;
}

.single-article-header-wrapper {
  background: #f6f6f6;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  margin-bottom: 2.5rem;
  gap: 2.5rem;
}
.single-article-header-content {
  flex: 1 1 0;
  min-width: 0;
}
.single-article-title {
  font-size: 2.7rem;
  font-weight: 600;
  color: #232323;
  margin: 0 0 1.2rem 0;
  line-height: 1.15;
}
.single-article-meta {
  font-size: 1.05rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.single-article-header-image {
  flex: 0 0 340px;
  max-width: 340px;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.single-article-header-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
  background: #fff;
}

.single-article-content {
  flex: 1 1 0;
  min-width: 0;
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 0;
  padding: 0 1rem;
}

.single-article-content figure {
  margin: 2rem 0;
  width: 100%;
  position: relative;
}

.single-article-content figure img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
}

/* Styles TV pour les images dans le contenu */
.single-article-content figure {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(circle at center, #444 0%, #111 100%);
  box-shadow: 
    0 0 10px rgba(0, 0, 0, 0.8),
    inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.single-article-content figure img {
  position: relative;
  opacity: 0.95;
  mix-blend-mode: screen;
}

.single-article-content figure::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 0.1) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.single-article-content figure::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  animation: glow 4s infinite alternate;
}

.single-article-content figure .scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 2;
  animation: scroll 5s linear infinite;
}

.single-article-content figure.alignleft {
  float: left;
  width: auto;
  max-width: 50%;
  margin: 0 2rem 1.5rem 0;
}

.single-article-content figure.alignright {
  float: right;
  width: auto;
  max-width: 50%;
  margin: 0 0 1.5rem 2rem;
}

.single-article-content figure.aligncenter {
  margin: 2rem auto;
  width: auto;
  max-width: 100%;
}

.single-article-content figure.alignleft img,
.single-article-content figure.alignright img {
  width: 100%;
  height: auto;
}

.single-article-content figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #888;
  text-align: center;
}

.single-article-content h2,
.single-article-content h3,
.single-article-content h4 {
  color: #ffffff;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}
.single-article-content a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  position: relative;
  border-bottom: 1px solid rgba(224, 224, 224, 0.2);
}

.single-article-content a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -1px;
  left: 0;
  right: 0;
  background-color: #e0e0e0;
  transition: width 0.3s ease;
}

.single-article-content a:hover {
  color: #e0e0e0;
}

.single-article-content a:hover::after {
  width: 100%;
}

/* Style alternatif pour les liens sans soulignement */
.no-underline-effect .single-article-content a {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 4px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  border: 1px solid #333;
  margin: 0 0.2em;
  border-bottom: none;
}

.no-underline-effect .single-article-content a:hover {
  background: #333;
  color: #fff;
  border-color: #444;
}

.no-underline-effect .single-article-content a::after {
  display: none;
}

.single-article-footer {
  margin: 0;
  padding: 0;
  width: 100%;
  border-top: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.93rem;
  color: #a0a0a0;
  opacity: 0.85;
}

.single-article-categories i,
.single-article-tags i {
  color: #ffffff;
  margin-right: 0.3em;
}

.single-article-categories a,
.single-article-tags a {
  color: #e0e0e0;
  background: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 16px;
  padding: 4px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  margin-right: 0.5em;
  transition: all 0.2s ease;
  border: 1px solid #333;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.single-article-categories a:hover,
.single-article-tags a:hover {
  background: #333;
  color: #fff;
  border-color: #444;
}

.single-article-hero {
  width: 100%;
  margin: 4.5rem 0 -4rem 0;
  background: #111;
  border-radius: 28px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding: 2.5rem 2rem 2.5rem 2rem;
  position: relative;
  min-height: 520px;
  z-index: 2;
}

.single-article-hero-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.single-article-title {
  font-size: 3.2rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.08;
  text-align: left;
}

.single-article-breadcrumb {
  font-size: 1.08rem;
  color: #fff;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.single-article-breadcrumb a {
  color: #fff;
  text-decoration: none;
  background: none;
  border-radius: 8px;
  padding: 0.12em 0.32em;
  transition: opacity 0.18s;
  opacity: 0.92;
  font-weight: 500;
  font-size: 0.97em;
  display: inline-block;
}
.single-article-breadcrumb a:hover {
  opacity: 1;
}
.single-article-breadcrumb li {
  display: flex;
  align-items: center;
}
.single-article-breadcrumb li:not(:last-child) {
  margin-right: 0.12em;
}
.single-article-breadcrumb li[style*="color: #fff;"] {
  margin: 0 0.12em !important;
}

.single-article-meta {
  font-size: 1.15rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 3rem;
  text-align: left;
}

.single-article-hero-image {
  position: relative;
  max-width: 1000px;
  min-width: 260px;
  flex: 0 0 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
}

.single-article-hero-image.tv-effects {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(circle at center, #444 0%, #111 100%);
  box-shadow: 
    0 0 10px rgba(0, 0, 0, 0.8),
    inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.single-article-hero-image.tv-effects img {
  position: relative;
  opacity: 0.95;
  mix-blend-mode: screen;
  border-radius: 0;
}

.single-article-hero-image.tv-effects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 0.1) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.single-article-hero-image.tv-effects .scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 2;
  animation: scroll 5s linear infinite;
}

.single-article-hero-image.tv-effects::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  animation: glow 4s infinite alternate;
}

@keyframes scroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

@keyframes glow {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

.single-article-hero-image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: 18px;
  background: none;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.18);
  object-fit: cover;
}

/* === Badges de vues et commentaires === */
.single-article-image-badges {
  position: absolute;
  right: 18px;
  left: auto;
  bottom: 18px;
  display: flex;
  gap: 0.7rem;
  background: rgba(10,10,10,0.85);
  border-radius: 16px;
  padding: 0.35em 1.1em;
  align-items: center;
  z-index: 5;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 90vw;
  min-width: unset;
}

.single-article-image-badges .meta-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.single-article-image-badges span {
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.95rem;
}

.single-article-image-badges i {
  color: #fff;
  font-size: 0.95em;
  opacity: 0.9;
}

/* === Réorganisation des éléments en version mobile === */
@media (max-width: 900px) {
  .single-article {
    flex-direction: column;
    gap: 1.5rem;
    display: block;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    left: 50%;
    right: 50%;
    position: relative;
    border-radius: 24px 24px 0 0;
    padding: 1rem 1.5rem 2rem 1.5rem;
    margin-top: -2rem;
    z-index: 3;
    overflow: hidden;
  }

  /* Adaptation des commentaires pour mobile */
  .single-article-comments {
    margin: 2rem 0;
    width: 100%;
    order: 2;
  }

  .single-article-comments .comment > .comment-body {
    padding: 1.2rem 1rem;
  }

  .single-article-comments .comment .avatar {
    width: 45px;
    height: 45px;
  }

  .single-article-comments .children {
    margin-left: 1rem;
  }

  .single-article-comments .comment-form {
    padding: 1.5rem 1.2rem;
  }

  .single-article-comments .comment-form-heading {
    font-size: 1.3rem;
  }

  /* Navigation des posts */
  .posts-navigation {
    margin-bottom: 0;
    order: 1;
  }

  /* Ordre des éléments sur mobile */
  body.single {
    display: flex;
    flex-direction: column;
  }

  body.single main {
    order: 1;
  }

  body.single .single-article-comments {
    order: 2;
  }

  /* Masquer la sidebar desktop sur mobile */
  body.single .widget-area,
  body.single #secondary {
    display: none !important;
  }

  .single-article-content {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 1rem;
  }

  .single-article-content figure {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5rem 0 !important;
    float: none !important;
  }

  .single-article-content figure.alignleft,
  .single-article-content figure.alignright,
  .single-article-content figure.aligncenter {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5rem 0 !important;
    float: none !important;
  }

  .single-article-content figure img {
    width: 100% !important;
    height: auto !important;
  }

  .single-article-hero {
    flex-direction: column;
    padding: 0.5rem 0.7rem 6rem 0.7rem; /* Juste un peu de padding en haut */
    gap: 1.2rem;
    align-items: stretch;
    min-height: 260px;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: 0;
    margin-top: 0 !important;
    z-index: 1;
    position: relative;
    top: 0; /* Assurez-vous qu'il est collé en haut */
  }

  .single-article-hero-content {
    gap: 1.2rem;
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 120px !important; /* Encore plus d'espace pour les visiteurs normaux */
  }

  .single-article-title {
    font-size: 2.1rem;
  }

  .single-article-content h1 {
    font-size: 1.8rem;
  }
  
  .single-article-content h2 {
    font-size: 1.5rem;
  }
  
  .single-article-content h3 {
    font-size: 1.3rem;
  }

  .single-article-meta {
    margin-top: 0.3rem;
    gap: 0.7rem;
  }

  /* Conteneur de l'image */
  .single-article-hero-image {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0;
    margin: 0 auto 1rem auto;
    display: block;
    height: auto;
    position: relative;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
  }

  /* Image standard */
  .single-article-hero-image img {
    max-height: 320px;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
  }

  /* Style spécifique pour les effets TV sur mobile */
  .single-article-hero-image.tv-effects {
    background: radial-gradient(circle at center, #444 0%, #111 100%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border-radius: 12px;
  }
  
  .single-article-hero-image.tv-effects img {
    position: relative;
    opacity: 0.95;
    mix-blend-mode: screen;
    border-radius: 0;
    max-height: 320px;
  }
  
  .single-article-hero-image.tv-effects .scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.04) 2px,
      transparent 2px,
      transparent 4px
    );
    animation: scroll 5s linear infinite;
  }

  /* Badges repositionnés en bas à gauche */
  .single-article-image-badges {
    left: 10px;
    right: auto;
    bottom: 10px;
    max-width: 90vw;
  }

  .single-article-image-badges span {
    font-size: 0.9rem;
    gap: 0.3em;
  }

  .single-article-image-badges i {
    font-size: 0.9em;
  }
}

/* Fix spécifique pour les utilisateurs connectés */
@media (max-width: 900px) {
  body.admin-bar .single-article-hero {
    margin-top: 0 !important;
  }
}

/* Fix pour le conteneur principal sur mobile - colle en haut */
@media (max-width: 900px) {
  body.single .container:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  body.single #page {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  body.single #primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 480px) {
  .single-article-hero-image {
    max-width: calc(100% - 20px);
    margin: 0 auto 1rem auto;
  }

  .single-article-hero-image.tv-effects,
  .single-article-hero-image img {
    border-radius: 8px;
  }

  .single-article-image-badges {
    left: 8px;
    right: auto;
    bottom: 8px;
    max-width: 95vw;
  }

  .single-article-image-badges span {
    font-size: 0.85rem;
  }

  .single-article-image-badges i {
    font-size: 0.85em;
  }

  .single-article-hero-content {
    padding-top: 110px !important; /* Encore plus d'espace */
  }
  
  body.admin-bar .single-article-hero-content {
    padding-top: 58px !important; /* Encore moins d'espace */
  }
}

/* Style pour la navigation des posts */
.posts-navigation {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.posts-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.posts-navigation .nav-previous,
.posts-navigation .nav-next {
  flex: 1;
}

.posts-navigation .nav-previous a,
.posts-navigation .nav-next a {
  display: block;
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.posts-navigation .nav-previous a:hover,
.posts-navigation .nav-next a:hover {
  background: #333333;
}

.posts-navigation .nav-subtitle {
  display: block;
  font-size: 0.9rem;
  color: #999999;
  margin-bottom: 0.3rem;
}

.posts-navigation .nav-title {
  font-weight: 600;
}

.posts-navigation .nav-previous {
  text-align: left;
}

.posts-navigation .nav-next {
  text-align: right;
}

@media (max-width: 600px) {
  .posts-navigation .nav-links {
    flex-direction: column;
  }

  .posts-navigation .nav-previous,
  .posts-navigation .nav-next {
    margin-bottom: 0.8rem;
  }

  .posts-navigation .nav-previous a,
  .posts-navigation .nav-next a {
    padding: 0.8rem;
    text-align: center;
  }
}

/* Ajustements supplémentaires pour le formulaire de commentaire sur mobile */
@media (max-width: 500px) {
  .single-article-comments .comment-form {
    padding: 1.2rem 1rem;
  }

  .single-article-comments .comment-form input[type="text"],
  .single-article-comments .comment-form input[type="email"],
  .single-article-comments .comment-form input[type="url"],
  .single-article-comments .comment-form textarea {
    padding: 0.7em 0.8em;
    font-size: 0.95rem;
  }

  .single-article-comments .comment-form .form-submit input[type="submit"],
  .single-article-comments .comment-form .form-submit button {
    width: 100%;
    padding: 0.7em 1em;
  }
}

/* Garantir l'ordre correct des éléments avec Flexbox */
@media (max-width: 900px) {
  .single-article-wrapper {
    display: flex;
    flex-direction: column;
  }
  
  .single-article-wrapper .single-article-hero {
    order: 1;
  }
  
  .single-article-wrapper .single-article {
    order: 2;
  }
  
  .single-article-wrapper .posts-navigation {
    order: 3;
  }
  
  .single-article-wrapper .single-article-comments {
    order: 4;
  }
  
  /* Assure que la sidebar intégrée dans l'article est cachée */
  .single-article .sidebar-container {
    display: none !important;
  }
}

/* Espacement spécifique pour les commentaires sur mobile */
@media (max-width: 900px) {
  .single-article-comments {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .single-article-comments .comments-title {
    margin-bottom: 1.5rem;
  }
  
  .single-article-comments .comment-list {
    margin-bottom: 1.5rem;
  }
  
  /* Améliore l'apparence des champs de formulaire sur mobile */
  .single-article-comments .comment-form-author,
  .single-article-comments .comment-form-email,
  .single-article-comments .comment-form-url {
    margin-bottom: 1rem;
  }
  
  .single-article-comments .comment-form textarea {
    min-height: 100px;
  }
}

.single-article.sidebar-left .row {
  flex-direction: row-reverse;
}

.single-article.sidebar-right .row {
  flex-direction: row;
}

.single-article.sidebar-bottom .row {
  flex-direction: column;
}

/* === Bloc principal commentaires === */
.single-article-comments {
  margin: 0;
  padding: 0;
  background: none;
}

.single-article-comments .comments-area {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  color: #e0e0e0;
  position: relative;
  border-top: none;
}



.single-article-comments .comments-area::before {
  display: none;
}

.single-article-comments .comments-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2.5rem;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
}

.single-article-comments .comments-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: #444444;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.single-article-comments .comment-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 2.5rem 0;
  gap: 1.5rem;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  border-left: 3px solid #333333;
}

.single-article-comments .comment-navigation .nav-previous a,
.single-article-comments .comment-navigation .nav-next a {
  background: #2a2a2a;
  color: #e0e0e0;
  border-radius: 8px;
  padding: 0.6em 1.2em;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  display: inline-block;
  border: none;
}

.single-article-comments .comment-navigation .nav-previous a:hover,
.single-article-comments .comment-navigation .nav-next a:hover {
  background: #3a3a3a;
}

.single-article-comments .comment-content {
  margin: 0.8rem 0;
  line-height: 1.6;
  font-size: 1rem;
  color: #d0d0d0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.single-article-comments .comment-content p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.single-article-comments .comment-content a {
  color: #e0e0e0;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.single-article-comments .comment-content a:hover {
  opacity: 0.8;
}

.single-article-comments .comment-content blockquote {
  border-left: 3px solid #444444;
  background: #1a1a1a;
  color: #d0d0d0;
  margin: 1.2em 0;
  padding: 0.8em 1.2em;
  border-radius: 6px;
  font-style: italic;
}

.single-article-comments .comment-awaiting-moderation {
  color: #ffb347;
  font-size: 0.9rem;
  font-style: italic;
  margin: 0.5rem 0;
  background: rgba(255, 179, 71, 0.1);
  border-radius: 6px;
  padding: 0.4em 0.8em;
  display: inline-block;
}

.single-article-comments .no-comments {
  color: #d0d0d0;
  font-size: 1.1rem;
  text-align: center;
  margin: 2rem 0;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid #333333;
}

@media (max-width: 1200px) {
  .single-article-comments .comments-area {
    padding: 2rem 1.5rem;
  }
  
  .single-article-comments .comments-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .single-article-comments .comments-area {
    padding: 1.5rem 1.2rem;
  }
  
  .single-article-comments .comments-title {
    font-size: 1.4rem;
  }
}

/* === Styles pour la liste de commentaires === */
.single-article-comments .comment-list {
  list-style: none;
  margin: 0 0 2.5rem 0;
  padding: 0;
  position: relative;
}

.single-article-comments .comment {
  display: block;
  background: transparent;
  border-radius: 12px;
  margin-bottom: 0.3rem;
  padding: 0;
  position: relative;
}

.single-article-comments .comment:hover {
  border-left-color: transparent;
}

.single-article-comments .comment > .comment-body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
}

.single-article-comments .comment .comment-author.vcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.single-article-comments .comment .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #333333;
  margin-bottom: 0.5rem;
  background: #232323;
}

.single-article-comments .comment .fn {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding-right: 0.5rem;
}

.single-article-comments .comment-meta {
  font-size: 0.9rem;
  color: #999999;
  margin-bottom: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.single-article-comments .comment-date {
  color: #999999;
  font-size: 0.9rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.single-article-comments .comment-date::before {
  content: '🕒';
  font-size: 0.9em;
}

.single-article-comments .reply {
  margin-top: 1rem;
  text-align: right;
}

.single-article-comments .reply a {
  background: #ffffff;
  color: #232323;
  border-radius: 6px;
  padding: 0.4em 1em;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s;
  border: none;
}

.single-article-comments .reply a:hover {
  background: #f0f0f0;
}

/* Sous-niveaux : indentation et style */
.single-article-comments .children {
  margin: 0.3rem 0 0 2.5rem;
  padding: 0;
  position: relative;
}

.single-article-comments .children::before {
  content: '';
  position: absolute;
  left: -20px;
  top: -20px;
  height: 100%;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.single-article-comments .children > .comment {
  background: transparent;
  margin-bottom: 0.3rem;
  position: relative;
}

/* Suppression de la ligne horizontale */
.single-article-comments .children > .comment::before {
  display: none;
}

/* Ajustement pour mobile */
@media (max-width: 900px) {
  .single-article-comments .children {
    margin: 0.2rem 0 0 1.5rem;
  }
  
  .single-article-comments .children::before {
    left: -12px;
    top: -15px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
  }
}

/* === Formulaire de commentaire === */
.single-article-comments .comment-form {
  margin-top: 2.5rem;
  background: transparent;
  border-radius: 12px;
  padding: 2rem;
  color: #e0e0e0;
}

.single-article-comments .comment-form-heading {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.8rem;
  text-align: center;
  position: relative;
}

.single-article-comments .comment-form-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #444444;
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.single-article-comments .comment-form label {
  color: #cccccc;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5em;
  display: block;
}

.single-article-comments .comment-form input[type="text"],
.single-article-comments .comment-form input[type="email"],
.single-article-comments .comment-form input[type="url"],
.single-article-comments .comment-form textarea {
  width: 100%;
  background: #232323;
  color: #e0e0e0;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 0.8em 1em;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  transition: border-color 0.2s;
}

.single-article-comments .comment-form input[type="text"]:focus,
.single-article-comments .comment-form input[type="email"]:focus,
.single-article-comments .comment-form input[type="url"]:focus,
.single-article-comments .comment-form textarea:focus {
  border-color: #555555;
  outline: none;
}

.single-article-comments .comment-form textarea {
  min-height: 120px;
  max-height: 300px;
}

.single-article-comments .comment-form .form-submit {
  margin-top: 1.5rem;
  text-align: center;
}

.single-article-comments .comment-form .form-submit input[type="submit"],
.single-article-comments .comment-form .form-submit button {
  background: #ffffff;
  color: #232323;
  border: none;
  border-radius: 8px;
  padding: 0.8em 2em;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.single-article-comments .comment-form .form-submit input[type="submit"]:hover,
.single-article-comments .comment-form .form-submit button:hover {
  background: #f0f0f0;
}

.single-article-comments .comment-form .logged-in-as,
.single-article-comments .comment-form .must-log-in,
.single-article-comments .comment-form .comment-notes,
.single-article-comments .comment-form .form-allowed-tags {
  color: #999999;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  display: block;
  text-align: center;
}

.single-article-comments .comment-form .logged-in-as a,
.single-article-comments .comment-form .must-log-in a {
  color: #cccccc;
  text-decoration: underline;
}

.single-article-comments .comment-form .form-allowed-tags code {
  background: #232323;
  color: #cccccc;
  border-radius: 4px;
  padding: 0.2em 0.4em;
  font-size: 0.9em;
}

.single-article-comments .comment-form .form-submit input[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background: #888888;
}

/* Messages d'erreur ou d'info */
.single-article-comments .comment-form .error {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border-left: 3px solid #ff6b6b;
  padding: 0.5em 1em;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Focus */
.single-article-comments a:focus,
.single-article-comments button:focus,
.single-article-comments input:focus,
.single-article-comments textarea:focus {
  outline: 2px solid #444444;
  outline-offset: 2px;
}

.single-article-comments .author-badge {
  display: inline-flex;
  align-items: center;
  background: #333333;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.single-article-comments .author-badge::before {
  content: '✎';
  margin-right: 0.3em;
  font-size: 0.9em;
}

.single-article-comments .comment-content-wrapper {
  flex: 1;
  min-width: 0;
}

/* Styles pour les commentaires sur mobile */
@media (max-width: 900px) {
  /* Section commentaires full width */
  .single-article-comments {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    box-sizing: border-box;
  }
  
  .single-article-comments .comments-area {
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 1.5rem 15px !important;
    border-radius: 0 !important;
  }
  
  /* Titre plus visible sur mobile */
  .single-article-comments .comments-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .single-article-comments .comments-title::after {
    width: 50px;
    margin-top: 0.8rem;
  }

  /* Ajustements spécifiques pour le bouton répondre */
  .single-article-comments .reply {
    text-align: left;
  }
  
  .single-article-comments .reply a {
    background: transparent;
    color: #999999;
    font-size: 0.85rem;
    border: 1px solid #444444;
    padding: 0.3em 0.8em;
    transition: background 0.2s, color 0.2s;
  }
  
  .single-article-comments .reply a:hover {
    background: #333333;
    color: #ffffff;
  }
  
  /* Amélioration des fils de commentaires sur mobile */
  .single-article-comments .children {
    margin-left: 1.5rem;
  }
  
  .single-article-comments .children::before {
    left: -12px;
    top: -15px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
  }
  
  .single-article-comments .children > .comment::before {
    left: -12px;
    width: 10px;
  }
  
  /* Optimisation mobile pour les commentaires */
  .single-article-comments .comment > .comment-body {
    display: block;
    padding: 1rem;
  }
  
  .single-article-comments .comment .comment-author.vcard {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .single-article-comments .comment .avatar {
    width: 40px;
    height: 40px;
    margin-right: 0.8rem;
    margin-bottom: 0;
  }
  
  .single-article-comments .comment .fn {
    font-size: 0.95rem;
    margin: 0;
  }
  
  .single-article-comments .comment-meta {
    display: block;
    margin-bottom: 0.8rem;
  }
  
  .single-article-comments .comment-date {
    font-size: 0.85rem;
  }
  
  .single-article-comments .comment-content {
    font-size: 0.95rem;
    margin: 0.8rem 0;
    line-height: 1.5;
  }
  
  /* Formulaire de commentaire */
  .single-article-comments .comment-form {
    padding: 1.2rem;
    margin-top: 2rem;
  }
  
  .single-article-comments .comment-form-heading {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
  
  .single-article-comments .comment-form-heading::after {
    width: 40px;
    margin-top: 0.6rem;
  }
  
  .single-article-comments .comment-form label {
    font-size: 0.9rem;
  }
  
  .single-article-comments .comment-form input[type="text"],
  .single-article-comments .comment-form input[type="email"],
  .single-article-comments .comment-form input[type="url"],
  .single-article-comments .comment-form textarea {
    padding: 0.6em 0.8em;
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .single-article-comments .comment-form textarea {
    min-height: 100px;
  }
  
  .single-article-comments .comment-form .form-submit input[type="submit"] {
    width: 100%;
    padding: 0.7em 1em;
  }
}

.single-article-meta-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #aaa;
}

.single-article-meta-row i {
  margin-right: 0.5rem;
  color: #888;
}

.single-article-meta-row span,
.single-article-meta-row i {
  margin: 0;
  padding: 0;
  font-weight: normal;
  text-transform: none;
}

/* Nouvelles styles pour les métadonnées en bas d'article */
.article-metadata {
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(30, 30, 30, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.metadata-item {
  display: flex;
  align-items: flex-start;
  transition: transform 0.2s ease;
}

.metadata-item:hover {
  transform: translateY(-2px);
}

.metadata-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.metadata-icon i {
  color: #e0e0e0;
  font-size: 1rem;
}

.metadata-content {
  flex: 1;
}

.metadata-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #999;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metadata-value {
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.5;
}

.metadata-value a {
  color: #e0e0e0;
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 224, 224, 0.2);
  transition: all 0.2s;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  margin: 0 0.2rem 0.2rem 0;
  display: inline-block;
}

.metadata-value a:hover {
  background: rgba(50, 50, 50, 0.5);
  border-bottom-color: rgba(224, 224, 224, 0.4);
}

/* Styles spécifiques pour chaque type de metadata */
.metadata-item.categories-item .metadata-icon {
  background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
}

.metadata-item.tags-item .metadata-icon {
  background: linear-gradient(135deg, #363636, #262626);
}

.metadata-item.date-item .metadata-icon {
  background: linear-gradient(135deg, #333333, #232323);
}

.metadata-item.author-item .metadata-icon {
  background: linear-gradient(135deg, #303030, #202020);
}

/* Responsive pour les métadonnées */
@media (max-width: 768px) {
  .article-metadata {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.2rem;
  }
  
  .metadata-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  
  .metadata-label {
    font-size: 0.8rem;
  }
  
  .metadata-value {
    font-size: 0.95rem;
  }
}

/* Styles pour les métadonnées horizontales et discrètes */
.article-metadata-horizontal {
  margin-top: 2rem;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #aaa;
  width: 100%;
}

.metadata-horizontal-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metadata-horizontal-item i {
  color: #888;
  font-size: 0.85rem;
  opacity: 0.8;
}

.metadata-horizontal-item span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.metadata-horizontal-item a {
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.2s;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  opacity: 0.9;
}

.metadata-horizontal-item a:hover {
  background: rgba(80, 80, 80, 0.3);
  opacity: 1;
}

/* Version responsive pour les métadonnées horizontales */
@media (max-width: 768px) {
  .article-metadata-horizontal {
    padding: 0.6rem 0;
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .metadata-horizontal-item {
    gap: 0.3rem;
  }
  
  .metadata-horizontal-item i {
    font-size: 0.8rem;
  }
}

/* Nouvelle section pour uniformiser le padding du hero sur mobile */
@media (max-width: 900px) {
  .single-article-hero {
    padding-top: 0;
    margin-top: 0 !important;
    position: relative;
    top: 0;
  }
  
  body.admin-bar .single-article-hero {
    padding-top: 0;
    margin-top: 0 !important;
  }
}

/* Ajustements supplémentaires pour les petits écrans */
@media (max-width: 600px) {
  .single-article-hero {
    padding-top: 0;
  }
  
  body.admin-bar .single-article-hero {
    padding-top: 0;
  }
}

/* Ajustements spécifiques pour éviter le chevauchement avec l'header */
@media (max-width: 782px) {
  body.admin-bar .single-article-hero {
    padding-top: 0;
  }
}

/* Ajout pour coller le hero en haut de l'écran */
@media (max-width: 900px) {
  .single-article-hero {
    position: relative;
    top: 0;
    margin-top: 0 !important;
    border-radius: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
}

/* Solution simple et directe pour coller le hero en haut de page */
@media (max-width: 900px) {
  body.single {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  body.single .container:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  .single-article-hero {
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: 0 !important;
    border-radius: 0;
  }
}

/* Fix pour mobile - Centrage et suppression d'espace + full width */
@media (max-width: 900px) {
  .container-wrapper {
    width: 100%;
    max-width: 100%;
  }
  
  .mobile-no-padding {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
  
  .single-article-hero {
    padding-top: 0.2rem !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  
  .single-article-hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 120px !important; /* Encore plus d'espace pour les visiteurs normaux */
  }
  
  .single-article {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
    box-sizing: border-box !important;
  }
  
  .posts-navigation,
  .single-article-comments {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }
}

/* Correction des règles précédentes qui pourraient entrer en conflit */
@media (max-width: 900px) {
  .single-article-hero {
    flex-direction: column;
    padding: 0.2rem 0 6rem 0 !important;
    gap: 1.2rem;
    align-items: stretch;
    min-height: 260px;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    z-index: 1;
    position: relative;
  }
}

/* Style pour le wrapper du conteneur */
.container-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

@media (max-width: 900px) {
  .single-article-hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 120px !important; /* Encore plus d'espace pour les visiteurs normaux */
  }
  
  /* Ajustement pour les utilisateurs connectés (admin-bar) */
  body.admin-bar .single-article-hero-content {
    padding-top: 100px !important; /* Augmenté de 60px à 85px */
  }
}

/* Ajustement pour les écrans entre 783px et 900px où la barre admin est plus petite */
@media (min-width: 783px) and (max-width: 900px) {
  body.admin-bar .single-article-hero-content {
    padding-top: 80px !important; /* Augmenté de 55px à 80px */
  }
}

/* ===== SIDEBAR MOBILE ===== */
.mobile-sidebar {
  display: none;
}

/* Force l'affichage de la sidebar mobile sur mobile */
@media (max-width: 900px) {
  #mobile-sidebar.mobile-sidebar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 900px) {
  .mobile-sidebar {
    display: block !important;
    width: 100%;
    background: #1a1a1a;
    margin-top: 2rem;
    padding: 1.5rem 20px 2rem 20px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    position: relative;
    z-index: 10;
  }

  .mobile-sidebar-container {
    max-width: 100%;
    margin: 0 auto;
  }

  .mobile-widget {
    background: transparent;
    padding: 1.2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .mobile-widget:last-child {
    margin-bottom: 0;
  }

  .mobile-widget-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
  }

  .mobile-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-widget li {
    margin-bottom: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
  }

  .mobile-widget li:last-child {
    margin-bottom: 0;
  }

  .mobile-widget li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
  }

  .mobile-widget a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .mobile-widget a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  }

  .mobile-widget p {
    color: #d0d0d0;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .mobile-widget p:last-child {
    margin-bottom: 0;
  }

  /* Styles spécifiques pour les widgets de recherche */
  .mobile-widget .search-form {
    display: flex;
    gap: 0.5rem;
  }

  .mobile-widget .search-field {
    flex: 1;
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 0.7rem;
    color: #fff;
    font-size: 0.9rem;
  }

  .mobile-widget .search-field:focus {
    outline: none;
    border-color: #666;
  }

  .mobile-widget .search-submit {
    background: #4a9eff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
  }

  .mobile-widget .search-submit:hover {
    background: #3a8eef;
  }

  /* Styles pour les widgets de catégories et tags */
  .mobile-widget .cat-item,
  .mobile-widget .tag-item {
    display: inline-block;
    background: #333;
    color: #e0e0e0;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    margin: 0.2rem 0.3rem 0.2rem 0;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
  }

  .mobile-widget .cat-item:hover,
  .mobile-widget .tag-item:hover {
    background: #444;
    color: #fff;
  }

  /* Styles pour les widgets de la sidebar principale dans la sidebar mobile */
  .mobile-sidebar .widget {
    background: transparent !important;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  .mobile-sidebar .widget:last-child {
    margin-bottom: 0;
  }

  .mobile-sidebar .widget-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #444;
  }

  .mobile-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-sidebar .widget li {
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
  }

  .mobile-sidebar .widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .mobile-sidebar .widget a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
  }

  .mobile-sidebar .widget a:hover {
    color: #fff;
  }

  .mobile-sidebar .widget p {
    color: #d0d0d0;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .mobile-sidebar .widget p:last-child {
    margin-bottom: 0;
  }

  /* Styles spécifiques pour les widgets de recherche dans la sidebar mobile */
  .mobile-sidebar .widget .search-form {
    display: flex;
    gap: 0.5rem;
  }

  .mobile-sidebar .widget .search-field {
    flex: 1;
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 0.7rem;
    color: #fff;
    font-size: 0.9rem;
  }

  .mobile-sidebar .widget .search-field:focus {
    outline: none;
    border-color: #666;
  }

  .mobile-sidebar .widget .search-submit {
    background: #4a9eff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
  }

  .mobile-sidebar .widget .search-submit:hover {
    background: #3a8eef;
  }

  /* Styles pour les widgets de catégories et tags dans la sidebar mobile */
  .mobile-sidebar .widget .cat-item,
  .mobile-sidebar .widget .tag-item {
    display: inline-block;
    background: #333;
    color: #e0e0e0;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    margin: 0.2rem 0.3rem 0.2rem 0;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
  }

  .mobile-sidebar .widget .cat-item:hover,
  .mobile-sidebar .widget .tag-item:hover {
    background: #444;
    color: #fff;
  }
}

/* Masquer le footer edit quand le contenu est vide tout en gardant l'espace */
.single-article-footer.empty-content-hidden {
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* S'assurer que la structure reste stable avec le contenu vide */
.single-article-content {
  min-height: 200px;
}

/* Styles pour le message de contenu vide - version simple */
.single-article-content h2:first-child {
  margin-top: 0;
}

.single-article-content p {
  margin-bottom: 1.8rem;
  color: #e0e0e0;
} 