/*
Theme Name: Scale Motor Zone
Theme URI: https://scalemotorzone.com
Author: Scale Motor Zone
Description: Thème sur mesure pour Scale Motor Zone (SMZ by TonyF) : sobre, rapide, avec les vidéos YouTube de la chaîne mises à jour automatiquement.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: Tous droits réservés
Text Domain: smz
*/

/* ---------- Bases ---------- */
:root {
	--ink: #16232c;
	--ink-2: #3d4a54;
	--muted: #66727b;
	--line: #e4e7ea;
	--bg: #ffffff;
	--bg-2: #f4f6f8;
	--navy: #1d2f3b;
	--blue: #6c94b8;
	--blue-d: #3e6b93;
	--red: #c14d3e;
	--red-d: #a43d2f;
	--gray: #565656;
	--amber: #a86b12;
	--radius: 14px;
	--radius-s: 10px;
	--shadow: 0 1px 2px rgba(22, 35, 44, .06), 0 4px 14px rgba(22, 35, 44, .06);
	--shadow-h: 0 2px 4px rgba(22, 35, 44, .06), 0 14px 32px rgba(22, 35, 44, .12);
	--wrap: 1180px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue-d); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; color: var(--ink); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.small { font-size: .85rem; color: var(--muted); }
.icon { display: inline-flex; width: 1.1em; height: 1.1em; flex: none; }
.icon svg { width: 100%; height: 100%; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red); margin-bottom: .7em; display: flex; align-items: center; gap: .5em; }
.eyebrow--live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(193, 77, 62, .5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(193, 77, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(193, 77, 62, 0); } }

