/**
 * TIC INNOV — Styles page d'accueil
 */

/* Masquer le hero Colibri par défaut */
body.tic-homepage #hero.h-hero {
	display: none !important;
}

body.tic-homepage .header-front-page {
	min-height: 0;
}

body.tic-homepage #page-top {
	background-color: var(--tic-bg-primary);
	overflow: visible !important;
}

body.tic-homepage .tic-homepage-main {
	margin-top: 0;
	overflow: visible;
}

/* --- Hero --- */
.tic-hero {
	position: relative;
	overflow: hidden;
	min-height: clamp(34rem, 88vh, 46rem);
	display: flex;
	align-items: center;
	padding-top: clamp(5rem, 10vw, 7rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.tic-hero__grid-lines {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--tic-hero-grid-stroke) 1px, transparent 1px),
		linear-gradient(90deg, var(--tic-hero-grid-stroke) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 52% 42% at 50% 34%, black 3%, transparent 52%);
	-webkit-mask-image: radial-gradient(ellipse 52% 42% at 50% 34%, black 3%, transparent 52%);
	pointer-events: none;
	opacity: var(--tic-hero-grid-opacity);
}

/* Quadrillage hero très discret */
.tic-hero.tic-bg-grid {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='%2338bdf8' stroke-width='0.5' opacity='0.003'/%3E%3C/svg%3E");
}

.tic-hero__glow {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(120px);
}

.tic-hero__glow--sky {
	top: 10%;
	right: 20%;
	width: clamp(18rem, 40vw, 36rem);
	height: clamp(18rem, 40vw, 36rem);
	background: var(--tic-hero-glow-sky);
}

.tic-hero__glow--blue {
	bottom: 10%;
	left: 15%;
	width: clamp(14rem, 30vw, 26rem);
	height: clamp(14rem, 30vw, 26rem);
	background: var(--tic-hero-glow-blue);
}

.tic-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.tic-hero__inner {
		grid-template-columns: 1.1fr 0.9fr;
		gap: 4rem;
	}
}

.tic-hero__badge {
	margin-bottom: 1.5rem;
}

.tic-hero__title {
	font-size: clamp(2.125rem, 5vw, 3.75rem);
	font-weight: 800;
	line-height: 1.08;
	margin-bottom: 1.5rem;
	color: var(--tic-text-primary);
	letter-spacing: -0.03em;
}

.tic-hero__description {
	font-size: 1.125rem;
	line-height: 1.75;
	color: var(--tic-text-body);
	margin-bottom: 2rem;
	max-width: 36rem;
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
}

.tic-hero__actions {
	justify-content: flex-start;
	margin-bottom: 2rem;
}

.tic-hero__actions .tic-btn--brand {
	background: linear-gradient(90deg, #f79007, #f5c842);
	color: #0a0f1e;
	font-weight: 600;
	border: none;
	box-shadow: 0 4px 16px rgba(247, 144, 7, 0.32);
}

.tic-hero__actions .tic-btn--brand:hover {
	background: linear-gradient(90deg, #e07d00, #e8b923);
	color: #0a0f1e;
	box-shadow: 0 6px 22px rgba(247, 144, 7, 0.4);
}

.tic-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tic-hero__trust-item {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	min-width: 6.5rem;
}

.tic-hero__trust-value {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--tic-accent-light);
	line-height: 1.2;
}

.tic-hero__trust-label {
	font-size: 0.6875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tic-text-muted);
}

.tic-hero__visual {
	display: none;
	justify-content: center;
	align-items: center;
	position: relative;
}

@media (min-width: 1024px) {
	.tic-hero__visual {
		display: flex;
	}
}

.tic-hero__visual-logo {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: clamp(20rem, 36vw, 28rem);
	height: clamp(20rem, 36vw, 28rem);
	animation: tic-hero-pulse 4s ease-in-out infinite;
}

/* Halo externe : fusion progressive cercle hero → fond de page */
.tic-hero__visual-logo::before {
	content: "";
	position: absolute;
	inset: -22%;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(
		circle at 50% 50%,
		transparent 0%,
		transparent 38%,
		rgba(10, 15, 30, 0.18) 52%,
		rgba(10, 15, 30, 0.42) 66%,
		rgba(10, 15, 30, 0.28) 78%,
		rgba(10, 15, 30, 0.12) 88%,
		rgba(10, 15, 30, 0.04) 94%,
		transparent 100%
	);
}

