/* =========================================================================
 * ELVERA — Front-end complet
 * Header, footer, homepage, grilles produits.
 * Les variables de couleur viennent de main.css
 * ========================================================================= */

/* -------------------------------------------------------------------------
 * BASE
 * ------------------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--elvera-font-body);
	color: var(--elvera-ink);
	background: var(--elvera-bg);
	line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.ev-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.ev-container--narrow { max-width: 760px; }

.ev-skip {
	position: absolute;
	left: -9999px;
}
.ev-skip:focus {
	left: 12px; top: 12px;
	z-index: 100000;
	padding: 10px 16px;
	background: #fff;
	border-radius: 6px;
}

/* -------------------------------------------------------------------------
 * TYPOGRAPHIE
 * ------------------------------------------------------------------------- */
.ev-eyebrow {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--elvera-grey);
}
.ev-eyebrow--center { text-align: center; }

.ev-h2 {
	margin: 0 0 22px;
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--elvera-black);
}
.ev-h2--center { text-align: center; }

/* -------------------------------------------------------------------------
 * BOUTONS
 * ------------------------------------------------------------------------- */
.ev-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border: 1px solid transparent;
	border-radius: var(--elvera-radius-sm);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.18s ease, background 0.18s ease;
}

.ev-btn--primary { background: var(--elvera-black); color: #fff; }
.ev-btn--primary:hover { opacity: 0.86; }

.ev-btn--ghost {
	background: transparent;
	color: var(--elvera-black);
	border-color: var(--elvera-line);
}
.ev-btn--ghost:hover { border-color: var(--elvera-black); }

.ev-btn--lg { padding: 17px 40px; font-size: 16px; }

/* -------------------------------------------------------------------------
 * BARRE D'ANNONCE
 * ------------------------------------------------------------------------- */
.ev-announce {
	background: var(--elvera-black);
	color: #fff;
	text-align: center;
	overflow: hidden;
}

.ev-announce__track {
	position: relative;
	height: 38px;
}

.ev-announce__item {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	opacity: 0;
	transition: opacity 0.45s ease;
	pointer-events: none;
}

.ev-announce__item.is-active { opacity: 1; }

/* -------------------------------------------------------------------------
 * HEADER
 * ------------------------------------------------------------------------- */
.ev-header {
	position: sticky;
	top: 0;
	z-index: var(--elvera-z-header);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--elvera-line);
	transition: box-shadow 0.2s ease;
}

.ev-header.is-scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06); }

.ev-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 14px 24px;
}

.ev-header__brand { flex: 0 0 auto; }
.ev-header__brand img { max-height: 38px; width: auto; }

.ev-logo-text {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--elvera-black);
}
.ev-logo-text--light { color: #fff; }

/* Navigation desktop */
.ev-nav { flex: 1 1 auto; }

.ev-nav__list {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ev-nav__list a {
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	color: var(--elvera-ink);
	transition: opacity 0.15s ease;
}
.ev-nav__list a:hover { opacity: 0.55; }

/* Actions */
.ev-header__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.ev-icon-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	color: var(--elvera-ink);
	cursor: pointer;
	border-radius: 8px;
	transition: background 0.15s ease;
}
.ev-icon-btn:hover { background: var(--elvera-bg-soft); }

.ev-cart-count {
	position: absolute;
	top: 4px; right: 2px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--elvera-black);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}

/* Burger */
.ev-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.ev-burger span {
	display: block;
	width: 20px;
	height: 1.5px;
	margin: 0 auto;
	background: var(--elvera-black);
	transition: transform 0.25s ease, opacity 0.2s ease;
}

/* -------------------------------------------------------------------------
 * NAVIGATION MOBILE
 * ------------------------------------------------------------------------- */
