/* ========================= */
/*        BASE GLOBALE       */
/* ========================= */

body {
    margin: 0;
    font-family: Georgia, serif;
}

/* Barre du haut */
header {
    border-top: 6px solid #1f2937;
}

/* ========================= */
/*          NAVBAR           */
/* ========================= */

.navbar {
    display: flex;
    justify-content: center;
    background-color: white;
    padding: 20px 0;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.navbar a {
    text-decoration: none;
    color: #1f2937;
    font-size: 16px;
    padding-bottom: 5px;
}

.navbar li.active a {
    border-bottom: 2px solid #c45a2a;
}

.navbar a:hover {
    border-bottom: 2px solid #c45a2a;
}

/* ========================= */
/*     IMAGES DE FOND        */
/* ========================= */

.image-container {
    background-image: url("./vue_haut.jpeg");
    background-size: cover;
    background-position: center;
    height: 540px;
    position: relative;
}

.image-container-tarif {
    background-image: url("./tennis.jpeg");
    background-size: cover;
    background-position: center;
    height: 540px;
    position: relative;
}

.image-container-contact {
    background-image: url("./how-does-red-light-therapy-help-people-who-suffer-from-tennis-and-golfers-elbow-229035_1445x.webp");
    background-size: cover;
    background-position: center;
    height: 540px;
    position: relative;
}

/* ========================= */
/*   BLOCS SUR IMAGES        */
/* ========================= */

.texte,
.reserve,
.contacte {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background: rgba(211, 98, 5, 0.4);
    padding: 20px;
    border-radius: 8px;
    font-size: 20px;

    /* Correction responsive */
    max-width: 500px;
    width: 90%;
}

/* ========================= */
/*     PARAGRAPHE ACCUEIL    */
/* ========================= */

.para {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 20px;
    color: black;
    text-align: center;

    /* Correction responsive */
    width: 35%;
    white-space: normal;
}

/* ========================= */
/*         PROFITE           */
/* ========================= */

.profite {
    position: absolute;
    left: 5%;
}

.profite p {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 25px;
}

/* ========================= */
/*      INFRASTRUCTURE       */
/* ========================= */

.infra_container {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin: 0 auto;
    width: 90%;
    justify-content: center;
}

.infra_txt {
    display: flex;
    flex-direction: column;
}

.Infrastructure {
    text-align: center;
    font-size: 35px;
    text-decoration: underline;
    color: #c45a2a;
}

.elem_infra {
    font-size: 20px;
    flex: 1;
}

.infra_video {
    flex: 1;
    max-width: 45%;
    width: 100%;
    height: auto;
}
.aft_titre {
    text-align: center;
    color: #c45a2a;
    font-size: 35px;
    text-decoration: underline;
    margin: 0 auto;
    width: 100%;
}
.aft {
    margin: 20px;
}
.aft-explication {
    max-width: 45%;
    font-size: 1.2rem;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.aft-explication img {
    width: 100%;
    height: auto;
}
/* ========================= */
/*        EVENEMENTS         */
/* ========================= */
#compte-a-rebours {
    font-size: 35px;
    font-weight: bold;
    text-align: center;
    margin: 10px auto;
    width: 100%;
}

.evenement_titre {
    text-align: center;
    color: #c45a2a;
    font-size: 35px;
    text-decoration: underline;
    margin: 0 auto;
    width: 100%;
}


.evenement_tarif {
    max-width: 45%;
    font-size: 1.2rem;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.evenement_tarif img {
    width: 100%;
    height: auto;
}
/* ========================= */
/*         A PROPOS          */
/* ========================= */

.apropos_titre {
    text-align: center;
    text-decoration: underline;
    margin: 0 auto;
    color: #c45a2a;
    font-size: 2rem;
}

.apropos-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin: 0 auto;
    width: 90%;
    gap: 2rem;
    flex-wrap: wrap;
}

.raquette_apropos {
    flex: 1;
    width: 100%;
    max-width: 50%;
    height: auto;
}

/* ========================= */
/*           ECOLE           */
/* ========================= */

.cours-container {
    display: flex;
    flex-direction: column;
}

.ecole_img {
    flex: 1;
    width: 100%;
    height: auto;
}

.ecole_titre {
    text-decoration: underline;
    text-align: center;
    color: #c45a2a;
    margin: 0 auto;
}

.ecole-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin: 0 auto;
    width: 90%;
    gap: 2rem;
    flex-wrap: wrap;
}