/* Fond interne : noir logo → bleu nuit du hero */
.tic-hero__visual-disc {
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: 50%;
	background: radial-gradient(
		circle at 50% 50%,
		#000000 0%,
		#000000 32%,
		#010306 42%,
		#03070f 50%,
		#050a14 58%,
		#070d18 65%,
		#0a0f1e 72%,
		rgba(10, 15, 30, 0.92) 80%,
		rgba(10, 15, 30, 0.72) 86%,
		rgba(10, 15, 30, 0.48) 91%,
		rgba(10, 15, 30, 0.24) 95%,
		rgba(10, 15, 30, 0.08) 98%,
		transparent 100%
	);
	pointer-events: none;
}

/* Anneau de fusion : jonction logo / disque */
.tic-hero__visual-logo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(
		circle at 50% 50%,
		transparent 0%,
		transparent 70%,
		rgba(10, 15, 30, 0.06) 78%,
		rgba(10, 15, 30, 0.2) 86%,
		rgba(10, 15, 30, 0.35) 92%,
		rgba(10, 15, 30, 0.14) 97%,
		transparent 100%
	);
}

.tic-hero__visual-ring {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: transparent;
	border: 1px solid rgba(212, 168, 42, 0.22);
	box-shadow:
		0 0 0 1px rgba(56, 189, 248, 0.06),
		0 0 32px rgba(14, 165, 233, 0.12),
		0 0 56px rgba(212, 168, 42, 0.08);
	pointer-events: none;
}

.tic-logo--hero {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 88%;
	height: 88%;
}

.tic-logo--hero-image {
	position: relative;
	width: 88%;
	height: 88%;
	border-radius: 50%;
	overflow: hidden;
	background-color: #000000;
	-webkit-mask-image: radial-gradient(
		circle at 50% 50%,
		#000 0%,
		#000 72%,
		rgba(0, 0, 0, 0.94) 80%,
		rgba(0, 0, 0, 0.7) 87%,
		rgba(0, 0, 0, 0.35) 93%,
		rgba(0, 0, 0, 0.1) 97%,
		transparent 100%
	);
	mask-image: radial-gradient(
		circle at 50% 50%,
		#000 0%,
		#000 72%,
		rgba(0, 0, 0, 0.94) 80%,
		rgba(0, 0, 0, 0.7) 87%,
		rgba(0, 0, 0, 0.35) 93%,
		rgba(0, 0, 0, 0.1) 97%,
		transparent 100%
	);
	box-shadow:
		0 0 28px rgba(245, 200, 66, 0.12),
		0 0 40px rgba(14, 165, 233, 0.08);
}

.tic-logo--hero .tic-logo__img,
.tic-logo--hero svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tic-logo--hero-image .tic-logo__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	filter:
		brightness(1.08)
		contrast(1.08)
		saturate(1.12);
}

.tic-logo--hero-image .tic-logo__img--light {
	display: none;
}

html[data-theme="light"] .tic-logo--hero-image .tic-logo__img--dark {
	display: none !important;
}

html[data-theme="light"] .tic-logo--hero-image .tic-logo__img--light {
	display: block !important;
}

.tic-logo--digital svg {
	shape-rendering: geometricPrecision;
	filter: drop-shadow(0 0 24px rgba(14, 165, 233, 0.2)) drop-shadow(0 0 48px rgba(212, 168, 42, 0.12));
}

@keyframes tic-hero-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.04); opacity: 0.88; }
}

@media (prefers-reduced-motion: reduce) {
	.tic-hero__visual-logo {
		animation: none;
	}
}

/* --- Bannière --- */
.tic-banner {
	position: relative;
	min-height: clamp(14rem, 32vh, 20rem);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: linear-gradient(135deg, #0c4a6e 0%, #1e3a8a 50%, #312e81 100%);
}

/* Fusion progressive avec les blocs voisins (hero / services) */
.tic-banner::before,
.tic-banner::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	z-index: 2;
	height: clamp(3.5rem, 10vh, 6rem);
	pointer-events: none;
}

