/*
 * Fiat 500 Passion 2026 – styles du thème.
 * Sommaire : 1. Base – 2. Composants – 3. Avis de la boutique – 4. Bandeau – 5. En-tête
 *            6. Navigation – 7. Fil d'Ariane – 8. Pied de page – 9. Téléphone
 */

/* ---------------------------------------------------------------- 1. Base */

body {
	font-family: var(--fp-font-sans);
	font-weight: 300;
	color: var(--fp-ink);
	background: var(--fp-surface);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--fp-brand-red);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--fp-brand-red-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
	outline: 2px solid var(--fp-brand-red);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--fp-font-sans);
	color: var(--fp-ink-heading);
}

.fp-container {
	max-width: var(--fp-container);
	margin: 0 auto;
	padding: 0 var(--fp-gutter);
	box-sizing: border-box;
}

.fp-icone {
	display: block;
	flex: 0 0 auto;
}

/* ---------------------------------------------------------------- 2. Composants */

.fp-section-title {
	color: var(--fp-brand-red);
	font-size: 22px;
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: 3.2px;
	text-transform: uppercase;
	text-align: center;
}

.fp-sku {
	display: inline-block;
	background: var(--fp-brand-red);
	color: var(--fp-on-brand);
	font-size: 13px;
	line-height: 24px;
	font-weight: 400;
	padding: 0 8px;
	border-radius: var(--fp-radius-none);
}

.fp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 26px;
	font-family: var(--fp-font-sans);
	text-decoration: none;
	cursor: pointer;
}

.fp-btn--primary {
	background: var(--fp-brand-red);
	color: var(--fp-on-brand);
	border: 0;
	border-radius: var(--fp-radius-none);
	font-weight: 400;
}

.fp-btn--primary:hover {
	background: var(--fp-brand-red-hover);
	color: var(--fp-on-brand);
}

.fp-btn--pill {
	background: var(--fp-surface);
	color: var(--fp-ink-black);
	border: 1px solid var(--fp-brand-red);
	border-radius: var(--fp-radius-pill);
	font-weight: 300;
}

.fp-btn--pill:hover {
	background: var(--fp-brand-red);
	color: var(--fp-on-brand);
}

/* ---------------------------------------------------------------- 3. Avis de la boutique */

.fp2026 .woocommerce-store-notice,
.fp2026 p.demo_store {
	position: static;
	margin: 0;
	padding: 10px var(--fp-gutter);
	background: var(--fp-brand-red);
	color: var(--fp-on-brand);
	font-size: 14px;
	font-weight: 400;
	text-align: center;
	box-shadow: none;
}

.fp2026 .woocommerce-store-notice a,
.fp2026 p.demo_store a {
	color: var(--fp-on-brand);
	text-decoration: underline;
}

.fp2026 .woocommerce-store-notice a.woocommerce-store-notice__dismiss-link {
	position: static;
	float: none;
	display: inline;
	margin: 0 0 0 16px;
	padding: 0;
	background: none;
	font-weight: 300;
}

.fp2026 .woocommerce-store-notice a.woocommerce-store-notice__dismiss-link::before {
	content: none;
}

/* Le widget « catégories de produits » placé dans le pied de page n'y était pas affiché sur l'ancien site. */
.fp-footer .widget_product_categories {
	display: none;
}

/* ---------------------------------------------------------------- 4. Bandeau */

.fp-topbar {
	background: var(--fp-surface-cream);
	border-bottom: 1px solid var(--fp-line-faint);
	font-size: 13.71px;
	line-height: 1.5;
}

.fp-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 24px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.fp-topbar__phone {
	color: var(--fp-ink-black);
	font-weight: 500;
}

.fp-topbar__phone span {
	font-weight: 300;
	color: var(--fp-ink);
}

/* ---------------------------------------------------------------- 5. En-tête */

.fp-header {
	background: var(--fp-surface);
	position: relative;
	z-index: 20;
}

.fp-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 40px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.fp-header__logo {
	display: block;
	flex: 0 0 auto;
}

.fp-header__logo img {
	display: block;
	width: 118px;
	height: auto;
}

.fp-header__search {
	flex: 1 1 380px;
	min-width: 0;
	max-width: 640px;
	margin: 0 auto;
}

.fp-search {
	display: flex;
	align-items: stretch;
	margin: 0;
}

.fp2026 .fp-search__field {
	flex: 1 1 auto;
	min-width: 0;
	height: 50px;
	margin: 0;
	padding: 0 16px;
	font-family: var(--fp-font-sans);
	font-size: 15px;
	font-weight: 400;
	color: var(--fp-ink);
	background: var(--fp-surface);
	border: 1px solid var(--fp-line);
	border-right: 0;
	border-radius: var(--fp-radius-none);
	box-shadow: none;
	box-sizing: border-box;
}

.fp2026 .fp-search__field:focus {
	border-color: var(--fp-brand-red);
	outline: none;
	background: var(--fp-surface);
}

.fp2026 .fp-search__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 50px;
	padding: 0;
	border: 0;
	border-radius: var(--fp-radius-none);
	background: var(--fp-brand-red);
	color: var(--fp-on-brand);
	cursor: pointer;
}

.fp2026 .fp-search__button:hover {
	background: var(--fp-brand-red-hover);
}

.fp-header__actions {
	display: flex;
	align-items: center;
	gap: 26px;
	flex: 0 0 auto;
}

.fp-header__action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	color: var(--fp-ink-black);
	font-size: 12.95px;
	line-height: 1.3;
	text-align: center;
}

.fp-header__action:hover,
.fp-header__action.is-current {
	color: var(--fp-brand-red);
}

.fp-header__cart-icon {
	position: relative;
	display: flex;
}

