/**
 * escooter.tn — palette automobile.tn
 * Noir · Blanc · Rouge
 */

:root {
	--esco-black: #0d0d0d;
	--esco-black-soft: #1a1a1a;
	--esco-black-muted: #2d2d2d;
	--esco-red: #e30613;
	--esco-red-hover: #c40510;
	--esco-red-soft: rgba(227, 6, 19, 0.12);
	--esco-white: #ffffff;
	--esco-gray-50: #f7f7f7;
	--esco-gray-100: #eeeeee;
	--esco-gray-400: #9ca3af;
	--esco-gray-600: #4b5563;
	--esco-gray-900: #111827;

	/* Kadence global palette overrides */
	--global-palette1: var(--esco-red);
	--global-palette2: var(--esco-black);
	--global-palette3: var(--esco-gray-900);
	--global-palette4: var(--esco-gray-600);
	--global-palette5: var(--esco-white);
	--global-palette6: var(--esco-gray-50);
	--global-palette7: var(--esco-gray-100);
	--global-palette8: var(--esco-black-soft);
	--global-palette9: var(--esco-black);
}

/* ------------------------------------------------------------------ */
/* Base                                                               */
/* ------------------------------------------------------------------ */

body {
	color: var(--esco-gray-900);
	background-color: var(--esco-white);
}

a {
	color: var(--esco-black);
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--esco-red);
}

/* ------------------------------------------------------------------ */
/* Header — barre noire                                               */
/* ------------------------------------------------------------------ */

#masthead,
.site-header,
.site-header-wrap,
.header-navigation-wrap,
#mobile-header {
	background-color: var(--esco-black) !important;
	border-bottom: 3px solid var(--esco-red) !important;
	box-shadow: none !important;
}

.site-header .site-branding a,
.site-header .site-title,
.site-header .site-title a,
.site-header .site-description,
#masthead .header-html,
#masthead .header-html a {
	color: var(--esco-white) !important;
}

.site-header .site-title a:hover {
	color: var(--esco-red) !important;
}

/* Menu principal */
.primary-menu-container .menu > li > a,
.header-navigation .menu > li > a,
.mobile-navigation .menu > li > a,
.site-header .menu > li > a {
	color: var(--esco-white) !important;
	font-weight: 500;
	text-transform: none;
}

.primary-menu-container .menu > li > a:hover,
.primary-menu-container .menu > li.current-menu-item > a,
.primary-menu-container .menu > li.current-menu-ancestor > a,
.header-navigation .menu > li > a:hover,
.header-navigation .menu > li.current-menu-item > a {
	color: var(--esco-red) !important;
}

/* Sous-menus */
.primary-menu-container .sub-menu,
.header-navigation .sub-menu {
	background: var(--esco-black-soft) !important;
	border-top: 2px solid var(--esco-red);
}

.primary-menu-container .sub-menu a,
.header-navigation .sub-menu a {
	color: var(--esco-white) !important;
}

.primary-menu-container .sub-menu a:hover,
.header-navigation .sub-menu a:hover {
	background: var(--esco-black-muted) !important;
	color: var(--esco-red) !important;
}

/* Compte / icônes header */
.site-header .header-button,
.site-header .header-cart-wrap,
#masthead .header-account-button,
#masthead .header-account-wrap a {
	color: var(--esco-white) !important;
}

.site-header .header-account-wrap a:hover {
	color: var(--esco-red) !important;
}

/* Toggle mobile */
.menu-toggle-open .menu-toggle-icon,
.menu-toggle-open {
	color: var(--esco-white) !important;
}

/* Barre transparente → noire au scroll (Kadence) */
#masthead.is-scrolled,
.site-header.is-sticky {
	background-color: var(--esco-black) !important;
}

/* ------------------------------------------------------------------ */
/* Hero / titres de page                                              */
/* ------------------------------------------------------------------ */

.entry-hero,
.entry-hero-container-inner,
.hero-section,
.page-hero-section,
.content-bg:not(.site-content) .entry-hero-container-inner {
	background: linear-gradient(135deg, var(--esco-black) 0%, var(--esco-black-soft) 100%) !important;
}

