/*
Theme Name: Neoway Digital
Theme URI: https://neoway-digital.fr
Author: Neoway Digital
Description: Thème bloc sur mesure pour le site vitrine de Neoway Digital.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: neoway
*/

/* Petits ajouts que theme.json ne couvre pas */

html { scroll-behavior: smooth; }

.wp-site-blocks { padding-top: 0; }

.nw-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	background: color-mix(in srgb, var(--wp--preset--color--base) 85%, transparent);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.nw-eyebrow {
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nw-gradient-text {
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nw-hero {
	background:
		radial-gradient(60% 80% at 85% 10%, color-mix(in srgb, var(--wp--preset--color--accent) 22%, transparent), transparent 70%),
		radial-gradient(50% 70% at 10% 90%, color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent), transparent 70%),
		var(--wp--preset--color--ink);
}

.nw-card {
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	height: 100%;
}
.nw-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent);
	border-color: var(--wp--preset--color--primary) !important;
}

.nw-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	font-size: 22px;
	line-height: 1;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent);
	color: var(--wp--preset--color--primary);
	margin: 0 0 1rem;
}

.nw-stat strong {
	display: block;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.1;
	font-family: var(--wp--preset--font-family--display);
}

.nw-step-num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 2.5rem;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	margin: 0;
}

/* Formulaire Contact Form 7 */
.wpcf7 input:not([type="submit"]),
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	padding: .8rem 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	font: inherit;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}
.wpcf7 input:focus, .wpcf7 textarea:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
}
.wpcf7 label { display: block; font-weight: 600; margin-bottom: .35rem; }
.wpcf7 p { margin: 0 0 1.1rem; }
.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: .9rem 2rem;
	font-weight: 600;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--primary-dark); }

@media (max-width: 781px) {
	.nw-hide-mobile { display: none !important; }
}

/* En-tête / pied de page */
.nw-btn-small .wp-block-button__link { padding: .6rem 1.25rem; font-size: .9rem; }
.nw-plain-list { list-style: none; padding-left: 0; line-height: 2; }
.nw-footer-contact { line-height: 2; }
.nw-footer-sep { border: 0; border-top: 1px solid #2A2A2A !important; margin: 3rem auto 1.5rem !important; background: none !important; }

/* Logo : l'image est carrée sur fond blanc, on la découpe en cercle */
.nw-logo { margin: 0 !important; }
.nw-logo img { border-radius: 50%; display: block; }
