/* --- DECLIC-IMAGE --- Gerald BAYART &copy;2026 --- */
/* Styles Généraux */
/* --- STYLES DE BASE --- */

html {
    /* Pour un défilement fluide plus agréable */
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff8f4;

}

/* --- EN-TÊTE --- */
/* --- HEADER HEIGHT VARIABLE --- */
:root {
    /* On définit une hauteur par defaut du header (100px) */
    --header-height: 100px;
    /* Sera mis à jour par le JS */
}

header {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* Rend le menu fixe en haut de l'écran */
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Assure que le menu passe au-dessus du reste du contenu */
    anchor-name: --header;
}

/* --- AJUSTEMENT DE LA NAVIGATION du HEADER--- */
#nav-header {
    display: flex;
    justify-content: space-between;
    /* Répartit les 3 éléments (Logo, Image, Menu) */
    align-items: center;
    /* Centre verticalement TOUT le contenu du header */
    padding-left: 20px;
    padding-right: 20px;
    /* On garde une marge à droite pour le menu */
    height: 80px;
    /* Aligné sur la hauteur du logo */
    position: relative;
}

/* --- CONTAINER LOGO ET CALENDAR --- */
#logoCalendarContainer {
    display: flex;
    align-items: center;
    /* Aligne les deux images verticalement */
    gap: 20px;
    height: 80px;
    /* Même hauteur que le header */
}

.site-logo {
    height: 80px;
    width: auto;
    display: block;
}

/* --- L'ICÔNE CALENDRIER/AGENDA --- */
.calendar {
    display: flex;
    align-items: center;
    /* Sécurité supplémentaire pour le centrage */
    padding-left: 20px;
}

.calendar-icon-header {
    height: 50px;
    /* Taille réduite pour le header */
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid #cccccc;
    border-radius: 5px;
}

.calendar-icon-header:hover {
    transform: scale(1.1);
    border-color: #f1c40f;
    /* Rappel du jaune au survol */
}

/* --- MENU PRINCIPAL--- */
/* --- LIENS DE NAVIGATION --- */
.nav-header-links {
    display: flex;
    /*align-items: center;*/
    /* Centre les liens du menu verticalement */
    align-items: stretch;
    margin: 0;
    padding: 10px 0px;
    list-style: none;
}

.nav-header-links li {
    margin-left: 30px;
    /* Espace entre les boutons du menu */
}

/* Style par défaut des liens du menu */
.nav-header-links a {
    text-decoration: none;
    color: #311;
    /* Gris foncé pour la lecture */
    font-weight: bold;
    transition: color 0.3s ease;
    /* Rend le changement de couleur fluide */
}

/* Effet au survol (quand on passe la souris) */
.nav-header-links a:hover {
    color: #f1c40f;
    /* Le jaune du logo */
    text-decoration: underline;
}

/* Sub-menu */
.li-asso {
    position: relative;
}

.sub-menu-asso {
    position: absolute;
    left: 0%;
    top: 18px;
    list-style: none;
    padding: 5px 0px;
    white-space: nowrap;
    display: none;
    background-color: #fff;
    border: 1px solid #cccccc;
    border-top-style: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.sub-menu-asso li {
    margin-left: 10px;
    padding: 5px;
}

.li-asso:hover .sub-menu-asso {
    display: block;
}

.sub-menu-asso a {
    font-size: 0.85rem;
}


/* --- WIDGET Facebook --- */
#fb-link {
    position: fixed;
    z-index: 900;
    position-anchor: --header;
    top: anchor(bottom);
    margin-top: 30px;
    right: 10px;
    width: 35px;
    height: 45px;
    background-color: #f1c40f;
    border-color: #f1c40f;
    border-radius: 10px 0px 0px 10px;
    ;
}

.fb-link {
    font-size: 2.5rem;
    font-weight: 700;
    text-decoration: none;
    padding-left: 5px;
}

.fb-link:hover {
    color: white;
}


