/*
Theme Name: Optimizr Vitrine
Theme URI: https://github.com/Corteo/optimiz_wp_template
Author: Haptic
Author URI: https://alexandrevergnaud.fr/
Description: Thème de bloc du site de présentation du plugin Optimizr : accueil, fonctionnalités, offres gratuite et Pro, documentation et blog. Le contenu du site s'importe avec le fichier content/optimizr-vitrine.xml.
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: optimizr-vitrine
Tags: block-patterns, full-site-editing, one-column, wide-blocks, custom-colors
*/

/*
 * Les couleurs, typographies et espacements sont dans theme.json.
 * Ce fichier ne contient que ce que theme.json ne sait pas exprimer :
 * styles de blocs (is-style-*), sections sombres, cartes, tableaux.
 */

:root {
	--ov-radius: 18px;
	--ov-radius-sm: 12px;
	--ov-shadow: 0 1px 2px rgba(11, 20, 55, .06), 0 12px 32px -12px rgba(11, 20, 55, .18);
	--ov-shadow-lg: 0 30px 60px -24px rgba(29, 53, 180, .45);
	--ov-ease: cubic-bezier(.22, 1, .36, 1);
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

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

.ov-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* Fond flouté porté par un pseudo-élément : posé sur .ov-header, backdrop-filter en ferait
   le bloc conteneur des éléments fixes, et le menu mobile resterait coincé dans l'en-tête. */
.ov-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(243, 245, 251, .86);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
}

/* La partie de modèle <header> n'est pas plus haute que l'en-tête : c'est elle qui colle en haut de la page */
.wp-site-blocks > .wp-block-template-part:has(> .ov-header) {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .ov-header,
.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .ov-header) {
	top: 32px;
}

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

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

/* Logo aligné sur le menu et le bouton : sans marge propre au paragraphe du titre */
.ov-header .ov-brand {
	display: flex;
	margin: 0;
}

/* Logo : icône Optimizr (assets/logo) devant le nom du site */
.ov-brand.wp-block-site-title a,
.ov-brand .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	color: inherit;
}

.ov-brand.wp-block-site-title a::before,
.ov-brand .wp-block-site-title a::before {
	content: "";
	flex: none;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 9px;
	background: url("assets/logo/optimizr-icone.svg") center / contain no-repeat;
	box-shadow: 0 6px 16px -6px rgba(56, 88, 233, .8);
}

.ov-header .wp-block-navigation a {
	text-decoration: none;
}

.ov-header .wp-block-navigation a:hover,
.ov-header .wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--primary);
}

/* Menu mobile : bouton « menu » jusqu'à 960px (WordPress ne le montre que sous 600px,
   et entre les deux les cinq liens passaient sur deux lignes à côté du bouton Télécharger). */
.ov-header .wp-block-navigation__responsive-container-open {
	width: 2.75rem;
	height: 2.75rem;
	margin-right: -.6rem;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
}

.ov-header .wp-block-navigation__responsive-container-open:hover,
.ov-header .wp-block-navigation__responsive-container-open:focus-visible {
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary);
}

/* Sous 960px, le bouton menu passe après Télécharger, au bord droit */
@media (max-width: 959.98px) {
	.ov-header .wp-block-navigation {
		order: 2;
	}
}

@media (min-width: 600px) and (max-width: 959.98px) {
	.ov-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.ov-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.ov-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.1rem 1.5rem 2rem;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	animation: ov-menu-in .22s ease-out;
}

.ov-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: -.25rem -.6rem 0 0;
	border-radius: 10px;
}

.ov-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
	align-items: stretch;
}

.ov-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	align-items: stretch;
	gap: 0;
}

.ov-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ov-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 1rem 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 650;
	letter-spacing: -.01em;
}

@keyframes ov-menu-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ov-header .wp-block-navigation__responsive-container.is-menu-open {
		animation: none;
	}
}

/* Bouton Télécharger : toujours sur une ligne, plus compact sur mobile, masqué sur les très petits écrans */
.ov-header .ov-header__cta .wp-block-button__link {
	white-space: nowrap;
}

@media (max-width: 599.98px) {
	.ov-header .ov-header__cta .wp-block-button__link {
		padding: .5rem .9rem !important;
		font-size: var(--wp--preset--font-size--x-small);
	}
}

@media (max-width: 359.98px) {
	.ov-header .ov-header__cta {
		display: none;
	}
}

/* ---------- Sections ---------- */

.ov-section {
	position: relative;
}

/* Respiration entre l'introduction d'une section et ses colonnes */
.ov-section > :where(p, .wp-block-heading) + .wp-block-columns,
.ov-section > :where(p, .wp-block-heading) + .wp-block-table {
	margin-top: var(--wp--preset--spacing--50);
}

/* Section sombre (héros, appels à l'action) : grille légère et halos */
.ov-dark {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
}

.ov-dark::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

