body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f4f4f4, #e4e4e4);
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    padding: 2rem 0; /* Assurez-vous qu'il y a suffisamment de hauteur pour contenir les boutons de navigation */
    text-align: center;
    background: linear-gradient(135deg, #0066cc, #004080);
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative; /* Permet un bon positionnement du contenu */
    overflow: hidden; /* Assure que le contenu ne déborde pas */
}

.gallery-item {
    display: none !important; /* Masquer toutes les images par défaut */
}
.gallery-item.visible {
    display: inline-block !important; /* Afficher uniquement les images visibles */
}

#show-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #0078d7;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#show-more:hover {
    background-color: #005a9e;
}

.article-item,
.golf-item {
    display: none !important; /* Masquer toutes les images par défaut */
}

.article-item.visible,
.golf-item.visible {
    display: inline-block !important; /* Afficher uniquement les images visibles */
}

#show-more-articles,
#show-more-golf {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #0078d7;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#show-more-articles:hover,
#show-more-golf:hover {
    background-color: #005a9e;
}

@keyframes headerZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}
nav {
    background: rgba(255, 255, 255, 0.8); /* Fond légèrement transparent */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre subtile */
    border-radius: 10px; /* Coins arrondis pour un look moderne */
    padding: 10px 0; /* Espacement intérieur pour plus de confort */
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Pour gérer les petits écrans */
}

nav ul li {
    margin: 0;
}


nav ul li a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    background-color: #fff;
    border: 2px solid #0066cc; /* Bordure pour entourer le bouton */
    border-radius: 25px; /* Coins arrondis pour un effet de bouton */
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

nav ul li a:hover {
    background-color: #0066cc; /* Changement de fond au survol */
    color: #fff; /* Texte en blanc pour contraste */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ombre plus prononcée au survol */
    transform: translateY(-2px); /* Légère montée du bouton */
}


main {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    justify-items: center;
}

.gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 100%;
    display: block;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}


footer {
    text-align: center;
    background: linear-gradient(135deg, #0066cc, #004080);
    color: #fff;
    padding: 1.5rem 0;
    margin-top: 3rem;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}

blockquote {
    background: #f9f9f9;
    border-left: 10px solid #ffcc00;
    margin: 1.5rem 0;
    padding: 1rem;
    font-style: italic;
    color: #555;
}

h2 {
    color: #0066cc;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 1.5s ease;
}

#darkModeToggle:hover {
    background: linear-gradient(135deg, #004080, #002952);
    transform: translateY(-2px); /* Montée du bouton */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Ombre plus prononcée */
}
#darkModeToggle::before {
    content: "🌙"; /* Icône lune pour le mode sombre */
    font-size: 1.2rem;
}

#darkModeToggle:hover {
    background-color: #ffcc00;
    color: #004080;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.5);
    transform: scale(1.05);
}

#darkModeToggle::before {
    content: '\1F311'; /* Icône lune */
    font-size: 1.2rem;
}
body.dark-mode #darkModeToggle {
    background: linear-gradient(135deg, #ffcc00, #e6b800);
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
body.dark-mode #darkModeToggle::before {
    content: "☀️"; /* Icône soleil pour le mode clair */
}
body.dark-mode #darkModeToggle:hover {
    background: linear-gradient(135deg, #e6b800, #b38f00);
    transform: translateY(-2px); /* Montée du bouton */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Ombre plus prononcée */
}
body.dark-mode {
background: #121212;
color: #e0e0e0;
}
nav {
    margin: 0 auto; /* Centre la barre de navigation */
    width: fit-content; /* S'adapte à la largeur du contenu */
    padding: 10px 20px; /* Ajoute de l'espacement */
    border-radius: 20px; /* Adoucit les bords */
}
.nav-links ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.nav-links ul li {
    margin: 10px;
}

.nav-links ul li a {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #ffcc00;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0066cc, #004080);
    white-space: nowrap;
}

.nav-links ul li a:hover {
    background: #ffcc00;
    color: #004080;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.5);
}
header.dark-mode, footer.dark-mode {
background: #333;
color: #fff;
}

main.dark-mode {
background: #1e1e1e;
box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

nav ul li a {
transition: color 0.3s;
}
nav ul li a.active {
    background: #ffcc00; /* Fond en surbrillance */
    color: #fff; /* Couleur du texte */
}
nav ul li a.dark-mode {
color: #ffcc00;
}
.articles-gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
justify-items: center;
margin-top: 20px;
}

.articles-gallery img {
width: 100%;
height: auto;
object-fit: cover;
max-width: 100%;
display: block;
margin: 0;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s, box-shadow 0.3s;
}

.articles-gallery img:hover {
transform: scale(1.05);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.hide-image {
visibility: hidden;
}
#modalContent {
display: flex;
justify-content: center;
align-items: center;
max-width: 90vw;
max-height: 90vh;
}

#prev, #next {
transition: transform 0.2s;
}
#darkModeToggle {
    background-color: #0066cc;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    border: 2px solid #004080;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute; /* Positionner en haut à droite de l'en-tête */
    top: 20px;
    right: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#prev:hover, #next:hover {
transform: translateY(-50%) scale(1.2);
}
.source-text {
text-align: center;
font-style: italic;
color: #555;
margin-top: 10px;
}