.entry-hero .entry-title,
.entry-hero h1,
.entry-hero h1.entry-title,
.hero-section h1,
.hero-section .entry-title,
.page-hero-section h1,
.page-hero-section .entry-title {
	color: var(--esco-white) !important;
}

/* Masquer le bandeau noir (Accueil, page Actualité / blog) */
.escooter-no-entry-hero .entry-hero,
.escooter-no-entry-hero .entry-hero-container-inner,
.escooter-no-entry-hero .hero-section,
.escooter-no-entry-hero .page-hero-section {
	display: none !important;
}

.escooter-no-entry-hero .site-content {
	padding-top: 0;
}

.entry-hero .kadence-breadcrumbs,
.entry-hero .breadcrumb-container,
.entry-hero a {
	color: var(--esco-gray-400) !important;
}

.entry-hero a:hover {
	color: var(--esco-red) !important;
}

/* Bandeau titre page type "Accueil" */
.content-title-style-above .entry-header,
.entry-header.page-title {
	border-bottom: 3px solid var(--esco-red);
}

.entry-header:not(.entry-hero) .entry-title,
.site-content .entry-header .entry-title,
h1.entry-title:not(.entry-hero h1),
h1.page-title:not(.entry-hero h1) {
	color: var(--esco-black) !important;
	font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Contenu principal                                                  */
/* ------------------------------------------------------------------ */

.site-content,
.content-area,
.entry.content-bg {
	background-color: var(--esco-white);
}

.site-main {
	background-color: var(--esco-gray-50);
}

/* Cartes articles / blocs */
.entry-loop-entry,
.loop-entry,
.kb-posts-block .entry,
.wp-block-post {
	border: 1px solid var(--esco-gray-100);
	background: var(--esco-white);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.entry-loop-entry:hover,
.loop-entry:hover,
.kb-posts-block .entry:hover {
	border-color: var(--esco-red);
	box-shadow: 0 4px 20px var(--esco-red-soft);
}

.entry-loop-entry .entry-title a:hover,
.loop-entry .entry-title a:hover {
	color: var(--esco-red) !important;
}

/* Catégories / tags */
.entry-taxonomies a,
.taxonomy-category a,
.posted-on,
.entry-meta {
	color: var(--esco-gray-600) !important;
}

.entry-taxonomies a:hover {
	color: var(--esco-red) !important;
}

/* ------------------------------------------------------------------ */
/* Boutons                                                            */
/* ------------------------------------------------------------------ */

.button,
.wp-block-button__link,
.kb-button,
.kadence-conversion .kb-button,
input[type="submit"],
button[type="submit"],
.hp-form__button,
.hp-field--submit button,
.woocommerce a.button.alt {
	background-color: var(--esco-red) !important;
	border-color: var(--esco-red) !important;
	color: var(--esco-white) !important;
	border-radius: 2px;
	font-weight: 600;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.wp-block-button__link:hover,
.kb-button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.hp-form__button:hover {
	background-color: var(--esco-red-hover) !important;
	border-color: var(--esco-red-hover) !important;
	color: var(--esco-white) !important;
}

/* Bouton secondaire (contour) */
.button.button-style-outline,
.kb-btn-global-outline .kb-button {
	background: transparent !important;
	color: var(--esco-red) !important;
	border: 2px solid var(--esco-red) !important;
}

.button.button-style-outline:hover,
.kb-btn-global-outline .kb-button:hover {
	background: var(--esco-red) !important;
	color: var(--esco-white) !important;
}

/* ------------------------------------------------------------------ */
/* Footer — noir                                                      */
/* ------------------------------------------------------------------ */

.site-footer,
.site-middle-footer-wrap,
.site-bottom-footer-wrap,
.site-top-footer-wrap,
.footer-nav,
.footer-html {
	background-color: var(--esco-black) !important;
	color: var(--esco-gray-400) !important;
	border-top: 3px solid var(--esco-red) !important;
}

.site-footer a,
.footer-nav a,
.site-footer .footer-menu a {
	color: var(--esco-white) !important;
}

.site-footer a:hover,
.footer-nav a:hover {
	color: var(--esco-red) !important;
}

.site-footer .site-title,
.site-footer .footer-html {
	color: var(--esco-white) !important;
}

/* ------------------------------------------------------------------ */
/* HivePress (annonces, recherche, formulaires)                       */
/* ------------------------------------------------------------------ */

.hp-page__title,
.hp-section__title,
.hp-listing__title a {
	color: var(--esco-black);
}

.hp-listing__title a:hover {
	color: var(--esco-red);
}

.hp-menu--listing-manage .hp-menu__item--current,
.hp-menu__item--current a {
	color: var(--esco-red) !important;
	border-color: var(--esco-red) !important;
}

.hp-form__header,
.hp-page__header {
	border-bottom: 2px solid var(--esco-red);
}

.hp-field--number-range .ui-slider-range,
.hp-range-slider .ui-slider-range {
	background: var(--esco-red) !important;
}

.hp-field input:focus,
.hp-field select:focus,
.hp-field textarea:focus,
input:focus,
select:focus,
textarea:focus {
	border-color: var(--esco-red) !important;
	box-shadow: 0 0 0 1px var(--esco-red-soft);
	outline: none;
}

.hp-listing--featured,
.hp-listing.hp-listing--featured {
	border-left: 4px solid var(--esco-red);
}

.hp-badge,
.hp-listing__featured-badge {
	background: var(--esco-red) !important;
	color: var(--esco-white) !important;
}

.hp-pagination .current,
.page-numbers.current {
	background: var(--esco-red) !important;
	border-color: var(--esco-red) !important;
	color: var(--esco-white) !important;
}

/* Barre recherche occasion */
.hp-form--listing-search,
.hp-form--listing-filter {
	background: var(--esco-white);
	border: 1px solid var(--esco-gray-100);
}

/* Champs formulaire — fond blanc (Kadence force souvent le noir) */
.hp-form input[type="text"],
.hp-form input[type="search"],
.hp-form input[type="number"],
.hp-form input[type="email"],
.hp-form input[type="tel"],
.hp-form input[type="url"],
.hp-form input[type="date"],
.hp-form select,
.hp-form textarea,
.hp-field input[type="text"],
.hp-field input[type="search"],
.hp-field input[type="number"],
.hp-field input[type="email"],
.hp-field input[type="tel"],
.hp-field select,
.hp-field textarea,
.hp-form--listing-search input,
.hp-form--listing-search select,
.hp-form--listing-filter input,
.hp-form--listing-filter select,
.hp-form--listing-filter textarea,
.hp-page .hp-form input,
.hp-page .hp-form select,
.hp-page .hp-form textarea,
.site-content .hp-form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.site-content .hp-form select,
.site-content .hp-form textarea {
	background-color: var(--esco-white) !important;
	color: var(--esco-gray-900) !important;
	border: 1px solid var(--esco-gray-100) !important;
	border-radius: 2px;
}

.hp-form input::placeholder,
.hp-form textarea::placeholder,
.hp-field input::placeholder {
	color: var(--esco-gray-400) !important;
	opacity: 1;
}

.hp-field__label,
.hp-form__label,
.hp-form label,
.hp-field > label {
	color: var(--esco-black) !important;
}

.hp-form select,
.hp-field select {
	appearance: auto;
	background-image: none;
}

/* Hero pattern — boutons contour sur fond noir */
.escooter-hero-pattern .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--esco-white) !important;
	border: 2px solid var(--esco-white) !important;
}

.escooter-hero-pattern .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--esco-red) !important;
	color: var(--esco-red) !important;
}