.fp-cart-count {
	position: absolute;
	top: -6px;
	right: -10px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: 9px;
	background: var(--fp-brand-red);
	color: var(--fp-on-brand);
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
}

.fp-cart-label {
	display: flex;
	flex-direction: column;
}

.fp-cart-total {
	font-weight: 500;
}

.fp-menu-toggle {
	display: none;
}

/* ---------------------------------------------------------------- 6. Navigation */

.fp-nav {
	border-top: 1px solid var(--fp-line-faint);
	border-bottom: 1px solid var(--fp-line-faint);
	background: var(--fp-surface);
}

.fp-nav__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 44px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-nav__menu > li {
	position: relative;
	margin: 0;
}

.fp-nav__menu a {
	display: block;
	padding: 15px 0 13px;
	color: var(--fp-ink);
	font-size: 16px;
	border-bottom: 2px solid transparent;
}

.fp-nav__menu a:hover {
	color: var(--fp-brand-red);
}

.fp-nav__menu > .current-menu-item > a,
.fp-nav__menu > .current-menu-ancestor > a,
.fp-nav__menu > .current_page_parent > a {
	color: var(--fp-brand-red);
	font-weight: 400;
	border-bottom-color: var(--fp-brand-red);
}

/* Sous-menus */
.fp-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -20px;
	z-index: 30;
	min-width: 240px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--fp-surface);
	box-shadow: 0 6px 2em rgba(0, 0, 0, 0.2);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.15s;
}

.fp-nav__menu li:hover > .sub-menu,
.fp-nav__menu li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
}

.fp-nav__menu .sub-menu a {
	padding: 10px 20px;
	border: 0;
}

/* ---------------------------------------------------------------- 7. Fil d'Ariane */

.fp-breadcrumb {
	background: var(--fp-surface-cream);
	font-size: 13.71px;
}

.fp-breadcrumb .woocommerce-breadcrumb {
	margin: 0;
	padding: 14px 0;
	color: var(--fp-ink-black);
}

.fp-breadcrumb .woocommerce-breadcrumb a {
	color: var(--fp-ink);
}

.fp-breadcrumb .woocommerce-breadcrumb a:hover {
	color: var(--fp-brand-red);
}

.fp-breadcrumb .woocommerce-breadcrumb::before,
.fp-breadcrumb .woocommerce-breadcrumb a:first-of-type::before {
	content: none;
}

/* ---------------------------------------------------------------- 8. Pied de page */

.fp-footer {
	position: relative;
	margin-top: 76px;
	background: var(--fp-surface-cream);
	border-top: 1px solid var(--fp-line-faint);
	font-size: 14px;
	color: var(--fp-ink);
}

.fp-footer__logo {
	position: relative;
	display: block;
	width: 120px;
	margin: -42px auto 0;
}

.fp-footer__logo img {
	display: block;
	width: 120px;
	height: auto;
}

.fp-footer__columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 36px;
	max-width: 1000px;
	padding-top: 30px;
	padding-bottom: 10px;
}

.fp-footer__column .widget-title,
.fp-footer__column h2,
.fp-footer__column h3 {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	color: var(--fp-brand-red);
	font-size: 13.71px;
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.fp-footer__column ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-footer__column li {
	margin: 0 0 8px;
}

.fp-footer a {
	color: var(--fp-ink-black);
}

.fp-footer a:hover {
	color: var(--fp-brand-red);
}

.fp-footer__bottom {
	padding-top: 16px;
	padding-bottom: 40px;
	text-align: center;
}

/* Illustration : monuments, Fiat 500 rouge et « Dolce vita », superposés comme sur l'ancien site. */
.fp-footer__illustration {
	position: relative;
	width: 100%;
	max-width: 405px;
	aspect-ratio: 405 / 315;
	margin: 0 auto 18px;
}

.fp-footer__illu {
	position: absolute;
	display: block;
	height: auto;
}

.fp-footer__illu--monuments {
	left: 0;
	top: 0;
	width: 100%;
}

.fp-footer__illu--fiat {
	left: 6.2%;
	top: 43.8%;
	width: 83.5%;
}

.fp-footer__illu--dolce {
	left: 80.2%;
	top: 20.6%;
	width: 15.1%;
}

.fp-footer__credits {
	font-size: 13.71px;
}

.fp-footer__credits p {
	margin: 0;
}

/* ---------------------------------------------------------------- 9. Téléphone */

@media (max-width: 767px) {
	:root {
		--fp-gutter: 16px;
	}

	.fp-topbar__inner {
		justify-content: center;
		text-align: center;
	}

	.fp-header__inner {
		gap: 14px 16px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.fp-header__logo img {
		width: 88px;
	}

	.fp-header__actions {
		margin-left: auto;
		gap: 16px;
	}

	.fp-header__search {
		order: 3;
		flex: 1 1 100%;
		max-width: none;
	}

	.fp-cart-total {
		display: none;
	}

	.fp-menu-toggle {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		min-height: 44px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--fp-ink-black);
		font-family: var(--fp-font-sans);
		font-size: 12.95px;
		cursor: pointer;
	}

	.fp-nav {
		display: none;
	}

	.fp-nav.is-open {
		display: block;
	}

	.fp-nav__menu {
		flex-direction: column;
		gap: 0;
	}

	.fp-nav__menu a {
		padding: 14px 0;
		border-bottom: 1px solid var(--fp-line-faint);
	}

	.fp-nav__menu > .current-menu-item > a {
		border-bottom-color: var(--fp-line-faint);
	}

	.fp-nav__menu .sub-menu {
		position: static;
		visibility: visible;
		opacity: 1;
		box-shadow: none;
		padding: 0 0 0 16px;
	}
}
