/* Fixer le footer en bas */
html, body {
    height: 100%; /* Toute la hauteur de la fenêtre */
    margin: 0;
    display: flex;
    flex-direction: column; /* Organisation verticale */

}


#main {
    flex: 1; /* Prend tout l'espace disponible */
    display: flex;
    flex-direction: column;
    margin-top: -25px !important;
}

/* sous menu */
.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #673ab7;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    text-align: left;
    padding-bottom:5px;
}

    .dropdown-content a {
        display: block;
        padding: 8px;
        text-decoration: none;
        color: black;
        text-align: left;
    }

.dropdown:hover .dropdown-content {
    display: block;
}


/* bouton replier / deplier barre de recherche */
#toggle-search {
    background-color: #59657B;
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-left: 10px;
    box-sizing: border-box;
  }
  
  #toggle-search:hover {
    background-color: #673ab7 !important;
  }
  
  #toggle-search i {
    pointer-events: none;
  }
  
  @media (max-width: 576px) {
    #toggle-search {
      width: 60%;
      text-align: center;
      padding: 14px;
      font-size: 1.1rem;
      min-height: 40px;
    }
  }

/* Global */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #673ab7 !important;
    background-image: url('../img/degrade_page.jpg') !important;
    background-repeat: repeat-x;
    display: flex;
    flex-direction: column;
    margin-top: -25px !important;
}

.embed-container iframe {
    width: 100% !important;
    height: auto;
    aspect-ratio: 16/9;
    border: none;
}

.mobile-image-wrapper {
    text-align: center;
    margin: 20px auto;
}

    .mobile-image-wrapper img {
        max-width: 90%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

/* retour haut de page */

#backToTop {
    position: fixed;
    bottom: 20px; /* Distance par rapport au bas de la page */
    left: 20px; /* Distance par rapport au bord gauche */
    display: none; /* Caché par défaut */
    z-index: 1000; /* S'assurer que le bouton reste au-dessus des autres éléments */
    width: 50px; /* Largeur du bouton */
    height: 50px; /* Hauteur du bouton */
    border-radius: 50%; /* Bouton rond */
    justify-content: center; /* Centrer le contenu horizontalement */
    align-items: center; /* Centrer le contenu verticalement */
    font-size: 20px; /* Taille de l'icône */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre pour un effet visuel */
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    padding-top: 15px;
    padding-bottom: 50px;
    height: 100%;
}


.container py-5  {
    padding-top : -3rem !important;
}

a + span.separator {
    display: inline-block;
    vertical-align: middle; /* Ajuste l'alignement vertical */
    margin-bottom: -2px;    /* Abaisse le séparateur */
    font-size: 1.2em;       /* Ajuste la taille si nécessaire */
}

/* changement couleur des filtres select */
select.filtre-actif {
    font-weight: bold;
    color: #673ab7;
}

    /* Ne rien appliquer aux options */
    select.filtre-actif option {
        font-weight: normal;
        color: #000000;
    }
/* Liste des Auteurs */

    .author a {
        display: block;
        margin-bottom: 5px;
        color: #673ab7;
        text-decoration: none !important;
    }

    .author a:hover {
            text-decoration: underline !important;
        }

/* Liste des editeurs */

    .editor a {
        display: block;
        margin-bottom: 5px;
        color: #673ab7;
        text-decoration: none !important;
}

    .editor a:hover {
        text-decoration: underline !important;
    }

/* liste des rubriques */

.rubrique a {
    display: block;
    margin-bottom: 5px;
    color: #673ab7;
    text-decoration: none !important;
}
.rubrique a:hover {
     text-decoration: underline !important;
    }


/* liste des collections */

.collections a {
    display: block;
    margin-bottom: 5px;
    color: #673ab7;
    text-decoration: none !important;
}

.collections a:hover {
        text-decoration: underline !important;
}

/* liste des sources */

.sources a {
    display: block;
    margin-bottom: 5px;
    color: #673ab7;
    text-decoration: none !important;
}

