/* Padding à droite pour le textarea du formulaire commentaire */
.comments-section textarea {
  padding-right: 2rem !important;
  box-sizing: border-box;
}
@media (min-width: 576px) and (max-width: 991px) {
  .comments-section textarea {
    padding-right: 2rem;
    box-sizing: border-box;
  }
}
@media (min-width: 992px) {
  .mobile-duo-actions,
  .mobile-duo-actions .btn-chrome-articles,
  .mobile-duo-actions .btn-chrome-menu,
  .mobile-duo-actions button.btn-chrome-articles,
  .mobile-duo-actions button.btn-chrome-menu {
    display: none !important;
  }
}
/* ============================================
   SEARCH HEADER FLEX (titre + formulaire côte à côte)
   ============================================ */

.search-header-flex .search-form-card {
  
  
  width: 50%;
  gap: 2rem;
  display: flex;
  align-items: space-between;
}

/* ============================================
  SECTION RESPONSIVE – MOBILE & TABLETTE
  ============================================ */
/* ============================================
   8. PAGES ARTICLES
   ============================================ */

.article-detail-wrapper {
  min-height: 100vh;
  padding: var(--spacing-lg) 0;
}

.article-container {
  width: 100%;
  max-width: 75%;
  margin: 0 auto;
}

.video-container {
  position: relative;
  padding-bottom: 45%; /* ratio plus grand */
  padding-top: 10px; /* padding réduit */
  height: 0;
  margin-bottom: 0.7rem; /* moins d'espace sous la vidéo */
  width: 100%;
}
.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ============================================
   DÉTAIL ARTICLE (2 COLONNES - IMAGE DROITE)
   ============================================ */
.article-detail-card {
  margin: 2.5rem 4rem 3rem 4rem;
  position: relative;
  min-height: 400px;
  border-radius: 42px;
  border: 2.5px solid #9a4f18;
  overflow: hidden;
  background: radial-gradient(
    ellipse at center,
    #fff4e4 0%,
    #f9ddb5 42%,
    #efc48d 100%
  );
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22),
    inset 0 0 0 5px rgba(255, 248, 230, 0.9),
    inset 0 -7px 12px rgba(0, 0, 0, 0.12),
    inset 0 9px 16px rgba(255, 255, 255, 0.6),
    inset 0 0 0 8px rgba(154, 79, 24, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 2rem;
}

  .article-detail-image {
    position: relative;
    width: 100%;
    max-height: 800px;
    overflow: hidden;
    border-radius: 42px 42px 0 0;
    margin-bottom: 0;
    
  }


  .article-detail-image img {
    width: 100%;
    max-height: 800px;
    object-fit: cover;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.7rem;
    border-radius: 42px 42px 0 0 !important;
    box-shadow: none;
    transition: background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    font-weight: 600;
    position: relative;
    z-index: 10;
  }


.article-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-mid);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta-item a {
  color: var(--color-primary);
  text-decoration: none;
}

.article-meta-item a:hover {
  text-decoration: underline;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.article-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-action-btn:hover {
  color: var(--color-primary-dark);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-dark);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.75rem;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.article-body blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--color-primary);
  color: var(--color-text-mid);
  font-style: italic;
}

.article-body code {
  background: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
}

.article-body pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-body pre code {
  background: none;
  padding: 0;
}



/* ============================================
   CATÉGORIE & TAGS
   ============================================ */

.article-category {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background 0.2s ease;
}

.article-category:hover {
  background: #e9ecef;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 0;
}

.article-tag {
  padding: 0.4rem 0.8rem;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--color-text-mid);
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-tag:hover {
  background: var(--color-primary);
  color: white;
}

/* ============================================
   COMMENTAIRES
   ============================================ */

