/* Webspot — styles complémentaires (hors theme.json) */

:root {
	--ws-radius: 16px;
	--ws-ring: rgba(91, 141, 239, 0.35);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* --- En-tête collant --- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--wp--preset--color--base) 72%, transparent);
	backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.site-header .wp-block-navigation a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: color 0.18s ease;
}
.site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--white);
}

/* --- Logo --- */
.site-logo-img {
	margin: 0;
	line-height: 0;
}
.site-logo-img img {
	display: block;
	width: 100%;
	height: auto;
}

/* --- Accents typographiques --- */
.text-gradient {
	background: var(--wp--preset--gradient--accent);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-2);
}

/* --- Hero --- */
.hero {
	position: relative;
	overflow: clip;
}
.hero::before {
	content: "";
	position: absolute;
	inset: -20% 0 auto 0;
	height: 600px;
	background: var(--wp--preset--gradient--glow);
	pointer-events: none;
	z-index: -1;
}
.hero-title {
	max-width: 15ch;
}
.hero-sub {
	max-width: 46ch;
}

/* --- Bandeau confiance (défilement continu) --- */
.trustbar {
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.marquee {
	overflow: hidden;
	margin-top: 1rem;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
	display: flex;
	align-items: center;
	gap: 4rem;
	width: max-content;
	animation: ws-marquee 36s linear infinite;
}
.marquee:hover .marquee-track {
	animation-play-state: paused;
}
@keyframes ws-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
.trust-logo-link {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	filter: grayscale(1);
	opacity: 0.65;
	transition: filter 0.2s ease, opacity 0.2s ease;
}
.trust-logo-link:hover {
	filter: none;
	opacity: 1;
}
.trust-logo-link img {
	height: 38px;
	width: auto;
	max-width: 150px;
	object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
	.marquee-track {
		animation: none;
		width: auto;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1.5rem 2.5rem;
	}
	.marquee-track [aria-hidden="true"] {
		display: none;
	}
	.marquee {
		-webkit-mask-image: none;
		mask-image: none;
	}
}

/* --- Cartes --- */
.cards {
	gap: 1.25rem;
}
.cards .card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ws-radius);
	padding: 1.75rem;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cards .card:hover {
	transform: translateY(-4px);
	border-color: var(--ws-ring);
	box-shadow: 0 20px 40px -24px rgba(91, 141, 239, 0.5);
}
.card-icon {
	font-size: 1.6rem;
	color: var(--wp--preset--color--accent-2);
	margin: 0 0 0.5rem;
}
.card.product {
	background: linear-gradient(160deg, var(--wp--preset--color--surface-2), var(--wp--preset--color--surface));
}
.product-logo {
	margin: 0 0 1rem;
	line-height: 0;
}
.product-logo img {
	height: 40px;
	width: auto;
	max-width: 150px;
	object-fit: contain;
	object-position: left;
}
.logo-mono {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--wp--preset--color--accent);
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.95rem;
}
.product .wp-block-heading a,
.product-row .wp-block-heading a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
}
.product .wp-block-heading a:hover,
.product-row .wp-block-heading a:hover {
	color: var(--wp--preset--color--accent);
}

/* --- Statistiques --- */
.stats {
	gap: 1px;
	background: var(--wp--preset--color--border);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ws-radius);
	overflow: hidden;
}
.stat {
	background: var(--wp--preset--color--base);
	padding: 1.5rem;
}
.stat-num {
	font-size: 2.5rem;
	background: var(--wp--preset--gradient--accent);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin: 0;
}

/* --- Témoignages --- */
.testimonials {
	gap: 1.25rem;
}
.testimonials .testimonial {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ws-radius);
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.testimonial-quote {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.05rem;
	line-height: 1.5;
	margin: 0 0 1.25rem;
}
.testimonial-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.testimonial-avatar {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--wp--preset--gradient--accent);
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.85rem;
}
.testimonial-id {
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.4;
}
.testimonial-id strong {
	color: var(--wp--preset--color--contrast);
}
@media (max-width: 781px) {
	.testimonials {
		flex-wrap: wrap;
	}
	.testimonials .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* --- CTA final --- */
.cta-final {
	background: linear-gradient(160deg, var(--wp--preset--color--surface-2), var(--wp--preset--color--surface));
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 24px;
}

/* --- Bouton outline --- */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--border);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--ws-ring);
	color: var(--wp--preset--color--white);
}

/* --- Listes du pied de page --- */
.footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-list li {
	margin-bottom: 0.5rem;
}
.footer-list a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}
.footer-list a:hover {
	color: var(--wp--preset--color--white);
}

/* --- Fond de section --- */
.section-surface {
	background: var(--wp--preset--color--surface);
}

/* --- Hero de page intérieure --- */
.page-hero h1 {
	max-width: 20ch;
}
.page-hero .lead {
	max-width: 60ch;
}

/* --- Lignes d'expertise --- */
.expertise-index {
	font-family: var(--wp--preset--font-family--mono);
	color: var(--wp--preset--color--accent);
	font-size: 0.95rem;
	letter-spacing: 0.1em;
	margin: 0 0 0.5rem;
}
.expertise-row + .expertise-row {
	border-top: 1px solid var(--wp--preset--color--border);
}

/* --- Tags --- */
.tags {
	gap: 0.5rem;
	margin-top: 1.25rem;
}
.tag {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	padding: 0.3rem 0.8rem;
}
.tag-inline {
	display: inline-block;
	margin-top: 0.75rem;
	color: var(--wp--preset--color--accent);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 8%, transparent);
}

/* --- Lignes produits --- */
.product-row .wp-block-heading {
	margin: 0;
}

