/*
Theme Name: Origin Protect
Author: Origin Protect
Description: Thème sur mesure pour Origin Protect : rénovation et protection de carrosserie automobile (film PPF, traitement céramique, polissage).
Version: 1.0.1
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: origin-protect
*/

/* ---------- Structure : en-tête superposé au visuel d'ouverture ---------- */

.wp-site-blocks {
	position: relative;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.wp-site-blocks > header.wp-block-template-part {
	position: absolute;
	inset: 0 0 auto;
	z-index: 50;
}

.wp-block-post-content > .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ---------- En-tête ---------- */

.op-header {
	background: linear-gradient(180deg, rgba(11, 11, 13, 0.6) 0%, rgba(11, 11, 13, 0) 100%);
}

.op-header a:where(:not(.wp-element-button)),
.op-footer .wp-block-site-title a {
	color: inherit;
	text-decoration: none;
}

.op-header .wp-block-navigation-item__content {
	padding-block: 0.35rem;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s, color 0.2s;
}

.op-header .wp-block-navigation-item__content:hover,
.op-header .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: var(--wp--preset--color--accent);
}

.op-header .wp-block-button__link {
	padding: 0.7rem 1.2rem;
	font-size: 0.85rem;
}

.op-brand {
	align-items: center;
}

.op-logo-mark {
	margin: 0;
	line-height: 0;
}

.op-logo-mark img {
	display: block;
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.6rem;
}

@media (max-width: 781px) {
	.op-header-cta {
		display: none !important;
	}
}

/* ---------- Typographie ---------- */

.op-eyebrow {
	margin-bottom: 0.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.op-eyebrow + .wp-block-heading {
	margin-top: 0.5rem;
}

.op-lead {
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}

.op-arrow-link a {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.op-arrow-link a::after {
	content: " →";
	display: inline-block;
	margin-left: 0.25rem;
	color: var(--wp--preset--color--accent);
	transition: transform 0.2s;
}

.op-arrow-link a:hover::after {
	transform: translateX(4px);
}

/* ---------- Visuels d'ouverture ---------- */

.op-hero h1,
.op-slide :is(h1, h2) {
	max-width: 14ch;
}

/* ---------- Diaporama d'accueil ---------- */

.op-slider {
	position: relative;
}

.op-slider > .op-slide {
	margin: 0 !important;
}

/* Dans l'éditeur, les diapositives sont empilées : on réduit leur hauteur pour les voir toutes. */
.editor-styles-wrapper .op-slider > .op-slide {
	min-height: 70vh !important;
}

.editor-styles-wrapper .op-slider > .op-slide + .op-slide {
	border-top: 4px solid var(--wp--preset--color--accent);
}

.op-slider.is-ready {
	display: grid;
	overflow: hidden;
	background: var(--wp--preset--color--contrast);
	touch-action: pan-y;
}

.op-slider.is-ready > .op-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.op-slider.is-ready > .op-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.9s ease;
}

.op-slider.is-ready .op-slide .wp-block-cover__image-background {
	transform: scale(1.08);
	transition: transform 7s ease-out;
}

.op-slider.is-ready .op-slide.is-active .wp-block-cover__image-background {
	transform: scale(1);
}

.op-slider.is-ready .op-slide .wp-block-cover__inner-container > * {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease 0.35s, transform 0.7s ease 0.35s;
}

.op-slider.is-ready .op-slide.is-active .wp-block-cover__inner-container > * {
	opacity: 1;
	transform: none;
}

.op-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin-top: -1.5rem;
	padding: 0;
	color: #fff;
	background: rgba(11, 11, 13, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background 0.2s, border-color 0.2s;
}

.op-slider__arrow:hover,
.op-slider__arrow:focus-visible {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.op-slider__arrow:focus-visible,
.op-slider__dot:focus-visible,
.op-slider__pause:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.op-slider__arrow--prev {
	left: 1rem;
}

.op-slider__arrow--next {
	right: 1rem;
}

.op-slider__nav {
	position: absolute;
	right: 0;
	bottom: clamp(1.25rem, 4vh, 2.5rem);
	left: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	box-sizing: border-box;
	width: 100%;
	max-width: calc(1200px + 2 * clamp(1rem, 4vw, 2rem));
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem);
	color: rgba(255, 255, 255, 0.75);
}

.op-slider__dots {
	display: flex;
	gap: 0.5rem;
}

.op-slider__dot {
	width: 2.5rem;
	height: 1.5rem;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.op-slider__dot span {
	position: relative;
	display: block;
	height: 2px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.3);
}

.op-slider__dot span::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	transform: scaleX(0);
	transform-origin: left;
}

