/*
Theme Name: HVI Astra
Template: astra
Description: Thème enfant d'Astra pour H.V.I. (Hiesse Véhicules Incendie).
Author: Anjo Créatif
Version: 1.0.0
Text Domain: hvi-astra
*/

/* Polices hébergées en local (RGPD) */
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:400;font-display:swap;src:url('polices/barlow-condensed-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:400;font-display:swap;src:url('polices/barlow-condensed-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:700;font-display:swap;src:url('polices/barlow-condensed-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:700;font-display:swap;src:url('polices/barlow-condensed-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url('polices/barlow-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url('polices/barlow-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Barlow';font-style:normal;font-weight:700;font-display:swap;src:url('polices/barlow-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Barlow';font-style:normal;font-weight:700;font-display:swap;src:url('polices/barlow-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
	--hvi-rouge: #a50909;
	--hvi-rouge-fonce: #7a0606;
	--hvi-noir: #161616;
	--hvi-gris: #f3f3f1;
	--hvi-texte: #2a2a2a;
}

/* Lien d'évitement visible au clavier (accessibilité) */
.skip-link:focus {
	background: var(--hvi-noir);
	color: #fff;
	padding: 12px 18px;
	z-index: 100000;
}

/* Focus visible sur tous les éléments interactifs */
a:focus-visible,
button:focus-visible,
.elementor-button:focus-visible {
	outline: 3px solid var(--hvi-rouge);
	outline-offset: 3px;
}

/* Titres centrés (Elementor) */
.hvi-centre,
.hvi-centre .elementor-heading-title {
	text-align: center;
}

/* Cartes de la gamme : marge intérieure du texte */
.hvi-carte .elementor-image-box-content {
	padding: 0 22px;
}
.hvi-carte .elementor-image-box-img img {
	aspect-ratio: 20 / 13;
	object-fit: cover;
	width: 100%;
}
.hvi-carte {
	transition: transform .2s ease, box-shadow .2s ease;
}
.hvi-carte:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}
@media (prefers-reduced-motion: reduce) {
	.hvi-carte,
	.hvi-carte:hover {
		transition: none;
		transform: none;
	}
}

/* Bandeau d'accueil : voile sombre pour la lisibilité du texte */
.hvi-hero {
	position: relative;
	isolation: isolate;
}
.hvi-hero::before {
	content: "" !important; /* Elementor remet content:none sur .e-con::before */
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(10, 10, 10, .9) 0%, rgba(10, 10, 10, .7) 50%, rgba(10, 10, 10, .3) 100%);
}
@media (max-width: 767px) {
	.hvi-hero::before {
		background: rgba(10, 10, 10, .72);
	}
}

