/*
Theme Name: Mirai Prod
Theme URI: https://miraiprod.com
Description: Thème enfant de Twenty Twenty-Five pour Mirai Prod, agence de vidéos UGC.
Author: Mirai Prod
Template: twentytwentyfive
Version: 1.2.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: mirai-prod
License: GPL-2.0-or-later
*/

:root {
	--mp-red: var(--wp--preset--color--accent-1);
	--mp-ink: var(--wp--preset--color--contrast);
	--mp-ink-2: var(--wp--preset--color--ink-2);
	--mp-paper: var(--wp--preset--color--base);
	--mp-blush: var(--wp--preset--color--accent-2);
	--mp-green: var(--wp--preset--color--accent-3);
	--mp-muted: var(--wp--preset--color--accent-4);
	--mp-white: var(--wp--preset--color--accent-5);
	--mp-line: var(--wp--preset--color--accent-6);
	--mp-mono: var(--wp--preset--font-family--fira-code, ui-monospace, Menlo, monospace);
	--mp-radius: 14px;
	--mp-topbar-h: 2.25rem;
}

/* ---------- Header ---------- */
/* Template parts and main sit flush: no theme gap between header, sections and footer. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}
/* The whole header part sticks; it slides up by the top bar's height so only the menu row stays. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: calc(-1 * var(--mp-topbar-h));
	z-index: 50;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: calc(32px - var(--mp-topbar-h));
}
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: calc(-1 * var(--mp-topbar-h));
	}
}
.mp-topbar {
	--mp-topbar-h: 2.25rem;
	height: var(--mp-topbar-h);
	box-sizing: border-box;
	padding-block: 0 !important;
	align-items: center;
	font-size: 0.85rem;
	overflow: hidden;
}
.mp-topbar p {
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mp-topbar a {
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}
.mp-topbar a:hover {
	text-decoration: underline;
	color: inherit;
}
.mp-header {
	backdrop-filter: saturate(1.4) blur(10px);
	background: color-mix(in srgb, var(--mp-paper) 88%, transparent);
	border-bottom: 1px solid var(--mp-line);
}
/* Logo: Syne lettering as outlines, so no font file to load. Ink follows the text color. */
.mp-logo {
	display: inline-flex;
	color: var(--mp-ink);
	text-decoration: none;
	flex: none;
}
.mp-logo:hover {
	color: var(--mp-ink);
}
.mp-logo:focus-visible {
	outline: 2px solid var(--mp-red);
	outline-offset: 4px;
	border-radius: 4px;
}
.mp-logo-svg {
	display: block;
	height: 38px;
	width: auto;
}
@media (max-width: 600px) {
	.mp-logo-svg {
		height: 28px;
	}
}
.mp-footer .mp-logo,
.mp-footer .mp-logo:hover {
	color: var(--mp-white);
}
/* On phones the quote button is pinned to the bottom of the screen instead. */
@media (max-width: 781px) {
	.mp-header .wp-block-buttons {
		display: none;
	}
}
.mp-header .wp-block-navigation a {
	text-decoration: none;
}
.mp-header .wp-block-navigation a:hover {
	color: var(--mp-red);
}

/* ---------- Shared pieces ---------- */
.mp-eyebrow {
	font-family: var(--mp-mono);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mp-muted);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.mp-eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mp-red);
}
.mp-dark .mp-eyebrow {
	color: color-mix(in srgb, var(--mp-white) 70%, transparent);
}
.mp-lede {
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	color: var(--mp-muted);
	max-width: 46ch;
}
.mp-dark .mp-lede {
	color: color-mix(in srgb, var(--mp-white) 75%, transparent);
}
.mp-dark a:not(.wp-block-button__link) {
	color: var(--mp-white);
}
.mp-small {
	font-size: 0.88rem;
	color: var(--mp-muted);
}
.mp-num {
	font-variant-numeric: tabular-nums;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: currentColor;
	border: 2px solid currentColor;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--mp-ink);
	color: var(--mp-white);
	border-color: var(--mp-ink);
}
.mp-dark .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--mp-white);
	color: var(--mp-ink);
	border-color: var(--mp-white);
}

.mp-card {
	background: var(--mp-white);
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
}

/* ---------- Hero ---------- */
.mp-hero h1 em {
	font-style: normal;
	color: var(--mp-red);
}
.mp-hero-facts {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	font-size: 0.92rem;
	font-weight: 600;
}
.mp-hero-facts li::before {
	content: "✓";
	color: var(--mp-green);
	margin-right: 0.4rem;
}

