/*
 * Styles du site public (hors connexion) : accueil et pages produit
 * /site/optimap, /site/map-pilot, /site/map-engine.
 * Charge apres Bootstrap 5 ; ne s'applique qu'aux pages portant .op-landing-body.
 */

:root {
	--op-ink: #112f56;
	--op-teal: #2ba86b;
	--op-sky: #4f80bd;
	--op-sun: #ffd245;
	--op-coral: #e5533d;
	--op-card: #ffffff;
	--op-bg: #f7fbff;
}

body.op-landing-body {
	font-family: "Manrope", sans-serif;
	color: var(--op-ink);
	background:
		radial-gradient(circle at 8% 11%, rgba(43, 168, 107, 0.2), transparent 32%),
		radial-gradient(circle at 88% 16%, rgba(79, 128, 189, 0.2), transparent 36%),
		radial-gradient(circle at 75% 72%, rgba(255, 210, 69, 0.16), transparent 35%),
		linear-gradient(165deg, #fbfdff 0%, #edf5ff 52%, #f7fbff 100%);
	min-height: 100vh;
	/* Pas d'overflow sur body : le debordement horizontal des decorations est
	   clippe sur .op-shell, un overflow non-visible ici creerait un second
	   conteneur de scroll. */
}

.op-shell {
	position: relative;
	isolation: isolate;
	/* clip (et non hidden) : coupe les decorations qui depassent a droite et
	   a gauche sans creer de conteneur de scroll. */
	overflow-x: clip;
}

.op-shell::before,
.op-shell::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 999px;
	filter: blur(2px);
}

.op-shell::before {
	width: 320px;
	height: 320px;
	background: rgba(255, 210, 69, 0.24);
	top: 120px;
	right: -120px;
}

.op-shell::after {
	width: 260px;
	height: 260px;
	background: rgba(79, 128, 189, 0.17);
	bottom: 40px;
	left: -110px;
}

/* ------------------------------------------------------------------ nav */

.op-navbar {
	padding-top: 1.1rem;
	padding-bottom: 1.1rem;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(79, 128, 189, 0.2);
	box-shadow: 0 10px 24px rgba(17, 47, 86, 0.07);
}

.op-navbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.op-navbar .nav-link {
	font-weight: 700;
	color: #2f588d;
}

.op-navbar .nav-link:hover,
.op-navbar .nav-link:focus {
	color: var(--op-teal);
}

.op-navbar .nav-link.active {
	color: var(--op-teal);
}

.op-navbar .navbar-toggler {
	border: 1px solid rgba(79, 128, 189, 0.35);
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.7rem;
	line-height: 1;
}

.op-navbar .navbar-toggler:focus {
	box-shadow: 0 0 0 0.2rem rgba(79, 128, 189, 0.2);
}

.op-navbar .navbar-toggler .navbar-toggler-icon {
	display: block;
	width: 1.35rem;
	height: 1.35rem;
}

.op-navbar::after {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(90deg, var(--op-teal), var(--op-sky), var(--op-sun), var(--op-coral));
}

.op-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: "Sora", sans-serif;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--op-ink);
	text-decoration: none;
}

.op-brand span {
	line-height: 1.05;
}

.op-brand img {
	height: 38px;
	width: auto;
	display: block;
}

/* ----------------------------------------------------------------- hero */

.op-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	background-color: #e9f7ef;
	color: var(--op-ink);
}

.op-pill.op-pill-sky {
	background-color: #e8f0fa;
}

.op-pill.op-pill-sun {
	background-color: #fff4c8;
}

