/*
 * Page d'accueil marketing (fusion avec home.component.html de l'app Angular).
 * Couleurs alignées sur les variables déjà définies dans style.css :
 *   - "primary" ci-dessous = --secondary de style.css (#124d66, bleu foncé)
 *   - "secondary/accent" ci-dessous = --primary de style.css (#34b4e9, cyan)
 * Les boutons .btn-primary / .btn-outline-dark réutilisent tels quels les
 * styles déjà définis dans style.css pour rester cohérents avec le reste du site.
 */

/* ── Header ─────────────────────────────────────────────────────────────── */

.home-header {
	background: #fff;
	border-bottom: 1px solid #e8ecef;
	box-shadow: 0 1px 4px rgba(18, 77, 102, 0.06);
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 16px 0;
}

/* style.css contient un vieux `header:before`/`header:after` (menu mobile
   hérité, jamais utilisé par l'ancien index.php qui n'avait pas de balise
   <header>) qui pose un masque blanc plein écran sous 991px et cache tout
   le contenu du header. On neutralise ces pseudo-éléments hérités ici. */
.home-header:before,
.home-header:after {
	content: none;
	display: none;
}

/* propriétés flex déclarées ici en plus des classes utilitaires .d-flex /
   .align-items-center / .justify-content-between, pour que la mise en page
   du header ne dépende pas uniquement de ces classes génériques */
.home-header .home-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	height: auto;
	min-height: 64px;
}

.home-header .home-logo {
	height: 60px;
	width: auto;
	flex-shrink: 0;
}

.home-header .home-login-btn {
	font-weight: 600;
	font-size: 1rem;
	padding: 8px 20px;
	border-radius: 6px;
	flex-shrink: 0;
	white-space: nowrap;
}