.tic-banner::before {
	top: 0;
	background: linear-gradient(
		to bottom,
		var(--tic-bg-primary) 0%,
		rgba(10, 15, 30, 0.82) 28%,
		rgba(10, 15, 30, 0.35) 58%,
		transparent 100%
	);
}

.tic-banner::after {
	bottom: 0;
	background: linear-gradient(
		to top,
		var(--tic-bg-secondary) 0%,
		rgba(13, 19, 37, 0.78) 30%,
		rgba(13, 19, 37, 0.32) 62%,
		transparent 100%
	);
}

.tic-banner__pattern {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.14;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E");
	mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}

.tic-banner__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to bottom,
		rgba(10, 15, 30, 0.12) 0%,
		transparent 32%,
		transparent 68%,
		rgba(13, 19, 37, 0.14) 100%
	);
}

.tic-banner__content {
	position: relative;
	z-index: 3;
	text-align: center;
	padding-block: 3.5rem;
}

.tic-banner__subtitle {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tic-accent-light);
	margin-bottom: 0.75rem;
}

.tic-banner__title {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 0.875rem;
	letter-spacing: -0.02em;
}

.tic-banner__text {
	font-size: 1.0625rem;
	line-height: 1.65;
	color: #d1d5db;
	max-width: 38rem;
	margin-inline: auto;
}

.tic-banner__accent {
	width: 4rem;
	height: 3px;
	margin: 1.5rem auto 0;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--tic-brand), var(--tic-accent-light));
}

/* --- Services --- */
.tic-grid--services .tic-service-cell {
	height: 100%;
}

.tic-grid--services .tic-card--service {
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, border-color 0.2s ease, background 0.2s ease;
	will-change: transform;
}

.tic-grid--services .tic-card--service:hover {
	transform: translateX(8px);
	border-color: rgba(255, 255, 255, 0.22);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.tic-grid--services .tic-card--service .tic-card__description {
	flex: 1;
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
}

/* --- Processus (scroll TicInnov : intro sticky + timeline page) --- */
#process,
#process .tic-container,
.tic-process-grid,
.tic-process-col {
	overflow: visible;
}

.tic-process-grid {
	display: grid;
	gap: 3rem;
}

@media (min-width: 1024px) {
	.tic-process-grid {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
		align-items: stretch;
	}

	.tic-process-col--intro {
		position: relative;
	}

	.tic-process-intro {
		position: -webkit-sticky;
		position: sticky;
		top: 8rem;
		align-self: start;
		height: fit-content;
		z-index: 2;
	}

	#process.is-process-js-sticky .tic-process-intro {
		position: relative;
		top: auto;
	}

	#process.is-process-js-sticky .tic-process-intro.is-process-fixed {
		position: fixed !important;
	}

	#process.is-process-js-sticky .tic-process-intro.is-process-pinned {
		position: absolute !important;
		top: auto !important;
		bottom: 0;
		left: 0;
		width: 100% !important;
	}
}

.tic-process-intro-spacer {
	display: block;
	height: 0;
	pointer-events: none;
}

body.admin-bar .tic-process-intro {
	top: calc(8rem + 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .tic-process-intro {
		top: calc(8rem + 46px);
	}
}

/* transform sur l'élément sticky casse le comportement — fondu sans translation */
.tic-process-intro .tic-animate-in.is-visible {
	animation: tic-process-fade-in 0.6s ease-out both;
}

@keyframes tic-process-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.tic-process-intro .tic-section-header__subtitle,
.tic-process-intro .tic-section-header__title {
	text-align: left;
}

.tic-process-intro .tic-section-header__title {
	font-size: 2.25rem;
	margin-bottom: 1rem;
}

.tic-process-chain-wrap {
	position: relative;
}

.tic-process-intro__description {
	margin: 0 0 2rem;
	font-size: 1.125rem;
	line-height: 1.75;
	color: var(--tic-text-body);
	text-align: left;
	max-width: none;
}

.tic-process-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0;
	color: var(--tic-accent-light);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease, gap 0.2s ease;
}

.tic-process-link:hover {
	color: var(--tic-accent);
	gap: 0.75rem;
}

.tic-process-link svg {
	width: 1rem;
	height: 1rem;
}

.tic-process-chain {
	position: relative;
}

