/* ==========================================================================
   Crazy Racers — styles complémentaires à theme.json
   Charte 2027 (fonds éclaircis) : gris très foncé #16161A, rouge course #E10600,
   Anton (titres), Bebas Neue (étiquettes), Poppins (texte).
   ========================================================================== */

:root {
	--crs-rouge: var(--wp--preset--color--rouge, #E10600);
	--crs-noir: var(--wp--preset--color--noir, #16161A);
	--crs-anthracite: var(--wp--preset--color--anthracite, #202026);
	--crs-encre: var(--wp--preset--color--encre, #1A1A1E);
	--crs-gris: var(--wp--preset--color--gris-texte, #6B6B70);
	--crs-gris-clair: var(--wp--preset--color--gris-clair, #B9B9BE);
	--crs-creme: var(--wp--preset--color--creme, #F3F1EE);
	--crs-pente: 14px;
	--crs-bebas: var(--wp--preset--font-family--bebas);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--crs-rouge); color: #fff; }

/* Focus visible pour la navigation au clavier */
:where(a, button, input, select, textarea, .wp-block-button__link):focus-visible {
	outline: 3px solid var(--crs-rouge);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
/* Pas d'espace entre en-tête, contenu et pied ; les sections pleine largeur se touchent. */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > main > *,
.wp-block-post-content > .alignfull,
main > .wp-block-post-content.alignfull { margin-block-start: 0; }

/* L'en-tête reste visible au défilement (collant sur l'élément de la partie de modèle). */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }

/*
 * En haut de page : en-tête totalement transparent, avec un léger dégradé noir vers le haut
 * pour garder le menu lisible sur la photo. Dès que l'on fait défiler : fond gris foncé à 50 %
 * d'opacité + flou. Les deux fonds sont portés par des pseudo-éléments (un backdrop-filter sur
 * l'en-tête lui-même enfermerait le menu mobile dans sa hauteur) et se croisent en fondu.
 */
.crs-header {
	--crs-header-transition: .3s;
	position: relative;
	isolation: isolate;
	border-bottom: 1px solid transparent;
	transition: border-color var(--crs-header-transition) ease;
}
.crs-header::before,
.crs-header::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	transition: opacity var(--crs-header-transition) ease;
}
/* État initial : dégradé noir léger, du haut vers le bas */
.crs-header::before {
	background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, 0) 100%);
	opacity: 1;
}
/* État défilé : gris très foncé à 50 % + flou */
.crs-header::after {
	background: rgba(22, 22, 26, .5);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	opacity: 0;
}
.crs-scrolled .crs-header::before { opacity: 0; }
.crs-scrolled .crs-header::after { opacity: 1; }
.crs-scrolled .crs-header { border-bottom-color: rgba(225, 6, 0, .35); }

/* Lien de menu : couleur qui passe au rouge + soulignement rouge qui se déploie depuis la gauche */
.crs-header .wp-block-navigation-item__content,
.crs-pied-liens a {
	position: relative;
	display: inline-block;
	transition: color .25s ease, transform .25s ease;
}
.crs-header .wp-block-navigation-item__content::after,
.crs-pied-liens a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 2px;
	background: var(--crs-rouge);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.crs-header .wp-block-navigation-item__content:hover,
.crs-header .wp-block-navigation-item__content:focus-visible,
.crs-pied-liens a:hover,
.crs-pied-liens a:focus-visible {
	color: var(--crs-rouge) !important;
	transform: translateY(-2px);
}
.crs-header .wp-block-navigation-item__content:hover::after,
.crs-header .wp-block-navigation-item__content:focus-visible::after,
.crs-header .current-menu-item > .wp-block-navigation-item__content::after,
.crs-pied-liens a:hover::after,
.crs-pied-liens a:focus-visible::after { transform: scaleX(1); }

/* Menu du haut : en plus, le lien bascule légèrement en biais (même rebond que les icônes des réseaux du pied) */
.crs-header .wp-block-navigation-item__content {
	transition: color .25s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.crs-header .wp-block-navigation-item__content:hover,
.crs-header .wp-block-navigation-item__content:focus-visible {
	transform: translateY(-2px) rotate(-4deg);
}

/* Tous les boutons : même animation que les liens du menu (remonte et bascule légèrement en biais) */
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.wp-element-button:hover,
.wp-element-button:focus-visible { transform: translateY(-2px) rotate(-3deg); }

@media (prefers-reduced-motion: reduce) {
	.crs-header .wp-block-navigation-item__content,
	.crs-header .wp-block-navigation-item__content::after,
	.crs-pied-liens a,
	.crs-pied-liens a::after,
	.crs-header .wp-block-button__link,
	.wp-block-button__link,
	.wp-element-button { transition: none; }
	.crs-header .wp-block-navigation-item__content:hover,
	.crs-pied-liens a:hover,
	.wp-block-button__link:hover,
	.wp-block-button__link:focus-visible,
	.wp-element-button:hover,
	.wp-element-button:focus-visible { transform: none; }
}

/* Menu mobile ouvert : plein écran, grands liens centrés, sans barre de défilement */
.crs-header .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed;
	inset: 0;
	height: 100dvh;
	overflow-y: auto;
	background: rgba(22, 22, 26, 0.97) !important;
	padding: 1.25rem 1.5rem 2rem;
}
.crs-header .is-menu-open .wp-block-navigation__responsive-container-content {
	min-height: calc(100dvh - 6rem);
	justify-content: center;
	align-items: center !important;
	padding-top: 0 !important;
}
.crs-header .is-menu-open .wp-block-navigation__container {
	align-items: center !important;
	gap: 1.4rem !important;
}
.crs-header .is-menu-open .wp-block-navigation-item { font-size: 2.1rem !important; letter-spacing: .08em; }
.crs-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { display: flex !important; }
.crs-header .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }
.admin-bar .crs-header .wp-block-navigation__responsive-container.is-menu-open { top: 46px; height: calc(100dvh - 46px); }
@media (min-width: 783px) { .admin-bar .crs-header .wp-block-navigation__responsive-container.is-menu-open { top: 32px; height: calc(100dvh - 32px); } }

.crs-header .crs-logo img { width: 150px; height: auto; display: block; }
@media (max-width: 600px) { .crs-header .crs-logo img { width: 120px; } }

.crs-header .wp-block-navigation .current-menu-item > a { color: var(--crs-rouge); }

/* --------------------------------------------------------------------------
   Rubrique (kicker) : trait rouge + Bebas espacé
   -------------------------------------------------------------------------- */
.is-style-crs-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--crs-bebas) !important;
	font-size: var(--wp--preset--font-size--kicker) !important;
	letter-spacing: 0.16em !important;
	line-height: 1.2 !important;
	color: var(--crs-gris-clair);
}
.is-style-crs-kicker::before {
	content: "";
	flex: 0 0 24px;
	height: 4px;
	background: var(--crs-rouge);
}
.is-style-crs-kicker.has-text-align-center { justify-content: center; }

/* Intertitre souligné : barre rouge sous le texte */
.is-style-crs-souligne::after {
	content: "";
	display: block;
	width: 80px;
	height: 3px;
	margin-top: 0.45em;
	background: var(--crs-rouge);
}
.is-style-crs-souligne.has-text-align-center::after { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Bandeau incliné (étiquette, sur-titre)
   -------------------------------------------------------------------------- */
p.is-style-crs-bandeau {
	display: table;
	background: var(--crs-rouge);
	color: #fff;
	font-family: var(--crs-bebas);
	font-size: var(--wp--preset--font-size--kicker);
	letter-spacing: 0.14em;
	line-height: 1;
	padding: 0.45em 2em 0.35em 0.9em;
	clip-path: polygon(0 0, 100% 0, calc(100% - var(--crs-pente)) 100%, 0 100%);
}
p.is-style-crs-bandeau.has-text-align-center { margin-inline: auto; }
p.is-style-crs-bandeau a { color: inherit; text-decoration: none; }

/* Chapô */
.is-style-crs-chapo {
	font-size: clamp(1.125rem, 1.6vw, 1.3rem);
	line-height: 1.55;
	color: #fff;
}

/* Rouge dans un titre bicolore (format « surligner » de l'éditeur) */
.has-rouge-color mark, mark.has-rouge-color { background: transparent; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
/*
 * Tous les boutons sont biseautés (parallélogramme), comme dans la charte.
 * - Boutons pleins : découpe clip-path.
 * - Boutons « Contour » (et « Contour » natif de WordPress) : le cadre est un pseudo-élément
 *   incliné (skew), pour que le trait suive aussi les côtés en biais.
 */
.wp-block-button__link,
.wp-element-button {
	--crs-pente: 14px;
	transition: background-color .2s ease, color .2s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1);
	padding-left: 2.2em;
	padding-right: 2.2em;
}
.wp-block-button:not(.is-style-crs-contour):not(.is-style-outline) .wp-block-button__link,
.wp-element-button:not(.wp-block-button__link) {
	clip-path: polygon(var(--crs-pente) 0, 100% 0, calc(100% - var(--crs-pente)) 100%, 0 100%);
	border-radius: 0;
}

/*
 * Boutons pleins dont la couleur a été choisie dans l'éditeur : les classes de couleur de WordPress
 * (has-*-background-color, en !important) bloquaient le survol. Survol : fond blanc et texte noir ;
 * un bouton déjà blanc, ou posé sur une section claire, passe au rouge.
 */
.wp-block-button:not(.is-style-crs-contour):not(.is-style-outline) .wp-block-button__link.has-background:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--blanc) !important;
	color: var(--wp--preset--color--noir) !important;
}
.wp-block-button:not(.is-style-crs-contour):not(.is-style-outline) .wp-block-button__link.has-blanc-background-color:is(:hover, :focus-visible),
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-button:not(.is-style-crs-contour):not(.is-style-outline) .wp-block-button__link.has-background:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--rouge) !important;
	color: var(--wp--preset--color--blanc) !important;
}

.wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link {
	position: relative;
	isolation: isolate;
	background: transparent !important;
	color: #fff;
	border: 0 !important;
	box-shadow: none;
	border-radius: 0;
}
.wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0 calc(var(--crs-pente) / 2);
	z-index: -1;
	border: 2px solid currentColor;
	background: transparent;
	transform: skewX(-17deg);
	transition: background-color .2s ease, border-color .2s ease;
}
.wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link:hover,
.wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link:focus {
	color: var(--crs-noir);
}
.wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link:hover::before,
.wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link:focus::before {
	background: #fff;
	border-color: #fff;
}

/* --------------------------------------------------------------------------
   Encadré et cartes
   -------------------------------------------------------------------------- */
.wp-block-group.is-style-crs-encadre {
	background: var(--crs-anthracite);
	border-left: 4px solid var(--crs-rouge);
	padding: clamp(1.25rem, 3vw, 2.25rem);
}
.wp-block-group.is-style-crs-carte {
	background: var(--crs-anthracite);
	height: 100%;
	overflow: hidden;
}
.wp-block-group.is-style-crs-carte > .wp-block-image:first-child { margin: 0; }
.wp-block-group.is-style-crs-carte > .wp-block-image:first-child img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* --------------------------------------------------------------------------
   Images en biseau
   -------------------------------------------------------------------------- */
