/* Styles exacts du site original - Updated */
body {
	margin: 0;
	padding: 0;
	background-color: #e4e9ea;
	min-width: 350px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	line-height: 1.6; /* plus d'espace vertical entre les lignes */
	letter-spacing: 0.2px; /* léger espacement des lettres */
}

.btn, .alert, .table, .form-control {
	font-size: 0.9rem;
}

.form-condition {
	display: none;
}

#bandeau-img {
	height: 160px;
	width: 100%;
	background: #0057a3 url('https://controle.france-education-international.fr/images/bandeau-teo-sprite-v2.png') no-repeat top left;
	border-bottom: 0;
}

#texte-entete a {
	text-indent: -100000px;
	display: block;
	line-height: 160px;
	width: 100%;
	position: absolute;
	z-index: 100;
}

#logo {
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	float: right;
	margin-right: 30px;
	margin-top: 20px;
	background-color: #fff;
	vertical-align: middle;
	text-align: center;
}

#logo img {
	margin: 22px 20px 21px;
}

#main-container {
	background-image: none !important;
	margin: 0;
	padding: 0;
}

#main-content {
	background-color: #fff;
	box-shadow: 0 5px 5px #ccc;
	margin-left: 191px;
	margin-bottom: 0;
	margin-top: 0;
	padding: 16px 25px;
}

#main-content-inner {
	max-width: 2000px;
}

div#resultat {
	max-width: 1250px;
}

footer {
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	margin-bottom: 0;
	padding: 16px 30px 16px 0;
	font-size: 0.7rem;
	width: 100vw;
	box-sizing: border-box;
	display: flex;
	justify-content: flex-end;
}

#footer-menu {
	width: 100%;
	display: flex;
	justify-content: flex-end;
}

#texte-entete {
	color: #fff;
}

a, a.btn:hover {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.alert {
	position: relative;
	padding: 1.5rem 2rem;
	margin-bottom: 1rem;
	border: 1px solid transparent;
	border-radius: 0.25rem;
}

.alert-warning {
	color: #664d03;
	background-color: #fff3cd;
	border-color: #ffecb5;
}

.alert-warning .alert-link {
	color: #523e02;
}

.alert-danger {
	color: #721c24;
	background-color: #f8d7da;
	border-color: #f5c6cb;
}

.alert-danger .alert-link {
	color: #491217;
}

.alert p {
	margin: 0.75rem 0;
}

.mt-0 {
	margin-top: 0 !important;
}

.mt-3 {
	margin-top: 1rem !important;
}

.mb-0 {
	margin-bottom: 0 !important;
}

.pb-3 {
	padding-bottom: 1rem !important;
}

.btn {
	display: inline-block;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	background-color: transparent;
	border: 1px solid transparent;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	border-radius: 0.25rem;
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
	color: #fff;
	background-color: #337ab7;
	border-color: #2e6da4;
}

.btn-primary:hover {
	background-color: #286090;
	border-color: #204d74;
	color: #fff;
	text-decoration: none;
}

.btn-primary:focus {
	color: #fff;
	background-color: #286090;
	border-color: #204d74;
	box-shadow: 0 0 0 0.25rem rgba(51, 122, 183, 0.5);
}

.container-fluid {
	width: 100%;
	padding-right: 15px;
	padding-left: 15px;
	margin-right: auto;
	margin-left: auto;
}

#main-container {
	overflow-x: hidden;
}

.row {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	margin-right: -15px;
	margin-left: -15px;
}

footer .row {
	justify-content: flex-end;
	width: 100%;
	margin-right: 0;
	margin-left: 0;
}

