/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Images */
.img-fluid {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.article-block img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Le logo dans le header */
header img {
    max-height: 50px;
    width: auto;
}

/* Mise en page du header */
header .container-fluid {
    padding: 0 15px;
}

header .d-flex {
    justify-content: space-between;
    align-items: center;
}

header .banniere p {
    font-size: 0.875rem;
    color: violet;
}

/* Barre de navigation */
.navbar {
    padding: 0.5rem 0;
    background-color: #001f3f;
    /* bleu foncé */
}

.navbar-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.nav-item {
    margin-right: 20px;
}

.nav-link {
    color: violet;
}

.nav-link:hover {
    background-color: violet;
    border: 1px solid violet;
    color: black;
    text-decoration: none;
}

/* Layout articles */
.main-content {
    margin-top: 20px;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.col-12 {
    padding: 0 10px;
    flex: 1 1 100%;
}

.col-12.col-md-8 {
    border-right: 1px solid violet;
}

.col-12.col-md-4 {
    padding-left: 20px;
}

/* Espacement entre les articles */
.article-block {
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    border-top: 3px solid violet;
}

footer p {
    color: violet;
    font-size: 16px;
}

footer h5 {
    margin-bottom: 10px;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer ul li {
    margin-bottom: 5px;
}

/* Grille Bootstrap */
.container,
.container-fluid {
    padding: 0 15px;
}

.col-md-8 {
    flex: 1 1 66.666%;
}

.col-md-4 {
    flex: 1 1 33.333%;
}

/* Barre de catégories */
.info-categories {
    background-color: violet;
    padding: 10px 0;
    text-align: center;
}

.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

.categories-list li {
    margin: 0 20px;
}

.categories-list a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

.categories-list a:hover {
    color: #333;
}

/* Icones sociales */
.social-icon {
    color: violet;
    font-size: 1.5rem;
    transition: color 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    color: white;
}

/* Miniatures pour les images de la page index */
.article-block img {
    width: 150px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

/* Styles de la navigation et des sections */
.navbar-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    /* Permet aux éléments de s'ajuster sur mobile */
}

.nav-item {
    margin-right: 10px;
    margin-bottom: 5px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.col-12 {
    flex: 1 1 100%;
    padding: 10px;
}

.col-md-8,
.col-md-4 {
    padding: 10px;
    flex: 1 1 auto;
    /* Permet aux colonnes de s'ajuster automatiquement */
}

footer {
    padding: 15px 0;
}

article h2,
article h4,
article h5,
article h6 {
    color: #800080;
    /* Violet */
    font-weight: bold;
    /* Rendre le texte en gras */
}

article h3 {

    font-weight: bold;
}

.card-img-top {
    height: 200px;
    /* tu peux ajuster */
    object-fit: cover;
    /* très important pour éviter les étirements */
    width: 100%;
}