@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');

@font-face {
	font-family: "police_signature";
	src: url("../includes/fonts/arcena.ttf");
}

#corps {
	font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
	margin-left: 20px;
	padding-top: 350px;
	min-height: 500px;
}

#citation {
	margin: 20px;
	color: blue;
	font-size: xx-large;
	text-align: center;
	font-family: police_signature;
}

.conteneur {
	height: 370px;
	width: 320px;
	background-color: #fffde7;
	-moz-border-radius: 20px;
	-webkit-border-radius: 20px;
	border-radius: 20px;
	border: 3px solid #ffde59;
	box-shadow: 0px 8px 15px rgba(255, 222, 89, 0.4);
	font-size: 16px;
	padding: 10px;
	line-height: 30px;
	float: left;
	margin: 10px 20px 20px 20px;

}

.conteneur p,
.conteneur td {
	line-height: 20px;
	text-align: center;
	font-size: small;
}

.titre_clair {
	background-image: url('../images/neige.png');
	background-repeat: no-repeat;
	background-position: bottom;
	background-color: #62d0ff;
	color: #ffffff;
	text-align: center;
	font-size: x-large;
	font-weight: 600;
	border-radius: 17px 17px 0px 0px;
	padding: 12px 10px 12px 10px;
	margin: -10px -10px 15px -10px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.titre_fonce {
	background-image: url('../images/neige.png');
	background-repeat: no-repeat;
	background-position: bottom;
	background-color: #ff9ee5;
	color: #ffffff;
	text-align: center;
	font-size: x-large;
	font-weight: 600;
	border-radius: 17px 17px 0px 0px;
	padding: 12px 10px 12px 10px;
	margin: -10px -10px 15px -10px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

a {
	color: blue;
	text-decoration: none;
	-webkit-transition: color 0.3s;
	-moz-transition: color 0.3s;
}

h1 {
	padding: 0px 0px 20px 0px;
	margin: 0px;
	color: #ff5757;
	font-weight: 600;
}

h2 {
	padding: 0px;
	margin: 0px 0px 10px 0px;
	color: #8c52ff;
	font-weight: 600;
}

h3 {
	padding-bottom: 10px;
	margin: 0px;
	color: #0097b2;
	font-size: large;
	font-weight: 600;
}

h4 {
	padding-bottom: 10px;
	margin: 0px;
	color: black;
	text-align: left;
	font-weight: 600;
}

a:hover {
	text-decoration: underline;
	color: black;
	-webkit-transition: color 0.3s;
	-moz-transition: color 0.3s;
}

#bouton {
	display: inline-block;
	-webkit-border-radius: 25px;
	border-radius: 25px;
	color: white;
	background-color: #ff914d;
	border: 3px solid #ff7b25;
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 8px;
	padding-bottom: 8px;
	margin-right: 10px;
	margin-top: 5px;
	-webkit-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	-moz-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	font-size: 16px;
	font-weight: 600;
	box-shadow: 0 4px 6px rgba(255, 145, 77, 0.3);
}

#bouton_desactive {
	display: inline-block;
	-webkit-border-radius: 25px;
	border-radius: 25px;
	color: #999;
	background-color: #f3f3f3;
	border: 3px solid #d0d0d0;
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 8px;
	padding-bottom: 8px;
	margin-right: 10px;
	opacity: 0.5;
	filter: alpha(opacity=50);
	font-size: 16px;
	font-weight: 600;
}

#bouton:hover {
	color: #ffffff;
	background-color: #ff7b25;
	border-color: #e65c00;
	text-decoration: none !important;
	transform: scale(1.05) translateY(-2px);
	box-shadow: 0 6px 12px rgba(255, 145, 77, 0.5);
}

#clear_gauche {
	clear: left;
	text-align: left;
	margin: 0px;
	padding: 0px;
}

.item {
	font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
	float: left;
	margin: 0px;
	text-align: center;
}

.item a {
	left: 10%;
	float: left;
	background-color: #ffffff;
	text-align: center;
	font-size: medium !important;
	padding: 10px;
	margin: 20px;
	width: 170px;
	height: 150px;
	-webkit-border-radius: 20px;
	border-radius: 20px;
	border: 3px solid #cce1ff;
	-webkit-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	-moz-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	font-size: small;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.item a:hover {
	background-color: #f0f7ff;
	border-color: #72b4ff;
	text-decoration: none !important;
	color: #000000 !important;
	transform: scale(1.05) translateY(-2px);
	box-shadow: 0 8px 15px rgba(114, 180, 255, 0.3);
}

.signature {
	font-family: police_signature;
	font-size: 35px;
	color: #0005ff;
	text-align: center;
	margin: 50px 0px 0px 0px;
	line-height: 40px;
}

#photo {
	margin: 10px;
	border: solid lightgrey 10px;
}


