	html, body {
		margin: 0;
		padding: 0;
		height: 100%;
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
		background-color: #f4f7fa;
		color: #333;
	}

	header {
		position: relative;
		width: 100%;
		height: 100px;
		background-color: #1a73e8;
	}

	header img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}

	header h1 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 3em;
	font-family: 'Cinzel', serif;
	text-align: center;
	margin: 0;
	white-space: nowrap; /* empêche le retour à la ligne */
	text-shadow:
	3px 3px 8px rgba(0, 0, 0, 0.85),   /* ombre principale très sombre */
	6px 6px 14px rgba(0, 0, 0, 0.7),   /* ombre large pour halo diffus */
	1px 1px 0 rgba(0, 0, 0, 1),        /* trait noir net pour le contour */
	-1px -1px 0 rgba(0, 0, 0, 1),      /* bord supérieur net */
	0px 2px 1px rgba(0, 0, 0, 0.9);    /* effet de relief en dessous */;


}



	nav {
		background-color: #2c3e50;
		display: flex;
		justify-content: center;
		padding: 0.8em 0;
		box-shadow: 0 2px 4px rgba(0,0,0,0.3);
	}

	nav a {
		color: white;
		text-decoration: none;
		margin: 0 1.5em;
		font-family: 'Arial', sans-serif;
		font-weight: bold;
		transition: color 0.3s;
	}

	nav a:hover {
		color: #f39c12;
	}

	.content {
		flex: 1;
		padding: 2rem;
		width: 95%;
		margin: 0 auto;
		box-sizing: border-box;
	}

	button, .button {
		padding: 10px 15px;
		background-color: #4285f4;
		color: white;
		border: none;
		border-radius: 4px;
		cursor: pointer;
		transition: background-color 0.3s;
	}

	button:hover, .button:hover {
		background-color: #3367d6;
	}

	.button-cancel {
		background-color: #ccc;
		color: #333;
	}

	.admin-menu {
		background-color: #34495e;
		display: flex;
		justify-content: center;
		padding: 0.5em 0;
		box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	}

	.admin-menu a {
		color: white;
		text-decoration: none;
		margin: 0 1em;
		font-weight: bold;
		transition: color 0.3s;
	}

	.admin-menu a:hover {
		color: #f1c40f;
	}

	input[type="text"], select, textarea {
		width: 100%;
		max-width: 600px;
		box-sizing: border-box;
		padding: 8px;
		border: 1px solid #ccc;
		border-radius: 3px;
		font-size: 16px;
		margin-bottom: 0.1em;
		transition: border-color 0.3s;
	}

	input[type="text"]:focus, select:focus, textarea:focus {
		border-color: #4285f4;
		outline: none;
	}
	
	.disclaimer {
  max-width: 90%;
  margin: 1em auto;
  padding: 0.5em 0.5em;
  background-color: #e3f2fd;       /* Bleu clair très doux */
  border-left: 6px solid #1a73e8;  /* Bande verticale bleue vive */
  color: #1a1a1a;                  /* Texte sombre, bien lisible */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15); /* Ombre légère */
  text-align: center;
  font-style: italic;
  font-weight: 600;
  user-select: none; /* optionnel : empêche la sélection */
}