.wp-block-image.is-style-crs-biseau img { clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.wp-block-image.is-style-crs-biseau-gauche img { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }

/* --------------------------------------------------------------------------
   Couverture en parallaxe
   -------------------------------------------------------------------------- */
.wp-block-cover.is-style-crs-parallaxe { overflow: hidden; }
.wp-block-cover.is-style-crs-parallaxe .wp-block-cover__image-background {
	/* La marge est calculée par parallax.js selon la hauteur du bloc et de l'écran */
	inset: calc(var(--crs-parallax-marge, 12%) * -1) 0 auto 0;
	height: calc(100% + 2 * var(--crs-parallax-marge, 12%));
	transform: translate3d(0, var(--crs-parallax, 0px), 0);
	will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-cover.is-style-crs-parallaxe .wp-block-cover__image-background {
		transform: none;
		inset: 0;
		height: 100%;
	}
}

/* Logo dans la couverture d'accueil */
.crs-hero-logo img { width: min(420px, 70vw); height: auto; }

/* --------------------------------------------------------------------------
   Chiffres clés
   -------------------------------------------------------------------------- */
.crs-chiffres > .wp-block-column + .wp-block-column { border-left: 1px solid var(--crs-anthracite); }
@media (max-width: 781px) {
	.crs-chiffres > .wp-block-column + .wp-block-column {
		border-left: 0;
		border-top: 1px solid var(--crs-anthracite);
		padding-top: 1.5rem;
	}
}
.crs-chiffre { font-variant-numeric: tabular-nums; }

/* Programme (les incontournables) */
.crs-programme .wp-block-image img { width: 44px; height: 44px; }
.crs-programme > .wp-block-column { border-top: 3px solid var(--crs-rouge); padding-top: 1.25rem; }

/* Étapes numérotées */
.crs-etape-num {
	font-family: var(--wp--preset--font-family--anton);
	color: var(--crs-rouge);
	line-height: 1;
}

/* --------------------------------------------------------------------------
   Tableau des tarifs
   -------------------------------------------------------------------------- */
.wp-block-table.is-style-crs-tarifs { overflow-x: auto; }
.wp-block-table.is-style-crs-tarifs table { border-collapse: collapse; width: 100%; min-width: 560px; }
.wp-block-table.is-style-crs-tarifs th,
.wp-block-table.is-style-crs-tarifs td {
	border: 0;
	border-bottom: 1px solid var(--crs-anthracite);
	padding: 0.85em 1em;
	text-align: left;
}
.wp-block-table.is-style-crs-tarifs thead {
	border-bottom: 3px solid var(--crs-rouge);
}
.wp-block-table.is-style-crs-tarifs thead th {
	font-family: var(--crs-bebas);
	font-weight: 400;
	font-size: 1.15rem;
	letter-spacing: 0.1em;
	color: #fff;
}
.wp-block-table.is-style-crs-tarifs tbody tr:hover { background: var(--crs-anthracite); }
.wp-block-table.is-style-crs-tarifs td:not(:first-child) { color: #fff; font-weight: 500; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Partenaires
   -------------------------------------------------------------------------- */
.crs-partenaires .wp-block-image img {
	max-height: 70px;
	width: auto;
	filter: grayscale(1) brightness(1.6);
	opacity: .8;
	transition: filter .2s, opacity .2s;
}
.crs-partenaires .wp-block-image:hover img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.crs-partenaires .wp-block-image img { transition: filter .25s, opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
	.crs-partenaires .wp-block-image:hover img { transform: scale(1.06); }
}
/* Logos en Galerie : toujours affichés en entier (même si « Recadrer les images » est activé) */
.crs-partenaires .wp-block-gallery.has-nested-images {
	align-items: center;
	justify-content: center;
}
.crs-partenaires .wp-block-gallery.has-nested-images figure.wp-block-image {
	display: flex !important;
	align-items: center;
	justify-content: center;
	height: 110px;
}
.crs-partenaires .wp-block-gallery.has-nested-images figure.wp-block-image img {
	flex: 0 1 auto !important;
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	max-height: 90px;
	object-fit: contain !important;
}
.crs-logo-placeholder {
	border: 1px dashed var(--crs-gris);
	min-height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* --------------------------------------------------------------------------
   Carte (Google Maps) et intégrations
   -------------------------------------------------------------------------- */
.crs-map iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }

/* Formulaires Forminator : alignement sur la charte */
.forminator-ui.forminator-custom-form .forminator-button-submit {
	background: var(--crs-rouge) !important;
	font-family: var(--crs-bebas) !important;
	letter-spacing: .12em !important;
	border-radius: 0 !important;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
/* Ancien vibreur rouge et blanc retiré (masqué si une copie personnalisée du pied le contient encore) */
.crs-footer .crs-vibreur { display: none; }

/* Bandeau défilant */
.crs-defilant {
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	padding-block: clamp(.9rem, 2vw, 1.4rem);
	margin: 0 !important;
}
.crs-defilant p {
	display: inline-block;
	margin: 0;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--anton);
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1;
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, .55);
	animation: crs-defile 38s linear infinite;
	will-change: transform;
}
.crs-defilant p mark { -webkit-text-stroke: 0; color: var(--crs-rouge) !important; }
.crs-defilant:hover p { animation-play-state: paused; color: #fff; -webkit-text-stroke-color: transparent; transition: color .4s ease; }
@keyframes crs-defile { to { transform: translateX(-50%); } }

/* Colonnes */
.crs-footer a { text-decoration: none; }
.crs-footer a:hover { color: var(--crs-rouge); }
.crs-pied-logo img { width: 230px; max-width: 70vw; height: auto; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.crs-pied-logo a:hover img { transform: rotate(-2deg) scale(1.03); }

.crs-compte-a-rebours {
	margin-top: 1.25rem;
	font-family: var(--wp--preset--font-family--anton);
	font-size: clamp(2.5rem, 4.5vw, 3.75rem);
	line-height: 1;
	color: #fff;
	text-transform: uppercase;
}
.crs-compte-a-rebours .crs-jours { color: var(--crs-rouge); font-variant-numeric: tabular-nums; }
.crs-compte-a-rebours .crs-compte-label {
	display: block;
	margin-top: .35rem;
	font-family: var(--crs-bebas);
	font-size: 1.15rem;
	letter-spacing: .16em;
	color: var(--crs-gris-clair);
}

.crs-pied-liens li { font-family: var(--crs-bebas); font-size: 1.6rem; letter-spacing: .06em; line-height: 1.2; }
.crs-pied-liens a { color: #fff; }

.crs-pied-reseaux .wp-social-link {
	background: transparent !important;
	color: #fff !important;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
	transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background-color .25s ease, box-shadow .25s ease;
}
.crs-pied-reseaux .wp-social-link:hover {
	background: var(--crs-rouge) !important;
	box-shadow: inset 0 0 0 1.5px var(--crs-rouge);
	transform: translateY(-4px) rotate(-6deg);
}
.crs-pied-contact { margin-top: 1.25rem; font-size: var(--wp--preset--font-size--petit); }

/* Ligne du bas */
.crs-pied-site {
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding-top: 1.25rem;
	font-family: var(--crs-bebas);
	letter-spacing: .14em;
	font-size: .95rem;
	color: var(--crs-gris-clair);
}
.crs-pied-site p { margin: 0; }

/* Pied de page sur téléphone : tout centré */
@media (max-width: 781px) {
	.crs-pied-colonnes > .wp-block-column { text-align: center; }
	.crs-pied-logo { margin-left: auto; margin-right: auto; display: table; }
	.crs-footer .is-style-crs-kicker { justify-content: center; }
	.crs-footer .is-style-crs-kicker::after {
		content: "";
		flex: 0 0 24px;
		height: 4px;
		background: var(--crs-rouge);
	}
	.crs-pied-reseaux { justify-content: center; }
	.crs-pied-site { justify-content: center !important; text-align: center; }
}
.crs-pied-site a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
	.crs-defilant p { animation: none; }
	.crs-pied-reseaux .wp-social-link:hover, .crs-pied-logo a:hover img { transform: none; }
}

/* --------------------------------------------------------------------------
   Page claire (fond crème)
   -------------------------------------------------------------------------- */
/* Sections et pages claires : .crs-clair (section) ou .crs-page-claire (modèle de page) */
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) { color: var(--crs-gris); }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) :where(h1, h2, h3, h4, h5, h6) { color: var(--crs-encre); }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .is-style-crs-chapo { color: var(--crs-encre); }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) a:where(:not(.wp-element-button)) { color: var(--crs-encre); }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) a:where(:not(.wp-element-button)):hover { color: var(--crs-rouge); }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .is-style-crs-kicker { color: var(--crs-gris); }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-group.is-style-crs-encadre,
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-group.is-style-crs-carte {
	background: #fff;
	box-shadow: 0 1px 0 rgba(26, 26, 30, .06), 0 12px 30px -18px rgba(26, 26, 30, .25);
}
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link { color: var(--crs-encre); }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link:hover,
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link:focus { color: #fff; }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link:hover::before,
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link:focus::before { background: var(--crs-encre); border-color: var(--crs-encre); }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-element-button:not(.has-background):hover { background: var(--crs-encre); color: #fff; }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .crs-logo-placeholder { border-color: #c9c6c1; }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire).crs-partenaires .wp-block-image img,
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .crs-partenaires .wp-block-image img { filter: grayscale(1); opacity: .75; }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire).crs-partenaires .wp-block-image:hover img,
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .crs-partenaires .wp-block-image:hover img { filter: none; opacity: 1; }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .crs-chiffres > .wp-block-column + .wp-block-column { border-color: #dcd9d4; }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-table.is-style-crs-tarifs thead th { color: var(--crs-encre); }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-table.is-style-crs-tarifs td,
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-table.is-style-crs-tarifs th { border-color: #dcd9d4; }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-table.is-style-crs-tarifs td:not(:first-child) { color: var(--crs-encre); }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-table.is-style-crs-tarifs tbody tr:hover { background: #ebe8e3; }

/*
 * Section foncée posée dans une page claire (modèle « Page claire pleine largeur ») :
 * elle retrouve les couleurs des sections foncées. Une section claire (crs-clair) à
 * l'intérieur reste claire.
 */
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) { color: var(--crs-gris-clair); }
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) :where(h1, h2, h3, h4, h5, h6),
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) .is-style-crs-chapo { color: #fff; }
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) a:where(:not(.wp-element-button)) { color: #fff; }
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) a:where(:not(.wp-element-button)):hover { color: var(--crs-rouge); }
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) .is-style-crs-kicker { color: var(--crs-gris-clair); }
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) .wp-block-group:is(.is-style-crs-encadre, .is-style-crs-carte) { background: var(--crs-anthracite); box-shadow: none; }
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) .wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link { color: #fff; }
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) .wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link:is(:hover, :focus) { color: var(--crs-noir); }
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) .wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link:is(:hover, :focus)::before { background: #fff; border-color: #fff; }
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) .crs-chiffres > .wp-block-column + .wp-block-column { border-color: var(--crs-anthracite); }
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) .wp-block-table.is-style-crs-tarifs thead th,
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) .wp-block-table.is-style-crs-tarifs td:not(:first-child) { color: #fff; }
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) .wp-block-table.is-style-crs-tarifs :is(td, th) { border-color: var(--crs-anthracite); }
.crs-page-claire :is(.has-noir-background-color, .has-anthracite-background-color, .has-encre-background-color, .has-rouge-background-color, .wp-block-cover):not(.crs-clair) .wp-block-table.is-style-crs-tarifs tbody tr:hover { background: var(--crs-anthracite); }

