body {
    width: 1060px;
    margin: auto;
    font-family: arial, georgia, times, serif;
    font-size: 12px;
    background-color: #ffffff;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 0px;
    background-image: url('design/fond2.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
}

a {
    outline: none;
}

img {
    border: none;
}

#ete {
    width: 220px;
    height: 220px;
    float: right;
    margin-top: 0px;
}

#yop {
    background-color: transparent;
    width: 1060px;
    height: 20px;
    margin-left: 0px;
    padding-top: 0px;
    padding-bottom: 10px;
    font-size: 13px;
    font-weight: bold;
    color: #5a3a22;
}

#yop a {
    color: #5a3a22;
    text-decoration: none;
}

#conteneur {
    width: 1060px;
    min-height: 600px;
    height: auto;
    margin: 0 auto;
    text-align: left;
}


#logo {
    width: 1060px;
    height: fit-content;
}

#logo p {
    padding-top: 0px;
    padding-bottom: 0px;
    padding-right: 0px;
    padding-left: 0px;
    margin: 0px;
    text-align: center;
}

#logo a {
    color: white;
}

#petitbandeau {
    width: 1060px;
    height: 20px;
}

#petitbandeau p {
    text-align: right;
}

#petitbandeau ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    width: 160px;
    height: 20px;
    background-color: #4f81bd;
    float: right;
}

#petitbandeau li {
    width: 160px;
    height: 20px;
    margin: 0px;
}

#petitbandeau li a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    padding-top: 1px;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 12px;
    line-height: 17px;
}


#encart {
    width: 1065px;
    height: 280px;
    text-decoration: none;
}

#encart-sport {
    float: left;
    width: 160px;
    height: 280px;
    text-decoration: none;
}

#encart-sport a {
    text-decoration: none;
    color: #4f81bd;
}

#encart-sport ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    width: 160px;
    height: 42px;
    background-color: #4f81bd;
    border-top-left-radius: 10px;
    /* Coins arrondis pour le coin supérieur gauche */
    border-top-right-radius: 10px;
    /* Coins arrondis pour le coin supérieur droit */
    border-bottom-left-radius: 10px;
    /* Coins arrondis pour le coin inférieur gauche */
    border-bottom-right-radius: 10px;
    /* Coins arrondis pour le coin inférieur droit */
    text-decoration: none;
    display: flex;
    justify-content: center;
    /* Horizontally center */
    align-items: center;
}

#encart-sport li {
    width: 160px;
    height: 50px;
    margin: 0;
    text-decoration: none;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#encart-sport a ul {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    padding-top: 8px;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 14px;
    line-height: 18px;
}

#encart-sport a ul li {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

#encart-sport p {
    text-align: center;
    margin: 0;
    padding-top: 13px;
    text-decoration: none;
}


/* ------------------------ */

#encart-seminaire {
    float: left;
    width: 160px;
    height: 280px;
    margin-left: 20px;
}

#encart-seminaire ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    width: 160px;
    height: 50px;
    background-color: #5a3a22;
    border-top-left-radius: 10px;
    /* Coins arrondis pour le coin supérieur gauche */
    border-top-right-radius: 10px;
    /* Coins arrondis pour le coin supérieur droit */
    border-bottom-left-radius: 10px;
    /* Coins arrondis pour le coin inférieur gauche */
    border-bottom-right-radius: 10px;
    /* Coins arrondis pour le coin inférieur droit */
}

#encart-seminaire li {
    width: 160px;
    height: 50px;
    margin: 0px;
}

#encart-seminaire li a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    padding-top: 8px;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 14px;
    line-height: 18px;
}

#encart-seminaire p {
    text-align: center;
    margin: 0px;
    padding-top: 13px;
}

#encart-seminaire a {
    color: #5a3a22;
    text-decoration: none;
}

/* ------------------------ */

#encart-restauration {
    float: left;
    width: 160px;
    height: 280px;
    margin-left: 20px;
}

#encart-restauration ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    width: 160px;
    height: 50px;
    background-color: #d5622b;
    border-top-left-radius: 10px;
    /* Coins arrondis pour le coin supérieur gauche */
    border-top-right-radius: 10px;
    /* Coins arrondis pour le coin supérieur droit */
    border-bottom-left-radius: 10px;
    /* Coins arrondis pour le coin inférieur gauche */
    border-bottom-right-radius: 10px;
    /* Coins arrondis pour le coin inférieur droit */
}

