font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}


@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('/Polices/Roboto/static/Roboto-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}


@font-face {
    font-family: 'Titre';
    src: url('/Polices/Titre/GreatVibes-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}


:root {
    --grisClair: #F6F6F6;
    --grisNuance2: #DBD9D9;
    --grisNuanceBord: #ffffff5d;
    --grisNuanceTransparent: #00000042;
    --grisFonce: #3C3C3C;
    --blanc: white;
    --noir: black;
    --vert-ClaireVif: #00ff00;
    --vert: #145814;
    --vert-Fonce: #093109;
    --rougeRupture: #e61515;
    --couleurMiel: #E4A60A;
    --couleurMiel-Fonce: rgb(66, 57, 26);
    --ombre1: rgba(45, 49, 49, 0.15) 0px 2px 8px 0px;
    --ombre2: rgba(45, 49, 49, 0.1) 0px 4px 12px 0px;
    --ombreForte: 0 0 20px 4px rgb(0 0 0 / 45%);
    --ombreMoyenne: 0 0 16px 0px rgb(0 0 0 / 35%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html,
body {
    background-color: #4D5E71;
    background-image: url('/img/Fond.webp');
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}

.Logo:hover {
    box-shadow: var(--ombreMoyenne);
    outline: none;
}

.Logo img {
    height: 2rem;
    width: auto;
}

.Logo h1 {
    color: var(--blanc);
    font-size: 1.5rem;
}

.Logo h1 font {
    color: var(--vert);
}


.info {
    width: 100%;
    max-width: 900px;
    margin: 10px auto 20px auto;
    font-family: 'Roboto', sans-serif;
    border-radius: 1rem;
    padding: 10px;
    border: solid 3px var(--grisNuanceBord);
    color: var(--blanc);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.info-text {
    flex-grow: 1;
    min-width: 0;
}

.info h3 {
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--blanc);
    word-break: break-word;
}

.info h3 font {
    font-weight: 500;
}

.info h4 {
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--blanc);
    margin-top: 5px;
}

#btn-clear-search {
    flex-shrink: 0;
}

button {
    outline: none;
    border: none;
    border-radius: 20rem;
    height: 58px;
    width: 58px;
    cursor: pointer;
    color: var(--blanc);
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

button.rectangle {
    border-radius: 3rem;
    height: 40px;
    width: 100%;
    font-size: 1.3rem;
}

button#btn-top {
    padding-top: 7px;
    z-index: 19;
    position: fixed;
    bottom: 20px;
    right: 20px;
}

button#btn-top svg {
    width: 100%;
    height: 100%;
    padding: 0;
}

button#btn-top.off {
    right: -60px;
}

button#btn-top svg path {
    width: 100%;
}

button svg path {
    fill: var(--blanc);
    transition: fill 0.2s ease;
    z-index: 1;
    position: relative;
}

button svg {
    height: 40px;
    width: 40px;
    z-index: 1;
    position: relative;
}


button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            var(--blanc),
            transparent);
    transform: translateX(-100%);
    z-index: 0;
}



button:hover::after,
button:focus::after {
    animation: scan 1.5s ease-in-out;
}

button:active::after {
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}


button:hover,
button:focus-visible {
    outline: solid 3px var(--grisNuanceBord);
}


header {
    width: 100%;
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    top: 10px;
    left: 0;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 20;
}

.MenuFiltreGroupe {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.GroupSearch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-grow: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.5s ease;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    margin: 0 auto;
}

.Logo {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 20rem;
    cursor: pointer;
    border: solid 3px var(--grisNuanceBord);
    transition: all 0.5s ease;
    flex-shrink: 0;
    width: auto;
    height: auto;
    aspect-ratio: 216.77 / 58;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.Logo h1 {
    color: var(--blanc);
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.Logo img {
    height: 2rem;
    width: auto;
    position: relative;
    z-index: 1;
}

.Logo::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            var(--blanc),
            transparent);
    transform: translateX(-100%);
    z-index: 0;
    transition: transform 0.3s ease;
}

.Logo:hover::after {
    animation: scan 1.5s ease-in-out;
}

.filtres {
    width: 100%;
    max-width: 900px;
    margin: 10px auto 20px auto;
    font-family: 'Roboto', sans-serif;
    border-radius: 1rem;
    padding: 10px;
    border: solid 3px var(--grisNuanceBord);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.filtres.off {
    display: none;
}

.filtres h1 {
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--blanc);
    word-break: break-word;
}

.GroupSelectFiltres {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
}