.sources a:hover {
        text-decoration: underline !important;
}

/* liste des parcours */

.parcours a {
    display: block;
    margin-bottom: 5px;
    color: #673ab7;
    text-decoration: none !important;
}

.parcours a:hover {
        text-decoration: underline !important;
}

/* liste des parcours */

.formats a {
    display: block;
    margin-bottom: 5px;
    color: #673ab7;
    text-decoration: none !important;
}

.formats a:hover {
        text-decoration: underline !important;
}

/* liste des sousrubriques */

.sousrubrique a {
    display: block;
    margin-bottom: 5px;
    color: #673ab7;
    text-decoration: none !important;
}

.sousrubrique a:hover {
     text-decoration: underline !important;
    }

/* liste des rubriques */

.rubrique a {
    display: block;
    margin-bottom: 5px;
    color: #673ab7;
    text-decoration: none !important;
}

    .rubrique a:hover {
        text-decoration: underline !important;
    }

   

/* liste des mots clefs */

.keyword a {
    display: block;
    margin-bottom: 5px;
    color: #673ab7;
    text-decoration: none !important;
}

.keyword a:hover {
     text-decoration: underline !important;
    }

/*  Liste des éditeurs */


.publisher a {
        display: block;
        margin-bottom: 5px;
        color: #673ab7;
        text-decoration: none !important;
}

.publisher a:hover {
            text-decoration: underline !important;
        }

/*  Liste des thématiques */


.thematique a {
    display: block;
    margin-bottom: 5px;
    color: #673ab7;
    text-decoration: none !important;
}

    .thematique a:hover {
        text-decoration: underline !important;
    }


/* Charger les mots-clés à l'ajout */

