/* Cubevents : uniquement ce que theme.json ne sait pas faire. */
.wp-site-blocks > * + *, .cubevents-main > * + *, .wp-block-post-content > .alignfull { margin-block-start: 0; }
main { overflow-x: clip; }
.cubevents-section { padding-block: var(--wp--preset--spacing--60); }
.cubevents-section.is-tight-top { padding-top: var(--wp--preset--spacing--40); }
.cubevents-lead { max-width: none !important; padding-right: max(0px, calc(100% - 600px)); }
.has-cream-background-color .has-muted-color, .has-white-background-color .has-muted-color { color: var(--wp--preset--color--muted-light) !important; }

/* En-tête */
.cubevents-header-wrap { position: sticky; top: 0; z-index: 50; background: rgba(246,242,236,.93); backdrop-filter: blur(12px); border-bottom: 1px solid var(--wp--preset--color--cream-2); }
.cubevents-header { min-height: 76px; gap: 24px; width: 100%; }
.cubevents-header > .wp-block-navigation { flex: 1 1 auto; justify-content: center; }
.cubevents-logo img { height: 48px; width: auto; display: block; }
.cubevents-header .wp-block-button__link { padding: 11px 20px; font-size: 15px; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--cream) !important; color: var(--wp--preset--color--ink) !important; }
.cubevents-nav .current-menu-item > a, .cubevents-nav a[aria-current="page"] { color: var(--wp--preset--color--accent); }
@media (max-width: 1100px) { .cubevents-header .is-style-outline { display: none; } }
/* Menu burger dès 1024 px (WordPress ne le fait qu'à 600 px) : évite le menu sur deux lignes sur tablette. */
@media (max-width: 1024px) {
	.cubevents-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.cubevents-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.cubevents-header > .wp-block-navigation { flex: 0 0 auto; order: 3; }
	.cubevents-header > .wp-block-buttons { margin-left: auto; }
}

