/* ============================
   VARIABLES
============================ */
:root {
  --bg: white;
  --primary: #1d1d1d;
}

/* ============================
   BASE
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
	/*outline: 1px solid rgba(255, 0, 0, 0.2);*/
}

html, body {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	text-align: center;
  height: 100%;
	max-height: 100%;
	width: 100vw;
	margin: 0;
	padding: 0;
	position: relative;
  overflow-x: hidden;
	overflow-y: auto;
}

.contenu-centrale {
  position: relative;
	padding: 0.5rem;
  width: 1500px;
  margin: 0 auto;
  background: transparent;
  z-index: 2;
  display: block;
	/*overflow-y: auto;*/
	box-sizing: border-box;
	flex-direction: column;
	flex: 1;
}

/* wrapper page pour le scroll */
.page-wrapper {
  position: relative;
  background: transparent;
	padding-bottom: 75px;
	overflow-y: auto;
}

/* ============================
   FOND ROUGE
============================ */
.fond-rouge {
  position: fixed;
  inset: 0;
	width: 100vw;
  height: 100vh;
  background: rgb(168,0,0);
  z-index: 0;
}

/* ============================
   FOND BLANC
============================ */
.fond-blanc {
  position: fixed;
  top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 1900px;
  height: 100vh;
  background: rgb(255,255,255);
  z-index: 0.5;
}

/* ============================
   IMAGES INTERMEDIAIRES
============================ */
.intermediaire,
.intermediaire2 {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1920px;
  height: 100%;
  transform: translateX(-50%);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.intermediaire {
  background-image: url('images/fond_scene.jpg');
  z-index: 1;
  transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.intermediaire2 {
  background-image: url('images/fond_scene2.jpg');
  z-index: 1.5;
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* bande noire du menu flottant */
.bande-noire {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 65px;
  background: var(--primary);
  z-index: 2;
  pointer-events: auto;
}

/* ============================
   RIDEAU
============================ */
.rideau {
  position: fixed;
  top: 0;
  left: 50%;
  width: 1920px;
  height: 100%;
  transform: translateX(-50%);
  background-image: url('images/rideau.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  z-index: 5;
  pointer-events: none;
}

/* ===================
   Layout & Containers
====================== */
#map {
  width: 590px;
  height: 550px;
  margin: 20px 0;
  flex-shrink: 0;
  border-radius: 12px;
}

header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 160px;
  z-index: 6;
  color: white;
  padding: 16px;
  text-align: center;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
  flex: 1;
	display: flex;
  flex-direction: column;
  justify-content: center;
	overflow: hidden;
	align-items: center;
}

.container {
  width: 1200px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  margin: 0 auto;
  justify-content: space-between;
}

footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
  color: white;
  pointer-events: auto;
  text-align: center;
  padding: 10px;
  font-size: 12.6px;
}

footer a {
  color: white;
  text-decoration: underline;
}

.mobile-break {
  display: none;
}

.br-mobile {
    display: inline;
}

/* ===============
   Listing & Carte
================== */
#listing {
  flex: 1;
  overflow-y: auto;
  box-sizing: border-box;
  width: 100%;
  background-color: transparent;
}

#list {
  width: 555px;
}

#right-column {
  width: 590px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
	margin: 20px 0;
}

#list > div {
  width: 100%;
  background-color: white;
}

/* ===================
   Contrôles & Filtres
====================== */
.controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap; /* Permet le retour à la ligne */
}

.control-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.controls-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.controls label,
.controls select,
.controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  box-sizing: border-box;
}

/* ==========
   List Items
============= */
.listing-item {
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 5px 0 5px 20px;
  margin-bottom: 10px;
}

.listing-item:hover {
  border-color: var(--accent);
  background-color: white;
}

/* =======================
   Message de confirmation
========================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-box {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 400px;
}

.modal-box button {
  margin-top: 20px;
  padding: 10px 20px;
  background: #663399;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ============================
   MENU FLOTTANT
============================ */
.navbar {
  position: fixed;
	top: 160px; /* position initiale desktop, réajustée par JS */
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  z-index: 4;
	pointer-events: auto;
}