.required-highlight {
    border: 2px solid red;
}

	/* --- Responsive pour mobiles --- */
	@media (max-width: 600px) {
		header {
			height: 70px;
		}

		header h1 {
			font-size: 1.8em;
		}

		nav {
			flex-direction: column;
			padding: 0.5em 0;
		}

		nav a {
			margin: 0.5em 0;
			font-size: 18px;
		}

		.admin-menu {
			flex-direction: column;
			padding: 0.3em 0;
		}

		.admin-menu a {
			margin: 0.3em 0;
			font-size: 16px;
		}

		.content {
			display: flex;
		flex-direction: column;
		padding: 1rem;
		box-sizing: border-box;
		}

		input[type="text"], select, textarea {
			font-size: 14px;
			max-width: 100%;
		}

		button, .button {
			width: 100%;
			padding: 14px;
			font-size: 16px;
			margin-top: 10px;
			border-radius: 6px;
		}

		label {
			display: block;
			margin-bottom: 6px;
			font-weight: 600;
			font-size: 14px;
		}

		fieldset {
			padding: 0;
			margin-bottom: 15px;
			border: none;
		}
		#map {
		height: 30vh !important;  /* hauteur réduite pour laisser plus de place */
		margin-bottom: 1rem;
	  }

	  #calendar {
		flex-grow: 1;        /* prend tout l’espace restant */
		min-height: 50vh;    /* au moins 50% de la hauteur viewport */
		max-width: 100%;     /* largeur max 100% */
		margin: 0 auto;
		font-size: 0.75rem;  /* taille réduite du texte */
	  }
	}

	.flex-container {
	  display: flex;
	  max-width: 1200px;
	  margin: 2em auto;
	  gap: 2em;
	}

	.flex-item {
	  flex: 1;
	}

	#map {
	  width: 100%;
	  height: 650px; /* hauteur fixe pour grand écran */
	  border-radius: 8px;
	  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
	   min-height: 650px; /* ← parfois nécessaire pour lutter contre le collapse */
  display: block;
	}

	@media (max-width: 600px) {
	  .flex-container {
		flex-direction: column;
		margin: 1em;
	  }

	  #map {
		height: 300px !important; /* hauteur réduite pour mobile */
	  }
	}


	/* Login page styles */

	.login-container {
		background: white;
		padding: 2.5rem 3rem;
		border-radius: 8px;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
		width: 100%;
		max-width: 320px;
		box-sizing: border-box;
		text-align: center;
		margin: 3rem auto;
	}


	.login-container h2 {
		margin-bottom: 1.5rem;
		color: #1a73e8;
		font-family: 'Cinzel', serif;
	}

	.login-container label {
		display: block;
		text-align: left;
		font-weight: 600;
		margin-bottom: 0.25rem;
		color: #555;
	}

	.login-container input[type="text"],
	.login-container input[type="password"] {
		width: 100%;
		padding: 0.5rem 0.75rem;
		margin-bottom: 1.25rem;
		border: 1px solid #ccc; /* cohérent avec le reste */
		border-radius: 4px;
		font-size: 1rem;
		transition: border-color 0.3s;
	}

	.login-container input[type="text"]:focus,
	.login-container input[type="password"]:focus {
		border-color: #4285f4;
		outline: none;
		box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.25);
	}

	.login-container button {
		background-color: #4285f4; /* même bleu que tes boutons */
		color: white;
		border: none;
		padding: 0.6rem 1rem;
		font-size: 1.1rem;
		font-weight: 700;
		border-radius: 5px;
		cursor: pointer;
		width: 100%;
		transition: background-color 0.3s;
	}

	.login-container button:hover {
		background-color: #3367d6;
	}

	.login-container .error-message {
		color: #d93025;
		margin-bottom: 1rem;
		font-weight: 600;
	}

	label {
	  display: block;
	  margin-top: 1em;
	}

	body.modal-open {
			overflow-y: auto !important;
			padding-right: 0 !important;
		}

		.modal {
			overflow-y: auto !important;
			scroll-behavior: smooth;
		}

	#modeSelector {
		background: white;
		border-radius: 5px;
		padding: 10px 15px;
		margin-bottom: 10px;  /* espace sous les boutons */
		box-shadow: 0 2px 5px rgba(0,0,0,0.3);
		font-family: Arial, sans-serif;
		font-size: 14px;
		display: flex;
		align-items: center;
		gap: 20px; /* espace entre les radios */
	}

	#modeSelector label {
		cursor: pointer;
		user-select: none;
	}

	#dateRange {
		display: none;
		gap: 8px;
		align-items: center;
	}

	#dateRange input[type="date"] {
		padding: 3px 6px;
		font-size: 14px;
	}

	.ligue-presentation {
		background: #f9f9f9;
		border-left: 6px solid #0077cc;
		padding: 1.5em;
		margin-bottom: 2em;
		border-radius: 6px;
		box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	}

	.ligue-presentation h3 {
		margin-top: 0;
		font-size: 1.6em;
		color: #0077cc;
	}

	.ligue-location {
		font-style: italic;
		color: #444;
	}

	.ligue-description {
		margin: 1em 0;
	}

	.ligue-referents h4 {
		margin-bottom: 0.5em;
	}

	.ligue-referents ul {
		list-style: none;
		padding-left: 0;
	}

	.ligue-referents li {
		margin-bottom: 0.4em;
	}

	.ligue-referents a {
		color: #005fa3;
		text-decoration: none;
	}

	.ligue-referents a:hover {
		text-decoration: underline;
	}

	.editable-field {
	  user-select: none;
	  font-family: Arial, sans-serif;
	  line-height: 1;
	}
	.display-val {
	  cursor: default;
	  user-select: text;
	}
	.input-val {
	  display: none;
	  font-size: 0.9em;
	  padding: 2px 4px;
	  box-sizing: border-box;
	  vertical-align: middle;
	}
	.edit-btn {
	  background: transparent;
	  border: none;
	  cursor: pointer;
	  font-size: 0.9em;
	  color: #666;
	  padding: 0 2px;
	  user-select: none;
	  vertical-align: middle;
	}
	.edit-btn:hover {
	  color: #000;
	}
	.save-btn {
	  background: transparent;
	  border: none;
	  cursor: pointer;
	  font-size: 1.1em;
	  color: green;
	  padding: 0 2px;
	  user-select: none;
	  vertical-align: middle;
	  display: none;
	}

	/* Titres des années */
	h2 {
	  margin-top: 1.5em;
	  font-size: 1.6em;
	  color: #2c3e50;
	  border-bottom: 2px solid #3498db;
	  padding-bottom: 0.3em;
	}

	/* Bloc année */
	.anneeContent {
	  background: #f9f9f9;
	  border: 1px solid #ddd;
	  border-radius: 6px;
	  padding: 1em;
	  margin-bottom: 2em;
	  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
	}

	/* Liens accordéon */
	a.toggleJoueur,
	a.toggleTournoi,
	#toggleQualifiesMaster,
	a[href^="#"]:not(.no-style) {
	  display: inline-block;
	  margin: 0.2em 0;
	  color: #2980b9;
	  text-decoration: none;
	  transition: all 0.2s ease-in-out;
	}
	a.toggleJoueur:hover,
	a.toggleTournoi:hover,
	#toggleQualifiesMaster:hover {
	  text-decoration: underline;
	  color: #1c5980;
	}

	/* Tableaux */
	table {
	  background-color: white;
	  border-radius: 5px;
	  overflow: hidden;
	  margin: 1em 0;
	  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	}
	table thead {
	  background-color: #ecf0f1;
	}
	table th, table td {
	  border: 1px solid #ccc;
	  text-align: left;
	  padding: 0.5em;
	}
	table th {
	  font-weight: bold;
	  background-color: #f0f4f7;
	  color: #333;
	}

	/* Résultat modifiable */
	.editable {
	  background-color: #fffef0;
	  cursor: pointer;
	}
	.editable:hover {
	  background-color: #fdf6c1;
	}

	/* Liens vers "ajouter/modifier" */
	a[href*="results.php"] {
	  font-weight: 500;
	  color: #007bff;
	  text-decoration: none;
	}
	a[href*="results.php"]:hover {
	  text-decoration: underline;
	}

	/* Titres h3 et h4 */
	h3 {
	  color: #2d3436;
	  margin-top: 1em;
	}
	h4 {
	  font-weight: normal;
	  font-size: 1.1em;
	  color: #555;
	  margin-left: 1.2em;
	}

	/* Liste des tournois */
	ul {
	  margin-top: 0.5em;
	}
	ul li {
	  margin-bottom: 0.5em;
	}
	/* Enlever le lien bleu et le soulignement sur les noms des jours (headers) */
	.fc-col-header-cell-cushion {
	  color: black !important;
	  text-decoration: none !important;
	  cursor: default !important;
	  font-size: 0.75rem !important; /* réduire la taille */
	  padding: 4px 0 !important;
	}

	/* Enlever le lien bleu et le soulignement sur les chiffres des jours */
	.fc-daygrid-day-top,
	.fc-daygrid-day-top a {
	  color: black !important;
	  text-decoration: none !important;
	  cursor: default !important;
	  font-size: 0.75rem !important; /* réduire la taille */
	  padding: 4px 0 !important;
	}

	/* Calendrier - taille globale réduite */
	#calendar {
	  max-width: 450px;  /* moitié de 900px */
	  margin: 20px auto;
	  font-size: 0.75rem; /* réduit la taille des textes */
	}

	/* Réduit la hauteur et padding des jours */
	.fc .fc-daygrid-day {
	  padding: 4px 2px !important;
	  height: 70px; /* hauteur plus compacte */
	}

	/* Curseur et fond au hover */
	.fc-daygrid-day:hover {
	  cursor: pointer;
	  background-color: #f9f9f9;
	}

	/* Boutons FullCalendar (navigation, vues) */
	.fc .fc-button {
	  font-size: 0.75rem;
	  padding: 4px 8px;
	  min-width: 60px;
	  height: 30px;
	}

	/* Tooltip */
	.custom-tooltip {
	  animation: fadeInOut 5s forwards;
	  position: absolute;
	  background: rgba(0,0,0,0.75);
	  color: white;
	  padding: 6px 10px;
	  border-radius: 4px;
	  z-index: 9999;
	  max-width: 300px;
	  font-size: 0.75rem; /* un peu plus petit */
	  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	}

	/* Animation tooltip */
	@keyframes fadeInOut {
	  0% {opacity: 0;}
	  10% {opacity: 1;}
	  90% {opacity: 1;}
	  100% {opacity: 0;}
	}

	/* Modal (formulaire) : réduire largeur */
	.modal-dialog {
	  max-width: 350px;
	}

	/* Boutons généraux au-dessus (si dans container ou .content) */
	.container > button,
	.container > .btn,
	.content > button,
	.content > .btn {
	  font-size: 0.8rem;
	  padding: 6px 10px;
	  min-width: 80px;
	}

		
		.commentaire-petit {
	  font-size: 10px;      /* taille réduite */
	  color: #666666;         /* gris moyen */
	  margin: 6px 0 8px 0;    /* marges verticales */
	  padding-bottom: 4px;
	  border-bottom: 1px solid #ddd;
	  font-style: italic;     /* optionnel, pour un effet note */
	}

