h1,
.mil-h1,
h2,
.mil-h12,
h3,
.mil-h3,
h4,
.mil-h4,
h5,
.mil-h5,
h6,
.mil-h6 {
	color: #1c2470;
}

.mil-menu-btn span,
.mil-menu-btn span:after,
.mil-menu-btn span:before {
	background-color: #1c2470 !important;
}

.mil-menu-btn.mil-active span,
.mil-menu-btn.mil-active span:before {
	background-color: #e8e9f2 !important;
}

/* DETAILS */

.mil-accent {
	color: #1c2470;
}

.mil-soft-bg .mil-accent {
	color: #ed5d17;
}

.mil-light {
	color: #e8e9f2 !important;
}
.mil-light a {
	color: #e8e9f2 !important;
}
.mil-muted {
	color: rgba(232, 233, 242, 0.9);
}
.mil-marker {
	background-color: #1c2470;
}
.mil-suptitle:before {
	background-color: #0e123d;
}
.mil-suptitle.mil-suptitle-dark:before {
	background-color: #0e123d;
}
.mil-link svg path {
	fill: #e8e9f2;
}
.mil-link.mil-accent svg path {
	fill: #1c2470;
}
.mil-link.mil-dark svg path {
	fill: #e8e8e8;
}

textarea::-webkit-input-placeholder {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 500;
	color: rgba(14, 18, 61, 0.5);
}
textarea::-moz-placeholder {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 500;
	color: rgba(14, 18, 61, 0.5);
}
textarea:-ms-input-placeholder {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 500;
	color: rgba(14, 18, 61, 0.5);
}
textarea::-ms-input-placeholder {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 500;
	color: rgba(14, 18, 61, 0.5);
}
textarea::placeholder {
	color: rgba(14, 18, 61, 0.5);
}
.mil-breadcrumbs li:after {
	color: #0e123d;
}
.mil-breadcrumbs li a {
	color: #0e123d;
}
.mil-breadcrumbs li a:hover {
	color: #ed5d17;
}
.mil-breadcrumbs.mil-light li:after {
	color: rgba(232, 233, 242, 0.9);
}
.mil-breadcrumbs.mil-light li a:hover {
	color: #d3ff33 !important;
}

.mil-preloader {
	background-color: #0e123d;
}
.mil-preloader .mil-preloader-animation {
	color: #e8e9f2;
}
.mil-reveal-box {
	z-index: 4;
	position: absolute;
	opacity: 0;
	height: 120%;
	border-radius: 70px !important;
	background-color: #ed5d17 !important;
}

.mil-ball {
	background-color: #d3ff33;
}

.mil-ball .mil-icon-1 svg {
	fill: #ed5d17 !important;
}

/* LOGO */

@media screen and (max-width: 1200px) {
	.mil-frame-top .mil-logo {
		content: url("../img/logos/logo_alga_inverted.svg");
		/* filter: invert(1); */
	}
}

@media screen and (max-width: 992px) {
	.mil-logo {
		width: 70px !important;
	}
}

.mil-logo {
	width: 100px !important;
}

.mil-menu-frame.mil-active .mil-logo {
	content: url("../img/logos/logo_alga_inverted.svg") !important;
	/* filter: invert(1); */
}

/* CORRECTION INVERSION SUR PAGES DARK */
/* Logo blanc seulement quand on est sur une section dark en formart desktop */
@media screen and (min-width: 1200px) {
	body.header-on-dark .mil-frame .mil-frame-top .mil-logo {
		filter: invert(1);
		content: url("../img/logos/logo_alga_inverted.svg");
	}
}
/* body.header-on-dark .mil-frame .mil-logo, */
.footer-logo {
	filter: invert(1);
	content: url("../img/logos/logo_alga_inverted.svg");
}

/* MENU */

@media screen and (max-width: 1200px) {
	.mil-menu-btn span,
	.mil-menu-btn span:after,
	.mil-menu-btn span:before {
		background-color: #e8e9f2 !important;
	}
	.mil-frame .mil-frame-top {
		background-color: #1c2470;
	}

	.lang-switch.mil-menu-list {
		display: block !important;
		z-index: 10000 !important;
		position: absolute !important;
		top: 300px !important;
	}
}
.mil-frame .mil-frame-top .mil-menu-btn span:before {
	background: #e8e9f2;
}
/* .mil-frame .mil-frame-bottom .mil-current-page {
	color: #0e123d;
}
.mil-frame .mil-frame-bottom .mil-back-to-top {
	color: #0e123d;
} */

