@charset "UTF-8";
/* Blog Styles - Ares Design */
/* Blog-specific utilities extending base classes */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap; }

.blog-header {
  padding: 8rem 0 4rem;
  /* Augmenté pour éviter le chevauchement avec la navbar fixe */
  background: var(--theme-bg-secondary);
  border-bottom: 1px solid var(--theme-border); }

.blog-title {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--theme-text-primary);
  font-size: 3rem;
  margin-bottom: 1rem; }

.blog-description {
  font-size: 1.25rem;
  color: var(--theme-text-secondary);
  margin-bottom: 0; }

/* Search Bar */
.blog-search-bar {
  background: var(--theme-bg-primary);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px var(--theme-shadow);
  padding: 1.5rem;
  margin-bottom: 2rem; }

.search-container {
  max-width: 500px;
  margin: 0 auto; }

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--theme-border);
  border-radius: 8px;
  background: var(--theme-bg-primary);
  color: var(--theme-text-primary);
  font-size: 1rem;
  transition: all 0.3s ease; }

/* search-input focus and placeholder styles are handled by .form-input */
.search-results-count {
  font-size: 0.85rem;
  color: var(--theme-text-secondary);
  text-align: center;
  margin-top: 1rem;
  font-style: italic; }

/* Language Filters */
.language-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem; }

.lang-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  background: var(--theme-bg-secondary);
  color: var(--theme-text-primary);
  border: 1px solid var(--theme-border);
  border-radius: 20px; }

/* Tag Filters */
.tag-filters {
  margin-top: 1.5rem;
  text-align: center; }

.tag-filters h5 {
  font-size: 0.85rem;
  color: var(--theme-text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 500; }

.tag-filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap; }

.tag-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  background: var(--theme-bg-secondary);
  color: var(--theme-text-primary);
  border: 1px solid var(--theme-border);
  border-radius: 16px; }

/* Blog Content */
.blog-content {
  padding: 4rem 0 3rem;
  /* Réduit le padding en bas pour éviter l'espace excessif */ }

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  grid-auto-rows: min-content;
  /* Empêche les cards de s'étendre au-delà de leur contenu */ }

.blog-post-card {
  background: var(--theme-bg-primary);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px var(--theme-shadow);
  overflow: hidden;
  height: fit-content;
  /* La card s'adapte à son contenu */ }

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--theme-shadow-medium);
  border-color: var(--theme-nav-hover); }

.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  /* Suppression de height: 100% qui causait l'extension de la zone cliquable */ }

.post-card-link:hover {
  text-decoration: none;
  color: inherit; }

.post-card-content {
  padding: 1.5rem; }

.post-image {
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  overflow: hidden; }

.post-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease; }

.blog-post-card:hover .post-image img {
  transform: scale(1.05); }

.post-meta {
  font-size: 0.85rem;
  color: var(--theme-text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--theme-text-light); }

.post-categories {
  gap: 0.5rem;
  display: flex; }

.category {
  background: var(--theme-bg-secondary);
  color: var(--theme-nav-hover);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em; }

/* Language Badge */
.post-language {
  order: -1;
  /* Place language badge first */ }

.language-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid; }

.language-badge.fr {
  background: rgba(0, 85, 164, 0.1);
  color: #0055a4;
  border-color: rgba(0, 85, 164, 0.2); }

.language-badge.en {
  background: rgba(178, 34, 52, 0.1);
  color: #b22234;
  border-color: rgba(178, 34, 52, 0.2); }

[data-theme="dark"] .language-badge.fr {
  background: rgba(0, 85, 164, 0.2);
  color: #60a5fa;
  border-color: rgba(0, 85, 164, 0.3); }

[data-theme="dark"] .language-badge.en {
  background: rgba(178, 34, 52, 0.2);
  color: #fca5a5;
  border-color: rgba(178, 34, 52, 0.3); }

.post-title {
  margin-bottom: 0.75rem;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--theme-text-primary);
  font-size: 1.25rem;
  transition: color 0.3s ease; }

/* Hover effect on the entire card will change title color */
.post-card-link:hover .post-title {
  color: var(--theme-nav-hover); }

.post-excerpt {
  color: var(--theme-text-secondary);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem; }

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--theme-border); }

.read-more {
  color: var(--theme-nav-hover);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block; }

/* Hover effect on the entire card will style read-more */
.post-card-link:hover .read-more {
  color: #1d4ed8;
  transform: translateX(3px); }

.reading-time {
  font-size: 0.85rem;
  color: var(--theme-text-secondary);
  color: var(--theme-text-light);
  font-size: 0.8rem; }

/* No Results */
.no-results {
  background: var(--theme-bg-primary);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px var(--theme-shadow);
  text-align: center;
  padding: 4rem 2rem;
  background: var(--theme-bg-secondary); }