/* ---------- Proof bar ---------- */
.mp-proof {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1px;
	background: var(--mp-line);
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	overflow: hidden;
}
.mp-proof li {
	background: var(--mp-white);
	padding: 1.1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.mp-proof strong {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.mp-proof span {
	font-size: 0.88rem;
	color: var(--mp-muted);
}

/* ---------- Steps (a real sequence, so numbered) ---------- */
.mp-steps {
	counter-reset: mp-step;
}
.mp-steps > .wp-block-column {
	counter-increment: mp-step;
	border-top: 3px solid var(--mp-ink);
	padding-top: 1rem;
}
.mp-steps > .wp-block-column::before {
	content: "0" counter(mp-step);
	font-family: var(--mp-mono);
	font-size: 0.85rem;
	color: var(--mp-red);
	display: block;
	margin-bottom: 0.5rem;
}
.mp-dark .mp-steps > .wp-block-column {
	border-top-color: var(--mp-white);
}

/* ---------- Pricing ---------- */
.mp-prices > .wp-block-column {
	background: var(--mp-white);
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}
.mp-prices > .wp-block-column.mp-featured {
	border: 2px solid var(--mp-red);
	box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--mp-red) 60%, transparent);
	position: relative;
}
.mp-badge {
	display: inline-block;
	font-family: var(--mp-mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--mp-blush);
	color: var(--mp-red);
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	align-self: flex-start;
}
.mp-price-amount {
	font-size: 2.6rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.mp-price-amount small {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--mp-muted);
	letter-spacing: 0;
}
.mp-checks {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	font-size: 0.95rem;
}
.mp-checks li {
	padding-left: 1.5rem;
	position: relative;
}
.mp-checks li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--mp-green);
	font-weight: 800;
}
.mp-prices .wp-block-buttons {
	margin-top: auto;
}

/* ---------- Comparison & rights tables ---------- */
.mp-table {
	overflow-x: auto;
}
.mp-table table {
	border-collapse: collapse;
	width: 100%;
	min-width: 620px;
	font-size: 0.95rem;
	background: var(--mp-white);
	border-radius: var(--mp-radius);
	overflow: hidden;
}
.mp-table th,
.mp-table td {
	border: 0;
	border-bottom: 1px solid var(--mp-line);
	padding: 0.85rem 1rem;
	text-align: left;
	vertical-align: top;
}
.mp-table thead th {
	font-family: var(--mp-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mp-muted);
	background: var(--mp-paper);
}
.mp-table td:last-child,
.mp-table th:last-child {
	background: var(--mp-blush);
	font-weight: 700;
}
.mp-table thead th:last-child {
	color: var(--mp-red);
}
.mp-table figcaption {
	font-size: 0.85rem;
	color: var(--mp-muted);
}

/* ---------- Guarantee ---------- */
.mp-guarantee {
	border: 2px dashed var(--mp-red);
	border-radius: var(--mp-radius);
}

