.main-content {
	margin: 0;
	padding: 15px 0 30px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.centered-container {
	max-width: 960px;
	width: 100%;
	margin: 0 auto;
}
.centered-container > p {
	text-align: center;
}


.align-justify {
	text-align: justify;
	margin: 20px 5px; /* Marges des paragraphes textes */
}

/* Style pour cacher le H1 visuellement mais le garder pour le SEO */
.invisible-h1 {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

main {
	line-height: 1.6;
}

main h2 {
	text-align: center;
	color: var(--color1);
	font-size: var(--size9);
	font-weight: bold;
	/* font-style: italic;*/
	margin-top: 2em;
	margin-bottom: 1em;
}

main a {
	color: var(--color1);
	transition: color 0.3s ease;
}

main a:hover {
	color: var(--color2);
}

main p {
	margin: 1.5em 0; /* Ajuste l'espacement entre les paragraphes */
	line-height: 1.6; /* Améliore la lisibilité */
}

/* Wrapper pour les citations */
.quote-wrapper {
	margin: 15px 0;
	padding: 10px;
	border-left: 3px solid #ccc;
	background-color: #f9f9f9;
}
.quote-wrapper blockquote {
	margin: 0; /* Enlève les marges supplémentaires qui créaient le double encart */
	padding: 0; /* Enlève le padding supplémentaire */
	background: none; /* Supprime la couleur de fond supplémentaire */
	border: none; /* Enlève les bordures superflues */
	font-style: italic; /* Garde le style du texte en italique */
}

/* Style pour les listes BBCodes */
.align-justify ul.bbcode-list {
	line-height: 1.15 !important;
	margin: 0.2em 0 !important;
	padding-left: 1.2em;
}

.align-justify ul.bbcode-list li {
	display: list-item;
	line-height: 1.15 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left;
	word-break: break-word;
}


/* Dans le cas d'une iframe */
/* Conteneur général pour iframe avec gestion du ratio d'aspect */
.responsive-iframe-container {
	position: relative;
	width: 100%;
	/*max-width: 900px; /* A virer si pb */
	padding-bottom: 56.25%; /* Ratio d'aspect 16:9 */
	/*margin: 0 auto 20px auto; /* A virer si pb */
	height: 0;
	overflow: hidden;
}
.responsive-iframe-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* Pour le contenu image */
.image-container img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.image-container,
.image-title {
	text-align: center;
}

/* Contenu personnalisé HTML & Images */
.image-container,
.custom-html-content {
	margin: 2em 0; /* Contrôle des marges verticales pour les images, etc. */
}

.image-title {
	margin-top: 5px;
	font-style: italic;
}

.logo-wrapper {
	height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	overflow: visible;
	background: transparent !important;
}
.logo-wrapper img {
	image-rendering: auto;
	object-fit: contain;
	height: auto;
	max-height: 150px;
	width: auto;
	max-width: 100%;
	transition: transform 0.3s ease;
	background: transparent !important;
}
.logo-wrapper img:hover {
	transform: scale(1.05);
	transition: transform 0.3s ease;
	filter: drop-shadow(0 0 4px rgba(60, 120, 30, 0.2));
}

/* Styles pour le portfolio en mode galerie (grand écran) */
.portfolio-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin: 2em 0 0 0;
	overflow: visible;
}
.portfolio-item {
	flex: 1 1 calc(25% - 15px); /* 4 images par ligne */
	box-sizing: border-box;
	pointer-events: all;
	padding: 2px; /* Ajoute un léger padding pour que l'encadré se rapproche de l'image */
	border-radius: 4px; /* Adoucit les coins du conteneur */
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* Ajoute un léger effet d'ombre autour pour discrétion */
}
.portfolio-item img {
	width: auto;
	max-width: 100%;
	height: 200px;
	border: 1px solid #ddd; /* Réduit la taille de la bordure et rend sa couleur plus douce */
	margin: 0 auto;
	border-radius: 3px; /* Pour correspondre aux coins arrondis du conteneur */
}
.portfolio-item img:hover {
	transform: scale(1.05);
	transition: transform 0.3s ease;
	filter: drop-shadow(0 0 4px rgba(60, 60, 60, 0.2));
}
.portfolio-instruction {
	text-align: right; /* Aligne la phrase à droite */
	font-style: italic; /* Italique pour la différencier */
	margin-top: 10px; /* Ajoute une légère marge au-dessus */
	font-size: 0.9em; /* Légèrement plus petit que le texte normal */
	color: #666; /* Gris pour ne pas attirer trop d'attention */
}
.portfolio-title {
	text-align: center;
	font-size: 14px;
	color: var(--color10);
	/* background: rgba(0, 0, 0, 0.7); */
	background: var(--color9);
	padding: 4px 8px;
	border-radius: 5px;
	max-width: 90%;
	margin: 5px auto 0 auto;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.portfolio-title:empty {
	display: none; /* Cache le titre s'il est vide */
}
/* Supprime l'ombre et le cadre pour les logos */
.portfolio-item.is-logo {
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
	overflow: visible !important;
}
/* Supprime la bordure autour des logos */
.portfolio-item.is-logo img {
	border: none !important;
}
/* Supprime le fond derrière le titre des logos */
.portfolio-item.is-logo .portfolio-title {
	background: transparent !important;
	color: #000 !important; /* texte noir */
}

.slideshow-container {
	position: relative;
	width: 100%;
	max-width: 800px;
	margin: auto;
	overflow: hidden;
}
.slideshow-img {
	width: 100%;
	height: auto;
	max-height: 500px;
	border-radius: 5px;
}
.slide {
	display: none;
}
.slide.active {
	display: block;
	animation: fadeEffect 1s;
}
@keyframes fadeEffect {
	from { opacity: 0.4; }
	to { opacity: 1; }
}
/* Indicateurs (petits points sous le slideshow) */
.dots-container {
	text-align: center;
	padding: 10px;
}
.dot {
	cursor: pointer;
	height: 10px;
	width: 10px;
	margin: 0 5px;
	background-color: #bbb;
	border-radius: 50%;
	display: inline-block;
	transition: background-color 0.6s ease;
}
.dot.active {
	background-color: #717171;
}
.slide-title {
	text-align: center;
	font-size: 16px;
	color: #fff;
	background: rgba(0, 0, 0, 0.6);
	padding: 5px 10px;
	border-radius: 5px;
	max-width: 80%;
	margin-left: auto;
	margin-right: auto;
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	opacity: 1; /* Toujours visible */
	transition: opacity 0.3s ease;
}

.slideshow-img,
.portfolio-item img {
	object-fit: contain;
}


/* Styles pour la lightbox */
.lightbox {
	display: none; /* Par défaut, la lightbox est masquée */
	position: fixed;
	z-index: 9999; /* Assurez-vous que la lightbox est au-dessus de tout */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent noir */
	transition: opacity 0.3s ease-in-out;
	opacity: 0;
}
.lightbox[style*="display: flex"] {
	opacity: 1;
}
.lightbox-content {
	margin: auto;
	display: block;
	max-width: 90%;
	max-height: 80%;
	border: 2px solid #fff;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
	animation: fadeIn 0.5s ease-in-out; /* Animation de fade-in */
	transition: opacity 0.3s ease-in-out;
}
.close-lightbox {
	position: absolute;
	top: 20px;
	right: 35px;
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
}
.close-lightbox:hover,
.close-lightbox:focus {
	color: #bbb;
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.youtube-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* Ratio 16:9 */
	height: 0;
	overflow: hidden;
}
.youtube-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.youtube-container img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	display: block;
}
.play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 75px;
	height: 52px;
	background-color: #FF0000; /* Fond rouge similaire à YouTube */
	border-radius: 12px; /* Coins plus arrondis */
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.play-button::before {
	content: "";
	width: 0;
	height: 0;
	border-left: 22px solid white; /* Triangle blanc pour le symbole de lecture */
	border-top: 14px solid transparent;
	border-bottom: 14px solid transparent;
	margin-left: 4px; /* Ajustement fin pour centrer le triangle */
}

.bullet-container {
	text-align: center; /* Centre le contenu horizontalement */
	margin: 10px 0; /* Ajoute une marge pour espacer la bullet des autres contenus */
}
.bullet-logo {
	display: inline-block; /* S'assure que l'image soit bien centrée dans son conteneur */
	vertical-align: middle;
	max-width: 50px; /* Ajuste la taille maximale pour les logos si nécessaire */
	height: auto; /* Conserve les proportions de l'image */
}

/* Conteneur global - bordure noire */
.google-drive-container {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}
/* Barre de titre */
.google-drive-title-bar {
	background-color: #333639;
	padding-left: 10px;
	text-align: left;
}
.google-drive-title-text {
	font-family: 'Roboto', Arial, sans-serif;
	color: #e8eaed;
	font-size: 16px;
	font-weight: 500;
}
/* Contrainte de hauteur : 70vh + scroll ou non */
.google-drive-iframe-wrapper {
	height: 70vh;
	border: 3px solid #333639;
	background-color: #333639;
}
.google-drive-container iframe {
	width: 100%;
	height: 100%;
	border: none;
}
/* Barre de download */
.google-drive-dl {
	padding-top: 10px;
	text-align: center;
}


/* BBCode de formulaire de contact */
.contact-form {
	max-width: 600px;
	margin: 2rem auto;
	padding: 1.25rem 1.5rem;
	border-left: 6px solid var(--color1);
	border-radius: 12px;
	background-color: var(--color8);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.contact-form-body {
	font-family: var(--font3);
	background-color: var(--color4);
	color: var(--color3);
	padding: 0;
}
.contact-form-body p {
	margin: 0;
}
.contact-form-label {
	display: block;
	font-family: var(--font2);
	font-size: var(--size3);
	font-weight: 600;
	margin-bottom: 0.25rem;
	color: var(--color2);
}
.contact-form-input[type="text"],
.contact-form-input[type="email"],
.contact-form-input[type="file"],
.contact-form-textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-family: var(--font3);
	font-size: var(--size3);
	box-sizing: border-box;
	margin-bottom: 0.2rem;
}
.contact-form-group {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin-bottom: 0.8rem;
}
.contact-form-group.antispam-group {
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
}
.contact-form-group.antispam-group .contact-form-label {
	display: inline-block;
	margin-bottom: 0;
	white-space: nowrap;
}

/* Spécifier l'alignement du label de la pièce jointe */
.contact-form-group.file-group {
	flex-direction: column;
	align-items: flex-start;
}
.contact-form-group.file-group .contact-form-label {
	display: inline-block;
	margin-bottom: 0.4rem;
	font-style: italic;
	font-weight: normal;
	font-size: 0.9em;
}
.contact-form-input[type="file"] {
	padding: 0.4rem;
	background-color: var(--color1);
	color: var(--color4);
	width: auto;
	border: none;
	cursor: pointer;
	border-radius: 4px;
}
.contact-form-input[type="file"]:hover {
	background-color: var(--color2);
}
.contact-form-input[type="file"]:focus {
	outline: none;
	box-shadow: 0 0 3px var(--color2);
}

.contact-form-input[type="text"][id="antispam"] {
	max-width: 120px;
	margin-left: 0;
	height: 38px;
}

.contact-form-input[type="text"]:focus,
.contact-form-input[type="email"]:focus,
.contact-form-textarea:focus {
	border-color: var(--color1);
	outline: none;
	box-shadow: 0 0 0 3px rgba(100, 150, 255, 0.15);
}

.contact-form-textarea {
	resize: vertical;
	min-height: 100px;
}

/* Style pour le bouton d'envoi */
.contact-form-submit {
	margin-top: 1rem;
	padding: 0.6rem;
	font-weight: bold;
	font-size: var(--size4);
	color: #fff;
	background-color: var(--color1);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	width: 100%;
	text-align: center;
	transition: background-color 0.3s ease, transform 0.2s ease;
}
.contact-form-submit:hover {
	background-color: var(--color2);
	transform: translateY(-2px);
}
.contact-form-submit:focus {
	outline: none;
	box-shadow: 0 0 3px var(--color2);
}

/* Message d'information (masqué par défaut) */
.form-message {
	display: none;
	margin: 1rem 0;
	padding: 0.75rem;
	border-radius: 4px;
	font-size: var(--size3);
}
.form-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	display: block;
}
.form-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	display: block;
}