.txt_cours {
    font-size: 1.2rem;
    flex: 1;
    max-width: 45%;
}

/* ========================= */
/*           TARIFS          */
/* ========================= */

.reserve {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background: rgba(211, 98, 5, 0.4);
    padding: 20px;
    border-radius: 8px;
    font-size: 20px;

    /* Correction responsive */
    max-width: 500px;
    width: 90%;
}

.tarif_titre {
    position: relative;
    text-align: center;
    color: #c45a2a;
    font-size: 35px;
    text-decoration: underline;
}

.tennis_tarif {
    flex: 1;
    max-width: 45%;
    font-size: 1.2rem;
    margin: 0 auto;
}

.tennis_tarif img {
    width: 100%;
    height: auto;
}

/* ========================= */
/*          CONTACT          */
/* ========================= */

.titre_contact {
    display: flex;
    text-decoration: underline;
    color: #c45a2a;
    justify-content: center;
    font-size: 35px;
}

.contact_container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin: 0 auto;
    width: 90%;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact_img {
    width: 100%;
    height: auto;
    display: block;
}

.map_link {
    flex: 1;
    max-width: 45%;
    display: block;
}

/* ========================= */
/*           COMITE          */
/* ========================= */

.comite_txt_flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    margin: 0 auto;
    width: 90%;
}

.comite_titre {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1.5rem;
    color: #c45a2a;
}

#comite_h1 .logo_span_comite {
    text-decoration: none;
}

#comite_h1 .span_comite {
    text-decoration: underline;
}

.img_comite_txt {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1.5rem;
    text-decoration: underline;
    color: #c45a2a;
}

.img_comite {
    flex: 1;
    max-width: 45%;
    font-size: 1.2rem;
    margin: 0 auto;
}

.img_comite img {
    width: 100%;
    height: auto;
}

/* ========================= */
/*            BAR            */
/* ========================= */

.bar_container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin: 0 auto;
    width: 90%;
    gap: 2rem;
    flex-wrap: wrap;
}

.bar_texte {
    font-size: 1.2rem;
    flex: 1;
    max-width: 45%;
}

.bar_titre {
    color: #c45a2a;
    font-size: 2rem;
    text-decoration: underline;
}

.img_bar {
    flex: 1;
    width: 100%;
    height: auto;
}

/* ========================= */
/*         SPONSORS          */
/* ========================= */

.titre_sponso {
    text-align: center;
    color: #c45a2a;
    text-decoration: underline;
    font-size: 35px;
}

.sponso_h3 .sponso_span {
    text-decoration: underline;
}

.sponso_h3 .logo_span_sponso {
    text-decoration: none;
}

p {
    font-size: 20px;
}

#ul_sponso {
    flex: 1;
}

.sponso_txt {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 90%;
    justify-content: center;
    align-items: flex-start;
}

#sponso_h2 {
    text-align: center;
    color: #c45a2a;
    text-decoration: underline;
    font-size: 30px;
}

.nos_sponso_container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    flex-wrap: wrap;
    border: solid 1px black;
    width: 500px;
    height: 500px;
}

.nos-sponso img {
    width: 400px;
    height: auto;
}

.arrow {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    font-size: 20px;
    cursor: pointer;
}
/* ========================= */
/*        CALENDRIER         */
/* ========================= */

.titre_calendrier {
    text-align: center;
    color: #c45a2a;
    text-decoration: underline;
    font-size: 35px;
}

.calendrier_txt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
}

#ic .calendrier_span {
    text-decoration: underline;
    color: #c45a2a;
}

#ic .logo_span_calendrier {
    text-decoration: none;
}

#ul_calender {
    font-size: 20px;
    flex: 1;
}

/* ========================= */
/*         TOURNOIS          */
/* ========================= */

#event-tournois .span_tournois {
    text-decoration: underline;
    color: #c45a2a;
}

#event-tournois .logo_span_event {
    text-decoration: none;
}

