/* ! GENERAL */

html, body {
	margin: 0;
	padding: 0;
	border: none;
	font-family: 'Montserrat', sans-serif;
	background-image: url(images/fond.jpg);
	min-height: 100vh;
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-size: cover;
	color: white;
}

h1, h2, h3 { 
	font-family: 'Cinzel', serif;
	color: white; 
}

/* "h2" avec traits à gauche et à droite */
h2 {
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 20px;
	margin-top: 50px;
	margin-bottom: 30px;
	gap: 10px;
	position: relative;
}
h2::before {
	content: "";
	flex: 1;
	height: 2px;
	background: linear-gradient(to left, rgba(176,141,87,1), rgba(176,141,87,0));
}
h2::after {
	content: "";
	flex: 1;
	height: 2px;
	background: linear-gradient(to right, rgba(176,141,87,1), rgba(176,141,87,0));
}

.messageImportant {
	display: flex;
	width: 80%;
	align-items: center;
	justify-content: center;  
	background-color: rgb(48, 29, 29);
	color: white;
	height: 50px;
	border-radius: 50px;
	margin: 0 auto;
	font-size: 20px;
	font-weight: bold;
	border: 1px solid white;
	font-family: 'Cinzel', serif;
}

/* ! STRUCTURE DE LA PAGE */

/* ! HEADER */

header {
	position: sticky;
	top: 0;
	z-index: 1000;
}

/* couche de masquage */
header::before { 
	content: "";
	position: absolute;
	inset: 0;
	/* reprend exactement le fond du body */
	background-image: url("images/fond.jpg"); 
	background-size: cover;
	background-position: top center;
	background-attachment: fixed;
	/* fondu transparent en bas */
	mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
	-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 75%,rgba(0,0,0,0) 100%);
	z-index: -1;
}

nav {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	height: 60px;
	padding-top: 30px;
	padding-bottom: 25px;
	width: 100%;  
	margin-left: 120px;
	width: calc(100% - 120px);
}

#logo {
	position: absolute;
	top: 5px;
	left: 5px;
	height: 110px;
}

#nomSite {
	width:500px ;
	margin-left: 10px;
}

#titreSite {
	color: white;
	font-family: 'Cinzel', serif;
	font-size: 20px;
	font-weight: bold;
}

#slogan {
	color: white;
	font-size: 12px;
	font-weight: bold;
}

nav ul {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	list-style: none;
	width: 100%;
	height: 20px;
	font-size: 12px;
	font-weight: bold;
	padding: 0;
	margin: 20px 20px 20px 20px;
}

nav li {
	display: flex;
	align-items: center;
	margin-left: 2px;
	margin-right:2px;
	padding: 5px;
	border-radius: 20px;
}

nav li:hover {
	background-color: rgb(58, 58, 58);
}

#connexion {
	position: absolute;
	top: 10px;
	right: 150px;
	border: 1px solid #b08d57;
	font-size: 12px;
	padding: 3px;
}

#creercompte {
	position: absolute;
	top: 10px;
	right: 20px;
	border: 1px solid #b08d57;
	font-size: 12px;
	padding: 3px;
}

nav a {
	text-decoration: none;
	color: #b08d57;
}

.menuSelectionne{
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

/* ! MAIN */

main {
	padding: 0 20px 20px 20px;
	margin: 0 auto 30px auto;
	width: 75%;
	font-size: 13px;
}

/* ! FOOTER */

footer {
	height: 30px;
	padding: 15px;
	margin: 10px 10px 30px 10px;
	text-align: center;
	color: white;
}

#footerLiens {
	display: flex;
	font-size: 13px;
	font-weight: bold;
	gap: 0px;
	justify-content: space-between;
	width: 800px;
	margin: 0 auto;
}

footer a {
	text-decoration: none;
	color: white;
	
}

footer a:hover {
	color: #b08d57;
}

#copyright {
	font-size: 10px;
	font-weight: bold;
	margin-top: 20px;
}

/* ! PAGE ACCUEIL */

#accueil form {
	width: 100%;
	display: flex;
	align-items: center;
	margin: 10px 0 30px 0;
	padding : 5px 0;
}

#labelAccueilMail {
	margin-right: 30px;
	margin-left: 10px;
	color: white;
	font-size: 14px;
}

#inputAccueilMail {
	width: 400px;
	height: 20px;
	margin: 0 30px 0 0;
}

#submitAccueilMail {
	width: 100px;
	background-color: #b08d57;
	cursor: pointer;
    transition: all 0.25s ease;
	height: 25px;
	border-radius: 2px;
	color: white;
}