/* Page claire pleine largeur : si la page ne commence pas par une section pleine largeur, on aère sous l'en-tête */
.crs-page-claire > .wp-block-post-content > :first-child:not(.alignfull) { margin-top: var(--wp--preset--spacing--60); }

/* Contenus Elementor existants affichés dans le thème */
.elementor-page .wp-site-blocks > main { padding-top: 0; }

.crs-pied-liens { list-style: none; }
.crs-pied-liens li + li { margin-top: .2rem; }

/* Numéros d'étape : jamais sur deux lignes */
.crs-etape-num { flex-shrink: 0; white-space: nowrap; min-width: 2.2ch; margin: 0; }

/* En-tête sur mobile : bouton compact, menu burger à droite */
.crs-header .wp-block-button__link { white-space: nowrap; }
@media (max-width: 600px) {
	.crs-header .wp-block-navigation { order: 2; }
	.crs-header .wp-block-buttons { order: 1; }
	.crs-header .wp-block-button__link { font-size: 1rem !important; padding: .6em 1.4em .5em; }
	.crs-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
	.crs-header .alignwide > .wp-block-group { gap: 0.6rem; }
	.crs-header .wp-block-button__link { padding: .6em 1.1em .5em; }
}

/* Logo jamais rétréci sous 150 px (charte) et menu sur une ligne en tablette */
.crs-header .crs-logo { flex-shrink: 0; }
.crs-header .wp-block-navigation__container { flex-wrap: nowrap; }
@media (min-width: 601px) and (max-width: 1100px) {
	.crs-header .wp-block-navigation { font-size: 1rem; --wp--style--block-gap: 0.9rem; }
	.crs-header .wp-block-navigation .wp-block-navigation__container { gap: 0.9rem; }
	.crs-header .wp-block-button__link { font-size: 1rem !important; padding: .6em 1.4em .5em; }
}
.crs-header .wp-block-navigation-item__content { white-space: nowrap; }
@media (min-width: 601px) and (max-width: 900px) {
	/* Le logo ramène déjà à l'accueil : on masque « Le show » pour garder une seule ligne */
	.crs-header .wp-block-navigation__container > .wp-block-navigation-item:first-child { display: none; }
	.crs-header .wp-block-navigation { font-size: 0.95rem; }
	.crs-header .wp-block-navigation .wp-block-navigation__container { gap: 0.75rem; }
}
@media (min-width: 601px) and (max-width: 760px) {
	.crs-header .crs-logo img { width: 150px; }
	.crs-header .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) { display: none; }
}

/* La couverture en haut de page passe sous l'en-tête transparent */
main > .wp-block-cover.alignfull:first-child,
main > .wp-block-post-content > .wp-block-cover.alignfull:first-child {
	margin-top: calc(var(--crs-header-h, 0px) * -1) !important;
}

/* --------------------------------------------------------------------------
   Motifs automobiles en arrière-plan des sections (très discrets)
   Choix explicite : classes crs-deco-vitesse | crs-deco-piste | crs-deco-damier
   | crs-deco-compteur | crs-deco-aucun. Sinon, rotation automatique.
   -------------------------------------------------------------------------- */