/* ------------------------------------------------------------------ */
/* Shortcode [escooter_brands] — marques (page Neuf)                  */
/* ------------------------------------------------------------------ */

.escooter-brands {
	margin: 1.5rem 0 2rem;
}

.escooter-brands__grid {
	display: grid;
	grid-template-columns: repeat(var(--esco-brand-cols, 4), minmax(0, 1fr));
	gap: 1rem;
}

@media (max-width: 900px) {
	.escooter-brands__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.escooter-brands__grid {
		grid-template-columns: 1fr;
	}
}

.escooter-brands__card {
	border: 1px solid var(--esco-gray-100);
	background: var(--esco-white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.escooter-brands__card:hover {
	border-color: var(--esco-red);
	box-shadow: 0 4px 16px var(--esco-red-soft);
}

.escooter-brands__card-link {
	display: block;
	padding: 1.25rem 1rem;
	text-decoration: none !important;
	color: inherit;
}

.escooter-brands__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	margin-bottom: 0.75rem;
}

.escooter-brands__logo img {
	max-height: 64px;
	width: auto;
	object-fit: contain;
}

.escooter-brands__logo--placeholder {
	background: var(--esco-gray-50);
	border-radius: 2px;
}

.escooter-brands__logo--placeholder span {
	font-size: 2rem;
	font-weight: 700;
	color: var(--esco-red);
}

.escooter-brands__name {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--esco-black);
	text-align: center;
}

