/*
Theme Name: Mirrors Translations
Theme URI: https://mirrors-translations.be/
Author: Mirrors Translations
Description: Thème sur mesure pour Mirrors Translations (piste « Atlantique ») : bleu pétrole, jaune safran, Plus Jakarta Sans hébergée localement, trilingue FR/EN/NL avec Polylang.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mirrors-translations
*/

/* ===== Couleurs et mesures ===== */
:root {
	--mt-petrol: #0E4A5A;
	--mt-petrol-line: #2A6575;
	--mt-saffron: #F4B53F;
	--mt-ink: #14181F;
	--mt-paper: #F7F4EE;
	--mt-mist: #E5EEF0;
	--mt-mist-line: #D5E3E6;
	--mt-sky: #A7C9D1;
	--mt-muted: #4C5763;
	--mt-footer-text: #C9D1D6;
	--mt-white: #FFFFFF;
	--mt-max: 1200px;
	--mt-gutter: clamp(16px, 4vw, 32px);
	--mt-radius: 16px;
	--mt-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--mt-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--mt-ink);
	background: var(--mt-paper);
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--mt-petrol); text-underline-offset: 3px; }
a:hover { color: var(--mt-ink); }
:focus-visible { outline: 3px solid var(--mt-saffron); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p, ul, ol { margin: 0 0 1em; }

.mt-skip {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	background: var(--mt-saffron); color: var(--mt-ink); padding: 12px 18px; border-radius: 8px; font-weight: 700;
}
.mt-skip:focus { top: 12px; }

.mt-container, .mt-section, .mt-header__inner, .mt-footer__inner {
	width: 100%;
	max-width: calc(var(--mt-max) + 2 * var(--mt-gutter));
	margin-inline: auto;
	padding-inline: var(--mt-gutter);
}

/* ===== En-tête ===== */
.mt-header { background: var(--mt-petrol); color: var(--mt-white); position: relative; z-index: 20; }
.mt-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.mt-logo { display: block; line-height: 0; flex: 0 0 auto; }
.mt-logo img { height: 52px; width: auto; }

.mt-nav--desktop { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.mt-nav__list { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.mt-nav a { color: var(--mt-white); text-decoration: none; }
.mt-nav__list a { display: inline-block; padding-block: 6px; border-bottom: 3px solid transparent; }
.mt-nav__list a:hover { border-bottom-color: var(--mt-sky); color: var(--mt-white); }
.mt-nav__list a[aria-current="page"] { border-bottom-color: var(--mt-saffron); }

.mt-langs { display: flex; gap: 4px; padding: 4px; margin: 0; list-style: none; border: 1px solid var(--mt-sky); border-radius: 999px; font-size: 13px; font-weight: 700; }
.mt-langs a { display: block; padding: 4px 10px; border-radius: 999px; color: var(--mt-white); text-decoration: none; }
.mt-langs a:hover { background: var(--mt-petrol-line); color: var(--mt-white); }
.mt-langs a.is-current { background: var(--mt-white); color: var(--mt-petrol); }

.mt-burger { display: none; }
.mt-burger summary { list-style: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--mt-sky); border-radius: 10px; cursor: pointer; color: var(--mt-white); }
.mt-burger summary::-webkit-details-marker { display: none; }
.mt-burger__close { display: none; }
.mt-burger[open] .mt-burger__open { display: none; }
.mt-burger[open] .mt-burger__close { display: block; }
.mt-nav--mobile { position: absolute; left: 0; right: 0; top: 100%; background: var(--mt-petrol); padding: 8px var(--mt-gutter) 24px; border-top: 1px solid var(--mt-petrol-line); box-shadow: 0 16px 24px rgba(20, 24, 31, 0.25); }
.mt-nav--mobile .mt-nav__list { flex-direction: column; gap: 0; font-size: 18px; font-weight: 700; }
.mt-nav--mobile .mt-nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--mt-petrol-line); }
.mt-nav--mobile .mt-nav__list a[aria-current="page"] { color: var(--mt-saffron); }
.mt-langs--mobile { margin-top: 18px; width: max-content; font-size: 15px; }
.mt-langs--mobile a { padding: 8px 16px; }

@media (max-width: 1100px) {
	.mt-nav--desktop { display: none; }
	.mt-burger { display: block; }
	.mt-logo img { height: 42px; }
}