ul.nav-bas {
	list-style: none;
	padding: 0;
	margin: 0;
	text-align: right;
	width: 100%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

ul.nav-bas li {
	display: inline-block;
	margin-right: 28px; /* espace un peu plus large entre les éléments du footer */
	justify-content: flex-end;

}

ul.nav-bas li:last-child {
	margin-right: 0;
}

ul.nav-bas li a {
	color: #777;
}

ul.nav-bas li a.accessibilite {
	color: #0d6efd;
}

ul.nav-bas li a.accessibilite:hover {
	color: #0a58ca;
	text-decoration: underline;
}

/* Styles pour la page de recherche d'attestation */
.form-recherche {
	max-width: 500px;
	margin-top: 16px;
}

h1 {
	font-size: 1.5rem;
	font-weight: 500;
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	color: #212529;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	word-wrap: break-word;
	background-color: #fff;
	background-clip: border-box;
	border: 1px solid rgba(0, 0, 0, 0.125);
	border-radius: 0.25rem;
	box-sizing: border-box;
	width: 100%;
}

.card-header {
	padding: 0.75rem 1rem;
	margin-bottom: 0;
	background-color: rgba(0, 0, 0, 0.03);
	border-bottom: 1px solid rgba(0, 0, 0, 0.125);
	font-weight: 500;
	box-sizing: border-box;
	width: 100%;
}

.card-body {
	flex: 1 1 auto;
	padding: 1rem;
	box-sizing: border-box;
	width: 100%;
}

.form-group {
	margin-bottom: 1rem;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
}

.form-group .row {
	display: flex;
	flex-wrap: nowrap;
	margin-right: -15px;
	margin-left: -15px;
	margin-bottom: 0;
	box-sizing: border-box;
	width: calc(100% + 30px);
}

.form-group .col {
	box-sizing: border-box;
	padding-right: 15px;
	padding-left: 15px;
}

.form-group .row > .col:first-child {
	flex: 0 0 auto;
	width: auto;
	min-width: 160px;
	max-width: 200px;
}

.form-group .row > .col:last-child {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
}

.form-group .col.pt-1 {
	padding-top: 0.25rem;
}

.form-label {
	margin-bottom: 0;
	font-weight: 600;
	color: #212529;
	display: block;
}

.form-control {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	background-image: none;
	border: 1px solid #ced4da;
	border-radius: 0.25rem;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	box-sizing: border-box;
}

.form-control:focus {
	color: #212529;
	background-color: #fff;
	border-color: #86b7fe;
	outline: 0;
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control[readonly] {
	background-color: #e9ecef;
	opacity: 1;
}

.alert-primary {
	color: #084298;
	background-color: #cfe2ff;
	border-color: #b6d4fe;
}

.alert-primary p {
	margin-bottom: 0.5rem;
}

.alert-primary p:last-child {
	margin-bottom: 0;
}

.alert-primary ul {
	margin-bottom: 0;
	padding-left: 1.5rem;
}

.alert-primary li {
	margin-bottom: 0.25rem;
}

.link-primary {
	color: #0d6efd;
	text-decoration: underline;
	cursor: pointer;
}

.link-primary:hover {
	color: #0a58ca;
}

.Sesame {
	margin-top: 1rem;
	margin-bottom: 1rem;
	box-sizing: border-box;
}

.captcha-question {
	margin-bottom: 0.5rem;
	padding: 0.5rem 0.75rem;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 0.25rem;
	font-weight: 600;
}

.captcha-question img {
	display: block;
	max-width: 100%;
	height: auto;
}

.captcha-actions {
	margin-top: 0.5rem;
}

.Sesame img {
	display: block;
	margin-bottom: 0.5rem;
	max-width: 100%;
	height: auto;
}

.Sesame > div {
	box-sizing: border-box;
	width: 100%;
}

.Sesame .form-control {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.text-danger {
	color: #dc3545;
}

.field-validation-valid {
	display: none;
}

.form-condition {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.form-condition input[type="checkbox"] {
	margin-right: 0.5rem;
}

.form-condition label {
	font-weight: normal;
	margin-bottom: 0;
}

.align-middle {
	vertical-align: middle;
}

.btn svg {
	margin-right: 0.5rem;
}

@media screen and (max-width: 768px) {
	.form-group .row {
		flex-wrap: wrap;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
	
	.form-group .row > .col:first-child,
	.form-group .row > .col:last-child {
		width: 100%;
		flex: 0 0 100%;
		padding-left: 0;
		padding-right: 0;
		margin-bottom: 0.5rem;
		max-width: 100%;
	}
	
	.form-recherche {
		max-width: 100%;
	}
}
.bienvenue {
	padding: 0;
	margin: 20px 0;
}

.bienvenue .lead {
	font-size: 1.25rem;
	font-weight: 300;
	margin-bottom: 20px;
	color: #212529;
	line-height: 1.5;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	word-wrap: break-word;
	background-color: #fff;
	background-clip: border-box;
	border: 1px solid rgba(0, 0, 0, 0.125);
	border-radius: 0.25rem;
}

.card-body {
	flex: 1 1 auto;
	padding: 1rem 1rem;
}

.text-dark {
	color: #212529 !important;
}

.bg-light {
	background-color: #f8f9fa !important;
}

.fs-6 {
	font-size: 1rem;
	line-height: 1.5;
}

abbr {
	text-decoration: underline;
	text-decoration-style: dotted;
	cursor: help;
}

/* Responsive */
@media screen and (max-width: 768px) {
	#main-container {
		background: none;
	}

	#main-content {
		margin-left: 0;
		padding: 16px 15px;
		box-shadow: 0 5px 5px #ccc;
	}

	#main-content-inner {
		width: 100%;
		max-width: 100%;
	}

	.alert {
		padding: 1.25rem 1.5rem;
	}

	footer {
		margin-left: -15px;
		margin-right: -15px;
		padding: 16px 15px;
	}

	#bandeau-img {
		box-shadow: 0 5px 5px #ccc;
	}
}

@media screen and (max-width: 620px) {
	#logo {
		display: none;
	}

	#texte-entete {
		font-size: 0.8rem;
		line-height: 15px;
	}

	#bandeau {
		background: none;
	}

	#bandeau-img {
		background-color: #000;
		border-bottom: 1px dotted #aaa;
		background-position: 0 -160px !important;
		height: 105px;
	}

	#texte-entete a {
		line-height: 105px;
	}

	footer {
		text-align: center;
	}

	ul.nav-bas {
		width: 100%;
		text-align: center;
	}
}