.op-slider__dot[aria-current="true"] span {
	background: rgba(255, 255, 255, 0.6);
}

.op-slider__dot.is-active span::after {
	animation: op-slider-progress var(--op-slider-delay, 6.5s) linear forwards;
}

.op-slider.is-paused .op-slider__dot.is-active span::after {
	animation-play-state: paused;
}

@keyframes op-slider-progress {
	to {
		transform: scaleX(1);
	}
}

.op-slider__count {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.12em;
}

.op-slider__pause {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

.op-slider__pause svg {
	width: 16px;
	height: 16px;
}

.op-slider__pause:hover {
	color: #fff;
}

@media (max-width: 1399px) {
	.op-slider__arrow {
		top: auto;
		bottom: clamp(1rem, 3.5vh, 2.25rem);
		width: 2.75rem;
		height: 2.75rem;
		margin-top: 0;
	}

	.op-slider__arrow--prev {
		right: calc(clamp(1rem, 4vw, 2rem) + 3.25rem);
		left: auto;
	}

	.op-slider__arrow--next {
		right: clamp(1rem, 4vw, 2rem);
	}
}

@media (max-width: 781px) {
	.op-slider.is-ready .op-slide .wp-block-cover__inner-container {
		padding-bottom: 4.5rem;
	}

	.op-slider__count {
		display: none;
	}

	.op-slider__dot {
		width: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.op-slider.is-ready > .op-slide,
	.op-slider.is-ready .op-slide .wp-block-cover__image-background,
	.op-slider.is-ready .op-slide .wp-block-cover__inner-container > * {
		transition: none;
		transform: none;
	}
}

.wp-block-cover.op-page-hero {
	align-items: flex-end;
}

.op-page-hero .wp-block-cover__inner-container {
	padding-top: 7rem;
	padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
	background: transparent;
}

.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: #fff;
	background: #fff;
	color: var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	padding: 0.95rem 1.7rem;
	border-width: 1px;
}

/* ---------- Cartes de services ---------- */

.wp-block-cover.op-card {
	padding: 0;
	overflow: hidden;
	border-radius: 2px;
}

.op-card .wp-block-cover__image-background {
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.op-card:hover .wp-block-cover__image-background {
	transform: scale(1.06);
}

.op-card .wp-block-cover__inner-container {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.75rem;
}

.op-card h3 {
	margin: 0;
	font-size: 1.5rem;
}

.op-card h3 a {
	color: inherit;
	text-decoration: none;
}

.op-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.op-card p {
	margin-top: 0.5rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 781px) {
	.wp-block-cover.op-card {
		min-height: 320px !important;
	}
}

/* ---------- Photos, encarts et listes ---------- */

.op-photo img {
	border-radius: 2px;
}

.op-feature {
	height: 100%;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 2px;
	transition: transform 0.3s, box-shadow 0.3s;
}

.op-feature:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px -28px rgba(11, 11, 13, 0.35);
}

.op-feature h3 {
	margin-top: 0.75rem;
	font-size: 1.35rem;
}

.op-feature p:last-child {
	color: var(--wp--preset--color--muted);
}

.op-number {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--accent);
}