.ov-dark::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 60vw;
	height: 60vw;
	max-width: 760px;
	max-height: 760px;
	right: -12vw;
	top: -18vw;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(74, 107, 255, .45), rgba(74, 107, 255, 0) 65%);
	pointer-events: none;
}

.ov-dark :where(h1, h2, h3, h4, p, li) {
	color: inherit;
}

.ov-dark .ov-muted,
.ov-dark .has-contrast-2-color {
	color: rgba(255, 255, 255, .72) !important;
}

.ov-dark a:where(:not(.wp-element-button)) {
	color: #a9baff;
}

/* Surtitre en capitales, en chasse fixe */
.ov-eyebrow {
	text-transform: uppercase;
	letter-spacing: .08em;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
	font-size: .78rem;
	line-height: 1.3;
	color: var(--wp--preset--color--primary);
}

.ov-dark .ov-eyebrow,
.ov-night .ov-eyebrow {
	color: #8aa4ff;
}

.ov-lead {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}

.ov-muted {
	color: var(--wp--preset--color--contrast-2);
}

/* Titre à dégradé */
.ov-gradient-text {
	background: linear-gradient(100deg, #a9baff 0%, #8aa4ff 55%, #7ef0c4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------- Pastilles ---------- */

.ov-pills {
	gap: .5rem !important;
}

.ov-pill,
.ov-pills > p {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin: 0;
	padding: .35rem .85rem;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: 1.4;
}

.ov-dark .ov-pill,
.ov-dark .ov-pills > p {
	border-color: rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .06);
	color: #fff;
}

.ov-badge {
	display: inline-block;
	padding: .2rem .65rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: .02em;
}

.ov-badge a {
	color: inherit;
	text-decoration: none;
}

.ov-badge--pro {
	background: linear-gradient(135deg, #7c5cf0, #3858e9);
	color: #fff;
}

/* ---------- Cartes ---------- */

.is-style-ov-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ov-radius);
	box-shadow: var(--ov-shadow);
	transition: transform .4s var(--ov-ease), box-shadow .4s var(--ov-ease);
}

.is-style-ov-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 1px 2px rgba(11, 20, 55, .06), 0 22px 40px -16px rgba(11, 20, 55, .25);
}

.is-style-ov-card > :first-child {
	margin-top: 0;
}

.ov-dark .is-style-ov-card {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .14);
	box-shadow: none;
}

/* Carte mise en avant (offre Pro) */
.is-style-ov-card-featured {
	position: relative;
	background: linear-gradient(180deg, #ffffff, #f4f6ff);
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: var(--ov-radius);
	box-shadow: var(--ov-shadow-lg);
}

.is-style-ov-card-featured > :first-child {
	margin-top: 0;
}

/* ---------- Listes ---------- */

.is-style-ov-checklist {
	list-style: none;
	padding-left: 0 !important;
}

.is-style-ov-checklist li {
	position: relative;
	padding-left: 1.85rem;
	margin-bottom: .55rem;
}

.is-style-ov-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e8f63' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.ov-dark .is-style-ov-checklist li::before {
	background-color: rgba(126, 240, 196, .16);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ef0c4' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
}

/* Liste « Pro » : pastille violette avec une étoile */
.is-style-ov-prolist {
	list-style: none;
	padding-left: 0 !important;
}

.is-style-ov-prolist li {
	position: relative;
	padding-left: 1.85rem;
	margin-bottom: .55rem;
}

.is-style-ov-prolist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: #efeafe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c5cf0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l1.9 5.1L19 11l-5.1 1.9L12 18l-1.9-5.1L5 11l5.1-1.9z'/%3E%3C/svg%3E") center / 72% no-repeat;
}

/* ---------- Tarifs ---------- */

.ov-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: .5rem;
	margin: 0;
}

.ov-price strong {
	font-size: clamp(2.4rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1;
	color: var(--wp--preset--color--contrast);
	white-space: nowrap;
}

.ov-pricing .wp-block-column {
	display: flex;
	flex-direction: column;
}

.ov-pricing .wp-block-column > .wp-block-buttons:last-child {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--30);
}

.ov-pricing .wp-block-column .wp-block-button,
.ov-pricing .wp-block-column .wp-block-button__link {
	width: 100%;
}

/* Quatre offres : deux par ligne sur tablette (en dessous de 782 px, WordPress les empile déjà) */
@media (min-width: 782px) and (max-width: 1100px) {
	.wp-block-columns.ov-pricing {
		flex-wrap: wrap !important;
	}

	.wp-block-columns.ov-pricing > .wp-block-column {
		flex-basis: calc(50% - var(--wp--style--block-gap, 2em) / 2) !important;
		flex-grow: 0;
	}
}

/* Tableau comparatif */
.is-style-ov-compare table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ov-radius);
	overflow: hidden;
	background: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
}

.is-style-ov-compare th,
.is-style-ov-compare td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: .85rem 1rem;
	text-align: center;
	vertical-align: middle;
}

.is-style-ov-compare th:first-child,
.is-style-ov-compare td:first-child {
	text-align: left;
}

