* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", serif;
    background-image: url(http://www.logistiqueconseil.org/images/bkgd.gif);
    line-height: 1.6;
}

.background_header {
    width: 100%;
    background-image: url('../images/background_article.jpg');
    background-position: center;
    background-size: cover;
    padding: 100px 0 150px;
}

.slogan {
    text-align: center;
    color: whitesmoke;
    font-size: 2rem;
    margin-bottom: 20px;
    padding: 0 15px;
}


.container_header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 15px;
}

.logo-page {
    width: 150px;
    height: 122px;
    background-image: url(../images/logo1.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-width: 120px;
}

.barre_de_recherche {
    width: 100%;
    max-width: 500px;
    height: 40px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    object-fit: cover;
}
.barre_de_recherche {
    width: 100%;
    max-width: 500px; /* Largeur maximale */
    height: 40px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    margin: 0 15px; /* Ajout de marge sur les côtés */
}

form {
    display: flex;
    width: 100%;
    min-width: 0; /* Important pour éviter le débordement */
}

#search-input {
    border: none;
    outline: none;
    flex: 1; /* Utilisez flex au lieu de flex-grow (plus standard) */
    padding: 8px 10px;
    font-size: 1rem;
    min-width: 0; /* Empêche le débordement */
    width: 100%; /* Prend toute la largeur disponible */
}

#search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px;
    flex-shrink: 0; /* Empêche le rétrécissement du bouton */
}

#search-button img {
    width: 20px;
    height: auto;
}

.navbar {
    text-align: center;
    background-color: white;
}

.navbar_menu {
    margin: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.navbar_menu_li {
    display: inline-block;
}

.navbar_menu_li a {
    padding: 5px;
    text-decoration: none;
    color: gray;
    font-weight: bold;
    font-size: 0.75rem;
}

.navbar_menu_li a:hover {
    color: darkblue;
}

.main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1500px;
    margin: 40px auto;
    padding: 0 15px;
}

.sidebar {
    width: 100%;
    padding: 15px;
    border-right: none;
    border-bottom: 1px solid lightgrey;
}

.main-content {
    width: 100%;
    padding: 15px;
}

.article-container {
    background: white;
    border-radius: 5px;
/*    padding: 5px;*/
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-divider {
    height: 1px;
    background: lightgrey;
    margin: 20px 0;
}

.article_content{
    padding: 15px;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-title h4, .sidebar-title small {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.sidebar-content {
    padding: 10px;
}

.email_area {
    width: 100%;
    border: 1px solid #333;
    background-color: #fdf8f2;
    color: #333;
    padding: 8px;
    margin-bottom: 10px;
}

.check_box {
    margin-right: 5px;
}

.submit_btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background-color: darkblue;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.fiche_link a {
    text-decoration: none;
    color: gray;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.fiche_link a:hover {
    color: darkblue;
}

.footer_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 15px 15px;
    border-top: 1px solid lightgrey;
    background-color: white;
    text-align: center;
}

.footer_container a .logo-page {
    width: 100px;
    height: 90px;
    margin-bottom: 15px;
}

.adress {
    margin: 10px 0;
    color: #555;
    font-size: 0.9rem;
}

.copyright_link {
    text-decoration: none;
    color: black;
    font-size: 0.8rem;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .slogan {
        font-size: 2.5rem;
    }
    
    .container_header {
/*        justify-content: space-between;*/
        padding: 0 30px;
    }
    
    .main-container {
        flex-direction: row;
    }
    
    .sidebar {
        width: 250px;
        border-right: 1px solid lightgrey;
        border-bottom: none;
    }
    
    .navbar_menu_li a {
        font-size: 0.85rem;
    }
}

@media (min-width: 992px) {
    .slogan {
        font-size: 3rem;
    }
    
    .sidebar {
        width: 300px;
    }
    
    .navbar_menu {
        gap: 20px;
    }
    
    .navbar_menu_li a {
        font-size: 1rem;
    }
}