/* --- LE CONTENEUR MAINTENANCE AU CENTRE DE L'ÉCRAN --- */
#maintenanceModalContainer {
    position: fixed;
    /* Reste au centre de l'écran même au scroll */
    top: 25%;
    /* Positionne le haut à 25% de la hauteur */
    left: 50%;
    /* Positionne la gauche à 50% de la largeur */
    width: 300px;
    /* La dimension demandée */
    height: 120px;
    /* La dimension demandée */
    /* Le transform décale la div de la moitié de sa propre taille vers le haut et la gauche */
    /* pour que son CENTRE mathématique soit au centre de l'écran */
    transform: translate(-50%, -50%);

    background-color: rgba(255, 255, 255, 0.60);
    /* Fond blanc légèrement transparent */
    border: 5px solid #f1c40f;
    /* Rappel du jaune Déclic-Image */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    /* Ombre pour détacher de l'arrière-plan */
    z-index: 9999;
    /* Passe par-dessus TOUT le reste */

    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
}

/* --- L'IMAGE À L'INTÉRIEUR DU CONTAINER MAINTENANCE --- */
.construction-img {
    max-width: 90%;
    max-height: 90%;
    height: auto;
}

/* --- Fenetres modales (trombinoscope,Agenda, etc...) --- */
.modalWindow {
    display: none;
    /* Caché par défaut */
    position: fixed;
    /* Reste en place même si on scrolle */
    z-index: 999;
    /* Pour passer au-dessus du reste du contenu, mais sous le header si besoin */
    top: var(--header-height);
    /* Se place juste sous le header */
    left: 0;
    width: 100%;
    height: 100%;
    max-height: calc(100vh - var(--header-height));
    /* Évite de dépasser de l'écran */
    overflow-y: auto;
    /* Scroll interne si la liste est longue */
    background-color: rgba(0, 0, 0, 0.3);
    /* Fond sombre transparent */
    backdrop-filter: blur(5px);
    /* Floute l'arrière-plan pour un effet moderne */

}

.innerModal {
    position: relative;
    width: 90%;
    height: 95%;
    /*70vh;*/
    margin: 0 auto;
    /* Force le centrage horizontal */
    padding-right: 25px;
    /* For the closeButton */
    background-color: white;
    border-radius: 10px;
    border: 3px solid #f1c40f;
    /* Rappel du jaune Déclic-Image */
    box-shadow: 0 5px 30px rgba(250, 180, 0, 0.5);
    overflow: hidden;
    /* Pour que l'iframe respecte les bords arrondis */
}

/* Bouton fermer */
.close {
    position: absolute;
    right: 5px;
    top: 0px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: red;
}

/* --- Scroll-Margin-Top --- */
/* Appliqué à toutes les sections cibles (ex: #propos, #contact, etc.) */
section[id] {
    scroll-margin-top: var(--header-height);
}

.hr-section {
    color: #fff;
    box-shadow: 2px 2px 3px #e0e0e0;
}

/* --- CORPS --- */
main {
    padding: 0 10px;
    text-align: center;
}

/* Effet au survol (quand on passe la souris) */
main a:hover {
    color: #f1c40f;
    /* Le jaune du logo */
}

/* --- Bienvenue --- */
#bienvenue {
    text-shadow: #c8c8c8 1px 1px 0px, #b4b4b4 0px 2px 0px, #a0a0a0 0px 3px 0px, rgba(140, 140, 140, 0.498039) 0px 4px 0px, #787878 0px 0px 0px, rgba(0, 0, 0, 0.498039) 0px 5px 10px;
}

/* --- Diaporama --- */
#sub-accueil-1 {
    margin: 0 auto;
    max-width: 720px;
}

#anchorDiapo {
    anchor-name: --diaporama;
    margin: 0 auto;
}

#sub-accueil-2 {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    margin-bottom: 360px;
}

.h3_italic_shadow {
    text-shadow: #ffffff 2px 2px 1px;
    font-style: italic;
}

.h1_italic_shadow {
    text-shadow: #ffffff 5px -2px 2px;
    font-style: italic;
}

#diaporamaContainer {
    position: fixed;
    position-anchor: --diaporama;
    top: anchor(bottom);
    left: 0px;
    margin-top: 5px;
    width: 100%;
    height: 400px;
    opacity: 0.75;
}