/* Mode hamburger = par défaut invisible */
.menu-toggle {
	position: fixed;
	display: none;
  top: 10px;
  right: 10px;
  z-index: 9999;
  font-size: 32px;
  color: white;
  cursor: pointer;
	width: 45px;
  height: 45px;
	background: var(--primary);
	border: none;
  border-radius: 6px 6px 0 0;
	text-align: center;
	line-height: 45px;
}

.nav-links {
  background: var(--primary);
  color: white;
  display: flex;
  justify-content: center;
  gap: 19px;
  list-style: none;
  padding: 10px;
  flex-wrap: wrap;
  font-size: 2rem;
	transition: max-height 0.4s ease;
}

/* ============================
   TYPOGRAPHIE
============================ */
header h1 {
  font-family: 'Pacifico', cursive;
  font-size: 48px;
  margin-bottom: 3.2px;
}

header a {
  display: inline-block;
}

header p {
  font-size: 20.8px;
}

main > p {
	color: #1d1d1d;
	font-size: 17.6px;
	font-weight: bold;
}

nav a {
  color: white;
  font-weight: bold;
  font-size: 17.6px;
  text-decoration: none;
  transition: transform 0.2s;
}

nav a:hover {
  transform: scale(1.1);
  text-decoration: underline;
}

h2 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 28px;
}

h3 {
  color: var(--primary);
}

.titre-programme {
  display: inline-block;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 10px;
	margin: 0 auto;
	text-align: center;
}

.programme {
  font-size: 22.4px;
  margin: 30px auto;
	width: 1000px;
  font-weight: bold;
	text-align: left;
	padding: 20px
}

.programme h3 {
	width: 115px;
	padding-left: 10px;
  margin-top: 20px;
	background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
	border-radius: 5px;
}

.programme h3.auto-size {
  display: inline-block;
  width: auto;
}

.programme p {
  margin-left: 20px;
}

.countdown {
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(6px);
	padding : 30px;
  font-size: 22.4px;
  margin: 50px 0;
  color: var(--primary);
  font-weight: bold;
	border-radius: 10px 30px 10px 30px;
}

.wlc,
.cta {
  position: fixed;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
}
	
.wlc {
  font-size: 30px;
  margin-top: 50px;
  font-weight: bold;
}

.cta {
  margin-top: 32px;
  display: inline-block;
  padding: 12.8px 24px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 16px;
  transition: background 0.3s;
  width: 250px;
}

.cta:hover {
   background: var(--bg);
	 color: var(--primary);
	 border-width: 1px;
	 border-style: solid;
	 border-color: var(--primary);
}

/* =======================
   Messagep de confirmation
========================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-box {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 400px;
}

.modal-box button {
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ====================
   Animations & Effects
======================= */
.animated-notes {
  font-size: 32px;
  color: var(--primary);
}