/* ---------- Sector cards ---------- */
.mp-sectors > .wp-block-column {
	background: var(--mp-white);
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	padding: 1.4rem;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.mp-sectors > .wp-block-column:hover {
	border-color: var(--mp-red);
}
.mp-sectors h3 a {
	text-decoration: none;
}
.mp-sectors h3 a::after {
	content: " →";
	color: var(--mp-red);
}
@media (prefers-reduced-motion: no-preference) {
	.mp-sectors > .wp-block-column:hover {
		transform: translateY(-2px);
	}
}

/* ---------- FAQ ---------- */
.mp-faq .wp-block-details {
	border-bottom: 1px solid var(--mp-line);
	padding: 1rem 0;
}
.mp-faq .wp-block-details summary {
	font-weight: 700;
	font-size: 1.05rem;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.mp-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}
.mp-faq .wp-block-details summary::after {
	content: "+";
	color: var(--mp-red);
	font-weight: 800;
	font-size: 1.3rem;
	line-height: 1;
}
.mp-faq .wp-block-details[open] summary::after {
	content: "–";
}
.mp-faq .wp-block-details p {
	color: var(--mp-muted);
	margin-top: 0.6rem;
}

/* ---------- Footer ---------- */
.mp-footer a {
	text-decoration: none;
}
.mp-footer a:hover {
	text-decoration: underline;
	color: var(--mp-white);
}
.mp-footer .wp-block-navigation {
	font-size: 0.92rem;
}
.mp-footer h2 {
	font-family: var(--mp-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 500;
	color: color-mix(in srgb, var(--mp-white) 60%, transparent);
}

/* Legal pages: comfortable reading */
.mp-legal h2 {
	font-size: 1.4rem;
	margin-top: 2.2rem;
}
.mp-placeholder {
	background: #fff4c2;
	padding: 0 0.25em;
	border-radius: 3px;
}

/* ---------- Blog: article ---------- */
.mp-article-meta {
	gap: 0.75rem;
	align-items: center;
}
.mp-article-meta .mp-eyebrow a {
	color: inherit;
	text-decoration: none;
}
.mp-article-cat a,
.mp-blog-card-cat a {
	font-family: var(--mp-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mp-red);
	text-decoration: none;
}
.mp-article-title {
	font-size: clamp(2rem, 4.4vw, 3rem);
}
.mp-article-byline {
	font-size: 0.9rem;
	color: var(--mp-muted);
}

.mp-article-cover img {
	border-radius: var(--mp-radius);
}
.mp-prose {
	font-size: 1.075rem;
	line-height: 1.75;
}
.mp-prose > * + * {
	margin-block-start: 1.1em;
}
.mp-prose h2 {
	font-size: clamp(1.5rem, 2.6vw, 1.9rem);
	margin-block-start: 2.4em;
	scroll-margin-top: 6rem;
}
.mp-prose h3 {
	font-size: 1.2rem;
	margin-block-start: 1.8em;
}
.mp-prose ul,
.mp-prose ol {
	padding-left: 1.3em;
}
.mp-prose li + li {
	margin-top: 0.35em;
}
.mp-prose a {
	text-decoration-color: var(--mp-red);
	text-underline-offset: 3px;
}
.mp-prose .wp-block-table {
	overflow-x: auto;
	font-size: 0.95rem;
	line-height: 1.5;
}
.mp-prose .wp-block-table table {
	border-collapse: collapse;
	width: 100%;
	background: var(--mp-white);
}
.mp-prose .wp-block-table th,
.mp-prose .wp-block-table td {
	border: 0;
	border-bottom: 1px solid var(--mp-line);
	padding: 0.7rem 0.85rem;
	text-align: left;
	vertical-align: top;
}
.mp-prose .wp-block-table thead th {
	font-family: var(--mp-mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mp-muted);
	background: var(--mp-paper);
	border-bottom: 2px solid var(--mp-ink);
}
.mp-prose .wp-block-table figcaption {
	font-size: 0.85rem;
	color: var(--mp-muted);
}

/* "En bref": the direct answer at the top */
.mp-enbref {
	background: var(--mp-white);
	border: 1px solid var(--mp-line);
	border-left: 4px solid var(--mp-red);
	border-radius: 0 var(--mp-radius) var(--mp-radius) 0;
	padding: 1.1rem 1.25rem;
}
.mp-enbref > * {
	margin: 0;
}
.mp-enbref > * + * {
	margin-top: 0.5rem;
}
.mp-enbref-label {
	font-family: var(--mp-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mp-red);
}

/* Table of contents */
.mp-toc {
	border-top: 1px solid var(--mp-line);
	border-bottom: 1px solid var(--mp-line);
	padding-block: 1rem;
	font-size: 0.95rem;
}
.mp-toc > p {
	margin: 0 0 0.5rem;
	font-weight: 700;
}
.mp-toc ol {
	margin: 0;
}
.mp-toc a {
	text-decoration: none;
}
.mp-toc a:hover {
	text-decoration: underline;
}

/* Legal note */
.mp-note {
	font-size: 0.9rem;
	color: var(--mp-muted);
	border-left: 3px solid var(--mp-line);
	padding-left: 1rem;
}

/* Author box */
.mp-author-box {
	background: var(--mp-white);
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	margin-top: var(--wp--preset--spacing--50);
}
.mp-author-box .wp-block-post-author__byline {
	font-family: var(--mp-mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mp-muted);
}
.mp-author-box .wp-block-post-author__name {
	font-weight: 700;
}
.mp-author-box .wp-block-post-author__avatar img {
	border-radius: 50%;
}

/* ---------- Blog: list ---------- */
.mp-blog-card {
	background: var(--mp-white);
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	overflow: hidden;
	padding-bottom: 1.25rem;
	height: 100%;
}
.mp-blog-card > *:not(.wp-block-post-featured-image) {
	padding-inline: 1.25rem;
}
.mp-blog-card .wp-block-post-featured-image {
	margin: 0;
}
.mp-blog-card-title {
	font-size: 1.25rem;
	line-height: 1.25;
}
.mp-blog-card-title a {
	text-decoration: none;
}
.mp-blog-card-title a:hover {
	color: var(--mp-red);
}
.mp-blog-card .wp-block-post-excerpt__more-text {
	display: none;
}
