body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.topbar {
    top: 10px;
    left: 0;
    right: 0;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 20px;
}

.logo {
    height: 200px;
    margin-top: 10px;
}

.logo-address-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.nav-links {
    display: flex;
    gap: 40px;
    padding: 7% 70px 0 0;
    font-family: "Cormorant", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 1.5em;
}

.nav-links a {
    color: black;
    text-decoration: none;
    padding: 5px 0;
}

.nav-links a.active {
    border-bottom: 2px solid black;
}

.content {
    padding: 20px;
    text-align: center;
}

h1 {
    font-family: "Cormorant", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 3.25em;
    margin-top: 25px;
    margin-bottom: 50px;
}

h2 {
    font-family: "Cormorant", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 2em;
    margin: 0px 0 20px 0;
}

.introduction {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: justify;
    font-family: "Cormorant", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 1.5em;
    line-height: 1.6;
}

.books-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 100px;
    margin-top: 100px;
    margin-bottom: 100px;
    padding: 0 20px;
}

.book-card {
    width: 250px;
    text-decoration: none;
    color: black;
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-cover {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.book-title {
    font-family: "Cormorant", serif;
    font-weight: 500;
    font-size: 1.8em;
    margin-top: 12.5px;
    margin-bottom: 0px;
}

.book-genre {
    font-family: "Cormorant", serif;
    font-style: italic;
    font-size: 1.2em;
    margin:0px;
    margin-top:5px;
    margin-bottom: 12.5px;
}

.book-price {
    font-family: "Cormorant", serif;
    font-size: 1.5em;
    margin:0px;
    margin-bottom: 12.5px;
}

.buy-button {
    display: inline-block;
    padding: 12.5px 37.5px;
    background-color: transparent;
    border: 2px solid black;
    color: black;
    font-family: "Cormorant", serif;
    font-size: 1.4em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-button:hover {
    background-color: black;
    color: white;
}

@media (max-width: 768px) {
    .books-container {
        flex-direction: column;
        align-items: center;
    }
    
    .book-card {
        width: 80%;
        max-width: 300px;
    }
}


/* Page individuelle d'un livre */

.book-detail {
    display: flex;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 60px;
    gap: 50px;
    align-items: flex-start;
}

.book-cover-section {
    flex: 0 0 350px;
}

.detail-cover {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.book-info {
    flex: 1;
    text-align: left;
}

.book-info h1 {
    margin-top: 0;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.author {
    font-family: "Cormorant", serif;
    font-weight: 400;
    font-size: 1.3em;
    margin: 0 0 30px 0;
    color: #333;
}

.book-description {
    font-family: "Cormorant", serif;
    font-size: 1.4em;
    line-height: 1.6;
    margin-bottom: 40px;
}

.book-description p {
    margin-bottom: 20px;
    text-align: justify;
}

.purchase-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.detail-price {
    font-family: "Cormorant", serif;
    font-size: 2em;
    margin: 0;
}

.buy-button-large {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    border: 2px solid black;
    color: black;
    font-family: "Cormorant", serif;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-button-large:hover {
    background-color: black;
    color: white;
}

.adresse-postale {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    color: #000000;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

@media (max-width: 768px) {
    .book-detail {
        flex-direction: column;
        align-items: center;
    }

    .book-cover-section {
        flex: 0 0 auto;
        width: 80%;
        max-width: 300px;
    }

    .book-info {
        text-align: center;
    }

    .book-description {
        text-align: left;
    }

    .purchase-section {
        flex-direction: column;
        gap: 20px;
    }
}