@media (max-width: 768px) {
    #menu-toggle {
        display: block !important;
    }

    .nav-links ul {
        display: none;
        flex-direction: column;
        align-items: center;
        background: rgba(0, 0, 0, 0.9);
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        padding: 50px 20px;
        z-index: 99;
    }

    .nav-links ul.show {
        display: flex;
    }
    .nav-links ul li {
        margin: 20px 0;
    }
    .nav-links ul li a {
        padding: 15px 25px;
        background: #0066cc;
        color: #fff;
        border-radius: 15px;
        text-decoration: none;
        font-weight: bold;
        transition: background 0.3s, transform 0.3s;
    }
    .nav-links ul li a:hover {
        background: #004080;
        transform: scale(1.1);
    }


    header {
        padding: 1.5rem 0;
    }

    #darkModeToggle {
        top: 10px;
        right: 10px;
        padding: 8px 15px; /* Réduire la taille du bouton en mode mobile */
        font-size: 0.9rem; /* Réduire la taille du texte */
    }
    

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    #modalImage {
        max-width: 80vw;
        max-height: 80vh;
    }
}
#menu-toggle {
    display: none; /* Par défaut, il est caché sur les grands écrans */
    position: fixed;
    top: 20px;
    left: 20px;
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50%;
    z-index: 100;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    transition: background 0.3s, transform 0.3s;
}

#menu-toggle.open {
    background: #004080 !important;
    transform: rotate(90deg);
}



.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, opacity 0.3s;
    opacity: 0.7; /* Rendre le bouton légèrement transparent */
}

#scrollToTop:hover {
    background-color: #004080;
    opacity: 1; /* Rendre le bouton complètement opaque au survol */
}
.temoignages-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.temoignage {
    background: #fff;
    padding: 1.5rem;
    border-left: 5px solid #ffcc00;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-style: italic;
}

.temoignage p {
    margin: 0 0 0.5rem;
    color: #333;
}

.temoignage-auteur {
    display: block;
    font-weight: bold;
    color: #0066cc;
    text-align: right;
    font-style: normal;
}
/* Mode sombre pour les citations */
/* Mode sombre pour les citations */
body.dark-mode blockquote {
    background: #2a2a2a;
    color: #e0e0e0;
    border-left: 10px solid #ffcc00;
}

/* Témoignages en mode sombre */

/* Mode sombre - Témoignages */


.testimonial {
    background: #fff;
    padding: 1.5rem;
    border-left: 5px solid #ffcc00;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-style: italic;
    color: #333;
    transition: background 0.3s, color 0.3s;
}


body.dark-mode .testimonial {
    background: #2a2a2a; /* Fond sombre similaire aux citations */
    color: #e0e0e0;  /* Texte clair */
    border-left: 10px solid #ffcc00; /* Garde la bordure jaune pour la visibilité */
}


body.dark-mode .temoignage-auteur {
    color: #ffcc00; /* Couleur jaune pour l'auteur du témoignage */
}
.site-title {
    font-family: 'Poppins', sans-serif; /* Utiliser une police distinctive */
    font-size: 3rem; /* Taille du titre */
    background: linear-gradient(90deg, #0066cc, #ffcc00, #ff6600);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent; /* Couleur du texte invisible pour voir le gradient */
    text-transform: uppercase; /* Mettre en majuscule pour plus d'impact */
    letter-spacing: 3px; /* Espacement entre les lettres pour une meilleure lisibilité */
    margin: 0;
    padding: 20px 0;
    text-align: center;
    animation: glow 6s ease-in-out infinite alternate;
}

.site-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    color: #e0e0e0;
    text-align: center;
    margin: 10px 0;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ff6600, 0 0 20px #ff6600, 0 0 25px #ff6600;
    }
    100% {
        text-shadow: 0 0 10px #ffcc00, 0 0 20px #ffcc00, 0 0 30px #ff6600, 0 0 40px #ff6600, 0 0 50px #ff6600;
    }
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.post {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.post h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #333;
}

.post img.post-image {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.post p {
    line-height: 1.6; /* Espacement entre les lignes */
    margin-bottom: 10px; /* Espacement entre les paragraphes */
    white-space: pre-line; /* Respect des retours à la ligne */
}

.post em {
    font-style: italic; /* Style italique */
}

.post strong {
    font-weight: bold; /* Style gras */
}

.post u {
    text-decoration: underline; /* Style souligné */
}


.post-content p {
    margin: 10px 0;
    line-height: 1.6;
    color: #555;
}

/* Mode sombre pour les posts */
body.dark-mode .post {
    background-color: #333; /* Couleur de fond sombre */
    color: #f0f0f0; /* Couleur du texte claire */
    border: 1px solid #444; /* Bordure sombre mais visible */
}

body.dark-mode .post h3 {
    color: #f5f5f5; /* Titre en couleur claire */
}

body.dark-mode .post p {
    color: #e0e0e0; /* Texte du contenu clair */
}

body.dark-mode .post small {
    color: #aaa; /* Couleur plus douce pour les informations supplémentaires */
}

body.dark-mode .post img {
    border: 1px solid #555; /* Bordure pour bien intégrer les images en mode sombre */
}
.rich-text-content {
    line-height: 1.6;
    margin: 15px 0;
}

.rich-text-content p {
    margin-bottom: 10px;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3 {
    margin: 20px 0 10px;
    font-weight: bold;
}

.rich-text-content ul {
    padding-left: 20px;
    list-style-type: disc;
}

.rich-text-content ol {
    padding-left: 20px;
    list-style-type: decimal;
}

.rich-text-content blockquote {
    margin: 20px 0;
    padding: 10px 20px;
    border-left: 4px solid #ccc;
    color: #555;
    font-style: italic;
    background-color: #f9f9f9;
}

#videos {
    margin-top: 3rem;
    /* text-align: center; */
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.video-container video {
    width: 100%;
    max-width: 600px; /* Taille max des vidéos */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
