body {
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: url("../img/Bibliothèque.jpg");
    background-repeat: repeat-y ;
    background-size: 100% 100vh;
    font-family: sans-serif;
}

a,
a:hover,
a:visited,
a:active {
    color: inherit;
    text-decoration: none;
}

body nav .chercher {
    padding: 0 16% 0 16%;
}


nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    background: rgba(0, 0, 0, 0.2);
    padding: 0 2vw;
}

nav .nav-left {
    flex: 1;
    display: flex;
    align-items: center;
}
nav .nav-left a {
    font-weight: bold;
    font-size: 1.2em;
    padding: 0.5em 1em;
}

nav .nav-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

img.nav-logo {
    max-width: 110px;
    max-height: 110px;
    width: 110px;
    height: 110px;
    object-fit: contain;
    display: block;
    margin: 0 2vw;
}
img.nav-logo:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
nav .nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
nav .nav-left a, nav .nav-right a {
    font-weight: bold;
    font-size: 1.2em;
    padding: 0.5em 1em;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 520px;
}

.menu {
    display: flex;
    width: 100%;
    height: 80vh;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 5%;
    align-items: center;
    justify-content: center;
}

div.menu .roman {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

div.menu .sf {
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
}

div.menu .bd {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

div.menu .manga {
    background-color: rgba(255, 255, 255, 0.7);
    color: black;

}

div.menu .docu {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.menu a {
    background-color: rgba(255, 255, 255, 0.493);
    width: 44%;
    height: 10vh;
    text-align: center;
    border-radius: 520px;
    font-size: min(2vw, 30px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.clickable {
    
    transition: transform 0.3s ease;
}

.clickable:hover {
    background-color: rgba(0, 0, 0, 0.661);
    color: white;
    transform: scale(1.1);
}

/* ------------------------------------------------------------------------------------------ 
morceau de CSS pour la page Contact à partir d'ici 
------------------------------------------------------------------------------------------ */

.menucontact {
    display: flex;
    background-color: rgba(0, 0, 0, 0.7);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-around;
    margin: 4% 4% 4% 4%;
    padding: 2% 4% 2.5% 4%;
    border-radius: 30px;
    color: white;
    gap: 0.5vh;
}

.co1,
.co2 {
    display: flex;
    gap: 2vh;
    flex-direction: column;
}

.contenu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12vw;
}

.contenu div {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    margin: 2% 0% 2% 0%;
}

.co2 div {
    margin: 6.5% 0% 6.5% 0%;
}


/* ------------------------------------------------------------------------------------------ 
morceau de CSS pour la page Recherche à partir d'ici 
------------------------------------------------------------------------------------------ */

.menuchercher {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    margin: 4%;
    padding: 2%;
    border-radius: 30px;
    color: white;
}

.formchercher {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.barrerecherche,
.genreselect,
.boutonrechercher {
    height: 5vh;
    border-radius: 520px;
    border: none;
    font-size: 1.5vw;
    padding: 0 1rem;
}

.barrerecherche {
    width: 50%;
}

.boutonrechercher {
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boutonrechercher {
    background-color: white; /* Couleur de fond classique */
    border: 2px solid black; /* Contour noir */
    border-radius: 50%; /* Forme arrondie */
    width: 50px; /* Largeur fixe */
    height: 50px; /* Hauteur fixe */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; /* Curseur de clic */
    transition: transform 0.3s ease; /* Transition pour effet au survol */
}

.boutonrechercher:hover {
    background-color: rgb(185, 185, 185); /* Couleur de fond au survol */
    transform: scale(1.1); /* Zoom léger au survol */
}
img.loupe {
    width: auto;
    height: 5vh; /* Taille d'origine */
    background-color: rgba(255, 255, 255, 0);
    border: none;
}

img.loupe {
    width: 130%; /* Ajuste la taille de l'image à l'intérieur du bouton */
    height: auto;
}

input.invisible {
    display: none;
}

.resultatrecherche {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
    gap: 2.5rem; /* Augmente l'espacement horizontal et vertical */
    margin: 4%; /* Marges autour du conteneur */
    align-items: start; /* Aligner les éléments au début */
}

.livrecard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 30px;
    color: white;
    padding: 0.2rem;
    text-align: center;
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s ease; /* Ajoute une transition pour le zoom */
}

.livrecard img {
    width: 100%;
    border-radius: 29px;
    object-fit: cover;
}

.livrecard p {
    text-align: center;
}

.livrecard:hover {
    transform: scale(1.05); /* Effet de zoom au survol */
}
.zoomable {
    transition: transform 0.3s ease; /* Smooth transition for zoom */
}

.zoomable:hover {
    transform: scale(1.1); /* Zoom effect on hover */
}


/* ------------------------------------------------------------------------------------------ 
morceau de CSS pour la page Menu bibli à partir d'ici 
------------------------------------------------------------------------------------------ */

/* Style de base pour les boutons */
.bouttonmenu {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    color: #fff; /* Couleur du texte */
    background-color: #000600be; /* Couleur de fond */
    border: 2px solid transparent; /* Bordure transparente au départ */
    border-radius: 5px; /* Coins arrondis */
    transition: all 0.3s ease; /* Transition pour les changements */
}

/* Changement de couleur et de bordure au passage de la souris */
.bouttonmenu:hover {
    background-color: #4a4a4a; /* Couleur de fond au survol */
    border: 2px solid #fff; /* Bordure blanche au survol */
    color: #fff; /* Couleur du texte au survol */
}

/* Optionnel : ajouter un effet de survol pour un léger soulèvement */
.bouttonmenu:active {
    transform: translateY(2px); /* Effet de "pression" lors du clic */
}
.livres-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    gap: 20px; /* Espacement entre les livres */
    margin: 4% 10%; /* Ajout de marges à gauche et à droite */
}
.livre {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    background-color: #eeeeee;
    opacity: 100%;
    display: flex;
    flex-direction: column; /* Affiche les éléments en colonne */
    align-items: flex-start; /* Alignement à gauche */
}
.livre strong {
    font-weight: bold;
}

.title_color {
    background-color: rgba(255, 255, 255, 0);
    color: white;
}

/* ------------------------------------------------------------------------------------------ 
morceau de CSS pour la page livre(détails) à partir d'ici 
------------------------------------------------------------------------------------------ */

.menu-livre {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.7);
    margin: 4% 4% 4% 4%;
    padding: 2% 4% 2.5% 4%;
    border-radius: 30px;
    color: white;
    gap: 2vh;
    align-items: center;
}

.titre-livre {
    font-size: 2.5vw;
    text-align: center;
    margin-bottom: 2vh;
}

.contenu-livre {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 5vw;
    width: 100%;
}

.details-livre {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    width: 60%;
}

.image-livre img {
    width: 250px;
    height: 120;
    border-radius: 20px;
}

.actions-livre {
    margin-top: 2vh;
}

/* ------------------------------------------------------------------------------------------ 
morceau de CSS pour la page vueLivres à partir d'ici 
------------------------------------------------------------------------------------------ */

.livres-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
    gap: 3vh; /* Augmenter légèrement l'espacement entre les livres */
    margin: 4% 10%; /* Ajout de marges à gauche et à droite */
}

.livrecard-vueLivres {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Réduire l'écart entre les éléments */
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    color: white;
    padding: 2%;
    text-align: center;
    transition: transform 0.3s ease;
    height: 375px; /* Définir une hauteur fixe pour l'uniformité */
    justify-content: flex-start; /* Aligner les éléments au début pour réduire l'espacement */
}

.livrecard-vueLivres img {
    margin: auto;
    width: 154px; /* Largeur fixe */
    height: 245px; /* Hauteur fixe */
    object-fit: cover; /* Empêcher la distorsion tout en remplissant la zone */
    border-radius: 20px; /* Conserver un rayon de bordure cohérent */
}

.livrecard-vueLivres p {
    display: inline; /* S'assurer que le texte reste sur la même ligne */
    margin: 0;
    font-size: 0.8rem;
    margin-bottom: 0.3rem; /* Réduire l'espacement entre les paragraphes */
}

.livrecard-vueLivres p strong {
    font-size: 1rem; /* Ajuster la taille de la police pour les étiquettes */
}

.livre-link-vueLivres {
    text-decoration: none;
    color: inherit;
}

.livrecard-vueLivres:hover {
    transform: scale(1.05); /* Effet de zoom au survol */
}

/* ------------------------------------------------------------------------------------------ 
morceau de CSS pour la page Supprimer Livre à partir d'ici 
------------------------------------------------------------------------------------------ */
.bouton-supprimer{
    color: #fff; /* Couleur du texte */
    background-color: #9f0000; /* Couleur de fond */
    border: 2px solid transparent; /* Bordure transparente au départ */
    border-radius: 5px; /* Coins arrondis */
    margin-bottom: 15px;
}
.success-messageD{
    font-size: large;
    color: #ffbbbb;
    font-weight: bold;
}
/* ------------------------------------------------------------------------------------------ 
morceau de CSS pour la page Modifier Livre à partir d'ici 
------------------------------------------------------------------------------------------ */
.success-messageM{
    font-size: large;
    color: #00ffae;
    font-weight: bold;
}

/* ---------Politique de confidentialité  -------*/
#privacy-policy-container.library-page {
    max-width: 900px;
    margin: 5% auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    color: #000; /* Texte noir */
    position: relative; /* Pour ne pas être affecté par body absolute */
    z-index: 10; /* Au-dessus du background */
}

#privacy-policy-container h1.pp-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

#privacy-policy-container h2.pp-section-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

#privacy-policy-container h3.pp-subtitle {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

#privacy-policy-container p.pp-text {
    margin-bottom: 1rem;
    line-height: 1.6;
}

