/* =================================================================== */
/* SIMEON BLUE #0066FF (Couleurs de la bannière)                        */
/* =================================================================== */

.home h1,
.about .box-stats h3,
.title-section h2 span,
.mobile-nav-element.active,
body.light #menu li.active a,
.blog .post-container:hover .post-content .entry-header h3 a,
.blog .post-content .entry-header h3 a:hover,
.contact .custom-span-contact i,
.portfolio .slideshow figcaption h3,
.portfolio .slideshow a,
.portfolio .grid figure:hover figcaption,
.blog-post .meta i {
	color: #0066FF;
}

.home .home-details h1:before,
.about .resume-box .icon,
.contact ul.social li a:hover,
body.light .contact ul.social li a:hover,
.preloader .loader,
.blog .page-link:hover,
.blog .page-item.active .page-link,
body.light .blog .page-link:hover,
body.light .blog .page-item.active .page-link,
.portfolio .grid li figure div,
.header ul.icon-menu li.icon-box.active,
.header ul.icon-menu li.icon-box:hover,
body.light .header ul.icon-menu li.icon-box.active,
body.light .header ul.icon-menu li.icon-box:hover,
.btn,
.header .icon-box h2,
.home .color-block,
.title-section hr,
.portfolio .slideshow .carousel-indicators li.active,
.line:before,
.button:before,
.button-icon {
	background-color: #0066FF;
}

.revealer > div:nth-child(2) {
	background-color: #0066FF !important;
}

.contact .contactform input[type=text]:focus,
.contact .contactform input[type=email]:focus,
.contact .contactform textarea:focus,
body.light .contact .contactform input[type=text]:focus,
body.light .contact .contactform input[type=email]:focus,
body.light .contact .contactform textarea:focus,
.blog .page-item.active .page-link,
.blog .page-link:hover,
body.light .blog .page-item.active .page-link,
body.light .blog .page-link:hover,
.button {
	border: 1px solid #0066FF;
}

.blog .post-thumb {
	border-bottom: 5px solid #0066FF;
}

.pie,
.c100 .bar,
.c100.p51 .fill, .c100.p52 .fill, .c100.p53 .fill, .c100.p54 .fill,
.c100.p55 .fill, .c100.p56 .fill, .c100.p57 .fill, .c100.p58 .fill,
.c100.p59 .fill, .c100.p60 .fill, .c100.p61 .fill, .c100.p62 .fill,
.c100.p63 .fill, .c100.p64 .fill, .c100.p65 .fill, .c100.p66 .fill,
.c100.p67 .fill, .c100.p68 .fill, .c100.p69 .fill, .c100.p70 .fill,
.c100.p71 .fill, .c100.p72 .fill, .c100.p73 .fill, .c100.p74 .fill,
.c100.p75 .fill, .c100.p76 .fill, .c100.p77 .fill, .c100.p78 .fill,
.c100.p79 .fill, .c100.p80 .fill, .c100.p81 .fill, .c100.p82 .fill,
.c100.p83 .fill, .c100.p84 .fill, .c100.p85 .fill, .c100.p86 .fill,
.c100.p87 .fill, .c100.p88 .fill, .c100.p89 .fill, .c100.p90 .fill,
.c100.p91 .fill, .c100.p92 .fill, .c100.p93 .fill, .c100.p94 .fill,
.c100.p95 .fill, .c100.p96 .fill, .c100.p97 .fill, .c100.p98 .fill,
.c100.p99 .fill, .c100.p100 .fill {
	border: 0.08em solid #0066FF;
}

/* ==================== MODAL PROJET ==================== */
.project-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	backdrop-filter: blur(5px);
	animation: fadeIn 0.3s ease;
}
.project-modal.active { display: flex; align-items: center; justify-content: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
	background: #1e293b;
	border-radius: 20px;
	max-width: 900px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	border: 1px solid rgba(0, 102, 255, 0.3);
	box-shadow: 0 20px 60px rgba(0, 102, 255, 0.2);
	animation: slideUp 0.4s ease;
}

@keyframes slideUp {
	from { transform: translateY(50px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.modal-content img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	border-radius: 20px 20px 0 0;
}

.modal-details { padding: 30px; }

.modal-details h2 {
	color: #fff;
	font-size: 2rem;
	margin-bottom: 15px;
	font-weight: 700;
}

.modal-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.modal-tech span {
	padding: 6px 14px;
	background: rgba(0, 102, 255, 0.15);
	color: #0066FF;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	border: 1px solid rgba(0, 102, 255, 0.3);
}

.modal-details p {
	color: #a0aec0;
	line-height: 1.8;
	font-size: 1rem;
	margin-bottom: 25px;
}

.modal-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 30px;
	background: linear-gradient(90deg, #0066FF, #00A3FF);
	color: #fff !important;
	border-radius: 50px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}
.modal-link:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 102, 255, 0.4); }

