html, body {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #673ab7;
    background-image: url('../img/degrade_page.jpg');
    background-repeat: repeat-x;
}

:root {
    --h2-color: #673ab7;
    --h2-hover: #000000;
}


.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: -20px;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

main {
    flex: 1;
}

footer {
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    padding: 20px 0;
    margin-top: auto;
}

/* inventaire */

#inventaire[readonly] {
    background: #f6f6f6;
}

#inventaire::-webkit-outer-spin-button,
#inventaire::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#inventaire {
    -moz-appearance: textfield;
}


/* 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;
}

/* === Similaires : couleurs = h2 / hover = h2 === */
/* Mettre la couleur sur le H3 : le <a>.text-reset héritera */
.similaires .card-title.h2 {
    color: var(--h2-color, #673ab7);
    transition: color .15s ease-in-out;
}


.similaires .card-title.h2 a {
        text-decoration: none; /* pas de couleur ici pour éviter le conflit avec .text-reset */
}

/* Survol de toute la carte */
.similaires .card-zoom:hover .card-title.h2,
.similaires .card-zoom:focus-within .card-title.h2 {
    color: var(--h2-hover, #000000);
}

/* Bonus : si le navigateur supporte :has(), changer aussi au survol du lien seul */
@supports(selector(:has(*))) {
    .similaires .card-title.h2:has(a:hover),
    .similaires .card-title.h2:has(a:focus) {
        color: var(--h2-hover, #000000);
    }
}

/* Icône du titre : suit la couleur du titre */
.similaires .card-title .fas {
    margin-right: .4rem;
    font-size: .95em;
    color: inherit;
    vertical-align: -.05em;
}

/* === Effet zoom carte + image === */
.card-zoom {
    transition: transform .2s ease, box-shadow .2s ease;
}

    .card-zoom:hover {
        transform: translateY(-2px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    }

.img-zoom {
    transition: transform .4s ease;
}

.card-zoom:hover .img-zoom {
    transform: scale(1.04);
}

/* === Badges === */
/* Les secondaires prennent la teinte h2 et foncent au hover */
.similaires .badge.text-bg-secondary {
    color: #fff !important;
    background-color: var(--h2-color, #673ab7) !important;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

    .similaires .badge.text-bg-secondary:hover,
    .similaires .badge.text-bg-secondary:focus {
        background-color: var(--h2-hover, #000000) !important;
        color: #fff !important;
        text-decoration: none;
        transform: translateY(-1px);
    }

/* Les badges clairs : léger feedback au survol */
.similaires .badge.text-bg-light.border {
    transition: background-color .15s ease, border-color .15s ease;
}

    .similaires .badge.text-bg-light.border:hover,
    .similaires .badge.text-bg-light.border:focus {
        background-color: #f8f9fa;
        border-color: #bdbdbd;
        text-decoration: none;
    }



/* Effet de survol pour le visuel de droite */
.side-thumb {
    transition: transform .22s ease, box-shadow .22s ease;
    transform-origin: center;
    will-change: transform, box-shadow;
}

    .side-thumb:hover,
    .side-thumb:focus-within {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 .75rem 1.25rem rgba(0,0,0,.15);
    }

    /* Zoom doux sur l'image */
    .side-thumb img {
        display: block;
        transition: transform .32s ease;
        will-change: transform;
    }

    .side-thumb:hover img,
    .side-thumb:focus-within img {
        transform: scale(1.05);
    }

/* Accessibilité : respecter la préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
    .side-thumb,
    .side-thumb img {
        transition: none;
    }
}



/* 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 */

.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 */
}


.containerhaut {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    padding-bottom: 50px;
    padding-left: 0px !important;
    padding-right: 0px !important;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    padding-bottom: 50px;

}

html, body {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #673ab7;
    background-image: url('../img/degrade_page.jpg');
    background-repeat: repeat-x;
}



.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: -20px;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

main {
    flex: 1;
}

footer {
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    padding: 20px 0;
    margin-top: auto;
}

@media (max-width: 768px) {
    #carouselContainer {
        height: 185px !important;
        margin-top: -25px;
    }
    #carouselTitle {
        position: absolute;
        top: 45px;
        left: 30px;
        color: white;
        font-size: 1.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;
    }
}

/* 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 */

.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 */
}


.containerhaut {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    padding-bottom: 50px;
    padding-left: 0px !important;
    padding-right: 0px !important;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    padding-bottom: 50px;

}



.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;
    }


/* === conteneur des suggestions (overlay) === */
#suggestions {
    position: absolute;
    top: calc(100% + 4px); /* petit espace sous l’input */
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
    max-height: 440px;
    overflow: auto;
    overscroll-behavior: contain;
}

    /* scroll un poil plus discret (non bloquant si non supporté) */
    #suggestions::-webkit-scrollbar {
        height: 10px;
        width: 10px;
    }

    #suggestions::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 8px;
    }

    #suggestions::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

