/* ========================
   Variables et base
   ======================== */
body {
	background: linear-gradient(135deg, #e8eaed 0%, #d4d7dc 100%);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: #2c3e50;
	min-height: 100vh;
	margin: 0;
	padding: 0;
}

/* ========================
   Menu de navigation
   ======================== */
.main-nav {
	background: linear-gradient(135deg, #343a40 0%, #212529 100%);
	padding: 0.3rem 2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	max-width: 1600px;
	margin: 0 auto;
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.nav-menu li {
	margin: 0;
}
.nav-menu li.display-username {
	display: flex;
	flex-direction: column;
	justify-content: center;
  	align-items: center;
	color: rgba(255, 255, 255, 0.85);
	margin-right: 20px;
}

.nav-menu li.display-username > span.role {
	display: flex;
	justify-content: center;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	font-size: 18px;
	line-height: 19px;
}

.nav-menu li.display-username > span.role.role-a {
	background-color: #667eea;
}
.nav-menu li.display-username > span.role.role-u {
	background-color: #28a745;
}
.nav-menu li.display-username > span.role.role-v {
	background-color: #ff9800;
}


.nav-menu a {
	display: block;
	padding: 1rem 1.25rem;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	transition: all 0.2s;
	border-radius: 6px;
}

.nav-menu a:hover {
	background: rgba(255, 255, 255, 0.1);
	color: white;
}

.nav-menu a.active {
	background: rgba(255, 255, 255, 0.15);
	color: white;
}

/* Formulaire de recherche dans le menu */
.nav-search-form {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin: 1rem auto;
	max-width: 800px;
}

.nav-search-form select,
.nav-search-form input[type="search"] {
	padding: 0.5rem 0.75rem;
	border: 2px solid #343a40;
	border-radius: 6px;
	background: #ffffff;
	color: #343a40;
	font-size: 0.9rem;
	transition: all 0.2s;
}

.nav-search-form select {
	width: 160px;
	cursor: pointer;
}

.nav-search-form input[type="search"] {
	min-width: 200px;
}

.nav-search-form select:focus,
.nav-search-form input[type="search"]:focus {
	outline: none;
	background: #f8f9fa;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.nav-search-form select option {
	background: white;
	color: #343a40;
}

.nav-search-form select option:hover,
.nav-search-form select option:focus {
	background: #667eea;
	color: white;
}

.nav-search-btn {
	padding: 0.5rem 1.25rem;
	border: 2px solid #28a745;
	background: transparent;
	color: #28a745;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s;
}

.nav-search-btn:hover {
	background: #28a745;
	color: white;
	transform: translateY(-1px);
}

/* Compteur d'albums */
.nav-counter {
	color: white;
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0;
	padding: 0.5rem 0;
}

.nav-counter span {
	opacity: 0.8;
}

/* Titre de la liste des albums */
.album-list-title {
	text-align: center;
	margin: 1.5rem 0;
}

/* Menu burger pour mobile */
.nav-toggle {
	display: none;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.5);
	color: white;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1.2rem;
	transition: all 0.2s;
}

.nav-toggle:hover {
	border-color: white;
}

@media screen and (max-width: 992px) {
	.nav-toggle {
		display: block;
	}

	.nav-menu {
		display: none;
		width: 100%;
		flex-direction: column;
		gap: 0;
	}

	.nav-menu.active {
		display: flex;
	}

	.nav-menu a {
		padding: 0.75rem 1rem;
		border-radius: 0;
	}

	.nav-search-form {
		width: 100%;
		margin-top: 0.5rem;
	}

	.nav-search-form input[type="search"] {
		flex: 1;
		min-width: 0;
	}
}

/* ========================
   Container principal
   ======================== */
#wrapper-list {
	max-width: 1600px;
	margin: 0 auto;
	padding: 1.5rem;
}

/* ========================
   Grille CSS Grid
   ======================== */
.albums-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}

/* Smartphones et petits écrans */
@media screen and (min-width: 576px) {
	.albums-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}

