
/* ============================================
   VARIABLES CSS
   ============================================ */

:root {
	--primary-blue: #1D54A6;
	--dark-navy: #001133;
	--light-blue: #00CCFF;
	--font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Barlow", sans-serif;
	font-weight: 400;
	font-style: normal;
	color: #333;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
	background: white;
	padding: 1rem 0;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
}

.navbar-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--dark-navy) !important;
}

.logo-icon {
	width: 40px;
	height: 40px;
	background: var(--primary-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 700;
	font-style: italic;
	border-radius: 3px;
	cursor: pointer;
}

.nav-link {
	color: var(--dark-navy) !important;
	margin: 0 10px;
	font-size: 0.95rem;
	font-weight: 500;
	transition: color 0.3s;
	cursor: pointer;
	position: relative;
}

.nav-link:hover {
	color: var(--primary-blue) !important;
}

/* ============================================
   HERO SECTION - ANIMATION SÉQUENTIELLE
   ============================================ */

.hero-section {
	background: var(--dark-navy);
	position: relative;
	overflow: hidden;
	min-height: 650px;
}

/* Particles */
#particles-js {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
}

/* Image de fond */
.hero-image {
	position: absolute;
	right: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: hidden;
	z-index: 1;
}

.hero-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right;
	opacity: 1;
}

/* Contenu Hero */
.hero-content {
	position: relative;
	z-index: 3;
	padding: 80px 0;
}

/* Wrapper pour positionner les slashes */
.hero-box-wrapper {
	position: relative;
}


/* Carré bleu - Rectangle entier au départ */
.hero-blue-box {
	background: var(--primary-blue);
	padding: 50px;
	position: relative;
	height: 300px;
	display: flex;
	align-items: center;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Rectangle entier */
}

/* S'assurer que le contenu est au-dessus */
.hero-blue-content {
	position: relative;
	z-index: 2;
}

.hero-title {
	color: white;
	font-size: 2.5rem;
	font-weight: 700;
	font-style: italic;
	margin-bottom: 20px;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.hero-subtitle {
	color: white;
	line-height: 1.6;
	font-size: 1.1rem;
	font-weight: 400;
	margin: 0;
}


/* Slashes avec même hauteur */
.hero-slashes-animated {
	position: absolute;
	bottom: 0;
	right: -38px;
	display: flex;
	gap: 20px;
	z-index: 4;
	opacity: 0;
	height: 300px; /* Même hauteur que le carré */
	align-items: flex-end;
}

.hero-slash {
	width: 35px;
	height: 300px; /* Même hauteur */
	background: var(--primary-blue);
	transform: skewX(-33deg);
	opacity: 0;
}

/* Responsive - on cache les slashes plus tôt */
@media (max-width: 1400px) {
	/* On cache les slashes dès que l'écran devient plus petit */
	.hero-slashes-animated {
		display: none;
	}

	/* Le carré reste entier (pas d'animation de découpe) */
	.hero-blue-box {
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
	}
}

@media (max-width: 768px) {
	.hero-blue-box {
		height: 250px; /* Plus petit sur tablette */
		padding: 30px;
	}
}

@media (max-width: 576px) {
	.hero-blue-box {
		height: 200px; /* Encore plus petit sur mobile */
		padding: 25px 20px;
	}
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
	padding: 80px 0;
	background: white;
}

.about-image {
	background:  url('../images/daniel-buchwalder.jpg') center/cover;
	background-size:100%;
	background-repeat:no-repeat;
	height: 550px;
	min-height: 400px;
	position: relative;
	overflow: hidden;
	border-radius: 0px;
}

.about-content {
	padding: 40px;
}

.section-title {
	color: var(--primary-blue);
	font-size: 2rem;
	font-family: "Barlow", sans-serif;
	font-weight: 700;
	font-style: italic;
	letter-spacing: -0.02em;
}

.about-text {
	line-height: 1.8;
	margin-bottom: 20px;
	color: #333;
	font-weight: 400;
	font-size: 1.05rem;
}

/* ============================================
   APPROACH SECTION
   ============================================ */

.approach-section {
	background: #f8f9fa;
	padding: 80px 0;
}

.approach-text {
	font-size: 1.15rem;
	line-height: 1.8;
	color: #333;
	text-align: center;
	font-weight: 400;
}

/* ============================================
   MACROS SECTION
   ============================================ */

.macros-section {
	background: white;
	padding: 80px 0;
}

.macros-title {
	color: var(--primary-blue);
	font-size: 1.8rem;
	font-weight: 700;
	font-style: italic;
	margin-bottom: 30px;
	letter-spacing: -0.02em;
}

.macros-text {
	line-height: 1.8;
	color: #333;
	font-weight: 400;
	font-size: 1.05rem;
}

.examples-title {
	color: var(--primary-blue);
	font-size: 1.5rem;
	font-weight: 700;
	font-style: italic;
	margin-bottom: 30px;
	letter-spacing: -0.02em;
}

.examples-list {
	list-style: none;
	padding: 0;
}

.examples-list li {
	padding: 12px 0;
	color: #333;
	line-height: 1.6;
	font-weight: 400;
}

.examples-list li:before {
	content: "▪ ";
	color: var(--primary-blue);
	font-weight: 700;
	margin-right: 10px;
}

/* ============================================
   DOMAINS SECTION
   ============================================ */

.domains-section {
	background: var(--dark-navy);
	padding: 80px 0;
	color: white;
}

.domains-section .section-title {
	color: white;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.service-card {
	background: rgba(0, 102, 255, 0.25);
	border-radius: 8px;
	border: 2px solid rgba(0, 102, 255, 0.5);
	padding: 35px 30px;
	height: 200px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	opacity: 1;
}

.service-card .domain-icon {
	font-size: 2.5rem;
	margin-bottom: 15px;
	color: var(--primary-blue);
	font-weight: bold;
	transition: all 0.3s ease;
}

.service-card-front h4 {
	color: #FFFFFF !important;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.5;
	margin: 0;
	transition: all 0.3s ease;
}

.service-card-content {
	display: none;
}

/* Animation au survol */
.service-card:hover {
	background: var(--primary-blue);
	border-color: var(--primary-blue);
	box-shadow: 0 10px 30px rgba(0, 102, 255, 0.5);
	transform: translateY(-5px) scale(1.03);
}

.service-card:hover .domain-icon {
	transform: scale(1.1);
	color: white;
}

.service-card:hover .service-card-front h4 {
	transform: translateY(-3px);
}

/* Modal pour les services */
.service-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.service-modal.active {
	display: flex;
}

.service-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 17, 51, 0.9);
	backdrop-filter: blur(5px);
	animation: fadeIn 0.3s ease;
}

