/* General */
:root {
    --primary-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
  font-family: "Merriweather", serif;
  font-weight: 300;
}

h1, h2, h3, h4 {
    font-family: "Playfair Display", serif;
}

h4 {
    font-size: 1.2rem;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 10rem;
    width: 100%;
    padding: 0 10%;
}

.top-header__logo {
    z-index: 9999;
}

.top-header__logo img {
    width: clamp(5rem, 9vw, 8rem);
}

.top-header__toggle-nav-button {
    height: 2rem;
    width: 2rem;
    background-image: url("/img/burger-iconW.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 9999;
}

.top-header__nav {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    color: var(--primary-color);
    z-index: 1;
}

.top-header__nav-list {
    text-align: end;
    line-height: 3rem;
    margin-top: 6rem;
    margin-right: 10%;
}

.active {
    display: block;
}

/* Accueil*/
.accueil__header {
    position: relative;
    height: 100vh;
    min-height: 400px;
    width: 100%;
    color: var(--primary-color);
    z-index: 1;
}

.accueil__header--bg {
    position: absolute;
    height: 100vh;
    min-height: 400px;
    width: 100%;
    background-image: url("/img/bg2.jpg");
    background-position: left;
    background-repeat: no-repeat;
    background-size: cover;
    filter: brightness(0.8);
}

.darkness {
    transition: 0.5s;
    filter: brightness(0.1);
}

.accueil__header--content {
    position: absolute;
    height: 100%;
    width: 100%;
    min-height: 400px;
}

.accueil__header--text-container {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.1;
    width: 100%;
    height: 100%;
    padding-top: 3rem;
}

.accueil__header--text-container h1,
.accueil__header--text-container h2 {
    text-transform: uppercase;
}

.accueil__header--text-container h1 {
    font-size: clamp(1.3rem, 8vw, 5rem);
}

.accueil__header--text-container h2 {
    font-size: clamp(0.8rem, 5vw, 2.5rem);
}

.accueil__main--presentation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    padding: 3rem 1rem;
    margin: auto;
}

.accueil__main--presentation-logo {
    width: 5rem;
}

.accueil__main--presentation-container h3 {
    font-size: clamp(1rem, 2vw + 0.7rem, 3rem);
    margin: 2rem 0;
}

.accueil__main--presentation-container p {
    margin: 2rem 0;
}

.accueil__main--presentation-landscape {
    width: clamp(900px, 90vw, 30rem);
    border-radius: 8px;
}

.accueil__main--labels {
    text-align: center;
    padding: 5rem 0;
}

.accueil__main--labels h2 {
    margin-bottom: 3rem;
}

.accueil__main--labels-carroussel {
    display: flex;
    justify-content: space-around;
    max-width: 850px;
    margin: auto;
}

.accueil__main--labels-carroussel img {
    width: clamp(2rem, 20vw, 8rem);
}

.accueil__main--nos-services {
    text-align: center;
    padding: 3rem 5%;
    background: #c6cac3;
}

.accueil__main--services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5rem;
    padding: 3rem 0;
}

.accueil__main--services-container a {
    width: 90%;
    max-width: 300px;
}

.accueil__main--article {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    z-index: 2;
}

.accueil__main--article h3 {
    position: absolute;
    font-size: clamp(0.7rem, 6vw, 1.3rem);
    transition: 0.3s ease;
    z-index: 1;
}

.main-article-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.5);
    transition: filter 0.3s;
    z-index: 0;
}

#bgmain1 {
    background-image: url(/img/cours-equitation.png);
}

#bgmain2 {
    background-image: url(/img/balade.png);
}

#bgmain3 {
    background-image: url(/img/galop.png);
}

#bgmain4 {
    background-image: url(/img/pension.png);
}

.accueil__main--article:hover h3 {
    font-size: clamp(0.8rem, 7vw, 1.6rem);
}

.accueil__main--article:hover .main-article-bg {
    filter: brightness(0.2);
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 3rem 5%;
    text-align: center;
    z-index: 9999;
}

.footer__logo img{
    width: clamp(5rem, 20vw, 7rem);
}

.footer h4 {
    margin-bottom: 1rem;
}