.no-results-content h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--theme-text-primary);
  margin-bottom: 1rem; }

.no-results-content p {
  color: var(--theme-text-secondary);
  margin-bottom: 0; }

.clear-search-btn {
  background: none;
  border: none;
  color: var(--theme-nav-hover);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  margin: 0; }

.clear-search-btn:hover {
  color: #1d4ed8; }

/* Responsive Design */
@media (max-width: 768px) {
  .blog-header {
    padding: 8rem 0 3rem;
    /* Augmenté pour éviter le chevauchement sur mobile */ }
  .blog-title {
    font-size: 2.25rem; }
  .blog-description {
    font-size: 1.1rem; }
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem; }
  .search-input {
    width: 100%; } }

@media (max-width: 576px) {
  .blog-header {
    padding: 8rem 0 2rem;
    /* Augmenté pour éviter le chevauchement sur très petit écran */ }
  .blog-title {
    font-size: 1.75rem; }
  .blog-content {
    padding: 3rem 0; }
  .blog-search-bar {
    padding: 1rem; }
  .post-card-content {
    padding: 1rem; }
  .post-image {
    margin: -1rem -1rem 1rem -1rem; }
  .post-image img {
    height: 180px; }
  .post-footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start; } }

/* Animation for search results */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); }
  to {
    opacity: 1;
    transform: translateY(0); } }

.blog-post-card {
  animation: fadeIn 0.3s ease; }

/* Dark theme specific adjustments */
[data-theme="dark"] .search-input {
  background: var(--theme-bg-secondary);
  border-color: var(--theme-border);
  color: var(--theme-text-primary); }

[data-theme="dark"] .search-input:focus {
  border-color: var(--theme-nav-hover);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2); }

/* Blog Post Single */
.blog-post {
  padding: 9rem 0 2rem;
  /* Réduit le padding en bas pour éviter l'espace blanc */
  max-width: none; }

/* Fix pour éviter l'espace blanc en bas de page */
body.page-blog-post,
body.page-blog {
  min-height: auto; }
  body.page-blog-post .wrapper,
  body.page-blog .wrapper {
    flex: 1 0 auto;
    /* Permet au wrapper de s'ajuster au contenu */ }

.post-header {
  margin-bottom: 4rem;
  text-align: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--theme-border); }

.post-categories-header {
  margin-bottom: 1rem; }

.category-header {
  display: inline-block;
  background: var(--theme-nav-hover);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.5rem; }

.post-title-main {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--theme-text-primary);
  font-size: 2.5rem;
  margin-bottom: 1.5rem; }

.post-meta-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem; }

.meta-item {
  gap: 0.5rem;
  color: var(--theme-text-secondary);
  display: flex;
  align-items: center;
  font-size: 0.9rem; }

.meta-icon {
  font-size: 1rem; }

.post-summary {
  color: var(--theme-text-secondary);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic; }

.post-featured-image {
  margin: 3rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px var(--theme-shadow-medium); }

.post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover; }

.post-content {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  /* Responsive adjustments for line-height */
  color: var(--theme-text-primary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  /* Amélioration de l'aération */
  /* Espacement pour les sections avec puces */ }
  @media (max-width: 768px) {
    .post-content {
      line-height: 1.6;
      /* Slightly tighter spacing for smaller screens */ } }
  @media (min-width: 1200px) {
    .post-content {
      line-height: 1.9;
      /* Slightly looser spacing for larger screens */ } }
  .post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--theme-text-primary); }
  .post-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--theme-text-primary); }
  .post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--theme-text-primary); }
  .post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8; }
  .post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem; }
    .post-content ul li, .post-content ol li {
      margin-bottom: 0.75rem;
      line-height: 1.7; }
  .post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-blue);
    background: var(--theme-bg-secondary);
    font-style: italic; }
  .post-content strong {
    font-weight: 600; }

.post-footer {
  padding-top: 2rem;
  border-top: 1px solid var(--theme-border); }

.post-tags {
  margin-bottom: 2rem; }

.post-tags h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--theme-text-primary);
  font-size: 1rem;
  margin-bottom: 0.75rem; }

.tags-list {
  flex-wrap: wrap;
  gap: 0.5rem;
  display: flex; }

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  background: var(--theme-bg-secondary);
  color: var(--theme-text-primary);
  border: 1px solid var(--theme-border);
  font-size: 0.85rem;
  border-radius: 16px; }

.tag:hover {
  cursor: pointer; }

.post-navigation {
  text-align: center; }

.btn-back-blog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  background: var(--theme-bg-secondary);
  color: var(--theme-text-primary);
  border: 1px solid var(--theme-border);
  text-decoration: none; }