#event_table {
    border-collapse: collapse;
    width: 300px;
}

#event_table th,
#event_table td {
    border: 1px solid #333;
    padding: 8px;
    text-align: left;
}

#tournois_txt {
    text-align: center;
    font-size: 20px;
}


.tournois-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    flex-wrap: wrap;
}


.date-tournois {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    flex-wrap: wrap;
}


.para_tournois {
    font-size: 35px;
}


#btn-tournois1,
#btn-tournois2,
#btn-tournois3 {
    font-size: 35px;
    border-radius: 10px;
    background-color: grey;
    cursor: pointer;
    margin-right: 10px;
}


.tournois-border {
    border: solid black 2px;
    width: 60%;
}


.info-tournois-container1,
.info-tournois-container2,
.info-tournois-container3 {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-style: italic;
    font-weight: bold;
}


/* ========================= */
/*           STAGES          */
/* ========================= */
#stage_txt {
    text-align: center;
    font-size: 20px;
}
.stage-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    flex-wrap: wrap;
}
.date-stage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    flex-wrap: wrap;
}
.para_stage {
    font-size: 35px;
}
#btn-stage1,
#btn-stage2 {
    font-size: 35px;
    border-radius: 10px;
    background-color: grey;
    cursor: pointer;
    margin-right: 10px;
}
.stage-border {
    border: solid black 2px;
    width: 60%;
}
.info-stage-container1,
.info-stage-container2
{
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-style: italic;
    font-weight: bold;
}


/* ========================= */
/*      RESPONSIVE MOBILE    */
/* ========================= */

@media (max-width: 768px) {

    .navbar ul {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .image-container,
    .image-container-tarif,
    .image-container-contact {
        height: 300px;
    }

    .texte,
    .reserve,
    .contacte {
        width: 90%;
        font-size: 16px;
        padding: 10px;
    }

    .para {
        width: 90%;
        font-size: 16px;
        padding: 10px;
        white-space: normal;
    }

    .profite {
        position: static;
        width: 90%;
        margin: 20px auto;
        text-align: center;
    }

    .apropos-container,
    .infra_container,
    .ecole-container,
    .contact_container,
    .comite_txt_flex,
    .bar_container,
    .tournois-container,
    .stage-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .infra_video,
    .evenement_tarif,
    .txt_cours,
    .tennis_tarif,
    .map_link,
    .img_comite,
    .bar_texte,
    .evenement_tarif img,
    .aft-explication,
    .aft-explication img {
        max-width: 100%;
        width: 100%;
    }

    img,
    video {
        max-width: 100%;
        height: auto;
    }

    h1,
    h2,
    h3 {
        text-align: center;
    }

    .Infrastructure,
    .titre_contact,
    .titre_sponso,
    .titre_calendrier,
    .evenement_titre {
        font-size: 28px;
    }

    #event_table {
        width: 100%;
        font-size: 14px;
    }

    #event_table th,
    #event_table td {
        padding: 6px;
    }

    .nos_sponso_container {
        width: 100%;
        height: auto;
        padding: 20px 0;
    }

    .nos-sponso img {
        width: 80%;
        height: auto;
    }

    .arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    #tournois_txt {
        text-align: center;
        padding: 0 10px;
        font-size: 18px;
    }
    #stage_txt {
        text-align: center;
        padding: 0 10px;
        font-size: 18px;
    }

    .tournois-border {
        width: 95%;
        margin: 0 auto;
    }
    .stage-border {
        width: 95%;
        margin: 0 auto;
    }

    .date-tournois {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    .date-stage {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .para_tournois {
        font-size: 22px;
    }
    .para_stage {
        font-size: 22px;
    }

    #btn-tournois1,
    #btn-tournois2,
    #btn-tournois3 {
        font-size: 20px;
        padding: 8px 15px;
    }
    #btn-stage1,
    #btn-stage2
    {
        font-size: 20px;
        padding: 8px 15px;
    }

    .info-tournois-container1 img,
    .info-tournois-container2 img,
    .info-tournois-container3 img {
        width: 100%;
        height: auto;
    }
    .info-stage-container1 img,
    .info-stage-container2 img{
        width: 100%;
        height: auto;
    }

}
