/* --- Réinitialisation et styles généraux --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    background-color: #e6e6e6; /* Fond gris clair classique de la charte */
}

a {
    color: #003366;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #cc0000;
}

.container {
    width: 95%;
    max-width: 980px;
    margin: 0 auto;
}

/* --- En-tête --- */
.header {
    background-color: #ffffff;
    border-bottom: 3px solid #333333;
    padding-top: 15px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* --- Navigation --- */
.nav-bar {
    width: 100%;
    background-color: #222222;
    border-radius: 4px 4px 0 0;
}

.nav-bar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav-bar li a {
    display: block;
    padding: 10px 18px;
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
}

.nav-bar li a:hover, .nav-bar li a.active {
    background-color: #444444;
    color: #ffffff;
    text-decoration: none;
}

/* --- Zone Principale --- */
.main-content {
    background-color: #ffffff;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.content-left {
    flex: 2;
}

.sidebar {
    flex: 1;
    border-left: 1px solid #eeeeee;
    padding-left: 15px;
}

/* --- Cartes d'articles --- */
.featured-articles h2, .widget h3 {
    font-size: 18px;
    color: #222222;
    border-bottom: 2px solid #003366;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.article-card {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-card img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ccc;
}

.article-info h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.article-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.btn-more {
    font-size: 12px;
    font-weight: bold;
    color: #cc0000;
}

/* --- Sidebar Widget --- */
.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 6px 0;
    border-bottom: 1px dashed #ddd;
}

/* --- Pied de page --- */
.footer {
    background-color: #222222;
    color: #cccccc;
    padding: 15px 0;
    font-size: 12px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer a {
    color: #ffffff;
}

.footer ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

/* Bouton principal "Accéder au forum" */
.btn-forum-primary {
    display: inline-block;
    background-color: #cc0000;
    color: #ffffff !important;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 28px;
    
    /* ARRONDI DES ANGLES : */
    border-radius: 25px; /* Mode "bouton arrondi / pilule" */
    
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Petite ombre sous le bouton */
    transition: all 0.2s ease-in-out;
}

.btn-forum-primary:hover {
    background-color: #990000;
    transform: translateY(-1px); /* Légere surélévation au survol */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Liens "Lire la suite »" dans la liste d'articles */
.btn-more {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    color: #003366;
    background-color: #f0f0f0;
    padding: 5px 12px;
    
    /* ARRONDI SUBTIL DES ANGLES : */
    border-radius: 6px; 
    
    border: 1px solid #ccc;
    transition: background-color 0.2s;
}

.btn-more:hover {
    background-color: #003366;
    color: #ffffff;
    border-color: #003366;
    text-decoration: none;
}

/* --- Adaptabilité Mobile --- */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        border-left: none;
        border-top: 1px solid #eee;
        padding-left: 0;
        padding-top: 15px;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-card img {
        width: 100%;
        height: auto;
    }
}