body {
    background-color: #ffeede;
    box-sizing: border-box;
    margin: 0;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Arapey';
    width: 100%;
    font-size: 1.7em;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #ffeede49;
    backdrop-filter: blur(15px);
}

header a {
    text-decoration: none;
    color: black;
    transition: all 1s;
    margin-right: 20px;
}

header a:hover {
    border-bottom: 1px solid;
    padding: 0 15px;
}

nav li {
    display: inline;
}

#recherche {
    display: none;
}

.recherche input {
    border-radius: 100px;
    border: #000000 solid 2px;
    padding: 5px 50px;
    background-color: transparent;
    color: #000000;
    font-size: 0.7em;
    font-family: 'Sora';
}

.recherche ::placeholder {
    color: #000000;
    font-family: 'Soligant';
}

.btn-search {
    border-radius: 50%;
    border: #000 solid 2px;
    padding: 8px;
    background-color: #000;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.btn-search:hover {
    background-color: #AF7A08;
    border-color: #AF7A08;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

h1 {
    font-family: 'Arapey';
    font-weight: 400;
    font-size: 7em;
    padding-left: 100px;
    color: #AF7A08;
}

h1::after {
    content: '';
    display: block;
    width: 200px;
    height: 3px;
    background: #AF7A08;
    margin-top: 5px;
}

main {
    padding: 10px;
}

.message {
    text-align: center;
    font-size: 2rem;
    color: #702c05;
    font-family: 'Sora';
    position: absolute;
    left: 25%;
}


.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.card {
    font-family: 'Tenor Sans';
    font-size: 1.3em;
    font-weight: 600;
    border-bottom: #000000 solid 2px;
}

.pays {
    font-family: 'Sora';
    font-size: 0.9em;
    color: #702c05;
}

.card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card img {
    max-width: 440px;
    height: auto;
    display: block;
    margin: auto;
    transition: ease-in-out 1s;
    border-radius: 5px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.card a img:hover {
    transform: translateY(-5%);
    opacity: 0.8;
}

.badge {
    font-family: 'Sora';
    font-size: 0.8em;
    border: solid 2px;
    width: fit-content;
    padding: 5px;
    border-radius: 3px;
}

.Architecture {
    color: #14689c;
    border-color: #14689c;
}

.Photographie {
    color: #af1a64;
    border-color: #af1a6a;
}

.Peinture {
    color: #922b21;
    border-color: #922b21;
}

.Sculpture {
    color: #125743;
    border-color: #125743;
}

.Graphisme {
    color: rgb(104, 4, 129);
    border-color: rgb(104, 4, 129);
}

.filtre {
    margin-bottom: 80px;
}

.filtre form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    width: 80%;
    margin: auto;
    background-color: #0a5d4696;
    padding: 8px;
    border-radius: 15px;
}

h2 {
    font-family: 'Arapey';
    font-weight: normal;
    font-size: 3em;
}

form select {
    font-family: 'Sora';
    font-size: 1em;
    width: 200px;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
}

select:hover {
    background-color: #cecece;
}

button:not(.btn-search) {
    border: 0px;
    background: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    margin-right: 50px;
    transition: ease-in-out 0.3s;
}

button:not(.btn-search):hover {
    border-bottom: solid 2px;
    color: #fff;
}

.hidden-card {
    display: none;
}

.pagination {
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora';
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    padding: 16px;
    width: 10px;
    height: 10px;
    text-decoration: none;
    border: 1.25px solid #127257ea;
    border-radius: 50%;
    color: #000;
    transition: all 0.2s ease;
}

.pagination a:hover,
.pagination span:hover {
    transform: translateY(-5px);
}

.pagination .active {
    background-color: #127257ea;
    font-weight: bold;
    color: white;
}


footer {
    text-align: center;
    font-family: 'Sora';
}

/* Styles pour l'apparition à l'écran */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-in-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

a:focus,
button:focus,
input:focus,
img:focus {
    outline: 2px dashed #ce0000 !important;
    outline-offset: 3px !important;
}

.cards a:focus img {
    border: 5px dashed #ce0000;
}


@media screen and (max-width:1200px) {
    header {
        font-size: 1.5em;
    }

    .recherche {
        display: none;
    }

    #recherche {
        display: block;
    }

    .card img {
        max-width: 290px;
    }

    .card {
        font-size: 1.1em;
    }

    select {
        width: 150px !important;
    }
}