/**
 * Chrome transversal des patterns "Landing" — jamais le contenu visuel des
 * sections (qui vit entièrement dans les attributs styles/css de chaque
 * bloc GenerateBlocks), uniquement la mécanique qui ne peut pas être portée
 * par un seul bloc : mode d'affichage des modales, accordéon FAQ, toasts
 * créés dynamiquement en JS, bouton retour en haut, et la disposition
 * responsive en zig-zag de la timeline "Processus".
 *
 * Tout est scopé sous .oueb-landing-blocks pour ne jamais affecter une autre
 * page du site.
 */

/* ---------- Modales (Cal.com, produit, valeurs) ---------- */

.oueb-landing-blocks .modal-overlay,
.oueb-landing-blocks .cal-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	z-index: 10000;
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(4px);
}
.oueb-landing-blocks .cal-modal-overlay {
	background: rgba(0, 0, 0, 0.7);
}
.oueb-landing-blocks .modal-overlay.active,
.oueb-landing-blocks .cal-modal-overlay.active {
	display: flex;
	animation: oueb-lb-fade-in 0.3s ease;
}
.oueb-landing-blocks .modal-container,
.oueb-landing-blocks .cal-modal-content {
	background: #fff;
	border-radius: 16px;
	width: 90%;
	max-width: 900px;
	max-height: 90vh;
	position: relative;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	animation: oueb-lb-slide-up 0.3s ease;
}
.oueb-landing-blocks .modal-content {
	padding: 60px 40px 40px;
	overflow-y: auto;
	max-height: 90vh;
}
.oueb-landing-blocks .modal-close,
.oueb-landing-blocks .cal-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.1);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	color: #374151;
	font-size: 24px;
	transition: all 0.2s ease;
}
.oueb-landing-blocks .modal-close:hover,
.oueb-landing-blocks .cal-modal-close:hover {
	background: rgba(0, 0, 0, 0.2);
	transform: scale(1.1);
}
.oueb-landing-blocks .modal-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
	gap: 20px;
}
.oueb-landing-blocks .modal-loader .spinner {
	width: 48px;
	height: 48px;
	border: 4px solid #e5e7eb;
	border-top-color: #003366;
	border-radius: 50%;
	animation: oueb-lb-spin 0.8s linear infinite;
}
.oueb-landing-blocks .modal-contact-message {
	text-align: center;
	padding: 60px 40px;
}
.oueb-landing-blocks .modal-contact-message h3 {
	font-size: 24px;
	margin-bottom: 12px;
}
@media (max-width: 768px) {
	.oueb-landing-blocks .modal-container,
	.oueb-landing-blocks .cal-modal-content {
		width: 95%;
		max-height: 95vh;
	}
	.oueb-landing-blocks .modal-content {
		padding: 50px 20px 20px;
	}
	.oueb-landing-blocks .modal-contact-message {
		padding: 40px 20px;
	}
}

/* ---------- Accordéon FAQ ---------- */

.oueb-landing-blocks .faq-item {
	transition: border-color 0.3s;
}
.oueb-landing-blocks .faq-item:hover {
	border-color: rgba(0, 102, 51, 0.3);
}
.oueb-landing-blocks .faq-question {
	cursor: pointer;
	transition: color 0.3s;
}
.oueb-landing-blocks .faq-question:hover {
	color: #003366;
}
.oueb-landing-blocks .faq-answer-p2 {
	color: #4b5563;
	line-height: 1.8;
	padding: 0 24px 24px;
}
.oueb-landing-blocks .faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.oueb-landing-blocks .faq-item.active .faq-answer {
	max-height: 500px;
}
.oueb-landing-blocks .faq-icon {
	display: inline-block;
	transition: transform 0.3s ease;
}
.oueb-landing-blocks .faq-item.active .faq-icon {
	transform: rotate(180deg);
}

/* ---------- Toasts (créés dynamiquement par landing-blocks.js) ---------- */