/* iPhone XR et mobiles similaires (max-width: 414px) */
@media screen and (max-width: 414px) {
	#main-content {
		padding: 16px 12px;
	}

	#main-content-inner {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.alert {
		width: 100%;
		padding: 1.25rem 1.25rem;
		margin-bottom: 1rem;
		box-sizing: border-box;
	}

	.alert p {
		text-align: left;
	}

	p.mt-3 {
		width: 100%;
		display: flex;
		justify-content: center;
		margin-top: 1rem;
	}

	.btn {
		width: 100%;
		max-width: 100%;
		margin-bottom: 5px;
		box-sizing: border-box;
		padding: 0.5rem 1rem;
		text-align: center;
		white-space: normal;
		word-wrap: break-word;
	}
}

@media screen and (max-width: 560px) {
	#bandeau {
		background: none;
	}

	#bandeau-img {
		background-color: #000;
		border-bottom: 1px dotted #aaa;
		background-position: 0 -154px;
	}

	#main-content {
		padding: 16px 12px;
	}

	.alert {
		padding: 1rem 1.25rem;
	}

	.btn {
		width: 100%;
		max-width: 100%;
		margin-bottom: 5px;
		box-sizing: border-box;
	}
}

/* Styles pour la modal */
.modal {
	display: none;
	position: fixed;
	z-index: 1050;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
	position: relative;
	width: auto;
	margin: 1.75rem auto;
	max-width: 90%;
}

.modal-dialog.modal-lg {
	max-width: 800px;
}

.modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	pointer-events: auto;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 0.3rem;
	box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5);
	outline: 0;
}

.modal-header {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1rem;
	border-bottom: 1px solid #dee2e6;
	border-top-left-radius: calc(0.3rem - 1px);
	border-top-right-radius: calc(0.3rem - 1px);
}

.modal-title {
	margin-bottom: 0;
	line-height: 1.5;
}

