/* =========================================================================
   JV Menuiserie — styles de présentation
   Chargé sur le front ET dans l'éditeur (voir functions.php).
   Toutes les couleurs proviennent des presets theme.json (--wp--preset--*),
   donc modifier la palette dans l'éditeur met aussi ces composants à jour.
   ========================================================================= */

/* --- Titres en Archivo « Expanded » (axe de chasse de la police variable) --- */
.has-archivo-expanded-font-family,
h1, h2, h3, h4,
.wp-block-site-title,
.wp-block-post-title { font-stretch: 125%; }

/* --- Étiquette « mono » (sur-titre technique) --- */
.is-style-jv-eyebrow {
	font-family: var(--wp--preset--font-family--space-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 700;
	line-height: 1.4;
}

/* --- Boutons : variante fantôme (sur fond sombre) & contour foncé --- */
.wp-block-button.is-style-jv-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--blanc);
	border: 2px solid rgba(246, 241, 232, 0.4);
}
.wp-block-button.is-style-jv-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-jv-ghost .wp-block-button__link:focus {
	border-color: var(--wp--preset--color--blanc);
	background: transparent;
}
.wp-block-button.is-style-jv-outline-dark .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--noir);
	border: 2px solid var(--wp--preset--color--noir);
}
.wp-block-button.is-style-jv-outline-dark .wp-block-button__link:hover,
.wp-block-button.is-style-jv-outline-dark .wp-block-button__link:focus {
	background: var(--wp--preset--color--noir);
	color: var(--wp--preset--color--blanc);
}

/* --- En-tête collant translucide --- */
.wp-block-template-part.jv-site-header,
header.jv-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(251, 249, 244, 0.9);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(110, 102, 92, 0.2);
}
.jv-tel-link { font-family: var(--wp--preset--font-family--space-mono); font-weight: 700; }

/* --- Hero : trame quadrillée en surimpression --- */
.jv-hero { position: relative; overflow: hidden; }
.jv-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.18;
	background-image:
		linear-gradient(rgba(110, 102, 92, 0.2) 1px, transparent 1px),
		linear-gradient(90deg, rgba(110, 102, 92, 0.2) 1px, transparent 1px);
	background-size: 52px 52px;
}
.jv-hero > * { position: relative; z-index: 1; }

/* --- Carte (encadré clair sur fond, ex. liste prestations du hero) --- */
.is-style-jv-card {
	border: 1px solid rgba(245, 154, 75, 0.25);
	border-radius: 12px;
}

/* --- Cartes de service --- */
.jv-service-card {
	background: var(--wp--preset--color--blanc-pur);
	border: 1px solid rgba(110, 102, 92, 0.2);
	border-radius: 10px;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
}
/* Image (remplaçable) en haut d'une carte de service */
.jv-service-img { margin: 0 0 1rem; }
.jv-service-img img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}
/* Image éditable de la zone d'intervention */
.jv-zone-img img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}
.jv-service-card:hover {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--orange);
	box-shadow: 0 18px 40px -24px rgba(241, 85, 30, 0.5);
}
.jv-service-icon {
	width: 46px;
	height: 46px;
	border-radius: 9px;
	background: rgba(241, 85, 30, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
}

/* --- Chiffres-clés « À propos » --- */
.jv-stat { border-top: 2px solid var(--wp--preset--color--orange); }
.jv-stat .jv-stat-num {
	font-family: var(--wp--preset--font-family--archivo-expanded);
	font-stretch: 125%;
	font-weight: 800;
	line-height: 1.1;
}

/* --- Zone d'intervention : pastilles de communes --- */
.jv-communes .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ambre);
	border: 1px solid rgba(245, 154, 75, 0.35);
	font-family: var(--wp--preset--font-family--space-mono);
	font-weight: 400;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	padding: 7px 13px;
	pointer-events: none;
}

