/* css1.css */
/* v.20241101 - 13:58:00 */

/* ========== STYLE GÉNÉRAL ========== */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: radial-gradient(circle, rgba(158,158,158,1) 0%, rgba(255,255,255,1) 40%, rgba(255,255,255,1) 60%, rgba(158,158,158,1) 100%);
    padding: 0;
}

/* ========== PAGE HEADER ========== */
/* ------- HEADER | Desktop ------- */
header {
    justify-content: space-between;
    margin-top: 0; /* Enlevez la marge supérieure */
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(125,125,125,1) 0%, rgba(24,24,24,1) 100%);
    color: white;
    padding: 5px;
    position: fixed; /* Fixer le header en haut */
    top: 0; /* Positionner en haut de la page */
    z-index: 1000; /* S’assurer qu’il soit au-dessus des autres éléments */
}

/* .header-left, .header-center, .header-right, .header-button {
    flex: 1;
} */

.header-left {
    text-align: left;
    width: 30%;
    /* background-color: #007bff; */
}

.header-title {
    font-size: 25px;
    font-weight: bold;
}

.header-title2 {
    font-size: 15px;
}

.header-center {
    text-align: center;
    width: 40%;
    /* background-color: #20d45c; */
}

.header-right {
    text-align: center;
    width: 10%;
    /* background-color: #d4a420; */
}

.header-button {
    text-align: center;
    width: 3%;
    /* background-color: #e24a0e; */
}


/* CSS pour masquer le menu des thèmes au chargement */
.theme-menu {
    display: none; /* Cacher par défaut */
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px;
    margin-top: 5px;
    z-index: 100; /* Assurez-vous qu'il soit au-dessus des autres éléments */
}

.theme-menu.active {
    display: block; /* Afficher quand active */
}

.theme-menu a {
    display: block;
    padding: 5px 10px;
    color: #333;
    text-decoration: none;
}

.theme-menu a:hover {
    background-color: #eee;
}


/* ------- HEADER | Mobile ------- */
@media (max-width: 600px) {
    .header-title {
        font-size: 20px;
    }

    .header-title2 {
        font-size: 12px;
    }

    header {
        height: 80px;
    }

    .header-left {
        text-align: left;
        width: 48%;
        /* background-color: #007bff; */
    }
    
    .header-title {
        font-size: 25px;
        font-weight: bold;
    }
    
    .header-title2 {
        font-size: 15px;
    }
    
    .header-center {
        text-align: center;
        width: 25%;
        /* background-color: #20d45c; */
    }
    
    .header-right {
        text-align: center;
        width: 15%;
        /* background-color: #d4a420; */
    }
    
    .header-button {
        text-align: center;
        width: 5%;
        /* background-color: #e24a0e; */
    }
}

/* ------- HEADER | LIENS | Desktop & Mobile ------- */
header a {
    color: #74c0e4;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    padding: 5px;
}

header a:hover {
    color: #c7c7c7;
    background-color: #2c2c2c;
    border-radius: 10px;
}

header a:active {
    color: #007bff;
}

/* ========== FOOTER ========== */
/* ------- FOOTER | Desktop ------- */
footer {
    display: flex;
    flex-direction: row;
    justify-content: center; 
    align-items: center; 
    background: linear-gradient(180deg, rgba(125,125,125,1) 0%, rgba(24,24,24,1) 100%);
    color: white;
    padding: 10px;
}

.footer-block1, .footer-block2, .footer-block3 {
    padding: 5px;
    text-align: center; 
}

.footer-block1, .footer-block3 {
    width: 20%;
}

.footer-block2 {
    width: 60%;
    font-size: 12px;
}

/* ------- FOOTER | LIENS | Desktop & Mobile ------- */
footer a {
    color: #74c0e4;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    padding: 5px;
    border-radius: 10px;
}

footer a:hover {
    color: #c7c7c7;
    background-color: #2c2c2c;
}

footer a:active {
    color: #007bff;
}

/* ========== PAGE MAIN ========== */
/* ------- MAIN | Desktop ------- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

/* ------- MAIN | TITRES | Desktop ------- */
h1 {
    margin-top: 70px;
    /* margin-bottom: 50px; */
    color: #007bff;
}

h2 {
    font-size: 18px;
    margin: 10px 0;
    color: #007bff;
}

/* ========== PAGE INDEX ========== */
/* ------- INDEX | Desktop ------- */
.event-scroller {
    background-color: #f5f5f5; 
    width: 300px;
    height: 200px;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.event-scroller h2 {
    text-align: center;
    color: #333;
}

.event-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-bottom: 1px solid #ddd; 
}

.event-item:last-child {
    border-bottom: none; 
}

.event-date {
    font-weight: bold; 
    color: #007bff; 
}

.event-name {
    font-size: 18px; 
    color: #333; 
}

.event-location {
    font-size: 14px; 
    color: #777; 
}

/* ========== PAGE GALERIE ========== */
/* ------- GALERIE | Desktop ------- */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 10px;
}

.gallery-container img {
    width: 8%; /* Réduit la taille des images sur desktop */
    height: 8%; /* Ajuste la hauteur automatiquement pour garder le ratio */
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-container img:hover {
    transform: scale(1.05);
}

/* ------- GALERIE | Mobile ------- */
.gallery-container img {
    width: 30%; /* Ajustement pour mobile */
    height: 30%; /* Ajuste la hauteur automatiquement pour garder le ratio */
}

/* ------- GALERIE | MODAL | Desktop & Mobile ------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 95%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* ========== PAGE CONTACT ========== */
/* ------- CONTACT | Desktop ------- */
.contact-form {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 15px; 
    max-width: 600px;
    margin: 0 auto; 
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.contact-form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block; 
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%; 
    padding: 10px;
    border: 1px solid #ddd; 
    border-radius: 4px; 
}

.contact-form textarea {
    resize: vertical; 
    min-height: 100px;
}

.contact-form button {
    padding: 10px; 
    border: none; 
    border-radius: 5px; 
    background-color: #007bff; 
    color: white; 
    font-size: 16px; 
    cursor: pointer; 
    transition: background-color 0.3s; 
}

.contact-form button:hover {
    background-color: #0056b3; 
}

/* ========== STYLE DES BOUTONS ========== */
/* ------- BOUTONS | Desktop & Mobile ------- */
.button {
    display: block;
    margin: 10px auto;
    align-items: center;
    align-content: center;
    background: linear-gradient(180deg, rgba(191,191,191,1) 0%, rgba(24,68,78,1) 100%);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 90%;
}

.button:hover {
    background: radial-gradient(circle, rgba(191,191,191,1) 0%, rgba(24,68,78,1) 100%);
}


/* Thème clair */
.theme-light {
    background-color: #ffffff;
    color: #000000;
}

/* Thème sombre */
.theme-dark {
    background-color: #000000;
    color: #ffffff;
}