/* ==============
   Page Connexion
================= */
form.cxt {
	width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-group {
	display: flex;
	align-items: center;
	margin-bottom: 1.2rem;
}

.form-group label {
	width: 100px;
	margin-right: 10px;
	text-align: right;
	font-weight: bold;
}

.form-group input {
	max-width: 220px;
	flex: 1;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 14px;
}

/* ===============
   Formulaire rsvp
================== */
form.rsvp {
  width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

form.rsvp .form-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.hidden-row {
  display: none !important;
}

form.rsvp .form-row label {
    width: 250px; /* ajustable selon ton design */
    font-weight: bold;
    margin-right: 10px;
    font-size: 15px;
		background: rgba(255, 255, 255, 0.4);
		backdrop-filter: blur(6px);
		animation: fadeBg 5s forwards; /* lancement automatique */
}

@keyframes fadeBg {
    0% {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(6px);
    }
    100% {
        background: rgba(255, 255, 255, 0); /* transparent */
        backdrop-filter: blur(0); /* optionnel : disparaît aussi */
    }
}

form.rsvp .form-row input[type="text"],
form.rsvp .form-row input[type="email"],
form.rsvp .form-row input[type="tel"],
form.rsvp .form-row input[type="password"],
form.rsvp .form-row input[type="number"] {
    flex: 1;
    padding: 8px;
    font-size: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
		background : var(--bg);
}

form.rsvp .form-row.checkbox-label {
    display: flex;
    align-items: center;
}

form.rsvp .form-row.checkbox-label label {
    width: auto;
    font-weight: normal;
}

form.rsvp button {
	width: 250px;
	padding: 10px 20px;
	font-size: 16px;
	background-color: var(--primary);
	color: white;
	border: none;
	border-radius: 25px;
	cursor: pointer;
	display: block;
	margin: 0px auto 0px;
	transition: background-color 0.3s ease;
}

form.rsvp button:hover {
		background-color: var(--bg);
    color: var(--primary);
		border-width: 1px;
		border-style: solid;
		border-color: var(--primary);
}

.checkbox-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 5px 0;
}

.custom-checkbox {
	width: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 5px 0;
}

.custom-checkbox input[type="checkbox"] {
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #555;
	border-radius: 4px;
	background-color: white;
	cursor: pointer;
	position: relative;
	margin-right: 10px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:checked {
	background-color: #4CAF50; /* vert */
	border-color: #4CAF50;
}

.custom-checkbox input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.custom-checkbox label {
	white-space: nowrap; /* Empêche le retour à la ligne dans le label */
	cursor: pointer;
	font-size: 1rem;
}

.rsvp label {
	text-align: right;
	margin-right: 15px;
}

.rsvp input[type="text"],
.rsvp input[type="email"],
.rsvp input[type="tel"],
.rsvp input[type="password"],
.rsvp input[type="number"] {
	width: 100%;
	padding: 8px;
	box-sizing: border-box;
}

.form-instruction {
	margin-top: -15px;
	margin-bottom: 10px;
}

/* ==========
   discussion
============= */
.bloc-message {
	width: 95%;
	max-width: 900px;
  margin: 10px auto;
  background-color: #f4f4f4;
	border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
	box-sizing: border-box;
}

.reponses {
	background-color: #f9f9f9;
	padding: 10px;
	margin-left: 2rem;
	margin-right: 2rem;
  margin-top: 1rem;
	border-radius: 4px;
	border-left: 3px solid #ccc;
	border-right: 3px solid #ccc;
}

.reponse {
  background-color: #efe9d9;
	padding: 10px;
	margin: 10px 0 10px 20px;
	border-radius: 8px;
}

.form-reponse textarea {
    width: 100%;
    resize: vertical;
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.form-reponse button {
    margin-top: 0.3rem;
    padding: 0.4rem 1rem;
}

.btn-repondre {
	background-color: #f2f2f2;
	border: 1px solid #ccc;
	padding: 6px 12px;
	font-size: 0.9rem;
	cursor: pointer;
	border-radius: 5px;
	/*margin-top: 1rem;*/
}

.btn-repondre:hover {
	background-color: #e0e0e0;
}

button.actif {
	font-weight: bold;
	background-color: #ddd;
}

.mon-message {
	background-color: #f8e7d2;
}

.autre-message {
	background-color: #dba6a1;
}

.boutons-actions {
    display: flex;
    justify-content: center;
    gap: 10px; /* espace entre les boutons */
    margin-top: 5px;
}

.boutons-actions button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: background-color 0.2s;
}

.boutons-actions button:hover {
    background-color: #45a049;
}

.btn-section {
	padding: 12px 20px;
	margin: 10px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, #6a0f49, #a63d75);
	background: var(--primary);
	color: var(--bg);
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	transition: transform 0.1s ease, background 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.btn-section:hover {
	background: var(--bg);
	color: var(--primary);
}

.btn-section.actif {
  background: var(--bg);
	color: var(--primary);
  box-shadow: 0 0 15px 3px #1d1d1d;
	box-shadow: inset 0 0 15px 3px #1d1d1d;
}

/* ======
   Cookie
========= */
.cook {
	text-align: left;
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(6px);
	
}

#cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

#cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background-color: white;
  padding: 0px 25px 25px 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  font-family: sans-serif;
}

.cookie-modal-content h2 {
  margin-top: 0;
  color: var(--primary);
}

.cookie-modal-buttons {
  margin-top: 20px;
  text-align: right;
}

.cookie-modal-buttons button {
  padding: 10px 16px;
  margin-left: 10px;
  border: 1px solid;
	border-color: var(--primary);
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.cookie-modal-buttons button:first-child {
  background-color: var(--primary);
  color: var(--bg);
}

.cookie-modal-buttons button:last-child {
  background-color: var(--bg);
	color: var(--primary);
}

footer a[href="cookies.php"] {
  color: white;
  text-decoration: underline;
}

footer a[href="cookies.php"]:visited {
  color: var(--accent);
}

/*	================
		Version tablette
		(600px à 1180px)
		================ */
@media screen and (max-width: 1180px) {
  .intermediaire,
  .intermediaire2,
  .rideau {
    width: 100%;
    height: 100vh;
    left: 0;
    transform: none;
    background-size: cover;
  }

  .bande-noire {
    width: 100%;
    left: 0;
    transform: none;
  }

	.wlc,
	.cta {
		bottom: 120px;
	}
	
  h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1.3rem;
  }

  header {
    height: 100px;
    padding: 8px 12px;
  }

  header h1 {
    font-size: 2.5rem;
  }

  main {
    max-width: 100%;
    padding: 0 4px;
  }

  h2 {
    font-size: 1.2rem;
  }

  .contenu-centrale {
    width: 90%;
    max-width: 90%;
		overflow: hidden;
  }

  nav a {
    font-size: 1.12rem;
  }
	
	/* === programme === */
	.programme {
		font-size: 1.3rem;
		margin: 10px auto;
		width: 90%;
		padding: 10px
	}

	.programme h3 {
		font-size: 1.3rem;
		width: 100px;
		padding-left: 5px;
		margin-top: 20px;
		margin-bottom: 10px;
		background: rgba(255, 255, 255, 0.4);
		backdrop-filter: blur(6px);
	}

	.programme h3.auto-size {
		display: inline-block;
		width: auto;
	}

	.programme p {
		margin-left: 15px;
		padding-bottom: 5px;
	}
	
	/* === hebergement === */
	.controls {
		gap: 20px;
	}

	.controls label,
	.controls select,
	.controls button {
		padding: 0;
	}
}

/* === Mode tablette 1 paysage (carte à gauche, liste à droite) === */
@media screen and (max-width: 1180px) and (orientation: landscape) {
  .container {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		padding: 0 10px;
  }

  #map {
    width: 45%;
    height: 400px;
		margin-top: 60px;
  }

  #right-column {
    width: 53%;
		box-sizing: border-box;
    gap: 10px;
  }

	#list, #listing {
    width: 100% !important;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		overflow-x: hidden;
  }
	
	.control-group {
		gap: 15px;
	}
}