/* Tablettes */
@media screen and (min-width: 768px) {
	.albums-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Desktop moyen */
@media screen and (min-width: 992px) {
	.albums-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Desktop large */
@media screen and (min-width: 1200px) {
	.albums-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Desktop très large - 6 colonnes */
@media screen and (min-width: 1400px) {
	.albums-grid {
		grid-template-columns: repeat(6, 1fr);
	}
}

/* ========================
   Section d'affichage
   ======================== */
#display-table {
	padding: 1rem 0;
}

.title-item.editable span:hover {
	cursor: pointer;
	color: #667eea;
	transition: color 0.2s;
}





/* *************************** edition images drag'n drop */
.hidden  {  display:none;  }

.mod-in-process { background:#FB83F4!important;}

#wrapper-drag  { position:fixed; top:75px; left:20px; z-index:1000;  width:650px; margin:12px auto; display:none;  }
.upload-console  { position:relative; background:#fefefe; border:2px solid #999; padding:8px 40px; }
a#close-console   { position:absolute; right:4px; top:4px; }
.upload-console-header  { padding:0 0 16px 0; margin:0 0px 16px 0; border-bottom:2px solid #eee;   }
.upload-console-body  { position:relative; margin-bottom:20px; }
.upload-console-body h3  { font-size:14px; margin-bottom:8px; }
.upload-console-body #box-arrow  { position:absolute; right:0; top:-3px;  width:90px; height:80px; }
.upload-console-drop  { height:100px; border:2px dashed #ccc; line-height:100px; color:#ccc; text-align:center; margin-bottom:8px; }
.upload-console-drop.drop  { border-color:#222;  color:#222; }
.bar  { width:100%; background:#eee; padding:3px; border-radius:3px; box-shadow:inset 0 1px 3px rgba(0,0,0,0.2);
		 box-sizing:border-box; margin-bottom:20px; }
.bar-fill  { height:30px; display:block; background:cornflowerblue; width:0; border-radius:3px;
		-webkit-transition:width 0.8s ease;  transition:width 0.8s ease;   }
.bar-fill-text  { color:#fff; line-height:30px; margin-left:5px; }
.upload-console-upload  { position:relative; border-bottom:2px solid #ccc; margin-bottom:10px;  padding-bottom:10px;  }
.upload-console-upload span  { float:right; }	
a.image-update { position:absolute; right:0; bottom:10px; }  	



/* ========================
   Cartes d'albums - Flexbox
   ======================== */
.card.my-card {
	/* Réinitialiser les classes Bootstrap */
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	flex: none !important;
	height: 100%;
	border: none;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07),
	            0 1px 3px rgba(0, 0, 0, 0.06);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #ffffff;
	display: flex;
	flex-direction: column;
}

.card.my-card:hover {
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12),
	            0 4px 8px rgba(0, 0, 0, 0.08);
}

.card.my-card .card-row {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
}

/* Image container */
.card.my-card .card-image {
	flex-shrink: 0;
	width: 100%;
	padding: 0;
	margin: 0;
}

.card.my-card .card-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0;
	border-bottom: 1px solid #e1e4e8;
	display: block;
}

.card.my-card a.maj-image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
}

.card.my-card a.maj-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Section contenu avec Flexbox */
.card.my-card .my-left-card-section {
	background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
	border-radius: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Variante N-supp avec effet moderne */
.card.my-card .my-left-card-section.N-supp {
	background: linear-gradient(135deg, #e3f2fd 0%, #f1f8fb 50%, #e8f4f8 100%);
	position: relative;
}

.card.my-card .my-left-card-section.N-supp::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		repeating-linear-gradient(
			45deg,
			transparent,
			transparent 10px,
			rgba(255, 255, 255, 0.3) 10px,
			rgba(255, 255, 255, 0.3) 20px
		);
	pointer-events: none;
}

/* Card body avec Flexbox */
.card.my-card .card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	position: relative;
	z-index: 1;
}

/* Titres */
.card.my-card .card-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: #2c3e50;
	margin: 0;
	line-height: 1.3;
}

.card.my-card .card-album-title {
	font-size: 0.95rem;
	font-weight: 500;
	color: #495057;
	margin: 0;
	line-height: 1.4;
}

.card.my-card .title-item a {
	color: #6c757d;
	text-decoration: none;
	font-size: 0.75rem;
	margin-right: 0.5rem;
}

.card.my-card .title-item a:hover {
	color: #495057;
}

/* Card header avec titre et bouton */
.card.my-card .card-header {
	background:none; /* reset bootstrap CSS */
	border:none; /* reset bootstrap CSS */
	padding-inline: 0; /* reset bootstrap CSS */
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

/* Card footer - infos en bas */
.card.my-card .card-footer {
	background:none; /* reset bootstrap */
	border:none; /* reset bootstrap */
	padding-inline:0; /* reset bootstrap */
	font-size: 0.85rem;
	color: #6c757d;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: auto;
}

.card.my-card .card-info {
	/* margin-left: auto; */
	display: flex;
	flex: 1;
  	justify-content: space-between;
	align-items: center;
}

.card.my-card .card-local-admin {
	display: flex;
	justify-content: space-between;
}

/* Price tag */
.price-tag {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 0.25rem 0.75rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Bouton éditer */
.edit-album-btn {
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	line-height: 1;
	border-radius: 6px;
	opacity: 0.8;
	transition: all 0.2s;
	border: none;
	background: #28a745;
	color: white;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.edit-album-btn:hover {
	opacity: 1;
	background: #218838;
	transform: scale(1.05);
}

/* Bouton supprimer */
.delete-album-btn {
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	line-height: 1;
	border-radius: 6px;
	opacity: 0.8;
	transition: all 0.2s;
	border: none;
	background: #dc3545;
	color: white;
}

.delete-album-btn:hover {
	opacity: 1;
	background: #c82333;
	transform: scale(1.05);
}


/* Medium editable */
.medium.editable {
	font-weight: 500;
	color: #495057;
}

/* Responsive pour les cartes */
@media screen and (min-width: 768px) {
	.card.my-card .card-row {
		flex-direction: row;
	}

	.card.my-card .card-image {
		flex: 0 0 140px;
		align-content: center;
		width: 140px;
		min-width: 140px;
	}

	.card.my-card .card-img {
		aspect-ratio: 1 / 1;
		border-bottom: none;
		border-right: 1px solid #e1e4e8;
	}

	.card.my-card a.maj-image {
		aspect-ratio: 1 / 1;
	}

	.card.my-card .my-left-card-section {
		flex: 1;
	}
}

/* Sur desktop large, retour en colonne pour économiser l'espace */
@media screen and (min-width: 1400px) {
	.card.my-card .card-row {
		flex-direction: column;
	}

	.card.my-card .card-image {
		flex: none;
		width: 100%;
	}

	.card.my-card .card-img {
		aspect-ratio: 1 / 1;
		border-right: none;
		border-bottom: 1px solid #e1e4e8;
	}

	.card.my-card a.maj-image {
		aspect-ratio: 1 / 1;
	}
}








/* ========================
   Formulaire de connexion
   ======================== */
.login-container {
	max-width: 400px;
	margin: 5rem auto;
	padding: 2rem;
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
	text-align: center;
	margin-bottom: 1.5rem;
	color: #495057;
	font-size: 1.5rem;
	font-weight: 600;
}

.login-form-group {
	margin-bottom: 1.25rem;
}

.login-form-group label {
	display: block;
	font-weight: 600;
	color: #495057;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.login-form-group input[type="text"],
.login-form-group input[type="password"] {
	width: 100%;
	padding: 0.75rem;
	border: 2px solid #dee2e6;
	border-radius: 6px;
	font-size: 1rem;
	color: #495057;
	background: white;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.login-form-group input:focus {
	outline: none;
	border-color: #6c757d;
	box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
}

.login-btn {
	width: 100%;
	padding: 0.75rem;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	background: #28a745;
	color: white;
	transition: all 0.2s;
}

.login-btn:hover {
	background: #218838;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Section display-table */
#display-table {
	margin-top: 1rem;
}

#wrapper-list {
	margin-top: 1rem;
	padding: 0 1rem;
}

/* Message d'information */
.info-message {
	max-width: 800px;
	margin: 1.5rem auto;
	padding: 1rem 1.5rem;
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
	border-radius: 6px;
	text-align: center;
	font-weight: 500;
}

/* ========================
   Gestion auteurs - Page manage-auteurs.php
   ======================== */
#wrapp-auth {
	max-width: 900px;
	margin: 2rem auto;
	padding: 0 1.5rem;
}

/* Formulaire création auteur */
form#new-auteur {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem;
	background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
	border-radius: 8px;
	margin-bottom: 2rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

span#label-new-auteur {
	font-weight: 600;
	color: #495057;
	font-size: 1rem;
}

form#new-auteur input[type="text"] {
	padding: 0.6rem 0.9rem;
	border: 2px solid #dee2e6;
	border-radius: 6px;
	font-size: 1rem;
	color: #495057;
	background: white;
	transition: border-color 0.2s, box-shadow 0.2s;
	min-width: 300px;
}

form#new-auteur input[type="text"]:focus {
	outline: none;
	border-color: #6c757d;
	box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
}

input#valid-auteur {
	padding: 0.6rem 1.5rem;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	background: #28a745;
	color: white;
	transition: all 0.2s;
}

input#valid-auteur:hover {
	background: #218838;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Sélecteur alphabétique */
form#alpha-select {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 1.5rem;
	background: white;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.alpha-btn {
	width: 40px;
	height: 40px;
	border: 2px solid #dee2e6;
	border-radius: 6px;
	background: white;
	color: #495057;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.2s;
}

.alpha-btn:hover {
	background: #6c757d;
	color: white;
	border-color: #6c757d;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.alpha-btn:active {
	transform: translateY(0);
}

.alpha-btn.active {
	background: #6c757d;
	color: white;
	border-color: #6c757d;
	box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* Liste des auteurs */
#list-auth {
	width: 100%;
	border-collapse: collapse;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#list-auth tr {
	border-bottom: 1px solid #dee2e6;
	transition: background 0.2s;
}

#list-auth tr:hover {
	background: #f8f9fa;
}

#list-auth tr:last-child {
	border-bottom: none;
}

#list-auth td {
	padding: 1rem 1.5rem;
	vertical-align: middle;
	border-bottom: 1px solid #dee2e6;
}