@media (max-width: 400px) {
	.home-header .home-logo {
		height: 44px;
	}

	.home-header .home-login-btn {
		padding: 6px 14px;
		font-size: 0.9rem;
	}
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero-section {
	background: #fff;
	padding: 56px 0 72px;
}

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

@media (max-width: 991px) {
	.hero-content {
		padding-right: 0;
		text-align: center;
	}
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	max-width: 100%;
	gap: 6px;
	background: #eaf6fc;
	color: #124d66;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 24px;
	letter-spacing: 0.02em;
}

.hero-badge .hero-badge-icon {
	font-size: 0.95rem;
	color: #34b4e9;
}

.hero-title {
	font-size: 3.1rem;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.2;
	margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
	.hero-title {
		font-size: 2.3rem;
	}
}

.hero-highlight {
	color: #34b4e9;
}

.hero-description {
	font-size: 1.2rem;
	color: #555;
	line-height: 1.65;
	margin-bottom: 2rem;
	max-width: 520px;
}

@media (max-width: 991px) {
	.hero-description {
		margin-left: auto;
		margin-right: auto;
	}
}

.hero-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

@media (max-width: 991px) {
	.hero-actions {
		justify-content: center;
	}
}

.hero-actions .hero-cta-main,
.hero-actions .hero-cta-outline {
	padding: 12px 28px;
	font-size: 1.05rem;
	font-weight: 600;
	border-radius: 6px;
}

.hero-keypoints {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
}

@media (max-width: 991px) {
	.hero-keypoints {
		justify-content: center;
	}
}

.hero-keypoints .keypoint {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.hero-keypoints .keypoint .material-icons {
	font-size: 1.45rem;
	color: #34b4e9;
	margin-top: 2px;
	flex-shrink: 0;
}

.hero-keypoints .keypoint strong {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	color: #124d66;
	margin-bottom: 2px;
}

.hero-keypoints .keypoint span {
	font-size: 0.85rem;
	color: #777;
}

/* ── Hero Mockup ────────────────────────────────────────────────────────── */

.hero-mockup {
	width: 100%;
	max-width: 540px;
}

@media (max-width: 991px) {
	.hero-mockup {
		margin-top: 40px;
	}
}

@media (max-width: 480px) {
	.mockup-body {
		height: 260px;
	}
}

.mockup-window {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(18, 77, 102, 0.18), 0 4px 16px rgba(18, 77, 102, 0.1);
	overflow: hidden;
	border: 1px solid #e0e8ef;
}

.mockup-topbar {
	background: #f4f6f8;
	border-bottom: 1px solid #e0e8ef;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mockup-topbar .mockup-dots {
	display: flex;
	gap: 5px;
}

.mockup-topbar .mockup-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ddd;
}

.mockup-topbar .mockup-dot:nth-child(1) { background: #ff6b6b; }
.mockup-topbar .mockup-dot:nth-child(2) { background: #ffd166; }
.mockup-topbar .mockup-dot:nth-child(3) { background: #6bcb77; }

.mockup-topbar .mockup-url-bar {
	flex: 1;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 4px 10px;
	font-size: 0.7rem;
	color: #888;
	text-align: center;
}

.mockup-body {
	display: flex;
	height: 320px;
}

.mockup-sidebar {
	width: 52px;
	background: #124d66;
	padding: 12px 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
}

.mockup-sidebar .mockup-sidebar-logo {
	width: 28px;
	height: 28px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.2);
	margin-bottom: 8px;
}

.mockup-sidebar .mockup-menu-item {
	width: 28px;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.3);
}

.mockup-sidebar .mockup-menu-item.active {
	background: #34b4e9;
}

.mockup-content {
	flex: 1;
	padding: 12px;
	background: #f8fafc;
	overflow: hidden;
}

.mockup-content-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.mockup-content-header .mockup-breadcrumb {
	height: 8px;
	width: 140px;
	border-radius: 4px;
	background: #dde3ea;
}

.mockup-content-header .mockup-actions {
	display: flex;
	gap: 6px;
}

.mockup-content-header .mockup-btn {
	height: 22px;
	border-radius: 4px;
}

.mockup-content-header .mockup-btn.blue { width: 60px; background: #34b4e9; opacity: 0.8; }
.mockup-content-header .mockup-btn.outline { width: 60px; background: transparent; border: 1.5px solid #34b4e9; opacity: 0.5; }

.mockup-stat-row {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.mockup-stat-row .mockup-stat {
	flex: 1;
	background: #fff;
	border-radius: 6px;
	padding: 8px;
	display: flex;
	align-items: center;
	gap: 7px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mockup-stat-row .mockup-stat .mockup-stat-icon {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	flex-shrink: 0;
}

.mockup-stat-row .mockup-stat .mockup-stat-text {
	flex: 1;
}

.mockup-stat-row .mockup-stat .mockup-line {
	height: 6px;
	border-radius: 3px;
	background: #e8ecef;
	margin-bottom: 4px;
}

.mockup-stat-row .mockup-stat .mockup-line.short { width: 40%; }
.mockup-stat-row .mockup-stat .mockup-line.long { width: 75%; }

.mockup-stat-row .mockup-stat.blue .mockup-stat-icon { background: rgba(52, 180, 233, 0.2); }
.mockup-stat-row .mockup-stat.green .mockup-stat-icon { background: rgba(107, 203, 119, 0.3); }
.mockup-stat-row .mockup-stat.red .mockup-stat-icon { background: rgba(255, 107, 107, 0.2); }

.mockup-table {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mockup-table-header {
	display: flex;
	gap: 8px;
	padding: 7px 10px;
	background: #f4f6f8;
	border-bottom: 1px solid #e8ecef;
}

.mockup-table-header .mockup-th {
	height: 6px;
	border-radius: 3px;
	background: #c8d4dc;
	flex: 1;
}

.mockup-table-row {
	display: flex;
	gap: 8px;
	padding: 7px 10px;
	border-bottom: 1px solid #f0f3f6;
	align-items: center;
}

.mockup-table-row.alt { background: #fafbfc; }

.mockup-table-row .mockup-td {
	height: 6px;
	border-radius: 3px;
	background: #e0e6ec;
	flex: 1;
}

.mockup-table-row .badge-blue {
	height: 16px;
	width: 50px;
	flex: none;
	border-radius: 8px;
	background: rgba(52, 180, 233, 0.15);
}

.mockup-table-row .badge-green {
	height: 16px;
	width: 50px;
	flex: none;
	border-radius: 8px;
	background: rgba(107, 203, 119, 0.25);
}

/* ── Features Strip ─────────────────────────────────────────────────────── */

.features-strip {
	padding: 56px 0;
	background: #fff;
	border-top: 1px solid #e8ecef;
	border-bottom: 1px solid #e8ecef;
}

.features-strip .features-strip-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
}

@media (max-width: 1100px) {
	.features-strip .features-strip-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 640px) {
	.features-strip .features-strip-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.features-strip .feature-strip-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 20px 12px;
	border-radius: 8px;
	transition: background 0.2s ease;
	cursor: default;
}

.features-strip .feature-strip-item:hover {
	background: #eaf6fc;
}

.features-strip .feature-strip-item .material-icons {
	font-size: 2.2rem;
	color: #34b4e9;
	margin-bottom: 12px;
}

.features-strip .feature-strip-item strong {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	color: #124d66;
	margin-bottom: 6px;
}

.features-strip .feature-strip-item span {
	font-size: 0.85rem;
	color: #777;
	line-height: 1.4;
}

/* ── Section modulaire ──────────────────────────────────────────────────── */

.modular-section {
	padding: 80px 0;
	background: #eaf6fc;
}

.modular-section .modular-intro {
	padding-right: 24px;
}

@media (max-width: 991px) {
	.modular-section .modular-intro {
		margin-bottom: 40px;
		padding-right: 0;
	}
}

.modular-section .modular-label {
	font-size: 0.9rem;
	font-weight: 700;
	color: #34b4e9;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 12px;
}

.modular-section .modular-title {
	font-size: 1.9rem;
	font-weight: 700;
	color: #124d66;
	line-height: 1.25;
	margin-bottom: 16px;
}

.modular-section .modular-desc {
	font-size: 1rem;
	color: #666;
	line-height: 1.6;
	margin-bottom: 20px;
}

.benefits-col {
	padding: 0 16px;
}

@media (max-width: 991px) {
	.benefits-col {
		margin-bottom: 32px;
	}
}

.benefit-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #fff;
	border-radius: 8px;
	padding: 16px;
	height: 100%;
	box-shadow: 0 1px 4px rgba(18, 77, 102, 0.07);
	transition: box-shadow 0.2s ease;
}

.benefit-card:hover {
	box-shadow: 0 4px 16px rgba(18, 77, 102, 0.12);
}

.benefit-card .benefit-icon {
	font-size: 1.65rem;
	color: #34b4e9;
	flex-shrink: 0;
	margin-top: 2px;
}

.benefit-card strong {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	color: #124d66;
	margin-bottom: 4px;
}

.benefit-card p {
	font-size: 0.85rem;
	color: #777;
	margin: 0;
	line-height: 1.5;
}

.demo-cta-card {
	background: #124d66;
	border-radius: 12px;
	padding: 64px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	text-align: center;
}

.demo-cta-card .demo-cta-text {
	margin: 0;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.5;
}

.demo-cta-card .btn {
	width: 100%;
}

/* ── About / CTA ────────────────────────────────────────────────────────── */

.about-section {
	background: #fff;
	padding: 64px 0;
	border-top: 1px solid #e8ecef;
}

.about-section h2 {
	max-width: 720px;
	margin: 0 auto 16px;
	font-size: 1.8rem;
	font-weight: 600;
	color: #124d66;
	line-height: 1.35;
}

.about-section .about-desc {
	max-width: 640px;
	margin: 0 auto 2rem;
	color: #555;
	font-size: 1.1rem;
	line-height: 1.7;
}

.about-section .btn-primary {
	padding: 12px 32px;
	font-weight: 600;
	border-radius: 6px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
/* style.css définit un `footer{ position:absolute; bottom:0 }` pensé pour
   l'ancienne page mono-section : on l'annule ici pour un footer normal
   dans le flux, en bas de la page marketing multi-sections. */

.site-footer {
	position: static;
	background: #ecf0f5;
	padding: 24px 0;
}

.site-footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
}

.site-footer-inner a,
.site-footer-copyright {
	font-size: 0.9rem;
	color: #8a9aaa;
}

.site-footer-inner a {
	text-decoration: none;
}

.site-footer-inner a:hover {
	color: #124d66;
}

.site-footer-sep {
	color: #c3ccd3;
}

@media (max-width: 575.98px) {
	.site-footer-inner {
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 768px) {
	body {
		padding-bottom: 0;
	}
}

/* garde-fou : un élément trop large (ex. badge, mockup) ne doit jamais
   provoquer de scroll horizontal sur toute la page. On ne cible que <html>
   (pas <body>) pour ne pas transformer <body> en conteneur de scroll, ce
   qui casserait le `position: sticky` du header. */
html {
	overflow-x: hidden;
}

/* ── Modale d'inscription BETA (composant type "modal" Bootstrap) ─────────── */

.modal {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1050;
	display: none;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	outline: 0;
}

.modal.show {
	display: block;
}

.modal.fade .modal-dialog {
	transition: transform 0.3s ease-out;
	transform: translate(0, -50px);
}

.modal.show .modal-dialog {
	transform: none;
}

.modal-dialog {
	position: relative;
	width: auto;
	margin: 1.75rem auto;
	max-width: 500px;
	pointer-events: none;
}

.modal.show .modal-dialog {
	pointer-events: auto;
}

.modal-lg {
	max-width: min(800px, 94vw);
}

.modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(18, 77, 102, 0.25);
	outline: 0;
}

.modal-header {
	position: relative;
	padding: 56px 48px 20px;
	text-align: center;
}

.modal-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: #124d66;
}

.modal-body {
	padding: 0;
}

.modal .close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: transparent;
	border: 0;
	font-size: 1.8rem;
	line-height: 1;
	color: #999;
	opacity: 0.7;
	cursor: pointer;
	padding: 4px 8px;
}

.modal .close:hover {
	opacity: 1;
	color: #124d66;
}

.modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1040;
	width: 100%;
	height: 100%;
	background: #000;
}

.modal-backdrop.fade {
	transition: opacity 0.15s linear;
	opacity: 0;
}

.modal-backdrop.show {
	opacity: 0.5;
}

body.modal-open {
	overflow: hidden;
}

@media (max-width: 575.98px) {
	.modal-dialog {
		margin: 0.75rem;
		max-width: calc(100% - 1.5rem);
	}
}

.form-group .textarea-label {
	position: absolute;
	top: 30px;
	left: 8px;
}
