@charset "utf-8";
/* CSS Document */

 :root {
	--h1-size: clamp(32px, 3.54vw, 72px);
  	--h2-size: clamp(28px, 3.54vw, 72px);
  	--h2-margin-bottom: clamp(32px, 3.54vw, 68px);
  	--h3-size: clamp(22px, 1.25vw, 24px);
 	--h3-margin-bottom: clamp(24px, 2.5vw, 48px);
  	--text-size: clamp(14px, 1.6vw, 16px);
	--button-width: clamp(160px, 13.75vw, 264px);
  	--button-height: clamp(48px, 3.33vw, 64px);
 	 --button-radius: clamp(4px, 0.73vw, 7px);
  	--button-font-size: clamp(16px, 1.25vw, 24px);
  	--button-bg: #37a3ae;
  	--button-color: #ffffff;
  	--button-margin-top: clamp(16px, 2.5vw, 32px);
}

/* ===================
   Générique
=================== */

*, ::before, ::after {
    box-sizing: border-box;
	}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-size: var(--text-size);
  font-family: 'open sans';
}



main, section{
	padding-left: clamp(24px, 3.75vw, 72px);
	padding-right: clamp(24px, 3.75vw, 72px);
}

section ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  position: relative;
  width: 100%;
  height: auto; /* s'adapte à la hauteur de l'image */
}

section ul li {
  display: none; /* toutes les slides cachées */
  justify-content: center;
  align-items: center;
  width: 100%;
  opacity: 0;
  transform: translateX(50px); /* légère translation pour l'animation */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section ul li.active {
  display: flex;
  opacity: 1;
  transform: translateX(0); /* slide visible */
}

section ul li img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto; /* centre l'image */
}

header{
	padding-bottom: clamp(24px, 3.75vw, 72px);
}

h1 {
	font-size: var(--h1-size);
  	font-family: 'open sans';
	color: #ffffff;
	text-align: center;
	text-transform: uppercase;
	font-weight: 700;
	margin-right: 5%;
	margin-left: 5%;
	line-height: 100%;
	margin-bottom: -1rem;
}

h2{
	font-size: var(--h2-size);
	font-family: 'Playfair Display';
	font-weight: 400;
	display: block;
	text-align: center;
}

h3{
	font-size: var(--h3-size);
	font-family: 'open sans';
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
}

p{
	font-size: var(--text-size);
	font-family: 'open sans'
}

a button{
	font-family: 'open sans';
	font-size: var(--button-font-size);
	color: var(--button-color);
	text-decoration: none;
}

button{
	display: inline-flex;
  	justify-content: center;
  	align-items: center;
  	width: var(--button-width);
  	height: var(--button-height);
  	border: none;
  	border-radius: var(--button-radius);
 	 background-color: var(--button-bg);
  	margin-top: var(--button-margin-top);
	margin-bottom: var(--button-margin-top);
  	cursor: pointer;
  	text-decoration: none;
  	font-family: 'open sans';
	font-weight: 400;
	text-transform: uppercase;
}

button:hover{
	background-color: #e0b872;
}

img{
	width: 100%;
	height: auto;
	max-width: 800px;
}

form{
	width: 100%;
	margin: 0;
      	background: #fff;
    	border: 0;
    	color: #000000;
   	 box-shadow: none;
    	box-sizing: border-box;
    	z-index: 80;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding-right: clamp(24px, 3.75vw, 72px);
	padding-top:  clamp(24px, 3.75vw, 72px);
	padding-bottom: clamp(24px, 3.75vw, 72px);
	padding-left: clamp(24px, 3.75vw, 72px);

}

form section {
	width: 100%;
}