/* --- Formulaire de contact --- */
.contact-form .field,
.contact-form .field-submit {
	margin: 0 0 1.1rem;
}
.contact-form .field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem;
}
.contact-form label {
	display: block;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea {
	width: 100%;
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 0.75rem 0.9rem;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent) 25%, transparent);
}
.contact-form .field-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}
.contact-form button {
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: #fff;
	font-weight: 600;
	padding: 0.85rem 1.8rem;
	transition: background 0.18s ease;
}
.contact-form button:hover {
	background: var(--wp--preset--color--accent-2);
}
.form-notice {
	padding: 0.85rem 1rem;
	border-radius: 12px;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
}
.form-notice.is-success {
	background: color-mix(in srgb, #16a34a 12%, transparent);
	border: 1px solid color-mix(in srgb, #16a34a 40%, transparent);
	color: #15803d;
}
.form-notice.is-error {
	background: color-mix(in srgb, #dc2626 12%, transparent);
	border: 1px solid color-mix(in srgb, #dc2626 40%, transparent);
	color: #b91c1c;
}

/* --- Césure : pas de coupure de mots, équilibrage des titres --- */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	text-wrap: balance;
	hyphens: none;
	-webkit-hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
}
p, li, .lead, .hero-sub {
	text-wrap: pretty;
	hyphens: none;
	-webkit-hyphens: none;
	overflow-wrap: break-word;
}

/* --- Illustrations --- */
.hero-illu img,
.expertise-illu img,
.section-illu img {
	display: block;
	width: 100%;
	height: auto;
}
.expertise-illu {
	margin: 1.5rem 0 0;
	max-width: 240px;
}
.expertise-illu img {
	max-height: 180px;
	object-fit: contain;
	object-position: left;
}
.ws-float {
	animation: ws-bob 6s ease-in-out infinite;
}
@keyframes ws-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

/* --- Apparition au défilement --- */
.ws-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
	will-change: opacity, transform;
}
.ws-reveal.ws-in {
	opacity: 1;
	transform: none;
}

/* --- Halo animé du hero --- */
.hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 460px;
	height: 460px;
	right: -120px;
	top: -80px;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--accent-2) 14%, transparent) 0%, transparent 70%);
	animation: ws-drift 14s ease-in-out infinite alternate;
	pointer-events: none;
}
@keyframes ws-drift {
	from { transform: translate(0, 0) scale(1); }
	to { transform: translate(-40px, 40px) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
	.ws-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	.ws-float, .hero::after { animation: none !important; }
}

/* --- Méthode : bandeau teinté + étapes --- */
.section-method {
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--accent) 6%, var(--wp--preset--color--base)) 0%, var(--wp--preset--color--base) 100%);
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.steps {
	gap: 1.5rem;
}
.steps .step {
	padding-top: 1.5rem;
	border-top: 2px solid var(--wp--preset--color--border);
	transition: border-color 0.25s ease;
}
.steps .step:hover {
	border-color: var(--wp--preset--color--accent-2);
}
.step-num {
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 2.25rem;
	line-height: 1;
	background: var(--wp--preset--gradient--accent);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.steps .step h3 {
	margin: 0 0 0.5rem;
}

/* --- Survols : boutons --- */
.wp-block-button .wp-block-button__link {
	transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--wp--preset--color--accent) 70%, transparent);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* --- Survols : menu (soulignement animé) --- */
.site-header .wp-block-navigation a {
	position: relative;
}
.site-header .wp-block-navigation a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	height: 2px;
	width: 100%;
	background: var(--wp--preset--color--accent-2);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}
.site-header .wp-block-navigation a:hover::after {
	transform: scaleX(1);
}

/* --- Veille technologique --- */
.veille-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin-top: 1.5rem;
}
.veille-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.5rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ws-radius);
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.veille-card:hover {
	transform: translateY(-4px);
	border-color: var(--ws-ring);
	box-shadow: 0 20px 40px -24px rgba(38, 64, 94, 0.4);
}
.veille-source {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-2);
}
.veille-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	line-height: 1.35;
	color: var(--wp--preset--color--contrast);
}
.veille-date {
	margin-top: auto;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}
.veille-note {
	margin-top: 1rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
}
@media (max-width: 900px) {
	.veille-grid {
		grid-template-columns: 1fr;
	}
}

/* --- FAQ (accordéon natif) --- */
.faq-item {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--surface);
	margin-bottom: 0.75rem;
	overflow: hidden;
}
.faq-item summary {
	cursor: pointer;
	list-style: none;
	padding: 1rem 1.25rem;
	font-weight: 600;
	font-family: var(--wp--preset--font-family--heading);
	position: relative;
	padding-right: 2.5rem;
	transition: color 0.18s ease;
}
.faq-item summary::-webkit-details-marker {
	display: none;
}
.faq-item summary::after {
	content: "+";
	position: absolute;
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--wp--preset--color--accent-2);
	font-size: 1.3rem;
	font-weight: 400;
	transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}
.faq-item summary:hover {
	color: var(--wp--preset--color--accent);
}
.faq-item p {
	margin: 0;
	padding: 0 1.25rem 1.1rem;
	color: var(--wp--preset--color--muted);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
	.cards {
		flex-wrap: wrap;
	}
	.cards > .wp-block-column {
		flex-basis: calc(50% - 0.625rem) !important;
	}
}
@media (max-width: 660px) {
	.cards > .wp-block-column {
		flex-basis: 100% !important;
	}
	.contact-form .field-row {
		grid-template-columns: 1fr;
	}
	.expertise-illu {
		display: none;
	}
}