.mil-menu-frame {
	background-color: #0e123d;
}

.mil-frame .mil-frame-top .mil-menu-btn span,
.mil-frame .mil-frame-top .mil-menu-btn span:after,
.mil-frame .mil-frame-top .mil-menu-btn span:before {
	background: #0e123d;
}

/* CORRECTION BARRES BURGER SUR SECTIONS DARK */
/* Barres noires (qui deviennent blanches) seulement sur sections dark format desktop */
@media screen and (min-width: 1200px) {
	body.header-on-dark .mil-frame .mil-frame-top .mil-menu-btn span,
	body.header-on-dark .mil-frame .mil-frame-top .mil-menu-btn span:before,
	body.header-on-dark .mil-frame .mil-frame-top .mil-menu-btn span:after {
		background: #000000 !important;
	}
}

/* CORRECTION FLÈCHES ORANGES */
/* Les flèches mil-arrow doivent garder leur fond orange même dans les sections dark */
.mil-dark-bg .mi-invert-fix .mil-arrow-place .mil-arrow,
.mil-dark-bg .mi-invert-fix .mil-arrow {
	background-color: #d3ff33 !important;
}

/* Flèches générales dans les sections dark : noires */
.mil-dark-bg .mi-invert-fix .mil-arrow-place .mil-arrow path,
.mil-dark-bg .mi-invert-fix .mil-arrow path {
	fill: #ed5d17 !important; /* Force black arrow */
}

/* Exception : mil-back-to-top doit avoir une flèche blanche */
.mil-dark-bg .mi-invert-fix .mil-back-to-top .mil-arrow-place .mil-arrow path {
	fill: white !important; /* Force white arrow pour back-to-top */
}

/* CORRECTION BACK-TO-TOP */
/* Seulement quand le back-to-top est physiquement DANS une section dark */
body.back-to-top-in-dark .mil-back-to-top .mil-link svg {
	background-color: #12a2e8 !important; /* Bleu qui devient orange après inversion */
}

body.back-to-top-in-dark .mil-back-to-top .mil-link svg path {
	fill: black !important; /* Noir qui devient blanc après inversion */
}

/* Quand le back-to-top n'est PAS dans une section dark */
body.back-to-top-not-in-dark .mil-back-to-top .mil-link svg {
	background-color: #ed5d17 !important; /* Orange normal */
}

body.back-to-top-not-in-dark .mil-back-to-top .mil-link svg path {
	fill: white !important; /* Blanc normal */
}

/* CORRECTION TEXTE SPANS DANS SECTIONS DARK */
.mil-dark-bg .mi-invert-fix span {
	color: #a8f0d5 !important;
}

.mil-social-icons li a {
	color: #e8e9f2;
}

.mil-main-menu ul {
	list-style: none !important;
}

.mil-main-menu ul li a:hover {
	color: #e8e9f2;
}
.mil-main-menu ul li a.mil-active:before {
	background-color: #d3ff33;
}
.mil-main-menu ul li.mil-active > a {
	color: #d3ff33;
}

.mil-main-menu ul li a:hover {
	color: #ed5d17 !important;
	-webkit-transform: translateX(10px);
	transform: translateX(10px);
}

.menu-social-icon {
	width: 20px;
}

.lang-switch ul {
	display: flex;
	flex-direction: row;
	gap: 8px;
	list-style: none;
}

.lang-active {
	color: #e8e9f2;
}

.mil-main-menu ul li.mil-has-children > a:hover {
	color: #e8e9f2;
}
.mil-social-frame {
	margin-right: 0;
	margin-bottom: 30px;
	height: 60px;
}
.mil-social-frame:hover {
	-webkit-transform: scale(1.015);
	transform: scale(1.015);
}
.mil-portrait-frame .mil-nimbus {
	background: radial-gradient();
}
.mil-circle-text:hover svg text {
	fill: #e8e9f2;
}
.mil-lines-place .mil-lines line {
	stroke: #0e123d;
}
.mil-lines-place.mil-light .mil-lines line {
	stroke: #e8e9f2;
}
.mil-position-1 .mil-pentagon div {
	border-top: 0.1px solid #e8e9f2;
}
.mil-position-2 .mil-pentagon div {
	border-top: 1px solid #e8e9f2;
}
.mil-position-3 .mil-pentagon div {
	border-top: 1px solid #e8e9f2;
}
.mil-position-4 .mil-pentagon div {
	border-top: 0.1px solid #e8e9f2;
}