/* ===== Boutons ===== */
.mt-btn, .wp-block-button__link {
	display: inline-block; padding: 16px 28px; border-radius: 8px; border: 2px solid transparent;
	font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
	background: var(--mt-petrol); color: var(--mt-white); transition: transform .15s ease, background-color .15s ease;
}
.mt-btn:hover, .wp-block-button__link:hover { transform: translateY(-1px); }
.mt-btn--small { padding: 12px 20px; font-size: 15px; }
.mt-btn--accent, .mt-btn--accent:hover,
.wp-block-button.mt-btn-accent .wp-block-button__link, .wp-block-button.mt-btn-accent .wp-block-button__link:hover { background: var(--mt-saffron); color: var(--mt-ink); }
.mt-btn--dark, .mt-btn--dark:hover,
.wp-block-button.mt-btn-dark .wp-block-button__link, .wp-block-button.mt-btn-dark .wp-block-button__link:hover { background: var(--mt-ink); color: var(--mt-white); }
.wp-block-button.mt-btn-outline .wp-block-button__link, .wp-block-button.mt-btn-outline .wp-block-button__link:hover { background: transparent; border-color: currentColor; color: var(--mt-white); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

/* ===== Contenu ===== */
.mt-content > * { margin-top: 0; margin-bottom: 0; }
.mt-section { padding-block: 88px 32px; }
.mt-section:last-child { padding-bottom: 96px; }
.mt-section--tight { padding-block: 32px; }
.mt-section--end { padding-bottom: 96px; }
.alignfull { width: 100%; max-width: none; margin-inline: 0; }

.mt-kicker { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mt-petrol); }
.mt-title { font-size: clamp(30px, 3.4vw, 44px); max-width: 760px; margin-bottom: 40px; }
.mt-subtitle { font-size: 22px; }
.mt-intro { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 900px; margin-bottom: 48px; }
.mt-muted, .mt-card p, .mt-split p { color: var(--mt-muted); }

/* Bandeau de titre */
.mt-hero { background: var(--mt-petrol); color: var(--mt-white); padding-block: 56px 88px; }
.mt-hero h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--mt-white); }
.mt-hero .mt-kicker { color: var(--mt-saffron); margin-bottom: 20px; }
.mt-hero__symbol { margin: 0 0 8px; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; font-weight: 800; color: var(--mt-saffron); }
.mt-hero__lead { margin: 0; font-size: clamp(18px, 1.8vw, 22px); color: var(--mt-mist); max-width: 820px; }
.mt-hero--home { padding-block: 72px 104px; }
.mt-hero--home .mt-hero__lead { font-size: 19px; max-width: 560px; margin-bottom: 36px; }
.mt-hero__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.mt-hero__text { flex: 1 1 520px; min-width: 0; }
.mt-hero .wp-block-button.mt-btn-outline .wp-block-button__link { padding-block: 14px; }

/* Carte des langues */
.mt-langcard { flex: 1 1 340px; min-width: 0; background: var(--mt-white); color: var(--mt-ink); border-radius: var(--mt-radius); padding: 32px; }
.mt-langcard__label { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mt-petrol); }
.mt-langcard__list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.mt-langcard__list li { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--mt-mist); border-radius: 10px; }
.mt-langcard__list li::after { content: "→"; color: var(--mt-petrol); }
.mt-langcard__target { margin: 0 0 18px; padding: 16px; background: var(--mt-saffron); border-radius: 10px; font-weight: 800; font-size: 20px; text-align: center; }
.mt-langcard__note { margin: 0; font-size: 15px; color: var(--mt-muted); }

/* Grilles et cartes */
.mt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.mt-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mt-card { background: var(--mt-white); border-radius: var(--mt-radius); padding: 32px; border-top: 6px solid var(--mt-petrol); display: flex; flex-direction: column; }
.mt-card--accent { border-top-color: var(--mt-saffron); }
.mt-card h2, .mt-card h3 { font-size: 24px; margin-bottom: 14px; }
.mt-card h4 { font-size: 17px; color: var(--mt-petrol); margin-bottom: 14px; }
.mt-card p:last-child { margin-bottom: 0; }
.mt-card__link { margin-top: auto !important; padding-top: 8px; font-weight: 700; }
.mt-card__link a { text-decoration: none; }
.mt-card__link a::after { content: " →"; }
.mt-badge { display: inline-block; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--mt-mist); color: var(--mt-petrol) !important; font-size: 14px; font-weight: 700; }

.mt-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; font-weight: 700; }
.mt-tiles li { background: var(--mt-white); border-radius: var(--mt-radius); padding: 24px; }
.mt-tiles li::before { content: ""; display: block; width: 32px; height: 5px; border-radius: 3px; background: var(--mt-saffron); margin-bottom: 16px; }
.mt-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; font-weight: 600; }
.mt-chips li { background: var(--mt-white); border: 1px solid var(--mt-mist-line); border-radius: 12px; padding: 18px 20px; }
.mt-tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; }
.mt-tags li { padding: 8px 14px; border-radius: 999px; background: var(--mt-mist); color: var(--mt-petrol); }

.mt-langgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.mt-langgrid li { background: var(--mt-white); border-radius: var(--mt-radius); padding: 22px 24px; color: var(--mt-muted); }
.mt-langgrid li strong { display: block; font-size: 22px; color: var(--mt-ink); }
.mt-langgrid li:last-child { background: var(--mt-saffron); color: var(--mt-ink); }

/* Panneaux */
.mt-panel { background: var(--mt-mist); border-radius: 20px; padding: clamp(28px, 4vw, 48px); }
.mt-panel--accent { background: var(--mt-saffron); }
.mt-panel--accent .mt-kicker, .mt-panel--accent p { color: var(--mt-ink); }
.mt-panel--white { background: var(--mt-white); }
.mt-panel h2 { font-size: clamp(26px, 3vw, 36px); }
.mt-panel > :last-child { margin-bottom: 0; }