.wp-block-post-content > .wp-block-group.alignfull,
.crs-footer,
[class*="crs-deco-"] {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.wp-block-post-content > .wp-block-group.alignfull::before,
.crs-footer::before,
[class*="crs-deco-"]::before {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	background-repeat: no-repeat;
	opacity: var(--crs-deco-opacity, .06);
}
:is(.crs-clair, .crs-page-claire, .is-style-crs-section-claire)::before,
.crs-clair.wp-block-group::before { filter: invert(1); opacity: var(--crs-deco-opacity, .07); }
.wp-block-group.is-style-crs-section-claire { background-color: var(--wp--preset--color--creme) !important; }

/* Lignes de vitesse : à droite */
.wp-block-post-content > .wp-block-group.alignfull:nth-child(4n+1):not([class*="crs-deco-"])::before,
.crs-deco-vitesse::before {
	background-image: url(../images/deco/vitesse.svg);
	background-position: right center;
	background-size: contain;
	top: 8%; right: -4%; width: 58%; height: 84%; left: auto; bottom: auto;
}
/* Tracé de circuit : en bas à gauche, en partie hors cadre */
.wp-block-post-content > .wp-block-group.alignfull:nth-child(4n+2):not([class*="crs-deco-"])::before,
.crs-deco-piste::before,
.crs-footer::before {
	background-image: url(../images/deco/piste.svg);
	background-position: left bottom;
	background-size: contain;
	left: -6%; bottom: -18%; width: 52%; height: 95%; top: auto; right: auto;
}
/* Damier : coin supérieur droit, s'estompe vers le centre */
.wp-block-post-content > .wp-block-group.alignfull:nth-child(4n+3):not([class*="crs-deco-"])::before,
.crs-deco-damier::before {
	background-image: url(../images/deco/damier.svg);
	background-position: right top;
	background-size: contain;
	top: 0; right: 0; width: 40%; height: 70%; left: auto; bottom: auto;
	transform: scaleX(-1);
	transform-origin: center;
}
/* Compte-tours : en bas à droite, en partie hors cadre */
.wp-block-post-content > .wp-block-group.alignfull:nth-child(4n):not([class*="crs-deco-"])::before,
.crs-deco-compteur::before {
	background-image: url(../images/deco/compteur.svg);
	background-position: right bottom;
	background-size: contain;
	right: -6%; bottom: -30%; width: 42%; height: 120%; top: auto; left: auto;
	transform: none;
}
/* Silhouette de la voiture du logo : en bas à droite, en partie hors cadre */
.crs-deco-voiture::before {
	background-image: url(../images/deco/voiture.svg);
	background-position: right bottom;
	background-size: contain;
	right: -4%; bottom: -6%; width: 62%; height: 80%; top: auto; left: auto;
	transform: none;
}
@media (max-width: 600px) {
	.crs-footer.crs-deco-voiture:not(.crs-deco-regle)::before { width: 150% !important; height: 30%; right: -38%; bottom: 17%; }
}
.crs-deco-aucun::before { display: none; }
.crs-footer::before { opacity: var(--crs-deco-opacity, .04); }

@media (max-width: 781px) {
	:where(.wp-block-post-content > .wp-block-group.alignfull)::before,
	[class*="crs-deco-"]::before { width: 90% !important; opacity: var(--crs-deco-opacity, .05); }
}

/* Motif sur un bloc Couverture : au-dessus de l'image et de la superposition, sous le texte */
.wp-block-cover[class*="crs-deco-"]::before { z-index: 2; opacity: var(--crs-deco-opacity, .1); }
.wp-block-cover[class*="crs-deco-"] > .wp-block-cover__inner-container { position: relative; z-index: 3; }

/* Motif personnalisé (SVG envoyé dans la médiathèque) : couleurs d'origine, jamais inversées */
.crs-deco-perso::before {
	background-image: var(--crs-deco-image, none);
	filter: none !important;
}
/* Placement réglable : « Mon motif », et motifs du thème dès qu'un réglage de placement est choisi (crs-deco-regle) */
:is(.crs-deco-perso, .crs-deco-regle)::before {
	background-size: contain;
	background-position: right center;
	top: 6%; bottom: 6%; right: 2%; left: auto;
	width: var(--crs-deco-taille, 45%); height: auto;
	transform: none;
}
:is(.crs-deco-perso, .crs-deco-regle).crs-deco-pos-gauche::before { left: 2%; right: auto; background-position: left center; }
:is(.crs-deco-perso, .crs-deco-regle).crs-deco-pos-centre::before { left: 50%; right: auto; transform: translateX(-50%); background-position: center; }
:is(.crs-deco-perso, .crs-deco-regle).crs-deco-pos-mosaique::before {
	inset: 0; width: auto; transform: none;
	background-repeat: repeat !important;
	background-size: var(--crs-deco-taille, 20%) auto;
	background-position: center;
}
@media (max-width: 781px) {
	:is(.crs-deco-perso, .crs-deco-regle).crs-deco-pos-mosaique::before { width: auto !important; }
}
/* Mon motif : position verticale (milieu par défaut) */
:is(.crs-deco-perso, .crs-deco-regle).crs-deco-v-haut::before { background-position-y: top; }
:is(.crs-deco-perso, .crs-deco-regle).crs-deco-v-bas::before { background-position-y: bottom; }
/* Couleur forcée (Mon motif et motifs du thème), quel que soit le fichier (l'opacité dose l'effet) */
.crs-deco-c-fonce::before { filter: brightness(0) !important; }
.crs-deco-c-clair::before { filter: brightness(0) invert(1) !important; }
/* Mon motif : miroir horizontal */
:is(.crs-deco-perso, .crs-deco-regle).crs-deco-miroir::before { transform: scaleX(-1); }
:is(.crs-deco-perso, .crs-deco-regle).crs-deco-pos-centre.crs-deco-miroir::before { transform: translateX(-50%) scaleX(-1); }
/* Mon motif : taille sur mobile, au-delà de 100 % le motif déborde et la section le recadre */
@media (max-width: 781px) {
	:is(.crs-deco-perso, .crs-deco-regle).crs-deco-zoom-mobile::before {
		width: var(--crs-deco-taille-mobile, 90%) !important;
		top: 0; bottom: 0;
		background-size: 100% auto;
	}
	:is(.crs-deco-perso, .crs-deco-regle).crs-deco-zoom-mobile.crs-deco-pos-mosaique::before {
		width: auto !important;
		background-size: var(--crs-deco-taille-mobile, 20%) auto;
	}
}

/* Vibreur et bandeau défilant : bord à bord, malgré les marges du pied de page */
.crs-footer > .crs-defilant {
	margin-left: calc(var(--wp--style--root--padding-left, 0px) * -1) !important;
	margin-right: calc(var(--wp--style--root--padding-right, 0px) * -1) !important;
	width: auto !important;
	max-width: none !important;
}
.crs-footer > .crs-defilant { padding-left: 0; padding-right: 0; }

/* Focus clavier visible malgré la découpe en biseau */
.wp-block-button:has(.wp-block-button__link:focus-visible) {
	outline: 3px solid var(--crs-rouge);
	outline-offset: 4px;
}
.wp-block-button .wp-block-button__link:focus-visible { outline: none; }

/* --------------------------------------------------------------------------
   Effet glitch : logo de la couverture d'accueil (crs-hero-logo) et toute image
   avec le style de bloc « Glitch » (is-style-crs-glitch). Le logo du menu reste fixe.
   L'image elle-même n'est jamais déformée ni recolorée : l'effet passe par deux
   « fantômes » (copies teintées rouge et gris clair) découpés en tranches, qui
   apparaissent une demi-seconde toutes les 3,5 s, et à chaque survol.
   Les fantômes reprennent l'image réellement affichée (variable --crs-logo posée par
   inc/logo-glitch.php) : silhouette nette pour un SVG ou PNG transparent, photo teintée sinon.
   -------------------------------------------------------------------------- */
:is(.crs-hero-logo, .is-style-crs-glitch) { position: relative; }
/* Le cadre colle à l'image pour que les fantômes tombent pile dessus */
:is(.crs-hero-logo, .is-style-crs-glitch:not(.alignwide):not(.alignfull)) {
	width: fit-content;
	max-width: 100%;
}
:is(.crs-hero-logo, .is-style-crs-glitch)::before,
:is(.crs-hero-logo, .is-style-crs-glitch)::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	background-image: var(--crs-logo, url(../images/logo.svg));
	background-size: 100% 100%;
	background-blend-mode: multiply;
	-webkit-mask: var(--crs-logo, url(../images/logo.svg)) 0 0 / 100% 100% no-repeat;
	mask: var(--crs-logo, url(../images/logo.svg)) 0 0 / 100% 100% no-repeat;
}
:is(.crs-hero-logo, .is-style-crs-glitch)::before { background-color: var(--crs-rouge); mix-blend-mode: screen; }
:is(.crs-hero-logo, .is-style-crs-glitch)::after { background-color: var(--crs-gris-clair); }
/* Image avec légende : les fantômes ne couvrent que l'image (ils seraient décalés sinon) */
.is-style-crs-glitch:has(figcaption)::before,
.is-style-crs-glitch:has(figcaption)::after { display: none; }

