/* Quizzo : finitions du thème (style doux, comme le logo animé).
   Couleurs et polices : Apparence > Éditeur > Styles. */

:root {
	--qz-ink: var(--wp--preset--color--ink);
	--qz-violet: var(--wp--preset--color--violet);
	--qz-soft: 0 1px 0 rgba(61,18,70,.04), 0 12px 32px rgba(107,43,247,.10);
	--qz-lift: 0 1px 0 rgba(61,18,70,.04), 0 20px 48px rgba(107,43,247,.18);
	--qz-line: rgba(61,18,70,.08);
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--wp--preset--color--lav); color: var(--qz-ink); }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--wp--preset--color--lav); outline-offset: 2px; border-radius: 8px; }

/* ---------- En-tête ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.qz-header { background: rgba(255,255,255,.82) !important; -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--qz-line); }
.qz-header .wp-block-site-logo img { height: auto; display: block; }
.qz-header .wp-block-navigation a { padding: 8px 12px; border-radius: 999px; transition: background .15s ease, color .15s ease; white-space: nowrap; }
.qz-header .wp-block-navigation a:hover, .qz-header .wp-block-navigation .current-menu-item > a { background: var(--wp--preset--color--lilac); color: var(--qz-violet); }
.qz-header .wp-block-search__button { border: 1px solid var(--qz-line) !important; border-radius: 50% !important; background: #fff !important; width: 42px; height: 42px; padding: 0 !important; display: grid; place-items: center; color: var(--qz-ink) !important; }
.qz-header .wp-block-search__button:hover { background: var(--wp--preset--color--lilac) !important; }
.qz-header .wp-block-search__input { border: 1px solid var(--qz-line) !important; border-radius: 999px !important; padding: 8px 16px !important; }
.qz-header .wp-block-button__link { white-space: nowrap; padding: .6rem 1.15rem !important; font-size: .98rem !important; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base) !important; padding: 24px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-family: var(--wp--preset--font-family--display); font-size: 1.7rem; font-weight: 900; gap: 12px !important; }
@media (max-width: 1240px) {
	.qz-header .wp-block-navigation { font-size: .95rem; }
	.qz-header .wp-block-navigation a { padding: 6px 9px; }
	.qz-header .wp-block-group.is-layout-flex { gap: 12px; }
}
@media (min-width: 600px) and (max-width: 1080px) {
	.qz-header .wp-block-navigation-item:nth-child(3), .qz-header .wp-block-navigation-item:nth-child(4), .qz-header .wp-block-navigation-item:nth-child(5) { display: none; }
}
@media (max-width: 760px) { .qz-header .is-style-ghost { display: none; } }
@media (max-width: 600px) {
	.qz-header .wp-block-site-logo img { width: 112px !important; }
	.qz-header .wp-block-button__link { padding: .5rem .9rem !important; font-size: .9rem !important; }
}

/* ---------- Boutons ---------- */
.wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button__link:active { transform: translateY(0); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: #fff; color: var(--qz-ink); box-shadow: inset 0 0 0 1.5px var(--qz-line), 0 4px 14px rgba(61,18,70,.06); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--lilac); color: var(--qz-violet); }

/* ---------- Styles de blocs ---------- */
.is-style-pop-card { background: #fff; border-radius: 24px; box-shadow: var(--qz-soft); overflow: hidden; }
.wp-block-image.is-style-pop-card img { border-radius: 0; }
.is-style-tilt { background: #fff; border-radius: 24px; box-shadow: var(--qz-soft); transform: rotate(-1.2deg); }
p.is-style-sticker { display: inline-flex; align-items: center; gap: .4em; width: auto; border-radius: 999px; padding: .4em 1em; font-weight: 700; font-size: .95rem; background: #fff; color: var(--qz-violet); box-shadow: 0 4px 16px rgba(107,43,247,.12); }
h1 mark, h2 mark, .is-style-highlight mark { background: linear-gradient(120deg, #6B2BF7 10%, #A46BFF 55%, #FD7C74 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0; }

/* ---------- Pied de page ---------- */
.qz-footer a { color: inherit; text-decoration: none; }
.qz-footer a:hover { color: var(--wp--preset--color--lav); text-decoration: underline; }
.qz-footer .qz-chip { color: var(--qz-ink) !important; }
.qz-footer-links { list-style: none; padding-left: 0; line-height: 2; }
.qz-wordmark { line-height: .85 !important; }

/* ---------- Héros de l'accueil ---------- */
.qz-hero { position: relative; overflow: hidden; }
.qz-hero::before, .qz-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; pointer-events: none; z-index: 0; }
.qz-hero::before { width: 42vmax; height: 42vmax; left: -14vmax; top: -16vmax; background: #CDB8FF; }
.qz-hero::after { width: 34vmax; height: 34vmax; right: -12vmax; bottom: -18vmax; background: #FFC9C3; }
.qz-hero > * { position: relative; z-index: 1; }

/* ---------- Bande « Crée ton quiz » ---------- */
.qz-steps { counter-reset: qzstep; }
.qz-step { background: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--qz-soft); height: 100%; }
.qz-step__num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--wp--preset--font-family--display); font-weight: 900; font-size: 1.3rem; color: #fff; background: var(--wp--preset--gradient--quizzo); margin-bottom: 14px; }

/* ---------- Page d'un quiz ---------- */
.qz-quiz-terms a { display: inline-block; text-decoration: none; border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: .85rem; letter-spacing: .03em; background: var(--wp--preset--color--lilac); color: var(--qz-violet); }
.qz-quiz-terms a:hover { background: var(--qz-violet); color: #fff; }
.qz-seo-text { font-size: 1.1rem; }
.qz-seo-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.2em; }
.qz-seo-text h3 { margin-top: 1.8em; }

/* ---------- Blog et listes ---------- */
.wp-block-post-template.is-layout-grid > li { border-radius: 22px; box-shadow: var(--qz-soft); background: #fff; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.wp-block-post-template.is-layout-grid > li:hover { transform: translateY(-4px); box-shadow: var(--qz-lift); }
.wp-block-post-template.is-layout-grid > li .wp-block-post-featured-image { margin: 0; }
.qz-blog .wp-block-post-title { line-height: 1.15; }
.qz-blog .wp-block-post-title a { text-decoration: none; color: var(--qz-ink); }
.qz-blog .wp-block-post-featured-image { background: var(--wp--preset--color--lilac); }
.qz-blog .wp-block-post-featured-image:empty { display: none; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 700; text-decoration: none; background: #fff; box-shadow: var(--qz-soft); }
.wp-block-query-pagination .current { background: var(--qz-violet); color: #fff; }
.wp-block-post-excerpt__more-text { display: none; }

/* ---------- Recherche ---------- */
.wp-block-search__inside-wrapper { border: 0 !important; padding: 0 !important; gap: 8px; }
.wp-block-search__input { border: 1px solid var(--qz-line) !important; border-radius: 999px !important; padding: 12px 20px !important; font-size: 1.05rem; background: #fff; box-shadow: var(--qz-soft); }
.wp-block-search__button { border: 0 !important; border-radius: 999px !important; background: var(--qz-violet) !important; color: #fff !important; font-weight: 800; padding: 0 22px !important; }

/* ---------- Pages application (créer, jouer, PIN) ---------- */
.qz-app-page { min-height: calc(100vh - 80px); }
.qz-app-page > .entry-content > :first-child { margin-top: 0; }

/* ---------- Pied de page doux ---------- */
.qz-footer { border-radius: 40px 40px 0 0; position: relative; overflow: hidden; }
.qz-footer::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: #6B2BF7; filter: blur(120px); opacity: .35; pointer-events: none; }
.qz-footer > * { position: relative; }
.qz-footer .qz-wordmark { background: linear-gradient(120deg, #B9A0FF 0%, #FFC9C3 60%, #FD7C74 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qz-footer .wp-block-separator { opacity: .25; }
.qz-footer .qz-univers a, .qz-footer .qz-chip { background: rgba(255,255,255,.1) !important; color: #fff !important; box-shadow: none !important; }
.qz-footer .qz-univers a:hover, .qz-footer .qz-chip:hover { background: rgba(255,255,255,.2) !important; }

/* ---------- Héros : mascotte ---------- */
.qz-hero .qz-logo-hero { margin-bottom: 0; }
.qz-hero h1 { margin-top: 0; }
@media (max-width: 600px) { .qz-hide-sm { display: none !important; } }
.qz-header .wp-block-search, .qz-header .wp-block-search__inside-wrapper { background: transparent !important; }
.qz-hero .qz-logo-hero { width: min(100%, 720px); }

.qz-header .wp-block-search__input { box-shadow: none !important; }
.qz-header .wp-block-search__searchfield-hidden .wp-block-search__input { border: 0 !important; padding: 0 !important; }

/* =====================================================================
   Personnalité Quizzo : contours encre, ombres « pop », fond crème.
   (Tout ce bloc peut être supprimé pour revenir au style tout doux.)
   ===================================================================== */
:root { --qz-soft: 5px 5px 0 var(--qz-ink); --qz-lift: 8px 8px 0 var(--qz-ink); --qz-line: var(--qz-ink); --qz-b: 2.5px solid var(--qz-ink); }
.qz-header { background: var(--wp--preset--color--base) !important; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: var(--qz-b); }
.qz-header .wp-block-search__button { border: var(--qz-b) !important; }
.qz-header .wp-block-search__button:hover { background: var(--wp--preset--color--yellow) !important; }
.qz-header .wp-block-navigation a:hover, .qz-header .wp-block-navigation .current-menu-item > a { background: var(--wp--preset--color--lilac); color: var(--qz-ink); }
.wp-block-button__link:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--qz-ink) !important; }
.wp-block-button__link:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--qz-ink) !important; }
.wp-block-button.is-style-ghost .wp-block-button__link { background: #fff; color: var(--qz-ink); box-shadow: 3px 3px 0 var(--qz-ink); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--lilac); color: var(--qz-ink); }
h1 mark, h2 mark, .is-style-highlight mark { background: var(--wp--preset--color--yellow); -webkit-background-clip: border-box; background-clip: border-box; color: inherit; padding: 0 .14em; border-radius: .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; display: inline-block; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--qz-ink); border: 2.5px solid var(--qz-ink); line-height: 1.05; }
h2 mark { box-shadow: 2px 2px 0 var(--qz-ink); border-width: 2px; }
p.is-style-sticker { border: var(--qz-b); color: var(--qz-ink); box-shadow: 3px 3px 0 var(--qz-ink); transform: rotate(-2deg); }
.is-style-pop-card, .is-style-tilt { border: var(--qz-b); }
/* Héros : trame de points au lieu des halos flous */
.qz-hero::before { width: auto; height: auto; inset: 0; left: 0; top: 0; border-radius: 0; filter: none; opacity: .35; background: radial-gradient(var(--qz-ink) 1.3px, transparent 1.7px) 0 0 / 26px 26px; mask-image: radial-gradient(70% 60% at 50% 40%, transparent 40%, #000 100%); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, transparent 40%, #000 100%); }
.qz-hero::after { display: none; }
/* Bande « crée ton quiz » */
.qz-create-band { border: var(--qz-b); box-shadow: 8px 8px 0 var(--qz-ink); background: var(--wp--preset--color--lilac) !important; }
.qz-step { border: var(--qz-b); }
.qz-steps .wp-block-column:nth-child(1) .qz-step { transform: rotate(-1deg); }
.qz-steps .wp-block-column:nth-child(3) .qz-step { transform: rotate(1deg); }
.qz-step__num { background: var(--wp--preset--color--yellow); color: var(--qz-ink); border: var(--qz-b); transform: rotate(-6deg); box-shadow: 2px 2px 0 var(--qz-ink); margin-top: 0; }
.qz-steps .wp-block-column:nth-child(2) .qz-step__num { background: var(--wp--preset--color--pink); transform: rotate(5deg); }
.qz-steps .wp-block-column:nth-child(3) .qz-step__num { background: var(--wp--preset--color--mint); }
/* Pied de page */
.qz-footer::before { display: none; }
.qz-footer .qz-wordmark { background: none; color: var(--wp--preset--color--yellow); -webkit-background-clip: border-box; background-clip: border-box; }
.qz-footer .qz-univers a, .qz-footer .qz-chip { background: #fff !important; color: var(--qz-ink) !important; }
.qz-footer .qz-univers a:hover, .qz-footer .qz-chip:hover { background: var(--wp--preset--color--yellow) !important; }
.qz-footer a:hover { color: var(--wp--preset--color--yellow); }
/* Blog, recherche, pagination */
.wp-block-post-template.is-layout-grid > li { border: var(--qz-b); }
.wp-block-post-template.is-layout-grid > li:hover { transform: translate(-3px, -3px); }
.wp-block-post-template.is-layout-grid > li .wp-block-post-featured-image { border-bottom: var(--qz-b); }
.wp-block-search__input { border: var(--qz-b) !important; box-shadow: none; }
.wp-block-search__button { border: var(--qz-b) !important; background: var(--wp--preset--color--yellow) !important; color: var(--qz-ink) !important; box-shadow: 3px 3px 0 var(--qz-ink); }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { border: var(--qz-b); }
.qz-quiz-terms a { border: 2px solid var(--qz-ink); background: #fff; color: var(--qz-ink); }
.qz-quiz-terms a:hover { background: var(--wp--preset--color--yellow); color: var(--qz-ink); }
@media (max-width: 600px) { .qz-hero .qz-logo-hero:not(.is-mascot) { width: 96% !important; margin-left: auto !important; margin-right: auto !important; } }

/* =====================================================================
   Menu mobile : bouton à droite (facile au pouce) + menu « BD » penché
   qui arrive par la droite, items en biais et décalés.
   ===================================================================== */

@media all {
	/* Le bouton menu passe tout à droite de l'en-tête */
	.qz-header > .wp-block-group.alignwide { position: relative; padding-right: 54px; }
	.qz-header .wp-block-navigation__responsive-container-open {
		position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(-4deg);
		width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
		background: var(--qz-ink); color: var(--wp--preset--color--yellow); border: 2.5px solid var(--qz-ink); border-radius: 12px;
		box-shadow: 3px 3px 0 var(--wp--preset--color--violet); transition: transform .15s ease;
	}
	.qz-header .wp-block-navigation__responsive-container-open:active { transform: translateY(-50%) rotate(0) scale(.94); }
	.qz-header .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }

	/* Le panneau */
	.qz-header .wp-block-navigation__responsive-container.is-menu-open {
		background: var(--qz-ink) !important; color: #fff !important; padding: 0 !important; overflow-x: clip !important; overflow-y: auto !important;
		animation: qz-menu-bg .28s ease both;
	}
	.qz-header .wp-block-navigation__responsive-container.is-menu-open::before,
	.qz-header .wp-block-navigation__responsive-container.is-menu-open::after { content: ""; position: absolute; pointer-events: none; }
	/* grande plaque violette en biais, côté droit */
	.qz-header .wp-block-navigation__responsive-container.is-menu-open::before {
		top: -10%; bottom: -10%; right: -30%; width: 95%; background: var(--wp--preset--color--violet);
		background-image: radial-gradient(rgba(255,255,255,.14) 1.6px, transparent 2px); background-size: 20px 20px;
		transform: skewX(-14deg); animation: qz-menu-slab .45s cubic-bezier(.2,.9,.2,1) both;
	}
	/* fine bande jaune */
	.qz-header .wp-block-navigation__responsive-container.is-menu-open::after {
		top: -10%; bottom: -10%; right: 62%; width: 14px; background: var(--wp--preset--color--yellow);
		transform: skewX(-14deg); animation: qz-menu-slab .55s .05s cubic-bezier(.2,.9,.2,1) both;
	}
	.qz-header .wp-block-navigation { position: static !important; }
	.qz-header .is-menu-open .wp-block-navigation__responsive-close { width: 100% !important; max-width: none !important; min-height: 100%; }
	.qz-header .is-menu-open .wp-block-navigation__responsive-dialog { position: relative; z-index: 1; min-height: 100%; width: 100%; }
	.qz-header .is-menu-open .wp-block-navigation__responsive-container-content { width: 100%; }
	/* « QUIZZO » géant en filigrane */
	.qz-header .is-menu-open .wp-block-navigation__responsive-dialog::after {
		content: "quizzo"; position: fixed; left: -4vw; bottom: 4vh; z-index: -1; pointer-events: none;
		font-family: var(--wp--preset--font-family--display); font-weight: 900; font-size: 34vw; line-height: 1;
		color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.16); transform: rotate(-10deg);
	}

	/* Bouton fermer : carré jaune penché, en haut à droite (même place que le bouton menu) */
	.qz-header .is-menu-open .wp-block-navigation__responsive-container-close {
		top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center;
		background: var(--wp--preset--color--yellow); color: var(--qz-ink); border: 2.5px solid var(--qz-ink); border-radius: 12px;
		box-shadow: 4px 4px 0 #000; transform: rotate(6deg); z-index: 3; animation: qz-menu-pop .35s .2s cubic-bezier(.2,1.6,.4,1) both;
	}
	.qz-header .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

	/* Liste : alignée à droite, items en biais et décalés */
	.qz-header .is-menu-open .wp-block-navigation__responsive-container-content { padding: 90px 22px 48px !important; align-items: flex-end !important; justify-content: flex-end !important; min-height: 100svh; }
	.qz-header .is-menu-open .wp-block-navigation__container {
		display: flex !important; flex-direction: column !important; align-items: flex-end !important; justify-content: flex-end !important; flex: 0 0 auto !important; gap: 16px !important;
		font-family: var(--wp--preset--font-family--display); font-size: 1rem !important;
	}
	.qz-header .is-menu-open .wp-block-navigation-item { --r: -4deg; --x: 0px; margin-right: var(--x) !important; transform: rotate(var(--r)); animation: qz-menu-item .5s cubic-bezier(.2,1.1,.3,1) both; }
	.qz-header .is-menu-open .wp-block-navigation-item:nth-child(1) { --r: -6deg; --x: 0px; animation-delay: .08s; }
	.qz-header .is-menu-open .wp-block-navigation-item:nth-child(2) { --r: 3deg; --x: 34px; animation-delay: .13s; }
	.qz-header .is-menu-open .wp-block-navigation-item:nth-child(3) { --r: -3deg; --x: 10px; animation-delay: .18s; }
	.qz-header .is-menu-open .wp-block-navigation-item:nth-child(4) { --r: 4deg; --x: 46px; animation-delay: .23s; }
	.qz-header .is-menu-open .wp-block-navigation-item:nth-child(5) { --r: -5deg; --x: 4px; animation-delay: .28s; }
	.qz-header .is-menu-open .wp-block-navigation-item:nth-child(6) { --r: 2deg; --x: 28px; animation-delay: .33s; }
	.qz-header .is-menu-open .wp-block-navigation-item:nth-child(7) { --r: -3deg; --x: 0px; animation-delay: .40s; }
	.qz-header .is-menu-open .wp-block-navigation-item:nth-child(8) { --r: 3deg; --x: 18px; animation-delay: .46s; }

	.qz-header .is-menu-open .wp-block-navigation-item__content {
		position: relative; isolation: isolate; display: inline-block; padding: .08em .4em !important;
		font-weight: 900; font-size: clamp(2rem, 10vw, 2.9rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em;
		color: #fff !important; background: none !important; border-radius: 0 !important; transform: skewX(-10deg);
		text-shadow: 3px 3px 0 #000;
	}
	.qz-header .is-menu-open .wp-block-navigation-item:nth-child(even) .wp-block-navigation-item__content { font-size: clamp(1.7rem, 8.5vw, 2.4rem); }
	/* Formes déchiquetées derrière l'item touché / la page en cours */
	.qz-header .is-menu-open .wp-block-navigation-item__content::before,
	.qz-header .is-menu-open .wp-block-navigation-item__content::after {
		content: ""; position: absolute; z-index: -1; transform: scaleX(0); transform-origin: right center; transition: transform .18s cubic-bezier(.2,1,.3,1);
	}
	.qz-header .is-menu-open .wp-block-navigation-item__content::after { z-index: -2; inset: -6px -14px -8px -10px; background: #000; clip-path: polygon(6% 0, 100% 8%, 96% 100%, 0 86%); }
	.qz-header .is-menu-open .wp-block-navigation-item__content::before { inset: -2px -8px -4px -4px; background: #fff; clip-path: polygon(0 12%, 97% 0, 100% 90%, 4% 100%); }
	.qz-header .is-menu-open .wp-block-navigation-item__content:is(:hover, :focus-visible, :active),
	.qz-header .is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--qz-ink) !important; text-shadow: none; }
	.qz-header .is-menu-open .wp-block-navigation-item__content:is(:hover, :focus-visible, :active)::before,
	.qz-header .is-menu-open .wp-block-navigation-item__content:is(:hover, :focus-visible, :active)::after,
	.qz-header .is-menu-open .current-menu-item > .wp-block-navigation-item__content::before,
	.qz-header .is-menu-open .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
	.qz-header .is-menu-open .wp-block-navigation-item__content:focus-visible { outline: 0; }

	/* Les 2 actions (Rejoindre / Créer) : toujours sur une forme jaune */
	.qz-header .is-menu-open .qz-nav-cta { margin-top: 10px; }
	.qz-header .is-menu-open .qz-nav-cta + .qz-nav-cta { margin-top: 0; }
	.qz-header .is-menu-open .qz-nav-cta .wp-block-navigation-item__content { color: var(--qz-ink) !important; text-shadow: none; font-size: clamp(1.4rem, 7vw, 1.9rem) !important; }
	.qz-header .is-menu-open .qz-nav-cta .wp-block-navigation-item__content::before { transform: scaleX(1); background: var(--wp--preset--color--yellow); }
	.qz-header .is-menu-open .qz-nav-cta .wp-block-navigation-item__content::after { transform: scaleX(1); }
	.qz-header .is-menu-open .qz-nav-cta:last-child .wp-block-navigation-item__content::before { background: var(--wp--preset--color--coral); }
}
@keyframes qz-menu-bg { from { opacity: 0; } }
@keyframes qz-menu-slab { from { transform: skewX(-14deg) translateX(110%); } }
@keyframes qz-menu-item { from { opacity: 0; transform: translateX(90px) rotate(var(--r)); } }
@keyframes qz-menu-pop { from { transform: rotate(-40deg) scale(0); } }
@media (prefers-reduced-motion: reduce) {
	.qz-header .is-menu-open *, .qz-header .is-menu-open::before, .qz-header .is-menu-open::after { animation: none !important; }
}

/* Menu : grand écran (même menu BD, en plus grand, centré verticalement) */
@media (min-width: 782px) {
	.qz-header > .wp-block-group.alignwide { padding-right: 62px; }
	.qz-header .wp-block-navigation__responsive-container-open { width: 48px; height: 48px; }
	.qz-header .wp-block-navigation__responsive-container.is-menu-open::before { right: -12%; width: 64%; }
	.qz-header .wp-block-navigation__responsive-container.is-menu-open::after { right: 52%; width: 18px; }
	.qz-header .is-menu-open .wp-block-navigation__responsive-container-close { top: 18px; right: max(18px, calc((100vw - 1240px) / 2 + 4px)); width: 54px; height: 54px; }
	.qz-header .is-menu-open .wp-block-navigation__responsive-container-content { justify-content: center !important; padding: 100px max(40px, calc((100vw - 1240px) / 2 + 40px)) 60px !important; }
	.qz-header .is-menu-open .wp-block-navigation__container { gap: 20px !important; }
	.qz-header .is-menu-open .wp-block-navigation-item__content { font-size: clamp(2.6rem, 4.4vw, 4.2rem) !important; }
	.qz-header .is-menu-open .wp-block-navigation-item:nth-child(even) .wp-block-navigation-item__content { font-size: clamp(2.2rem, 3.6vw, 3.4rem) !important; }
	.qz-header .is-menu-open .wp-block-navigation-item:nth-child(2) { --x: 70px; }
	.qz-header .is-menu-open .wp-block-navigation-item:nth-child(4) { --x: 110px; }
	.qz-header .is-menu-open .wp-block-navigation-item:nth-child(6) { --x: 60px; }
	.qz-header .is-menu-open .qz-nav-cta .wp-block-navigation-item__content { font-size: clamp(1.6rem, 2.4vw, 2.2rem) !important; }
	.qz-header .is-menu-open .wp-block-navigation__responsive-dialog::after { font-size: 24vw; left: 2vw; bottom: 2vh; }
}

/* =====================================================================
   Accueil : titre à gauche, mascotte « plateau de jeu » à droite
   ===================================================================== */
.qz-hero__text h1 { margin-top: .4em; text-wrap: balance; font-size: clamp(2.3rem, 4.1vw, 3.7rem) !important; line-height: 1.04; }
.qz-nowrap { white-space: nowrap; }
.qz-hero__lead { color: var(--wp--preset--color--muted); max-width: 34em; }
.qz-hero__text .qz-pinform { align-items: flex-start; margin-top: 22px; }
.qz-hero__stage { position: relative; display: grid; justify-items: center; padding: 40px 0 10px; }
.qz-hero__stage > * { margin: 0 !important; }
/* rond jaune derrière la mascotte */
.qz-hero__stage::before { content: ""; position: absolute; width: min(86%, 420px); aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -56%); border-radius: 50%; background: var(--wp--preset--color--yellow); border: 2.5px solid var(--qz-ink); box-shadow: 8px 8px 0 var(--qz-ink); z-index: 0; }
.qz-hero__stage::after { content: ""; position: absolute; width: min(86%, 420px); aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -56%) rotate(12deg); border-radius: 50%; background: repeating-conic-gradient(rgba(61,18,70,.09) 0 8deg, transparent 8deg 22deg); z-index: 0; pointer-events: none; }
.qz-hero__stage .qz-logo-hero.is-mascot { position: relative; z-index: 1; width: min(78%, 360px); }
/* bulle de dialogue */
.qz-bubble { position: absolute !important; z-index: 3; top: 0; left: 0; max-width: 220px; background: #fff; border: 2.5px solid var(--qz-ink); border-radius: 20px; padding: 10px 16px; font-family: var(--wp--preset--font-family--display); font-weight: 900; font-size: 1.15rem; line-height: 1.15; box-shadow: 4px 4px 0 var(--qz-ink); transform: rotate(-5deg); animation: qz-bob 3.4s ease-in-out infinite; }
.qz-bubble::after { content: ""; position: absolute; right: 28px; bottom: -14px; width: 22px; height: 22px; background: #fff; border-right: 2.5px solid var(--qz-ink); border-bottom: 2.5px solid var(--qz-ink); transform: skewX(-25deg) rotate(45deg); }
/* 4 mini réponses */
.qz-minis { position: relative; z-index: 2; display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 420px); margin-top: -26px !important; }
.qz-mini { --c: #FD5E73; position: relative; margin: 0 !important; background: var(--c); color: #fff; border: 2.5px solid var(--qz-ink); border-radius: 14px; padding: 10px 12px 10px 42px; font-family: var(--wp--preset--font-family--display); font-weight: 900; font-size: 1.05rem; box-shadow: 3px 3px 0 var(--qz-ink); text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.qz-mini::before { content: ""; position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: #fff; }
.qz-mini--0 { transform: rotate(-3deg); } .qz-mini--0::before { clip-path: polygon(50% 5%, 100% 95%, 0 95%); }
.qz-mini--1 { --c: #3B8BFF; transform: rotate(2deg); } .qz-mini--1::before { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.qz-mini--2 { --c: #FFB020; transform: rotate(1.5deg); } .qz-mini--2::before { border-radius: 50%; }
.qz-mini--3 { --c: #22C38E; transform: rotate(-2deg); } .qz-mini--3::before { border-radius: 3px; width: 16px; height: 16px; }
/* la bonne réponse clignote doucement */
.qz-mini--1 { animation: qz-right 3.4s ease-in-out infinite 1s; }
@keyframes qz-right { 0%, 60%, 100% { box-shadow: 3px 3px 0 var(--qz-ink); } 70%, 90% { box-shadow: 3px 3px 0 var(--qz-ink), 0 0 0 4px #fff, 0 0 0 7px var(--wp--preset--color--mint); } }
/* pastilles flottantes */
.qz-chip-float { position: absolute !important; z-index: 3; margin: 0 !important; border: 2.5px solid var(--qz-ink); border-radius: 999px; padding: 6px 14px; font-family: var(--wp--preset--font-family--display); font-weight: 900; box-shadow: 3px 3px 0 var(--qz-ink); }
.qz-chip-float--score { right: 0; top: 34%; background: var(--wp--preset--color--mint); color: var(--qz-ink); font-size: 1.3rem; transform: rotate(8deg); animation: qz-bob 3s ease-in-out infinite .6s; }
.qz-chip-float--timer { right: 6%; top: 4%; background: #fff; color: var(--qz-ink); transform: rotate(-6deg); animation: qz-bob 3.8s ease-in-out infinite 1.2s; }
@keyframes qz-bob { 50% { translate: 0 -8px; } }
@media (max-width: 781px) {
	.qz-hero__cols { gap: 30px !important; }
	.qz-hero__stage { width: 100%; padding-top: 56px; }
	.qz-hero__stage .qz-logo-hero.is-mascot { width: min(56%, 250px); }
	.qz-hero__stage::before, .qz-hero__stage::after { width: min(74%, 300px); transform: translate(-50%, -58%); }
	.qz-hero__stage::after { transform: translate(-50%, -58%) rotate(12deg); }
	.qz-bubble { left: 2%; font-size: 1rem; max-width: 190px; }
	.qz-minis { width: 100%; }
	.qz-mini { font-size: .95rem; }
	.qz-chip-float--score { font-size: 1.1rem; top: 38%; }
	.qz-hero__text h1 { margin-top: .2em; }
}
@media (prefers-reduced-motion: reduce) { .qz-bubble, .qz-mini--1, .qz-chip-float { animation: none; } }