/* Tags */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tag-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.tag {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.remove-btn {
    margin-left: 8px;
    color: #999;
    cursor: pointer;
}

    .remove-btn:hover {
        color: red;
    }

/* Suggestions */
.suggestion-wrapper {
    position: absolute;
    width: 100%;
    z-index: 1000;
}

.suggestion-title {
    font-weight: bold;
    padding: 5px;
    font-size: 14px;
    background: #f7f7f7;
}

.suggestion-box {
    background: white;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

    .suggestion-item:hover {
        background-color: #f0f0f0;
    }
/* Liste des sous-rubriques */

.subcategory-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.subcategory-column {
    flex: 1 1 calc(33.333% - 30px); /* Colonne prenant 1/3 de la largeur avec un espace */
    min-width: 200px; /* Largeur minimale pour une meilleure responsivité */
}

    .subcategory-column .alphabet {
        font-size: 1.5rem;
        font-weight: bold;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .subcategory-column a {
        display: block;
        margin-bottom: 5px;
        color: #673ab7;
        text-decoration: none;
    }

        .subcategory-column a:hover {
            text-decoration: underline;
        }

 /* Liste des Rubriques */

.category-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.category-column {
    flex: 1 1 calc(33.333% - 30px); /* Colonne prenant 1/3 de la largeur avec un espace */
    min-width: 200px; /* Largeur minimale pour une meilleure responsivité */
}

    .category-column .alphabet {
        font-size: 1.5rem;
        font-weight: bold;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .category-column a {
        display: block;
        margin-bottom: 5px;
        color: #673ab7;
        text-decoration: none;
    }

        .category-column a:hover {
            text-decoration: underline;
        }


/* Formulaire de recherche */
.search-container {
    display: block;
    width: 100%;
    background-color: #fff;
    margin-bottom: 20px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 1px 2px 2px 3px rgba(0, 0, 0, 0.1);
    padding-bottom: 80px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 15px;
}

    .search-container label {
        font-weight: bold;
    }

    .search-container input,
    .search-container select,
    .search-container button {
        margin-top: 5px;
    }

  /* Style pour les filtres actifs */
  .filtre-actif {
    background-color: #e6f7ff;
    border-color: #1890ff !important;
}


/* Animation douce pour le repliement */
#search-container {
    transition: all 0.3s ease;
}    

 /* selecteur presentation*/

.btn-outline-primary {
    --bs-btn-color: #673ab7;
    --bs-btn-border-color: #673ab7;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #673ab7;
    --bs-btn-hover-border-color: #673ab7;
    --bs-btn-focus-shadow-rgb: 13,110,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #673ab7;
    --bs-btn-active-border-color: #673ab7;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #673ab7;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #673ab7;
    --bs-gradient: none;
}



/* Résultats */

.result-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-container h1 {
    text-decoration: none;
    color: #673ab7;
}

.search-container a {
    text-decoration: none;
    color: #673ab7;
}

.btn-warning {
  background-color: #59657B !important;
  border-color: #59657B !important;
  color: #fff !important;
  border-radius: 5px;
  cursor: pointer !important;
  transition: all 0.3s ease;
  font-weight: bold;
}

    .btn-warning:hover {
        background-color: #673ab7 !important;
        border-color: #673ab7 !important;
        color: #fff;
        transform: scale(1.05); /* Légère augmentation de la taille */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre ajoutée au survol */
        text-decoration: none !important;
    }


.search-container a:hover {
        text-decoration: underline;
}


.result-item h2 a {
    text-decoration: none;
    color: #673ab7;
}

.result-item a:hover {
        text-decoration: underline;
    }

.result-table a {
    text-decoration: none;
    color: #673ab7;
}
.result-table h2 a:hover {
        text-decoration: underline;
    }

    .result-item a {
        text-decoration: none;
        color: #673ab7;
    }

        

    .result-item p {
        margin: 5px 0;
    }


/* Pagination */
.pagination {
    margin: 20px 0;
    justify-content: center;
}

.pagination .page-item.active .page-link {
        background-color: #673ab7;
        border-color: #673ab7;
    }
.page-link {
    z-index: 2;
    color: #673ab7;
    background-color: var(--bs-pagination-hover-bg);
    border-color: var(--bs-pagination-hover-border-color);
}
.page-link:hover {
    z-index: 2;
    color: #000000;
    background-color: var(--bs-pagination-hover-bg);
    border-color: var(--bs-pagination-hover-border-color);
}


/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 9998;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

    .popup h3 {
        margin-bottom: 20px;
        color: #333;
    }

    .popup button {
        margin-right: 10px;
    }

/* Titre placé par-dessus le carrousel avec ombrage */
#carouselTitle {
    position: absolute;
    top: 45px;
    left: 30px;
    color: white;
    font-size: 2.0rem;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.9); /* Ombrage plus prononcé */
    background-color: rgba(0, 0, 0, 0.3);
    padding-right: 10px;
    padding-left: 10px;
    border-radius: 5px;
    z-index: 10;
}

/* Logo placé à droite par-dessus le carrousel */
#carouselLogo {
    position: absolute;
    top: 45px;
    right: 30px;
    height: 90px; /* Ajuster la hauteur */
    z-index: 10;
}

/* Images du carrousel */
.carousel-item img {
    height: 300px; /* Ajustez la hauteur du carrousel */
     object-fit: contain; /* Affiche toute l'image sans la couper */
}

.form-label {
    margin-left:15px;
}

/* Footer */
footer {
    background-color: black; /* Couleur de fond */
    color: white; /* Texte blanc */
    text-align: center;
    padding: 10px 0;
    margin-top: auto; /* Pousse le footer vers le bas */
}
footer a {
    color:white;
    text-decoration:none;
}
footer a:hover {
        color: white;
        text-decoration: underline;
}

.result-container {
    margin-top: 20px;
}

    .result-container.list .result-item {
        background-color: #fff;
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }

.result-container.grid {
    background-color: #fff;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.result-container.grid .result-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.welcome-message {
    background-color: #fff;
    display: block;
    width: 100%;
    margin-bottom: 20px;
    }

