/* ============================================
   Hero événement (titre + date + image)
   ============================================ */
.alt-events-hero {
	margin: 0;
	padding: 1rem 0 0;
}

.alt-events-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: stretch;
}

.alt-events-hero__left {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.alt-events-hero__badge {
	display: inline-block;
	padding: 0.45rem 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	width: fit-content;
	line-height: 1;
}

.alt-events-hero__badge--free {
	background: #33cc99;
	color: #fff;
}

.alt-events-hero__title {
	font-family: 'Delight', Helvetica, Arial, Lucida, sans-serif;
	font-size: clamp(2.2em, 5vw, 4.4em);
	color: #000000 !important;
	line-height: 1.2em;
	margin: 0;
	font-weight: 400;
}

.alt-events-hero__date {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: baseline;
	padding: 0.75rem 1.25rem;
	background: #000;
	color: #fff;
	width: fit-content;
	font-weight: 600;
}

.alt-events-hero__date-day {
	font-size: 1.15rem;
	text-transform: capitalize;
	letter-spacing: 0.01em;
}

.alt-events-hero__date-time {
	font-size: 1rem;
	opacity: 0.85;
}

.alt-events-hero__lieu {
	font-size: 1rem;
	color: #444;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.alt-events-hero__lieu::before {
	content: "📍";
	font-style: normal;
}

.alt-events-hero__details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 0.5rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #1a1a1a;
}

.alt-events-hero__formateurs {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.alt-events-hero__formateur strong {
	font-weight: 600;
}

.alt-events-hero__formateur-specialite {
	font-style: italic;
	color: #555;
	margin-top: 0.15rem;
}

.alt-events-hero__practical {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.alt-events-hero__tarif {
	font-weight: 600;
	color: #1a1a1a;
}

.alt-events-hero__content {
	margin-top: 1rem;
	font-size: 1rem;
	line-height: 1.6;
	color: #1a1a1a;
}

.alt-events-hero__content p:first-child { margin-top: 0; }
.alt-events-hero__content p:last-child { margin-bottom: 0; }

.alt-events-hero__right {
	position: relative;
	height: 100%;
}

.alt-events-hero__right > img:not(.alt-events-hero__arrow) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.alt-events-hero__arrow {
	position: absolute;
	bottom: 0;
	left: 0;
	width: clamp(60px, 7vw, 110px);
	height: clamp(60px, 7vw, 110px);
	transform: translate(-100%, 0%);
	pointer-events: none;
	z-index: 2;
}

@media (max-width: 900px) {
	.alt-events-hero__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.alt-events-hero__right {
		height: auto;
	}
	.alt-events-hero__right > img:not(.alt-events-hero__arrow) {
		height: auto;
		aspect-ratio: 4 / 3;
	}
	.alt-events-hero__arrow {
		transform: translate(-100%, 0%);
	}
}

/* ============================================
   DIVI overrides (active via body classes)
   ============================================ */
body.alt-events-no-sidebar #sidebar {
	display: none !important;
}
body.alt-events-no-sidebar #left-area {
	width: 100% !important;
	padding-right: 0 !important;
	float: none !important;
}
body.alt-events-no-sidebar #content-area {
	max-width: 100% !important;
}
body.alt-events-no-sidebar #main-content .container::before {
	display: none !important;
}

body.alt-events-has-hero .et_post_meta_wrapper {
	display: none !important;
}
body.single-alt_event #main-content .container {
	padding-top: 0 !important;
}

/* ============================================
   Page archive — liste des événements
   ============================================ */
.alt-events-archive__container {
	padding-top: 2rem;
	padding-bottom: 4rem;
}

.alt-events-archive__header {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 3rem;
	margin-bottom: 3.5rem;
	align-items: start;
}

.alt-events-archive__title {
	font-family: 'Delight', Helvetica, Arial, Lucida, sans-serif;
	font-size: clamp(2.2em, 5vw, 4.4em);
	color: #000 !important;
	line-height: 1.1em;
	margin: 0;
	font-weight: 400;
}

.alt-events-archive__intro {
	font-size: 1.05rem;
	line-height: 1.6;
	color: #1a1a1a;
	padding-top: 0.5rem;
}

.alt-events-archive__intro p { margin: 0 0 1rem; }
.alt-events-archive__intro p:last-child { margin-bottom: 0; }

.alt-events-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.alt-events-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.alt-events-card__body {
	flex: 1;
	padding: 2.25rem 2rem 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 280px;
}

.alt-events-card__date {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.7;
}

.alt-events-card__title {
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 0;
	font-weight: 600;
	flex: 1;
}