@media (prefers-reduced-motion: no-preference) {
	:is(.crs-hero-logo, .is-style-crs-glitch)::before { animation: crs-glitch-a 3.5s steps(1, end) 1.2s infinite; }
	:is(.crs-hero-logo, .is-style-crs-glitch)::after { animation: crs-glitch-b 3.5s steps(1, end) 1.2s infinite; }
	:is(.crs-hero-logo, .is-style-crs-glitch) img { animation: crs-glitch-img 3.5s steps(1, end) 1.2s infinite; }
	:is(.crs-hero-logo, .is-style-crs-glitch):hover::before { animation: crs-glitch-a-court .55s steps(1, end) 1; }
	:is(.crs-hero-logo, .is-style-crs-glitch):hover::after { animation: crs-glitch-b-court .55s steps(1, end) 1; }
	:is(.crs-hero-logo, .is-style-crs-glitch):hover img { animation: crs-glitch-img-court .55s steps(1, end) 1; }
}

/* Cycle de 3,5 s : le glitch occupe les premiers ~16 % (≈ 0,55 s), puis pause */
@keyframes crs-glitch-a {
	0.0% { opacity: .9; transform: translate(-8px, 0); clip-path: inset(10% 0 62% 0); }
	2.2% { opacity: .9; transform: translate(10px, 0);  clip-path: inset(48% 0 30% 0); }
	4.4% { opacity: .8; transform: translate(-12px, 0); clip-path: inset(72% 0 8% 0); }
	6.29% { opacity: 0; }
	8.8% { opacity: .9; transform: translate(6px, 0);  clip-path: inset(25% 0 50% 0); }
	11.0% { opacity: .9; transform: translate(-6px, 0); clip-path: inset(60% 0 22% 0); }
	13.2% { opacity: .7; transform: translate(4px, 0);  clip-path: inset(0 0 80% 0); }
	15.71%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
}
@keyframes crs-glitch-b {
	0.0% { opacity: .6; transform: translate(8px, 0);  clip-path: inset(55% 0 25% 0); }
	2.2% { opacity: .6; transform: translate(-10px, 0); clip-path: inset(15% 0 70% 0); }
	4.4% { opacity: 0; }
	8.8% { opacity: .6; transform: translate(-8px, 0); clip-path: inset(80% 0 4% 0); }
	11.0% { opacity: .5; transform: translate(10px, 0);  clip-path: inset(35% 0 45% 0); }
	13.83%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
}
@keyframes crs-glitch-img {
	0.0% { transform: translate(2px, 0); }
	2.2% { transform: translate(-4px, 0); }
	4.4% { transform: none; }
	8.8% { transform: translate(4px, 0); }
	11.0%, 100% { transform: none; }
}
/* Version courte (survol) : mêmes étapes, ramenées sur 0,55 s */
@keyframes crs-glitch-a-court {
	0%   { opacity: .9; transform: translate(-8px, 0); clip-path: inset(10% 0 62% 0); }
	14%  { opacity: .9; transform: translate(10px, 0);  clip-path: inset(48% 0 30% 0); }
	28%  { opacity: .8; transform: translate(-12px, 0); clip-path: inset(72% 0 8% 0); }
	40%  { opacity: 0; }
	56%  { opacity: .9; transform: translate(6px, 0);  clip-path: inset(25% 0 50% 0); }
	70%  { opacity: .9; transform: translate(-6px, 0); clip-path: inset(60% 0 22% 0); }
	84%  { opacity: .7; transform: translate(4px, 0);  clip-path: inset(0 0 80% 0); }
	100% { opacity: 0; transform: none; clip-path: inset(0); }
}
@keyframes crs-glitch-b-court {
	0%   { opacity: .6; transform: translate(8px, 0);  clip-path: inset(55% 0 25% 0); }
	14%  { opacity: .6; transform: translate(-10px, 0); clip-path: inset(15% 0 70% 0); }
	28%  { opacity: 0; }
	56%  { opacity: .6; transform: translate(-8px, 0); clip-path: inset(80% 0 4% 0); }
	70%  { opacity: .5; transform: translate(10px, 0);  clip-path: inset(35% 0 45% 0); }
	88%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
}
@keyframes crs-glitch-img-court {
	0%   { transform: translate(2px, 0); }
	14%  { transform: translate(-4px, 0); }
	28%  { transform: none; }
	56%  { transform: translate(4px, 0); }
	70%, 100% { transform: none; }
}

/* --------------------------------------------------------------------------
   Section « Compte à rebours » : chiffres en rouleaux (assets/js/decompte.js)
   -------------------------------------------------------------------------- */
