.text-ltr {
    direction: ltr;
    text-align: justify;
    font-family: "Times New Roman", serif;
}

/* Texte AR */
.text-rtl {
    direction: rtl;
    text-align: justify;
    font-family: "Amiri", "Times New Roman", serif;
}
p {
    text-align: justify !important;
}





/* ===== GLOBAL ===== */
body {
    font-family: "Noto Serif", serif;
    /*background-color: #f5f6f8;*/
    background-color: #ffffff;
    color: #222;
}

/* ===== HEADER ===== */
.pkp_site_name_wrapper {
    background-color: #1e4c9a;
    padding: 25px 0;
    text-align: center;
}

.pkp_site_name {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
}

.pkp_site_name a {
    color: #fff;
    text-decoration: none;
}

/* ===== LOGO ===== */
.pkp_site_name img {
    max-height: 20px;
}

/* ===== MENU ===== */
.pkp_navigation_primary_wrapper {
    background-color: #1e4c9a;
    border-top: 2px solid #ffffff20;
}

.pkp_navigation_primary > li > a {
    color: #fff !important;
    font-weight: 600;
    padding: 15px 20px;
}

.pkp_navigation_primary > li > a:hover {
    background-color: #163a75;
}

/* ===== CONTAINER ===== */
.page {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ===== TITRES ===== */
h1, h2, h3 {
    color: #1e4c9a;
    font-weight: 600;
}

/* ===== ARTICLE ===== */
.obj_article_summary {
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.obj_article_summary h3 a {
    color: #1e4c9a;
}

/* ===== FOOTER ===== */
.pkp_structure_footer_wrapper {
    background-color: #1e4c9a;
    color: #fff;
    padding: 20px;
    text-align: center;
}

/* ===== BOUTONS ===== */
button, .pkp_button {
    background-color: #1e4c9a;
    color: #fff;
    border-radius: 4px;
    padding: 10px 15px;
}

button:hover {
    background-color: #163a75;
}
/* Ombre header */
.pkp_site_name_wrapper {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Hover menu */
.pkp_navigation_primary > li:hover > a {
    background-color: #0f2e5a;
}
/* ===== HEADER FULL LOGO ===== */
.pkp_site_name_wrapper {
    background: #ffffff; /* ou bleu si tu veux */
    padding: 0;
    margin: 0;
    text-align: center;
}

/* Logo pleine largeur */
.pkp_site_name img {
    width: 80%;
    height: auto;
    max-height: none;
    display: block;
    margin: 0 auto;
}

/* Supprimer marges inutiles */
.pkp_site_name {
    margin: 0;
    padding: 0;
}

/* Supprimer espace container */
.pkp_site_name_wrapper .pkp_container {
    padding: 0 !important;
    max-width: 100% !important;
}

/* Added for REMAC on 03/24/2026 for footer hiding =-) */
.site-footer-content .row :nth-child(1 of .col-md-2){
    display: none;
}

footer::after {
    content: "Copyright © 2026. All rights reserved. Designed By The Moroccan Journal of Communication (REMAC)";
    display: block;
    width: 100%;
    padding: 0px;
    margin: 0;
    text-align: center;
    box-sizing: border-box;
}

    #primaryNav .dropdown-menu.show {
        background-color: #204394; /* Couleur de fond du menu déroulant que j'ai prise du logo donné par le professeur #H */
    }
        #primaryNav .dropdown-item {
        color: #ffffff; /* couleur blanche pour le contraste*/
    }

    #primaryNav .dropdown-item:focus, #primaryNav .dropdown-item:hover {
        background-color: #dae0ed; /*Hover pour un meilleur contrast*/
    }

        .site-footer {
        padding-bottom: 1rem !important;/* pour reduire l'espace */
    }
    .site-footer-sidebar {
    margin-bottom: 1rem !important; /* pour reduire l'espace aussi */
}

/**Vous pouvez changer la taille du logo par ici  */
.navbar-logo img {
    max-height: 90px;   /* taille propre */
    width: auto;
    display: block;
    margin: 0 auto;
}

.pkp_navigation_primary > li > a {
    color: #ffffff !important;
}


.navbar .nav-link:hover {
    background-color: #163a75 !important;
    color: #ffffff !important;
}







/* ===== FORCE NAVBAR BLEU ===== */
header .navbar,
header .navbar-light,
header .navbar-expand-lg {
    background-color: #1e4c9a !important;
}

/* ===== TEXTE BLANC ===== */
header .navbar .nav-link,
header #primaryNav .nav-link {
    color: #ffffff !important;
}

/* ===== HOVER ===== */
header .navbar .nav-link:hover {
    background-color: #163a75 !important;
    color: #ffffff !important;
}

/* ===== DROPDOWN ===== */
header .dropdown-menu {
    background-color: #1e4c9a !important;
}

header .dropdown-item {
    color: #ffffff !important;
}

header .dropdown-item:hover {
    background-color: #163a75 !important;
}
/* FULL WIDTH NAVBAR */
header .navbar {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
}
#primaryNav {
    width: 100%;
    display: flex;
    justify-content: space-around;
}
#primaryNav .nav-item {
    flex: 1;
    text-align: center;
    border-right: 2px solid white;
}

/* Supprimer bord dernier */
#primaryNav .nav-item:last-child {
    border-right: none;
}
#primaryNav .nav-link {
    display: flex;
padding: 10px 0;
color: #ffffff !important;
font-weight: 600;
align-items: center;
justify-content: center;
height: 40px;
}
#primaryNav .nav-link:hover {
    background-color: #163a75;
}

   
.remac-footer-logo img {
    max-height: 80px;
    width: auto;
}
.site-footer {
    padding: 10px 0 !important;
}
.site-footer-content {
    padding: 0 !important;
}
.remac-footer-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.remac-footer-text p {
    font-size: 13px;
    margin: 0;
}

.homepage-issue-cover {
    width: 350px;       /* taille plus grande */
    max-width: 100%;
 max-height: 100%;
    height: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* effet premium */
display: block !important;
}
/*.homepage-issue-cover {
    content: url("https://remac.flshr-um5.ac.ma/public/journals/1/ton-nouveau-fichier.jpg");
}*/

@media (max-width: 768px) {
    .navbar-logo img {
        max-height: 60px;
    }
}




@media (max-width: 991px) {
    #primaryNav {
        display: block;
    }

    #primaryNav .nav-item {
        border-right: none;
        border-bottom: 1px solid white;
    }

#primaryNav .nav-link {
    display: flex;
    padding: 5px 0;          /* réduit hauteur */
    color: #ffffff !important;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    height: 45px;             /* plus compact */
    font-size: 14px;          /* style académique */
}}