/* Briques */
.is-style-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--accent); }
.has-ink-background-color .is-style-eyebrow, .has-forest-color .is-style-eyebrow { color: inherit; }
.is-style-stat { font-family: var(--wp--preset--font-family--display); font-size: 36px; line-height: 1.1; margin-bottom: 0 !important; }
.is-style-card-light { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--cream-2); border-radius: 24px; padding: 36px; }
.is-style-card-dark { border: 1px solid var(--wp--preset--color--line); border-radius: 20px; padding: 28px; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: currentColor; border: 1px solid currentColor; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); border-color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-light > .wp-block-button__link { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }
.cubevents-photo img { width: 100%; object-fit: cover; border-radius: 24px; display: block; }
/* Hero */
.cubevents-hero { padding-top: clamp(32px, 5vw, 72px); }
.cubevents-hero.is-city { padding-top: 0; }
.cubevents-hero__cols { gap: clamp(32px, 5vw, 72px); align-items: stretch !important; }
.cubevents-hero__cols > .wp-block-column:first-child { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.cubevents-hero__cols > .wp-block-column:first-child > * { margin-block: 0; }
.cubevents-hero h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.cubevents-hero h1 em { color: var(--wp--preset--color--accent); }
.cubevents-hero .cubevents-lead { padding-right: 0; max-width: 34em !important; }
.cubevents-hero__cols > .wp-block-column:last-child { position: relative; min-height: clamp(360px, 46vw, 620px); }
.cubevents-photo.is-hero { height: 100%; margin: 0; }
.cubevents-photo.is-hero img { height: 100%; min-height: clamp(360px, 46vw, 620px); border-radius: 28px; }
.cubevents-hero-badge { position: absolute; left: -28px; bottom: 32px; background: var(--wp--preset--color--white); border-radius: 18px; padding: 18px 22px; box-shadow: 0 18px 40px rgba(28,26,23,.14); max-width: 280px; }
.cubevents-hero-badge p { margin: 0; }
.cubevents-hero-badge__title { font-family: var(--wp--preset--font-family--display); font-size: 22px; line-height: 1.2; }
.cubevents-hero-stats { border-top: 1px solid var(--wp--preset--color--cream-2); padding-top: 22px; margin-top: 8px !important; }
.cubevents-hero-stats p { margin: 0; }
.cubevents-hero-stats .is-style-stat { font-size: clamp(28px, 2.6vw, 36px); white-space: nowrap; }
@media (max-width: 781px) {
	.cubevents-hero-badge { left: 16px; bottom: 16px; }
	.cubevents-hero__cols > .wp-block-column:last-child, .cubevents-photo.is-hero img { min-height: 320px; }
}
h1, h2 { text-wrap: balance; }
.cubevents-photo.is-band img { aspect-ratio: 4 / 1; min-height: 200px; object-position: center 60%; }
.cubevents-photo.is-medium img { aspect-ratio: 16 / 9; max-height: 380px; }
.cubevents-photo.is-city img { height: 200px; border-radius: 0; }
.cubevents-card-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; display: block; background: var(--wp--preset--color--sand); }
.cubevents-card h3 { margin-top: 12px; margin-bottom: 4px; }
.cubevents-card p { margin-top: 0; font-size: 15px; }
.cubevents-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cubevents-chips li { border: 1px solid currentColor; border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.cubevents-step { border-top: 1px solid var(--wp--preset--color--ink); padding-top: 20px; }
.cubevents-step .is-style-stat { color: var(--wp--preset--color--accent); }
.cubevents-why { border-top: 1px solid var(--wp--preset--color--line); padding-top: 16px; }
.cubevents-breadcrumb { font-size: 14px; color: var(--wp--preset--color--muted-light); padding-top: 28px; }
.cubevents-breadcrumb a { color: inherit; }
.cubevents-details { border-bottom: 1px solid var(--wp--preset--color--cream-2); padding: 18px 0; }
.cubevents-details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 24px; }
.cubevents-details summary::-webkit-details-marker { display: none; }
.cubevents-details summary::after { content: "+"; color: var(--wp--preset--color--accent); font-size: 26px; line-height: 1; transition: transform .2s; }
.cubevents-details[open] summary::after { transform: rotate(45deg); }
.cubevents-details p { color: var(--wp--preset--color--muted-light); }
.cubevents-cta { border-radius: 28px; padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 56px) !important; }
.cubevents-eco { border-radius: 28px; padding: clamp(28px, 4vw, 56px) !important; }
.cubevents-showroom { border: 1px solid var(--wp--preset--color--cream-2); border-radius: 24px; overflow: hidden; background: var(--wp--preset--color--white); }
.cubevents-showroom > *:not(figure) { padding-inline: 32px; }
.cubevents-showroom > :last-child { padding-bottom: 32px; }
.cubevents-legal h2 { font-size: 32px; margin-top: 48px; }
.cubevents-legal p, .cubevents-legal li { color: #3F3A34; }
.cubevents-footer { font-size: 15px; }
.cubevents-footer a { color: inherit; }
.cubevents-footer h3 { font-size: 16px; color: var(--wp--preset--color--cream); }
.cubevents-footer .wp-block-list { list-style: none; padding: 0; }
.cubevents-footer-bottom { border-top: 1px solid var(--wp--preset--color--line); padding-top: 24px; font-size: 14px; }
.cubevents-credit { gap: 12px; align-items: center; justify-content: center; font-size: 13px; padding-top: 8px; }
.cubevents-credit__logo { margin: 0; }
.cubevents-credit__logo img { width: 28px; height: 28px; display: block; border-radius: 6px; }
.cubevents-credit__text { margin: 0; line-height: 1.45; }
.cubevents-credit__text a { text-decoration: none; }
.cubevents-credit__text a:hover { color: var(--wp--preset--color--white); }
/* Animations : cadres des photos pour la parallaxe */
.cubevents-anim .cubevents-photo:not(.is-hero) { overflow: hidden; border-radius: 24px; }
.cubevents-anim .cubevents-photo.is-city { border-radius: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
