/* Chrome Organilog Paysage — sticky wrapper + overrides (repris d'organilog-core 3D) */
/* ---- Sticky wrapper (topbar + header glued together) ---- */
.org-sticky-chrome {
    position: sticky;
    top: 0;
    z-index: 1000;
}
/* Neutralise theme's own sticky on .site-header — wrapper owns it now */
.org-sticky-chrome .site-header {
    position: static;
    box-shadow: none;
}
/* ============================================================
 * Overrides CSS — corrige les styles du thème actif pour aligner
 * les CTA et le menu mobile sur les demandes UX de Matteo.
 * ============================================================ */

/* ── 0. Sticky CTA thème — visible sur les articles ─────────── */

/* ── 1. Sticky CTA plugin — bandeau full-width en bas d'écran ─
 * Style adapté de fr.organilog.com (bandeau plein largeur, texte + note
 * Google en dessous). Couleurs vert Paysage.
 */
.org-sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	transform: translateY(105%);
	transition: transform .35s ease, box-shadow .2s ease, background .25s ease;
	background: linear-gradient(135deg, #46D691 0%, #2FBF86 100%);
	color: #FFFFFF !important;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	text-decoration: none !important;
	padding: 12px 18px 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	box-shadow:
		0 -8px 30px rgba(70, 214, 145, 0.40),
		0 -2px 8px rgba(0, 0, 0, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.org-sticky-cta.is-visible {
	transform: translateY(0);
}
.org-sticky-cta:hover,
.org-sticky-cta:focus-visible {
	background: linear-gradient(135deg, #38B87A 0%, #2AA872 100%);
	color: #FFFFFF !important;
}

.org-sticky-cta__main {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1.2;
}
.org-sticky-cta__arrow {
	font-weight: 900;
	font-size: 18px;
	line-height: 1;
	transition: transform .2s ease;
}
.org-sticky-cta:hover .org-sticky-cta__arrow {
	transform: translateX(4px);
}

.org-sticky-cta__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.92) !important;
}
.org-sticky-cta__stars {
	color: #FBBC04;
	letter-spacing: 1px;
	font-size: 13px;
}

/* Desktop (>= 900px) : on masque, le CTA header dans le menu suffit */
@media (min-width: 900px) {
	.org-sticky-cta { display: none !important; }
}

/* Mobile : padding en bas du body pour ne pas cacher le contenu */
@media (max-width: 899px) {
	body:not(.o3d-demo-landing) { padding-bottom: 80px; }
}

/* ── 1.b Menu mobile — CTA "Demander une démo" ───────────────
 * Le dernier item du menu déroulé est le CTA principal.
 * On le met en avant : bouton vert plein largeur, ombre, majuscules.
 */
@media (max-width: 900px) {
	.main-nav .mobile-cta-wrap {
		display: list-item !important;
		list-style: none;
		padding: 18px 20px 22px !important;
		border-top: 1px solid #eef0f4;
		border-bottom: none !important;
		background: #fff !important;
		margin-top: 8px;
	}
	.main-nav .mobile-cta,
	.main-nav .mobile-cta:link,
	.main-nav .mobile-cta:visited {
		display: block !important;
		padding: 15px 20px !important;
		background: linear-gradient(135deg, #46D691 0%, #2FBF86 100%) !important;
		color: #FFFFFF !important;
		font-weight: 800 !important;
		font-size: 15px !important;
		letter-spacing: 0.05em !important;
		text-transform: uppercase !important;
		text-align: center !important;
		text-decoration: none !important;
		border-radius: 10px !important;
		border: none !important;
		width: 100% !important;
		box-sizing: border-box !important;
		box-shadow: 0 8px 20px rgba(70, 214, 145, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
		transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
	}
	.main-nav .mobile-cta:hover,
	.main-nav .mobile-cta:focus {
		background: linear-gradient(135deg, #38B87A 0%, #2AA872 100%) !important;
		color: #FFFFFF !important;
		transform: translateY(-1px) !important;
		box-shadow: 0 12px 26px rgba(70, 214, 145, 0.45), 0 3px 8px rgba(0, 0, 0, 0.15) !important;
	}
	.main-nav .mobile-cta::after {
		content: '  →';
		font-weight: 900;
	}
}

/* ── 2. Menu mobile (dropdown hamburger) ─────────────────────
 * Fond blanc par défaut (pas vert) sur les items du menu déroulé.
 * Texte foncé par défaut.
 * Effet vert clair seulement au tap / hover / focus.
 */
@media (max-width: 900px) {

	/* Header + main-nav dropdown : fond blanc pur */
	.main-nav,
	.main-nav > li,
	.main-nav > li > a,
	.mega-menu,
	.mega-menu.mega-menu--compact,
	.mega-menu-grid {
		background: #FFFFFF !important;
	}

	/* Item de niveau 1 (les libellés type "Fonctionnalités", "Ressources"…)
	   Défaut : texte foncé. Ouvert (sub-open) : texte foncé toujours. */
	.main-nav > li > a,
	.main-nav > li.has-mega.sub-open > a {
		color: #213140 !important;
		background: #FFFFFF !important;
	}

	/* Chevron de l'item ouvert : reste discret */
	.main-nav > li.has-mega.sub-open > a::after {
		border-color: #213140 !important;
	}

	/* Items du mega-menu (sous-items) : fond blanc, texte foncé */
	.mega-menu-item {
		background: #FFFFFF !important;
	}
	.mega-menu-item h4,
	.mega-menu-item .mega-menu-text h4 {
		color: #213140 !important;
	}
	.mega-menu-item p,
	.mega-menu-item .mega-menu-text p {
		color: #5A6B7B !important;
	}

	/* Effet HOVER / TAP / FOCUS — c'est ICI qu'on ajoute le vert */
	.main-nav > li > a:hover,
	.main-nav > li > a:focus,
	.main-nav > li > a:active,
	.mega-menu-item:hover,
	.mega-menu-item:focus,
	.mega-menu-item:active {
		background: rgba(70, 214, 145, 0.10) !important;
		color: #46D691 !important;
	}
	.mega-menu-item:hover h4,
	.mega-menu-item:focus h4,
	.mega-menu-item:active h4 {
		color: #46D691 !important;
	}
}

/* ── 3. Footer vert Paysage ─────────────────────────────────
 * Fond vert (déclinaison foncée de #46D691 pour garder le texte blanc lisible).
 */
.site-footer {
	background: linear-gradient(135deg, #1E8A5A 0%, #146B45 100%);
	color: rgba(255,255,255,0.9);
}
.footer-brand p,
.footer-contact-row,
.footer-col a { color: rgba(255,255,255,0.85); }
.footer-col h4 { color: #fff; }
.footer-col a:hover,
.footer-contact-row a:hover { color: #fff; text-decoration: underline; }
.footer-cta-btn { background: #fff; color: #146B45; border-color: #fff; font-weight: 700; }
.footer-cta-btn:hover { background: #E8F8F0; color: #146B45; border-color: #E8F8F0; }
.footer-link-special a { background: rgba(255,255,255,0.14); color: #fff; }
.footer-link-special a:hover { background: #fff; color: #146B45; }
.footer-social { background: rgba(255,255,255,0.14); color: #fff; }
.footer-social:hover { background: #fff; color: #146B45; }
.footer-ecosystem { border-color: rgba(255,255,255,0.2); }
.footer-ecosystem a,
.footer-ecosystem-label { color: rgba(255,255,255,0.75); }
.footer-ecosystem a:hover { color: #fff; }
.footer-ecosystem-sep { color: rgba(255,255,255,0.4); }
.footer-bottom { border-color: rgba(255,255,255,0.2); }
.footer-bottom,
.footer-bottom p,
.footer-bottom a { color: rgba(255,255,255,0.75); }

/* Ancres de l'accueil sous le header sticky */
.gi-section[id] { scroll-margin-top: 96px; }