.mil-light-bg .mil-position-4 .mil-pentagon div,
.mil-light-bg .mil-position-1 .mil-pentagon div,
.mil-light-bg .mil-position-2 .mil-pentagon div {
	border-top: 0.1px solid #0e123dad;
}

.mil-position-4.mil-dark .mil-pentagon div {
	border-top: 0.1px solid #0e123d;
}
.mil-service-card-sm:before {
	background-color: #ed5d17;
}

/* Activer uniquement le premier service au chargement de la page */
.mil-services-grid-item:first-child .mil-service-card-sm p {
	opacity: 1;
	-webkit-transform: translateY(0);
	transform: translateY(0);
}

.mil-services-grid-item:first-child .mil-service-card-sm .mil-button {
	-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-filter: grayscale(0);
	filter: grayscale(0);
	opacity: 1;
}

.mil-services-grid-item:first-child .mil-service-card-sm:before {
	width: 100%;
}

/* Désactiver le premier service quand on survole les autres */
.mil-services-grid:hover
	.mil-services-grid-item:first-child
	.mil-service-card-sm
	p {
	opacity: 0;
	-webkit-transform: translateY(10px);
	transform: translateY(10px);
}

.mil-services-grid:hover
	.mil-services-grid-item:first-child
	.mil-service-card-sm
	.mil-button {
	-webkit-transform: scale(0.3);
	transform: scale(0.3);
	-webkit-filter: grayscale(100%);
	filter: grayscale(100%);
	opacity: 0.4;
}

.mil-services-grid:hover
	.mil-services-grid-item:first-child
	.mil-service-card-sm:before {
	width: 0;
}

/* Réactiver le premier service quand on le survole directement */
.mil-services-grid-item:first-child .mil-service-card-sm:hover p {
	opacity: 1 !important;
	-webkit-transform: translateY(0) !important;
	transform: translateY(0) !important;
}

.mil-services-grid-item:first-child .mil-service-card-sm:hover .mil-button {
	-webkit-transform: scale(1) !important;
	transform: scale(1) !important;
	-webkit-filter: grayscale(0) !important;
	filter: grayscale(0) !important;
	opacity: 1 !important;
}

.mil-services-grid-item:first-child .mil-service-card-sm:hover:before {
	width: 100% !important;
}
.mil-service-card-lg.mil-other-card:hover {
	background-color: #1c2470;
}
.mil-service-card-lg.mil-other-card:hover .mil-link svg {
	background-color: #0e123d;
}
.mil-service-card-lg.mil-other-card:hover .mil-link svg path {
	fill: #1c2470;
}
.mil-team-card:after {
	background-color: #ed5d17;
}
.mil-team-card .mil-description .mil-secrc-text a {
	color: #e8e9f2;
}
.mil-team-card .mil-description .mil-secrc-text a:hover {
	color: #ed5d17;
}

/* .mil-social-icons li a:hover {
	color: #fcac84a4;
}
.mil-social-icons.mil-dark li a {
	color: #0e123d;
}
.mil-social-icons.mil-dark li a:hover {
	color: #1c2470;
} */
.mil-revi-pagination .swiper-pagination-bullet:hover {
	-webkit-box-shadow: inset 0 0 0 4px #e8e9f2;
	box-shadow: inset 0 0 0 4px #e8e9f2;
}
.mil-revi-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
	-webkit-box-shadow: inset 0 0 0 4px #1c2470;
	box-shadow: inset 0 0 0 4px #1c2470;
}
.mil-quote-icon path {
	fill: #1c2470;
}
.mil-slider-nav .mil-slider-arrow {
	background-color: #0e123d;
}
.mil-slider-nav .mil-slider-arrow svg path {
	fill: #1c2470;
}
.mil-slider-nav.mil-soft .mil-slider-arrow {
	background-color: #6066a1;
}
.mil-slider-nav.mil-soft .mil-slider-arrow svg path {
	fill: #0e123d;
}
.mil-pagination-btn {
	color: #0e123d;
}
/* .mil-pagination-btn.mil-active {
	background} */

.mil-pagination-btn.mil-active {
	background-color: #1c2470;
}
.mil-category-list li a:hover {
	background-color: #6066a1;
}
.mil-category-list li a.mil-active {
	background-color: #1c2470;
}