.alt-events-card__title a {
	color: inherit;
	text-decoration: none;
}

.alt-events-card__cta {
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: inherit;
	text-decoration: none;
	margin-top: 0.5rem;
	align-self: flex-start;
}

.alt-events-card__cta:hover {
	text-decoration: underline;
}

.alt-events-card:nth-child(3n+1) .alt-events-card__body { background: #33cc99; color: #fff; }
.alt-events-card:nth-child(3n+2) .alt-events-card__body { background: #f7fe8a; color: #1a1a1a; }
.alt-events-card:nth-child(3n)   .alt-events-card__body { background: #c596fe; color: #1a1a1a; }

.alt-events-archive__pagination {
	margin-top: 3rem;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.alt-events-archive__pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 0.9rem;
	border: 1px solid #ddd;
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 600;
}

.alt-events-archive__pagination .page-numbers.current,
.alt-events-archive__pagination .page-numbers:hover {
	background: #33cc99;
	color: #fff;
	border-color: #33cc99;
}

.alt-events-archive__empty {
	padding: 4rem 0;
	text-align: center;
	font-size: 1.1rem;
	color: #555;
}

@media (max-width: 980px) {
	.alt-events-archive__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.alt-events-archive__header {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		margin-bottom: 2.5rem;
	}
}

@media (max-width: 640px) {
	.alt-events-archive__grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   Formulaire d'inscription
   ============================================ */
.alt-events-form-wrapper {
	margin: 0;
	padding: 3rem 1.5rem;
	background: #33cc99;
	border: 0;
	color: #fff;
	font-family: inherit;
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
}

.alt-events-form-wrapper__inner {
	max-width: 1080px;
	margin: 0 auto;
}

.alt-events-form-wrapper__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: start;
}

.alt-events-form-wrapper.has-programme .alt-events-form-wrapper__grid {
	grid-template-columns: 1fr 1fr;
}

.alt-events-programme__title {
	font-family: 'Delight', Helvetica, Arial, Lucida, sans-serif;
	font-size: clamp(1.6em, 3vw, 2.2em);
	color: #fff !important;
	margin: 0 0 1.25rem;
	line-height: 1.2em;
	font-weight: 400;
}

.alt-events-programme__content {
	font-size: 1rem;
	line-height: 1.65;
	color: #fff;
}

.alt-events-programme__content p:first-child { margin-top: 0; }
.alt-events-programme__content p:last-child { margin-bottom: 0; }
.alt-events-programme__content a { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
	.alt-events-form-wrapper.has-programme .alt-events-form-wrapper__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

.alt-events-form__title {
	margin: 0 0 1.25rem;
	font-size: 1.25rem;
	line-height: 1.3;
	color: #fff;
}

.alt-events-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

.alt-events-form__field {
	display: flex;
	flex-direction: column;
}

.alt-events-form__field label {
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: #fff;
}

.alt-events-form__field input,
.alt-events-form__field select {
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid #cfcfd6;
	font-size: 1rem;
	background: #fff;
	color: #1a1a1a;
	box-sizing: border-box;
}

.alt-events-form__field input:focus,
.alt-events-form__field select:focus {
	outline: 2px solid #33cc99;
	outline-offset: 1px;
	border-color: #33cc99;
}

.alt-events-form__rgpd {
	margin: 1rem 0 1.25rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #fff;
}

.alt-events-form__rgpd label {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	cursor: pointer;
}

.alt-events-form__rgpd input[type="checkbox"] {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.alt-events-form__honeypot {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.alt-events-form__turnstile {
	margin: 0.5rem 0 1.25rem;
}

.alt-events-form__submit {
	display: inline-block;
	padding: 0.75rem 1.75rem;
	border: 0;
	background: #f7fe8a;
	color: #1a1a1a;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.alt-events-form__submit:hover,
.alt-events-form__submit:focus {
	background: #e8f06d;
}

.alt-events-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.alt-events-msg {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	font-size: 0.95rem;
	line-height: 1.4;
}

.alt-events-msg--success {
	background: #ecf8ef;
	border: 1px solid #b6e0c1;
	color: #14532d;
}

.alt-events-msg--error {
	background: #fdecec;
	border: 1px solid #f5b5b5;
	color: #7f1d1d;
}

.alt-events-msg--closed,
.alt-events-msg--full {
	background: #fff7e6;
	border: 1px solid #f4d58d;
	color: #6b4d00;
	margin-bottom: 0;
}

@media (max-width: 640px) {
	.alt-events-form-wrapper {
		padding: 1.25rem;
	}
	.alt-events-form__row {
		grid-template-columns: 1fr;
	}
}
