:root {
  --color-orange: #FF9A00;
  --background: #C0C0C0;
  --text-main: black;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --title-background: #69003F;  
  --menus-background: #B4547D;    
  --color-giro: #FF99CC;
  --color-tour:#FFC000;
  --color-vuelta:#FF5050;
  --radius: 12px;
}

.active-articles-container {
  max-width: 1200px;
  margin: 0;
  padding: 0 ;
  font-family: Verdana, Arial;
  color: var(--text-main);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin-bottom: 0.25rem;
  background: linear-gradient(to right, var(--title-background), var(--menus-background));  
}


.section-header p {
  color: var(--text-muted);
}

.articles-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* Petits écrans */
@media (max-width: 1060px) {
  .articles-layout {
    grid-template-columns: 1fr;
  }


  aside#preview-panel {
    display: none !important;
  }

  .mobile-preview {
    padding: 0.75rem;
    background: var(--background);
    border-radius: var(--radius);
    animation: fadeIn 0.25s ease-in-out;
    margin-top: 0;
    border-left: 4px solid var(--color-orange);    
  }

  .mobile-preview img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 4px);
  }

  .mobile-preview a {
    color: var(--text-main);
    text-decoration: underline;
    font-weight: bold;
  }

}

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

.article-item {
  background: var(--background);
  border-radius: var(--radius);
  padding: 0.5rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border-left: 4px solid transparent;
}

.article-chapitre-link {
  display: flex;
  justify-content: space-between;
  font-weight: normal;
  background: var(--menus-background);
  color: var(--border-color);
  text-decoration: none;
  border-radius: 6px;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 3px;
  padding-bottom: 3px;  
  margin-bottom: 0.5rem;
}

a.article-chapitre-link {
 color: var(--border-color);
}

.article-chapitre-link.chapitre-vuelta {
    background: var(--color-vuelta);
    color: #000;
}

.article-chapitre-link.chapitre-tour {
    background: var(--color-tour);
    color: #000;
}

.article-chapitre-link.chapitre-giro {
    background: var(--color-giro);
    color: #000;
}

@media (hover: hover) {
  .article-item:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
  }
}

/* Bord orange à l'activation de la carte */
.article-item.is-active {
  border-left: 4px solid var(--color-orange);
  margin-bottom: 0;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10pt;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.article-meta2 {
  display: flex;
}

.article-source {
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 10pt;
    font-weight: bold;
    color: var(--menus-background);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.source-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Titre des articles */
.article-titre {
  font-size: 1rem;
  text-transform: none;
  margin-right: 2px;
  margin-left:0px;    
  background: var(--background);  
  padding: 0;  
}


/* Pour annuler ou remettre la police par défaut sur un paragraphe spécifique */
.article-titre::first-letter {
    all: revert;
}

.article-titre a {
    color: var(--text-main);
    text-decoration: none;
}

aside.preview-panel {
  background: var(--background);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-orange);      
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.preview-placeholder {
  color: var(--text-muted);
  font-size: 10pt;
}

.preview-content {
  width: 100%;
  text-align: left;
  animation: fadeIn 0.25s ease-in-out;
}

.preview-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 1rem;
}

/* Début de l'article */
.preview-debut {
  margin: 0;
  text-align: justify;  
}

/* Lien vers l'article */
.preview-url {
  margin: 0;
  padding-top: 1rem;
}
/* .preview-excerpt {
  font-size: 10pt;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  padding:0;
} */

.preview-titre {
  font-size: 10pt;
  margin-left: 0rem;
  background: linear-gradient(to right, var(--title-background), var(--menus-background));   
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}