* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "dinosaur", sans-serif;
}

/* PAR DÉFAULT */

ul, li {
    list-style: none;
}

a {
    text-decoration: none;
    color: black;
}

a:hover {
    color: #F4BF42;
}

.container {
    width: 90%;
    margin: auto !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "vag-rundschrift-d", sans-serif;
    color: #B3785D;
}

h1,h2 {
    font-size: 2.5rem;
}

/* SECTION  */

.bg-yellow {
    background-color: #F4BF42;
}

section div {
    display: flex;
    flex-wrap: wrap;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
    margin: auto;
}

section article {
    display: flex;
    flex: 1 1 90%;
    flex-direction: column;
}

section {
    padding: 50px 0;
}

article>img {
    width: 70%;
    margin: auto;
    padding: 50px 0;
}

#partenaire {
    display: flex;
    gap: 20px;
    padding-top: 50px;
}

#partenaire img {
    padding: 0;
    width: 100%;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    margin-top: 50px;
}

.slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.slider img {
    width: 100%;
    object-fit: contain;
}

.slider div {
    width: 60%;
}

#mentions {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.facebook-message {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.facebook-div p {
    width: 100%;
}

/* BOUTONS  */

.button {
    text-decoration: none;
    padding: 10px 50px;
    border-radius: 30px;
    width: fit-content;
}

.button-yellow{
    background-color: #F4BF42;
    border: 2px solid #F4BF42;
    color: white;
}

.button-yellow:hover {
    background-color: white;
    color: #F4BF42;
}

.button-blue {
    background-color: #65C2DF;
    border: 2px solid #65C2DF;
    color: white;
}

.button-blue:hover {
    background-color: white;
    color: #65C2DF;
}

/* CARD  */

.card-article {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-top: 50px;
}

.card-article a {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 90%;
}

.card-article img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.card-article a p {
    text-transform: uppercase;
    font-weight: 600;
    padding-top: 20px;
    font-size: 1.3rem;
    color: #D37833;
}

.card-article a:hover p {
    color: #F4BF42;
}

/* TEAM  */

.card-team {
    display: flex;
    gap: 50px;
    padding-top: 50px;
}

#team-title {
    width: 100%;
}

.card-team h3 {
    font-size: 1.4rem;
    color: #D37833;
}

.card-team div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.card-team img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 3/2;
}

.accomplissement-button {
    margin-top: 10px;
}

/* PAGINATION  */

.pagination {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 100px 0 20px 0;
}

.pagination a {
    display: inline;
    cursor: pointer;
}

/* INFOS PRATIQUES */

.questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    word-break: break-word;
}

.questions label {
    width: 100%;
    background-color: #F4BF42;
    padding: 10px 80px 10px 30px;
    border-radius: 30px;
    display: flex;
    position: relative;
    align-items: center;
}

.questions article div {
    border: 2px solid #F4BF42;
    margin: -5px 20px;
    padding: 0 20px;
    border-radius: 0 0 20px 20px;
    height: 0px;
    overflow: hidden;
}

.questions input {
    display: none;
}

.answer-label p {
    font-weight: 600;
    color: white;
}

.answer-label span {
    display: block;
    width: 20px;
    height: 3px;
    background-color: white;
    position: absolute;
    right: 30px;
}

.deroulant1 {
    transform: translateX(-5px) rotate(45deg);
}

.deroulant2 {
    transform: translateX(7px) rotate(-45deg);
}

.questions input:checked ~ div {
    height: auto;
    padding: 20px;
}

.questions input:checked ~ .answer-label .deroulant1 {
    transform: translateX(-5px) rotate(-45deg);
}

.questions input:checked ~ .answer-label .deroulant2 {
    transform: translateX(7px) rotate(45deg);
}

#title-contact {
    margin-top: 50px;
}

.answer {
    flex-direction: column;
}

.answer p {
    display: flex;
}

.answer span {
    width: 25%;
    display: block;
}

.answer span:nth-child(1) {
    width: 50%;
}

/* 
----- FACEBOOK -------
*/

#facebookSection {
    display: flex;
    flex-direction: column;
    width: 90%;
    gap: 20px;
    margin: 50px auto;
    flex-wrap: wrap;
}

#facebookSection h2 {
    display: block;
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

#facebookSection img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin: 0;
}

#facebookSection div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.facebookDate {
    font-style: italic;
    text-align: end;
}

/* 
------ NEWSLETTER ------
*/

#newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

#newsletter {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

#newsletter img {
    height: 300px;
    object-fit: contain;
}

#newsletter>article {
    flex: 1 1 48%;
}

.newsletterContainer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 47%;
}

.newsletterContainer label {
    padding-left: 10px;
}

#newsletter form>div:nth-child(1) {
    display: flex;
    gap: 20px;
    width: 100%;
}

#newsletter form>div:nth-child(1) div {
    flex: 1 1 45%;
}

#newsletter input {
    width: 100%;
    padding: 10px;
    border-radius: 30px;
    border: 2px solid #F4BF42;
}

#newsletter input:focus {
    outline: none;
    border: 2px solid #B3785D;
}

#newsletter button {
    margin: 20px auto;
}

#newsletter-title {
    display: flex;
    justify-content: center;
    flex-basis: 100%;
    font-size: 2rem;
}

/* ----- REGLEMENTATION ------- */

.reglementation_container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.reglementation {
    text-align: center;
    border-radius: 15px;
    background-color: #65C2DF;
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
    max-width: 100%;
    padding: 10px;
}

.reglementation_container h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.reglementation p {
    margin: 10px 0;
}

.reglementation a {
    margin: 10px auto 0 auto;
    padding: 10px 30px;
    border-radius: 30px;
    background-color: #F4BF42;
    border: 3px solid #F4BF42;
    font-weight: bold;
    color: white;
}

.reglementation a:hover {
    background-color: white;
    color: #F4BF42;
    background-color: white;
}

@media (min-width: 768px) {
    .container {
        width: 720px;
    }
    h1,h2 {
        font-size: 2.8rem;
    }
    section article {
        flex: 1 1 48%;
    }
    article>img {
        padding: 0;
    }
    .content {
        align-items: flex-start;
        text-align: start;
    }
    .card-article {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .card-article a {
        flex: 1 1 27%;
        max-width: 28%;
    }
    #partenaire {
        flex-direction: row;
    }
    #partenaire img {
        width: 23%;
    }
    .card-team {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .card-team div {
        width: 28%;
    }
    .slider div {
        flex: 1 1 20%;
        min-width: 150px;
        height: auto;
    }
    .slider{
        flex-direction: row;
    }
    .reglementation {
        flex: 1 1 45%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .container {
        width: 960px;
    }h1,h2 {
        font-size: 3rem;
    }
    .card-article a {
        max-width: 30%;
    }
    .card-team div {
        width: 29%;
    }
    .slider div {
        min-width: 215px;
    }
    .reglementation {
        flex: 1 1 30%;
        max-width: 33%;
    }
    #facebookSection {
        flex-direction: row;
    }
    #facebookSection article {
        max-width: 33%;
        flex: 1 1 27%;
    }
}