.btn-close {
	box-sizing: content-box;
	width: 1em;
	height: 1em;
	padding: 0.25em 0.25em;
	color: #000;
	background: transparent;
	border: 0;
	border-radius: 0.25rem;
	font-size: 1.5rem;
	line-height: 1;
	font-weight: 700;
	opacity: 0.5;
	cursor: pointer;
	transition: opacity 0.15s ease-in-out;
}

.btn-close:hover {
	opacity: 0.75;
}

.modal-body {
	position: relative;
	flex: 1 1 auto;
	padding: 1rem;
	overflow-y: auto;
}

.modal-body.text-center {
	text-align: center;
}

.modal-footer {
	display: flex;
	flex-wrap: wrap;
	flex-shrink: 0;
	align-items: center;
	justify-content: flex-end;
	padding: 0.75rem;
	border-top: 1px solid #dee2e6;
	border-bottom-right-radius: calc(0.3rem - 1px);
	border-bottom-left-radius: calc(0.3rem - 1px);
}

.btn-secondary {
	color: #fff;
	background-color: #6c757d;
	border-color: #6c757d;
}

.btn-secondary:hover {
	color: #fff;
	background-color: #5a6268;
	border-color: #545b62;
}

.img-responsive {
	display: block;
	max-width: 100%;
	height: auto;
}

.img-thumbnail {
	padding: 0.25rem;
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 0.25rem;
	max-width: 100%;
	height: auto;
}

@media screen and (max-width: 768px) {
	.modal-dialog {
		margin: 0.5rem;
		max-width: calc(100% - 1rem);
	}
	
	.modal-dialog.modal-lg {
		max-width: calc(100% - 1rem);
	}
}

/* Styles pour la page de résultats */
.alert-info-candidat {
	color: #664d03;
	background-color: #fff3cd;
	border-color: #ffecb5;
}

.alert-info-candidat .date-session,
.alert-info-candidat .numero-candidat {
	font-weight: bold;
}

.resultats-container {
	display: flex;
	gap: 24px;
	margin: 20px 0;
	flex-wrap: wrap;
	align-items: flex-start;
}

.photo-candidat {
	flex: 0 0 auto;
}

.photo-candidat .photo {
	width: 160px;
	height: 200px;
	object-fit: cover;
	border: 1px solid #d3d3d3;
	border-radius: 0;
	background-color: #fff;
	display: block;
}

.tableau-resultats {
	flex: 1 1 400px;
	min-width: 300px;
}

.table {
	width: 100%;
	border-collapse: collapse;
	background-color: #fff;
	margin-bottom: 0;
	border: 1px solid #ddd;
}

.table thead th {
	background-color: #e8e8e8;
	font-weight: bold;
	text-align: left;
	padding: 10px 12px;
	border: 1px solid #bbb;
	font-size: 0.9rem;
}

.table tbody td {
	padding: 10px 12px;
	border: 1px solid #ddd;
	vertical-align: middle;
	font-size: 0.9rem;
}

.table tbody tr:nth-child(even) {
	background-color: #f5f5f5;
}

.niveaux-globaux {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 20px 0;
}

.niveau-badge {
	display: inline-block;
	padding: 12px 18px;
	border-radius: 4px;
	
	text-align: center;
}

.niveau-atteint-false {
	background-color: #f8d7da;
	border: 2px solid #d9534f;
	color: #000;
}

.niveau-atteint-true {
	background-color: #dff0d8;
	border: 2px solid #3c763d;
	color: #3c763d;
	font-weight: lighter
}

.niveau-nom {
	font-size: 0.95rem;
}

@media screen and (max-width: 768px) {
	.resultats-container {
		flex-direction: column;
		gap: 16px;
	}
	
	.photo-candidat {
		text-align: center;
		margin: 0 auto;
	}
	
	.photo-candidat .photo {
		width: 180px;
		height: 180px;
	}
	
	.tableau-resultats {
		flex: 1 1 auto;
	}
	
	.niveaux-globaux {
		justify-content: center;
	}
}