.btn-back-blog:hover {
  background: var(--theme-nav-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px var(--theme-shadow-medium); }

/* Responsive Design for Blog Post */
@media (max-width: 768px) {
  .blog-post {
    padding: 8rem 0 3rem; }
  .post-title-main {
    font-size: 2rem; }
  .post-meta-header {
    gap: 1rem;
    flex-direction: column;
    align-items: center; }
  .post-content {
    font-size: 1rem; } }

@media (max-width: 576px) {
  .post-title-main {
    font-size: 1.75rem; }
  .post-summary {
    font-size: 1rem; }
  .category-header {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem; } }

/* Pagination Styles */
.pagination-wrapper {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--theme-border); }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem; }

.pagination-numbers {
  display: flex;
  gap: 0.25rem; }

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  min-width: 44px;
  height: 44px;
  background: var(--theme-bg-primary);
  color: var(--theme-text-primary);
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer; }

.pagination-link:hover {
  background: var(--theme-bg-secondary);
  color: var(--theme-text-primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--theme-shadow); }

.pagination-link.pagination-current {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  cursor: default; }

.pagination-link.pagination-current:hover {
  transform: none;
  box-shadow: none; }

.pagination-prev,
.pagination-next {
  gap: 0.5rem;
  font-weight: 600; }

.pagination-arrow {
  font-size: 1.1rem; }

.pagination-info {
  text-align: center;
  font-size: 0.9rem;
  color: var(--theme-text-secondary);
  font-style: italic; }

/* Responsive Pagination */
@media (max-width: 768px) {
  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem; }
  .pagination-link {
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    height: 40px;
    font-size: 0.9rem; }
  .pagination-prev .pagination-text,
  .pagination-next .pagination-text {
    display: none; }
  .pagination-info {
    font-size: 0.8rem;
    margin-top: 1rem; } }

@media (max-width: 480px) {
  .pagination-wrapper {
    margin-top: 2rem; }
  .pagination-numbers {
    gap: 0.125rem; }
  .pagination-link {
    padding: 0.4rem 0.6rem;
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem; } }

/* Focus styles for accessibility */
.read-more:focus,
.clear-search-btn:focus,
.btn-back-blog:focus {
  outline: 2px solid var(--theme-nav-hover);
  outline-offset: 2px; }

.post-title a:focus {
  outline: 2px solid var(--theme-nav-hover);
  outline-offset: 2px;
  border-radius: 4px; }

/* Financial Disclaimer */
.financial-disclaimer {
  margin: 3rem 0 2rem;
  padding: 1.5rem;
  background: rgba(255, 193, 7, 0.1);
  border: 2px solid #ffc107;
  border-radius: 8px;
  border-left: 6px solid #ffc107;
  display: flex;
  gap: 1rem;
  align-items: flex-start; }

.disclaimer-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem; }

.disclaimer-content {
  flex: 1; }

.disclaimer-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--theme-text-primary);
  font-weight: 500; }

/* Dark theme adjustments */
[data-theme="dark"] .financial-disclaimer {
  background: rgba(255, 193, 7, 0.15);
  border-color: #ffb300;
  border-left-color: #ffb300; }

/* Ownership Disclaimer */
.ownership-disclaimer {
  margin: 3rem 0 2rem !important;
  padding: 1.5rem !important;
  background: rgba(37, 99, 235, 0.1) !important;
  border: 2px solid #2563eb !important;
  border-radius: 8px !important;
  border-left: 6px solid #2563eb !important;
  display: flex !important;
  gap: 1rem !important;
  align-items: flex-start !important; }

.ownership-disclaimer .disclaimer-icon {
  font-size: 1.5rem !important;
  flex-shrink: 0 !important;
  margin-top: 0.25rem !important; }

.ownership-disclaimer .disclaimer-content {
  flex: 1 !important; }

.ownership-disclaimer .disclaimer-text {
  margin: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: var(--theme-text-primary) !important;
  font-weight: 500 !important; }

/* Dark theme adjustments for ownership disclaimer */
[data-theme="dark"] .ownership-disclaimer {
  background: rgba(37, 99, 235, 0.15) !important;
  border-color: #3b82f6 !important;
  border-left-color: #3b82f6 !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .financial-disclaimer,
  .ownership-disclaimer {
    margin: 2rem 0 1.5rem !important;
    padding: 1rem !important;
    gap: 0.75rem !important; }
  .financial-disclaimer .disclaimer-icon,
  .ownership-disclaimer .disclaimer-icon {
    font-size: 1.25rem !important; }
  .financial-disclaimer .disclaimer-text,
  .ownership-disclaimer .disclaimer-text {
    font-size: 0.9rem !important; } }