.oueb-landing-blocks #toast-container {
	position: fixed;
	top: 100px;
	right: 24px;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.oueb-landing-blocks .toast {
	background: #fff;
	border: 2px solid #e5e7eb;
	border-left: 4px solid #006633;
	border-radius: 8px;
	padding: 16px 24px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	min-width: 300px;
	animation: oueb-lb-toast-in 0.3s ease;
}
.oueb-landing-blocks .toast.success {
	border-left-color: #22c55e;
}
.oueb-landing-blocks .toast-title {
	font-weight: 700;
	margin-bottom: 4px;
	color: #111827;
}
.oueb-landing-blocks .toast-message {
	font-size: 14px;
	color: #4b5563;
}
@media (max-width: 480px) {
	.oueb-landing-blocks #toast-container {
		left: 16px;
		right: 16px;
	}
	.oueb-landing-blocks .toast {
		min-width: auto;
	}
}

/* ---------- Bouton retour en haut ---------- */

.oueb-landing-blocks #back-to-top {
	position: fixed;
	bottom: 32px;
	right: 32px;
	width: 48px;
	height: 48px;
	background: linear-gradient(to right, #003366, #006633);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
	transition: all 0.3s ease;
}
.oueb-landing-blocks #back-to-top.show {
	display: flex;
}
.oueb-landing-blocks #back-to-top:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 51, 102, 0.4);
}

/* ---------- Timeline "Processus" — survol des cartes ---------- */

.oueb-landing-blocks .timeline-content {
	transition: all 0.3s;
}
.oueb-landing-blocks .timeline-content:hover {
	border-color: rgba(0, 102, 51, 0.3);
	box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
	transform: translateY(-4px);
}

/* ---------- Timeline "Processus" — zig-zag responsive ---------- */

@media (max-width: 1024px) {
	.oueb-landing-blocks .timeline::before {
		left: 12px;
		transform: none;
	}
	.oueb-landing-blocks .timeline {
		overflow-x: hidden;
	}
	.oueb-landing-blocks .timeline-item {
		grid-template-columns: auto 1fr;
		gap: 16px;
		padding-left: 0;
	}
	.oueb-landing-blocks .timeline-content {
		width: 100%;
		max-width: calc(100vw - 100px);
		margin-left: 40px !important;
		text-align: left !important;
		grid-column: 2;
		box-sizing: border-box;
	}
	.oueb-landing-blocks .timeline-dot {
		position: absolute;
		left: 0;
		grid-column: 1;
	}
}

/* ---------- Animations partagées ---------- */