.escooter-brands__card-link:hover .escooter-brands__name {
	color: var(--esco-red);
}

.escooter-brands__excerpt {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--esco-gray-600);
	text-align: center;
}

.escooter-brands__empty {
	padding: 1rem;
	background: var(--esco-gray-50);
	border-left: 4px solid var(--esco-red);
	color: var(--esco-gray-600);
}

/* Page Neuf — [escooter_neuf] + [escooter_models] */
.escooter-neuf-catalog__intro {
	color: var(--esco-gray-600);
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 0 0 2rem;
}

.escooter-neuf-catalog__heading {
	color: var(--esco-black);
	font-size: 1.25rem;
	margin: 2rem 0 1rem;
	padding-bottom: 6px;
	border-bottom: 3px solid var(--esco-red);
	display: inline-block;
}

.escooter-neuf-catalog__links {
	margin: 2rem 0 0;
	font-size: 0.95rem;
}

.escooter-neuf-catalog__link {
	color: var(--esco-red);
	font-weight: 600;
	text-decoration: none;
}

.escooter-neuf-catalog__link:hover {
	text-decoration: underline;
}

.escooter-neuf-catalog__sep {
	color: var(--esco-gray-400);
	margin: 0 0.5rem;
}

.escooter-models {
	margin: 0 0 1.5rem;
}

.escooter-models__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1rem;
}

.escooter-models__card {
	border: 1px solid var(--esco-gray-100);
	background: var(--esco-white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.escooter-models__card:hover {
	border-color: var(--esco-red);
	box-shadow: 0 4px 16px var(--esco-red-soft);
}

.escooter-models__link {
	display: block;
	padding: 1rem;
	text-decoration: none !important;
	color: inherit;
}

.escooter-models__thumb {
	margin-bottom: 0.75rem;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--esco-gray-50);
}

.escooter-models__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.escooter-models__title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--esco-black);
}

.escooter-models__card:hover .escooter-models__title {
	color: var(--esco-red);
}

.escooter-models__brand,
.escooter-models__price {
	margin: 0;
	font-size: 0.85rem;
	color: var(--esco-gray-600);
}

.escooter-models__price {
	color: var(--esco-red);
	font-weight: 600;
}

.escooter-models__empty {
	padding: 1rem;
	background: var(--esco-gray-50);
	border-left: 4px solid var(--esco-red);
	color: var(--esco-gray-600);
}

/* ------------------------------------------------------------------ */
/* Partage réseaux sociaux — articles                                 */
/* ------------------------------------------------------------------ */

.escooter-share {
	margin: 2.5rem 0 1rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--esco-gray-100);
	border-top: 3px solid var(--esco-red);
	background: var(--esco-gray-50);
}

.escooter-share__title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--esco-black);
}

.escooter-share__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.escooter-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	border: 1px solid var(--esco-gray-100);
	background: var(--esco-white);
	color: var(--esco-black) !important;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.escooter-share__btn:hover,
.escooter-share__btn:focus {
	border-color: var(--esco-red);
	color: var(--esco-red) !important;
}

.escooter-share__btn--facebook:hover,
.escooter-share__btn--facebook:focus {
	background: #1877f2;
	border-color: #1877f2;
	color: var(--esco-white) !important;
}

.escooter-share__btn--x:hover,
.escooter-share__btn--x:focus {
	background: #000;
	border-color: #000;
	color: var(--esco-white) !important;
}

.escooter-share__btn--whatsapp:hover,
.escooter-share__btn--whatsapp:focus {
	background: #25d366;
	border-color: #25d366;
	color: var(--esco-white) !important;
}

.escooter-share__btn--linkedin:hover,
.escooter-share__btn--linkedin:focus {
	background: #0a66c2;
	border-color: #0a66c2;
	color: var(--esco-white) !important;
}