/* === grille responsive === */
.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

@media (max-width: 480px) {
    .suggestion-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile étroit */
    }
}

@media (min-width: 992px) {
    .suggestion-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* === carte : encadré léger === */
.suggestion-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb; /* le léger cadre */
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: box-shadow .18s ease, border-color .18s ease, transform .05s ease;
}

    .suggestion-card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
        transform: translateY(-1px);
    }

    /* accessibilité clavier */
    .suggestion-card:focus-visible {
        outline: 3px solid #7c3aed; /* violet doux, bien visible */
        outline-offset: 2px;
        border-color: #7c3aed;
    }

/* réduit les animations si l’utilisateur préfère */
@media (prefers-reduced-motion: reduce) {
    .suggestion-card {
        transition: none;
    }
}

/* vignette */
.suggestion-card img {
    width: 64px;
    height: 86px; /* ratio ~3:4 */
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

/* contenu */
.suggestion-body {
    display: flex;
    flex-direction: column;
    min-width: 0; /* permet l’ellipsis */
}

.suggestion-title {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
}

/* méta + description lisibles */
.suggestion-meta {
    font-size: .85rem;
    color: #64748b;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* clamp multi-lignes robuste */
.suggestion-description {
    font-size: .9rem;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 lignes max */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* tentative standard si supportée */
    line-clamp: 2;
    box-orient: vertical;
}


/* 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;
        }


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

/* 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;
    margin-left: 10px;
    margin-right: 10px;
}

.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;
    }

/* Le conteneur sert de référence aux overlays */
#carouselContainer { position: relative; }

/* Les images du carrousel restent en arrière-plan */
#carouselExample,
#carouselExample .carousel-inner,
#carouselExample .carousel-item,
#carouselExample .carousel-item img{
  position: relative;   /* indispensable pour que z-index s’applique */
  z-index: 1;           /* couche basse */
}

/* BANNIÈRE : s'affiche en entier, pas de crop */
#carouselExample .carousel-item img {
  display: block;
  width: 100%;
  height: auto;         /* important : conserve l'image entière */
  object-fit: contain;  /* si jamais un height était forcé plus tard */
}

/* Overlays sur la bannière */
#carouselContainer { position: relative; }
#carouselTitle.banner-title {
  position: absolute; left: 1rem; top: 1rem;
  padding: .25rem .5rem; border-radius: .25rem;
  background: rgba(255,255,255,.6);
  font-weight: 600;
}
#carouselLogo {
  position: absolute; right: 1rem; top: 1rem;
  width: 90px; height: auto;
  z-index: 2;
}


/* Titre en bas-gauche */
#carouselTitle{
  position: absolute;
  left: 24px;
  top:45px;
  z-index: 20; /* > image et navbar */
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw + .4rem, 1.8rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
  padding: .35rem .75rem;
  border-radius: .5rem;
}

/* 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: 250px; /* Ajustez la hauteur du carrousel */
     object-fit: contain; /* Affiche toute l'image sans la couper */
}

/* Overlay haut-droite (logo au-dessus, user dessous) */
.carouselOverlayTopRight{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Overlays au-dessus */
#carouselTitle,
.carouselOverlayTopRight{
  position: absolute;
  z-index: 20;          /* > 1, donc au-dessus des images */
}

/* Logo */
#carouselLogo{ display:block; max-width:90px; height:auto; }


/* Badge user */
.ecms-user-top{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  font-weight: 600;
  line-height: 1;
}


/* Image du carrousel derrière les overlays */
#carouselExample .carousel-inner{ position: relative; z-index: 1; }
#carouselExample .carousel-item img{
  display:block;
  width:100% !important;    
  height: 135px !important;        /* 300px si tu préfères plus haut */
  object-fit: cover;      /* pas de bandes vides */
}

/* Navbar : sous le bandeau, sans bidouille négative */
.navbar{ margin-top: 0 !important; 
z-index: 15;
}

/* --- Responsive --- */
@media (max-width: 768px){
  #carouselLogo{ max-width: 55px; }
  .carouselOverlayTopRight{ top: 12px; right: 8px; gap:6px; }
  #carouselExample .carousel-item img{ height: auto;}
    /* Titre placé par-dessus le carrousel avec ombrage */
    #carouselTitle {
        position: absolute;
        top: 55px;
        left: 10px;
        color: white;
        font-size: 1.00rem;
        text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.9); /* Ombrage plus prononcé */
        z-index: 10;
    }
}