.is-style-ov-compare.ov-table-left :is(th, td) {
	text-align: left;
}

.is-style-ov-compare thead th {
	background: var(--wp--preset--color--base-2);
	font-weight: 700;
	white-space: nowrap;
}

/* Ligne de titre de groupe : première cellule en gras, les autres vides */
.is-style-ov-compare tbody tr:has(td:first-child > strong:only-child) td {
	background: var(--wp--preset--color--base-2);
	padding-top: 1.1rem;
}

.is-style-ov-compare tbody tr:last-child td {
	border-bottom: 0;
}

.is-style-ov-compare tbody tr:hover td {
	background: #fafbff;
}

.is-style-ov-compare figcaption {
	margin-top: .75rem;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-2);
}

@media (max-width: 700px) {
	.is-style-ov-compare {
		overflow-x: auto;
	}

	.is-style-ov-compare table {
		min-width: 560px;
	}
}

/* ---------- FAQ (bloc Détails) ---------- */

.wp-block-details.is-style-ov-faq {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ov-radius-sm);
	background: var(--wp--preset--color--base);
	padding: 0;
	margin-block-start: .75rem;
}

.wp-block-details.is-style-ov-faq summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding: 1.1rem 3rem 1.1rem 1.25rem;
	font-weight: 650;
}

.wp-block-details.is-style-ov-faq summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-ov-faq summary::after {
	content: "";
	position: absolute;
	right: 1.25rem;
	top: 50%;
	width: .6rem;
	height: .6rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	transition: transform .3s var(--ov-ease);
	opacity: .6;
}

.wp-block-details.is-style-ov-faq[open] summary::after {
	transform: translateY(-30%) rotate(-135deg);
}

.wp-block-details.is-style-ov-faq > :not(summary) {
	padding: 0 1.25rem;
	margin-top: 0;
	color: var(--wp--preset--color--contrast-2);
}

.wp-block-details.is-style-ov-faq > :last-child {
	padding-bottom: 1.1rem;
}

/* ---------- Visuels (bloc optimizr-vitrine/visuel) ---------- */

.ov-visuel {
	margin: 0;
}

.ov-visuel img {
	display: block;
	width: 100%;
	height: auto;
}

/* Illustration : posée sur un fond nuit, comme dans l'assistant */
.ov-visuel--illustration {
	position: relative;
	border-radius: var(--ov-radius);
	background:
		radial-gradient(circle at 50% 45%, rgba(74, 107, 255, .35), rgba(74, 107, 255, 0) 60%),
		linear-gradient(160deg, #0b1437 0%, #131f63 55%, #0c2b3d 100%);
	padding: clamp(.75rem, 3vw, 2rem);
	box-shadow: var(--ov-shadow-lg);
	overflow: hidden;
}

.ov-visuel--illustration.is-transparent {
	background: none;
	box-shadow: none;
	padding: 0;
}

/* Capture d'écran : cadre de navigateur */
.ov-visuel--capture {
	border-radius: var(--ov-radius-sm);
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: var(--ov-shadow-lg);
	overflow: hidden;
}

.ov-visuel--capture::before {
	content: "";
	display: block;
	height: 30px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	background:
		radial-gradient(circle, #ff8a8a 4.5px, transparent 5px) 14px 50% / 16px 16px no-repeat,
		radial-gradient(circle, #ffd27a 4.5px, transparent 5px) 32px 50% / 16px 16px no-repeat,
		radial-gradient(circle, #7ef0c4 4.5px, transparent 5px) 50px 50% / 16px 16px no-repeat,
		#f6f7fb;
}

.ov-visuel figcaption {
	margin-top: .75rem;
	text-align: center;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-2);
}

.ov-visuel--capture figcaption {
	margin: 0;
	padding: .6rem 1rem;
	border-top: 1px solid var(--wp--preset--color--border);
	background: #f6f7fb;
}

/* ---------- Étapes numérotées ---------- */

.ov-steps {
	counter-reset: ov-step;
}

.ov-step {
	counter-increment: ov-step;
}

.ov-step::before {
	content: counter(ov-step);
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary);
	font-weight: 800;
	margin-bottom: .75rem;
}

.ov-dark .ov-step::before {
	background: rgba(138, 240, 255, .14);
	color: #8af0ff;
}

/* ---------- Encadré d'information ---------- */

.is-style-ov-note {
	border-left: 4px solid var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary-soft);
	border-radius: 0 var(--ov-radius-sm) var(--ov-radius-sm) 0;
	padding: 1rem 1.25rem !important;
}

.is-style-ov-note > :first-child {
	margin-top: 0;
}

.is-style-ov-note > :last-child {
	margin-bottom: 0;
}

/* ---------- Code ---------- */

:where(p, li, td) code {
	padding: .1em .4em;
	border-radius: 6px;
	background: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--border);
	font-size: .88em;
}

/* ---------- Articles ---------- */

.ov-post-card .wp-block-post-title a {
	text-decoration: none;
	color: inherit;
}