.ev-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 9500;
	background: rgba(10, 10, 10, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ev-mobile-nav.is-open { opacity: 1; visibility: visible; }

.ev-mobile-nav__panel {
	position: absolute;
	top: 0; left: 0; bottom: 0;
	width: min(85vw, 340px);
	padding: 28px 24px;
	background: #fff;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ev-mobile-nav.is-open .ev-mobile-nav__panel { transform: none; }

.ev-mobile-nav__close {
	position: absolute;
	top: 14px; right: 16px;
	width: 36px; height: 36px;
	border: 0;
	background: none;
	font-size: 30px;
	line-height: 1;
	color: var(--elvera-grey);
	cursor: pointer;
}

.ev-mobile-nav__list {
	margin: 44px 0 0;
	padding: 0;
	list-style: none;
}
.ev-mobile-nav__list li { border-bottom: 1px solid var(--elvera-line); }
.ev-mobile-nav__list a {
	display: block;
	padding: 16px 0;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
}

.ev-mobile-nav__account {
	display: block;
	margin-top: 24px;
	font-size: 14px;
	color: var(--elvera-grey);
}

.ev-mobile-nav__ruo {
	margin-top: 32px;
	font-size: 11px;
	line-height: 1.5;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #a0a0a0;
}

/* -------------------------------------------------------------------------
 * HERO
 * ------------------------------------------------------------------------- */
.ev-hero {
	padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px);
	text-align: center;
	background: linear-gradient(180deg, var(--elvera-bg-soft) 0%, #fff 100%);
}

.ev-hero__title {
	margin: 0 auto 22px;
	max-width: 15ch;
	font-size: clamp(36px, 6vw, 68px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.035em;
	color: var(--elvera-black);
}

.ev-hero__sub {
	max-width: 62ch;
	margin: 0 auto 34px;
	font-size: clamp(15px, 1.6vw, 18px);
	line-height: 1.65;
	color: var(--elvera-grey);
}

.ev-hero__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 40px;
}

.ev-hero__specs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--elvera-grey);
}
.ev-hero__specs li { position: relative; }
.ev-hero__specs li:not(:last-child)::after {
	content: "";
	position: absolute;
	right: -14px; top: 50%;
	width: 3px; height: 3px;
	border-radius: 50%;
	background: #c8c8c8;
	transform: translateY(-50%);
}

/* -------------------------------------------------------------------------
 * PROBLÈME
 * ------------------------------------------------------------------------- */
.ev-problem { padding: clamp(56px, 7vw, 96px) 0; }

.ev-problem p {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.75;
	color: #3d3d3d;
}

.ev-problem__kicker {
	margin-top: 30px !important;
	padding-top: 26px;
	border-top: 1px solid var(--elvera-line);
	font-size: 19px !important;
	font-weight: 600;
	color: var(--elvera-black) !important;
}

/* -------------------------------------------------------------------------
 * MÉCANISME
 * ------------------------------------------------------------------------- */
.ev-mechanism {
	padding: clamp(56px, 7vw, 96px) 0;
	background: var(--elvera-bg-soft);
}

.ev-mech__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin-top: 48px;
}

.ev-mech__item {
	padding: 30px 26px;
	background: #fff;
	border: 1px solid var(--elvera-line);
	border-radius: var(--elvera-radius);
}

.ev-mech__num {
	display: block;
	margin-bottom: 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #b8b8b8;
}

.ev-mech__item h3 {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 600;
	color: var(--elvera-black);
}

.ev-mech__item p {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--elvera-grey);
}

/* -------------------------------------------------------------------------
 * CATALOGUE
 * ------------------------------------------------------------------------- */
.ev-catalog { padding: clamp(56px, 7vw, 96px) 0; }

.ev-catalog__sub {
	max-width: 58ch;
	margin: 0 auto 40px;
	text-align: center;
	font-size: 15px;
	color: var(--elvera-grey);
}

/* Navigation par catégorie */
.ev-catnav {
	position: sticky;
	top: 68px;
	z-index: 50;
	display: flex;
	gap: 8px;
	margin-bottom: 48px;
	padding: 12px 0;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	overflow-x: auto;
	scrollbar-width: none;
}
.ev-catnav::-webkit-scrollbar { display: none; }