.texteAccueil {
	color: white;
	font-size: 14px;
	padding: 10px;
	margin-top: 30px;
}

.messageReponseFormulaire {
	color: white;
	font-size: 16px;
	padding: 0;
	margin : 0 0 0 100px;
}

.texteAccueil p {
	margin: 0 0 10px 0;
	padding: 0;
}

.accueilUnivers {
	display: flex;
	justify-content: space-between;
}

.accueilArticles {
	display: flex;
	justify-content: space-between;
}

#accueil table {
	border-collapse: collapse;
	color: white;
	margin: 0 auto;
	width: 90%;
	table-layout: fixed;
}

#accueil tr {
	border-top : solid 1px #b08d57;;
}

#accueil td {
	padding: 5px;
}

#accueil td:nth-child(1) { width: 25%; } /* Date */
#accueil td:nth-child(2) { width: 20%; } /* Discipline */
#accueil td:nth-child(3) { width: 10%; } /* Association */
#accueil td:nth-child(4) { width: 20%; } /* Nom */
#accueil td:nth-child(5) { width: 25%; } /* Lieu */

#accueil button {
	display: block;
	width: 300px;
	background: linear-gradient(135deg, #c9a15f, #b08d57);
	cursor: pointer;
    transition: all 0.25s ease;
	height: 25px;
	border-radius: 2px;
	color: white;
	margin: 20px auto;
}

.imgAccueilUnivers {
	position: relative;   /* point d’ancrage pour l’overlay */
	overflow: hidden;
}

.imgAccueilUniversImage {
	width: 185px;
	height: 123px;
	filter: sepia(100%);
}

.imgAccueilUniversImage:hover {
	filter: none;
	cursor: pointer;
}

.imgAccueilUniversTexte {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	font-weight: bold;
	padding: 0 3px 10px 3px;
	color: white;
	font-size: 14px;
	background: linear-gradient(to top, rgba(0,0,0,1.75), rgba(0,0,0,0.1));
}

.imgAccueilArticles {
	position: relative;
	overflow: hidden;
}

.imgAccueilArticlesImage {
	width: 240px;
	border-radius: 10px;
}

.imgAccueilArticles { box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.8); }


.imgAccueilArticlesImage {
	cursor: pointer;
}

.imgAccueilArticlesTexte {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	font-weight: bold;
	padding: 3px 3px 10px 3px;
	color: white;
	font-size: 12px;
	background: linear-gradient(to top, rgba(0,0,0,3), rgba(252, 166, 166, 0.4));
}

/* ! PAGE CONTACT */

.formulaireContact {
	margin-top: 30px;
}

#btnEnvoiContact {
	width: 100px;
	background-color: #b08d57;
	cursor: pointer;
    transition: all 0.25s ease;
	height: 25px;
	border-radius: 2px;
	color: white;
	grid-column: 2;  
}

#formContact {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 12px 16px;
	max-width: 500px;
}

#formContact label {
	text-align: right;
	padding: 8px;
}

#formContact input, #formContact textarea {
	padding: 8px;
	font-family: inherit;
}

#formContact textarea {
	resize: vertical;
}

#pageContact ul {
	list-style: none;
}

#pageContact {
	font-size: 16px;
}

#pageContact a {
	color: white;
	text-decoration: none;
}

#pageContact a:hover {
	color:#b08d57;
}

#listeContacts {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 12px 16px;
	max-width: 500px;
}















/* ! PAGE EVENEMENTS */



/* On cible directement les formes, pas les <g> */
#mapFR .region {
  cursor: pointer;
  transition: 0.15s;
  fill: rgb(255, 255, 255) !important;
  stroke: rgb(0, 0, 0) !important;
  stroke-width: 1.5 !important;
}

#mapFR .region:hover {
  fill: rgba(176,141,87,1) !important;
}

#mapFR .region.selected {
  fill: rgba(176,141,87,1) !important;
}


/* .region { 
  fill: red !important;
  stroke: yellow !important;
  stroke-width: 3 !important;
} */

svg { user-select: none; }

#mapFR svg{
  width: 100%;
  max-width: 200px;   /* ← ajuste ici (500 / 550 / 650…) */
  height: auto;
  display: block;
  margin: 0 auto;
}

#mapFR svg text{
  display: none;
}






/* Chips dates */

.periodeBar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin: 16px 0;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.chip{
  border: 1px solid rgba(176,141,87,0.6);
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.chip.isActive{
  background: rgba(176,141,87,0.15);
  border-color: rgba(176,141,87,1);
}

.dates{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

#btnClear{
  padding: 8px 12px;
  cursor:pointer;
}