.op-checklist {
	padding-left: 0;
	list-style: none;
}

.op-checklist li {
	position: relative;
	margin-bottom: 0.6rem;
	padding-left: 1.75rem;
}

.op-checklist li::before {
	content: "";
	position: absolute;
	top: 0.8em;
	left: 0;
	width: 1rem;
	height: 2px;
	background: var(--wp--preset--color--accent);
}

/* ---------- Questions fréquentes ---------- */

.wp-block-details {
	padding: 1.15rem 0;
	border-bottom: 1px solid #d9d9de;
}

.wp-block-details summary {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	flex: none;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--accent);
	transition: transform 0.2s;
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.wp-block-details > :not(summary) {
	margin-top: 0.75rem;
	color: var(--wp--preset--color--muted);
}

/* ---------- Contact ---------- */

.op-contact-item {
	margin-top: 1.75rem;
	padding-left: 1rem;
	border-left: 2px solid var(--wp--preset--color--accent);
}

.op-contact-label {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.op-contact-value {
	margin-top: 0.2rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.35rem;
	font-weight: 500;
	word-break: break-word;
}

.op-contact-value a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.op-contact-value a:hover {
	color: var(--wp--preset--color--accent);
}

.op-form-card {
	padding: clamp(1.5rem, 4vw, 2.75rem);
	background: var(--wp--preset--color--surface);
	border-radius: 2px;
}

.wpcf7 form p {
	margin: 0 0 1.1rem;
}

.wpcf7 label {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
}

.wpcf7 input:not([type="checkbox"]):not([type="submit"]),
.wpcf7 select,
.wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.85rem 1rem;
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background: #fff;
	border: 1px solid #d4d4d8;
	border-radius: 2px;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: 2px solid rgba(215, 38, 43, 0.2);
	border-color: var(--wp--preset--color--accent);
}

.wpcf7 textarea {
	height: 9rem;
}

.wpcf7 .wpcf7-acceptance label {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

.wpcf7 .wpcf7-list-item {
	margin: 0;
}

.wpcf7 input[type="submit"] {
	padding: 1rem 1.8rem;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	background: var(--wp--preset--color--accent);
	border: 0;
	border-radius: 2px;
	cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--wp--preset--color--accent-dark);
}

/* ---------- Carte et horaires (au-dessus du pied de page) ---------- */

.op-location,
.op-location + .op-footer {
	margin-block: 0;
}

.op-location .op-location__cols {
	align-items: stretch;
	margin: 0;
}

.op-location__map {
	display: flex;
}

.op-map {
	position: relative;
	flex: 1;
	min-height: 460px;
	background-color: #16161a;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 44px 44px;
}

.op-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(0.35);
}

.op-map__consent {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 2rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.75);
}

.op-map__consent p {
	margin: 0;
}

.op-map__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.35rem;
	font-weight: 500;
	color: #fff;
}

.op-map__text {
	max-width: 34ch;
	font-size: 0.9rem;
}

.op-map__button {
	margin-top: 0.75rem;
	padding: 0.85rem 1.5rem;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	background: var(--wp--preset--color--accent);
	border: 0;
	border-radius: 2px;
	cursor: pointer;
}

.op-map__button:hover {
	background: var(--wp--preset--color--accent-dark);
}

.op-map__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.op-location__info {
	padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
}

.op-location__info h3 {
	margin-top: 1.75rem;
	font-size: 1.35rem;
}

.op-location__info .op-eyebrow + h3 {
	margin-top: 0.5rem;
}

.op-hours {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.op-hours li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid #dcdce0;
}

.op-hours strong {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.op-address {
	margin-top: 0.5rem;
}

@media (max-width: 781px) {
	.op-map {
		min-height: 320px;
	}
}

/* ---------- Pied de page ---------- */

.op-footer a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}

.op-footer a:hover {
	color: #fff;
}

.op-footer-text {
	max-width: 32ch;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.6);
}

