/*
Theme Name: MAZAM
Template: twentytwentyfive
Description: Thème enfant de Twenty Twenty-Five aux couleurs de MAZAM (palette Nuit & Or).
Version: 2.0
Text Domain: mazam
*/

:root {
	--mz-ink: #0A0F2C; --mz-ink-2: #141B45; --mz-paper: #F7F5F0; --mz-gold: #F2B33D; --mz-gold-dark: #C98A12;
	--mz-muted: #5B6078; --mz-line: #E4E1D8; --mz-soft: #EFECE3; --mz-on-ink-muted: #B9BDD6;
}

/* ---------- Structure ---------- */
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-site-blocks > footer, .wp-site-blocks > main { margin-block-start: 0 !important; }
.wp-site-blocks { padding-top: 0 !important; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- En-tête ---------- */
.mz-header { position: sticky; top: 0; z-index: 50; }
.mz-header .wp-block-navigation a { color: #fff; opacity: .88; transition: opacity .2s; }
.mz-header .wp-block-navigation a:hover { opacity: 1; }
.mz-header .wp-block-navigation__responsive-container-open { color: #fff; }
.mz-lang { color: var(--mz-on-ink-muted); font-size: .85rem; }

/* ---------- Éléments communs ---------- */
.mz-eyebrow { display: flex; align-items: center; gap: 10px; font-size: .78rem !important; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mz-muted); }
.mz-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--mz-gold); flex: none; }
.has-contrast-background-color .mz-eyebrow, .mz-hero .mz-eyebrow { color: var(--mz-on-ink-muted); }
.mz-lead { color: var(--mz-muted); font-size: 1.1rem; }
.mz-gold { color: var(--mz-gold); }
.wp-element-button, .wp-block-button__link { transition: transform .2s, background .2s, color .2s; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.is-style-outline.mz-light > .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.45); }
.is-style-outline.mz-light > .wp-block-button__link:hover { background: #fff; color: var(--mz-ink); }

/* ---------- Bandeau principal (bloc Couverture) ---------- */
.mz-hero { min-height: 820px !important; align-items: flex-end !important; padding-bottom: 84px !important; padding-top: 140px !important; }
.mz-hero .wp-block-cover__background { background: linear-gradient(90deg, var(--mz-ink) 8%, rgba(10,15,44,.55) 55%, rgba(10,15,44,.1)), linear-gradient(0deg, var(--mz-ink), transparent 45%) !important; opacity: 1 !important; }
.mz-hero h1 { color: #fff; font-weight: 800; line-height: 1.04 !important; }
.mz-hero h1 mark { background: none; color: var(--mz-gold); }
.mz-hero .mz-sub { color: var(--mz-on-ink-muted); }
.mz-page-hero { min-height: 520px !important; align-items: flex-end !important; padding-top: 120px !important; padding-bottom: 70px !important; }
.mz-page-hero .wp-block-cover__background { background: linear-gradient(90deg, var(--mz-ink) 10%, rgba(10,15,44,.6) 65%, rgba(10,15,44,.25)), linear-gradient(0deg, var(--mz-ink), transparent 50%) !important; opacity: 1 !important; }
.mz-page-hero h1 { color: #fff; }
.mz-page-hero .mz-sub { color: var(--mz-on-ink-muted); }

.mz-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mz-chips span { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 7px 14px; font-size: .82rem; color: #E9EBF5; }

/* ---------- Bandeau de confiance ---------- */
.mz-trust img { height: 38px !important; width: auto !important; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .75; }
.mz-trust figure { margin: 0 !important; }

/* ---------- Chiffres ---------- */
.mz-stats { border-top: 1px solid var(--mz-line); padding-top: 30px; }
.mz-stat { font-family: Sora, sans-serif; font-weight: 800; font-size: clamp(2.6rem, 4.6vw, 3.8rem) !important; line-height: 1 !important; letter-spacing: -.03em; margin: 0 !important; }
.mz-stat em { font-style: normal; color: var(--mz-gold-dark); }
.mz-stat-label { color: var(--mz-muted); font-size: .95rem; margin-top: 10px !important; }

/* ---------- Cartes piliers (fond nuit) ---------- */
.mz-pcard { background: var(--mz-ink-2); border-radius: 22px; padding: 30px 26px 26px; height: 100%; display: flex; flex-direction: column; gap: 14px; transition: transform .25s; }
.mz-pcard:hover { transform: translateY(-6px); }
.mz-pcard .mz-num { width: 52px; height: 52px; border-radius: 14px; background: var(--mz-gold); color: var(--mz-ink); display: grid; place-items: center; font: 800 1.05rem Sora, sans-serif; margin: 0 !important; }
.mz-pcard h3 { color: #fff; font-size: 1.4rem; margin: 0 !important; }
.mz-pcard p { color: var(--mz-on-ink-muted); font-size: .95rem; margin: 0 !important; }
.mz-pcard .mz-ex { margin-top: auto !important; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }

/* ---------- Études de cas (blocs Couverture) ---------- */
.mz-case { border-radius: 22px; overflow: hidden; min-height: 420px !important; align-items: flex-end !important; padding: 28px !important; transition: transform .3s; }
.mz-case:hover { transform: translateY(-4px); }
.mz-case .wp-block-cover__image-background { transition: transform .6s; }
.mz-case:hover .wp-block-cover__image-background { transform: scale(1.05); }
.mz-case .wp-block-cover__background { background: linear-gradient(0deg, rgba(5,8,20,.93) 8%, rgba(5,8,20,.25) 62%, transparent) !important; opacity: 1 !important; }
.mz-case h3 { color: #fff; font-size: 1.5rem; margin: 12px 0 6px !important; }
.mz-case p { color: #D5D8E6; font-size: .95rem; margin: 0 !important; }
.mz-case .wp-block-cover__inner-container { width: 100%; }
.mz-tag { display: inline-block !important; font-size: .72rem !important; letter-spacing: .12em; text-transform: uppercase; background: var(--mz-gold); color: var(--mz-ink) !important; padding: 5px 10px; border-radius: 999px; font-weight: 600; }
.mz-kpis { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 16px !important; font-size: .75rem !important; color: #C2C6D8 !important; line-height: 1.3; }
.mz-kpis strong { display: block; font: 700 1.6rem/1.1 Sora, sans-serif; color: #fff; }
.mz-kpis span { display: block; }
.mz-case-tall { min-height: 480px !important; }

/* ---------- Fiches projet détaillées (page Réalisations) ---------- */
.mz-project { background: #fff; border: 1px solid var(--mz-line); border-radius: 22px; overflow: hidden; }
.mz-project .wp-block-media-text__media img { height: 100%; min-height: 360px; object-fit: cover; }
.mz-project .wp-block-media-text__content { padding: 38px 42px !important; }
.mz-meta { color: var(--mz-muted); font-size: .88rem; }
.mz-results { display: flex; flex-wrap: wrap; gap: 26px; border-top: 1px solid var(--mz-line); padding-top: 18px; margin-top: 20px !important; font-size: .8rem !important; color: var(--mz-muted); line-height: 1.3; }
.mz-results strong { display: block; font: 800 1.8rem/1.1 Sora, sans-serif; color: var(--mz-ink); }
.mz-results span { display: block; }

/* ---------- Pays ---------- */
.mz-country { border-bottom: 1px solid var(--mz-line); padding: 16px 4px; margin: 0 !important; }
.mz-country strong { display: block; font-family: Sora, sans-serif; font-weight: 600; font-size: 1.05rem; }
.mz-country span { display: block; color: var(--mz-muted); font-size: .85rem; margin-top: 4px; }
.mz-countries { border-top: 1px solid var(--mz-line); }

/* ---------- Études / infographies ---------- */
.mz-intro-card { background: var(--mz-ink); color: #fff; border-radius: 22px; padding: 34px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.mz-intro-card .mz-stat { color: var(--mz-gold); }
.mz-intro-card p { color: var(--mz-on-ink-muted); }
.mz-info { background: #fff; border: 1px solid var(--mz-line); border-radius: 22px; overflow: hidden; height: 100%; }
.mz-info figure { margin: 0 !important; }
.mz-info img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; display: block; }
.mz-info h3 { font-size: .98rem !important; font-family: Inter, sans-serif !important; font-weight: 600; margin: 0 !important; padding: 16px 18px 0; letter-spacing: 0; }
.mz-info p { color: var(--mz-muted); font-size: .85rem; margin: 4px 0 0 !important; padding: 0 18px 16px; }

/* ---------- Produits ---------- */
.mz-prod { border: 1px solid var(--mz-line); border-radius: 20px; padding: 26px; background: var(--mz-paper); height: 100%; }
.mz-prod figure { margin: 0 !important; }
.mz-prod img { height: 46px !important; width: auto !important; max-width: 160px; object-fit: contain; }
.mz-prod h3 { font-size: 1.2rem; margin: 18px 0 8px !important; }
.mz-prod p { color: var(--mz-muted); font-size: .92rem; margin: 0 !important; }

/* ---------- Logos défilants ---------- */
.mz-marquee-wrap { overflow: hidden; }
.mz-marquee { display: flex !important; flex-wrap: nowrap !important; gap: 64px !important; width: max-content; animation: mz-scroll 60s linear infinite; align-items: center; }
.mz-marquee figure { margin: 0 !important; flex: none; }
.mz-marquee img { height: 48px !important; width: auto !important; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; }
@keyframes mz-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mz-marquee { animation: none; flex-wrap: wrap !important; width: auto; } }

/* ---------- Galerie photos ---------- */
.mz-gallery img { border-radius: 14px; }

/* ---------- Pied de page ---------- */
.mz-footer a { color: var(--mz-on-ink-muted); text-decoration: none; }
.mz-footer a:hover { color: #fff; }
.mz-footer h4 { color: #fff; font-size: .95rem; }

@media (max-width: 781px) {
	.mz-hero { min-height: 680px !important; }
	.mz-project .wp-block-media-text__content { padding: 26px !important; }
}

/* Images arrondies */
.mz-rounded img { border-radius: 22px; width: 100%; object-fit: cover; }
.mz-rounded { margin: 0 !important; }

/* Alignement du contenu des bandeaux sur la grille du site */
.mz-hero > .wp-block-cover__inner-container, .mz-page-hero > .wp-block-cover__inner-container { max-width: 1220px; width: 100%; margin-left: auto !important; margin-right: auto !important; padding: 0 var(--wp--style--root--padding-left, 24px); }
.mz-hero .alignwide, .mz-page-hero .alignwide { max-width: 100% !important; margin-left: 0 !important; }
.mz-hero .mz-sub { max-width: 680px; }

/* Titres lisibles sur fond nuit */
.has-contrast-background-color :is(h1, h2, h3, h4), .mz-pcard :is(h2, h3) { color: #fff; }
/* Bandeaux : le contenu occupe toute la largeur de la grille */
.wp-block-cover.mz-hero > .wp-block-cover__inner-container, .wp-block-cover.mz-page-hero > .wp-block-cover__inner-container { width: 100% !important; }
/* Photos : proportions homogènes */
.mz-rounded img { aspect-ratio: 4 / 3; }
.mz-portrait img { aspect-ratio: auto; }
/* Bandeau d'appel à l'action : bouton centré verticalement */
.has-accent-1-background-color .wp-block-columns { align-items: center; }

.mz-top img { object-position: top; }

/* Mobile */
html, body { overflow-x: clip; }
@media (max-width: 781px) {
	.mz-header .wp-block-buttons { display: none; }
	.mz-trust img { height: 28px !important; }
	.mz-hero > .wp-block-cover__inner-container, .mz-page-hero > .wp-block-cover__inner-container { padding: 0 4px; }
	.wp-block-columns { gap: 20px !important; }
}

@media (max-width: 781px) { .mz-hero h1 { font-size: 2.15rem !important; } .mz-page-hero h1 { font-size: 2.1rem !important; } }