.ev-catnav__link {
	flex: 0 0 auto;
	padding: 9px 16px;
	border: 1px solid var(--elvera-line);
	border-radius: 100px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.18s ease;
}
.ev-catnav__link span { color: #b0b0b0; margin-right: 6px; }
.ev-catnav__link:hover,
.ev-catnav__link.is-active {
	background: var(--elvera-black);
	border-color: var(--elvera-black);
	color: #fff;
}
.ev-catnav__link.is-active span { color: rgba(255, 255, 255, 0.5); }

.ev-catblock { margin-bottom: 72px; scroll-margin-top: 130px; }

.ev-catblock__num {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--elvera-grey);
}

.ev-catblock__head h3 {
	margin: 0 0 28px;
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--elvera-black);
}

/* -------------------------------------------------------------------------
 * GRILLE PRODUITS (surcharge WooCommerce)
 * ------------------------------------------------------------------------- */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	padding: 16px;
	border: 1px solid var(--elvera-line);
	border-radius: var(--elvera-radius);
	background: #fff;
	text-align: left;
	transition: border-color 0.18s ease, transform 0.18s ease;
}
.woocommerce ul.products li.product:hover {
	border-color: #c4c4c4;
	transform: translateY(-2px);
}

.woocommerce ul.products li.product img {
	margin-bottom: 14px;
	border-radius: var(--elvera-radius-sm);
	background: var(--elvera-bg-soft);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 600;
	color: var(--elvera-black);
}

.woocommerce ul.products li.product .price {
	display: block;
	margin: 6px 0 14px;
	font-size: 14px !important;
	color: var(--elvera-grey) !important;
}

.woocommerce ul.products li.product .button {
	display: block;
	width: 100%;
	padding: 11px 16px !important;
	border-radius: var(--elvera-radius-sm) !important;
	background: var(--elvera-black) !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 600;
	text-align: center;
	text-transform: none;
}
.woocommerce ul.products li.product .button:hover { opacity: 0.85; }

.woocommerce ul.products li.product .onsale {
	top: 10px; left: 10px;
	right: auto;
	min-height: 0;
	min-width: 0;
	padding: 4px 10px;
	border-radius: 100px;
	background: var(--elvera-black);
	font-size: 11px;
	line-height: 1.4;
}

/* -------------------------------------------------------------------------
 * HANDLING
 * ------------------------------------------------------------------------- */
.ev-handling {
	padding: clamp(56px, 7vw, 96px) 0;
	background: var(--elvera-bg-soft);
}

.ev-handling p {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.75;
	color: #3d3d3d;
}

.ev-handling__strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}
.ev-handling__strip li {
	padding: 8px 14px;
	border: 1px solid var(--elvera-line);
	border-radius: 100px;
	background: #fff;
	font-size: 12px;
	font-weight: 500;
	color: #4a4a4a;
}

/* -------------------------------------------------------------------------
 * OBJECTION
 * ------------------------------------------------------------------------- */
.ev-objection { padding: clamp(56px, 7vw, 96px) 0; }
.ev-objection p {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.75;
	color: #3d3d3d;
}

/* -------------------------------------------------------------------------
 * FAQ
 * ------------------------------------------------------------------------- */
.ev-faq {
	padding: clamp(56px, 7vw, 96px) 0;
	background: var(--elvera-bg-soft);
}

.ev-faq__item {
	border-bottom: 1px solid var(--elvera-line);
}
.ev-faq__item:first-of-type { border-top: 1px solid var(--elvera-line); }

.ev-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--elvera-black);
	cursor: pointer;
	list-style: none;
}
.ev-faq__item summary::-webkit-details-marker { display: none; }

.ev-faq__item summary::after {
	content: "+";
	flex: 0 0 auto;
	margin-left: 20px;
	font-size: 22px;
	font-weight: 300;
	color: var(--elvera-grey);
	transition: transform 0.2s ease;
}
.ev-faq__item[open] summary::after { transform: rotate(45deg); }

