/* VENEXT Custom Styles - Refonte 7 blocs */

/* Override landing background - hero has its own */
body.landing #page-wrapper {
	background-image: none !important;
	background-color: var(--venext-green);
}

body.is-mobile.landing #banner,
body.is-mobile.landing .wrapper.style4 {
	background-image: none !important;
}

:root {
	--venext-green: #075E54;
	--venext-light-green: #00A884;
	--venext-yellow: #FFC107;
	--venext-neutral: #F5F5F5;
	--header-element-height: 3.2em;
	--header-logo-height: 40px; /* Même taille que les boutons au niveau layout */
	--header-btn-height: 40px; /* Boutons compacts */
	--header-height: 60px; /* Header réduit */
}

/* Header — compact, logo centré */
#header {
	height: var(--header-height);
	line-height: var(--header-height);
}

#header h1 {
	left: 0 !important;
	padding-left: 0.75em;
	height: 100%;
	display: flex;
	align-items: center;
}

#header h1 a {
	display: flex;
	align-items: center;
	height: 100%;
}

#header.alt h1 {
	opacity: 1 !important;
	pointer-events: auto !important;
}

#header h1 a .header-logo,
#header .header-logo {
	height: var(--header-logo-height) !important;
	min-height: var(--header-logo-height) !important;
	width: auto !important;
	object-fit: contain;
	flex-shrink: 0;
	/* Même hauteur que les boutons (52px) */
	filter: brightness(0) invert(1);
	display: block;
}


/* Hero avec vidéo / image background */
.venext-hero {
	position: relative;
	overflow: hidden;
}

.venext-hero .hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.venext-hero .hero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.venext-hero .hero-bg-image {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
}

.venext-hero .hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(7, 94, 84, 0.7) 0%, rgba(7, 94, 84, 0.9) 100%);
	z-index: 1;
}

.venext-hero .inner,
.venext-hero .more {
	position: relative;
	z-index: 2;
}

.venext-hero .hero-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 0.5em;
}

.venext-hero .hero-brand-title {
	font-size: 2em;
	font-weight: 800;
	letter-spacing: 0.2em;
}

.venext-hero .hero-brand-signature {
	font-size: 0.85em;
	opacity: 0.9;
	letter-spacing: 0.15em;
}

.venext-hero .hero-slogan {
	color: var(--venext-yellow) !important;
	font-size: 1.1em;
	letter-spacing: 0.2em;
	text-transform: none;
	margin-bottom: 0.75em;
}

.venext-hero .hero-desc {
	max-width: 40em;
	margin-left: auto;
	margin-right: auto;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.7;
}

.venext-hero .button.primary {
	background-color: var(--venext-light-green);
	border-color: var(--venext-light-green);
	color: #fff;
}

.venext-hero .button.primary:hover {
	background-color: #00c494;
	border-color: #00c494;
}

/* Fallback si vidéo non supportée */
.no-video .venext-hero .hero-video {
	display: none;
}

.no-video .venext-hero .hero-bg-image {
	display: block !important;
}

/* Sections VENEXT - structure commune */
.venext-section {
	padding: 5em 0;
}

.venext-row {
	display: flex;
	align-items: center;
	gap: 3em;
	max-width: 70em;
	margin: 0 auto;
	padding: 0 2em;
}

.venext-row-reverse {
	flex-direction: row-reverse;
}

.venext-image {
	flex: 0 0 45%;
}

.venext-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

.venext-content {
	flex: 1;
	min-width: 0;
}

.venext-content h2 {
	margin-bottom: 0.75em;
}

.venext-content p {
	margin-bottom: 1em;
}

/* BLOC 2 - Image gauche, texte droite */
.venext-image-left .venext-row {
	flex-direction: row;
}

/* Masquer la zone du logo superposé : afficher uniquement la partie gauche (icônes) de l'image */
.venext-image-left .venext-image {
	overflow: hidden;
	border-radius: 8px;
	flex: 0 0 38%;
}

.venext-image-left .venext-image img {
	object-fit: cover;
	object-position: left center;
	/* Recadrage pour exclure la zone où logo et texte se chevauchent dans l'image */
}

/* Zone de contenu bien séparée, fond semi-opaque pour lisibilité */
.venext-image-left .venext-content {
	background: rgba(7, 94, 84, 0.03);
	padding: 2em;
	border-radius: 8px;
	border-left: 3px solid var(--venext-light-green);
}

/* BLOC 5 - Image droite, texte gauche */
.venext-image-right .venext-row-reverse .venext-image {
	order: 2;
}

.venext-image-right .venext-row-reverse .venext-content {
	order: 1;
}

.venext-list {
	list-style: none;
	padding: 0;
	margin: 1em 0;
}

.venext-list li {
	position: relative;
	padding-left: 1.5em;
	margin-bottom: 0.5em;
}

.venext-list li:before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--venext-light-green);
	font-weight: 700;
}

/* BLOC 3 - Architecture centre */
.venext-center .inner {
	max-width: 60em;
}

.venext-architecture {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2em;
	margin-top: 2em;
}

.venext-arch-image {
	width: 100%;
	max-width: 28em;
}

.venext-arch-image img {
	width: 100%;
	height: auto;
	display: block;
}

.venext-arch-levels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5em;
	width: 100%;
	max-width: 50em;
}

.arch-level {
	text-align: center;
	padding: 1.25em;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.arch-level h3 {
	font-size: 0.95em;
	margin-bottom: 0.5em;
}

.arch-level p {
	margin: 0;
	font-size: 0.9em;
	opacity: 0.9;
}

/* Boutons header — même taille pour Accéder à l'app et FR */
#header nav > ul {
	display: flex;
	align-items: center;
	height: 100%;
}