.mil-subscribe-form input {
	color: #0e123d;
}
.mil-subscribe-form input:focus {
	background-color: #e8e9f2;
}
.mil-subscribe-form input:hover {
	background-color: #e8e9f2;
}

.mil-image-frame .mil-zoom-btn:hover {
	background-color: #e8e9f2;
}
.mil-works-nav .mil-curtain {
	background-color: #0e123d;
}

.mil-image-frame .mil-hover-info {
	position: absolute;
	bottom: 70px;
	left: 30px;
	margin: 0;
	padding: 12px 16px;
	background-color: rgba(255, 255, 255, 0.8);

	opacity: 0;
	-webkit-transform: translateY(15px);
	transform: translateY(15px);
	-webkit-transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
	transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
	pointer-events: none;
	z-index: 1;
}

.mil-image-frame:hover .mil-hover-info {
	opacity: 1;
	-webkit-transform: translateY(0);
	transform: translateY(0);
}

/* BACKGROUND COLORS */

/*footer */
.mil-dark-bg {
	background-color: #f1edc2 !important;
	/* background-color: #0e123d !important; */
}

.mil-dark-bg .mil-footer-menu li.mil-active a {
	color: #2c00cc !important;
}

.mil-dark-bg .mil-footer-menu li.mil-active a:hover {
	-webkit-transform: translateX(10px);
	transform: translateX(10px);
}

.mil-dark-bg .mil-footer-menu ul li a {
	color: black;
}

.mil-dark-bg .mil-footer-menu ul li a:hover {
	color: #12a2e8 !important;
}

.mil-dark-bg .mil-white {
	color: rgba(255, 255, 255, 0.808);
}

.mil-dark-bg .mil-light-soft {
	color: rgba(255, 255, 255, 0.4);
}

.mil-dark-soft {
	color: rgba(0, 0, 0, 0.5);
}

.mil-blue {
	color: #1c2470;
}

.mil-dark-bg a:hover {
	color: black !important;
}

.mil-soft-bg {
	background-color: rgba(223, 220, 220, 0.274);
}

/* TEXT COLORS */
.mil-soft-bg h2,
.mil-soft-bg h4 {
	color: #ed5d17;
}

/* BUTTONS */

.mil-soft-bg .mil-button {
	background-color: #a4a7c9a8;
	color: #ed5d17 !important;
}

.mil-light-bg .mil-button {
	background-color: #fcac84a4;
	color: #1c2470 !important;
}

.mil-light-bg .mil-button svg,
.mil-light-bg svg path {
	fill: white !important;
	background-color: #ed5d17 !important;
}

.mil-soft-bg .mil-button svg,
.mil-soft-bg svg path {
	fill: white !important;
	background-color: #1c2470 !important;
}

.mil-button.mil-icon-button-sm svg {
	background-color: #ed5d17 !important;
}

.mil-button mil-icon-button-sm mil-arrow-place {
	fill: #ed5d17 !important;
}
/* TEAM */

.mil-team-card .mil-description {
	opacity: 0.2;
	background-color: #1c2470;
}

.mil-team-card .mil-description:hover {
	opacity: 0.7 !important;
}

.mil-clickable-card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.mil-clickable-card:hover {
	text-decoration: none;
	color: inherit;
}

/* .mil-clickable-card:hover p {
	color: #ed5d17;
} */

/* EXPERTISES */

.mil-works-nav {
	padding-top: 60px !important;
	padding-bottom: 120px !important;
}

.mil-xp-desc {
	margin-top: 50px !important;
}
/* FOOTER */

@media screen and (max-width: 992px) {
	.footer-logo {
		width: 70px !important;
	}
}

.footer-logo {
	/* filter: invert(1) !important; */
	width: 100px !important;
}

.mil-footer-menu ul li a:hover {
	color: #ed5d17;
}
.mil-footer-menu ul li.mil-active a {
	color: #d3ff33;
}

.footer-content {
	display: flex;
	flex-direction: column;
}

.footer-top {
	display: flex;
	justify-content: space-between;
	align-items: left;
	width: 60%;
	margin-bottom: 15px;
}

.footer-copyright {
	text-align: left;
	margin-top: 10px;
}

.mil-dark-bg .mil-accordion-group {
	border-bottom: solid 1px rgba(252, 251, 251, 0.2);
}