#privacy-policy-container ul.pp-list {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

#privacy-policy-container ul.pp-list li {
    margin-bottom: 0.5rem;
}

#privacy-policy-container code {
    background-color: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

#privacy-policy-container section.pp-section {
    margin-bottom: 2rem;
}

/*----------------FOOTER-----------------*/


footer {
    display: flex;
    flex-wrap: nowrap; /* plus de wrap sur grand écran */
    justify-content: space-between; /* espace entre les blocs */
    align-items: flex-start; /* garder l'alignement vertical en haut */
    gap: 2rem;
    padding: 3rem 5%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

footer h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #fff;
}

footer h4 {
    margin: 0.3rem 0;
    font-weight: normal;
    font-size: 1rem;
}

footer .contact,
footer .footer-pages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Liens du footer */
footer .footer-pages a {
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s, transform 0.3s;
}

footer .footer-pages a:hover {
    color: #6e6e6e;
    transform: translateX(5px);
}

/* Map responsive */
footer iframe {
    border: 0;
    border-radius: 15px;
    max-width: 450px;
    width: 100%;
    height: 375px;
}

/* Responsive - petit écran */
@media screen and (max-width: 1024px) {
    footer {
        flex-wrap: wrap; /* passe en vertical si écran moyen */
        justify-content: center;
        gap: 2rem;
        text-align: center;
    }

    footer iframe {
        width: 90%;
        height: 250px;
    }

    footer .contact,
    footer .footer-pages {
        align-items: center;
    }
}

@media screen and (max-width: 600px) {
    footer {
        flex-direction: column;
        padding: 2rem 3%;
    }
}
