/*
 Theme Name:   Twenty Twenty-Five Child
 Template:     twentytwentyfive
 Theme URI:    https://wordpress.org/themes/twentytwentyfive/
 Description:  Thème enfant basé sur Twenty Twenty Five
 Version:      1.0
 Author:       David Wismer
*/

/*------------------------------------------- General ----------------------------------------------------------*/
.wpforms-container .wpforms-field-row.wpforms-field-medium, .wpforms-container input.wpforms-field-medium {
	max-width: none !important;
}

footer {
	margin-top: 0;
}

header.wp-block-template-part {
	width: 100%;
	background-color: white;
	position: fixed;
	z-index: 1;
}

:where(.wp-site-blocks) > * {
    margin-block-start: 0;
}

.mc4wp-form-fields {
	display: flex;
	gap: 50px;
}

.newsletter-input-container input {
	background-color: white;
	color: black;
	padding: 0 15px;
	border-radius: 15px;
	border: none;
	font-size: 16px;
	font-weight: normal;
	font-family: "Poppins";
	height: 100%;
	width: 100%;
}

.newsletter-input-container {
	width: 100%;
}

.newsletter-btn-container input {
	font-family: "Poppins";
	font-size: 20px;
	font-weight: 500;
	border: none;
	background-color: #D62828;
	color: white;
	padding: 10px 20px;
	border-radius: 15px;
	cursor: pointer;
}

.mc4wp-response {
	color: white;
	font-family: "Poppins";
	font-weight: normal;
	font-size: 18px;
}

/* ------------------------------ Pour la page event -----------------------------------------*/

.single-event-header-container{
	background-color: #162765;
	color:white;
	padding:175px 144px 100px 144px;
	text-align:center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.event-date-bubble{
	background-color: #21BBEF;
	color: white;
	display:inline-block;
	padding:5px 10px;
	border-radius:15px;
	font-weight:medium;
	font-size: 18px;
}

.event-title {
	font-size:48px;
	font-weight: bold;
	margin: 0;
	margin-top: 25px;
}

.line-title{
	width: 100px;
	height: 3px;
	background-color: #21BBEF;
	margin-top: 15px;
}

.single-event-content-container{
	display:flex;
	flex-wrap:wrap;
	background:white;
	gap:40px;
	max-width:1440px;
	margin:0 auto;
	padding: 100px 144px;
}

.event-description-container {
	display: flex;
	flex-direction: column;
	gap: 30px;
	width: 60%;
}

.event-description-title {
	color: #162765;
	font-size: 32px;
	font-weight: 550;
	margin: 0;
}

.event-description-text-container {
	font-size: 20px;
}

.event-practical-infos-container{
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.event-date-container, .event-place-container{
	font-size: 18px
}

.event-date-icon, .event-place-icon {
	width: 20px;
	margin-right: 15px;
	color: #162765;
}

.event-date-title, .event-place-title{
	font-weight: 550;
}

.event-image-container {
	width: 35%;
}

.event-image-container img {
	width: 100%;
	min-width: 300px;
	height: auto;
	border-radius: 15px;
}

/* ------------------------------ Pour les cartes d'evenements à venir -----------------------*/
.upcoming-events-container {
    display: flex;
    flex-direction: column;
	align-items: center;
    gap: 100px;
}

.event-first-card {
	position: relative;
	display: flex;
	flex-direction: row;
	box-shadow: 0 4px 25px rgba(0,0,0,0.25);
	border-radius: 15px;
	max-height: 400px;
	max-width: 1150px;
}

.event-first-card-date {
	position: absolute;
	font-size: 18px;
	font-weight: normal;
	background-color: white;
	padding: 5px 10px;
	border-radius: 15px;
	top: 10px;
	right: 10px;
}

.event-first-card .event-card-content-container {
	width: 50%;
}

.event-first-card-img {
	overflow: hidden;
	max-width: 50%;
	display: flex;
	justify-content: flex-end;
}

.event-first-card-img img {
    height: 100%;
	width: auto;
    object-fit: cover;
	object-position: center;
	border-radius: 0 15px 15px 0;
}

.event-first-card h3 {
    margin: 0;
	font-size: 24px;
	font-weight: 500;
	color: #21BBEF;
}

.upcoming-events-container .event-card {
	box-shadow: 0 4px 25px rgba(0,0,0,0.25);
}

.events-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
	justify-content: center;
}

/* Pagination */
.upcoming-events-pagination {
    margin-top: 2rem;
    text-align: center;
}

.upcoming-events-pagination a {
    margin: 0 5px;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #ccc;
    color: #333;
}

.load-more-btn {
	background-color: transparent;
	color: #21BBEF;
	border: none;
	cursor: pointer;
	font-family: "Poppins";
	font-size: 18px;
	font-weight: normal;
}

.load-more-btn-container {
	display: flex;
	justify-content: center;
	margin-top: 50px;
}

/*-------------------------Pour les cartes d'évènement passés ---------------------------*/
.past-events-container .event-card {
	box-shadow: 0 4px 25px rgba(0,0,0,0.25);
}

.event-past-card-date {
	font-size: 14px;
	font-weight: normal;
    color: rgba(0, 0, 0, 0.5);
}

.event-past-card-date span {
	margin-right: 10px;
}

/*------------------ Pour les 3 cartes sur la page d'accueil ---------------------------*/
.next-3-events-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
	justify-content: center;
}

.event-card {
	width: 350px;
	min-height: 450px;
    background: white;
    display: flex;
    flex-direction: column;
	border-radius: 15px;
}

.event-card-img {
	height: 200px;
	overflow: hidden;
}

.event-card-img img {
    height: auto;
	width: 100%;
    object-fit: cover;
	object-position: center;
	border-radius: 15px 15px 0 0;
}

.event-card-content-container {
	display: flex;
	flex-direction: column;
	padding: 20px;
	gap: 30px;
	justify-content: space-between;
	flex: 1 1;
}

.event-card-infos-container {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.event-card h3 {
    margin: 0;
	font-size: 24px;
	font-weight: 500;
	color: #21BBEF;
}

.event-card-desc {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* limite à 3 lignes */
    -webkit-box-orient: vertical;
	font-size: 18px;
	font-weight: normal;
}

.event-card-venue {
    font-size: 14px;
	font-weight: normal;
    color: rgba(0, 0, 0, 0.5);
}

.event-card-venue span {
	margin-right: 10px;
}

.event-card-date {
	position: absolute;
	font-size: 18px;
	font-weight: normal;
	background-color: white;
	padding: 5px 10px;
	border-radius: 15px;
	margin-top: 10px;
	margin-left: 10px;
}

.event-card-date-day {
	color: #21BBEF;
	font-weight: 600;
}

.event-card-btn {
    padding: 10px 20px;
    text-decoration: none;
    background: #21BBEF;
    color: white;
    border-radius: 30px;
	display: inline-block;
    width: fit-content;
	font-weight: 500;
	font-size: 18px;
}