.crs-decompte-section { text-align: center; }
.crs-decompte {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: .04em;
	margin-top: .15em !important;
	margin-bottom: 0 !important;
	font-family: var(--wp--preset--font-family--anton);
	font-size: clamp(6.5rem, 24vw, 17rem);
	line-height: 1;
	color: #fff;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}
.crs-decompte-j {
	color: var(--crs-rouge);
	font-size: .4em;
	line-height: 1;
	margin-top: .14em;
}
.crs-decompte-nombre { display: inline-flex; line-height: 1; }
.crs-rouleau {
	display: inline-block;
	height: 1em;
	overflow: hidden;
	line-height: 1;
}
.crs-rouleau-bande {
	display: flex;
	flex-direction: column;
	transition-property: transform, filter;
	transition-timing-function: cubic-bezier(.12, .7, .2, 1);
	filter: blur(0);
}
.crs-rouleau-bande:not(.is-lance) { filter: blur(3px); }
.crs-rouleau-bande > span { display: block; height: 1em; line-height: 1; }
.crs-decompte.is-parti { font-size: clamp(4rem, 14vw, 10rem); color: var(--crs-rouge); }
.crs-decompte-label {
	margin-top: .3em !important;
	font-family: var(--wp--preset--font-family--bebas);
	font-size: clamp(1.4rem, 3.2vw, 2.4rem);
	letter-spacing: .16em;
	line-height: 1.1;
	color: #fff;
	text-transform: uppercase;
}
.crs-decompte-section .is-style-crs-kicker { justify-content: center; }

/* --------------------------------------------------------------------------
   Programme heure par heure : tableaux au style « Horaires »
   Ligne = heure | animation | étiquette. Animation en gras = temps fort.
   -------------------------------------------------------------------------- */
.crs-horaires-jour { border-top: 4px solid var(--crs-rouge); padding-top: 1.25rem; }
.crs-horaires-titre {
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--anton);
	font-size: clamp(2.6rem, 5vw, 3.8rem);
	line-height: 1;
	text-transform: uppercase;
}
.crs-horaires-date {
	margin-top: .35rem !important;
	font-family: var(--wp--preset--font-family--bebas);
	font-size: 1.35rem;
	letter-spacing: .16em;
	color: var(--crs-rouge);
	text-transform: uppercase;
}
.wp-block-table.is-style-crs-horaires { margin-top: 1.25rem; overflow: visible; }
.wp-block-table.is-style-crs-horaires table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
}
.wp-block-table.is-style-crs-horaires td {
	border: 0;
	border-bottom: 1px solid var(--crs-anthracite);
	padding: 1rem .75rem;
	vertical-align: baseline;
}
/* Heure + frise : un point rouge sur une ligne verticale */
.wp-block-table.is-style-crs-horaires td:first-child {
	position: relative;
	width: 5.4em;
	padding-left: 1.9rem;
	font-family: var(--wp--preset--font-family--anton);
	font-size: 1.45rem;
	line-height: 1;
	color: #fff;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.wp-block-table.is-style-crs-horaires td:first-child::before {
	content: "";
	position: absolute;
	left: .45rem;
	top: 0;
	bottom: -1px;
	width: 2px;
	background: var(--crs-anthracite);
}
.wp-block-table.is-style-crs-horaires td:first-child::after {
	content: "";
	position: absolute;
	left: calc(.45rem - 7px);
	top: 1.15rem;
	width: 12px;
	height: 12px;
	background: var(--crs-noir);
	border: 2px solid var(--crs-rouge);
	transform: rotate(45deg);
}
.wp-block-table.is-style-crs-horaires tr:first-child td:first-child::before { top: 1.3rem; }
.wp-block-table.is-style-crs-horaires tr:last-child td:first-child::before { bottom: auto; height: 1.3rem; }
.wp-block-table.is-style-crs-horaires td:nth-child(2) {
	font-family: var(--wp--preset--font-family--bebas);
	font-size: 1.45rem;
	letter-spacing: .06em;
	line-height: 1.1;
	color: #fff;
	text-transform: uppercase;
}
.wp-block-table.is-style-crs-horaires td:nth-child(2) strong { font-weight: 400; }
.wp-block-table.is-style-crs-horaires td:nth-child(3) {
	width: 1%;
	text-align: right;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--bebas);
	font-size: 1rem;
	letter-spacing: .16em;
	color: var(--crs-gris-clair);
	text-transform: uppercase;
}
/* Temps fort : animation en gras dans l'éditeur */
.wp-block-table.is-style-crs-horaires tr:has(strong) td { background: var(--crs-anthracite); border-bottom-color: transparent; }
.wp-block-table.is-style-crs-horaires tr:has(strong) td:first-child { color: var(--crs-rouge); }
.wp-block-table.is-style-crs-horaires tr:has(strong) td:first-child::after { background: var(--crs-rouge); }
.wp-block-table.is-style-crs-horaires tr:has(strong) td:nth-child(3) { color: var(--crs-rouge); }
.wp-block-table.is-style-crs-horaires tr { transition: transform .25s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.wp-block-table.is-style-crs-horaires tr:hover { transform: translateX(6px); }
}
/* Version claire (tableau posé sur une section claire) */
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-table.is-style-crs-horaires :is(td:first-child, td:nth-child(2)) { color: var(--crs-encre); }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-table.is-style-crs-horaires td { border-bottom-color: #dcd9d4; }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-table.is-style-crs-horaires td:first-child::before { background: #dcd9d4; }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-table.is-style-crs-horaires td:first-child::after { background: var(--crs-creme, #F3F1EE); }
:is(.crs-page-claire, .crs-clair, .is-style-crs-section-claire) .wp-block-table.is-style-crs-horaires tr:has(strong) td { background: #fff; }
/* Téléphone : l'étiquette passe sous l'animation */
@media (max-width: 600px) {
	.wp-block-table.is-style-crs-horaires tr { display: grid; grid-template-columns: 5.6em 1fr; border-bottom: 1px solid var(--crs-anthracite); }
	.wp-block-table.is-style-crs-horaires td { border-bottom: 0; padding: .85rem .5rem; }
	.wp-block-table.is-style-crs-horaires td:first-child { width: auto; grid-row: span 2; padding-left: 1.7rem; font-size: 1.3rem; }
	.wp-block-table.is-style-crs-horaires td:nth-child(2) { font-size: 1.3rem; padding-bottom: .2rem; }
	.wp-block-table.is-style-crs-horaires td:nth-child(3) { width: auto; text-align: left; padding-top: 0; font-size: .9rem; }
	.wp-block-table.is-style-crs-horaires td:nth-child(3):empty { display: none; }
	.wp-block-table.is-style-crs-horaires tr:has(strong) { background: var(--crs-anthracite); border-bottom-color: transparent; }
}

/* --------------------------------------------------------------------------
   Temps forts : cartes Couverture (showcases, shows, concert)
   « crs-temps-fort-mystere » = annonce à venir (photo floutée + « ? »).
   -------------------------------------------------------------------------- */
.crs-temps-forts { gap: var(--wp--preset--spacing--30); }
.crs-temps-fort {
	height: 100%;
	overflow: hidden;
	/* Coin biseauté, comme les boutons */
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
	transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.crs-temps-fort .wp-block-cover__image-background { transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s ease; }
.crs-temps-fort .wp-block-cover__inner-container { position: relative; z-index: 2; }
.crs-temps-fort h3 {
	margin: .35rem 0 0 !important;
	font-family: var(--wp--preset--font-family--anton);
	font-size: clamp(1.9rem, 3.2vw, 2.9rem);
	line-height: 1;
	text-transform: uppercase;
}
.crs-temps-fort h3 + p { margin-top: .6rem !important; max-width: 34em; font-size: .98rem; opacity: .9; }
.crs-temps-fort-tag {
	display: inline-block;
	margin: 0 !important;
	padding: .3em .9em .2em;
	font-family: var(--wp--preset--font-family--bebas);
	font-size: 1rem;
	letter-spacing: .18em;
	line-height: 1.1;
	text-transform: uppercase;
	color: #fff !important;
	background: var(--crs-rouge);
	clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.crs-temps-fort:hover { transform: translateY(-4px); }
	.crs-temps-fort:hover .wp-block-cover__image-background { transform: scale(1.06); }
}
/* Annonce à venir */
.crs-temps-fort-mystere .wp-block-cover__image-background { filter: blur(10px) grayscale(.6) brightness(.7); transform: scale(1.12); }
.crs-temps-fort-mystere::after {
	content: "?";
	position: absolute;
	z-index: 1;
	top: 4%;
	right: 6%;
	transform: rotate(8deg);
	font-family: var(--wp--preset--font-family--anton);
	font-size: clamp(8rem, 14vw, 13rem);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px rgba(255, 255, 255, .55);
	pointer-events: none;
}
.crs-temps-fort-mystere .crs-temps-fort-tag { background: rgba(22, 22, 26, .75); color: var(--crs-rouge) !important; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.crs-temps-fort-mystere:hover .wp-block-cover__image-background { filter: blur(6px) grayscale(.3) brightness(.8); transform: scale(1.14); }
	.crs-temps-fort-mystere::after { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
	.crs-temps-fort-mystere:hover::after { transform: rotate(-4deg) scale(1.05); }
}
@media (max-width: 781px) {
	.crs-temps-fort { min-height: 320px !important; }
}

/* --------------------------------------------------------------------------
   Page Billetterie (thème clair)
   -------------------------------------------------------------------------- */
.crs-billetterie-intro h1 { margin-top: .4rem; line-height: .95; }

/* Cartes billets */
.crs-billet {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: var(--wp--preset--spacing--50);
	background: var(--crs-creme, #F3F1EE);
	border-top: 4px solid var(--crs-rouge);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.crs-billet > * { margin: 0 !important; }
.crs-billet h3 {
	font-family: var(--wp--preset--font-family--anton);
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	line-height: 1;
	text-transform: uppercase;
}
.crs-billet .wp-block-buttons { margin-top: auto !important; padding-top: .5rem; }
.crs-billet-exposant { background: var(--crs-encre); color: var(--crs-gris-clair); }
.crs-billet-exposant h3 { color: #fff !important; }
.crs-billet-tag {
	align-self: flex-start;
	padding: .3em .9em .2em;
	font-family: var(--wp--preset--font-family--bebas);
	font-size: 1rem;
	letter-spacing: .18em;
	line-height: 1.1;
	text-transform: uppercase;
	color: #fff;
	background: var(--crs-rouge);
	clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.crs-billet-liste { list-style: none; padding-left: 0 !important; }
.crs-billet-liste li { position: relative; padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px solid #dcd9d4; }
.crs-billet-liste li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.05em;
	width: 12px;
	height: 4px;
	background: var(--crs-rouge);
	transform: skewX(-20deg);
}
/* Bouton contour sur la carte foncée : texte blanc */
.crs-billet-exposant .wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link { color: #fff; }
.crs-billet-exposant .wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link:is(:hover, :focus) { color: var(--crs-noir); }
.crs-billet-exposant .wp-block-button:is(.is-style-crs-contour, .is-style-outline) .wp-block-button__link:is(:hover, :focus)::before { background: #fff; border-color: #fff; }

/* Message d'avertissement */
.crs-alerte {
	position: relative;
	padding: 1rem 1.25rem 1rem 3.4rem !important;
	background: rgba(225, 6, 0, .08);
	border-left: 4px solid var(--crs-rouge);
	color: inherit;
	font-size: .98rem;
}
.crs-alerte::before {
	content: "!";
	position: absolute;
	left: 1rem;
	top: 1rem;
	width: 1.5rem;
	height: 1.5rem;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--anton);
	font-size: 1rem;
	line-height: 1;
	color: #fff;
	background: var(--crs-rouge);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
	padding-top: .25rem;
}
.crs-billet-exposant .crs-alerte { background: rgba(225, 6, 0, .16); color: #fff; }
.crs-alerte-grande { margin-top: 1.5rem !important; font-size: 1.05rem; }
.crs-alerte strong { font-weight: 700; }

/* Procédure en 4 étapes : frise numérotée */
.crs-procedure { counter-reset: none; }
.crs-procedure-etape { position: relative; padding-top: 1.25rem; border-top: 3px solid var(--crs-rouge); }
.crs-procedure-etape .crs-etape-num {
	margin: 0 0 .6rem !important;
	font-size: clamp(3.2rem, 5vw, 4.4rem);
	color: transparent;
	-webkit-text-stroke: 2px var(--crs-rouge);
}
.crs-procedure-etape h3 {
	margin: 0 0 .4rem !important;
	font-family: var(--wp--preset--font-family--bebas);
	font-size: 1.6rem;
	letter-spacing: .06em;
	line-height: 1.05;
	text-transform: uppercase;
}
.crs-procedure-etape:last-child .crs-etape-num { color: var(--crs-rouge); }

/* Questions fréquentes (blocs Détails) */
.crs-faq .wp-block-details { border-bottom: 1px solid #dcd9d4; margin: 0; }
.crs-faq .wp-block-details:first-child { border-top: 1px solid #dcd9d4; }
.crs-faq summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 1.1rem 3rem 1.1rem 0;
	font-family: var(--wp--preset--font-family--bebas);
	font-size: 1.45rem;
	letter-spacing: .05em;
	line-height: 1.15;
	text-transform: uppercase;
	transition: color .2s;
}
.crs-faq summary::-webkit-details-marker { display: none; }
.crs-faq summary::after {
	content: "+";
	position: absolute;
	right: .25rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--anton);
	font-size: 1.8rem;
	color: var(--crs-rouge);
	transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.crs-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.crs-faq summary:hover { color: var(--crs-rouge); }
.crs-faq .wp-block-details > p { margin: 0 0 1.2rem; max-width: 52em; }

/* ==========================================================================
 * Bandeau de consentement Complianz, aux couleurs de la charte.
 * « Refuser » a le même poids visuel que « Accepter » (exigence CNIL).
 * ========================================================================== */
.cmplz-cookiebanner {
	--cmplz_banner_background_color: var(--wp--preset--color--noir, #16161A);
	--cmplz_banner_border_color: var(--wp--preset--color--rouge, #E10600);
	--cmplz_banner_border_width: 0 0 0 4px;
	--cmplz_banner_border_radius: 0;
	--cmplz_text_color: var(--wp--preset--color--gris-clair, #B9B9BE);
	--cmplz_hyperlink_color: #fff;
	--cmplz_button_accept_background_color: var(--wp--preset--color--rouge, #E10600);
	--cmplz_button_accept_border_color: var(--wp--preset--color--rouge, #E10600);
	--cmplz_button_accept_text_color: #fff;
	--cmplz_button_deny_background_color: var(--wp--preset--color--rouge, #E10600);
	--cmplz_button_deny_border_color: var(--wp--preset--color--rouge, #E10600);
	--cmplz_button_deny_text_color: #fff;
	--cmplz_button_settings_background_color: transparent;
	--cmplz_button_settings_border_color: #fff;
	--cmplz_button_settings_text_color: #fff;
	--cmplz_button_border_radius: 0;
	--cmplz_slider_active_color: var(--wp--preset--color--rouge, #E10600);
	--cmplz_slider_inactive_color: #46464d;
	--cmplz_slider_bullet_color: #fff;
	--cmplz_category_header_always_active_color: var(--wp--preset--color--rouge, #E10600);
	font-family: var(--wp--preset--font-family--poppins);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.cmplz-cookiebanner .cmplz-title,
.cmplz-cookiebanner .cmplz-category-title {
	font-family: var(--wp--preset--font-family--bebas);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
}
.cmplz-cookiebanner .cmplz-title { font-size: 1.25rem; }
.cmplz-cookiebanner .cmplz-category {
	background: var(--wp--preset--color--anthracite, #202026) !important;
	border-radius: 0 !important;
}
.cmplz-cookiebanner .cmplz-close { color: #fff; }
.cmplz-cookiebanner .cmplz-btn,
#cmplz-manage-consent .cmplz-manage-consent {
	font-family: var(--wp--preset--font-family--bebas);
	font-size: 1.05rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 400;
	clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
	padding-inline: 1.2em;
}
/* « Voir les préférences » en contour : cadre biseauté sans clip-path pour garder le filet. */
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
	clip-path: none;
	border: 0 !important;
	position: relative;
	isolation: isolate;
}
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences::before,
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences::before {
	content: "";
	position: absolute;
	inset: 0 4px;
	border: 1px solid #fff;
	transform: skewX(-17deg);
	z-index: -1;
}
.cmplz-cookiebanner .cmplz-btn:hover { filter: brightness(1.12); }
.cmplz-cookiebanner .cmplz-links .cmplz-link { color: #fff; text-decoration: underline; }
#cmplz-manage-consent .cmplz-manage-consent {
	background: var(--wp--preset--color--noir, #16161A);
	color: #fff;
	border: 0;
	border-top: 3px solid var(--wp--preset--color--rouge, #E10600);
	border-radius: 0;
}