.mt-split { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.mt-split--top { align-items: flex-start; }
.mt-split__main { flex: 2 1 460px; min-width: 0; }
.mt-split__side { flex: 1 1 300px; min-width: 0; }
.mt-split__main > :last-child, .mt-split__side > :last-child { margin-bottom: 0; }

/* Étapes */
.mt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: mt-step; }
.mt-steps li { counter-increment: mt-step; background: var(--mt-white); border-radius: 12px; padding: 24px; font-size: 15px; color: var(--mt-muted); }
.mt-steps li::before { content: counter(mt-step); display: block; font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--mt-petrol); margin-bottom: 8px; }
.mt-steps strong { display: block; font-size: 17px; color: var(--mt-ink); margin-bottom: 4px; }

/* Bandes pleine largeur */
.mt-band { background: var(--mt-white); }
.mt-band--dark { background: var(--mt-petrol); color: var(--mt-white); }
.mt-band > .mt-container { padding-block: 96px; }
.mt-cta > .mt-container { padding-block: 72px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.mt-cta h2 { flex: 1 1 480px; min-width: 0; margin: 0; font-size: clamp(28px, 3vw, 40px); color: var(--mt-white); }
.mt-cta__text { flex: 1 1 480px; min-width: 0; }
.mt-cta__text h2 { margin-bottom: 12px; }
.mt-cta__text p { margin: 0; font-size: 19px; color: var(--mt-mist); }
.mt-band--dark a:not(.wp-block-button__link) { color: var(--mt-white); }

/* Portrait */
.mt-portrait { flex: 1 1 320px; min-width: 0; max-width: 440px; margin: 0 16px 16px 0; }
.mt-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 58% 30%; border-radius: 20px; box-shadow: 16px 16px 0 var(--mt-saffron); }

/* Contact */
.mt-contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mt-contact-list li { background: var(--mt-white); border-radius: 14px; padding: 20px 22px; font-size: 14px; color: var(--mt-muted); }
.mt-contact-list a { display: block; font-size: 19px; font-weight: 800; color: var(--mt-ink); text-decoration: none; overflow-wrap: anywhere; }
.mt-contact-list a:hover { color: var(--mt-petrol); text-decoration: underline; }

/* Texte long (conditions générales) */
.mt-legal { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.mt-toc { flex: 1 1 240px; min-width: 0; background: var(--mt-white); border-radius: var(--mt-radius); padding: 24px; font-size: 15px; }
@media (min-width: 900px) { .mt-toc { position: sticky; top: 24px; } }
.mt-toc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.mt-toc a { color: var(--mt-ink); }
.mt-prose { flex: 999 1 560px; min-width: 0; max-width: 780px; line-height: 1.7; }
.mt-prose h2 { font-size: 22px; color: var(--mt-petrol); margin-top: 36px; scroll-margin-top: 24px; }
.mt-prose h3 { font-size: 17px; margin-top: 20px; }
.mt-prose p, .mt-prose li { color: #3A434D; }
.mt-prose ul { padding-left: 22px; }

/* ===== Pied de page ===== */
.mt-footer { background: var(--mt-ink); color: var(--mt-footer-text); font-size: 14px; }
.mt-footer__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-block: 28px; }
.mt-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.mt-footer a { color: var(--mt-footer-text); }
.mt-footer a:hover { color: var(--mt-white); }

/* ===== Mobile ===== */
@media (max-width: 640px) {
	body { font-size: 16px; }
	.mt-section { padding-block: 56px 24px; }
	.mt-hero { padding-block: 32px 56px; }
	.mt-hero--home { padding-block: 32px 48px; }
	.mt-hero__grid { gap: 32px; }
	.mt-langcard { padding: 20px; }
	.mt-band > .mt-container { padding-block: 56px; }
	.mt-cta > .mt-container { padding-block: 48px; }
	.mt-hero .wp-block-buttons, .mt-cta .wp-block-buttons { flex-direction: column; align-items: stretch; width: 100%; }
	.mt-hero .wp-block-button, .mt-cta .wp-block-button { width: 100%; }
	.mt-hero .wp-block-button__link, .mt-cta .wp-block-button__link { width: 100%; }
	.mt-portrait img { box-shadow: 10px 10px 0 var(--mt-saffron); }
}

/* ===== Éditeur ===== */
.editor-styles-wrapper { background: var(--mt-paper); }
.editor-styles-wrapper .mt-hero .mt-container, .editor-styles-wrapper .mt-band .mt-container { max-width: none; }

/* Titres de section dans le contenu */
.mt-content h2:not(.mt-kicker):not(.mt-title) { font-size: clamp(26px, 3vw, 36px); }
.mt-content .mt-split__main > h2 { font-size: clamp(28px, 3.2vw, 40px); }
h2.mt-kicker { font-size: 14px; letter-spacing: 0.12em; margin-bottom: 20px; }
.mt-hero h1 + .mt-hero__lead { margin-top: 0; }