.galerie {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.photo {
	width: 150px;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 10px;
	background-color: #f9f9f9;
}

.thumbnail {
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.thumbnail:hover {
	transform: scale(1.03);
}

.photo img {
	width: 100%;
	height: auto;
	border-radius: 3px;
	display: block;
}

.photo p {
	margin: 5px 0;
	font-size: 14px;
}

.message {
	width: 100%;
	padding: 20px;
	background-color: #f5f5f5;
	border-left: 4px solid #999;
	margin: 10px 0;
}

/* Style pour la modal */
.modal {
	display: none;
	position: fixed;
	z-index: 10000;
	padding-top: 50px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
	margin: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 90%;
	max-height: 80vh;
}

#photoAgrandie {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
}

#caption {
	margin: 15px auto 5px;
	display: block;
	width: 80%;
	text-align: center;
	color: white;
	font-size: 18px;
}

#navigation {
	color: white;
	font-size: 14px;
	margin-top: 5px;
}

.fermer {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	z-index: 10001;
}

.fermer:hover,
.fermer:focus {
	color: #bbb;
	text-decoration: none;
}

/* Flèches de navigation */
.nav-prev,
.nav-next {
	cursor: pointer;
	position: absolute;
	top: 50%;
	width: auto;
	padding: 16px;
	margin-top: -50px;
	color: white;
	font-weight: bold;
	font-size: 30px;
	transition: 0.6s ease;
	border-radius: 0 3px 3px 0;
	user-select: none;
	-webkit-user-select: none;
	background-color: rgba(0, 0, 0, 0.3);
}

.nav-next {
	right: 0;
	border-radius: 3px 0 0 3px;
}

.nav-prev {
	left: 0;
}

.nav-prev:hover,
.nav-next:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive design */
@media only screen and (max-width: 700px) {
	.modal-content {
		width: 100%;
	}

	.photo {
		width: 100%;
	}

	.nav-prev,
	.nav-next {
		font-size: 20px;
		padding: 10px;
	}
}

/* Header Actions Container and User Button */
.header-actions {
	position: absolute;
	top: 15px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 1000;
}

.header-user-btn {
	background-color: var(--toggle-bg, rgba(255, 255, 255, 0.85));
	padding: 8px 15px;
	border-radius: 20px;
	text-decoration: none;
	color: var(--text-color, #333);
	font-weight: bold;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	transition: all 0.3s ease;
	font-size: 14px;
	border: 1px solid var(--toggle-border, #ddd);
}

.header-user-btn:hover {
	background-color: var(--toggle-hover-bg, #fff);
	transform: scale(1.05);
	color: var(--text-color, #333) !important;
	text-decoration: none !important;
}

/* Styles premium pour la page travail.php */
.class-grid-section {
	margin-top: 30px;
	margin-bottom: 40px;
}
.section-title {
	color: #1565c0;
	font-size: 24px;
	margin-bottom: 20px;
	border-left: 5px solid #ff7b25;
	padding-left: 12px;
	font-weight: 600;
}
.grid-container {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 30px;
}
.grid-container::after {
	content: "";
	display: table;
	clear: both;
}
.videos-grid, .docs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 25px;
	margin-top: 20px;
}
.docs-grid {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.video-card {
	background: #ffffff;
	border: 3px solid #cce1ff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.video-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 20px rgba(114, 180, 255, 0.3);
	border-color: #72b4ff;
}
.video-container {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 200px;
}
.video-container iframe {
	width: 100%;
	height: 100%;
	border: none;
}
.doc-card {
	background: #ffffff;
	border: 3px solid #ffe6cc;
	border-radius: 20px;
	padding: 15px;
	text-align: center;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	display: flex;
	flex-direction: column;
	height: 100%;
}
.doc-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 20px rgba(255, 145, 77, 0.3);
	border-color: #ffb872;
}
.alert {
	padding: 15px;
	margin-bottom: 25px;
	border-radius: 10px;
	font-weight: 500;
	text-align: center;
}
.alert.success {
	background-color: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #c8e6c9;
}
.alert.error {
	background-color: #ffebee;
	color: #c62828;
	border: 1px solid #ffcdd2;
}
.admin-panel {
	background-color: #fff8e1;
	border: 2px dashed #ffb300;
	border-radius: 20px;
	padding: 20px;
	margin-bottom: 30px;
	box-shadow: 0 4px 10px rgba(255, 179, 0, 0.05);
}
.admin-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.admin-card {
	flex: 1;
	min-width: 280px;
	background: white;
	padding: 15px;
	border-radius: 15px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.admin-card h3 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #e65c00;
}
.admin-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}
.admin-form-group label {
	font-size: 13px;
	font-weight: 500;
	color: #555;
}
.admin-form-group input, .admin-form-group select {
	padding: 8px 12px;
	border: 1.5px solid #ddd;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	transition: border-color 0.2s;
}
.admin-form-group input:focus, .admin-form-group select:focus {
	outline: none;
	border-color: #ff914d;
}
.btn-submit {
	border: none;
	cursor: pointer;
	align-self: flex-start;
}
.btn-delete {
	color: #c62828 !important;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: opacity 0.2s;
}
.btn-delete:hover {
	opacity: 0.8;
	text-decoration: underline !important;
}