/* VIDÉOS INTÉGRÉES DANS LA GALERIE */
.mil-video-frame {
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

/* UNIFORMISER TOUS LES CADRES - MÊME TAILLE POUR IMAGES ET VIDÉOS */
.mil-image-frame.mil-horizontal {
	padding-bottom: 56.25% !important; /* Force le ratio 16:9 pour TOUS les cadres */
}

.mil-video-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #d3ff33; /* Pas de fond jaune, comme les photos */
}

.mil-video-container iframe.mil-vimeo-embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	pointer-events: none;
}

/* Le bouton zoom et les infos doivent être par-dessus la vidéo */
.mil-video-frame .mil-zoom-btn {
	position: absolute;
	z-index: 10;
	pointer-events: auto;
}

.mil-video-frame .mil-hover-info {
	position: absolute;
	z-index: 10;
	pointer-events: none;
}

/* Appliquer le même style de hover que pour les images */
.mil-video-frame:hover .mil-hover-info {
	opacity: 1;
	-webkit-transform: translateY(0);
	transform: translateY(0);
}

/* CUSTOMISATION FANCYBOX - FOND TRANSPARENT EN MODE NORMAL */

/* Effet de flou sur le contenu du site quand fancybox est ouvert (mode normal) */
body.fancybox-active .mil-wrapper {
	filter: blur(8px) !important;
	transition: filter 0.3s ease !important;
}

/* Alternative : appliquer le flou directement au wrapper si fancybox est présent */
.mil-wrapper {
	transition: filter 0.3s ease;
}

body.fancybox-active:not(.fancybox-is-fullscreen) .mil-wrapper {
	filter: blur(8px) !important;
}

/* Pas de flou en mode plein écran */
body.fancybox-active.fancybox-is-fullscreen .mil-wrapper {
	filter: none !important;
}

/* Fond transparent pour le conteneur principal (mode normal) */
.fancybox-container:not(.fancybox-is-fullscreen) .fancybox-bg {
	background: transparent !important;
	opacity: 1 !important;
}

/* Fond bleu en mode plein écran */
.fancybox-container.fancybox-is-fullscreen .fancybox-bg {
	background: #0e123d !important;
	opacity: 1 !important;
}

/* Taille fixe pour la boîte de contenu (mode normal) */
.fancybox-container:not(.fancybox-is-fullscreen) .fancybox-slide {
	padding: 44px 120px !important;
}

/* Couleur des éléments de la toolbar */
.fancybox-toolbar button {
	background: #d3ff33;
	border-radius: 70px !important;
	margin-left: 8px !important;
}

.fancybox-toolbar button svg path {
	fill: #1c2470 !important;
}

.fancybox-button--close:hover {
	background: #ed5d17 !important;
}

.fancybox-button--close:hover svg path {
	fill: white !important;
}

.fancybox-infobar {
	color: #0e123d !important;
}

/* Hover des flèches de navigation */
.fancybox-navigation button:hover svg path {
	fill: #0e123d !important;
}

/* Flèches blanches au hover en mode plein écran */
.fancybox-container.fancybox-is-fullscreen
	.fancybox-navigation
	button:hover
	svg
	path {
	fill: white !important;
}

.fancybox-progress {
	background: #ed5d17 !important	;
}

.mil-dark-bg .mil-divider {
	background-color: #0e123d;
}

.mil-p-50-60 {
	padding: 47px 60px;
}

.mil-mb-40 {
	margin-bottom: 40px;
}

#cookie-banner {
	background-color: #1c2470;
	color: #e8e9f2;
	padding: 25px 20px;
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 6px #313eafb9;
	z-index: 3;
	display: flex;
	justify-content: space-around;
	align-items: center;
}

.cookie-buttons {
	display: flex;
	gap: 15px;
	margin-top: 15px;
	justify-content: flex-end;
}

.cookie-link {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.5px;
	font-style: underline;
	color: #a8f0d5;
}

.cookie-content h3 {
	margin: 0 0 10px 0;
	font-size: 18px;
	color: #a8f0d5;
}

.cookie-button:hover {
	-webkit-transform: scale(1.015);
	transform: scale(1.015);
	-webkit-filter: brightness(110%);
	filter: brightness(110%);
}
.cookie-button {
	cursor: pointer;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	border: none;
	letter-spacing: 2px;
	font-size: 12px;
	background-color: #d3ff33;
	/* color: #0e123d; */
	border-radius: 70px;
	padding: 0 50px 0 50px;
	height: 50px;
	text-transform: uppercase;
	font-weight: 500;
	-webkit-transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
	transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
}