.op-footer-title {
	margin-bottom: 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #fff;
}

.op-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}

.op-footer-links li + li {
	margin-top: 0.55rem;
}

.op-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.55);
}

/* ---------- Mentions légales ---------- */

.op-legal h3 {
	margin-top: 2.5rem;
	font-size: 1.4rem;
}

.op-todo {
	padding: 0 0.2em;
	background: #fff3c4;
	color: #6b5200;
}


/* ---------- Logo d'en-tête lisible (op-logo-mark--lisible) ---------- */

.op-header .op-logo-mark img {
	width: 52px !important;
	height: auto;
	filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55));
	transition: transform 0.2s ease;
}

.op-header .op-logo-mark a:hover img,
.op-header .op-logo-mark a:focus-visible img {
	transform: scale(1.05);
}

.op-header .op-brand .wp-block-site-title {
	font-size: 1.35rem;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.op-header {
	background: linear-gradient(180deg, rgba(11, 11, 13, 0.75) 0%, rgba(11, 11, 13, 0.35) 60%, rgba(11, 11, 13, 0) 100%);
}

@media (max-width: 781px) {
	.op-header .op-logo-mark img {
		width: 42px !important;
	}
	.op-header .op-brand .wp-block-site-title {
		font-size: 1.1rem;
	}
}


/* ---------- Logo du pied de page lisible (op-footer-logo--lisible) ---------- */

.op-footer .op-brand {
	margin-bottom: 1.25rem;
}

.op-footer .op-logo-mark img {
	width: 56px !important;
	height: auto;
	transition: transform 0.2s ease;
}

.op-footer .op-logo-mark a:hover img,
.op-footer .op-logo-mark a:focus-visible img {
	transform: scale(1.05);
}

.op-footer .op-brand .wp-block-site-title {
	font-size: 1.4rem;
	color: #fff;
}

@media (max-width: 781px) {
	.op-footer .op-logo-mark img {
		width: 48px !important;
	}
}


/* ---------- En-tête toujours visible (op-header--fixe) ---------- */

html {
	scroll-padding-top: 6rem;
}

.wp-site-blocks > header.wp-block-template-part {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar.op-scrolled .wp-site-blocks > header.wp-block-template-part,
	.op-scrolled .admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

.op-header {
	transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.op-scrolled .op-header {
	padding-top: 0.55rem !important;
	padding-bottom: 0.55rem !important;
	background: rgba(11, 11, 13, 0.96);
	box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.op-header .op-logo-mark img {
	transition: width 0.3s ease, transform 0.2s ease;
}

.op-scrolled .op-header .op-logo-mark img {
	width: 42px !important;
}

@media (max-width: 781px) {
	.op-scrolled .op-header .op-logo-mark img {
		width: 36px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.op-header,
	.op-header .op-logo-mark img {
		transition: none;
	}
}


/* ---------- Menu à 6 liens (op-menu-6--compact) ---------- */

.op-header .wp-block-site-title,
.op-header .wp-block-navigation-item__content {
	white-space: nowrap;
}

.op-header .wp-block-navigation {
	font-size: 0.92rem;
}

.op-header .wp-block-navigation__container {
	flex-wrap: nowrap;
	gap: 1.35rem;
}

/* Le lien Contact du menu devient le bouton rouge (remplace le bouton « Demander un devis », faute de place). */
@media (min-width: 1180px) {
	.op-header .wp-block-navigation-item:last-child > .wp-block-navigation-item__content[href*="/contact"] {
		padding: 0.6rem 1.15rem;
		border-bottom: 0;
		border-radius: 2px;
		color: #fff;
		background: var(--wp--preset--color--accent);
		transition: background-color 0.2s;
	}
	.op-header .wp-block-navigation-item:last-child > .wp-block-navigation-item__content[href*="/contact"]:hover,
	.op-header .wp-block-navigation-item:last-child > .wp-block-navigation-item__content[href*="/contact"]:focus-visible {
		background: var(--wp--preset--color--accent-dark);
	}
}

/* En dessous de 1180 px : menu « ☰ » comme sur téléphone. */
@media (min-width: 600px) and (max-width: 1179px) {
	.op-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.op-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}


/* ---------- Sous-menu déroulant (op-sous-menu) ---------- */

.op-header .wp-block-navigation-submenu__toggle {
	margin-left: 0.15rem;
}

.op-header .wp-block-navigation__submenu-icon svg {
	width: 11px;
	height: 11px;
	transition: transform 0.2s ease;
}

.op-header .wp-block-navigation-item.has-child:hover .wp-block-navigation__submenu-icon svg,
.op-header .wp-block-navigation-item.has-child:focus-within .wp-block-navigation__submenu-icon svg {
	transform: rotate(180deg);
}

@media (min-width: 1180px) {
	.op-header .wp-block-navigation .wp-block-navigation__submenu-container {
		min-width: 220px !important;
		padding: 0.4rem 0;
		margin-top: 0.6rem;
		color: #fff;
		background: rgba(11, 11, 13, 0.97) !important;
		border: 0;
		border-top: 2px solid var(--wp--preset--color--accent);
		box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
	}
	/* zone invisible pour ne pas perdre le survol entre le lien et le menu */
	.op-header .wp-block-navigation .wp-block-navigation__submenu-container::before {
		content: "";
		position: absolute;
		inset: -0.75rem 0 100% 0;
	}
	.op-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		display: block;
		padding: 0.7rem 1.2rem !important;
		border-bottom: 0 !important;
		font-size: 0.9rem;
		color: rgba(255, 255, 255, 0.85);
		transition: color 0.2s, background-color 0.2s;
	}
	.op-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
	.op-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
		color: #fff;
		background: rgba(215, 38, 43, 0.18);
	}
}

/* Menu « ☰ » : sous-liens affichés en retrait, sans fond. */
.op-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	border: 0 !important;
	padding-top: 0.6rem !important;
	font-size: 0.85em;
	opacity: 0.8;
}


/* ---------- Réalisations par prestation (op-realisations) ---------- */

.op-gallery:empty {
	display: none;
}

.op-gallery:not(:empty) ~ * .op-todo,
.op-realisations:has(.op-gallery:not(:empty)) .op-realisations__todo {
	display: none;
}

.op-realisations .op-gallery {
	margin-top: var(--wp--preset--spacing--40);
	gap: 0.75rem;
}

.op-realisations .op-gallery img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 2px;
}


/* ---------- Réalisations en dossiers + visionneuse (op-dossiers) ---------- */

.op-realisations.has-dossiers .op-gallery--source {
	display: none !important;
}

.op-dossiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: var(--wp--preset--spacing--40);
}

