/*
Theme Name: Zebatuca
Theme URI: http://127.0.0.1:8080
Author: Zebatuca
Description: Thème bloc FSE de ZeBatucA. Blocs statiques du site de concerts.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.2.0
Text Domain: zebatuca
*/

:root {
	--zeba-orange: #fb923c;
	--zeba-orange-hot: #f97316;
	--zeba-orange-deep: #c2410c;
	--zeba-orange-soft: #ffedd5;
	--zeba-cyan: #1aa9e1;
	--zeba-ink: #111827;
	--zeba-muted: #6b7280;
	--zeba-sand: #f3f4f6;
	--zeba-mist: #e5e7eb;
	--zeba-night: #111827;
	--zeba-measure: 72rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--zeba-ink);
	background: #fff;
}

body.zeba-nav-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.wp-site-blocks,
.editor-styles-wrapper {
	margin: 0;
}

.wp-site-blocks > *,
main.wp-block-group,
main.wp-block-group > .wp-block-post-content {
	margin-block: 0;
}

[class*="wp-block-zebatuca-"] > * {
	margin-block: 0;
}

.zeba-btn,
.zeba-btn--ghost {
	display: inline-block;
	padding: 1rem 1.75rem;
	border: 0;
	border-radius: 0.375rem;
	appearance: none;
	font: inherit;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.zeba-btn {
	background: var(--zeba-orange);
	color: var(--zeba-ink);
}

.zeba-btn:hover {
	background: var(--zeba-orange-hot);
	color: var(--zeba-ink);
}

.zeba-btn--ghost {
	background: #fff;
	color: var(--zeba-orange-deep);
}

.zeba-btn--ghost:hover {
	background: var(--zeba-orange-hot);
	color: #fff;
}

.zeba-intro .zeba-btn--ghost {
	background: var(--zeba-sand);
}

.zeba-intro .zeba-btn--ghost:hover {
	background: var(--zeba-orange-hot);
	color: #fff;
}

.zeba-pattern {
	background-image: url("assets/afro.svg");
	background-repeat: repeat;
	background-size: 720px auto;
}

.zeba-rich p,
.zeba-richtext p {
	margin: 0 0 0.65rem;
	line-height: 1.65;
}

.zeba-rich h2,
.zeba-richtext h1,
.zeba-richtext h2 {
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

.zeba-rich ul,
.zeba-richtext ul {
	margin: 0.5rem 0 1rem;
	padding-left: 1.25rem;
}

.zeba-richtext h1 {
	font-size: 2.5rem;
}

.zeba-richtext h2 {
	margin-top: 1.5rem;
	font-size: 2rem;
}

/* Header */
.zeba-header {
	background: #fff;
}

.zeba-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 64rem;
	margin: 0 auto;
	padding: 0.625rem 1rem;
}

.zeba-header__logo img {
	display: block;
	width: 13rem;
	height: auto;
}

.zeba-header__nav {
	background: #fff;
}

.zeba-header__nav ul {
	display: flex;
	gap: 5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zeba-header__nav a {
	text-decoration: none;
}

.zeba-header__nav a:hover {
	text-decoration: underline;
}

.zeba-header__toggle {
	display: none;
	position: relative;
	z-index: 40;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.zeba-header__toggle span {
	position: absolute;
	left: 0;
	width: 2rem;
	height: 0.25rem;
	border-radius: 999px;
	background: #000;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.zeba-header__toggle span:nth-child(1) {
	top: 0.4rem;
}

.zeba-header__toggle span:nth-child(2) {
	top: 0.875rem;
}

.zeba-header__toggle span:nth-child(3) {
	top: 1.35rem;
}

@media (max-width: 767px) {
	.zeba-header__toggle {
		display: block;
	}

	.zeba-header__nav {
		position: fixed;
		z-index: 30;
		inset: 0;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		padding: 1rem;
		opacity: 0;
		transform: scaleY(0);
		transform-origin: top;
		pointer-events: none;
	}

	.zeba-header.is-open .zeba-header__nav {
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}

	.zeba-header__nav ul {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: 1rem;
		font-size: 1.875rem;
		text-align: left;
	}

	.zeba-header.is-open .zeba-header__toggle span:nth-child(1) {
		transform: translateY(0.475rem) rotate(45deg);
	}

	.zeba-header.is-open .zeba-header__toggle span:nth-child(2) {
		opacity: 0;
	}

	.zeba-header.is-open .zeba-header__toggle span:nth-child(3) {
		transform: translateY(-0.475rem) rotate(-45deg);
	}
}

/* Hero */
.zeba-hero__slides {
	position: relative;
	height: 300px;
	overflow: hidden;
	background: #111;
}

.zeba-hero__slides img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.45s ease;
}

.zeba-hero__slides img.is-active {
	opacity: 1;
}

.zeba-hero__panel {
	max-width: 64rem;
	margin: 0 auto;
	padding: 2.5rem 1rem 3rem;
	background: #fff;
}

.zeba-hero__logo {
	display: none;
	max-width: 24rem;
	margin: 0 auto 1.25rem;
}

.zeba-hero__logo img {
	width: 100%;
}

.zeba-hero__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.zeba-hero__text {
	max-width: 48rem;
	margin: 0 auto 1.25rem;
	font-size: 1.125rem;
}

.zeba-hero__actions {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.zeba-hero__slides {
		height: 607px;
	}

	.zeba-hero__logo {
		display: block;
	}

	.zeba-hero__title,
	.zeba-hero__text {
		text-align: center;
	}

	.zeba-hero__actions {
		flex-direction: row;
		justify-content: center;
	}
}

.editor-styles-wrapper .zeba-hero__slides {
	display: flex;
	height: auto;
	gap: 0.5rem;
	overflow: auto;
}

.editor-styles-wrapper .zeba-item-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.5rem;
}

.editor-styles-wrapper .zeba-add {
	display: inline-block;
	margin: 1rem 0;
	padding: 0.6rem 1rem;
	border: 0;
	border-radius: 0.375rem;
	background: var(--zeba-orange);
	color: var(--zeba-ink);
	font-weight: 600;
	cursor: pointer;
}

.editor-styles-wrapper .zeba-replace {
	display: block;
	cursor: pointer;
}

.editor-styles-wrapper .zeba-events__grid.block-editor-block-list__layout {
	display: grid;
}

.editor-styles-wrapper .zeba-events__grid > .wp-block {
	margin: 0;
}

.editor-styles-wrapper .zeba-event-add {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 9rem;
	border: 2px dashed #ea580c;
	background: transparent;
	color: var(--zeba-orange-deep);
	font-size: 2.5rem;
	line-height: 1;
	cursor: pointer;
}

.editor-styles-wrapper .zeba-event-add:hover {
	background: var(--zeba-orange-soft);
}

.editor-styles-wrapper .zeba-replace img {
	cursor: pointer;
}

.editor-styles-wrapper .zeba-hero__slides img {
	position: relative;
	width: 220px;
	height: 140px;
	opacity: 1;
}

/* Videos, about, gallery intros */
.zeba-intro,
.zeba-intro-block,
.zeba-videos,
.zeba-about,
.zeba-gallery,
.zeba-events,
.zeba-action,
.zeba-contact,
.zeba-text-image,
.zeba-support,
.zeba-richtext {
	padding-left: 1rem;
	padding-right: 1rem;
}

.zeba-videos,
.zeba-about,
.zeba-contact,
.zeba-text-image.has-pattern {
	background-image: url("assets/afro.svg");
	background-repeat: repeat;
	background-size: 720px auto;
}

.zeba-section__head {
	max-width: 56rem;
	margin: 0 auto 2rem;
}

.zeba-section__head h2,
.zeba-text-image h2,
.zeba-action h2 {
	margin: 0 0 0.75rem;
	font-size: 1.875rem;
	font-weight: 600;
	line-height: 1.2;
}

.zeba-section__head p {
	margin: 0;
	color: var(--zeba-muted);
}

.zeba-videos {
	padding-top: 8rem;
	padding-bottom: 4rem;
}

.zeba-videos__grid,
.zeba-gallery__grid,
.zeba-events__grid {
	max-width: var(--zeba-measure);
	margin: 0 auto;
}

.zeba-videos__grid {
	display: grid;
	grid-template-columns: 1fr;
	max-width: 56rem;
	margin-top: 4rem;
}

.zeba-videos__grid a,
.zeba-gallery__grid a {
	display: block;
	padding: 0.25rem;
	border-radius: 0.375rem;
	transition: background-color 0.2s ease;
}

.zeba-videos__grid a:hover,
.zeba-gallery__grid a:hover {
	background: var(--zeba-mist);
}

.zeba-videos__grid img,
.zeba-gallery__grid img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zeba-videos__grid figure {
	margin: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

@media (min-width: 768px) {
	.zeba-videos {
		padding-bottom: 9rem;
	}

	.zeba-videos__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.zeba-videos__grid a {
		padding: 0.75rem;
	}
}

/* About */
.zeba-about {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.zeba-about__layout {
	display: flex;
	flex-direction: column;
	gap: 3.5rem;
	max-width: var(--zeba-measure);
	margin: 2rem auto 0;
}

.zeba-about__layout figure {
	margin: 0;
	padding: 0.25rem;
	border-radius: 0.375rem;
	background: #fed7aa;
}

.zeba-about__layout img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0.125rem;
}

@media (min-width: 1024px) {
	.zeba-about {
		padding-top: 16rem;
		padding-bottom: 8rem;
	}

	.zeba-about__layout {
		flex-direction: row;
		align-items: flex-start;
	}

	.zeba-about__layout figure {
		flex: 0 0 36rem;
		max-width: 36rem;
		padding: 0.625rem;
	}
}

/* Divider */
.zeba-divider {
	padding: 0;
	background: #1f2937;
}

.zeba-divider__band {
	height: 5rem;
	background: #1f2937 url("assets/motif.svg") center / cover repeat;
}

.zeba-divider.is-blue .zeba-divider__band {
	background-image: url("assets/motif3.svg");
}

@media (min-width: 1024px) {
	.zeba-divider__band {
		height: 11rem;
	}
}

/* Events */
.zeba-events {
	padding-top: 2rem;
	padding-bottom: 2rem;
	background: var(--zeba-mist);
}

.zeba-events .zeba-section__head h2 {
	color: var(--zeba-ink);
}

.zeba-events .zeba-section__head p {
	color: #374151;
}

.zeba-events__grid {
	display: grid;
	gap: 2rem;
	margin-top: 2rem;
}

.zeba-event {
	display: block;
	padding: 1.25rem;
	border: 2px solid #ea580c;
	border-radius: 0.375rem;
	background: var(--zeba-sand);
	color: var(--zeba-ink);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

a.zeba-event:hover {
	background: #fed7aa;
}

.zeba-event p {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0 0 0.5rem;
}

.zeba-event__label {
	font-size: 0.875rem;
	font-weight: 600;
}

.zeba-icon {
	display: inline-flex;
	width: 1rem;
	height: 1rem;
}

.zeba-icon img {
	width: 1rem;
	height: 1rem;
}

@media (min-width: 640px) {
	.zeba-events__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.zeba-events {
		padding-top: 8rem;
		padding-bottom: 8rem;
	}

	.zeba-events__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Gallery */
.zeba-gallery {
	padding-top: 8rem;
	padding-bottom: 8rem;
}

.zeba-gallery__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.zeba-gallery__grid a {
	width: 100%;
}

.zeba-gallery__grid figure {
	margin: 0;
	height: 12rem;
	overflow: hidden;
}

@media (min-width: 768px) {
	.zeba-gallery__grid a.is-wide {
		width: 40%;
	}

	.zeba-gallery__grid a.is-square {
		width: 20%;
	}

	.zeba-gallery__grid a.is-wide figure {
		aspect-ratio: 2 / 1;
		height: auto;
	}

	.zeba-gallery__grid a.is-square figure {
		aspect-ratio: 1;
		height: auto;
	}

	.zeba-gallery__grid a {
		padding: 0.75rem;
	}
}

/* Action teaser */
.zeba-action {
	margin-bottom: 9rem;
	padding-top: 6rem;
	background: #111827 url("assets/motif4.svg") center / cover repeat;
	color: #fff;
}

.zeba-action__layout {
	position: relative;
	max-width: var(--zeba-measure);
	margin: 0 auto;
	padding-top: 4rem;
}

.zeba-action__card {
	position: relative;
	z-index: 1;
	max-width: 48rem;
	padding: 1rem;
	background: #fff;
	color: var(--zeba-ink);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.zeba-action__card p {
	line-height: 1.5;
}

.zeba-action__photo {
	margin: 0;
	background: #fed7aa;
}

.zeba-action__photo img {
	display: block;
	width: 100%;
	background: #fff;
}

@media (min-width: 1024px) {
	.zeba-action__card {
		padding: 2.5rem;
		border-radius: 0.375rem;
		transform: translateY(2.5rem);
	}

	.zeba-action__photo {
		position: absolute;
		top: 2.5rem;
		right: 0;
		max-width: 28rem;
		padding: 0.625rem;
		border-radius: 0.375rem;
	}
}

/* ZeBatuc'Action intro + support */
.zeba-intro__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	max-width: var(--zeba-measure);
	margin: 3.5rem auto;
}

.zeba-intro__row img {
	width: min(100%, 375px);
}

.zeba-text-image {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.zeba-text-image__layout {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: var(--zeba-measure);
	margin: 0 auto;
}

.zeba-text-image__layout figure {
	margin: 0;
	max-width: 600px;
}

.zeba-text-image__layout img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 1024px) {
	.zeba-intro__row {
		position: relative;
		flex-direction: row;
		justify-content: center;
		margin-bottom: 7rem;
	}

	.zeba-intro__cta {
		position: absolute;
		right: 0;
	}

	.zeba-text-image {
		padding-top: 8rem;
		padding-bottom: 8rem;
	}

	.zeba-text-image__layout {
		flex-direction: row;
		align-items: center;
		gap: 3.5rem;
	}

	.zeba-text-image.is-reverse .zeba-text-image__layout {
		flex-direction: row-reverse;
	}

	.zeba-text-image__layout figure {
		flex: 0 0 600px;
	}
}

.zeba-support {
	padding-bottom: 8rem;
}

.zeba-support__card {
	max-width: 700px;
	margin: 0 auto;
	padding: 1rem;
	background: var(--zeba-mist);
	color: #374151;
}

.zeba-support__card p {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 0.5rem;
	margin: 0.5rem 0;
}

.zeba-support__card strong {
	font-weight: 600;
}

@media (min-width: 1024px) {
	.zeba-support__card {
		padding: 3.5rem;
		border: 2px solid #ea580c;
		border-radius: 0.375rem;
	}
}

/* Contact */
.zeba-contact {
	padding-bottom: 8rem;
}

.zeba-contact h1 {
	margin: 3rem 0 1.25rem;
	color: var(--zeba-cyan);
	font-size: clamp(1.875rem, 4vw, 3.75rem);
	font-weight: 700;
	text-align: center;
}

.zeba-contact__lead {
	margin: 0 0 3.5rem;
	text-align: center;
}

.zeba-contact__note {
	max-width: var(--zeba-measure);
	margin: 0 auto 1rem;
	padding: 1rem;
	background: #ecfdf5;
	text-align: center;
}

.zeba-contact__panel {
	display: grid;
	gap: 0.625rem;
	max-width: var(--zeba-measure);
	margin: 0 auto;
	padding: 0.5rem;
	border-radius: 0.375rem;
	background: #fff;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.zeba-contact__aside {
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
	border-radius: 0.125rem;
	background: var(--zeba-mist);
}

.zeba-contact__aside h2 {
	margin: 0 0 2rem;
	font-size: 1.875rem;
}

.zeba-contact__aside p {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0;
}

.zeba-contact__aside a {
	display: block;
	margin: 0.5rem 0 1.75rem;
	color: var(--zeba-orange-hot);
	font-size: 1.25rem;
	font-weight: 600;
	text-decoration: none;
}

.zeba-contact__aside a:hover {
	text-decoration: underline;
}

.zeba-contact__social {
	display: flex;
	gap: 0.25rem;
	margin: auto 0 0;
	padding: 0;
	list-style: none;
}

.zeba-contact__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5625rem;
	height: 2.5625rem;
	margin: 0;
	padding: 0;
	border-radius: 0.375rem;
	line-height: 0;
}

.zeba-contact__social img {
	width: 25px;
	height: 25px;
}

.zeba-contact__social a:hover {
	background: #f3f4f6;
}

.zeba-contact form {
	display: grid;
	gap: 2.5rem 1.25rem;
	padding: 1.5rem;
}

.zeba-contact label {
	display: block;
	margin-bottom: 0.25rem;
	color: #4b5563;
}

.zeba-contact input,
.zeba-contact textarea {
	width: 100%;
	padding: 0.875rem;
	border: 1px solid #9ca3af;
	border-radius: 0.375rem;
	color: var(--zeba-ink);
	font: inherit;
	font-size: 1.125rem;
}

.zeba-contact .is-wide {
	grid-column: 1 / -1;
}

.zeba-hp {
	position: absolute;
	left: -9999px;
}

@media (min-width: 1024px) {
	.zeba-contact__panel {
		grid-template-columns: 1fr 2fr;
	}

	.zeba-contact form {
		grid-template-columns: 1fr 1fr;
	}
}

/* Rich text page */
.zeba-richtext {
	max-width: 64ch;
	margin: 0 auto;
	padding-top: 5rem;
	padding-bottom: 5rem;
}

/* Footer */
.zeba-footer {
	padding: 3rem 1rem;
	background: var(--zeba-night);
	color: #fff;
}

.zeba-footer__grid {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-width: var(--zeba-measure);
	margin: 0 auto;
}

.zeba-footer__brand img {
	width: 13rem;
	margin-bottom: 1.25rem;
}

.zeba-footer__brand p {
	max-width: 24rem;
	margin: 0;
	font-size: 0.875rem;
}

.zeba-footer a {
	color: inherit;
	text-decoration: none;
}

.zeba-footer a:hover {
	text-decoration: underline;
}

.zeba-footer a.zeba-footer__phone {
	display: block;
	margin-top: 0.25rem;
	color: var(--zeba-orange-hot);
	font-size: 1.25rem;
	font-weight: 600;
}

.zeba-footer a.zeba-footer__phone:hover {
	color: var(--zeba-orange-hot);
}

.zeba-footer__social {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zeba-footer__social a {
	display: inline-block;
	padding: 0.25rem;
	border-radius: 0.375rem;
}

.zeba-footer__social a:hover {
	background: #4b5563;
}

.zeba-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zeba-footer__credit {
	font-size: 0.75rem;
}

.zeba-footer__credit a {
	text-decoration: underline;
}

@media (min-width: 1024px) {
	.zeba-footer__grid {
		flex-direction: row;
		justify-content: space-between;
	}

	.zeba-footer__side {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 1.25rem;
	}

	.zeba-footer__links {
		gap: 1.75rem;
	}
}

.zeba-lightbox {
	max-width: min(96vw, 1100px);
	padding: 0;
	border: 0;
	background: transparent;
}

.zeba-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.86);
}

.zeba-lightbox img {
	display: block;
	max-height: 88vh;
	width: auto;
	margin: 0 auto;
}

.zeba-lightbox__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 999px;
	background: #fff;
	font-size: 1.5rem;
	cursor: pointer;
}

.is-zeba-image-selected {
	outline: 2px solid var(--zeba-cyan);
	outline-offset: 2px;
}