#encart-restauration li {
    width: 160px;
    height: 50px;
    margin: 0px;
}

#encart-restauration li a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    padding-top: 8px;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 14px;
    line-height: 18px;
}

#encart-restauration p {
    text-align: center;
    margin: 0px;
    padding-top: 13px;
}

#encart-restauration a {
    color: #d5622b;
    text-decoration: none;
}

/* ------------------------ */

#encart-hebergement {
    float: left;
    width: 160px;
    height: 280px;
    margin-left: 20px;
}

#encart-hebergement ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    width: 160px;
    height: 50px;
    background-color: #c0504d;
    border-top-left-radius: 10px;
    /* Coins arrondis pour le coin supérieur gauche */
    border-top-right-radius: 10px;
    /* Coins arrondis pour le coin supérieur droit */
    border-bottom-left-radius: 10px;
    /* Coins arrondis pour le coin inférieur gauche */
    border-bottom-right-radius: 10px;
    /* Coins arrondis pour le coin inférieur droit */
}

#encart-hebergement li {
    width: 160px;
    height: 50px;
    margin: 0px;
}

#encart-hebergement li a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    padding-top: 8px;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 14px;
    line-height: 18px;
}

#encart-hebergement p {
    text-align: center;
    margin: 0px;
    padding-top: 13px;
}

#encart-hebergement a {
    color: #c0504d;
    text-decoration: none;
}

/* ------------------------ */

#encart-environnement {
    float: left;
    width: 160px;
    height: 280px;
    margin-left: 20px;
}

#encart-environnement ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    width: 160px;
    height: 50px;
    background-color: #7b9b37;
    border-top-left-radius: 10px;
    /* Coins arrondis pour le coin supérieur gauche */
    border-top-right-radius: 10px;
    /* Coins arrondis pour le coin supérieur droit */
    border-bottom-left-radius: 10px;
    /* Coins arrondis pour le coin inférieur gauche */
    border-bottom-right-radius: 10px;
    /* Coins arrondis pour le coin inférieur droit */
}

#encart-environnement li {
    width: 160px;
    height: 50px;
    margin: 0px;
}

#encart-environnement li a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    padding-top: 8px;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 14px;
    line-height: 18px;
}

#encart-environnement p {
    text-align: center;
    margin: 0px;
    padding-top: 13px;
}

#encart-environnement a {
    color: #7b9b37;
    text-decoration: none;
}

/* ------------------------ */

#encart-club {

    width: 160px;
    height: 280px;
    margin-left: 900px;
    margin-bottom: 30px;
}

#encart-club ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    width: 160px;
    height: 50px;
    background-color: #4f81bd;
    border-top-left-radius: 10px;
    /* Coins arrondis pour le coin supérieur gauche */
    border-top-right-radius: 10px;
    /* Coins arrondis pour le coin supérieur droit */
    border-bottom-left-radius: 10px;
    /* Coins arrondis pour le coin inférieur gauche */
    border-bottom-right-radius: 10px;
    /* Coins arrondis pour le coin inférieur droit */
}

#encart-club li {
    width: 160px;
    height: 50px;
    margin: 0px;
}

#encart-club li a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    padding-top: 8px;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 14px;
    line-height: 18px;
}

#encart-club p {
    text-align: center;
    margin: 0px;
    padding-top: 13px;
}

#encart-club a {
    color: #4f81bd;
    text-decoration: none;
}

#icones {
    width: 1060px;
    height: 100px;
    margin-bottom: 20px;
}

#icones p {
    margin: 0px;
    padding: 0px;
    text-align: center;
    font-size: 10px;
    color: #3d3d3d;
}

#icones .prochainement {
    font-size: 14px;
}

#icones .espace {
    margin-left: 120px;
    margin-right: 120px;
}


#icones a {
    color: #3d3d3d;
    text-decoration: none;
}

.tooltip {
    visibility: hidden;
    width: 120px;
    background-color: #000;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    /* Positionnement */
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;

    /* Effet de transition */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}

/* Afficher le tooltip au survol */
a:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin-bottom: 20px;
}

.logo {
    text-align: center;
    /* Centrer le contenu horizontalement */
    margin-top: 50px;
    /* Ajouter un espace au-dessus du bouton */
    margin-bottom: 50px;
    /* Ajouter un espacement entre les images et les boutons */
}