.cookie-content {
	width: 95%;
}

@media (max-width: 768px) {
	.cookie-buttons {
		flex-direction: column;
	}

	.cookie-button {
		width: 100%;
	}
}

/* ===================================
   RESPONSIVE GALERIE VIDÉO - MOBILE
   =================================== */

/* Tablettes et petits écrans (≤ 992px) */
@media screen and (max-width: 992px) {
	/* Réduire le padding de la lightbox sur tablette */
	.fancybox-container:not(.fancybox-is-fullscreen) .fancybox-slide {
		padding: 30px 60px !important;
	}

	/* Infos vidéo plus compactes */
	.mil-image-frame .mil-hover-info {
		bottom: 50px;
		left: 20px;
		padding: 10px 14px;
		font-size: 13px;
	}

	/* Ajuster le bouton zoom */
	.mil-zoom-btn {
		width: 50px;
		height: 50px;
		bottom: 20px;
		right: 20px;
	}
}

/* Mobiles (≤ 768px) */
@media screen and (max-width: 768px) {
	/* Padding minimal pour la lightbox sur mobile */
	.fancybox-container:not(.fancybox-is-fullscreen) .fancybox-slide {
		padding: 20px !important;
	}

	/* Infos vidéo adaptées mobile */
	.mil-image-frame .mil-hover-info {
		bottom: 60px;
		left: 15px;
		right: 15px;
		padding: 8px 12px;
		font-size: 11px;
		max-width: calc(100% - 30px);
	}

	.mil-image-frame .mil-hover-info li {
		font-size: 11px;
		margin-bottom: 3px;
	}

	/* Bouton zoom plus petit sur mobile */
	.mil-zoom-btn {
		width: 45px;
		height: 45px;
		bottom: 15px;
		right: 15px;
	}

	.mil-zoom-btn img {
		width: 20px;
		height: 20px;
	}

	/* Adapter la hauteur des frames pour mobile - GARDER LA MÊME TAILLE */
	.mil-image-frame.mil-horizontal {
		padding-bottom: 75% !important; /* Ratio 4:3 pour mobile - TOUS les cadres */
	}

	/* Description projet plus compacte sur mobile */
	.mil-xp-desc {
		margin-top: 30px !important;
		margin-bottom: 30px;
	}

	/* Navigation fancybox plus visible sur mobile */
	.fancybox-navigation button {
		width: 44px;
		height: 44px;
	}

	/* Toolbar fancybox adaptée mobile */
	.fancybox-toolbar {
		padding: 10px;
	}

	.fancybox-toolbar button {
		width: 40px;
		height: 40px;
		margin-left: 5px !important;
	}

	/* ========================================
	   GALERIE VIDÉO - VERSION MOBILE
	   ======================================== */

	/* PREMIER PROJET - MASQUER LE TEXTE À CÔTÉ */
	#project .col-lg-4 {
		display: none !important;
	}

	/* PREMIER PROJET - PLEINE LARGEUR */
	#project .col-lg-7 {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
		padding: 0 15px !important;
		margin-bottom: 30px !important;
	}

	/* DÉSACTIVER LE SLIDER SWIPER - FORCER L'AFFICHAGE EN COLONNE */
	.mil-2-slider {
		margin-bottom: 30px !important;
		overflow: visible !important;
		height: auto !important;
	}

	.mil-2-slider .swiper-wrapper {
		display: block !important;
		flex-direction: column !important;
		transform: translate3d(0, 0, 0) !important;
		transition-duration: 0ms !important;
		width: 100% !important;
		height: auto !important;
	}

	.mil-2-slider .swiper-slide {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-bottom: 30px !important;
		margin-right: 0 !important;
		transform: translate3d(0, 0, 0) !important;
		transition: none !important;
		opacity: 1 !important;
		height: auto !important;
	}

	/* Masquer les contrôles du slider sur mobile */
	.mil-2-slider .swiper-pagination,
	.mil-2-slider .swiper-button-next,
	.mil-2-slider .swiper-button-prev {
		display: none !important;
	}

	/* Tous les projets en colonne avec espacement */
	.mil-video-frame {
		margin-bottom: 30px !important;
		width: 100% !important;
	}

	/* Ajuster le container principal */
	#project.container,
	.mil-soft-bg #project {
		padding: 60px 15px 30px !important;
	}
}

