/* ====================================
 * FICHIER: front-end/css/article_detail.css
 * PAGE: Article détail SOLYA - ADAPTÉ POUR BACKGROUND BLEU
 * ==================================== */

/* Variables CSS */
:root {
  --primary-color: #0066cc;
  --secondary-color: #f8f9fa;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-radius: 8px;
  --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* ====================================
 * ADAPTATION POUR HEADER BLEU (défini dans style.css)
 * ==================================== */

/* S'assurer que les éléments s'adaptent au fond bleu */
.article-header {
  color: white !important;
  margin-top :80px;
}
.article-header {
  margin-top :80px;
}

.breadcrumb-modern {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  margin-bottom: 2rem;
  display: inline-block;
}

.breadcrumb-modern a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-modern a:hover {
  color: white !important;
  text-decoration: underline;
}

.breadcrumb-modern .separator {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.6) !important;
}

.category-tag {
  display: inline-block;
  background: #ffdd57 !important; /* Couleur accent jaune */
  color: #003049 !important; /* Couleur dark */
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: white !important;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }
}

.article-meta {
  font-size: 0.9rem;
}

.meta-item {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}

.meta-item i {
  color: #ffdd57 !important; /* Icônes en jaune accent */
  width: 16px;
}

/* ====================================
 * CONTENU ARTICLE
 * ==================================== */
.article-main {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.article-text {
  padding: 2rem;
}

.article-text .lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 2rem;
}

.featured-image {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.featured-image:hover {
  transform: scale(1.02);
}

.content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #495057;
}

.content h2, .content h3 {
  color: var(--dark-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.content h3 {
  font-size: 1.5rem;
}

.content p {
  margin-bottom: 1.5rem;
}

.content ul, .content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.content li {
  margin-bottom: 0.5rem;
}

.content blockquote {
  background: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* ====================================
 * TAGS ARTICLE - AMÉLIORÉS
 * ==================================== */
.article-tags {
  padding: 1.5rem 0;
  border-top: 1px solid #dee2e6;
}

.article-tags h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.article-tags .badge {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

.article-tags .badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  background-color: #0052a3 !important;
}

/* ====================================
 * ACTIONS ARTICLE (LIKE + PARTAGE) - CORRIGÉES
 * ==================================== */
.article-actions {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.like-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-width: 2px;
  border-radius: 25px;
  transition: var(--transition);
}

.like-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

.like-btn.liked {
  background-color: var(--danger-color) !important;
  border-color: var(--danger-color) !important;
  color: white !important;
}

/* Boutons de partage */
.share-buttons .btn {
  min-width: 45px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-width: 2px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.share-buttons .btn i {
  font-size: 1.2em;
  color: inherit;
}

.share-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

/* Couleurs spécifiques des réseaux sociaux */
.share-facebook { 
  color: rgb(0, 0, 0) !important; 
  border-color: #1877f2 !important; 
}
.share-facebook:hover { 
  background-color: #1877f2 !important; 
  color: white !important; 
}

.share-twitter { 
  color: rgb(0, 0, 0) !important; 
  border-color: #1da1f2 !important; 
}
.share-twitter:hover { 
  background-color: #1da1f2 !important; 
  color: white !important; 
}

.share-linkedin { 
  color: rgb(0, 0, 0) !important; 
  border-color: #0077b5 !important; 
}
.share-linkedin:hover { 
  background-color: #0077b5 !important; 
  color: white !important; 
}

.share-email { 
  color: rgb(0, 0, 0) !important; 
  border-color: #6c757d !important; 
}
.share-email:hover { 
  background-color: #6c757d !important; 
  color: white !important; 
}

/* ====================================
 * NAVIGATION ARTICLES - AMÉLIORÉE
 * ==================================== */
.article-navigation {
  margin-top: 3rem;
}

.nav-article {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: white;
  color: inherit;
  max-width: 45%;
}

.nav-article:hover {
  background-color: #f8f9fa;
  border-color: #0066cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,102,204,0.15);
  text-decoration: none;
  color: inherit;
}

.nav-article .nav-label {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.nav-article .nav-title {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--dark-color);
  margin-top: 0.25rem;
}

.nav-article:hover .nav-title {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .article-navigation {
    flex-direction: column !important;
  }
  
  .nav-article {
    max-width: 100%;
    margin-bottom: 1rem;
  }
}

/* ====================================
 * SIDEBAR
 * ==================================== */
.sidebar-card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.sidebar-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.sidebar-title {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem !important;
}

/* Articles récents/similaires */
.recent-article {
  transition: var(--transition);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem !important;
}

.recent-article:hover {
  background-color: #f8f9fa;
  text-decoration: none;
  transform: translateX(5px);
}

.recent-image {
  border-radius: 6px;
  border: 1px solid #dee2e6;
  transition: var(--transition);
}

.recent-article:hover .recent-image {
  transform: scale(1.05);
}

.recent-content h6 {
  color: var(--dark-color);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.recent-article:hover .recent-content h6 {
  color: var(--primary-color);
}

/* Tags populaires */
.tag-cloud .badge {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0.25rem;
}

.tag-cloud .badge:hover {
  background-color: #0066cc !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,102,204,0.3);
}

/* Newsletter */
.sidebar-card form {
  gap: 0.5rem;
}

.sidebar-card input[type="email"] {
  border-radius: 6px;
  border: 1px solid #ced4da;
  transition: var(--transition);
}

.sidebar-card input[type="email"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.25);
}

.sidebar-card button[type="submit"] {
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  transition: var(--transition);
}

.sidebar-card button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,102,204,0.3);
}

/* ====================================
 * RESPONSIVE
 * ==================================== */
@media (max-width: 992px) {
  .article-text {
    padding: 1.5rem;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .content {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .article-header {
    padding: 2rem 0 !important;
  }
  
  .article-text {
    padding: 1rem;
  }
  
  .article-title {
    font-size: 1.75rem;
  }
  
  .article-actions {
    padding: 1rem !important;
  }
  
  .share-buttons {
    justify-content: center !important;
    margin-top: 1rem !important;
  }
  
  .share-buttons .btn {
    min-width: 40px;
    min-height: 35px;
  }
}

/* ====================================
 * ANIMATIONS
 * ==================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 0.6s ease;
}