.comments-section {
  margin: 3rem auto 0 auto;
  padding: 2rem;
  border-top: 2px solid #e9ecef;
  position: relative;
  width: 550px;
  border-radius: 42px;
  border: 2.5px solid #9a4f18;
  overflow: hidden;
  background: radial-gradient(
    ellipse at center,
    #fff4e4 0%,
    #f9ddb5 42%,
    #efc48d 100%
  );
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22),
    inset 0 0 0 5px rgba(255, 248, 230, 0.9),
    inset 0 -7px 12px rgba(0, 0, 0, 0.12),
    inset 0 9px 16px rgba(255, 255, 255, 0.6),
    inset 0 0 0 8px rgba(154, 79, 24, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  display: flex;
  flex-direction: column;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.comment-form {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.comment {
  padding: 1.5rem;
  border-left: 3px solid #e9ecef;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease;
}

.comment:hover {
  border-left-color: var(--color-primary);
}

.comment-author {
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.comment-date {
  font-size: 0.85rem;
  color: var(--color-text-mid);
  margin-bottom: 1rem;
}

.comment-text {
  line-height: 1.6;
  color: var(--color-text-dark);
}

.comment-replies {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
  margin-left: 2rem;
}

.comments-list {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 8px;
}

/* ============================================
   SIDEBAR ARTICLES (COLONNE DROITE)
   ============================================ */

.articles-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.articles-sidebar .card-smeg {
  height: 100%;
}

.related-articles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.related-articles-list li {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1.5rem;
}

.related-articles-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-articles-list a {
  display: block;
  text-decoration: none;
  color: var(--color-text-dark);
  transition: color 0.2s ease;
}

.related-articles-list a:hover {
  color: var(--color-primary);
}

.related-articles-list h6 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.related-articles-list small {
  color: var(--color-text-mid);
  display: block;
}

/* ============================================
   LISTE ARTICLES (GRID)
   ============================================ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.article-card {
  background: radial-gradient(
    ellipse at center,
    #fff4e4 0%,
    #f9ddb5 42%,
    #efc48d 72%,
    #e19a4f 100%
  );
  border-radius: 42px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22),
    inset 0 0 0 5px rgba(255, 248, 230, 0.9),
    inset 0 -7px 12px rgba(0, 0, 0, 0.12),
    inset 0 9px 16px rgba(255, 255, 255, 0.6),
    inset 0 0 0 8px rgba(154, 79, 24, 0.22);
  transition: transform 0.35s, box-shadow 0.35s, filter 0.35s;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2.5px solid #9a4f18;
}

.article-card:hover {
  transform: translateY(-6px);
  filter: brightness(1.03);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.28),
    inset 0 0 0 5px rgba(255, 248, 230, 0.9),
    inset 0 -7px 12px rgba(0, 0, 0, 0.12),
    inset 0 9px 16px rgba(255, 255, 255, 0.6),
    inset 0 0 0 8px rgba(154, 79, 24, 0.22);
}

.article-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 42px 42px 0 0;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 42px 42px 0 0 !important;
  transition: transform 0.3s;
}

.article-card-content {
  padding: 1rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.article-card-btn {
  display: inline-block;
  margin-top: 1.2rem;
  background: linear-gradient(90deg, #e19a4f 0%, #efc48d 100%);
  color: #fff;
  border-radius: 42px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(225, 154, 79, 0.12);
  border: none;
  padding: 0.7rem 2rem;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  font-size: 1rem;
}

.article-card-btn:hover {
  background: linear-gradient(90deg, #efc48d 0%, #e19a4f 100%);
  box-shadow: 0 4px 16px rgba(225, 154, 79, 0.18);
  color: #fff;
}







/* ============================================
   RESPONSIVE ARTICLES
   ============================================ */





/* ============================================
   COMMENTAIRE CARD SMEG (pages article)
   ============================================ */
.comment-card {
  width: 100%;
  max-width: 600px;
  margin: 1.5rem auto 1.2rem auto;
  padding: 1.1rem 1.4rem 1.1rem 1.4rem;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    #fff6df 0%,
    #f8ddb0 45%,
    #ebc58c 75%,
    #d4a468 100%
  );
  box-shadow: 0 4px 24px 0 rgba(80, 60, 40, 0.1), 0 1.5px 0 #fff inset;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.comment-card-header {
  display: flex;
  align-items: center;

  gap: 1.2rem;
  margin-bottom: 0.2rem;
}

.comment-card-header .comment-author {
  font-weight: 700;
  color: #9a4f18;
  font-size: 1.08rem;
  margin-bottom: 0;
}

.comment-card-header .comment-date {
  color: #b97a2a;
  font-size: 0.98rem;
  margin-bottom: 0;
}

.comment-card .comment-content {
  color: #3a2a1a;
  font-size: 1.13rem;
  line-height: 1.7;
  margin-bottom: 0.2rem;
  word-break: break-word;
  padding-left: 0.1rem;
}

.comment-card .comment-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.3rem;
  justify-content: flex-end;
}

.comment-card .comment-replies {
  margin-top: 0.7rem;
  padding-left: 1.5rem;
  border-left: 2px solid #f7c992;
}

.comment-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 0.2rem;
}
.comment-card-header .comment-author {
  font-weight: 700;
  color: #9a4f18;
  font-size: 1.08rem;
  margin-bottom: 0;
}
.comment-card-header .comment-date {
  color: #b97a2a;
  font-size: 0.98rem;
  margin-bottom: 0;
}
.comment-card .comment-content {
  color: #3a2a1a;
  font-size: 1.13rem;
  line-height: 1.7;
  margin-bottom: 0.2rem;
  word-break: break-word;
  padding-left: 0.1rem;
}
.comment-card .comment-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.3rem;
  justify-content: flex-end;
}
.comment-card .comment-replies {
  margin-top: 0.7rem;
  padding-left: 1.5rem;
  border-left: 2px solid #f7c992;
}