@media (max-width: 900px) {
	.op-dossiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.op-dossiers { grid-template-columns: 1fr; }
}

.op-dossier {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 2px;
	overflow: hidden;
	background: #0b0b0d;
	cursor: pointer;
	aspect-ratio: 4 / 3;
	text-align: left;
	font: inherit;
	color: #fff;
}

.op-dossier__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.op-dossier::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 11, 13, 0) 45%, rgba(11, 11, 13, 0.85) 100%);
}

.op-dossier__info {
	position: absolute;
	z-index: 1;
	left: 1.1rem;
	right: 1.1rem;
	bottom: 1rem;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}

.op-dossier__title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
}

.op-dossier__count {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	background: #D7262B;
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
}

.op-dossier__count::before {
	content: "";
	width: 0.95em;
	height: 0.95em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v14H4zM2 3v18h20V3zm5 13 3-4 2 3 3-4 4 5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v14H4zM2 3v18h20V3zm5 13 3-4 2 3 3-4 4 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.op-dossier:hover .op-dossier__img,
.op-dossier:focus-visible .op-dossier__img {
	transform: scale(1.05);
}

.op-dossier:focus-visible {
	outline: 3px solid #D7262B;
	outline-offset: 3px;
}

html.op-viewer-open,
html.op-viewer-open body {
	overflow: hidden;
}

.op-viewer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	background: rgba(11, 11, 13, 0.96);
	color: #fff;
}