.MenuDeroulantListe {
    width: 100%;
    background-color: var(--grisNuanceTransparent);
    border-radius: 30px;
}

button.btn-enteteMD {
    width: 100%;
    height: 50px;
    border-radius: 20rem;
    background-color: unset;
    color: var(--blanc);
    font-size: 1.5rem;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.GroupSelectFiltres:has(.MenuDeroulantListe.on) {
    border: solid 3px var(--grisNuanceBord);
    border-radius: 30px;
}

.GroupSelectFiltres .MenuDeroulantListe.on button.btn-enteteMD {
    border-bottom: none;
    border-radius: 30px 30px 0 0;
}

.GroupSelectFiltres .MenuDeroulantListe.on button.btn-enteteMD:hover,
.GroupSelectFiltres .MenuDeroulantListe.on button.btn-enteteMD:focus-visible {
    outline: none;
}

.GroupSelectFiltres .MenuDeroulantListe.on button.btn-enteteMD:hover::after {
    animation: scan 1.5s ease-in-out;
}

.GroupSelectFiltres .MenuDeroulantListe.off button.btn-enteteMD svg {
    transform: rotate(0deg);
}

.GroupSelectFiltres .MenuDeroulantListe button.btn-enteteMD svg {
    height: 24px;
    width: 24px;
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}



.GroupSelectFiltres .MenuDeroulantListe fieldset {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px 20px;
    padding: 15px;
    border: unset;
    color: var(--blanc);
    font-size: 1.5rem;
    border-top: none;
    border-radius: 30px;
    font-family: 'Roboto', sans-serif;
}

.GroupSelectFiltres .MenuDeroulantListe.off fieldset {
    display: none;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]+label {
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    display: inline-block;
    line-height: 25px;
    user-select: none;
    font-family: sans-serif;
    color: var(--blanc);
    font-size: 1.2rem;
}

input[type="checkbox"]+label::before {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background-image: url('/img/icones/CheckBoxOff.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.2s ease;
}

input[type="checkbox"]:checked+label::before {
    background-image: url('/img/icones/CheckBoxOn.svg');
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.Logo:hover {
    box-shadow: var(--ombreMoyenne);
}

input {
    padding: 10px 20px;
    height: 58px;
    color: var(--blanc);
    border-radius: 20rem;
    border: none;
    font-size: 1.5rem;
    outline: none;
    border: solid 3px var(--grisNuanceBord);
    transition: all 0.5s ease;
}

input#Search {
    max-width: 450px;
    width: 80%;
    z-index: 20;
}

input::placeholder {
    color: var(--blanc);
    font-size: 1.5rem;
}

input:not(.edit-input):focus,
input:not(.edit-input):hover {
    box-shadow: var(--ombreMoyenne);
}

.fondFlou {
    background-color: var(--grisNuanceTransparent);
    backdrop-filter: blur(4px);
}

.Group-btn {
    display: flex;
    width: 100%;
    gap: 10px;
}

#btnClose,#btnSearchScann {
    display: none;
}

.btn-Livre {
    display: flex;
    margin-top: 10px;
    flex-direction: column;
    gap: 10px;
}

.ListeLivre {
    width: 100%;
    display: flex;
    padding: 30px 10px;
    max-width: 900px;
    gap: 50px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto;
}

.livre {
    width: 230px;
    height: 400px;
    padding: 30px 10px;
    border: solid 5px var(--grisNuanceBord);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.livre:hover {
    box-shadow: var(--ombreMoyenne);
    transform: translateY(-5px);
    backdrop-filter: blur(9px);
}

.livre .couverture {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50%;
    width: 100%;
    overflow: hidden;
}

.livre .couverture img {
    height: 100%;
}

.infoLivre {
    display: flex;
    flex-direction: column;
    height: 50%;
    justify-content: space-around;
}

h2.titreLivre {
    font-size: 1.4rem;
    font-weight: 300;
    margin-top: 5px;
    color: var(--blanc);
    overflow-y: auto;
    font-family: 'Roboto', sans-serif;
    max-height: 200px;
    padding-right: 8px;
}


h2.titreLivre::-webkit-scrollbar {
    width: 8px;
}

h2.titreLivre::-webkit-scrollbar-track {
    background: var(--grisNuanceTransparent);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

h2.titreLivre::-webkit-scrollbar-thumb {
    background: var(--grisNuance2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

h2.titreLivre::-webkit-scrollbar-thumb:hover {
    background: var(--grisClair);
}

footer {
    width: 100%;
    height: 100px;
}


.afficherSearchBar #Search {
    display: flex;
    width: 60%;
    z-index: 20;
}

.afficherSearchBar {
    z-index: 30;
    width: 100%;
    height: 100%;
    height: 80px;
    top: -10px;
    background-color: var(--grisNuanceTransparent);
    backdrop-filter: blur(4px);
    gap: 10px;
    max-width: none;
    position: absolute;
}

.afficherSearchBar #btnClose,
.afficherSearchBar #btnSearchScann {
    display: flex;
    justify-content: center;
    align-items: center;
}

.afficherSearchBar button {
    height: 40px;
    width: 40px;
}

.afficherSearchBar button svg {
    height: 30px;
    width: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 10px;
    width: auto;
    height: 65px;
    border-radius: 20rem;
    z-index: 18;
    gap: 20px;
    padding: 0 6px;
    left: 50%;
    transform: translateX(-50%);
}

.pagination .page-info {
    color: var(--blanc);
    font-size: 1.3rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

.btn-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-page#btn-prev {

    padding-left: 10px;

}

.btn-page.off {
    opacity: 0.5;
    pointer-events: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: var(--grisNuanceTransparent);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 40px 10px;
}


.modal-content {
    width: 100%;
    max-width: 900px;
    border: solid 3px var(--grisNuanceBord);
    border-radius: 1rem;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding-top: 50px;
}


.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1010;
}

.modal-close svg {
    width: 30px;
    height: 30px;
}

.modal-body {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    align-items: stretch;
}

.modal-cover {
    flex-shrink: 0;
    width: 35%;
    max-width: 250px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--ombreMoyenne);
}

.modal-info {
    flex-grow: 1;
    color: var(--blanc);
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.modal-info p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.modal-info p strong {
    font-weight: 500;
    color: var(--blanc);
    display: inline-block;
    width: 120px;
}

.modal-genres {
    margin-top: 10px;


    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;

}

.modal-genres strong {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    height: 110px;
    overflow: auto;
    padding: 5px 5px;
    flex-grow: 1;
}

.tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--grisNuanceTransparent);
    border: solid 2px var(--grisNuanceBord);
    border-radius: 20rem;
    padding: 5px 10px;
    height: 34px;
    font-size: 0.9rem;
    color: var(--blanc);
}