.modal-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #fff;
	font-size: 3rem;
	font-weight: 300;
	cursor: pointer;
	z-index: 10001;
	transition: all 0.3s ease;
	line-height: 1;
}
.modal-close:hover { color: #0066FF; transform: rotate(90deg); }

.modal-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 60px;
	height: 60px;
	background: rgba(0, 102, 255, 0.2);
	border: 2px solid #0066FF;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.5rem;
	cursor: pointer;
	z-index: 10001;
	transition: all 0.3s ease;
}
.modal-nav:hover { background: #0066FF; transform: translateY(-50%) scale(1.1); }
.modal-prev { left: 30px; }
.modal-next { right: 30px; }

.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: #0f172a; }
.modal-content::-webkit-scrollbar-thumb { background: #0066FF; border-radius: 10px; }

/* ==================== BOUTONS DU MODAL ==================== */
.modal-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.modal-btn-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 25px;
	background: transparent;
	color: #a0aec0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
	line-height: 1.2;
	-webkit-tap-highlight-color: transparent;
}

.modal-btn-close:hover,
.modal-btn-close:active {
	background: rgba(0, 102, 255, 0.15);
	color: #fff;
	border-color: #0066FF;
	transform: translateY(-2px);
}

/* ==================== RESPONSIVE MOBILE GÉNÉRIQUE ==================== */
@media (max-width: 768px) {
	.modal-content {
		max-height: 85vh;
	}
	.modal-content img { height: 220px; }
	.modal-details { padding: 20px; }
	.modal-details h2 { font-size: 1.5rem; }

	.modal-close {
		position: fixed !important;
		top: 15px !important;
		left: 15px !important;
		right: auto !important;
		font-size: 1.6rem;
		color: #fff;
		background: #0066FF;
		width: 44px;
		height: 44px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		line-height: 1;
		z-index: 99999 !important;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
		-webkit-tap-highlight-color: transparent;
	}

	.modal-actions {
		display: flex !important;
		flex-direction: column !important;
		gap: 10px;
		width: 100%;
		margin-top: 20px;
		padding-bottom: env(safe-area-inset-bottom, 0);
	}

	.modal-link,
	.modal-btn-close {
		width: 100% !important;
		justify-content: center !important;
		padding: 14px 20px !important;
		font-size: 1rem !important;
		margin: 0 !important;
		display: flex !important;
		align-items: center;
		gap: 10px;
		box-sizing: border-box !important;
		-webkit-tap-highlight-color: transparent;
	}

	.modal-btn-close {
		background: rgba(255, 255, 255, 0.08) !important;
		color: #fff !important;
		border: 1px solid rgba(255, 255, 255, 0.3) !important;
		border-radius: 12px !important;
	}

	.modal-btn-close:active {
		background: #0066FF !important;
		border-color: #0066FF !important;
	}

	.modal-nav {
		width: 44px;
		height: 44px;
		font-size: 1rem;
		position: fixed;
		bottom: calc(15px + env(safe-area-inset-bottom, 0px));
		top: auto;
		transform: none;
		z-index: 99998 !important;
		-webkit-tap-highlight-color: transparent;
	}
	.modal-prev { left: 15px; }
	.modal-next { right: 15px; }
}

/* ==================== PHOTO PORTRAIT RESPONSIVE ==================== */
.hero-img-portrait {
	width: 60vw;
	max-width: 320px;
	min-width: 200px;
	aspect-ratio: 3 / 4;
	margin: 0 auto 30px;
	border-radius: 24px;
	overflow: hidden;
	border: 3px solid rgba(0, 102, 255, 0.4);
	box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
	position: relative;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-img-portrait:hover {
	transform: translateY(-5px);
	box-shadow: 0 30px 80px rgba(0, 102, 255, 0.4);
}

.hero-img-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	display: block;
	transition: transform 0.6s ease;
}

.hero-img-portrait:hover img {
	transform: scale(1.05);
}

/* ==================== HERO SECTION ==================== */
.hero-modern {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 60%);
	position: relative;
	overflow: visible;
	padding: 40px 0;
	box-sizing: border-box;
}