/* === Mode tablette portrait (carte au-dessus, liste en-dessous) === */
@media screen and (max-width: 1024px) and (orientation: portrait) {
  .container {
		width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  #map {
    width: 75%;
    height: 450px;
    margin: 0 auto;
  }
}

/*	===============
		Version mobile
		(jusqu'à 599px)
		=============== */
@media screen and (max-width: 599px) {
	.intermediaire,
	.intermediaire2,
	.rideau {
    width: 100%;
    height: 100vh;
    left: 0;
    transform: none;
    background-size: cover;
  }

	.bande-noire {
    width: 100%;
    left: 0;
    transform: none;
  }

  h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 1rem;
  }

  header {
    height: 80px;
    padding: 8px 12px;
  }

  header h1 {
    font-size: 1.8rem;
  }

	.countdown {
		padding : 5px;
		border-radius: 5px 15px 5px 15px;
	}
  main {
    max-width: 100%;
    padding: 0 4px;
  }

  h2 {
    font-size: 1.2rem;
  }

	.wlc,
	.cta {
		bottom: 100px;
	}

	.mobile-break {
			display: inline;
		}

	.br-mobile {
		display: block;
	}
		
	main > p {
		color: #1d1d1d;
		font-size: 1rem;
		font-weight: bold;
	}
  .contenu-centrale {
    width: 100vw;
    max-width: 100vw;
  }

  .motdepasse-container {
    width: 90%;
    padding: 1rem;
  }

	.navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    z-index: 9998;
    padding: 0;
    background: none;
  }

  .menu-toggle {
		display: block;
  }

	.nav-links {
		position: absolute;
		top: 44px;
		right: 10px;
		height: auto;
		background: var(--primary);
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: flex-end;
		gap: 10px;
		z-index: 10000;
		pointer-events: auto;
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.5s ease, visibility 0s 0.5s;
		border-radius: 10px 0 10px 10px;
		padding: 10px 15px;
		margin: 0;
	}

  .nav-links.active {
		visibility: visible;
		transition: opacity 0.5s ease, visibility 0s;
		opacity: 1;
  }

	nav a {
    font-size: 1.2rem;    /* lisible sur mobile */
    color: white;
    text-decoration: none;
    padding: 8px 0;
  }
	
	/* === rsvp === */
	form.rsvp {
		width: 100%;
		padding: 0 16px;
		gap: 0.5em;
		overflow: hidden;
	}

  .rsvp .form-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .rsvp .form-row label {
    width: 100% !important;
    margin: 0 0 5px 0 !important;
    text-align: left !important;
		padding: 0 !important;
  }

	.rsvp label {
		text-align: left !important;
		margin:0 !important;
		padding: 0 !important;
	}

  .rsvp input[type="text"],
  .rsvp input[type="email"],
  .rsvp input[type="tel"],
  .rsvp input[type="password"],
  .rsvp input[type="number"],
  .rsvp select,
  .rsvp textarea {
    width: 100%;
  }

  .custom-checkbox,
  .checkbox-label {
    flex-direction: row;
    justify-content: flex-start;
  }

  .rsvp button {
    width: 100%;
  }
	
	/* === hebergement === */
  .container {
    flex-direction: column;
    width: 100%;
    padding: 0 10px;
  }

  #map {
    width: 100%;
    height: 300px; /* plus petit pour tenir dans un écran */
    margin: 10px 0;
  }

  #right-column {
    width: 100%;
    align-items: center;
  }

  #listing {
    width: 100%;
  }

  #list {
    width: 100%;
  }

  .controls {
    flex-direction: column;
		align-items: center;
    gap: 8px;
  }

  .control-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    width: auto;
  }

  .controls button {
    align-self: center;
    width: auto;
  }
	
  .control-group label,
  .control-group select {
    width: auto;
    max-width: 100%;
  }

  .controls button {
    align-self: center;
    width: auto;
    padding: 6px 12px;
    font-size: 1rem;
  }
	
	/* === discussion === */
	.discussion-form {
    width: 90%; /* largeur réduite sur mobile */
  }
	
	.bloc-message {
		width: auto;
		max-width: 90%;
		margin: 10px auto;
	}

  .bloc-message .auteur,
  .bloc-message .date {
    word-wrap: break-word;
    font-size: 15px;
    text-align: left;
  }
	
	/* === programme === */
	.programme {
		font-size: 1.2rem;
		margin: 10px auto;
		width: 90%;
		padding: 10px
	}

	.programme h3 {
		font-size: 1.2rem;
		width: 100px;
		padding-left: 5px;
		margin-top: 20px;
		margin-bottom: 10px;
		background: rgba(255, 255, 255, 0.4);
		backdrop-filter: blur(6px);
	}

	.programme h3.auto-size {
		display: inline-block;
		width: auto;
	}

	.programme p {
		margin-left: 15px;
		padding-bottom: 5px;
	}
}