.my-custom-class {
    font-size: 1.2rem;
    background-color: #e8f0fe; /* Couleur de fond personnalisée */
    border-left: 5px solid #2196f3; /* Bordure latérale */
    color: #0d47a1; /* Texte personnalisé */
    padding: 10px;
    margin-top: 10px;
}

.fa {
    background-color: #ffffff; /* Fond rouge */
    color: #673ab7; /* Fond bodeaux */
}

 .fa-plus-circle {
        background-color: #ffffff; /* Fond blanc */
        color: #4caf50 !important; /* Fond vert */
    }


.fa-facebook-f {
    background-color: #ffffff; /* Fond blanc */
    color: #2196f3 !important; /* Fond bleu */
}

.fa-x-twitter {
    background-color: #ffffff; /* Fond blanc */
    color: #000000 !important; /* Fond noir */
}


a:hover i.fa {
    background-color: #ffffff;
    color: #000000;
}

a:hover i.fa-facebook-f {
    background-color: #ffffff;
    color: #000000 !important; /* Fond noir */
}

a:hover i.fa-plus-circle {
    background-color: #ffffff;
    color: #000000 !important; /* Fond noir */
}

a:hover i.fa-x-twitter {
    background-color: #ffffff;
    color: #CCCCCC !important; /* Fond noir */
}

fa-brands {
    background-color: #ffffff; /* Fond rouge */
    color: #673ab7; /* Fond rouge */
}

a i.fa-brands {
    background-color: #ffffff; 
    color: #673ab7; 
    transition: color 0.3s; /* Pour une transition plus douce, par exemple */
}

a:hover i.fa-brands {
    background-color: #ffffff; 
    color: #000000; 
}


/* Barre de navigation */

.navselect {
    background-color: #ffffff !important;
    border-radius: 5px !important;
    color: #000000 !important;
} 

#navbar {
    position: relative; /* Assure que l'élément est au-dessus */
    z-index: 10; /* Priorité sur les éléments qui pourraient être au-dessus */
    display: flex; /* Aligne les liens horizontalement */
    flex-wrap: wrap; /* Permet de passer à une nouvelle ligne si nécessaire */
    justify-content: center; /* Centre les liens dans le conteneur */
    background-color: #673ab7; /* Fond rouge */
    color: white; /* Texte en blanc */
    padding: 10px 0; /* Ajoute de l'espace autour des liens */
    text-align: center;
    margin-top: -35px;
}

    /* Liens dans la barre de navigation */
    #navbar a {
        display: block;
        color: white;
        text-decoration: none;
        padding: 10px 20px;
        font-size: 0.9rem;
        padding: 5px 7px;
        border-radius: 5px;
        margin-left: 3px;
        margin-right: 3px;
        font-weight: bold;
      }

    /* Effet au survol des liens */
    #navbar a:hover {
        background-color: #ffffff; /* Change le fond au survol pour indiquer la clicabilité */
        border-radius: 5px; /* Ajoute un effet de contour arrondi si souhaité */
        color:#000000;
        }

.navbar-brand.logo {
    background-image: url('../img/logo.gif');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: inline-block;
    width: 90px;
    height: 90px;
    text-indent: -9999px;
    overflow: hidden;
    text-decoration: none !important;
}

.navbar .navselect.active {
    text-decoration: none !important;
    margin-right: 15px !important;
}


    .highlight {
    background-color: #D2C3EA;
    color: black;
    font-weight: bold;
    padding-left:4px;
    padding-right:4px;
}