#diaporamaContainer:hover {
    opacity: 1;
}

#diapos-div {
    z-index: 1;
    display: block;
    position: relative;
    /* pour servir de référent */
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#diapos-div>* {
    /* tous les enfants directs */
    opacity: 1;
    transition: opacity 2s;
}

#diapos-div> :last-child {
    /* uniquement le dernier enfant direct */
    opacity: 0;
}

.diapos-div>*+* {
    /* tous les enfants directs sauf le 1st */
    position: absolute;
    top: 0;
    left: 0;
}

.diapos-div img {
    display: block;
    /* supprime l'espace sous les images */
    width: 100%;
    height: 400px;
    ;
    object-fit: cover;
    /* contain +1; cover +2; fill; scale-down; none; */
}

#association a {
    color: #311;
    font-weight: bold;
    text-decoration: underline;
}

.presentation {
    max-width: 800px;
    margin: 0 auto;
}

#bureauContainer {
    max-width: 480px;
    margin: 0 auto;
}

.bureau-elem_div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bureau-img_div {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    overflow: hidden;
}

._4Mo {
    font-size: smaller;
    font-style: italic;
    padding-top: 5px;
}

/* Grille d'activités pour qu'elle prenne toute la largeur */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.activity-card {
    background-color: #eee;
    border-radius: 8px;
    white-space: nowrap;
}

.activite-row {
    padding: 10px;
    border-radius: 8px;
    color: white;
    text-align: center;
    /*font-weight: bold;*/
    /*text-transform: uppercase;*/
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.activite-row:hover {
    transform: scale(1.02);
    /* Effet discret au survol */

}

.activities-iframe-wrapper {
    position: relative;
}

.iframe_title_div {
    position: absolute;
    top: 60px;
    left: 0px;
    width: 100%;
    margin: 0px auto;
}

/* --- COULEURS DU LOGO DECLIC-IMAGE --- */
.photo {
    background-color: #f1c40f;
    color: #311;
}

.montage {
    background-color: #00aa40;
}

.retouche {
    background-color: #3498db;
}

.video {
    background-color: #e91e63;
}

/* --- SECTION CONTACT --- */
#contactContainer {
    background-color: #ffffff;
    max-width: 500px;
    /* On limite la largeur pour la lisibilité */
    margin: 0 auto;
}

.form-container {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 12px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 3px;
    color: #311;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    /* Important pour que le padding ne dépasse pas */
    font-family: inherit;
}

/* Bouton Envoyer avec la couleur Jaune au survol */
.btn-submit {
    background-color: #311;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #f1c40f;
    /*Vert: #2ecc71; Rouge: #e91e63*/
    color: #311;
}

#site-footer {
    display: flex;
    align-items: center;
    /* Aligne tout le monde sur la même ligne horizontale */
    width: 100%;
    background-color: #311;
    border-top: 1px solid #eee;
    min-height: 70px;
}

/* Le conteneur qui regroupe Logo + Infos */
.footer-left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    font-size: 0.85rem;
    line-height: 2.0;
    color: white;
}

.footer-info a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Le bloc de liens poussé vers la droite */
.footer-links {
    display: flex;
    align-items: center;
    /* Centre verticalement TOUT le contenu du header */
    margin-left: auto;
    /* décalage vers la droite */
    margin-right: 10px;
    padding: 10px;
    align-items: center;
    gap: 20px;
    /* Espace entre chaque lien */
    white-space: nowrap;
}

.footer-links a {
    text-decoration: none;
    color: white;
    font-size: 0.8rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* --- GLOBAL KEYFRAMES--- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ADAPTATION MOBILE (ÉCRANS < 768px) --- */
@media (max-width: 768px) {
    #maintenanceModalContainer {
        top: 35%;
        /* Positionne plus bas le container maintenance */
    }

    #nav-header {
        flex-direction: column;
        /* On empile tout si l'écran est trop petit */
        height: auto;
    }

    #logoCalendarContainer {
        justify-content: center;
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        /* On empile tout si l'écran est trop petit */
        align-items: start;
        line-height: 0.2;
    }
}