.tic-process-chain__line {
	position: absolute;
	left: 1.5rem;
	top: 0;
	bottom: 0;
	width: 1px;
	background: rgba(56, 189, 248, 0.2);
	pointer-events: none;
}

.tic-process-chain__line-progress {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	background: linear-gradient(to bottom, #0ea5e9, #60a5fa, #a78bfa);
	box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
	transition: height 0.35s ease;
}

.tic-process-chain__step {
	position: relative;
	display: flex;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.tic-process-chain__step:last-child {
	margin-bottom: 0;
}

.tic-process-chain__badge {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: #0ea5e9;
	box-shadow:
		0 10px 15px -3px rgba(14, 165, 233, 0.25),
		0 4px 6px -4px rgba(14, 165, 233, 0.25);
}

.tic-process-chain__badge span {
	font-size: 0.75rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.04em;
}

.tic-process-chain__step.is-active .tic-process-chain__badge {
	box-shadow:
		0 0 0 4px rgba(56, 189, 248, 0.28),
		0 10px 24px rgba(14, 165, 233, 0.45);
}

.tic-process-chain__step.is-active .tic-process-chain__card {
	border-color: rgba(56, 189, 248, 0.35);
	background: rgba(255, 255, 255, 0.08);
}

.tic-process-chain__card {
	flex: 1;
	padding: 1.25rem;
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.tic-process-chain__card:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
}

.tic-process-chain__card-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.tic-process-chain__icon {
	display: flex;
	flex-shrink: 0;
	color: var(--tic-accent-light);
}

.tic-process-chain__icon svg {
	width: 1rem;
	height: 1rem;
}

.tic-process-chain__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--tic-text-primary);
	line-height: 1.3;
}

.tic-process-chain__description {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--tic-text-body);
}

/* --- Cartes solutions --- */
.tic-solution-card {
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.tic-solution-card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	opacity: 0;
	transition: opacity 0.3s ease;
	background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 60%);
	pointer-events: none;
}

.tic-solution-card:hover::before {
	opacity: 1;
}

.tic-solution-card:hover {
	border-color: rgba(56, 189, 248, 0.3);
}

.tic-solution-card .tic-card__description {
	flex: 1;
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
}

.tic-solution-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--tic-accent-light);
	text-decoration: none;
	transition: color 0.2s ease, gap 0.2s ease;
}

.tic-solution-card__link:hover {
	color: var(--tic-accent);
	gap: 0.75rem;
}

.tic-solution-card__link svg {
	width: 1rem;
	height: 1rem;
}

/* --- Stats --- */
.tic-stats-section {
	background: linear-gradient(180deg, var(--tic-bg-primary) 0%, var(--tic-bg-secondary) 100%);
}

.tic-stats-section .tic-section-header {
	margin-bottom: 2.5rem;
}

/* --- Actualités homepage --- */
.tic-news-section {
	position: relative;
}

body.tic-homepage .tic-news-section .tic-section-header {
	margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

body.tic-homepage .tic-news-section .tic-section-header__description {
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
	word-spacing: normal;
}

/* --- Sections homepage --- */
body.tic-homepage .tic-section + .tic-section {
	border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body.tic-homepage #services .tic-section-header,
body.tic-homepage #solutions .tic-section-header {
	margin-bottom: 3.5rem;
}

body.tic-homepage #solutions .tic-section-header__description {
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
}

/* --- CTA accueil (boutons, style hero « Demander un devis ») --- */
body.tic-homepage .tic-cta .tic-btn--brand {
	background: linear-gradient(90deg, #f79007, #f5c842);
	color: #0a0f1e;
	font-weight: 600;
	border: none;
	box-shadow: 0 4px 16px rgba(247, 144, 7, 0.32);
}

body.tic-homepage .tic-cta .tic-btn--brand:hover {
	background: linear-gradient(90deg, #e07d00, #e8b923);
	color: #0a0f1e;
	box-shadow: 0 6px 22px rgba(247, 144, 7, 0.4);
	transform: none;
}

/* --- Light Mode premium (Hero / Banner) — complété dans theme-light.css --- */
html[data-theme="light"] .tic-banner__title {
	color: var(--tic-text-primary);
}

html[data-theme="light"] .tic-banner__text {
	color: var(--tic-text-body);
}
