@font-face {
    font-family: 'Soligant';
    src: url('../font/Soligant.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: #fff5ec;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Tenor Sans';
    color: #000;
    overflow-x: hidden;
}

/* === SCROLL HORIZONTAL (GSAP) === */
.horizontal-scroll {
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.scroll-container {
    display: flex;
    height: 100%;
    width: max-content;
}

.scroll-container>section:not(.separator) {
    flex: 0 0 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
}

/* === HEADER === */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #048560cc;
    font-family: 'Arapey';
    width: 100%;
    font-size: 1.5em;
    position: fixed;
    margin: 0 auto;
    z-index: 100;
}

header a {
    text-decoration: none;
    color: #ffffff;
    transition: all 1s;
    margin-right: 25px;
}

header a:hover {
    border-bottom: 1px solid;
    padding: 0 10px;
}

nav li {
    display: inline;
}

/* Champs de recherche */
#recherche {
    display: none;
}

input[type="search"] {
    border-radius: 100px;
    border: #ffffff solid 2px;
    color: #fff;
    padding: 5px 50px;
    background-color: transparent;
    font-size: 0.7em;
    font-family: 'Sora';
}

::placeholder{
    color: #fff;
}

button {
    border-radius: 50%;
    border: #fff solid 2px;
    padding: 8px;
    background-color: #fff;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

button: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;
}

a:focus,
button:focus,
input:focus {
  outline: 2px dashed #ce0000;
  outline-offset: 3px;
}

/* === SECTION HERO === */
.hero {
    background-image: url('../Images/Peinture/Le-Brun_La-paix-ramenant-abondance.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    align-items: end !important;
}

.hero div {
    margin-left: 15px;
    color: white;
    font-family: 'Sora';
    font-size: 1.5em;
    padding-left: 20px;
}

.hero div p {
    position: relative;
    bottom: 100px;
    font-size: 1.2em;
}
/* === TITRES === */
h1 {
    font-family: 'Soligant';
    font-weight: normal;
    font-size: 17em;
    margin: 0;
}

h2 {
    font-family: 'Arapey';
    font-weight: 400;
    font-size: 5em;
    color: #AF7A08;
    font-style: italic;
}

h2::after {
    content: '';
    display: block;
    width: 200px;
    height: 2px;
    background: #b69100;
    margin-top: 5px;
}

/* === SECTION DE PRÉSENTATION === */
.presentation {
    height: 100vh;
    position: relative;
}

.text p {
    width: 60%;
    margin-left: 100px;
    font-size: 1.3em;
}

.presentation h2 {
    margin-left: 100px;
}

/* === EFFET SÉPARATEUR DIAGONAL === */
.separator {
    background-color: #fff;
    flex: 0 0 350px;
    transform: skew(-35deg);
    z-index: -1;
}

/* === DÉCORS D’IMAGES EN FOND === */
.img-decor {
    position: relative;
}

.img-decor img:last-child {
    position: absolute;
}

/* Positionnement spécifique pour chaque décor */
#decor1 {
    top: 70px;
    right: 105px;
}

.img-decor:nth-of-type(1) {
    transform: translateY(450px);
}

#decor2 {
    top: -95px;
    left: 105px;
}

.img-decor:last-of-type {
    transform: translate(460px, 120px);
}

.img-decor:nth-of-type(3) {
    transform: translate(300px, 190px);
}

#decor3 {
    position: absolute;
    top: 70px;
    left: -140px;
    z-index: 1;
}

#decor4 {
    top: 20px;
    left: 40px;
    z-index: 1;
}

.img-decor:nth-of-type(4) {
    transform: translate(-300px, 610px);
}

/* === MISE EN VALEUR DES DERNIÈRES ŒUVRES === */
.update h2 {
    width: 950px;
    margin: 0;
    margin-top: 350px;
}

.ajouts {
    display: flex;
    gap: 20px;
    margin: 0 500px 0 30px;
}

.last-update {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px;
    border-radius: 10px;
    width: 1200px;
}

.last-update p {
    border-bottom: 2px solid black;
    padding-top: 20px;
    font-size: 2.5em;
}

.last-update:nth-child(odd) {
    background-color: #af7a0888;
}

.last-update:nth-child(even) {
    background-color: #0a5d4696;
}

.lien {
    align-self: flex-end;
}

.lien a {
    color: #990000;
    font-size: 1.5em;
    padding-right: 25px;
    transition: ease-in 0.3s;
}

.lien a:hover{
    color: #fff5ec;
}

.last-update img {
    max-width: 490px;
    height: auto;
}

/* === LISTE DES CATÉGORIES === */
.categorie {
    margin-right: 50px;
}

.categorie h2 {
    margin-bottom: 30px;
    text-transform: uppercase;
}

.categorie div {
    width: 1000px;
    position: relative;
    right: 610px;
    top: 20px;
}

.categorie div p {
    font-size: 1.5em;
    position: relative;
    left: 50px;
}

.categorie li {
    font-size: 6rem;
    border-bottom: 2px solid black;
    padding-bottom: 20px;
    margin-bottom: 40px;
    list-style: square;
}

.categorie li a {
    color: #000;
    text-decoration: none;
    font-family: 'Soligant';
}

/* === FOOTER === */
footer {
    background-image: url('../Images/Peinture/Bracquemond_Terasse.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 100vh;
}

.info-footer {
    width: 50%;
    background-color: #0000008a;
    backdrop-filter: blur(5px);
    font-size: 1.2rem;
    padding-left: 20px;
    padding-top: 20px;
    color: #fff;
    height: 98%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h3 {
    font-size: 5rem;
    font-family: 'Soligant';
    font-weight: 400;
    margin-bottom: 0;
    width: 50%;
}

.info-footer div {
    font-size: 2.5rem;
}

.info-footer li {
    margin-bottom: 10px;
}

.info-footer a {
    color: #fff;
    text-decoration: none;
}

/* === MEDIA QUERIES POUR ADAPTATION DES PETITS ÉCRANS === */
@media screen and (max-height: 900px) {
    header {
        font-size: 1.5em;
    }

    h1 {
        font-size: 17em;
    }

    .hero div {
        font-size: 1em;
        padding-left: 10px;
    }

    .hero div p {
        bottom: 50px;
        width: 90%;
    }

    .text p {
        font-size: 1.12em;
    }

    .last-update img {
        max-width: 450px;
    }

    .img-decor img {
        width: 200px;
    }

    /* Positionnement spécifique pour chaque décor */
    #decor1 {
        top: 70px;
        right: 55px;
    }

    #decor2 {
        top: -115px;
        left: 65px;
    }

    #decor3 {
        top: 30px;
        left: -50px;
    }

    #decor4 {
        top: 10px;
        left: 40px;
    }

    .img-decor:nth-of-type(4) {
        transform: translate(-300px, 490px);
    }

}

@media screen and (max-width: 1200px) {
    header {
        font-size: 1.5em;
    }

    .recherche {
        display: none;
    }

    #recherche {
        display: block;
    }

    h1 {
        font-size: 15em;
    }

    .hero div {
        font-size: 1em;
        padding-left: 10px;
    }

    .hero div p {
        bottom: 50px;
    }

    .hero img {
        padding-bottom: 130px;
        padding-left: 100px;
        width: 150px;
    }

    .last-update {
        flex-direction: column;
        max-width: 750px;
        max-height: 850px;
    }

    .last-update img {
        max-width: 290px;
    }

    .last-update p {
        font-size: 2em;
        padding-top: 10px;
    }

    h3 {
        width: 80%;
    }

}