.escooter-share__btn--email:hover,
.escooter-share__btn--email:focus {
	background: var(--esco-black);
	border-color: var(--esco-black);
	color: var(--esco-white) !important;
}

.escooter-share__btn--copy:hover,
.escooter-share__btn--copy:focus {
	background: var(--esco-red);
	border-color: var(--esco-red);
	color: var(--esco-white) !important;
}

.escooter-share__feedback {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--esco-red);
}

.escooter-share__feedback--error {
	color: var(--esco-gray-600);
}

/* ------------------------------------------------------------------ */
/* Accueil — shortcode [escooter_recent_posts]                        */
/* ------------------------------------------------------------------ */

.escooter-recent-posts {
	margin: 1.5rem 0 2.5rem;
}

.escooter-recent-posts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.escooter-recent-posts__card {
	border: 1px solid var(--esco-gray-100);
	background: var(--esco-white);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.escooter-recent-posts__card:hover {
	border-color: var(--esco-red);
	box-shadow: 0 4px 20px var(--esco-red-soft);
}

.escooter-recent-posts__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--esco-gray-50);
}

.escooter-recent-posts__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.escooter-recent-posts__body {
	padding: 1rem 1.15rem 1.15rem;
}

.escooter-recent-posts__cat {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--esco-red);
}

.escooter-recent-posts__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	line-height: 1.3;
}

.escooter-recent-posts__title a {
	color: var(--esco-black);
	text-decoration: none;
}

.escooter-recent-posts__title a:hover {
	color: var(--esco-red);
}

.escooter-recent-posts__date {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	color: var(--esco-gray-600);
}

.escooter-recent-posts__excerpt {
	margin: 0 0 0.65rem;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--esco-gray-600);
}

.escooter-recent-posts__link {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--esco-red);
	text-decoration: none;
}

.escooter-recent-posts__link:hover {
	text-decoration: underline;
}

.escooter-recent-posts__more {
	margin: 1.25rem 0 0;
	text-align: left;
}

.escooter-recent-posts__more a {
	font-weight: 600;
	color: var(--esco-red);
	text-decoration: none;
}

.escooter-recent-posts__more a:hover {
	text-decoration: underline;
}

.escooter-recent-posts__empty {
	color: var(--esco-gray-600);
	padding: 1rem;
	background: var(--esco-gray-50);
	border-left: 4px solid var(--esco-red);
}

/* ------------------------------------------------------------------ */
/* Accueil — section liens (Occasions parent · Neuf / Actualité)    */
/* ------------------------------------------------------------------ */

/* Spécificité élevée : Kadence / blocs WP ne doivent pas écraser la section */
.entry-content .escooter-home-links,
.content-wrap .escooter-home-links,
.wp-block-html .escooter-home-links {
	margin: 2rem 0 2.5rem;
	box-sizing: border-box;
}

.entry-content .escooter-home-links *,
.content-wrap .escooter-home-links * {
	box-sizing: border-box;
}

.entry-content .escooter-home-links a,
.content-wrap .escooter-home-links a {
	text-decoration: none !important;
}

.escooter-home-links__parent {
	padding: 0 0 1.25rem;
	border-left: 4px solid var(--esco-red);
	padding-left: 1.25rem;
}

.escooter-home-links__parent h3 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 700;
	color: var(--esco-black);
	line-height: 1.2;
}

.escooter-home-links__parent p {
	margin: 0 0 0.75rem;
	color: var(--esco-gray-600);
	font-size: 1rem;
	line-height: 1.5;
}

.escooter-home-links__parent a {
	color: var(--esco-red);
	font-weight: 600;
	text-decoration: none;
}

.escooter-home-links__parent a:hover {
	color: var(--esco-red-hover);
	text-decoration: underline;
}

.escooter-home-links__children {
	border: 1px solid var(--esco-gray-100);
	background: var(--esco-white);
}

.escooter-home-links__child {
	padding: 1.25rem 1.5rem;
}

.escooter-home-links__child + .escooter-home-links__child {
	border-top: 1px solid var(--esco-gray-100);
}

.escooter-home-links__child h3 {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--esco-black);
}