/* Texte de fallback lorsqu'il n'y a pas de contenu disponible */
.no-content {
	font-style: italic;
	color: #666;
	margin: 20px 0;
	text-align: center;
}

.no-scroll {
	overflow: hidden;
}

@media (max-width: 960px) {
	.centered-container {
		width: 95%;
	}

	main h2 {
		font-size: var(--size5);
	}

	.portfolio-gallery {
		display: block;
		position: relative;
		width: 100%;
	}
	.portfolio-item {
		display: none; /* Masquer toutes les images par défaut */
	}
	.portfolio-item img {
		border: 1px solid #ccc;
		z-index: 1; /* Les images doivent être en dessous des boutons */
	}
	.portfolio-item.active {
		display: block; /* Afficher uniquement l'image active */
		width: 100%;
	}
	.portfolio-navigation {
		display: flex;
		justify-content: space-between;
		position: absolute;
		top: 50%;
		left: 0;
		right: 0;
		transform: translateY(-50%);
		padding: 0 10px;
		box-sizing: border-box;
		z-index: 2; /* Assurez-vous que les boutons sont au-dessus des images */
		pointer-events: none; /* Empêche le conteneur de recevoir des clics */
	}
	.portfolio-navigation button {
		pointer-events: auto; /* Autorise les clics uniquement sur les boutons */
		background-color: rgba(0, 0, 0, 0.5);
		transition: background-color 0.3s ease;
		color: #fff;
		border: none;
		padding: 10px;
		cursor: pointer;
	}
	.portfolio-navigation button:hover {
		background-color: rgba(0, 0, 0, 0.8);
	}

	.dot {
		height: 5px;
		width: 5px;
		margin: 0 2px;
	}

	.contact-form {
		max-width: 500px;
		margin: auto;
		padding: 1rem;
	}
	.contact-form-label {
		font-size: var(--size2);
		margin-bottom: 0.25rem;
	}
	.contact-form-group {
		margin-bottom: 0.5rem;
	}
	.contact-form-input[type="text"],
	.contact-form-input[type="email"],
	.contact-form-input[type="file"],
	.contact-form-textarea {
		width: 100%;
		margin-bottom: 0.5rem;
	}
	.contact-form-submit {
		font-size: var(--size3);
		width: 100%; /* Prend toute la largeur en responsive */
	}
}

@media (max-width: 480px) {
	.contact-form {
		padding: 1rem 1rem;
	}
	.contact-form-textarea {
		min-height: 120px;
	}
	.contact-form-group.file-group {
		flex-direction: column;
		align-items: flex-start;
	}
	.contact-form-input[type="file"] {
		width: 100%;
	}
	.contact-form-group.antispam-group {
		flex-direction: column;
		align-items: stretch;
	}
}