/* Par défaut (desktop) : formulaire en colonnes */
.form-section form {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Chaque fieldset prend environ la moitié de la largeur sur desktop */
.form-section fieldset {
  flex: 1 1 45%;
  min-width: 300px;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

/* Suppléants en pleine largeur (ou tu peux mettre 3 colonnes si tu veux) */
.form-section fieldset:last-of-type {
  flex-basis: 100%;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Pour les groupes dans les suppléants, on met 2 colonnes */
.form-section fieldset:last-of-type .form-group {
  flex: 1 1 45%;
  min-width: 250px;
}

/* Form-groups pour les autres fieldsets en colonne */
.form-section .form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

/* Inputs & textarea prennent toute la largeur */
.form-section input[type="text"],
.form-section input[type="email"],
.form-section select,
.form-section textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Bouton centré sous le formulaire */
.form-section > form > .form-group:last-child {
  flex-basis: 100%;
  text-align: center;
  margin-top: 2rem;
}

/* Bouton en inline-block pour un rendu plus propre */
.form-section button {
  min-width: 200px;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 6px;
}

.btn-password {
  min-width: auto;
  padding: 8px 16px;
  font-size: 0.9rem;
  width: auto;
}


/* Mobile : revenir à une seule colonne */
@media (max-width: 600px) {
  .form-section form {
    display: block;
    max-width: 100%;
  }

  .form-section fieldset {
    flex-basis: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .form-section fieldset:last-of-type {
    display: block;
  }

  .form-section fieldset:last-of-type .form-group {
    flex-basis: 100%;
  }

  .form-section > form > .form-group:last-child {
    text-align: left;
  }
}

.message-error {
    background-color: #ffe6e6;
    border: 1px solid #cc0000;
    color: #cc0000;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-weight: bold;
}

#form-ligue {
  display: block;
}

.mb-4 {
  margin-bottom: 0.5rem !important;
}


#searchResults {
	margin-top: 0.3em;
  max-height: 250px;
  overflow-y: auto;
  position: relative;
  z-index: 1000;
}

.tooltip-icon {
  display: inline-block;
  margin-left: 6px;
  color: #4285f4;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9em;
  position: relative;
}

.tooltip-icon:focus + .custom-tooltip-bubble,
.tooltip-icon:hover + .custom-tooltip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-tooltip-bubble {
  background-color: rgba(0,0,0,0.85);
  color: white;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 6px;
  position: absolute;
  z-index: 9999;
  width: 280px;
  top: 100%;
  left: 0;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.custom-tooltip-bubble p {
  margin: 0 0 0.5em 0;
  line-height: 1.4;
}

.tooltip-wrapper {
  display: inline-block;
  position: relative;
  margin-left: 8px;
}

.tooltip-icon {
  display: inline-block;
  color: #4285f4;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9em;
  user-select: none;
}

.tooltip-icon:focus + .custom-tooltip-bubble,
.tooltip-icon:hover + .custom-tooltip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-tooltip-bubble {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 6px;
  position: absolute;
  z-index: 9999;
  width: 280px;
  top: 120%;
  left: 0;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.custom-tooltip-bubble p {
  margin: 0 0 0.5em 0;
  line-height: 1.4;
}
.label-with-tooltip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.calendar-squares {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.calendar-square {
  width: 140px;
  height: 160px;
  background-color: #fff;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  text-align: center;
  position: relative;
}

.calendar-square-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5em;
}

.calendar-square-day-number {
  font-size: 2em;
  font-weight: bold;
  color: #e74c3c; /* rouge */
  line-height: 1.1;
}

.calendar-square-day-name {
  font-size: 0.85em;
  color: #2c3e50;
  font-weight: 600;
  margin-top: 0.2em;
}

.calendar-square-month-full {
  font-size: 0.75em;
  color: #555;
  margin-top: 0.1em;
}
.calendar-category {
  font-size: 0.7em;
  color: #888;
  text-align: center;
  margin-bottom: 0.3em;
  font-style: italic;
}



.faq-a h1, .faq-a h2, .faq-a h3 {
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.faq-a ul {
    padding-left: 1.5em;
    list-style-type: disc;
}

.faq-a ol {
    padding-left: 1.5em;
    list-style-type: decimal;
}

.faq-a strong {
    font-weight: 600;
}

.faq-a em {
    font-style: italic;
}
.faq-a img {
  display: block;
  margin: 1em auto;
  max-width: 100%;
  height: auto;
}

.admin-faq .faq-q {
    background: #dc3545 !important; /* rouge bootstrap */
    color: #fff;
}

@media (prefers-color-scheme:dark){
   .admin-faq .faq-q {
       background: #ff4e4e !important;
       color: #fff;
   }
}



/* Par défaut, on masque le bouton hamburger */
.menu-toggle {
    display: none;
}

/* Sur les petits écrans (mobile), on l'affiche */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 2em; /* taille du ☰ */
        background: #2c3e50;
        border: none;
        color: white; /* ou selon ton design */
        cursor: pointer;
		/* Supprime le style de focus/active de Bootstrap */
    outline: none;
    }
	.menu-toggle:focus,
.menu-toggle:active {
    background: rgba(0,0,0,0.5); /* reste gris comme avant */
    box-shadow: none; /* supprime le halo bleu */
}

    /* On peut aussi masquer le menu par défaut sur mobile */
    #main-nav {
        display: none;
        flex-direction: column;
        gap: 1em;
    }

    #main-nav.show {
        display: flex; /* affichage quand le bouton est cliqué */
    }
}