textarea[name="message"] {
    width: 100%;
    min-height: 200px; /* Hauteur par défaut */
    resize: vertical; /* L'utilisateur peut l'agrandir seulement en hauteur */
    font-size: 1rem; /* Taille du texte (ex: 16px) */
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

footer{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	background-color: var(--button-bg);
	padding-top: clamp(24px, 3.75vw, 72px);
	padding-bottom: clamp(24px, 3.75vw, 72px);
	-webkit-box-align: baseline;
    align-items: center;
    -webkit-box-pack: justify;
}

footer a{
	color: #ffffff;
	font-family: 'Open Sans';
	font-weight: bold;
	text-decoration: none;
}

.banner {
  width: 100%;
  height: auto;
	 aspect-ratio: 2560/900;
  background-image: url("img/banniere.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement */
  text-align: center;
  position: relative;
  color: white;
}

/* On masque l'image <img> sur desktop */
.banner-img {
  display: none;
  width: 100%;
}

/* Contenu au-dessus de la bannière */
.content {
  z-index: 1;
  width: 100%; /* full largeur */
}



.banner::before{ 
	content: ""; 
	position: absolute; 
	inset: 0; background-image: linear-gradient(to top right, rgb(0, 0, 0) 0%, rgb(0, 0, 0) 5%, rgba(0, 0, 0, 0) 73.79%), url("../img/banniere.webp"); 
	background-size: cover; 
	background-position: center; 
	background-repeat: no-repeat; 
	z-index: 1; pointer-events: none;
} 

.banner > *{ 
	position: relative; z-index: 2; /* contenu au-dessus du flou et de l’assombrissement */ 
}

.mobtitle{
	display: flex;
	 justify-content: center; 
	align-items: center;
	flex-direcion: column;
}

.subline{
	font-size: var(--h3-size);
	font-family: 'open sans';
	font-weight: 400;
	padding-left: clamp(24px, 3.75vw, 72px);
	padding-right: clamp(24px, 3.75vw, 72px);
}


.intro{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.presentation{
	margin-top: clamp(2vw, 2.939vw, 3vw);
	text-align: center;
}

.flex, .flex-reverse{
	display: grid;
  	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  	gap: 6rem;
	justify-content: center;
	align-items: center;
	padding-bottom: clamp(24px, 3.75vw, 72px);
}

.infos{
	display: flex;
	justify-content: center;
}

.text{
	flex-direction: column;
}

.events{ 
	position: relative; 
	width: 100vw;
	height: auto;
	display: flex; 
	flex-direction: column; 
	gap: 2rem; 
	align-items: center; 
	justify-content: center; 
	color: white; 
	text-align: center; 
	overflow: hidden; /* pour contenir le pseudo-élément */ 
} 

.events::before{ 
	content: ""; 
	position: absolute; 
	inset: 0; background-image: url("../img/backgroundform.webp"); 
	background-size: cover; 
	background-position: center; 
	background-repeat: no-repeat; 
	z-index: 1; pointer-events: none;
} 


.grey{
	 background-color: rgba(100, 100, 100, 0.5);
	  backdrop-filter: blur(10px); /* Flou pour l'effet verre */
	padding-right: clamp(24px, 3.75vw, 72px);
	padding-top:  clamp(24px, 3.75vw, 72px);
	padding-bottom: clamp(24px, 3.75vw, 72px);
	padding-left: clamp(24px, 3.75vw, 72px);
	color: #ffffff;
	margin-left: clamp(24px, 3.75vw, 72px);
	margin-right: clamp(24px, 3.75vw, 72px);
	  border-radius: 8px; /* Optionnel : arrondir les coins pour l'effet "verre" */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Bordure subtile pour plus de réalisme */
	
}

.events > *{ 
	position: relative; z-index: 2; /* contenu au-dessus du flou et de l’assombrissement */ 
}



.grid2 {
   display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
  gap: 2rem;
}


.grid2 .form-group:last-child {
  	grid-column: 1 / -1; /* le premier élément occupe toute la largeur */
}

.identite, .lieux{
	padding-top: clamp(32px, 3.54vw, 68px);
}

.lieux{
	display: flex;
	flex-direction: row;
	gap: 2rem;
	justify-content: space-between;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
    gap: 0.5rem;
    color: #333;
}

/* Masquer la checkbox native */
.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Effet au survol */
.checkbox-group input[type="checkbox"]:hover {
    border-color: #37a3ae;
}

/* Effet quand cochée */
.checkbox-group input[type="checkbox"]:checked {
    background-color: #37a3ae;
    border-color: #37a3ae;
}

/* Icône check blanc */
.checkbox-group input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #e0b872;
    border-radius: 6px;
    background: white;
}

.form-group input,
.form-group select {
	height: 44px; 
}

.form-group label {
	position: absolute;
	left: 12px;
	top: 12px;
	color: #888;
	background: white;
	padding: 0 4px;
	transition: 0.2s ease;
	pointer-events: none;
}

/* Quand le champ est en focus ou rempli */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label 
.form-group select:focus + label,
.form-group select:valid + label{
    top: -8px;
    font-size: 12px;
    color: #37a3ae;
}

.progress-container svg {
    width: 100px;
    height: 100px;
}

/* Carousel général */
.carousel {
  position: relative;
  overflow: hidden; /* masque les slides hors écran */
  max-width: 1000px;
  margin: 0 auto;
	padding-bottom: clamp(24px, 3.75vw, 72px);
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1rem;
}

.slides li {
  flex: 0 0 100%; /* un slide à la fois */
  list-style: none;
	width: 100%;
}

.thumbnails {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.thumbnails img {
  width: 50px;
  height: auto;
  opacity: 0.6;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnails img.active {
  opacity: 1;
  border-color: gold;
}

.containeur{
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.button-flex{
	display: flex;
	flex-direction: row;
	gap: 2rem;
}

.contacts{
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.rs{
    display: flex;
    flex-flow: wrap;
    margin: 1rem calc(0.5rem) 0px;
	gap: 0.5rem;
}

.icon{
	width:  clamp(24px, 1.67vw, 32px);
	margin-left: clamp(16px, 1.25vw, 24px);
}

@media screen and (min-width: 769px) {
 	
	.flex .infos,
  	.flex-reverse .infos,
  	.grey {
    	opacity: 0;
    	transform: translateX(0) translateY(0); /* neutre, GSAP prendra le contrôle */
  	}
	

}


@media (min-width: 600px) and (max-width: 1024px) {
	form section {
    		width: 100% !important;
		}

	
	footer{
		flex-direction: column;
		justify-content: center;
		gap: 2rem;
	}
	
	.grid2{
		display: flex;
		flex-direction: column;
	}
}


/* === Mobile ≤599px === */


@media (min-width: 300px) and (max-width: 768px) {
	
@media (max-width: 768px) {

	h1{
		color: black;
	}

	 .banner {
    		background: none;
		display: flex;
		flex-direction: column;
  	}

	.banner::before {
		display: none; /* masque le pseudo-élément background desktop */
	}

	.banner-img {
		display: block;
		width: 100%;
		height: auto;
  	}

	.content {
		margin-top: 1rem;
		color: black;
	}
	
	.flex {
		display: flex;
		flex-direction: column;
		gap: 2rem;
	}
	
	.flex-reverse{
		display: flex;
		flex-direction: column-reverse;
		gap: 2rem;
	}
	
	
	
		.grid2{
		display: flex;
		flex-direction: column;
		gap: 0;
	}
	
	.lieux{
			display: flex;
	flex-direction: column;
	gap: 2rem;
	}
}