/* Très petits mobiles (≤ 576px) */
@media screen and (max-width: 576px) {
	/* Infos vidéo encore plus compactes */
	.mil-image-frame .mil-hover-info {
		bottom: 55px;
		left: 10px;
		right: 10px;
		padding: 6px 10px;
		font-size: 10px;
	}

	.mil-image-frame .mil-hover-info li {
		font-size: 10px;
		margin-bottom: 2px;
	}

	/* Bouton zoom minimal */
	.mil-zoom-btn {
		width: 40px;
		height: 40px;
		bottom: 10px;
		right: 10px;
	}

	.mil-zoom-btn img {
		width: 18px;
		height: 18px;
	}

	/* Ratio encore plus carré pour très petits écrans - GARDER LA MÊME TAILLE */
	.mil-image-frame.mil-horizontal {
		padding-bottom: 85% !important; /* TOUS les cadres ont la même taille */
	}

	/* Lightbox : padding minimal */
	.fancybox-container:not(.fancybox-is-fullscreen) .fancybox-slide {
		padding: 10px !important;
	}

	/* Boutons fancybox plus petits */
	.fancybox-toolbar button {
		width: 36px;
		height: 36px;
	}

	.fancybox-navigation button {
		width: 40px;
		height: 40px;
	}
}

/* ===================================
   COOKIE PREFERENCES SECTION
   =================================== */

.cookie-preferences-section {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 30px;
	background-color: rgba(232, 233, 242, 0.05);
	border-radius: 8px;
}

.cookie-preference-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 25px;
	margin-bottom: 20px;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 8px;
	border-left: 4px solid #1c2470;
	transition: all 0.3s ease;
}

.cookie-preference-item:hover {
	box-shadow: 0 4px 12px rgba(28, 36, 112, 0.1);
	transform: translateY(-2px);
}

.cookie-preference-info {
	flex: 1;
	padding-right: 30px;
}

.cookie-preference-info h5 {
	color: #1c2470;
	margin-bottom: 10px;
}

.cookie-preference-info p {
	color: rgba(14, 18, 61, 0.7);
	line-height: 1.6;
}

.cookie-toggle-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	min-width: 100px;
}

/* Toggle Switch Styling */
.cookie-toggle {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
	cursor: pointer;
}

.cookie-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cookie-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.4s;
	border-radius: 34px;
}

.cookie-slider:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: 0.4s;
	border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
	background-color: #1c2470;
}

.cookie-toggle input:checked + .cookie-slider:before {
	transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-slider {
	background-color: #d3ff33;
	cursor: not-allowed;
	opacity: 0.8;
}

.cookie-toggle input:disabled + .cookie-slider:before {
	background-color: #ed5d17;
}

/* Hover effect for enabled toggles */
.cookie-toggle:not(:has(input:disabled)):hover .cookie-slider {
	box-shadow: 0 0 8px rgba(28, 36, 112, 0.3);
}

.cookie-status {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #1c2470;
	text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
	.cookie-preferences-section {
		padding: 30px 20px;
	}

	.cookie-preference-item {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px;
	}

	.cookie-preference-info {
		padding-right: 0;
		margin-bottom: 20px;
	}

	.cookie-toggle-wrapper {
		align-self: flex-start;
		align-items: center;
		flex-direction: row;
		gap: 15px;
	}
}

@media screen and (max-width: 576px) {
	.cookie-preferences-section {
		padding: 20px 15px;
	}

	.cookie-preference-item {
		padding: 15px;
	}

	.cookie-preference-info h5 {
		font-size: 16px;
	}

	.cookie-preference-info p {
		font-size: 13px;
	}
}

/* Cookie Update Notification */
.cookie-update-notification {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background-color: #1c2470;
	color: white;
	padding: 20px 25px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(28, 36, 112, 0.3);
	z-index: 10000;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
	max-width: 350px;
}

.cookie-notification-content strong {
	display: block;
	margin-bottom: 5px;
	color: #d3ff33;
	font-size: 14px;
}

.cookie-notification-content p {
	margin: 0;
	font-size: 13px;
	color: rgba(232, 233, 242, 0.9);
}

@media screen and (max-width: 576px) {
	.cookie-update-notification {
		bottom: 20px;
		right: 20px;
		left: 20px;
		max-width: none;
		padding: 15px 20px;
	}
}

footer ul.mil-menu-list,
footer .mil-menu-list {
	margin-bottom: 60px;
}