.service-modal-content {
	position: relative;
	background: var(--primary-blue);
	border-radius: 12px;
	max-width: 700px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	padding: 50px 40px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 2;
}

.service-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	font-size: 2rem;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	line-height: 1;
}

.service-modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: rotate(90deg);
}

.service-modal-body h4 {
	color: white;
	font-size: 1.8rem;
	font-weight: 700;
	font-style: italic;
	margin-bottom: 25px;
}

.service-modal-body p {
	color: rgba(255, 255, 255, 0.95);
	font-size: 1.05rem;
	line-height: 1.8;
	margin-bottom: 15px;
}

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

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

/* ============================================
   ADVANTAGES SECTION
   ============================================ */

.advantages-section {
	background: #f8f9fa;
	padding: 80px 0;
}

.advantages-list {
	list-style: none;
	padding: 0;
	margin-top: 30px;
}

.advantages-list li {
	padding: 15px 0;
	color: #333;
	line-height: 1.6;
	font-weight: 400;
	font-size: 1.05rem;
}

.advantages-list li:before {
	content: "✓ ";
	color: var(--primary-blue);
	font-weight: 700;
	margin-right: 10px;
	font-size: 1.2rem;
}

.objective-box {
	background: white;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	margin-top: 30px;
}

.objective-title {
	color: var(--primary-blue);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 20px;
}

.objective-text {
	line-height: 1.8;
	color: #333;
	margin-bottom: 15px;
	font-size: 1.05rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
	background: var(--dark-navy);
	padding: 80px 0;
	position: relative;
	overflow: hidden;
}

/* Logo section */
.footer-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: white;
}

.footer-logo-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
}

.footer-logo-icon {
	width: 50px;
	height: 50px;
	background: white;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border-radius: 3px;
	cursor: pointer;
}

.footer-logo-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Barres obliques footer */
.footer-logo-slashes {
	display: flex;
	gap: 8px;
	align-items: center;
}

.footer-slash {
	width: 8px;
	height: 35px;
	background: white;
	border-radius: 2px;
	transform: skewY(-20deg);
	opacity: 0.9;
}

.footer-slash:nth-child(2) {
	opacity: 0.7;
}

/* Contact section */
.footer-contact {
	color: white;
	text-align: right;
}

.footer-contact-title {
	color: white;
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 20px;
}

.footer-contact-info {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer-contact-item {
	margin: 0;
}

.footer-contact-name {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 8px;
	color: white;
}

.footer-contact-address {
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
}

.footer-contact-link {
	color: white;
	font-size: 1.1rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	display: inline-block;
	position: relative;
}

.footer-contact-link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: white;
	transition: width 0.3s ease;
}

.footer-contact-link:hover {
	color: white;
	transform: translateX(-5px);
}

.footer-contact-link:hover::after {
	width: 100%;
}

/* Footer geometric elements */
.footer-geometric {
	position: absolute;
	right: -50px;
	top: 50%;
	transform: translateY(-50%);
	width: 500px;
	height: 300px;
	pointer-events: none;
}

.footer-line {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	transform: skewY(-20deg);
}

.footer-line:nth-child(1) {
	width: 100px;
	height: 400px;
	right: 200px;
}

.footer-line:nth-child(2) {
	width: 100px;
	height: 400px;
	right: 50px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.footer {
		padding: 60px 0;
	}
	
	.footer-contact {
		text-align: left;
		margin-top: 40px;
	}
	
	.footer-contact-link:hover {
		transform: translateX(5px);
	}
}

@media (max-width: 768px) {
	.hero-section {
		min-height: auto;
	}

	.hero-content {
		padding: 40px 0;
	}

	.hero-blue-box {
		padding: 30px 20px;
	}

	.hero-title {
		font-size: 1.8rem;
		font-style: italic;
	}

	.hero-subtitle {
		font-size: 1rem;
	}

	.hero-image {
		display: none;
	}

	.about-image {
		min-height: 300px;
		margin-bottom: 30px;
	}

	.about-content {
		padding: 20px;
	}

	.section-title {
		font-size: 1.6rem;
	}

	.services-grid {
		grid-template-columns: 1fr;
	}

	.footer-geometric {
		display: none;
	}

	.nav-link {
		margin: 5px 0;
	}
	
	.footer-logo {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
}

@media (max-width: 576px) {
	.services-grid {
		grid-template-columns: 1fr;
	}
}

.accordion-button:not(.collapsed) { background-color:#1255A5; color:#fff;}

.accordion-button:focus {
	box-shadow: none;
	border-color: rgba(0,0,0,.125);
}