/* --- Encart carte (zone) --- */
.jv-mapbox {
	border: 1px solid rgba(245, 154, 75, 0.25);
	border-radius: 12px;
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.jv-pin-dot {
	width: 16px; height: 16px;
	background: var(--wp--preset--color--orange);
	border-radius: 50%;
	margin: 0 auto 10px;
	box-shadow: 0 0 0 8px rgba(241, 85, 30, 0.18);
}

/* --- Avis Google --- */
.jv-google-logo {
	width: 46px; height: 46px;
	border-radius: 50%;
	background: var(--wp--preset--color--papier);
	border: 1px solid rgba(110, 102, 92, 0.2);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--wp--preset--font-family--archivo-expanded);
	font-weight: 800; font-size: 22px; color: #4285F4;
}
.jv-stars { color: #F5A623; letter-spacing: 2px; }
.jv-review-card {
	background: var(--wp--preset--color--blanc-pur);
	border: 1px solid rgba(110, 102, 92, 0.2);
	border-radius: 10px;
	height: 100%;
}
.jv-avatar {
	width: 40px; height: 40px;
	border-radius: 50%;
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; flex: none;
}
.jv-google-mini {
	margin-left: auto;
	font-family: var(--wp--preset--font-family--archivo-expanded);
	font-weight: 800; color: #4285F4; font-size: 15px;
}

/* --- Formulaire de devis natif --- */
.jv-form-wrap {
	background: var(--wp--preset--color--blanc-pur);
	border: 1px solid rgba(110, 102, 92, 0.2);
	border-radius: 12px;
}
.jv-devis-form .jv-field { margin: 0 0 1rem; }
.jv-devis-form .jv-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem;
}
.jv-devis-form label {
	display: block;
	margin-bottom: 0.45rem;
	font-family: var(--wp--preset--font-family--space-mono);
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gris);
}
.jv-devis-form .jv-req { color: var(--wp--preset--color--orange); }
.jv-devis-form input:not([type="checkbox"]),
.jv-devis-form select,
.jv-devis-form textarea {
	width: 100%;
	border: 1px solid rgba(110, 102, 92, 0.2);
	border-radius: 8px;
	padding: 12px 13px;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 0.9rem;
	background: var(--wp--preset--color--papier);
	color: var(--wp--preset--color--noir);
}
.jv-devis-form input:focus,
.jv-devis-form select:focus,
.jv-devis-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--orange);
	border-color: transparent;
}
/* Pot de miel anti-spam : masqué pour les humains */
.jv-devis-form .jv-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.jv-devis-form .jv-consent label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	text-transform: none;
	letter-spacing: 0;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 0.8rem;
	color: var(--wp--preset--color--gris);
}
.jv-devis-form .jv-consent input { margin-top: 0.2rem; flex: none; }
.jv-devis-form .jv-submit {
	width: 100%;
	border: none;
	cursor: pointer;
	background: var(--wp--preset--color--orange);
	color: #fff;
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 700;
	font-size: 0.95rem;
	padding: 0.9rem 1.4rem;
	border-radius: 40px;
	transition: background 0.2s ease;
}
.jv-devis-form .jv-submit:hover,
.jv-devis-form .jv-submit:focus { background: #d8430f; }
.jv-devis-form .jv-form-legal {
	margin: 0.85rem 0 0;
	font-size: 0.72rem;
	color: var(--wp--preset--color--gris);
}
.jv-form-notice {
	border-radius: 8px;
	padding: 0.85rem 1rem;
	margin-bottom: 1.1rem;
	font-size: 0.9rem;
	font-weight: 600;
}
.jv-form-notice--ok {
	background: rgba(60, 140, 60, 0.12);
	border: 1px solid rgba(60, 140, 60, 0.5);
	color: #2c6e2c;
}
.jv-form-notice--err {
	background: rgba(241, 85, 30, 0.1);
	border: 1px solid rgba(241, 85, 30, 0.5);
	color: #b3380c;
}
@media (max-width: 600px) {
	.jv-devis-form .jv-field-row { grid-template-columns: 1fr; }
}

/* --- Pied de page : crédit PROXYWEB --- */
.jv-credit {
	font-family: var(--wp--preset--font-family--space-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.jv-credit .jv-heart { color: var(--wp--preset--color--orange); }

/* --- Galerie de réalisations : coins arrondis + légendes lisibles --- */
.wp-block-gallery.is-style-jv-gallery img { border-radius: 10px; }
.wp-block-gallery.is-style-jv-gallery figcaption {
	font-family: var(--wp--preset--font-family--space-mono);
	font-size: 0.625rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* --- Petits écrans : la navigation passe en menu hamburger natif --- */
@media (max-width: 600px) {
	.jv-tel-link { display: none; }
}