/* 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;
}

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

.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;
    }
    .page-container {
        display: block;
        width: 96%;
        background-color: #fff;
        margin-bottom: 20px;
        margin-top: 15px;
        border-radius: 8px;
        box-shadow: 1px 2px 2px 3px rgba(0, 0, 0, 0.1);
        padding-bottom: 80px;
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 10px;
        margin-right: 10px;
        padding-top: 35px;
    }
}


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

.result-table {
    width: 96% !important;
    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;
    }
    .dropdown-content {
        min-width: 150px !important;
     }
}
/* Le bandeau sert de référence */
#carouselContainer { position: relative; }

/* Logo + user empilés en haut-droite */
.carouselOverlayTopRight{
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;   /* logo AU-DESSUS, badge EN-DESSOUS */
  align-items: flex-end;    /* aligné à droite */
  gap: 6px;
  z-index: 20;              /* au-dessus de l'image du carrousel */
  margin-top: -8px !important;
}

/* IMPORTANT : on neutralise d'anciens styles absolus sur #carouselLogo */
.carouselOverlayTopRight #carouselLogo{
  position: static !important;
  top: auto !important;
  right: auto !important;
  display: block;
  max-width: 55px !important;       /* ajuste la taille si besoin */
  height: auto;
  margin-top:15px;
}

/* Puce utilisateur sous le logo */
.carouselOverlayTopRight .ecms-user-top{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* L’image du carrousel reste en arrière-plan */
#carouselExample,
#carouselExample .carousel-inner,
#carouselExample .carousel-item,
#carouselExample .carousel-item img{
  position: relative;
  z-index: 1;
}

/* Ajustements mobiles */
@media (max-width: 768px){
  .carouselOverlayTopRight{ top: 35px; right: 8px; }
  .carouselOverlayTopRight #carouselLogo
  { max-width:35px !important; margin-top:20px; }
  .carouselOverlayTopRight .ecms-user-top{ font-size: .7rem; }
}

.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;
    }


/* === conteneur des suggestions (overlay) === */
#suggestions {
    position: absolute;
    top: calc(100% + 4px); /* petit espace sous l’input */
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
    max-height: 440px;
    overflow: auto;
    overscroll-behavior: contain;
}

    /* scroll un poil plus discret (non bloquant si non supporté) */
    #suggestions::-webkit-scrollbar {
        height: 10px;
        width: 10px;
    }

    #suggestions::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 8px;
    }

    #suggestions::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

/* === grille responsive === */
.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

@media (max-width: 480px) {
    .suggestion-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile étroit */
    }
}

@media (min-width: 992px) {
    .suggestion-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* === carte : encadré léger === */
.suggestion-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb; /* le léger cadre */
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: box-shadow .18s ease, border-color .18s ease, transform .05s ease;
}

    .suggestion-card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
        transform: translateY(-1px);
    }

    /* accessibilité clavier */
    .suggestion-card:focus-visible {
        outline: 3px solid #7c3aed; /* violet doux, bien visible */
        outline-offset: 2px;
        border-color: #7c3aed;
    }

/* réduit les animations si l’utilisateur préfère */
@media (prefers-reduced-motion: reduce) {
    .suggestion-card {
        transition: none;
    }
}

/* vignette */
.suggestion-card img {
    width: 64px;
    height: 86px; /* ratio ~3:4 */
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

/* contenu */
.suggestion-body {
    display: flex;
    flex-direction: column;
    min-width: 0; /* permet l’ellipsis */
}

.suggestion-title {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
}

/* méta + description lisibles */
.suggestion-meta {
    font-size: .85rem;
    color: #64748b;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* clamp multi-lignes robuste */
.suggestion-description {
    font-size: .9rem;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 lignes max */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* tentative standard si supportée */
    line-clamp: 2;
    box-orient: vertical;
}


/* 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;
        }


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

/* 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;
    margin-left: 10px;
    margin-right: 10px;
}

.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;
    }


/* Navbar : sous le bandeau, sans bidouille négative */
.navbar{ margin-top: 0 !important; 
z-index: 15;
}

/* 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;
}

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

.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;
    }
    .page-container {
        display: block;
        width: 96%;
        background-color: #fff;
        margin-bottom: 20px;
        margin-top: 15px;
        border-radius: 8px;
        box-shadow: 1px 2px 2px 3px rgba(0, 0, 0, 0.1);
        padding-bottom: 80px;
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 10px;
        margin-right: 10px;
        padding-top: 35px;
    }
}


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

.result-table {
    width: 96% !important;
    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;
    }
    .dropdown-content {
        min-width: 150px !important;
     }
}
