body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    
    background-color: #AA8D5B;
    background-image: url("img/couv.png");
    background-position: center top;
    background-size: 120% auto;
    background-repeat: no-repeat;

    color: #2c241b;
}

h1 {
    text-align: center;
    margin: 30px 0;
    color: #AA8D5B;
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 30px;
    padding: 40px;
    box-sizing: border-box;
}

h2 {
    margin-top: 20px;
    margin-bottom: 20px;
    color: #AA8D5B;
    text-decoration: underline;
}

.grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.card {
    position: relative;
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    height: 260px;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    background: #ddd;
    border: 1px solid #000;
    transition: transform 0.2s ease;
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card:hover {
    transform: translateY(-4px);
}

.overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    box-sizing: border-box;
    background: white;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-top: 1px solid #000;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}

.btn {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #AA8D5B;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
}

.btn:hover {
    background-color: #8d754c;
}
@media (max-width: 1100px) {
    .card {
        flex: 0 0 calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }
}

@media (max-width: 800px) {
    .card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 540px) {
    .card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
