/* 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: #fffcf8;

}
/* --- 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;
}
#fb-link {
	position: fixed;
	position-anchor: --header;
	top: anchor(bottom);
	margin-top: 10px;
	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: 10px;
}	
.fb-link:hover {
	color:white;
}
/* --- scroll-margin-top --- */
/* Appliqué à toutes les sections cibles (ex: #propos, #contact, etc.) */
section[id] {
    scroll-margin-top: var(--header-height);
}
/* --- AJUSTEMENT DE LA NAVIGATION --- */
nav {
    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;
}

/* --- LOGO ET AGENDA --- */
#logoAgendaContainer {
    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 --- */
#agenda-trigger {
    display: flex;
    align-items: center;    /* Sécurité supplémentaire pour le centrage */
}
.calendar-icon-header {
    height: 65px; /* 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 */
}

/* --- LE CONTENEUR MAINTENANCE AU CENTRE DE L'ÉCRAN --- */
#maintenanceContainer {
    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: 360px;      /* Ta dimension demandée */
    height: 140px;     /* Ta 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.70); /* 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;
}
.hr-section {
	color:#fff; 
	box-shadow: 2px 2px 3px #e0e0e0;
}
/* --- MENU PRINCIPAL--- */
/* --- LIENS DE NAVIGATION --- */
.nav-links {
    display: flex;
    align-items: center;    /* Centre les liens du menu verticalement */
    margin: 0;
    padding: 10px 0px;
    list-style: none;
}
.nav-links li {
    margin-left: 30px;
    /* Espace entre les boutons du menu */
}
/* Style par défaut des liens du menu */
.nav-links a {
    text-decoration: none;
    color: #333;
    /* 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-links a:hover {
    color: #f1c40f;	/* Le beau jaune de ton logo */
	text-decoration: underline;
}

/* --- CORPS --- */
main {
    padding-top: 0; /* Supprime l'espace en haut du contenu principal */
    /* Vous pouvez garder un padding sur les côtés si nécessaire */
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

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

/* --- 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; 
	text-shadow: #ffffff 2px 2px 1px;
	font-style: italic;
}
#diaporamaContainer {
	position: fixed;
	position-anchor: --diaporama;
	top: anchor(bottom);
	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; */
}

/* --- SECTION ACTIVITÉS À 2 COLONNES --- */
/* --- STRUCTURE PRINCIPALE (2 COLONNES) --- */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% Agenda, 50% Activités par défaut */
    gap: 30px;
    margin-top: 30px;
}

.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;
}

/* --- ADAPTATION MOBILE (ÉCRANS < 768px) 900 px--- */
@media (max-width: 900px) {
    nav {
        flex-direction: column; /* On empile tout si l'écran est trop petit */
        height: auto;
		padding-bottom: 20px;
    }
	#logoAgendaContainer {
        justify-content: center;
        width: 100%;
    }
	/* On cache le conteneur sur mobile ou on le remet dans le flux */
    .construction-container {
        position: static; 
        transform: none;
        margin: 20px auto;
        width: 90%; /* S'adapte à la largeur du téléphone */
    }

    .main-grid {
        /* On passe de 2 colonnes à 1 seule colonne */
        grid-template-columns: 1fr;
    }

    /* On peut aussi réduire un peu l'espacement pour gagner de la place */
    .activities-list {
        margin-top: 20px;
    }
}

#association a {
    color: #2c3e50;
    font-weight: bold;
    text-decoration: underline;
}
.presentation {
	max-width: 800px;
	margin: 0 auto;
}

/* --- DIV AGENDA --- */
#agendaContainer {
    display: none; /* Caché par défaut */
    position: fixed; /* Reste en place même si on scrolle */
    top: var(--header-height); /* Se place juste sous le header */
    left: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - var(--header-height)); /* Évite de dépasser de l'écran */
    overflow-y: auto; /* Permet de scroller à l'intérieur de l'agenda si besoin */
    background: white;
    z-index: 999; /* Pour passer au-dessus du reste du contenu, mais sous le header si besoin */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.iframe-wrapper {
    max-width: 900px; /* Largeur confortable pour un calendrier */
	width: 95%;
    margin: 0 auto;    /* Force le centrage horizontal */
    border: 3px solid #f1c40f; /* Rappel du jaune Déclic-Image */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* On nettoie l'ancienne grille d'activités pour qu'elle prenne toute la largeur */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

/* --- COLONNE DROITE : LISTE VERTICALE --- */
.activities-list {
    display: flex;
    flex-direction: column;
    /* Aligne les activités l'une en dessous de l'autre */
    gap: 15px;
    /* Espace entre chaque ligne */
}

.activite-row {
    padding: 20px;
    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 */
}

/* Couleurs du logo */
.photo {
    background-color: #f1c40f;
    color: #333;
}

.montage {
    background-color: #2ecc71;
}

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

.video {
    background-color: #e91e63;
}

/* --- SECTION CONTACT --- */
.contact-container {
    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: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    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: #2c3e50;
    color: white;
    padding: 15px 25px;
    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;
    /* Rappel du Jaune Photo au survol */
    color: #333;
}

.site-footer {
    display: flex;
    align-items: center; /* Aligne tout le monde sur la même ligne horizontale */
    padding: 0px 20px;
    background-color: #333;
    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 {
	padding-top: 10px;
    font-size: 0.85rem;
    line-height: 1.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 {
    margin-left: auto; /* décalage vers la droite */
	padding-top: 10px;
	line-height: 0.6;
    gap: 15px; /* Espace entre chaque lien */
}

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

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