.contact-section {
    text-align: center;
    /* Centrer horizontalement */
    margin-top: 100px;
    /* Espacement par rapport au contenu précédent */
}

.big-button.contact {
    display: inline-block;
    /* Afficher en ligne */
    padding: 20px 40px;
    /* Ajouter du rembourrage */
    font-size: 14px;
    /* Taille de la police */
    background-color: #dddddd;
    color: #030101;
    /* Couleur du texte */
    text-decoration: none;
    /* Supprimer soulignement */
    border-radius: 10px;
    /* Ajouter des coins arrondis */

}

.white-text {
    font-size: 12px;
    /* Taille de la police */
    color: #030101;

}

.button.flash {
    background-color: #dddddd;
}


.prochainement {
    text-align: right;
    margin-top: -20px;
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.logo {
    margin-right: 10px;
}

.logo:last-child {
    margin-right: 0;
}

.footer {
    padding: 20px;
    text-align: center;
    width: 100%;

}

.imagePortail {
    width: 160px;
    height: 160px;
}

/* Base styles (desktop) remain as is */

/* Mobile styles */
@media screen and (max-width: 768px) {
    body {
        width: 100%;
        margin: 0;
        padding: 10px;
        background-size: cover;
        overflow-x: hidden;
    }

    #conteneur {
        width: 100%;
        margin: 0;
        padding: 10px;
        box-sizing: border-box;
    }

    #logo {
        width: 100%;
        height: auto;
    }

    #encart {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    #encart-sport,
    #encart-seminaire,
    #encart-restauration,
    #encart-hebergement,
    #encart-environnement,
    #encart-club {
        width: 90%;
        height: auto;
        margin: 10px 0;
        float: none;
    }

    .contact-section {
        margin-top: 20px;
    }

    #encart img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    #encart-sport img,
    #encart-seminaire img,
    #encart-restauration img,
    #encart-hebergement img,
    #encart-environnement img,
    #encart-club img {
        width: 100%;
        max-width: none;
        display: block;
    }

    #logo img {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 768px) {

    /* Image handling */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Button improvements */
    .big-button.contact {
        width: 80%;
        margin: 10px auto;
    }

    /* Navigation improvements */
    #encart ul {
        width: 100%;
    }

    #encart li {
        width: 100%;
    }

    /* Social media buttons */
    .logo {
        margin-top: 20px;
        margin-bottom: 20px;
        display: none;
    }

    .button {
        width: 80%;
        margin: 5px auto;
        display: block;
    }
}

/* Tablet breakpoint */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    body {
        width: 95%;
    }

    #conteneur {
        width: 100%;
    }

    #encart {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {
    .logo {
        display: none;
        /* Hide original buttons */
    }

    .mobile-social-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
        align-items: center;
    }
}

/* Keep original buttons hidden on mobile */
@media screen and (min-width: 769px) {
    .mobile-social-buttons {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .mobile-social-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 20px;
        margin-bottom: 30px;
    }

    .mobile-social-buttons .button {
        flex: 0 1 calc(33.333% - 15px);
        min-width: 100px;
        padding: 12px;
        border-radius: 8px;
        background-color: #dddddd;
        transition: transform 0.2s ease;
    }

    .mobile-social-buttons .button:hover {
        transform: scale(1.05);
    }
}

@media screen and (max-width: 768px) {
    * {
        box-sizing: border-box;
        max-width: 100%;
    }

    html,
    body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    #conteneur {
        width: 100%;
        margin: 0;
        padding: 10px;
    }

    #encart {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #encart-club {
        margin-left: 0;
    }

    .mobile-social-buttons {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
}

/* Common button properties */
.button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 42px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
}

.logo {
    text-align: center;
    margin-top: 10px;
}

.white-text {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

/* Sport section - Blue */
#encart-sport .button.facebook {
    background-color: #4f81bd;
    color: white;
}

/* Seminaire section - Brown */
#encart-seminaire .button.twitter {
    background-color: #5a3a22;
    color: white;
}

/* Restauration section - Orange */
#encart-restauration .button.instagram {
    background-color: #d5622b;
    color: white;
}

/* Hebergement section - Red */
#encart-hebergement .button.actualites {
    background-color: #c0504d;
    color: white;
}

/* Environnement section - Green */
#encart-environnement .button.flash {
    background-color: #7b9b37;
    color: white;
}

/* Club section - Blue */
#encart-club .button.evenements {
    background-color: #4f81bd;
    color: white;
}