.ov-post-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
}

.ov-prose > * + h2 {
	margin-top: var(--wp--preset--spacing--60);
}

.ov-prose > * + h3 {
	margin-top: var(--wp--preset--spacing--50);
}

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

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

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

.ov-footer .wp-block-navigation {
	--navigation-layout-direction: column;
}

.ov-footer .wp-block-navigation__container {
	flex-direction: column;
	align-items: flex-start;
	gap: .55rem;
}

.ov-footer .wp-block-heading {
	color: #fff;
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: .12em;
}


/* ---------- Pictogrammes (classe ov-ic + ov-ic-<nom> sur un titre ou un paragraphe) ----------
 * Pastille dégradée au-dessus du texte ; couleurs : ov-ic--cyan, --green, --violet, --amber.
 * Les tracés reprennent ceux de l'administration du plugin. */

.ov-ic {
	position: relative;
	padding-top: 3.6rem !important;
}

.ov-ic::before,
.ov-ic::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
}

.ov-ic::before {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 12px;
	background: linear-gradient(135deg, #8aa4ff, #3858e9);
	box-shadow: 0 8px 18px -8px rgba(56, 88, 233, .7);
}

.ov-ic::after {
	width: 1.35rem;
	height: 1.35rem;
	margin: .7rem;
	background: #fff;
	-webkit-mask: var(--ov-ic) center / contain no-repeat;
	mask: var(--ov-ic) center / contain no-repeat;
}

.ov-ic.has-text-align-center::before {
	left: 50%;
	transform: translateX(-50%);
}

.ov-ic.has-text-align-center::after {
	left: 50%;
	transform: translateX(-50%);
	margin-left: 0;
	margin-right: 0;
}

.ov-ic--cyan::before { background: linear-gradient(135deg, #8af0ff, #19b5d6); box-shadow: 0 8px 18px -8px rgba(25, 181, 214, .7); }
.ov-ic--green::before { background: linear-gradient(135deg, #7ef0c4, #0ea371); box-shadow: 0 8px 18px -8px rgba(14, 163, 113, .7); }
.ov-ic--violet::before { background: linear-gradient(135deg, #d2c4ff, #7c5cf0); box-shadow: 0 8px 18px -8px rgba(124, 92, 240, .7); }
.ov-ic--amber::before { background: linear-gradient(135deg, #ffd27a, #e08a1e); box-shadow: 0 8px 18px -8px rgba(224, 138, 30, .7); }

.ov-ic-shield { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.ov-ic-search { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }
.ov-ic-sparkles { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z'/%3E%3Cpath d='M19 17v4'/%3E%3Cpath d='M17 19h4'/%3E%3C/svg%3E"); }
.ov-ic-layers { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 10 5-10 5L2 7z'/%3E%3Cpath d='m2 17 10 5 10-5'/%3E%3Cpath d='m2 12 10 5 10-5'/%3E%3C/svg%3E"); }
.ov-ic-image { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E"); }
.ov-ic-mail { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.ov-ic-code { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 18 6-6-6-6'/%3E%3Cpath d='m8 6-6 6 6 6'/%3E%3C/svg%3E"); }
.ov-ic-zap { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9z'/%3E%3C/svg%3E"); }
.ov-ic-lock { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }
.ov-ic-redirect { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14l5-5-5-5'/%3E%3Cpath d='M4 20v-7a4 4 0 0 1 4-4h12'/%3E%3C/svg%3E"); }
.ov-ic-file { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 15h6'/%3E%3C/svg%3E"); }
.ov-ic-pin { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.ov-ic-gauge { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 14l4-4'/%3E%3Cpath d='M3.34 19a10 10 0 1 1 17.32 0'/%3E%3C/svg%3E"); }
.ov-ic-sliders { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7'/%3E%3Cpath d='M4 10V3'/%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 8V3'/%3E%3Cpath d='M20 21v-5'/%3E%3Cpath d='M20 12V3'/%3E%3Cpath d='M1 14h6'/%3E%3Cpath d='M9 8h6'/%3E%3Cpath d='M17 16h6'/%3E%3C/svg%3E"); }
.ov-ic-cookie { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5'/%3E%3Cpath d='M8.5 8.5h.01'/%3E%3Cpath d='M16 15.5h.01'/%3E%3Cpath d='M12 12h.01'/%3E%3Cpath d='M11 17h.01'/%3E%3Cpath d='M7 14h.01'/%3E%3C/svg%3E"); }
.ov-ic-key { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3Cpath d='m21 2-9.6 9.6'/%3E%3Cpath d='m15.5 7.5 3 3L22 7l-3-3'/%3E%3C/svg%3E"); }
.ov-ic-chart { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M18 17V9'/%3E%3Cpath d='M13 17V5'/%3E%3Cpath d='M8 17v-3'/%3E%3C/svg%3E"); }
.ov-ic-bell { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E"); }
.ov-ic-users { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.ov-ic-download { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E"); }
.ov-ic-globe { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); }
.ov-ic-refresh { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3C/svg%3E"); }
.ov-ic-tool { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); }
.ov-ic-life-buoy { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='m4.93 4.93 4.24 4.24'/%3E%3Cpath d='m14.83 9.17 4.24-4.24'/%3E%3Cpath d='m14.83 14.83 4.24 4.24'/%3E%3Cpath d='m9.17 14.83-4.24 4.24'/%3E%3C/svg%3E"); }
.ov-ic-tag { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2H2v10l9.29 9.29a1 1 0 0 0 1.41 0l8.59-8.59a1 1 0 0 0 0-1.41z'/%3E%3Ccircle cx='7' cy='7' r='1.5'/%3E%3C/svg%3E"); }
.ov-ic-clock { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
.ov-ic-phone { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.ov-ic-palette { --ov-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='1.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='1.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='1.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='1.5'/%3E%3Cpath d='M12 2a10 10 0 0 0 0 20c.9 0 1.5-.7 1.5-1.5 0-.4-.1-.7-.4-1-.3-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a6 6 0 0 0 6-6c0-5-4.5-9-10-9z'/%3E%3C/svg%3E"); }

/* ---------- Animation d'apparition (désactivée si l'utilisateur la refuse) ---------- */

@media (prefers-reduced-motion: no-preference) {
	.ov-reveal {
		animation: ov-rise .9s var(--ov-ease) both;
	}

	.ov-reveal-2 {
		animation: ov-rise .9s var(--ov-ease) .12s both;
	}

	.ov-reveal-3 {
		animation: ov-rise .9s var(--ov-ease) .24s both;
	}
}

@keyframes ov-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

/* ==========================================================================
   Version 1.5.0 : « un plugin au lieu de cinq »
   Accueil en bandes (classes ov-h-*), animations de assets/js/vitrine.js.
   Sans JavaScript ou en mouvement réduit, tout s'affiche à sa place.
   ========================================================================== */

:root {
	--ov-ink: var(--wp--preset--color--contrast);
	--ov-ink-soft: var(--wp--preset--color--contrast-2);
	--ov-line: var(--wp--preset--color--border);
	--ov-night-ink: #eef1ff;
	--ov-night-soft: #a9b3dc;
	--ov-night-line: rgba(255, 255, 255, .12);
	--ov-ok: #0e9f6e;
	--ov-warn: #c2620a;
	--ov-shadow-shot: 0 30px 60px -30px rgba(12, 19, 48, .35);
}

/* Lenis (défilement doux) */
html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

h1, h2, h3 {
	text-wrap: balance;
}

/* Boutons : pilule pleine, ou contour qui se remplit au survol */
.wp-element-button,
.wp-block-button__link {
	transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.wp-block-button__link:active {
	transform: none;
}

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

:where(.ov-dark, .ov-night, .ov-cta, .ov-plan--hl) .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	border-color: #fff;
	color: var(--wp--preset--color--contrast);
}

/* Petites pastilles « Pro » en ligne */
.ov-badge--pro {
	vertical-align: .1em;
}

/* Bande nuit, sans grille ni halo */
.ov-night {
	position: relative;
	color: var(--ov-night-ink);
}

.ov-night :where(h1, h2, h3, h4, p, li) {
	color: inherit;
}

.ov-night .ov-muted {
	color: var(--ov-night-soft);
}

.ov-night a:where(:not(.wp-element-button)) {
	color: #a9baff;
}

/* Pictogrammes SVG intégrés */
.ov-i {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

/* Titres découpés en mots par le script */
.ov-w {
	display: inline-block;
	will-change: transform;
}

/* En-têtes de bande */
.ov-section > .ov-sec-head {
	margin-bottom: clamp(36px, 5vw, 64px);
}

.ov-sec-head > * {
	max-width: 760px;
}

.ov-sec-head > * + * {
	margin-top: 1rem;
}

.ov-section h2.wp-block-heading {
	font-size: clamp(2rem, 4.4vw, 3.6rem);
	line-height: 1.02;
}

.ov-lead {
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	max-width: 58ch;
}

/* ---------- Héros ---------- */

.ov-h-hero {
	overflow: hidden;
}

.ov-h-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.ov-h-hero__grid > * {
	margin: 0 !important;
	min-width: 0;
}

.ov-h-hero__copy > * + * {
	margin-top: 1.6rem;
}

.ov-h-hero h1 {
	font-size: clamp(2.4rem, 4.9vw, 4.4rem);
}

.ov-hl {
	color: var(--wp--preset--color--primary);
}

.ov-h-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .82rem;
	color: var(--ov-ink-soft);
}

.ov-h-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ov-h-meta span::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ov-ok);
}

.ov-h-stage {
	position: relative;
}

.ov-h-stage > .wp-block-html,
.ov-h-stage > .ov-chip {
	margin: 0;
}

.ov-h-shot.ov-visuel--capture {
	transform: rotate(-1.5deg);
	box-shadow: var(--ov-shadow-shot);
	margin: 0;
}

.ov-chip {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--wp--preset--color--night);
	color: var(--ov-night-ink);
	font: 500 .85rem/1 var(--wp--preset--font-family--mono);
	box-shadow: 0 14px 30px -12px rgba(12, 19, 48, .5);
	white-space: nowrap;
}

.ov-chip b {
	color: #34d399;
	font-weight: 500;
}

.ov-chip--a { top: 8%; left: -6%; }
.ov-chip--b { top: 46%; right: -5%; }
.ov-chip--c { bottom: 6%; left: 8%; }

@media (max-width: 900px) {
	.ov-h-hero__grid {
		grid-template-columns: 1fr;
	}

	.ov-chip--a { left: 2%; }
	.ov-chip--b { right: 2%; }
}

/* ---------- La pile : cinq extensions, une seule ---------- */

.ov-h-stack__grid {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.ov-h-stack__grid > * {
	margin: 0 !important;
	min-width: 0;
}

.ov-h-stack__copy > * + * {
	margin-top: 1.4rem;
}

.ov-count {
	display: flex;
	align-items: baseline;
	gap: .25em;
	margin: 0;
	font: 800 clamp(4rem, 10vw, 8rem)/.9 var(--wp--preset--font-family--display);
	letter-spacing: -.04em;
}

.ov-count small {
	max-width: 16ch;
	font: 500 1rem/1.3 var(--wp--preset--font-family--mono);
	letter-spacing: 0;
	color: var(--ov-night-soft);
}

.ov-pile {
	position: relative;
	display: grid;
	gap: 12px;
}

.ov-ext {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--wp--preset--color--night-2);
	border: 1px solid var(--ov-night-line);
}

.ov-ext__ico {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, .07);
	color: #8aa4ff;
}

.ov-ext strong {
	display: block;
	font-weight: 600;
}

.ov-ext__sub {
	display: block;
	font: 400 .8rem/1.4 var(--wp--preset--font-family--mono);
	color: var(--ov-night-soft);
}

.ov-ext__tag {
	font: 500 .72rem/1 var(--wp--preset--font-family--mono);
	padding: 6px 9px;
	border-radius: 999px;
	background: rgba(245, 165, 36, .14);
	color: #f5b94a;
	white-space: nowrap;
}

.ov-one {
	display: grid;
	gap: 14px;
	margin-top: 8px;
	padding: 22px;
	border-radius: 16px;
	background: #fff;
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 30px 70px -30px rgba(56, 88, 233, .8);
}

.ov-one__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ov-one__logo {
	width: 40px;
	height: 40px;
	background: url("assets/logo/optimizr-icone.svg") center / contain no-repeat;
}

.ov-one__head strong {
	font: 800 1.3rem/1 var(--wp--preset--font-family--display);
	letter-spacing: -.02em;
}

.ov-one__ver {
	font: 500 .75rem/1 var(--wp--preset--font-family--mono);
	background: var(--wp--preset--color--primary-soft);
	padding: 5px 8px;
	border-radius: 6px;
	color: var(--ov-ink-soft);
}

.ov-status {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.ov-status span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 500 .8rem/1 var(--wp--preset--font-family--mono);
	padding: 7px 10px;
	border-radius: 999px;
	background: #e7f7f0;
	color: #0b7a55;
}

.ov-status span::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ov-ok);
}

.ov-toggles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	font-size: .92rem;
}

.ov-toggles li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	list-style: none;
	padding: 6px 0;
	border-bottom: 1px solid #eef1fb;
}

.ov-sw {
	position: relative;
	flex: none;
	width: 30px;
	height: 18px;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
}

.ov-sw::after {
	content: "";
	position: absolute;
	top: 3px;
	right: 3px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
}

@media (max-width: 900px) {
	.ov-h-stack__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.ov-toggles {
		grid-template-columns: 1fr;
	}

	.ov-ext {
		grid-template-columns: auto 1fr;
	}

	.ov-ext__tag {
		grid-column: 2;
		justify-self: start;
	}
}

/* Mode animé (ajouté par le script sur grand écran) : cartes empilées, puis fusion */
.ov-motion .ov-h-stack {
	min-height: 100vh;
	display: flex;
	align-items: center;
}

/* Section épinglée : l'enveloppe ajoutée par ScrollTrigger garde la pleine largeur */
.pin-spacer > .ov-h-stack {
	width: 100% !important;
	max-width: none !important;
}

.has-global-padding > .pin-spacer {
	max-width: none !important;
	width: auto !important;
	margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
	margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
}

.ov-motion .ov-h-stack > .ov-h-stack__grid {
	width: 100%;
}

.ov-motion .ov-pile {
	display: block;
	height: 540px;
}

.ov-motion .ov-pile .ov-ext {
	position: absolute;
	left: 0;
	right: 0;
}

.ov-motion .ov-pile .ov-one {
	position: absolute;
	left: 4%;
	right: 4%;
	top: 50%;
	margin: 0;
}

/* ---------- Trois promesses ---------- */

.ov-trio {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--ov-line);
}

.ov-trio > .ov-trio__item {
	margin: 0 !important;
	padding: 32px 28px 8px 0;
	min-width: 0;
}

.ov-trio > .ov-trio__item + .ov-trio__item {
	padding-left: 28px;
	border-left: 1px solid var(--ov-line);
}

.ov-trio__item > * + * {
	margin-top: 14px;
}

.ov-trio__ico {
	display: block;
	color: var(--wp--preset--color--primary);
}

.ov-trio__ico .ov-i {
	width: 30px;
	height: 30px;
}

.ov-big {
	font: 800 clamp(2.4rem, 4vw, 3.4rem)/1 var(--wp--preset--font-family--display);
	letter-spacing: -.035em;
}

.ov-spec {
	margin-bottom: 0;
	padding: 12px 14px;
	overflow-x: auto;
	font: 400 .82rem/1.55 var(--wp--preset--font-family--mono);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--ov-line);
	border-radius: 10px;
	color: var(--ov-ink);
	white-space: pre;
}

.ov-spec .c { color: var(--ov-ink-soft); }
.ov-spec .ok { color: var(--ov-ok); }
.ov-spec .no { color: var(--ov-warn); }

.ov-trio .is-style-ov-checklist {
	font-size: .95rem;
}

@media (max-width: 900px) {
	.ov-trio {
		grid-template-columns: 1fr;
	}

	.ov-trio > .ov-trio__item,
	.ov-trio > .ov-trio__item + .ov-trio__item {
		padding: 28px 0;
		border-left: 0;
		border-bottom: 1px solid var(--ov-line);
	}
}

/* ---------- Import ---------- */

.ov-h-import__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}

.ov-card-night {
	margin: 0 !important;
	min-width: 0;
	padding: 22px;
	border-radius: 16px;
	background: var(--wp--preset--color--night-2);
	border: 1px solid var(--ov-night-line);
}

.ov-card-night h3 {
	font-size: 1.05rem;
	margin-bottom: 14px;
}

.ov-card-night > * + * {
	margin-top: 18px;
}

.ov-sources {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ov-sources li {
	position: relative;
	padding: 12px 0 12px 32px;
	border-top: 1px solid var(--ov-night-line);
}

.ov-sources li:first-child {
	border-top: 0;
}

.ov-sources li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 15px;
	width: 20px;
	height: 20px;
	border-radius: 5px;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.ov-sources {
	font-size: 1rem;
}

.ov-sources strong {
	font-weight: 600;
}

.ov-sources span:not(.ov-badge) {
	display: block;
	font: 400 .8rem/1.45 var(--wp--preset--font-family--mono);
	color: var(--ov-night-soft);
}

.ov-scroll-x {
	overflow-x: auto;
}

.ov-map {
	width: 100%;
	border-collapse: collapse;
	font: 400 .9rem/1.4 var(--wp--preset--font-family--mono);
}

.ov-map td {
	padding: 11px 0;
	border-top: 1px solid var(--ov-night-line);
	vertical-align: middle;
}

.ov-map tr:first-child td {
	border-top: 0;
}

.ov-map td:first-child { color: #f5b94a; }
.ov-map td:last-child { color: #7ef0c4; text-align: right; }

.ov-map .ov-map__arrow {
	width: 40px;
	text-align: center;
	color: var(--ov-night-soft);
}

.ov-map__src {
	display: block;
	font-size: .72rem;
	color: var(--ov-night-soft);
}

.ov-night .is-style-ov-checklist {
	color: var(--ov-night-soft);
	font-size: .95rem;
}

@media (max-width: 900px) {
	.ov-h-import__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Freelances ---------- */

.ov-h-free__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.ov-h-free__grid > * {
	margin: 0 !important;
	min-width: 0;
}

.ov-h-free__copy > * + * {
	margin-top: 1.4rem;
}

.ov-numbers {
	list-style: none;
	margin-top: 28px !important;
	padding: 0;
	counter-reset: ov-n;
}

.ov-numbers li {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 0 16px;
	padding: 18px 0;
	border-top: 1px solid var(--ov-line);
	counter-increment: ov-n;
}

.ov-numbers li::before {
	content: counter(ov-n, decimal-leading-zero);
	grid-row: span 2;
	font: 500 .9rem/1.6 var(--wp--preset--font-family--mono);
	color: var(--wp--preset--color--primary);
}

.ov-numbers strong {
	font-weight: 600;
}

.ov-numbers li span {
	grid-column: 2;
	color: var(--ov-ink-soft);
	font-size: .95rem;
}

@media (max-width: 900px) {
	.ov-h-free__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Mesurer ---------- */

.ov-duo {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 40px);
}

.ov-duo > .ov-duo__item {
	margin: 0 !important;
	min-width: 0;
}

.ov-duo__item h3 {
	margin-top: 1.1rem;
	font-size: 1.2rem;
}

.ov-duo__item h3 + p {
	margin-top: .3rem;
	font-size: .95rem;
}

.ov-duo .ov-visuel--capture img {
	aspect-ratio: 16 / 11;
	object-fit: cover;
	object-position: top left;
}

@media (max-width: 760px) {
	.ov-duo {
		grid-template-columns: 1fr;
	}
}

/* ---------- Modules ---------- */

.ov-h-modules {
	border-block: 1px solid var(--ov-line);
}

.ov-index {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 clamp(20px, 3vw, 48px);
}

.ov-index > .ov-index__col {
	margin: 0 !important;
	min-width: 0;
}

.ov-index__col h3 {
	padding-bottom: 12px;
	border-bottom: 2px solid var(--ov-ink);
	font: 500 1rem/1.2 var(--wp--preset--font-family--mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

.ov-index__list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}

.ov-index__list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 13px 0;
	border-bottom: 1px solid var(--ov-line);
	font-weight: 500;
}

.ov-index__list em {
	font: 400 .74rem/1 var(--wp--preset--font-family--mono);
	font-style: normal;
	color: var(--ov-ink-soft);
	white-space: nowrap;
}

.ov-index__list em.is-pro {
	color: var(--wp--preset--color--primary);
}

@media (max-width: 900px) {
	.ov-index {
		grid-template-columns: 1fr;
	}
}

/* ---------- Tarifs ---------- */

.ov-plans {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

.ov-plans > .ov-plan {
	margin: 0 !important;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	border: 1px solid var(--ov-line);
	border-radius: 18px;
	background: var(--wp--preset--color--base);
}

.ov-plan > * {
	margin: 0 !important;
}

.ov-plan .wp-block-buttons {
	margin-top: auto !important;
}

.ov-plan--hl {
	background: var(--wp--preset--color--night) !important;
	border-color: var(--wp--preset--color--night) !important;
	color: var(--ov-night-ink);
}

.ov-plan__name {
	font: 500 .8rem/1 var(--wp--preset--font-family--mono);
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ov-plan__price {
	font: 800 3rem/1 var(--wp--preset--font-family--display);
	letter-spacing: -.04em;
	font-variant-numeric: tabular-nums;
}

.ov-plan__price small {
	font: 400 .9rem/1 var(--wp--preset--font-family--text);
	letter-spacing: 0;
	color: var(--ov-ink-soft);
}

.ov-plan--hl .ov-plan__price small,
.ov-plan--hl .is-style-ov-checklist {
	color: var(--ov-night-soft);
}

.ov-plan .is-style-ov-checklist {
	font-size: .95rem;
}

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

.ov-section > .ov-after {
	margin-top: 18px;
}

/* Bandes collées les unes aux autres */
.wp-block-post-content > .ov-section.alignfull {
	margin-block-start: 0;
}

@media (max-width: 1100px) {
	.ov-plans {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ov-plans {
		grid-template-columns: 1fr;
	}
}

/* ---------- Questions ---------- */

.ov-h-faq__grid {
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	gap: clamp(32px, 5vw, 72px);
}

.ov-h-faq__grid > * {
	margin: 0 !important;
	min-width: 0;
}

.ov-h-faq__head > * + * {
	margin-top: 1rem;
}

.ov-h-faq__list .wp-block-details.is-style-ov-faq {
	margin: 0;
	border: 0;
	border-top: 1px solid var(--ov-line);
	border-radius: 0;
	background: none;
}

.ov-h-faq__list .wp-block-details.is-style-ov-faq:last-child {
	border-bottom: 1px solid var(--ov-line);
}

.ov-h-faq__list .wp-block-details.is-style-ov-faq summary {
	padding: 20px 40px 20px 0;
	font-size: 1.08rem;
	font-weight: 600;
}

.ov-h-faq__list .wp-block-details.is-style-ov-faq summary::after {
	content: "+";
	right: 4px;
	top: 16px;
	width: auto;
	height: auto;
	border: 0;
	transform: none;
	font: 400 1.6rem/1 var(--wp--preset--font-family--mono);
	color: var(--wp--preset--color--primary);
	opacity: 1;
}

.ov-h-faq__list .wp-block-details.is-style-ov-faq[open] summary::after {
	transform: rotate(45deg);
}

.ov-h-faq__list .wp-block-details.is-style-ov-faq > :not(summary) {
	padding: 0 0 22px;
	max-width: 62ch;
}

@media (max-width: 900px) {
	.ov-h-faq__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Bande finale (toutes les pages) ---------- */

.ov-cta h2.wp-block-heading {
	font-size: clamp(2.8rem, 9vw, 8rem);
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: .92;
}

.ov-cta > * {
	max-width: var(--wp--style--global--wide-size) !important;
}

.ov-cta > * + * {
	margin-top: 30px;
}

.ov-cta .ov-lead {
	color: rgba(255, 255, 255, .85);
}

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

.ov-cta .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-soft);
	border-color: var(--wp--preset--color--primary-soft);
}