#list-auth tr:last-child td {
	border-bottom: none;
}

#list-auth td.editable {
	font-weight: 500;
	color: #2c3e50;
	font-size: 1rem;
}

#list-auth td.auth-module {
	text-align: right;
	width: 200px;
}

.show-id {
	color: #6c757d;
	font-size: 0.9rem;
	font-style: italic;
}

.auth-delete {
	padding: 0.4rem 1rem;
	border: none;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	background: #dc3545;
	color: white;
	transition: all 0.2s;
}

.auth-delete:hover {
	background: #c82333;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/*
#wrapp-auth	{ outline:1px dotted #ccc; width:90%; max-width:920px; margin:20px auto;
			background-color:#fafafa; padding:15px;  }

	form#alpha-select  {  margin-top:15px;  }			
	#list-auth  {  margin-top:15px; border-top:2px solid #666;  padding-top:10px;  }			
		.auth-module { position:relative; height: 32px; padding:5px 10px; border-bottom:1px solid #999; }
		.odd   { background-color:#eee;  }
		.even  { background-color:#f6f6f6;  }
			#list-auth input.auth-delete, #list-auth input#go-h3  {  position:relative; top:5px; float:left; }
			#list-auth input.auth-delete  { width:80px;  margin-right:15px; }			
			#list-auth .auth-item  { float:left;  margin-left:10px;  line-height:32px; font-weight:bold;  }
			#list-auth .show-id  {  float:left; width:80px;  line-height:32px; margin-right:15px; }
*/

/* *********************** suppression auteur  */
#delete-block  {	width:90%; max-width:500px; background-color:#f2f2f2; padding:20px 50px;
					margin:10px auto; }
#delete-block h2  {	font-size:55px; color:#b00; margin:20px 0; }
#delete-block h2 span  { font-size:16px; color:#b00; font-weight:normal; margin-right:15px; }

/* *********************** suppression album  */
.delete-album-btn {
	padding: 2px 6px 4px;
	font-size: 12px;
	line-height: 1;
	opacity: 0.7;
	transition: opacity 0.2s;
}
.delete-album-btn:hover {
	opacity: 1;
}

/* ========================
   Popup modale de modification
   ======================== */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9998;
	backdrop-filter: blur(3px);
}

.modal-overlay.active {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease;
}

.modal-content {
	background: #f5f5f5;
	width: 90%;
	max-width: 800px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	position: relative;
	animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-30px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.modal-header {
	background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
	color: white;
	padding: 1.5rem;
	border-radius: 12px 12px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
}

.modal-close {
	background: transparent;
	border: none;
	color: white;
	font-size: 1.8rem;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: background 0.2s;
}

.modal-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.modal-body {
	padding: 2rem;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	font-weight: 600;
	color: #495057;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
	width: 100%;
	padding: 0.75rem;
	border: 2px solid #dee2e6;
	border-radius: 6px;
	font-size: 1rem;
	color: #495057;
	background: white;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
	outline: none;
	border-color: #6c757d;
	box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
}

.form-group select {
	cursor: pointer;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
}

.form-row .form-group {
	margin-bottom: 0;
}

@media screen and (max-width: 768px) {
	.form-row {
		grid-template-columns: 1fr;
	}
}

.modal-footer {
	padding: 1.5rem 2rem;
	background: #e9ecef;
	border-radius: 0 0 12px 12px;
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
}

.btn-modal {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-cancel {
	background: #dc3545;
	color: white;
}

.btn-cancel:hover {
	background: #c82333;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-submit {
	background: #28a745;
	color: white;
}

.btn-submit:hover {
	background: #218838;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.alert-message {
	padding: 1rem 1.5rem;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	font-weight: 500;
}

.alert-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.alert-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* ========================
   Page de formulaire (ajout-titre)
   ======================== */
.page-container {
	max-width: 800px;
	margin: 2rem auto;
	padding: 0 1.5rem;
}

.page-header {
	text-align: center;
	margin-bottom: 2rem;
}

.page-header h1 {
	font-size: 2rem;
	font-weight: 600;
	color: #495057;
	margin: 0;
}

.form-container {
	background: #f5f5f5;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
	overflow: hidden;
}

.form-header {
	background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
	color: white;
	padding: 1.5rem;
	text-align: center;
}

.form-header h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
}

.form-content {
	padding: 2rem;
	background: white;
}

.form-footer {
	padding: 1.5rem 2rem;
	background: #e9ecef;
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
}

/* Support radio buttons */
.radio-group {
	margin-bottom: 1.5rem;
}

.radio-group-label {
	display: block;
	font-weight: 600;
	color: #495057;
	margin-bottom: 0.75rem;
	font-size: 0.95rem;
}

.radio-options {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
}

.radio-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.radio-option input[type="radio"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #6c757d;
}

.radio-option label {
	cursor: pointer;
	color: #495057;
	font-size: 1rem;
	margin: 0;
}

/* Boutons page */
.btn-page {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	display: inline-block;
}

.btn-page-cancel {
	background: #dc3545;
	color: white;
}

.btn-page-cancel:hover {
	background: #c82333;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
	color: white;
}

.btn-page-submit {
	background: #28a745;
	color: white;
}

.btn-page-submit:hover {
	background: #218838;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}