.op-hero-title {
	font-family: "Sora", sans-serif;
	font-size: clamp(2rem, 5vw, 3.3rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.op-hero-title .highlight {
	color: var(--op-teal);
}

.op-hero-title .highlight-sky {
	color: var(--op-sky);
}

.op-hero-title .highlight-coral {
	color: var(--op-coral);
}

.op-lead {
	font-size: 1.08rem;
	max-width: 58ch;
	color: #355c8c;
}

/* -------------------------------------------------------------- boutons */

.op-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.8rem 1.3rem;
	border-radius: 0.85rem;
	text-decoration: none;
	font-weight: 700;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.op-button-main {
	background: linear-gradient(135deg, #2ba86b, #2f79ba);
	color: #082114;
	box-shadow: 0 12px 28px rgba(47, 121, 186, 0.3);
}

.op-button-soft {
	background: #fff4c8;
	color: #5f3f00;
	border: 1px solid rgba(255, 210, 69, 0.55);
}

.op-button-outline {
	background: transparent;
	color: #2f588d;
	border: 1px solid rgba(79, 128, 189, 0.45);
}

.op-button:hover {
	transform: translateY(-2px);
}

.op-icon {
	font-size: 1rem;
	line-height: 1;
	vertical-align: middle;
}

/* --------------------------------------------------------------- cartes */

.op-stat-card,
.op-feature-card,
.op-product-card,
.op-pricing-card {
	background: var(--op-card);
	border: 1px solid rgba(79, 128, 189, 0.22);
	border-radius: 1rem;
	box-shadow: 0 14px 38px rgba(23, 67, 116, 0.1);
}

.op-stat-card {
	padding: 1.2rem;
}

.op-feature-card {
	padding: 1.4rem;
	height: 100%;
}

.op-feature-icon {
	font-size: 1.25rem;
	color: var(--op-sky);
}

.op-section-title {
	font-family: "Sora", sans-serif;
	font-weight: 700;
	font-size: clamp(1.4rem, 2.8vw, 2rem);
}

/* ------------------------------------------------------- cartes produit */

.op-product-card {
	padding: 1.8rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	border-top: 4px solid var(--op-teal);
}

.op-product-card.op-product-mappilot {
	border-top-color: var(--op-sky);
}

.op-product-card.op-product-mapengine {
	border-top-color: var(--op-coral);
}

.op-product-card .op-product-icon {
	font-size: 2rem;
	color: var(--op-teal);
}

.op-product-card.op-product-mappilot .op-product-icon {
	color: var(--op-sky);
}

.op-product-card.op-product-mapengine .op-product-icon {
	color: var(--op-coral);
}

.op-product-card h3 {
	font-family: "Sora", sans-serif;
	font-weight: 700;
}

.op-product-card .op-product-link {
	margin-top: auto;
}

/* --------------------------------------------------------------- tarifs */

.op-pricing-card {
	padding: 1.8rem;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.op-pricing-card.popular {
	border-color: rgba(43, 168, 107, 0.6);
	box-shadow: 0 18px 42px rgba(43, 168, 107, 0.24);
}

.op-pricing-card.popular::before {
	content: "Le plus choisi";
	position: absolute;
	top: 0.8rem;
	right: -2.2rem;
	background: var(--op-coral);
	color: #fff;
	padding: 0.25rem 2.6rem;
	font-size: 0.74rem;
	font-weight: 700;
	transform: rotate(35deg);
}

.op-price {
	font-family: "Sora", sans-serif;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
}

.op-tier-badge {
	display: inline-block;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: rgba(79, 128, 189, 0.12);
	color: #2f588d;
}

.op-pricing-group {
	margin-top: 2.5rem;
}

.op-pricing-group:first-of-type {
	margin-top: 0;
}

.op-pricing-group-title {
	font-family: "Sora", sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.op-pricing-group-title .material-icons {
	color: var(--op-sky);
}

/* ------------------------------------------------------- pages legales */

.op-legal-card {
	background: var(--op-card);
	border: 1px solid rgba(79, 128, 189, 0.22);
	border-radius: 1rem;
	box-shadow: 0 14px 38px rgba(23, 67, 116, 0.1);
	padding: clamp(1.4rem, 4vw, 2.6rem);
	max-width: 900px;
	margin: 0 auto;
}

.op-legal-card h2 {
	font-family: "Sora", sans-serif;
	font-weight: 700;
	font-size: 1.25rem;
	margin-top: 2rem;
}

.op-legal-card h2:first-of-type {
	margin-top: 0;
}

.op-legal-card h3 {
	font-family: "Sora", sans-serif;
	font-weight: 700;
	font-size: 1.02rem;
	margin-top: 1.4rem;
}

.op-legal-card p,
.op-legal-card li {
	color: #35507a;
	line-height: 1.65;
}

.op-legal-card ul {
	padding-left: 1.2rem;
}

.op-legal-card table {
	width: 100%;
}

.op-legal-updated {
	font-size: 0.88rem;
	color: #5c7598;
}

/* Champ a completer par l'editeur (coordonnees, DPO...) : mis en evidence
   pour ne pas etre oublie avant publication. */
.op-placeholder {
	background: #fff4c8;
	border: 1px dashed rgba(255, 210, 69, 0.9);
	border-radius: 0.35rem;
	padding: 0 0.35rem;
	font-style: italic;
}

/* -------------------------------------------- formulaire de contact */

.op-contact-card {
	background: var(--op-card);
	border: 1px solid rgba(79, 128, 189, 0.22);
	border-radius: 1rem;
	box-shadow: 0 14px 38px rgba(23, 67, 116, 0.1);
	padding: clamp(1.4rem, 4vw, 2.6rem);
	max-width: 860px;
	margin: 0 auto;
}

.op-contact-card .form-label {
	font-weight: 700;
	color: #2f588d;
	margin-bottom: 0.35rem;
}

.op-contact-card .form-control {
	border-color: rgba(79, 128, 189, 0.35);
	border-radius: 0.65rem;
}

.op-contact-card .form-control:focus {
	border-color: var(--op-sky);
	box-shadow: 0 0 0 0.2rem rgba(79, 128, 189, 0.15);
}

/* Tuile cliquable d'un module : la checkbox native reste visible (accessibilite),
   la tuile entiere est la zone de clic. */
.op-module-tile {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	border: 1px solid rgba(79, 128, 189, 0.25);
	border-radius: 0.75rem;
	padding: 0.8rem 1rem;
	cursor: pointer;
	background: #ffffff;
	font-weight: 700;
	color: #2f588d;
	margin-bottom: 0;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.op-module-tile:hover {
	border-color: var(--op-sky);
}

.op-module-tile:has(input:checked) {
	border-color: var(--op-teal);
	background: rgba(43, 168, 107, 0.08);
}

.op-module-tile input {
	margin: 0;
}

/* Pot de miel anti-spam : hors ecran, jamais display:none (certains robots
   sautent les champs invisibles au sens CSS strict). */
.op-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------- misc */

.op-muted {
	color: #5c7598;
}

.op-checklist {
	padding-left: 0;
	list-style: none;
}

.op-checklist li {
	display: flex;
	gap: 0.55rem;
	margin-bottom: 0.55rem;
}

.op-checklist .material-icons {
	color: var(--op-teal);
}

.op-footer {
	border-top: 1px solid rgba(79, 128, 189, 0.2);
	margin-top: 2rem;
}

.op-footer a {
	color: #2f588d;
	font-weight: 700;
	text-decoration: none;
}

.op-footer a:hover {
	color: var(--op-teal);
}

.op-reveal {
	opacity: 0;
	transform: translateY(14px);
	animation: opFade 0.55s ease forwards;
}

.op-delay-1 {
	animation-delay: 0.08s;
}

.op-delay-2 {
	animation-delay: 0.16s;
}

.op-delay-3 {
	animation-delay: 0.24s;
}

@keyframes opFade {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 991.98px) {
	.op-navbar {
		padding-top: 0.7rem;
		padding-bottom: 0.7rem;
		background: #ffffff;
		backdrop-filter: none;
	}

	.op-navbar .container {
		min-height: 52px;
	}

	.op-brand {
		gap: 0.6rem;
		font-size: 1.03rem;
	}

	.op-brand img {
		height: 34px;
	}

	.op-navbar .navbar-toggler {
		display: inline-flex;
		height: 2.45rem;
		min-width: 2.9rem;
	}

	.op-navbar .navbar-collapse {
		background: #ffffff;
		backdrop-filter: none;
		border: 1px solid rgba(79, 128, 189, 0.25);
		border-radius: 0.75rem;
		margin-top: 0.8rem;
		padding: 0.9rem;
		position: static;
		width: 100%;
		flex-basis: 100%;
		box-shadow: 0 14px 34px rgba(17, 47, 86, 0.18);
	}

	.op-navbar .navbar-nav {
		align-items: stretch !important;
		gap: 0.45rem;
	}

	.op-navbar .nav-link {
		padding: 0.6rem 0.75rem;
		border-radius: 0.65rem;
	}

	.op-navbar .nav-link:hover,
	.op-navbar .nav-link:focus {
		background: rgba(79, 128, 189, 0.1);
	}

	.op-navbar .navbar-nav .op-button {
		width: 100%;
	}
}

@media (max-width: 767.98px) {
	.op-shell::before {
		width: 240px;
		height: 240px;
		right: -120px;
	}

	.op-shell::after {
		width: 200px;
		height: 200px;
		left: -100px;
	}

	.op-pill {
		font-size: 0.78rem;
	}

	.op-lead {
		font-size: 0.98rem;
	}

	.op-hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.op-hero-actions .op-button {
		width: 100%;
	}

	.op-stat-card {
		padding: 1rem;
	}

	.op-pricing-card.popular::before {
		right: -2.6rem;
	}
}

@media (max-width: 575.98px) {
	.op-navbar .container {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.op-brand {
		gap: 0.45rem;
		font-size: 0.96rem;
	}

	.op-brand img {
		height: 30px;
	}

	.op-navbar .navbar-toggler {
		height: 2.3rem;
		min-width: 2.7rem;
		padding: 0.45rem 0.6rem;
	}

	header.container,
	section.container,
	footer.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	header.container {
		padding-top: 2.2rem !important;
		padding-bottom: 2rem !important;
	}

	.op-hero-title {
		font-size: clamp(1.8rem, 8vw, 2.2rem);
		line-height: 1.1;
	}

	.op-section-title {
		font-size: 1.28rem;
	}
}

@media (max-width: 400px) {
	.op-brand {
		font-size: 0.9rem;
	}

	header.container {
		padding-top: 1.8rem !important;
	}

	.op-pill {
		padding-left: 0.7rem;
		padding-right: 0.7rem;
	}
}
