/* style.css */
body {
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	color: #637156;
	background-color: #f0f0f0;
}
header {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	background: rgba(240, 240, 240, 0.9);
	padding: 1rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	z-index: 1000;
}
header nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
    padding: 0 2rem; /* Ajoute un espace sur les côtés */
}
header nav ul {
	list-style: none;
	padding: 0 1 rem;
	margin: 0;
	display: flex;
    margin-right: 1rem; /* Ajoute un espace à droite du menu */
}
header nav ul li {
	margin: 0 1rem;
}
header nav ul li a {
	text-decoration: none;
	color: #637156;
	font-weight: 700;
	transition: color 0.3s;
}
header nav ul li a:hover {
	color: #A8B49C;
	text-decoration: underline;
}
.logo img {
	max-height: 100px;
}
main {
	padding: 8rem 1rem 4rem;
	text-align: center;
}
main .logo img {
	padding: 2.8em 0.2em;
	max-height: 400px;
}
main .cta-buttons {
	display: flex;
	justify-content: center;
	gap: 1em;
	margin-top: 2em;
}
main .cta-buttons a {
	background-color: #637156;
	color: white;
	text-decoration: none;
	padding: 0.8em 1.5em;
	border-radius: 5px;
	font-size: 1em;
}
main .cta-buttons a:hover {
	background-color: #A8B49C;
}  
main h1 {
	font-size: 2.5em;
	margin-bottom: 1em;
}
main p {
	font-size: 1.2em;
	line-height: 1.6;
}
.contact-methods {
	margin-top: 2rem;
	text-align: left;
}
.contact-methods h2 {
	color: #637156;
}
.contact-methods p {
	font-size: 1.1rem;
	margin: 1rem 0;
}
.contact-methods a {
	color: #637156;
	text-decoration: none;
	font-weight: bold;
	transition: color 0.3s;
}
.contact-methods a:hover {
	color: #637156;
}
.events {
	text-align: left;
	margin-top: 2rem;
    margin-bottom: 2rem;
}
.events h2 {
	color: #637156;
}
.events .event {
	margin: 1rem 0;
	padding: 1rem;
	border: 1px solid #ccc;
	border-radius: 5px;
	background-color: #f9f9f9;
    max-width: 80vw;
}
.events img {
    max-width: 50vw;
    width: 100px;
    height: auto;
}

.projects {
	text-align: left;
	margin-top: 2rem;
}
.projects h2 {
	color: #637156;
}
.project {
	margin: 2rem 0;
	padding: 1rem;
	border: 1px solid #ccc;
	border-radius: 5px;
	background-color: #f9f9f9;
}
.project a {
	text-decoration: none;
	color: #637156;
	font-weight: bold;
	transition: color 0.3s;
}
.project a:hover {
	color: #637156;
}
.project-centered {
	text-align: center;
	padding: 1rem 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.presentation {
	text-align: left;
	margin: 0 auto;
	max-width: 1400px;
}
.presentation ul {
    list-style: initial;
    padding: 0 0 0 40px;
	margin: 0;
}
.presentation ul li {
	font-size: 1.2em;
	line-height: 1.6;
    display: list-item;
}
.comite, .partenaire {
	margin-top: 2rem;
	text-align: left;
	margin: 0 auto;
	max-width: 1400px;
}
.comite h2, .partenaire h2 {
	color: #637156;
}
.comite .membre {
	margin-bottom: 1rem;
}
.comite img {
	max-width: 150px;
	border-radius: 50%;
	margin-right: 1rem;
}
.partenaire img {
	margin-right: 1rem;
	max-width: 1400px;
}
.partner-logo {
	margin-bottom: 1rem;
}
.statuts-link {
	margin-top: 4rem;
	max-width: 1400px;
	text-align: left;
	margin: 0 auto;
}
.statuts-link a {
	color: #637156;
	text-decoration: none;
	font-weight: bold;
}
.statuts-link a:hover {
	color: #A8B49C;
	text-decoration: underline;
}

footer {
	background: #637156;
	color: #fff;
	padding: 1rem;
	text-align: center;
}
footer a {
	color: #fff;
	text-decoration: underline;
}
footer .hosting-info {
	color: #fff;
	font-size:0.8em
}

.survey {
	padding: 2em;
	background-color: #cfdac6;
	border-top: 2px solid #ddd;
	margin-top: 2em;
}
.survey h2 {
	font-size: 1.5em;
	margin-bottom: 0.5em;
}
.survey p {
	margin-bottom: 1em;
}


/* Style du menu hamburger */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 200; /* La croix reste au-dessus du menu */
}

.hamburger div {
    width: 30px;
    height: 4px;
    background-color: #637156;
    transition: transform 0.3s ease;
}

/* Lorsqu'on clique sur l'input checkbox */
.menu-toggle:checked + .hamburger div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle:checked + .hamburger div:nth-child(2) {
    opacity: 0;
}

.menu-toggle:checked + .hamburger div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.menu-toggle:checked ~ ul {
    display: flex; /* Affiche le menu */
}

.main-image {
	padding: 2.8em 0.2em;
	max-height: 400px;
}

/* Afficher le menu sur mobile */
@media (max-width: 768px) {
    header nav ul {
		display: none; /* Par défaut, le menu est caché */
		position: absolute; /* Position absolue pour pouvoir le déplacer */
		top: 60px; /* Aligner en dessous de l'en-tête */
		right: 0; /* Menu ouvert à droite */
		width: 70%; /* Largeur du menu sur mobile */
        background-color: rgba(240, 240, 240, 0.9);
        flex-direction: column;
        align-items: center;
        gap: 1em;
        padding: 1rem 0;
		box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
		z-index: 100; /* Assure que le menu est sous la croix */
    }

    header nav ul li {
        margin: 0;
    }

    .hamburger {
        display: flex;
    }
	
	.main-image {
        max-width: 80%; /* Réduit la taille de l'image */
        height: auto; /* Conserve les proportions */
    }
}