.op-viewer[hidden] {
	display: none;
}

.op-viewer__bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.9rem 1rem 0.9rem 1.25rem;
}

.op-viewer__bar p {
	margin: 0;
}

.op-viewer__title {
	flex: 1;
	font-weight: 700;
}

.op-viewer__count {
	opacity: 0.7;
	font-size: 0.9rem;
}

.op-viewer button {
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	line-height: 1;
	font-family: inherit;
}

.op-viewer button:hover,
.op-viewer button:focus-visible {
	background: #D7262B;
}

.op-viewer__close {
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	font-size: 1.7rem;
}

.op-viewer__stage {
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4.5rem 1.5rem;
}

.op-viewer__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 2px;
	user-select: none;
}

.op-viewer__nav {
	position: absolute;
	top: 50%;
	width: 3rem;
	height: 3rem;
	margin-top: -1.5rem;
	border-radius: 50%;
	font-size: 2rem;
}

.op-viewer__nav[hidden] {
	display: none;
}

.op-viewer__nav--prev { left: 1rem; }
.op-viewer__nav--next { right: 1rem; }

@media (max-width: 640px) {
	.op-viewer__stage { padding: 0 0.5rem 4.5rem; }
	.op-viewer__nav { top: auto; bottom: 1rem; margin-top: 0; }
	.op-viewer__nav--prev { left: calc(50% - 3.5rem); }
	.op-viewer__nav--next { right: calc(50% - 3.5rem); }
}


/* ---------- Téléphone dans l'en-tête + bouton Contact arrondi (op-header-phone--style) ---------- */

.op-header .op-header-phone {
	margin: 0;
	flex-shrink: 0;
	font-size: 0.92rem;
	font-weight: 600;
	white-space: nowrap;
}

.op-header .op-header-phone a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 1rem;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	transition: border-color 0.2s, background-color 0.2s;
}

.op-header .op-header-phone a:hover,
.op-header .op-header-phone a:focus-visible {
	border-color: var(--wp--preset--color--accent);
	background: rgba(215, 38, 43, 0.15);
}

