/* Thème ciel de soir d'été (doux, chaleureux) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom, #fffde7, #ffe0b2, #ffd180);
    color: #2d2d2d;
    animation: skyDrift 60s infinite alternate;
}

@keyframes skyDrift {
    0% {
        background: linear-gradient(to bottom, #fffde7, #ffe0b2, #ffd180);
    }
    100% {
        background: linear-gradient(to bottom, #fff8e1, #ffe082, #ffcc80);
    }
}

header {
    background: linear-gradient(to right, #ffa726, #ffb74d);
    color: white;
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.sous-titre {
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 5px;
    color: #fff8e1;
}

.navbar {
    margin-top: 15px;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background 0.4s, transform 0.3s;
}

.navbar a:hover {
    background-color: #ffffff;
    color: #ef6c00;
    transform: scale(1.05);
}

.container {
    width: 85%;
    margin: 0 auto;
}

.main-content {
    display: flex;
    margin-top: 30px;
    gap: 20px;
}

/* === Contenu principal === */
.content {
    flex: 3;
    padding: 25px;
    background-color: #fff9f0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.sidebar {
    flex: 1;
    padding: 20px;
    background-color: #fff3e0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* === Articles en grille === */
.articles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.article-card {
    background-color: #fff3e0;
    border-radius: 10px;
    padding: 15px;
    flex: 1 1 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
}

h2, h3 {
    color: #fb8c00;
    margin-bottom: 10px;
}

h4 {
    margin-top: 20px;
    color: #5d4037;
}

.articles a {
    color: #e65100;
    text-decoration: none;
    font-weight: bold;
}

.articles a:hover {
    text-decoration: underline;
    color: #bf360c;
}

/* === Images === */
.img-article {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    margin: 15px 0;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-article:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* === Image dans la sidebar === */
.sidebar .img-article {
    width: 90px;
    max-height: 90px;
    object-fit: contain;
    display: block;
    margin: 15px auto 0 auto;
}

/* === Musique === */
.music-box {
    margin: 15px 0;
    background-color: #fff8e1;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
}

.music-btn {
    background-color: #ff7043;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.music-btn:hover {
    background-color: #e64a19;
    transform: scale(1.05);
}

/* === Footer === */
footer {
    background: linear-gradient(to right, #ffb74d, #ffd180);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar a {
        margin: 5px;
    }

    .content {
        margin-right: 0;
    }
}



/* === Mise en page globale pour footer collé en bas === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Conteneur centré avec padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Main prend tout l'espace vertical restant */
main.main-content {
    flex: 1;
}

/* === Mise en page spécifique à la page articles === */
.articles-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

/* Chronologie */
.articles-chrono {
    flex: 2;
    background-color: #fff9f0;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.articles-chrono article {
    margin-bottom: 20px;
}

.articles-chrono .categorie {
    font-size: 0.85rem;
    font-weight: bold;
    background-color: #ffe0b2;
    padding: 3px 8px;
    border-radius: 20px;
    color: #ef6c00;
}

/* Thématiques */
.articles-thematiques {
    flex: 1;
    background-color: #fff3e0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.categories-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.categories-sidebar a {
    background-color: #ffe0b2;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #5d4037;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.categories-sidebar a:hover {
    background-color: #ffcc80;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .articles-layout {
        flex-direction: column;
    }
}

/* Exemple de style pour le contenant de l'article */
    .article-wrapper {
      max-width: 2000px;
      margin: 40px auto;
      padding: 25px 30px;
      background-color: #fafafa;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      border-radius: 8px;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      line-height: 1.6;
      color: #333;
    }

    .article-wrapper h2 {
      margin-top: 0;
      margin-bottom: 10px;
      font-weight: 700;
    }

    .article-meta {
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 25px;
    }

    .categorie {
      font-weight: 600;
      color: #2a7ae2;
    }

    .article-navigation {
      margin-top: 30px;
    }

    .article-navigation .btn {
      text-decoration: none;
      color: #2a7ae2;
      font-weight: 600;
    }
  
  .article-content ul {
  margin-left: 2em; /* ou 20px, selon ton besoin */
    }
  