.tag .close-tag {
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.tag .close-tag:hover {
    opacity: 1;
}

.tag .close-tag path {
    fill: var(--blanc);
}

.tag button.close-tag {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.tag button.close-tag:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.2);
}


.tag button.close-tag svg {
    width: 16px;
    height: 16px;
}

.tag button.close-tag svg path {
    fill: var(--blanc);
}

.add-tag {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 300;
    padding: 0;
    padding-bottom: 4px;
    border: solid 2px var(--grisNuanceBord);
}

.modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.modal-footer .rectangle {
    width: auto;
    padding: 0 30px;
}

.tags-container::-webkit-scrollbar {
    width: 8px;
}

.tags-container::-webkit-scrollbar-track {
    background: var(--grisNuanceTransparent);
    border-radius: 10px;
}

.tags-container::-webkit-scrollbar-thumb {
    background: var(--grisNuance2);
    border-radius: 10px;
}

.tags-container::-webkit-scrollbar-thumb:hover {
    background: var(--grisClair);
}

.tag-input-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    width: 230px;

}

.new-genre-input {
    background: none;
    border: none;
    outline: none;
    color: var(--blanc);
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    flex-grow: 1;
    min-width: 100px;
}

.new-genre-input::placeholder {
    color: var(--grisNuanceBord);
    font-style: italic;
}

.tag-input-wrapper button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tag-input-wrapper button:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.2);
}

.tag-input-wrapper button svg {
    width: 18px;
    height: 18px;
}

.tag-input-wrapper button.save-tag svg path {
    fill: var(--vert);
}

.tag-input-wrapper button.cancel-tag svg path {
    fill: var(--rougeRupture);
}


input.new-genre-input:focus,
input:hover {
    box-shadow: unset;
}

input.new-genre-input::placeholder {
    color: var(--grisNuanceBord);
    font-size: 0.9rem;
}




.modal-info p.editable-line {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 8px;
}

.modal-info p.editable-line>strong {
    flex-shrink: 0;
}


.editable-wrapper {
    flex-grow: 1;

    position: relative;
}


.display-state {
    display: flex;

    word-break: break-word;
}


.edit-state {
    display: none;

}