/* ==================== BLOG CARDS (sans image) ==================== */
.blog-card {
	background: rgba(30, 41, 59, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 20px;
	padding: 30px;
	height: 100%;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.blog-card:hover {
	transform: translateY(-5px);
	border-color: rgba(0, 102, 255, 0.4);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.blog-meta {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	font-size: 0.8rem;
	color: #94a3b8;
}

.blog-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.blog-meta i {
	color: #0066FF;
}

.blog-card h3 {
	font-size: 1.2rem;
	margin-bottom: 15px;
	line-height: 1.4;
}

.blog-card h3 a {
	color: #fff;
	text-decoration: none;
	transition: color 0.3s ease;
}

.blog-card h3 a:hover {
	color: #0066FF;
}

.blog-card p {
	color: #a0aec0;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 20px;
	flex: 1;
}

.blog-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #0066FF;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: all 0.3s ease;
	margin-top: auto;
}

.blog-read-more:hover {
	color: #00A3FF;
	gap: 12px;
}

/* ==================== RESPONSIVE MOBILE ==================== */
@media (max-width: 768px) {
	.hero-modern {
		padding: 100px 15px 60px !important;
		min-height: auto !important;
		align-items: flex-start !important;
		overflow: visible !important;
	}

	.hero-modern p {
		margin-bottom: 20px !important;
	}
	.hero-img-portrait {
		margin-bottom: 20px !important;
	}
	.hero-modern h1 {
		margin-bottom: 10px !important;
	}
	.hero-modern h1 span {
		margin-top: 5px !important;
	}

	.hero-img-portrait {
		width: 70vw;
		max-width: 280px;
		min-width: 180px;
		margin-bottom: 25px;
		aspect-ratio: 4 / 5;
	}
	.hero-img-portrait img {
		object-position: center 15%;
	}
	.hero-modern h1 {
		font-size: 1.8rem !important;
		line-height: 1.3;
	}
	.hero-modern h1 span {
		font-size: 1.2rem !important;
	}
	.hero-modern p {
		font-size: 0.95rem !important;
		padding: 0 10px;
	}
}

@media (max-width: 480px) {
	.hero-img-portrait {
		width: 75vw;
		max-width: 240px;
		aspect-ratio: 1 / 1;
	}
	.hero-img-portrait img {
		object-position: center 10%;
	}
	.hero-modern {
		padding: 90px 12px 50px !important;
	}
	.hero-modern h1 {
		font-size: 1.5rem !important;
	}
	.hero-modern h1 span {
		font-size: 1rem !important;
	}
}

/* ==================== CORRECTION ICÔNES DANS LES BOUTONS ==================== */
.button .button-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	padding: 0 !important;
	margin: 0 !important;
	position: relative !important;
	top: 0 !important;
	transform: none !important;
	box-sizing: border-box !important;
}

.button .button-icon i,
.button .button-icon .fa-solid,
.button .button-icon .fa {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: inherit !important;
	transform: none !important;
}

#link-about {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
}

#link-about .button-icon {
	width: 30px !important;
	height: 30px !important;
	border-radius: 50% !important;
	background-color: #0066FF !important;
	color: #fff !important;
	flex-shrink: 0 !important;
}

#link-about .button-icon i {
	color: #fff !important;
	font-size: 0.85rem !important;
}

a.button[href*="moncv"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
}

a.button[href*="moncv"] .button-icon {
	width: 30px !important;
	height: 30px !important;
	border-radius: 50% !important;
	background-color: #0066FF !important;
	color: #fff !important;
	flex-shrink: 0 !important;
}

a.button[href*="moncv"] .button-icon i {
	color: #fff !important;
	font-size: 0.85rem !important;
}

@media (max-width: 768px) {
	#link-about {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 8px !important;
		padding: 14px 30px !important;
		font-size: 0.95rem !important;
		width: auto !important;
		max-width: 90vw !important;
		margin: 0 auto !important;
		box-sizing: border-box !important;
		white-space: nowrap !important;
	}

	#link-about .button-text {
		font-size: 0.95rem !important;
		white-space: nowrap !important;
	}

	#link-about .button-icon {
		width: 26px !important;
		height: 26px !important;
		flex-shrink: 0 !important;
	}

	#link-about .button-icon i {
		font-size: 0.75rem !important;
	}
}

@media (max-width: 380px) {
	#link-about {
		padding: 12px 22px !important;
		font-size: 0.85rem !important;
		gap: 6px !important;
	}
	#link-about .button-text {
		font-size: 0.85rem !important;
	}
	#link-about .button-icon {
		width: 24px !important;
		height: 24px !important;
	}
}