.ev-faq__body {
	padding: 0 0 22px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--elvera-grey);
}

/* -------------------------------------------------------------------------
 * CTA FINAL
 * ------------------------------------------------------------------------- */
.ev-final {
	padding: clamp(64px, 8vw, 110px) 0;
	text-align: center;
}

.ev-final__sub {
	max-width: 52ch;
	margin: 0 auto 32px;
	font-size: 16px;
	color: var(--elvera-grey);
}

.ev-final__ruo {
	margin-top: 24px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #a8a8a8;
}

/* -------------------------------------------------------------------------
 * BANDEAU RÉASSURANCE
 * ------------------------------------------------------------------------- */
.ev-trust {
	padding: 34px 0;
	border-top: 1px solid var(--elvera-line);
	border-bottom: 1px solid var(--elvera-line);
	background: var(--elvera-bg-soft);
}

.ev-trust__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 24px;
}

.ev-trust__item strong {
	display: block;
	margin-bottom: 3px;
	font-size: 14px;
	font-weight: 600;
	color: var(--elvera-black);
}
.ev-trust__item span {
	font-size: 12.5px;
	color: var(--elvera-grey);
}

/* -------------------------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------------------------- */
.ev-footer {
	padding: 64px 0 32px;
	background: var(--elvera-black);
	color: #b5b5b5;
}

.ev-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.6fr;
	gap: 44px;
	padding-bottom: 48px;
}

.ev-footer__brand img { max-height: 34px; width: auto; margin-bottom: 16px; }
.ev-footer__brand p {
	margin: 14px 0 0;
	max-width: 34ch;
	font-size: 13.5px;
	line-height: 1.7;
}

.ev-footer h3 {
	margin: 0 0 16px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
}

.ev-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ev-footer__list li { margin-bottom: 10px; }
.ev-footer__list a {
	font-size: 13.5px;
	text-decoration: none;
	color: #b5b5b5;
	transition: color 0.15s ease;
}
.ev-footer__list a:hover { color: #fff; }

.ev-footer__news p { margin: 0 0 14px; font-size: 13.5px; }

.ev-news-form { display: flex; gap: 8px; }
.ev-news-form input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 11px 14px;
	border: 1px solid #2e2e2e;
	border-radius: var(--elvera-radius-sm);
	background: #151515;
	color: #fff;
	font-family: inherit;
	font-size: 13.5px;
}
.ev-news-form input::placeholder { color: #6a6a6a; }
.ev-news-form input:focus { outline: none; border-color: #4a4a4a; }

.ev-news-form button {
	flex: 0 0 auto;
	padding: 11px 18px;
	border: 0;
	border-radius: var(--elvera-radius-sm);
	background: #fff;
	color: var(--elvera-black);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}
.ev-news-form button:hover { opacity: 0.88; }

.ev-news-note { margin-top: 10px; font-size: 13px; color: #7bd39a; }

.ev-footer__bottom {
	padding-top: 26px;
	border-top: 1px solid #232323;
}
.ev-footer__copy { margin: 0 0 10px; font-size: 12.5px; }
.ev-footer__legal {
	margin: 0;
	max-width: 80ch;
	font-size: 11.5px;
	line-height: 1.6;
	color: #757575;
}

/* -------------------------------------------------------------------------
 * RESPONSIVE
 * ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.ev-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
	.ev-burger { display: flex; }
	.ev-nav { display: none; }
	.ev-header__brand { flex: 1 1 auto; }
	.ev-header__inner { gap: 12px; }
}

@media (max-width: 640px) {
	.ev-container { padding: 0 18px; }
	.ev-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.ev-trust__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
	.ev-catnav { top: 62px; }
	.ev-hero__cta .ev-btn { width: 100%; }
	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.woocommerce ul.products li.product { padding: 12px; }
}