.edit-input {

    background: transparent;
    border: none;
    border-bottom: 1px solid var(--grisNuanceBord);



    color: var(--blanc);
    font-size: 1.2rem;

    font-weight: 300;

    font-family: 'Roboto', sans-serif;

    width: 100%;

    padding: 0;
    margin: 0;
    height: auto;

    border-radius: 0;

    outline: none;
}


.edit-input:focus,
.edit-input:hover {
    border-bottom-color: var(--blanc);

    box-shadow: none;

}


.edit-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    border-radius: 20rem;
}


.edit-controls button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;

    transition: all 0.2s ease;
    flex-shrink: 0;
}

.edit-controls button:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.2);
}

.edit-controls button svg {
    width: 20px;
    height: 20px;
}

.edit-controls button.edit-btn svg path {
    fill: var(--blanc);
}

.edit-controls button.save-edit svg path {
    fill: var(--vert-ClaireVif);
}

.edit-controls button.cancel-edit svg path {
    fill: var(--rougeRupture);
}

.BtnLargeRectangle {
    border-radius: 30px;
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.GroupBtnLargeRectangle {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-around;
}

.GroupBtnLargeRectangle img {
    height: 100px;
    width: auto;
}

.GroupBtnLargeRectangle p {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--blanc);
    margin-top: 10px;
    width: 80%;
    font-family: 'Roboto', sans-serif;
    text-align: left;
}

#RechercheParCodeBarre.off {
    display: none!important;
}

#RechercheParCodeBarre {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 25;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--blanc);
}

#RechercheParCodeBarre h1{
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: left;
    color: var(--blanc);
    font-family: 'roboto', sans-serif;
}

select{
    width: auto;
    outline: none;
    margin: auto;
    padding: 10px 20px;
    border-radius: 20rem;
    background-color: var(--grisNuanceTransparent);
    color: var(--blanc);
    border: solid 3px var(--grisNuanceBord);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 20px;
    cursor: pointer;
}

select option {
    background-color: var(--grisFonce);
    color: white;
}

@media (max-width: 850px) {
    .Group-btn {
        display: flex;
        width: auto;
        gap: 10px;
    }

    #Search {
        display: none;
    }
}

@media (max-width: 650px) {
    .ListeLivre {
        justify-content: center;
    }

    .modal-body {
        flex-direction: column;
        align-items: center;
        align-items: stretch;
    }

    .modal-cover {
        width: 60%;
        max-width: 200px;
        align-self: center;
    }

    .modal-info {
        width: 100%;


    }

    .modal-footer {
        justify-content: center;
    }

    .modal-footer .rectangle {
        width: 100%;
    }


    .tags-container {

        height: 110px;
        flex-grow: 0;

    }

    .tag {
        height: 30px;
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .tag button.close-tag {
        width: 20px;
        height: 20px;
    }

    .tag button.close-tag svg {
        width: 14px;
        height: 14px;
    }

    .add-tag {
        width: 30px;
        height: 30px;
        font-size: 1.3rem;
    }

    .tag-input-wrapper {
        height: 30px;
        padding: 4px 8px;
    }

    .new-genre-input {
        font-size: 0.8rem;
    }

    .tag-input-wrapper button {
        width: 20px;
        height: 20px;
    }

    .tag-input-wrapper button svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 445px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .Logo {
        width: 90%;
        max-width: 90vw;
        margin: 0 auto;
    }

    .Logo img {
        height: auto;
        width: auto;
        max-height: 100%;
        max-width: 100%;
    }

    .Logo h1 {
        font-size: 2.3rem;
    }

    .afficherSearchBar {
        height: 180px;
        gap: 3px;
    }

    #btnClose {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .afficherSearchBar #btnSearchScann {
        position: absolute;
        top: 10px;
        right: 70px;
    }

    .afficherSearchBar #Search {
        width: 80%;
    }

    .info {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    #btn-clear-search {
        align-self: flex-end;
    }


    .modal-info p.editable-line {
        gap: 5px;

        flex-wrap: wrap;
        align-items: center;

    }

    .edit-controls {
        gap: 3px;
    }

    .edit-controls button {
        width: 24px;
        height: 24px;
    }

    .edit-controls button svg {
        width: 18px;
        height: 18px;
    }

    button#btn-top {
        bottom: 75px;
    }
}

@media (max-width: 421px) {
    .Logo h1 {
        font-size: 2rem;
    }
}

@media (max-widh: 370px) {
    .Logo h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 330px) {
    .Logo h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 300px) {
    .Logo h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 280px) {
    .pagination {
        width: auto;
    }

    .Logo h1 {
        font-size: 1.2rem;
    }
}