/* ============================================
   FORMULAIRE DE RECHERCHE ARTICLE (SMEG PRO)
   ============================================ */
.search-form-card {
  width: auto;
  margin: 2.5rem auto 2.2rem auto;
  border-radius: 42px;
  background: radial-gradient(circle at 60% 40%, #fff4e4 60%, #f9ddb5 100%);
  box-shadow: 0 8px 32px 0 rgba(80, 60, 40, 0.13), 0 1.5px 0 #fff inset;
  padding: 2.2rem 2.5rem 2.2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

.search-form-group button,
.search-form-submit-wrapper button,
.search-form button[type="submit"] {
  background: linear-gradient(90deg, #f9ddb5 0%, #e19a4f 100%);
  color: #6b3500;
  border: none;
  border-radius: 18px;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.7em 2.1em;
  box-shadow: 0 2px 8px rgba(225, 154, 79, 0.1);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.search-form-group button:hover,
.search-form-submit-wrapper button:hover,
.search-form button[type="submit"]:hover {
  background: linear-gradient(90deg, #e19a4f 0%, #f9ddb5 100%);
  color: #fff;
}

.search-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.search-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1.2rem;
  align-items: end;
}

.search-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.search-form-group label {
  font-weight: 700;
  color: #9a4f18;
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.search-form-group input,
.search-form-group select {
  border-radius: 18px;
  border: 1.5px solid #e19a4f;
  padding: 0.8rem 1.1rem;
  font-size: 1.05rem;
  background: #fff;
  color: #6b3500;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
}

.search-form-group input:focus,
.search-form-group select:focus {
  border-color: #e19a4f;
  box-shadow: 0 0 0 2px #f9ddb5;
}

.search-form-submit-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.search-submit {
  border: none;
  border-radius: 18px;
  background: linear-gradient(90deg, #e19a4f 0%, #f9ddb5 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.7em 2.1em;
  box-shadow: 0 2px 8px rgba(225, 154, 79, 0.1);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  outline: none;
}
.search-submit:hover,
.search-submit:focus {
  background: linear-gradient(90deg, #f9ddb5 0%, #e19a4f 100%);
  color: #6b3500;
  box-shadow: 0 4px 16px rgba(225, 154, 79, 0.18);
}





/* ============================================
   GRILLE D'ARTICLES (2 par ligne sur desktop)
   ============================================ */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem 2.2rem;
  margin-bottom: 2.5rem;
}




/* ============================================
   RESPONSIVE – MOBILE (≤ 576px)
   ============================================ */
@media (max-width: 576px) {
  

  .article-detail-card{
    min-width: 230px;
    margin: 0 5px 0 5px; 
  }
  .article-detail-links{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .comments-section {
    width: 100%;
    max-width: none;
    min-width: 230px;
    margin: 30px 5px 0 5px;
    box-sizing: border-box;
    padding: 2rem;
  }
  .comments-section input[type="text"],
  .comments-section input[type="email"],
  .comments-section textarea {
    padding-right: 2rem;
    box-sizing: border-box;
  }
  .article-detail-image {
    
    min-height: 200px;
    max-height: 320px;
  }
  .article-detail-image img {
    max-height: 520px;
    min-height: 200px;
    object-fit: contain;
    width: 100%;
  }
}