#header nav > ul > li {
	vertical-align: middle;
}

#header .venext-app-btn,
#header .language-switch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: var(--header-btn-height);
	line-height: 1;
	padding: 0 1em;
	margin: 0 0.25em;
	font-size: 0.78em;
	letter-spacing: 0.15em;
	text-decoration: none;
	vertical-align: middle;
}

#header .venext-app-btn {
	background-color: var(--venext-light-green);
	border: none;
	box-shadow: none;
	color: #fff !important;
}

#header .venext-app-btn:hover {
	background-color: #00c494;
	color: #fff !important;
}

#header .language-switch {
	background-color: transparent;
	box-shadow: inset 0 0 0 2px #fff;
}

#header .language-switch:hover {
	background-color: rgba(255, 255, 255, 0.15);
}

/* BLOC 4 - Plateforme */
.venext-platform {
	background-color: var(--venext-neutral) !important;
	color: #333 !important;
}

/* Boutons plateforme (Web app + stores) */
.venext-platform-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1em;
	margin-top: 2.5em;
	padding-top: 2em;
	border-top: 1px solid rgba(7, 94, 84, 0.15);
}

.venext-platform-buttons .button.primary {
	background-color: var(--venext-light-green);
	border-color: var(--venext-light-green);
	color: #fff;
}

.venext-platform-buttons .button.primary:hover {
	background-color: #00c494;
	border-color: #00c494;
}

.venext-app-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.6em 1.2em;
	border-radius: 8px;
	font-size: 0.9em;
	font-weight: 600;
}

.venext-app-badge .store-icon {
	width: 1.5em;
	height: 1.5em;
}

.venext-app-coming-soon {
	background: rgba(7, 94, 84, 0.12);
	color: #666;
	cursor: not-allowed;
	border: 1px dashed rgba(7, 94, 84, 0.3);
}

.venext-platform h2,
.venext-platform h3 {
	color: var(--venext-green) !important;
}

.venext-platform p {
	color: #444 !important;
}

.venext-platform-inner .major {
	margin-bottom: 2em;
}

.venext-platform-row {
	flex-direction: column;
}

.venext-platform-devices {
	width: 100%;
	max-width: 35em;
	margin: 0 auto 2em;
}

.venext-platform-devices img {
	width: 100%;
	height: auto;
}

.venext-platform-text {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2em;
}

.platform-item {
	padding: 1.5em;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(7, 94, 84, 0.08);
}

.platform-item h3 {
	color: var(--venext-green) !important;
	margin-bottom: 0.5em;
	font-size: 1.1em;
}

.platform-item p {
	margin: 0;
	font-size: 0.95em;
}

/* BLOC 5 - fond alterné */
.venext-image-right {
	background-color: var(--venext-neutral) !important;
	color: #333 !important;
}

.venext-image-right h2 {
	color: var(--venext-green) !important;
}

.venext-image-right p,
.venext-image-right .venext-list li {
	color: #444 !important;
}

/* BLOC 6 - Intelligence */
.venext-intelligence .venext-row {
	flex-direction: row;
}

.venext-intelligence-visual {
	flex: 0 0 42%;
}

.venext-intelligence-visual img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* CTA */
.venext-cta .button.primary {
	background-color: var(--venext-light-green);
	border-color: var(--venext-light-green);
	color: #fff;
}

.venext-cta .button.primary:hover {
	background-color: #00c494;
	border-color: #00c494;
}

/* Responsive */
@media (max-width: 980px) {
	.venext-row,
	.venext-row-reverse {
		flex-direction: column !important;
	}

	.venext-image {
		flex: none;
		width: 100%;
		max-width: 28em;
		margin: 0 auto;
	}

	.venext-arch-levels {
		grid-template-columns: 1fr;
	}

	.venext-intelligence .venext-row {
		flex-direction: column !important;
	}

	.venext-intelligence-visual {
		flex: none;
		width: 100%;
	}
}

@media (max-width: 736px) {
	.venext-section {
		padding: 3em 0;
	}

	.venext-row {
		padding: 0 1em;
		gap: 2em;
	}

	.venext-platform-buttons {
		flex-direction: column;
	}

	.venext-hero .hero-brand-title {
		font-size: 1.5em;
	}

	.venext-hero .hero-slogan {
		font-size: 0.95em;
	}

	.platform-item {
		padding: 1em;
	}
}

/* Détection vidéo - fallback automatique */
@supports not (object-fit: cover) {
	.venext-hero .hero-video {
		display: none;
	}

	.venext-hero .hero-bg-image {
		display: block !important;
	}
}

/* Logo header — forcer la taille (haute spécificité) */
body #header h1 a img.header-logo,
body #header img.header-logo {
	height: 65px !important; /* Plus grand que 40px pour compenser les marges, sans utiliser scale */
	min-height: 65px !important;
	max-height: 65px !important;
	transform: none !important; /* Annuler le scale qui causait le chevauchement */
	width: auto !important;
	max-width: 250px; /* Limite sur desktop */
}

/* Optimisation mobile pour éviter le chevauchement (iPhone XR, etc) */
@media (max-width: 736px) {
	body #header h1 a img.header-logo,
	body #header img.header-logo {
		height: 50px !important;
		min-height: 50px !important;
		max-height: 50px !important;
		max-width: 45vw !important; /* Le logo ne prendra jamais plus de la moitié de l'écran */
		object-fit: contain;
		object-position: left center;
	}

	/* Réduire la taille du bouton Accéder à l'app sur mobile pour faire de la place */
	#header .venext-app-btn {
		padding: 0 0.6em;
		letter-spacing: 0.05em;
		font-size: 0.7em;
	}
	
	#header .language-switch {
		padding: 0 0.6em;
	}
}