.op-header .op-header-phone a::before {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	background: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* bouton Contact du menu : bords arrondis */
@media (min-width: 1180px) {
	.op-header .wp-block-navigation-item:last-child > .wp-block-navigation-item__content[href*="/contact"] {
		border-radius: 999px;
		padding: 0.6rem 1.3rem;
	}
}

/* Écrans moyens : on resserre le menu et le téléphone n'affiche que son icône (seulement là où le numéro ne tient pas) */
@media (min-width: 1180px) and (max-width: 1279px) {
	.op-header .wp-block-navigation__container {
		gap: 1.1rem;
	}
	.op-header .op-header-phone a {
		width: 2.4rem;
		height: 2.4rem;
		padding: 0;
		justify-content: center;
		font-size: 0;
	}
	.op-header .op-header-phone a::before {
		width: 17px;
		height: 17px;
	}
}

/* Téléphone : icône seule à côté du menu ☰ */
@media (max-width: 599px) {
	.op-header .op-header-phone a {
		width: 2.4rem;
		height: 2.4rem;
		padding: 0;
		justify-content: center;
		font-size: 0;
	}
	.op-header .op-header-phone a::before {
		width: 17px;
		height: 17px;
	}
}


/* Le logo ne doit jamais être écrasé (op-brand--noshrink) */
.op-header .op-brand,
.op-header .op-logo-mark,
.op-header .op-logo-mark a,
.op-header .op-logo-mark img {
	flex-shrink: 0;
}

.op-header .op-logo-mark img {
	max-width: none;
}

@media (max-width: 420px) {
	.op-header .op-brand .wp-block-site-title {
		font-size: 0.95rem;
		letter-spacing: 0.04em;
	}
}


/* ---------- Bandeau : espacements resserrés pour faire tenir le numéro (op-header-serrage) ---------- */

@media (min-width: 1180px) {
	.op-header .op-brand + .wp-block-group {
		gap: 1.1rem;
	}
	.op-header .wp-block-navigation__container {
		gap: 1.05rem;
	}
	.op-header .op-brand .wp-block-site-title {
		font-size: 1.2rem;
	}
}


/* ---------- Lien Instagram (op-insta) ---------- */

.op-insta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.op-insta::before {
	content: "";
	flex: none;
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2c3.2 0 3.6 0 4.8.1 3.3.1 4.8 1.7 4.9 4.9.1 1.3.1 1.6.1 4.8s0 3.6-.1 4.8c-.1 3.2-1.7 4.8-4.9 4.9-1.3.1-1.6.1-4.8.1s-3.6 0-4.8-.1c-3.3-.1-4.8-1.7-4.9-4.9C2.2 15.6 2.2 15.2 2.2 12s0-3.6.1-4.8C2.4 3.9 3.9 2.4 7.2 2.3 8.4 2.2 8.8 2.2 12 2.2Zm0 4.8a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 8.2a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 0 1 0 6.4Zm5.2-9.6a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2c3.2 0 3.6 0 4.8.1 3.3.1 4.8 1.7 4.9 4.9.1 1.3.1 1.6.1 4.8s0 3.6-.1 4.8c-.1 3.2-1.7 4.8-4.9 4.9-1.3.1-1.6.1-4.8.1s-3.6 0-4.8-.1c-3.3-.1-4.8-1.7-4.9-4.9C2.2 15.6 2.2 15.2 2.2 12s0-3.6.1-4.8C2.4 3.9 3.9 2.4 7.2 2.3 8.4 2.2 8.8 2.2 12 2.2Zm0 4.8a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 8.2a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 0 1 0 6.4Zm5.2-9.6a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* ---------- Lien Facebook (op-facebook) ---------- */

.op-facebook {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.op-facebook::before {
	content: "";
	flex: none;
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M24 12a12 12 0 1 0-13.9 11.9v-8.4H7.1V12h3V9.4c0-3 1.8-4.7 4.5-4.7 1.3 0 2.7.2 2.7.2v3h-1.5c-1.5 0-2 .9-2 1.9V12h3.4l-.5 3.5h-2.9v8.4A12 12 0 0 0 24 12Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M24 12a12 12 0 1 0-13.9 11.9v-8.4H7.1V12h3V9.4c0-3 1.8-4.7 4.5-4.7 1.3 0 2.7.2 2.7.2v3h-1.5c-1.5 0-2 .9-2 1.9V12h3.4l-.5 3.5h-2.9v8.4A12 12 0 0 0 24 12Z'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* ---------- Pied de page réduit (page Contact) (op-footer--mini) ---------- */

.op-footer--mini {
	margin-top: 0 !important;
	color: rgba(255, 255, 255, 0.55);
}

.op-footer--mini p {
	margin: 0;
}


/* ---------- Page Contact : dégradé du fond limité au bas de page (op-contact-degrade) ---------- */

body.page-id-11 {
	background-image: linear-gradient(180deg, rgba(11, 11, 13, 0) calc(100% - 380px), rgba(11, 11, 13, 0.88) 100%) !important;
}

@media (max-width: 781px) {
	body.page-id-11 {
		background-image: linear-gradient(180deg, rgba(11, 11, 13, 0) calc(100% - 260px), rgba(11, 11, 13, 0.88) 100%) !important;
	}
}


/* ---------- Téléphone + « Demander un devis » empilés dans l'en-tête (op-header-contact) ---------- */

.op-header .op-header-contact {
	display: grid !important;
	grid-template-columns: max-content;
	justify-items: stretch;
	align-content: center;
	flex-shrink: 0;
}

.op-header .op-header-contact > * {
	margin: 0 !important;
	width: 100%;
}

.op-header .op-header-contact .op-header-phone,
.op-header .op-header-cta .wp-block-button__link {
	text-align: center;
}

.op-header .op-header-cta {
	justify-content: center;
}

.op-header .op-header-contact .op-header-phone a {
	width: 100%;
	justify-content: center;
	padding: 0.4rem 0.9rem;
	font-size: 0.88rem;
}

.op-header .op-header-cta {
	display: flex !important;
	margin: 0;
}

.op-header .op-header-cta .wp-block-button,
.op-header .op-header-cta .wp-block-button__link {
	width: 100%;
}

.op-header .op-header-cta .wp-block-button__link {
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	color: #fff;
	background: var(--wp--preset--color--accent);
}

.op-header .op-header-cta .wp-block-button__link:hover,
.op-header .op-header-cta .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--accent-dark);
}

/* Grand écran : le bouton sous le téléphone remplace le lien du menu. */
@media (min-width: 1180px) {
	.op-header .wp-block-navigation__container > .wp-block-navigation-item:last-child:has(> a[href*="/contact"]) {
		display: none;
	}
}

/* Plus petit : le devis reste dans le menu ☰, seul le téléphone s'affiche. */
@media (max-width: 1179px) {
	.op-header .op-header-cta {
		display: none !important;
	}
}

/* Alignement téléphone / devis : même largeur, centrés (op-header-contact-align) */
.op-header .op-header-contact .op-header-phone a {
	box-sizing: border-box;
	display: flex;
}

.op-header .op-header-cta .wp-block-button__link {
	box-sizing: border-box;
	display: block;
}

/* Téléphone + devis décalés vers la droite sur grand écran (op-header-contact-right) */
@media (min-width: 1180px) {
	.op-header .op-header-contact {
		margin-right: calc(-1 * max(0px, min(90px, (100vw - 1200px) / 2 - 24px)));
	}
}

/* Menu centré sur la page, logo à gauche, téléphone + devis à droite (op-header-nav-center) */
@media (min-width: 1180px) {
	.op-header > .wp-block-group {
		position: relative;
	}
	.op-header > .wp-block-group > .wp-block-group:last-child > .wp-block-navigation {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		white-space: nowrap;
	}
}

/* ---------- Image scindée en deux : carrosserie / jantes (op-split) ---------- */
.op-split {
	aspect-ratio: 4 / 3;
	width: 100%;
}

.op-split .op-split__item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: 2px;
}

.op-split .op-split__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.op-split .op-split__item--jante img {
	transform: scale(1.9);
	transform-origin: 64% 63%;
}

.op-split .op-split__item figcaption {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	margin: 0;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: rgba(11, 11, 13, 0.75);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}
/* Tablette et téléphone : téléphone en icône seule (op-header-phone-icon-fix) */
@media (max-width: 1179px) {
	.op-header .op-header-contact {
		margin-right: 0;
	}
	.op-header .op-header-contact .op-header-phone a {
		width: 2.4rem;
		height: 2.4rem;
		padding: 0;
		justify-content: center;
		font-size: 0;
	}
}

/* Logo décalé vers la gauche sur grand écran, symétrique du bloc téléphone (op-brand-left) */
@media (min-width: 1180px) {
	.op-header > .wp-block-group > .op-brand {
		margin-left: calc(-1 * max(0px, min(90px, (100vw - 1200px) / 2 - 24px)));
	}
}


/* ---------- Intitulé « Mes réalisations » plus grand (pages PPF et Detailing) ---------- */

.op-realisations > .op-eyebrow:first-child {
	margin-bottom: 0.75rem;
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	letter-spacing: 0.16em;
}