/* Style pour la popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    padding: 20px;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 10px;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mb-4 {
    font-size:1.50rem;
    font-weight:bold;
    margin-bottom:20px !important;
}

h1.mb-4 {
    font-size: 1.50rem !important;
    font-weight: bold;
}

.btreserv {
    margin-bottom: 20px !important;
}

.result-item h3 { font-size: 1.5rem; }
.pagination a { margin: 0 5px; text-decoration: none; }
.pagination .active { font-weight: bold; }
.suggestions { border: 1px solid #ccc; background: #fff; max-height: 200px; overflow-y: auto; position: absolute; z-index: 1000; width: 95%; margin-bottom:10px; }
.suggestion-item { padding: 8px; cursor: pointer; }
.suggestion-item:hover { background: #f1f1f1; }

@media (max-width: 768px) {
    .result-container.grid {
        grid-template-columns: 1fr;
    }
    .mb-4 {
        font-size: 1.25rem !important;
        font-weight: bold;
        margin-bottom: 40px !important;
    }
    h1 .mb-4 {
        font-size: 1rem !important;
        font-weight: bold;
    }
    footer {
        padding-right: 20px;
        padding-left: 20px;
    }
}


.result-container.table .result-item {
    display: none;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table th, .result-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.suggestions {
    border: 1px solid #ccc;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    width: 100%;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f1f1f1;
}

.result-item h3 { font-size: 1.5rem; }
.pagination a { margin: 0 5px; text-decoration: none; }
.pagination .active { font-weight: bold; }

.form-container {
    width: 80%;
    margin: auto;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

    .form-container h2 {
        text-align: center;
    }

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-weight: bold;
    }

    .form-group input, .form-group select, .form-group textarea {
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-group textarea {
        resize: vertical;
    }

.btn-primary {
    background-color: #59657B !important;
    border-color: #59657B !important;
    color: #fff;
    border-radius: 5px;
    cursor: pointer !important;
    transition: all 0.3s ease; /* Transition pour un effet fluide */
    font-weight:bold;
}

    .btn-primary:hover {
        background-color: #000000 !important;
        border-color: #000000 !important;
        color: #fff;
        transform: scale(1.05); /* Légère augmentation de la taille */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre ajoutée au survol */
        text-decoration: none !important;
    }





.submit-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-align: center;
}

input[readonly] {
    background-color: #f0f0f0; /* Couleur de fond grisée */
    color: #888; /* Texte gris */
    border: 1px solid #ccc; /* Bordure grise */
}

    .submit-btn:hover {
        background-color: #45a049;
    }
@media (min-width: 1200px) {
    .h2, h2 {
        font-size: 1.00rem !important;
        font-weight: bold;
    }

    .h1, h1 {
        font-size: 1.25rem !important;
    }
.carousel-item img {
            height: 300px;
            object-fit: contain;
      
        }
 }

@media (max-width: 748px) {
    .h2, h2 {
        font-size: 1.0rem !important;
        font-weight: bold;
    }
    /* Titre placé par-dessus le carrousel avec ombrage */
    #carouselTitle {
        position: absolute;
        top: 55px;
        left: 30px;
        color: white;
        font-size: 1.00rem;
        text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.9); /* Ombrage plus prononcé */
        background-color: rgba(0, 0, 0, 0.3);
        padding-right: 10px;
        padding-left: 10px;
        border-radius: 5px;
        z-index: 10;
    }

    /* Liens dans la barre de navigation */
    #navbar a {
        display: block;
        color: white;
        text-decoration: none;
        font-size: 0.8rem;
        padding: 1px 1px;
        border-radius: 5px;
        margin-left: 3px;
        margin-right: 3px;
        font-weight: bold;
    }

    /* Logo placé à droite par-dessus le carrousel */
    #carouselLogo {
        position: absolute;
        top: 55px;
        right: 30px;
        height: 40px; /* Ajuster la hauteur */
        z-index: 10;
    }

    /* Images du carrousel */
    .carousel-item img {
        height: 300px; /* Ajustez la hauteur du carrousel */
        object-fit: contain; /* Affiche toute l'image sans la couper */
        margin-top:-70px;
    }

    /* Barre de navigation */
    #navbar {
        background-color: #673ab7; /* Fond rouge */
        padding: 10px;
        text-align: center;
        margin-top: -125px;
    }

    .dropdown-content {
        min-width: 150px !important;
     }
}