/* ===== Design d'origine : bannière H.V.I., menu sombre, Barlow Condensed (titres) / Barlow (texte) ===== */
body,
.entry-content p {
	font-family: "Barlow", Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6,
.entry-title {
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-weight: 700;
}

/* Bannière d'origine */
.site-header {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
.hvi-banniere {
	background: #fff;
	line-height: 0;
	text-align: center;
}
.hvi-banniere a {
	display: block;
	margin: 0 !important; /* Astra ajoute une marge aux liens de l'en-tête */
}
.hvi-banniere img {
	width: 100%;
	max-width: 1600px;
	height: auto;
	aspect-ratio: 8 / 1;
	object-fit: cover;
}

/* Le nom du site est dans la bannière : titre texte masqué visuellement */
.ast-primary-header-bar .site-branding {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Bande de menu sombre (dégradé de l'ancien thème) */
.ast-primary-header-bar,
.ast-primary-header-bar.ast-header-break-point,
.main-header-bar {
	background: linear-gradient(180deg, #000 0%, #555 45%, #2a2a2a 55%, #000 100%) !important;
	border-bottom: 3px solid var(--hvi-rouge);
}
.ast-primary-header-bar .site-primary-header-wrap,
.ast-primary-header-bar .ast-builder-grid-row,
.ast-primary-header-bar.main-header-bar {
	min-height: 40px !important;
}
.main-header-menu > .menu-item > .menu-link {
	line-height: 40px !important;
}
.ast-primary-header-bar.main-header-bar {
	padding-top: 0;
	padding-bottom: 0;
}
@media (min-width: 922px) {
	.ast-primary-header-bar .ast-builder-grid-row {
		display: flex;
		justify-content: center;
	}
	.main-header-menu {
		justify-content: center;
	}
}
.main-header-menu > .menu-item > .menu-link {
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-weight: 700;
	font-size: 17px;
	text-transform: none;
	letter-spacing: .01em;
	padding: 0 1em;
	color: #fff;
}
.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .menu-item:focus-within > .menu-link,
.main-header-menu > .current-menu-item > .menu-link,
.main-header-menu > .current-menu-ancestor > .menu-link {
	color: #fff;
	background: linear-gradient(180deg, #a50909 0%, #c8322f 50%, #a50909 100%);
}
/* Sous-menus */
.main-header-menu .sub-menu {
	background: #fff;
	border-top: 3px solid var(--hvi-rouge);
}
.main-header-menu .sub-menu .menu-link {
	font-family: "Barlow", Arial, sans-serif;
	color: #222;
}
.main-header-menu .sub-menu .menu-link:hover {
	background: var(--hvi-rouge);
	color: #fff;
}
@media (min-width: 922px) and (max-width: 1240px) {
	.main-header-menu > .menu-item > .menu-link {
		font-size: 15px;
		padding: 0 .6em;
	}
}
/* Menu mobile */
.ast-mobile-menu-trigger-minimal,
.menu-toggle .ast-mobile-svg {
	color: #fff;
	fill: #fff;
}
.ast-mobile-header-wrap .ast-primary-header-bar .ast-builder-grid-row {
	justify-content: flex-end;
}
#ast-mobile-header .main-header-menu {
	background: #111;
}
#ast-mobile-header .main-header-menu .menu-link,
#ast-mobile-header .main-header-menu > .menu-item > .menu-link {
	background: transparent !important; /* Astra met un fond blanc */
	color: #fff !important;
	border-color: #333;
	padding: 14px 20px;
	line-height: 1.4;
}
#ast-mobile-header .main-header-menu .menu-link:hover,
#ast-mobile-header .main-header-menu .current-menu-item > .menu-link {
	background: var(--hvi-rouge) !important;
}
#ast-mobile-header .main-header-menu .ast-menu-toggle {
	color: #fff;
}

/* Boutons : noirs, rouges au survol */
.elementor-button,
.ast-button,
button,
input[type="submit"] {
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-weight: 700;
}

/* Pied de page noir, liens orange, bandeau gris */
.site-footer,
.site-primary-footer-wrap,
.site-above-footer-wrap {
	background: #000 !important;
	color: #fff;
}
.site-footer a {
	color: #f0ad4e;
}
.site-footer a:hover,
.site-footer a:focus-visible {
	color: #fff;
}
.site-below-footer-wrap {
	background: #3a3a3a !important;
	color: #ddd;
	font-size: 13px;
}
.site-below-footer-wrap a {
	color: #fff;
}

/* Mobile : bande de menu plus fine et icône blanche */
@media (max-width: 921px) {
	#ast-mobile-header .ast-primary-header-bar .site-primary-header-wrap,
	#ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row {
		min-height: 40px;
	}
	#ast-mobile-header .ast-primary-header-bar,
	#ast-mobile-header .main-header-bar {
		padding-top: 0;
		padding-bottom: 0;
		min-height: 40px;
	}
	.ast-header-break-point .menu-toggle,
	.ast-header-break-point .menu-toggle:hover,
	.ast-header-break-point .menu-toggle:focus {
		color: #fff !important;
		background: transparent !important;
	}
	.ast-header-break-point .menu-toggle .ast-mobile-svg {
		fill: #fff !important;
	}
}

/* Fiches véhicules */
.hvi-pastille {
	display: inline-block;
	background: var(--hvi-rouge);
	color: #fff;
	padding: 4px 14px;
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	letter-spacing: .03em;
}
.hvi-galerie img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

/* Champs de formulaire dans la police du texte */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
	font-family: "Barlow", Arial, sans-serif;
}