@keyframes oueb-lb-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}
@keyframes oueb-lb-bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(10px); }
}
@keyframes oueb-lb-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes oueb-lb-slide-up {
	from { transform: translateY(30px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}
@keyframes oueb-lb-spin {
	to { transform: rotate(360deg); }
}
@keyframes oueb-lb-toast-in {
	from { transform: translateX(400px); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

.oueb-landing-blocks .pulse {
	width: 8px;
	height: 8px;
	background: #22c55e;
	border-radius: 50%;
	animation: oueb-lb-pulse 2s infinite;
	display: inline-block;
}
.oueb-landing-blocks .scroll-indicator {
	animation: oueb-lb-bounce 2s infinite;
}
@media (max-width: 768px) {
	.oueb-landing-blocks .scroll-indicator {
		display: none;
	}
}

/* ---------- Survol des liens sur fond sombre (footer) ----------
   Géré ici plutôt que via l'objet styles de chaque bloc GenerateBlocks :
   la couleur de base de ces liens (blanc à faible opacité) est trop proche
   du blanc plein pour servir de couleur de survol — on utilise un accent
   menthe à fort contraste, garanti visible sur le dégradé bleu marine du
   footer, et on garde cette règle dans une seule feuille pour être sûr
   qu'elle s'applique de façon fiable. */
.oueb-landing-blocks .footer-legal-link,
.oueb-landing-blocks a.gb-element-ftr017,
.oueb-landing-blocks a.gb-element-ftr021,
.oueb-landing-blocks a.gb-element-ftr034,
.oueb-landing-blocks a.gb-element-ftr037,
.oueb-landing-blocks a.gb-element-ftr040,
.oueb-landing-blocks a.gb-element-ftr043,
.oueb-landing-blocks a.gb-element-ftr054,
.oueb-landing-blocks a.gb-element-ftr057,
.oueb-landing-blocks a.gb-element-ftr060,
.oueb-landing-blocks a.gb-element-ftr063,
.oueb-landing-blocks a.gb-element-ftr074,
.oueb-landing-blocks a.gb-element-ftr084,
.oueb-landing-blocks a.gb-element-ftr086 {
	transition: color 0.2s ease;
}
.oueb-landing-blocks .footer-legal-link {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: underline;
}
.oueb-landing-blocks .footer-legal-link:hover,
.oueb-landing-blocks a.gb-element-ftr017:hover,
.oueb-landing-blocks a.gb-element-ftr021:hover,
.oueb-landing-blocks a.gb-element-ftr034:hover,
.oueb-landing-blocks a.gb-element-ftr037:hover,
.oueb-landing-blocks a.gb-element-ftr040:hover,
.oueb-landing-blocks a.gb-element-ftr043:hover,
.oueb-landing-blocks a.gb-element-ftr054:hover,
.oueb-landing-blocks a.gb-element-ftr057:hover,
.oueb-landing-blocks a.gb-element-ftr060:hover,
.oueb-landing-blocks a.gb-element-ftr063:hover,
.oueb-landing-blocks a.gb-element-ftr074:hover,
.oueb-landing-blocks a.gb-element-ftr084:hover,
.oueb-landing-blocks a.gb-element-ftr086:hover {
	color: #a8e6cf !important;
}
.oueb-landing-blocks .gb-media-ftr091 {
	transition: opacity 0.2s ease;
}
.oueb-landing-blocks .gb-media-ftr091:hover {
	opacity: 1 !important;
}

/* ---------- Survol des boutons du Hero ---------- */

.oueb-landing-blocks .btn-hero-primary,
.oueb-landing-blocks .btn-hero-outline {
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.oueb-landing-blocks .btn-hero-primary:hover {
	background: linear-gradient(to right, #002244, #004422) !important;
	box-shadow: 0 10px 25px rgba(0, 51, 102, 0.3);
	transform: translateY(-2px);
}
.oueb-landing-blocks .btn-hero-outline:hover {
	background: #ffffff !important;
	color: #003366 !important;
}
.oueb-landing-blocks .hero-badge-link {
	color: #ffffff;
	text-decoration: none;
	transition: text-decoration 0.2s ease;
}
.oueb-landing-blocks .hero-badge-link:hover {
	text-decoration: underline;
}

/* ---------- Survol des cartes (Problem, Solution, Products...) ----------
   Règle générique réutilisée par toutes les sections en grille de cartes. */
.oueb-landing-blocks .card-hover {
	transition: all 0.3s ease;
}
.oueb-landing-blocks .card-hover:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
	border-color: rgba(0, 102, 51, 0.3);
}
.oueb-landing-blocks .icon-box-gradient {
	transition: transform 0.3s;
}
.oueb-landing-blocks .card-hover:hover .icon-box-gradient {
	transform: scale(1.1);
}

/* ---------- Liens flèche (ex: "Découvrez comment...") ---------- */
.oueb-landing-blocks .link-arrow {
	transition: color 0.2s ease;
}
.oueb-landing-blocks .link-arrow:hover {
	color: #006633;
}
.oueb-landing-blocks .link-underline {
	transition: color 0.3s;
}
.oueb-landing-blocks .link-underline:hover {
	color: #006633;
}

/* ---------- Bloc formulaire de contact ---------- */
.oueb-landing-blocks .contact-form-container {
	transition: all 0.3s ease;
}
.oueb-landing-blocks .contact-form-container:hover {
	border-color: rgba(0, 102, 51, 0.2);
	box-shadow: 0 20px 40px rgba(0, 51, 102, 0.1);
	transform: translateY(-4px);
}

/* ---------- Bouton "ghost" (cartes produits) ---------- */
.oueb-landing-blocks .btn-ghost {
	cursor: pointer;
	transition: all 0.3s ease;
}
.oueb-landing-blocks .btn-ghost:hover {
	background: rgba(0, 51, 102, 0.05);
}