.escooter-home-links__child p {
	margin: 0 0 0.5rem;
	color: var(--esco-gray-600);
	font-size: 0.95rem;
	line-height: 1.45;
}

.escooter-home-links__child a {
	color: var(--esco-red);
	font-weight: 600;
	text-decoration: none;
}

.escooter-home-links__child a:hover {
	color: var(--esco-red-hover);
	text-decoration: underline;
}

@media (min-width: 768px) {
	.escooter-home-links {
		display: flex;
		align-items: stretch;
		border: 1px solid var(--esco-gray-100);
		background: var(--esco-white);
	}

	.escooter-home-links__parent {
		flex: 1 1 52%;
		padding: 1.75rem 1.75rem 1.75rem 1.5rem;
		margin: 0;
		border-left: 4px solid var(--esco-red);
		border-bottom: none;
	}

	.escooter-home-links__children {
		flex: 1 1 48%;
		border: none;
		border-left: 1px solid var(--esco-gray-100);
	}
}

/* ------------------------------------------------------------------ */
/* Comparateur (shortcode thème enfant)                               */
/* ------------------------------------------------------------------ */

.escooter-compare-wrap {
	overflow-x: auto;
	margin: 1.5rem 0;
	border: 1px solid var(--esco-gray-100);
}

.escooter-compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.escooter-compare-table th,
.escooter-compare-table td {
	border: 1px solid var(--esco-gray-100);
	padding: 0.75rem 1rem;
	text-align: left;
}

.escooter-compare-table thead th {
	background: var(--esco-black);
	color: var(--esco-white);
	border-bottom: 3px solid var(--esco-red);
}

.escooter-compare-table tbody tr:nth-child(even) {
	background: var(--esco-gray-50);
}

.escooter-compare-table tbody tr:hover td {
	background: var(--esco-red-soft);
}

.escooter-compare-notice {
	padding: 1rem;
	background: var(--esco-gray-50);
	border-left: 4px solid var(--esco-red);
}

/* ------------------------------------------------------------------ */
/* Widgets & formulaires                                              */
/* ------------------------------------------------------------------ */

.widget-title,
.wp-block-heading {
	color: var(--esco-black);
}

.widget-area .widget {
	border-top: 2px solid var(--esco-red);
}

/* Fluent Forms — page Contact */
.escooter-contact-form {
	margin: 1rem 0 2rem;
}

.fluentform,
.fluentform_wrapper_1,
.fluentform_wrapper {
	margin: 1rem 0 2rem;
}

.fluentform .ff-el-group label {
	color: var(--esco-black);
	font-weight: 600;
}

.fluentform .ff-el-input--content input,
.fluentform .ff-el-input--content textarea,
.fluentform .ff-el-input--content select {
	border: 1px solid var(--esco-gray-100);
	border-radius: 0;
	padding: 0.65rem 0.85rem;
}

.fluentform .ff-el-input--content input:focus,
.fluentform .ff-el-input--content textarea:focus,
.fluentform .ff-el-input--content select:focus {
	border-color: var(--esco-red);
	outline: none;
	box-shadow: 0 0 0 2px var(--esco-red-soft);
}

.fluentform .ff-btn-submit,
.fluentform button[type="submit"],
.fluentform .ff_submit_btn_wrapper .ff-btn-submit {
	background: var(--esco-red) !important;
	color: var(--esco-white) !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0.75rem 1.75rem !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background 0.2s ease;
}

.fluentform .ff-btn-submit:hover,
.fluentform button[type="submit"]:hover {
	background: var(--esco-red-hover) !important;
}

.fluentform .ff-message-success {
	background: var(--esco-gray-50);
	border-left: 4px solid var(--esco-red);
	color: var(--esco-gray-900);
	padding: 1rem 1.25rem;
}

.fluentform .ff-message-error,
.fluentform .error.text-danger {
	color: var(--esco-red);
}

.fluentform .ff-el-is-error .ff-el-input--content input,
.fluentform .ff-el-is-error .ff-el-input--content textarea {
	border-color: var(--esco-red);
}

/* ------------------------------------------------------------------ */
/* Admin bar front — garder lisible                                     */
/* ------------------------------------------------------------------ */

#wpadminbar {
	z-index: 99999;
}