/* ---------- Boutons ---------- */
.btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.3em; border-radius: 999px; font-weight: 650; font-size: .97rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover, .wp-block-button__link:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--primary, .wp-block-button__link { background: var(--red); color: #fff; }
.btn--primary:hover, .wp-block-button__link:hover { background: var(--red-d); color: #fff; }
.btn--yt { background: var(--red); color: #fff; }
.btn--yt:hover { background: var(--red-d); color: #fff; }
.btn--ghost, .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: #cfd5da; }
.btn--ghost:hover, .is-style-outline .wp-block-button__link:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--discord { background: #5865f2; color: #fff; }
.btn--discord:hover { background: #4752c4; color: #fff; }
.btn--sm { padding: .55em 1em; font-size: .9rem; }
.btn--lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; color: var(--ink); white-space: nowrap; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Bandeau partenariat ---------- */
.topbar { background: var(--navy); color: #c9d6df; font-size: .88rem; }
.topbar__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; min-height: 42px; padding: 6px 0; text-align: center; }
.topbar__tag { background: var(--red); color: #fff; font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; }
.topbar strong { color: #fff; }
.topbar__code { display: inline-flex; align-items: center; gap: .6em; padding: .2em .7em; border: 1.5px dashed rgba(255, 255, 255, .55); border-radius: 6px; background: transparent; color: #fff; font: 800 .86rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; cursor: pointer; transition: border-color .2s, background .2s; }
.topbar__code:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.topbar__code .js-copy-label { font: 600 .72rem/1 var(--font); letter-spacing: 0; opacity: .75; }
.topbar__code.is-copied { border-color: #3fae74; }
.topbar__link { color: #fff; font-weight: 650; text-underline-offset: .2em; }
.topbar__link:hover { color: #f0a597; }
@media (max-width: 600px) { .topbar { font-size: .8rem; } .topbar__tag, .topbar__link { display: none; } }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(22, 35, 44, .05); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand__logo { height: 58px; width: auto; }
.brand__text { font-weight: 800; font-size: 1.2rem; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-nav .menu a { display: block; padding: .5em .8em; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .97rem; transition: color .2s, background .2s; }
.site-nav .menu a:hover { color: var(--ink); background: var(--bg-2); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--ink); background: var(--bg-2); }
.site-nav { margin-left: auto; }
.site-header__tools { order: 3; display: flex; align-items: center; gap: 6px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: .4em .7em; border: 1.5px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-2); text-decoration: none; transition: border-color .2s, color .2s; }
.lang-switch img { width: 18px; height: auto; border-radius: 2px; }
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

@media (max-width: 920px) {
	.nav-toggle { display: inline-flex; }
	.site-header__inner { min-height: 66px; }
	.brand__logo { height: 42px; }
	.site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(22, 35, 44, .1); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.site-nav .menu { flex-direction: column; gap: 2px; }
	.site-nav .menu a { padding: .8em .6em; font-size: 1.05rem; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- Accueil : héros ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 5vw, 56px); background: linear-gradient(180deg, var(--bg-2) 0%, #fff 100%); }
.hero__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__title { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin-bottom: .45em; }
.hero__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 34em; margin-bottom: 1.6em; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } .hero__video { order: -1; } }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0c1318; box-shadow: var(--shadow-h); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__poster { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #0c1318; }
.player__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.player__poster:hover img { transform: scale(1.02); opacity: .92; }
.feature .vcard__meta { margin-top: 16px; }
.feature__title { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin: .3em 0 0; }

/* Icône lecture */
.play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .25s var(--ease), background .2s; }
.play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--red); }
.play--big { width: 82px; height: 82px; margin: -41px 0 0 -41px; }
.play--big::after { left: 32px; top: 25px; border-width: 16px 0 16px 24px; }
button:hover > .play { transform: scale(1.08); background: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(44px, 7vw, 84px) 0; }
.section--tint { background: var(--bg-2); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.section__lead { color: var(--muted); margin: .4em 0 0; max-width: 40em; }

/* ---------- Cartes vidéo ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
@media (max-width: 920px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vgrid { grid-template-columns: 1fr; } }
.vcard { display: flex; flex-direction: column; }
.vcard[hidden] { display: none; }
.vcard__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius-s); overflow: hidden; cursor: pointer; background: #dfe3e6; box-shadow: var(--shadow); transition: box-shadow .3s, transform .3s var(--ease); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vcard__media .play { opacity: 0; transform: scale(.85); width: 50px; height: 50px; margin: -25px 0 0 -25px; }
.vcard__media .play::after { left: 20px; top: 15px; border-width: 10px 0 10px 15px; }
.vcard__media:hover, .vcard__media:focus-visible { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.vcard__media:hover img { transform: scale(1.04); }
.vcard__media:hover .play, .vcard__media:focus-visible .play { opacity: 1; transform: scale(1); }
.vcard__body { padding-top: 14px; }
.vcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
.vcard__title { font-size: 1.02rem; font-weight: 650; line-height: 1.35; margin: 0; letter-spacing: -.005em; }

.badge { display: inline-block; padding: .22em .65em; border-radius: 999px; font-weight: 700; font-size: .74rem; letter-spacing: .02em; background: var(--bg-2); color: var(--ink-2); }
.badge--garage { background: #f8e6e3; color: var(--red-d); }
.badge--tips { background: #e5eef6; color: var(--blue-d); }
.badge--faillab { background: #ececec; color: #3f3f3f; }
.badge--inside { background: #e2e8ec; color: var(--navy); }
.badge--pitstop { background: #f6ecda; color: var(--amber); }

/* ---------- Formats ---------- */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.fcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 20px; border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); border-top: 4px solid var(--gray); transition: transform .3s var(--ease), box-shadow .3s; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); color: var(--ink); }
.fcard--garage { border-top-color: var(--red); }
.fcard--tips { border-top-color: var(--blue); }
.fcard--faillab { border-top-color: var(--gray); }
.fcard--inside { border-top-color: var(--navy); }
.fcard--pitstop { border-top-color: #d79a3c; }
.fcard__name { font-weight: 800; font-size: 1.1rem; }
.fcard__desc { color: var(--ink-2); font-size: .94rem; flex: 1; }
.fcard__count { display: inline-flex; align-items: center; gap: .4em; font-size: .85rem; font-weight: 650; color: var(--muted); }
.fcard:hover .fcard__count { color: var(--red); }

/* ---------- Code promo ---------- */
.promo { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin: clamp(32px, 5vw, 56px) 0 0; padding: clamp(26px, 4vw, 44px); border-radius: calc(var(--radius) + 4px); background: var(--navy); color: #dfe7ed; position: relative; overflow: hidden; }
.promo::before { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(108, 148, 184, .35), transparent 70%); pointer-events: none; }
.promo h2 { color: #fff; margin-bottom: .4em; }
.promo .eyebrow { color: #f0a597; }
.promo p { margin-bottom: 0; }
.promo__x { color: #f0a597; font-weight: 400; margin: 0 .1em; }
.promo__deal { display: flex; align-items: center; gap: 18px; margin: 6px 0 16px !important; }
.promo__pct { flex: none; font-size: clamp(2.6rem, 5.5vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #fff; }
.promo__deal span:last-child { max-width: 17em; line-height: 1.4; color: #dfe7ed; }
.promo .small { color: #9fb1bf; margin-top: 14px; }
.promo__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.promo .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.promo .btn--ghost:hover { border-color: #fff; color: #fff; }
.code { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 14px 16px 14px 22px; border: 2px dashed rgba(255, 255, 255, .45); border-radius: var(--radius-s); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.code:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.code__value { font: 800 1.7rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; }
.code__hint { display: inline-flex; align-items: center; gap: .4em; font-size: .85rem; font-weight: 650; padding: .45em .8em; border-radius: 999px; background: #fff; color: var(--navy); }
.code.is-copied .code__hint { background: #3fae74; color: #fff; }
@media (max-width: 820px) { .promo { grid-template-columns: 1fr; } }

/* ---------- Panneaux ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }
.panel { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.panel p:last-child { margin-bottom: 0; }
.panel--discord { background: #f1f2fe; border-color: #e0e3fd; }
.panel--discord .eyebrow { color: #4752c4; }
.panel--small { padding: 22px; margin-bottom: 16px; }
.panel--small h2 { font-size: 1.05rem; }

/* ---------- Pages ---------- */
.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(18px, 3vw, 30px); background: linear-gradient(180deg, var(--bg-2), #fff); }
.page-hero__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.025em; margin: 0 0 .3em; }
.page-hero__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 40em; margin: 0; }
.page-hero .btns { margin-top: 24px; }
.page-body { padding: clamp(20px, 3vw, 36px) 0 clamp(56px, 8vw, 96px); }

.prose { max-width: 780px; }
.prose--intro { margin-bottom: 24px; }
.prose > * + h2 { margin-top: 1.9em; }
.prose > * + h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose hr, .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--radius-s); }
.prose .vgrid, .prose .alignwide { max-width: none; }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--red); color: var(--ink-2); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.page-body .prose:has(.vgrid), .page-body .prose:has(.smz-gear) { max-width: none; }
.page-body .prose:has(.vgrid) > :not(.vgrid):not(.promo):not(.smz-gear), .page-body .prose:has(.smz-gear) > :not(.vgrid):not(.promo):not(.smz-gear) { max-width: 780px; }

/* Encadré */
.smz-note { padding: 18px 22px; border-radius: var(--radius-s); background: var(--bg-2); color: var(--ink-2); font-size: .95rem; }
.smz-note p:last-child { margin: 0; }
.smz-lead { font-size: 1.12rem; color: var(--ink-2); }

/* Liste de matériel en cartes : ajouter la classe « smz-gear » à une liste */
.prose ul.smz-gear { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 1.2em 0 0; }
.smz-gear li { margin: 0; position: relative; padding: 18px 20px 18px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; font-size: .92rem; color: var(--muted); line-height: 1.45; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.smz-gear li:hover { border-color: #cdd4da; box-shadow: var(--shadow-h); transform: translateY(-2px); }
.smz-gear li a { display: block; font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none; margin-bottom: 2px; padding-right: 22px; }
.smz-gear li a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.smz-gear li a::before { content: "↗"; position: absolute; right: 16px; top: 16px; color: var(--muted); font-weight: 400; }
.smz-gear li:hover a::before { color: var(--red); }
.smz-gear li strong { color: var(--red); font-weight: 650; }
.smz-level { display: flex; align-items: center; gap: 10px; }
.smz-level::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #3fae74; flex: none; }
.smz-level--advanced::before { background: #d79a3c; }

/* Liste de points */
.prose ul.smz-points { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.smz-points li { margin: 0; padding: 18px 20px; border-radius: var(--radius-s); background: var(--bg-2); color: var(--ink-2); font-size: .95rem; }
.smz-points li strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }

.goodies-cta { margin: 1.6em 0; }
.smz-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 1.6em 0; }
.smz-product { position: relative; padding: 16px 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, transform .25s var(--ease), border-color .2s; }
.smz-product:hover { border-color: #cdd4da; box-shadow: var(--shadow-h); transform: translateY(-3px); }
.smz-product > *, .smz-product > .wp-block-group__inner-container > * { margin: 0; }
.smz-shop > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.smz-shop:has(> .wp-block-group__inner-container) { display: block; }
.smz-product .wp-block-image { margin: 0 0 14px; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-2); }
.smz-product .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 0; transition: transform .5s var(--ease); }
.smz-product:hover .wp-block-image img { transform: scale(1.04); }
.smz-product h3 { font-size: 1.08rem; margin: 0 0 4px; }
.smz-product h3 a { color: var(--ink); text-decoration: none; }
.smz-product h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.smz-product__meta { font-size: .88rem; color: var(--muted); }
.smz-product__price { margin-top: 8px !important; font-weight: 800; font-size: 1.15rem; color: var(--red); }
.smz-lang-switch a { display: inline-flex; align-items: center; padding: .35em .95em; border: 1.5px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 650; text-decoration: none; color: var(--ink-2); }
.smz-lang-switch a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Page Vidéos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; position: sticky; top: 76px; z-index: 10; padding: 12px 0; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.admin-bar .filters { top: 108px; }
@media (max-width: 920px) { .filters { top: 66px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; } .filters::-webkit-scrollbar { display: none; } }
.chip { display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; padding: .55em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 650; font-size: .92rem; cursor: pointer; transition: all .2s; }
.chip span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.chip:hover { border-color: #c6ced4; color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active span { color: rgba(255, 255, 255, .7); }
.filter-desc { color: var(--muted); min-height: 1.6em; margin: 4px 0 18px; }
.more { text-align: center; margin-top: 40px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-box { padding: clamp(22px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form p { margin: 0 0 18px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form__row--2 { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 6px; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; padding: .75em .9em; border: 1.5px solid #d5dbe0; border-radius: var(--radius-s); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(108, 148, 184, .2); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rgpd { font-size: .86rem; color: var(--muted); line-height: 1.55; padding: 14px 16px; border-radius: var(--radius-s); background: var(--bg-2); }
.rgpd strong { color: var(--ink-2); }
.rgpd a { display: inline-block; margin-top: 4px; }
.notice { padding: 14px 18px; border-radius: var(--radius-s); margin-bottom: 22px; }
.notice--ok { background: #e7f6ee; color: #1e6b43; }
.notice--err { background: #fbe9e6; color: var(--red-d); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #b9c7d2; font-size: .95rem; padding-top: clamp(44px, 6vw, 64px); }
.site-footer a { color: #e6edf2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; gap: 26px; } }
.site-footer__name { color: #fff; font-weight: 800; font-size: 1.15rem; }
.site-footer__name span { font-weight: 400; color: #9fb1bf; }
.site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .small { color: #8ea2b1; }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .2s; }
.social a:hover { background: rgba(255, 255, 255, .18); }
.social .icon { width: 20px; height: 20px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #8ea2b1; }
.site-footer__bottom p { margin: 0; }

/* ---------- Lecteur en fenêtre ---------- */
.lightbox { width: min(100% - 24px, 1120px); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(8, 13, 17, .86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox[open] { animation: pop .28s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.lightbox__bar { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.lightbox__title { flex: 1; margin: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__yt { display: inline-flex; align-items: center; gap: .4em; color: #cfdbe4; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.lightbox__yt:hover { color: #fff; }
.lightbox__close { display: inline-flex; padding: 8px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lightbox__close:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close .icon { width: 22px; height: 22px; }
.lightbox__frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-s); overflow: hidden; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) { .lightbox__yt { display: none; } }

/* ---------- Divers ---------- */
.alignwide { width: min(100vw - 40px, var(--wrap)); }
.wp-block-embed iframe { border-radius: var(--radius-s); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .promo, .filters { display: none; } }

/* ---------- Kit média ---------- */
.kit-request { margin-top: 8px; padding: clamp(22px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.kit-request__intro h2 { margin-top: 0; }
.kit-admin { max-width: 794px; margin: 0 auto 20px; padding: 14px 18px; border: 1.5px dashed #c6ced4; border-radius: 12px; background: #fff; font-size: .9rem; color: var(--ink-2); }
.kit-admin p { margin: 0 0 10px; }
.kit-admin__form { display: flex; gap: 8px; flex-wrap: wrap; }
.kit-admin__form input { flex: 1 1 240px; padding: .55em .8em; border: 1.5px solid #d5dbe0; border-radius: 8px; font: inherit; }
.kit-admin__out { display: block; margin-top: 10px; font: 600 .82rem/1.4 ui-monospace, Menlo, Consolas, monospace; word-break: break-all; color: var(--blue-d); user-select: all; }
@media print { .kit-admin { display: none !important; } }
.kit-request .form { margin-top: 18px; }
.kit { background: #e9edf0; padding: 32px 20px 64px; overflow-x: auto; }
.kit-toolbar { max-width: 794px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; color: var(--ink-2); }
.kit-toolbar p { margin: 0; }
.kit-sheet { box-sizing: border-box; width: 794px; height: 1123px; margin: 0 auto 32px; background: #fff; color: #16232c; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(22, 35, 44, .15); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.kit-sheet h1, .kit-sheet h2, .kit-sheet h3 { margin: 0; letter-spacing: -.015em; }
.kit-sheet h2 { font-size: 20px; font-weight: 800; }
.kit-sheet p { margin: 0; }
.kit-hero { background: #1d2f3b; color: #dfe7ed; padding: 40px 48px 38px; display: flex; flex-direction: column; gap: 12px; }
.kit-hero__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.kit-hero h1 { font-size: 40px; line-height: 1.12; font-weight: 800; color: #fff; letter-spacing: -.025em; }
.kit-hero__lead { font-size: 16px; line-height: 1.55; color: #c9d6df; max-width: 600px; }
.kit-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9fb1bf; }
.kit-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #66727b; }
.kit-label--light { color: #f0a597; letter-spacing: .14em; }
.kit-label--red { color: #a43d2f; }
.kit-brand { display: flex; align-items: center; gap: 12px; }
.kit-brand__name { display: flex; flex-direction: column; gap: 2px; line-height: 1; font-weight: 800; font-size: 15px; letter-spacing: .08em; }
.kit-brand__name span:first-child { color: #8fb1d0; }
.kit-brand__name span:last-child { color: #fff; }
.kit-brand__one { font-weight: 800; font-size: 13px; letter-spacing: .08em; color: #1d2f3b; }
.kit-brand--dark { gap: 10px; }
.kit-mark { display: flex; gap: 4px; }
.kit-mark span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #fff; font-weight: 800; font-size: 19px; transform: skewX(-12deg); }
.kit-mark--small { gap: 3px; }
.kit-mark--small span { width: 24px; height: 24px; font-size: 14px; }
.kit-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 48px 16px; border-bottom: 1px solid #e4e7ea; }
.kit-top + .kit-body { gap: 16px; padding-top: 22px; }
.kit-body { flex: 1; display: flex; flex-direction: column; gap: 24px; padding: 28px 48px 26px; }
.kit-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: -10px; }
.kit-head p { font-size: 12px; color: #66727b; }
.kit-sub { font-size: 14px; color: #3d4a54; margin-top: 4px !important; }
.kit-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kit-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.kit-grid2--tight { gap: 12px 28px; margin-top: 12px; }
.kit-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.kit-stat { padding: 16px 18px; border: 1px solid #e4e7ea; border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.kit-stat strong { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: #1d2f3b; line-height: 1.2; }
.kit-stat span, .kit-mini span, .kit-chip span { font-size: 13px; line-height: 1.4; color: #3d4a54; }
.kit-up { color: #2f7d55; }
.kit-case { background: #f4f6f8; border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.kit-case h3 { font-size: 19px; line-height: 1.3; font-weight: 800; }
.kit-case > p:not(.kit-label) { font-size: 14px; line-height: 1.55; color: #3d4a54; }
.kit-grid3--plain { margin-top: 6px; }
.kit-mini { display: flex; flex-direction: column; gap: 2px; }
.kit-mini strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #c14d3e; line-height: 1.2; }
.kit-mini span { font-size: 12px; }
.kit-h3 { font-size: 17px !important; margin-bottom: 8px !important; }
.kit-grid2 p { font-size: 14px; line-height: 1.6; color: #3d4a54; }
.kit-foot { margin-top: auto; display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid #e4e7ea; font-size: 12px; color: #66727b; }
.kit-foot--plain { border-top: 0; padding-top: 0; }
.kit-bars { display: flex; flex-direction: column; gap: 9px; }
.kit-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.kit-bar__label { width: 78px; color: #3d4a54; }
.kit-bar__track { flex: 1; height: 10px; border-radius: 5px; background: #e9edf0; overflow: hidden; }
.kit-bar__fill { display: block; height: 10px; border-radius: 5px; }
.kit-bar__value { width: 44px; text-align: right; font-weight: 700; }
.kit-chip { background: #f4f6f8; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kit-chip strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #1d2f3b; line-height: 1.2; }
.kit-chip span { font-size: 12px; }
.kit-format { border-top: 4px solid #565656; background: #f4f6f8; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.kit-format strong { font-size: 14px; }
.kit-format span { font-size: 12px; line-height: 1.45; color: #3d4a54; }
.kit-note { font-size: 12px; color: #66727b; margin-top: 10px !important; }
.kit-way { display: flex; flex-direction: column; gap: 3px; }
.kit-way strong { font-size: 14px; }
.kit-way span { font-size: 13px; line-height: 1.5; color: #3d4a54; }
.kit-rules { font-size: 13px; line-height: 1.55; color: #3d4a54; padding: 12px 16px; background: #f4f6f8; border-radius: 10px; margin-top: 12px !important; }
.kit-rules strong { color: #16232c; }
.kit-contact { margin-top: auto; background: #1d2f3b; color: #dfe7ed; border-radius: 14px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.kit-contact h2 { color: #fff; }
.kit-contact p { font-size: 13px; color: #b9c7d2; margin-top: 4px !important; }
.kit-contact__links { display: flex; flex-direction: column; gap: 4px; text-align: right; font-size: 14px; }
.kit-contact__links a { color: #fff; text-decoration: none; }
.kit-contact__links a:first-child { font-weight: 700; }
@media print {
	@page { size: A4; margin: 0; }
	html, body { background: #fff !important; margin: 0 !important; }
	html { margin-top: 0 !important; }
	.topbar, .kit-toolbar, #wpadminbar, [class*="cookieadmin"], .lightbox, .skip-link { display: none !important; }
	.kit { background: none; padding: 0; overflow: visible; }
	.kit-sheet { margin: 0; box-shadow: none; break-after: page; page-break-after: always; }
	.kit-sheet:last-child { break-after: auto; page-break-after: auto; }
}
