body {
    background-color: #5b4f47   ;
    height: 100%;
    margin: 0;
    font-family: 'Roboto';
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #f6f1e3   ;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

header > h1 {
    font-family: 'Lora',serif;
    text-align: center;
    font-size: clamp(30px, 5vw, 50px);
    padding-bottom: 10px;
}

header > h1 > img {
    filter: drop-shadow(0 0 0.75rem #E5E0AC);
    max-height: 300px;
    height: 20vw;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

header > a > img{
    filter: drop-shadow(0 0 0.75rem #E5E0AC);
    max-height: 300px;
    height: 20vw;
    width: auto;
    -webkit-transition : -webkit-filter 500ms linear;
    transition: filter 500ms linear;
}

header > a > img:hover{
    filter: drop-shadow(0 0 0.75rem #2E3182);
    max-height: 300px;
    height: 20vw;
    width: auto;
}


header > a{
    text-decoration: none;
    font-size: clamp(1rem,2vw,1.5rem);
    color: black;
    font-family: 'Lora',serif;
}

#deco {
    display: flex;
    justify-content: center;
}

.connect {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #5b4f47;
    color: white;
    text-decoration: none;
    
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    margin: 10px;
}

.grid-box{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    height: 100%;
    gap: 20px;
    max-width: 100vw;
}

.grid-box > div {
    border: none;
    border-radius: 10px;
    font-size: 30px;
    text-align: center;
}

.box {
    display: grid;
    grid-template-columns: 33% 66%;
    grid-template-rows: auto;
    position: relative;
    height: 100%;
}

.boxA {
    position: relative;
    text-align: center;
    background-color: #f6f1e3;
    margin: auto;
    width: 95%;
    border-radius: 1%;
    height: 100%;
    overflow: hidden;
}

.boxA > img {
    width: 90%;
    height: auto;
    max-width: 600px;
    margin: auto;
    margin-top: 20px;
    transition: transform .5s ease;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0px 2px 22px -3px rgba(0,0,0,0.75);
}

.boxA > img:hover {
    transform: scale(1.2);
}

.boxA > img {
    transition: transform 1.7s;
    cursor: zoom-in;
}

.boxA p {
    padding-top: 10px;
}

.boxA {
    overflow: hidden;
}

.boxA > h2 {
    text-align: center;
    font-size: clamp(1rem,2vw,1.5rem);
    font-family: 'Lora';
}

.boxB {
    margin: auto;
    background-color: #f6f1e3;
    height: 100%;
    width: auto;
    border-radius: 5px;
}

.boxB > p {
    padding: 10px;
}

.boxB img {
    width: 50px;
    height: auto;
    margin: 5px;
}

.boxB ul{
    background-color: white;
    box-shadow: 0px 2px 22px -3px rgba(0,0,0,0.75);
    margin: 15px;
    list-style: none;
    border: 1px solid black;
    border-radius: 5px;
}

.boxB li{
    display: flex;
    align-items: center;
}

.boxB h2{
    text-align: center;
    margin-top: 5px;
}

.boxC {
    width: 100%;
    grid-column: span 2;
    margin-left: 10px;
    margin-top: 10px;
    border-radius: 5px;
    background-color: #f6f1e3;
    box-sizing: border-box;
}

.boxC h2{
    padding-top: 5px;
    text-align: center;
}

.boxC h3{  
    text-align: center;
    margin: 10px;
}

.boxC form{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.boxC form input{
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid black;
}

.boxC form button {
    display: block;
    justify-content: center;
    margin: 10px auto;
}

.boxC > p {
    text-align: center;
    padding: 10px;
}

.commentaire {
    background: white;
    border-radius: 5px;
    padding: 5px;
    margin: 5px auto;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.103);
    width: 60%;
    position: relative;
    border: 1px solid #ccc;
}

.delete-form {
    position: absolute;
    top: -20px;
    right: 5px;
    background: none;
    border: none;
}

.delete-button {
    background: none;
    border: none;
    color: red;
    font-size: 20px;
    cursor: pointer;
}

.delete-button:hover {
    color: darkred;
}

.commentaire > p {
    margin-top: 10px;
}

.fa-star {
    color: #ffd900;
}

.fa-star-half {
    color: #ffd900;
}

.stars {
    display: flex;
    justify-content: center;
}

.star {
    position: relative;
    display: inline-block;
    font-size: 30px;
}

.star-under {
    color: #ddd;
}

.star-over {
    color: #f80;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.star-visible {
    display: inline-block;
}

.note { 
    border: none;
    float: left;
  }
  
.note > input { 
    display: none; 
} 

.note > label:before { 
    margin: 5px;
    font-size: 1.25em;
    font-family: FontAwesome;
    display: inline-block;
    content: "\f005";
}
  
.note > .half:before { 
    content: "\f089";
    position: absolute;
}
  
.note > label { 
    color: #ddd; 
   float: right; 
}

.note > input:checked ~ label{
    color: #ffd900;
}

.note > input:hover ~ label{
    color: #ffe96b;
}

p.resume {
    padding: 30px;
    line-height: 20px;
}

h2.resume {
    position: relative;
    margin-top: 10px;
    text-align: center;
}

.livre {
    width: 100%;
    min-height: auto;
    max-height: 30rem;
    background-color: #f6f1e3;
    transition: transform .5s ease;
}

.livre > a > img {
    min-height: 25%;
    max-height: 50%;
    width: auto;
    height: auto;
    border-radius: 5px;
    box-shadow: 0px 2px 22px -3px rgba(0,0,0,0.75);
}

.livre:hover {
    transform: scale(1.1);
    border: 1px solid black;
}


.livre > h2 {
    font-family: 'Lora';
    font-size: 2vw;
    font-size: clamp(1rem, 2vw, 1.5rem);
    padding-bottom: 30px;
}

.livre > p {
    font-size: clamp(1rem,2vw,1.5rem);
    margin-top: auto;
}

footer {
    background-color: #f6f1e3;
    color: black;
    grid-column:  span 4;
    margin-top: 10px;
}

footer > p{
    font-family: 'roboto';
    font-size: clamp(1rem,2vw,1.5rem);
    text-align: center;
}

.merci {
    background-color: #E5E0AC;
}

form {
    background-color: #f6f1e3;
    border-radius: 10px;
    max-width: 600px;
    margin: 5px auto;
}

form legend {
    color:white;
}

.connectform {
    background-color: #f6f1e3;
    border-radius: 10px;
    max-width: 600px;
    margin: 5px auto;
    padding: 30px;
}

.connectform p {
    margin: 10px;
}

fieldset {
    border: none;
}

legend {
    background-color: #5b4f47;
    border-radius: 5px;
    margin: 15px;
    text-align: center;
    padding: 5px 20px;
}

label {
    display: block;
    margin-bottom: 10px;
}


input[type='reset'] {
    background-color: #5b4f47;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    margin: 10px;
}
input[type=text], textarea {
    width: 100%;

}

button {
    background-color: #5b4f47;
    color: white;
    margin: 10px;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}
.recherche{
    width: 100%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #5b4f47;
}

.menu li a, .dropbtn {
    display: inline-block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    background-color: #f6f1e3;
    color: black;
    border-radius: 5px;
    margin: 5px;
}

table {
    margin: auto;
    width: 80%;
    border-collapse: collapse;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    text-align: left;   
}

table, th, td {
    border: 1px solid black;
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: black;
    color:white;
}

input[type="submit"] {
    padding: 10px 20px;
    margin: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

.demande-table {
    width: 80%;
    border-collapse: collapse;
    background-color: white ;
    margin: 20px auto;
    font-size: 18px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.demande-table th, .demande-table td {
    padding: 12px;
    border: 1px solid #ddd;
}
.demande-table th {
    background-color: #f6f1e3;
    color: black;
}

.action-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    margin: 2px;
}
.action-button:hover {
    background-color: #45a049;
}
.refuser-button {
    background-color: #d9534f !important;
    color: white;
}
.refuser-button:hover {
    background-color: #c9302c !important;
}

.demande-form {
    background-color: white;
}

.admin-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.admin-items {
    display: flex;
    gap: 50px; /* Espacement entre les icônes */
}

.admin-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    transition: 0.3s;
}

.admin-link i {
    font-size: 60px; /* Taille des icônes */
    margin-bottom: 10px;
}

.admin-link:hover {
    color: #1abc9c;
    transform: scale(1.1);
}

.carousel {
    padding-top: 10px;
    display: flex;
    overflow: hidden;
    width: 25%;
    height: auto;
    max-width: 600px;
    margin: auto;
    position: relative;
}
.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
}
.carousel img {
    width: 100%;
    display: block;
    border-radius: 5px;
}

input[type="text"], input[type="password"], input[type="number"],select, textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0 10px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    height: 100px;
}

@media (max-width: 900px) {
    
    header > h1 {
        font-size: 1.75rem;
    }
    footer > p {
        font-size: 1rem;
    }
    .grid-box {
        gap: 10px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        max-width: 100%;
    }

    .livre > h2 {
        font-size: 1.4rem;
    }
    .livre > p {
        font-size: 1.2rem;
    }

    .livre:nth-child(2n + 1) {
        transform-origin: left center; 
    }
    
    .livre:nth-child(2n) {
        transform-origin: right center; 
    }

    .livre > a > img {
        min-height: 25%;
        max-height: 40%;
        width: auto;
        height: auto;
    }

    .box {
        grid-template-columns: repeat(1,1fr);
        gap: 10px;
    }

    .boxA {
        margin: auto;
        width: 100%;
    }

    .boxA h2 {
        font-size: 1.4rem;
    }

    .boxA > img {
        width: 90%;
        height: auto;
        max-width: 300px;
        margin: auto;
        margin-top: 20px;
    }
}