/*
Theme Name: OPEJF
Description: Theme enfant de Twentytwentyfive. Vous pouvez maintenant effectuer vos modifications en toute sécurité.
Author: WPMarmite
Author URI: https://wpmarmite.com
Template: twentytwentyfive
Version: 1.0
*/

h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p, a, ol, li, ul, span, time, strong {
	font-family: "filson-pro", sans-serif;
}

h1, h2, h3 {
	font-weight: 500;
    font-style: normal;
}

h4, h5, h6, blockquote, caption, figcaption, p, time {
	font-weight: 300;
	font-style: normal;
}

.white {
	color: white;
}

strong {
	font-weight: 500; 
}


/*-----------------------------------------------*/
/* Event Card */
.event_clickable {
    display: flex;
    justify-content: center;
}


/* Conteneur interne qui garde l'affichage correct */
.evenements-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permet de gérer plusieurs lignes */
}

.evenements-wrapper .event_clickable:nth-child(even) .events_container {
    flex-direction: row-reverse;
}

.events_container {
    display: flex;
    align-items: center;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid white;
    position: relative;
    overflow: hidden;
	width: 1000px;
	box-sizing: border-box;
}

.no-event-message {
	color: white;
}

/* pour la page agenda */
.events_container.red {
    color: #8C1A3B;
    padding: 20px;
    border: 2px solid #8C1A3B;
}

/* Effet hover */
.events_container:hover {
    transform: scale(1.03);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Infos de l'événement */
.events_infos-wrapper {
    display: flex;
    flex-direction: column;
    padding: 10px;
    width: 100%;
}

.events_infos {
    display: flex;
    flex-direction: column;
}

.events_infos h3 {
	font-size: 1.5em;
}

/* pour la page agenda */
.events_container.red .title h3{
    color: #8C1A3B;
}

/* Supprimer la puce */
ul.event-categories li {
    list-style: none;
    margin-left: -40px !important;
    padding: 0 !important;
	pointer-events: none;
    cursor: default;
    text-decoration: none;
    color: white;
	margin-top: -40px;
}

/* pour la page agenda */
.events_container.red .event-categories li{
    color: #8C1A3B;
}

/* Dates */
.dates {
    font-size: 1em;
}

.dates span {
    display: block;
    font-weight: 500;
    font-style: normal;
}


.dates i {
    margin-right: 5px;
}

/* Texte descriptif */
.text {
    font-size: 1em;
    margin-top: 10px;
    color: white;
}

/* pour la page agenda */
.events_container.red .text{
    color: #8C1A3B;
}

/* Améliorer l'effet au survol */
.events_container:hover .text {
    opacity: 1;
}

/* Image */
.events_row .image {
    flex: 0 0 250px;
    max-width: 250px;
    margin-left: 20px;;
    overflow: hidden;
    margin-right: 25px;
	margin-bottom: 0 !important; 
}

.events_row .image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
}

/* Empêcher le surlignage accidentel du texte */
.events_container *,
.events_container *::before,
.events_container *::after {
    user-select: none;
}

/* 🔹 RESPONSIVE DESIGN (seulement pour tablette et mobile) 🔹 */
@media screen and (max-width: 1024px) {
    .events_container {
        flex-direction: column; /* Passe en colonne sur mobile et tablette */
		text-align: left
    }

    /* Désactivation du row-reverse sur mobile/tablette pour éviter un affichage inversé */
    .evenements-wrapper .event_clickable:nth-child(even) .events_container {
        flex-direction: column;
    }

    /* Image centrée */
    .events_row .image {
        margin: 15px auto;
    }

    .events_row .image img {
        border-radius: 50%;
    }
}

/* 📱 Mobiles (-768px) */
@media screen and (max-width: 768px) {
    .events_container {
    width: 100% !important;            /* Largeur réduite sur mobile */
    margin: 20px auto;     /* Recentré proprement */
    flex-direction: column;
    padding: 15px;
  }

	.events_container.one {
		width: 90% !important;
	}
	
	.event_clickable {
    display: block;
  }

    .events_row .image {
        max-width: 50%;
        margin: 15px 0 0 0;
		flex: 0 0 150px;
    }

    .events_row .image img {
        width: 140px;
		height: 140px;
		border-radius: 50%;
    }

    .events_infos h3 {
        font-size: 1.3em;
    }

    .dates {
        font-size: 0.9em;
    }

    .text {
        font-size: 0.9em;
    }
}
/*-----------------------------------------------*/

/*-----------------------------------------------*/
/* Affichage des articles */
/* Style du conteneur des articles (cliquable entièrement) */
.wp-block-post {
    border: 2px solid #800020; /* Bordure avec la couleur principale */
    border-radius: 10px;
    padding: 20px;
	padding-top: 30px;
    background: #fff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    position: relative;
    text-align: left;
}

.wp-block-post:hover {
    transform: scale(1.02);
}

.actualites-cards {
	cursor: pointer; 
}

/* Rendre toute la carte cliquable */
.wp-block-post a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Image mise en avant (ronde et centrée) */
.wp-block-post-featured-image {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.wp-block-post-featured-image img {
    width: 150px; /* Augmentée */
    height: 150px;
    object-fit: cover;
    border-radius: 50%; /* Rend l’image ronde */
}

/* Style de la catégorie (sous l'image et dans la couleur de la bordure) */
.taxonomy-category {
    font-size: 0.9em;
    font-weight: 600;
    color: #800020; /* Même couleur que la bordure */
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: left;
}

.posts-grid .taxonomy-category {
	text-align: center;
}

.taxonomy-category a {
    text-decoration: none;
    color: inherit;
    pointer-events: none; /* Empêche le clic direct sur la catégorie */
	margin-top: 10px; 
}

/* Style du titre */
.wp-block-post-title {
    font-size: 1.2em;
    margin-top: 5px;
    font-weight: bold;
}

.wp-block-post-title a {
    text-decoration: none;
    color: #800020; /* Même couleur que la bordure */
    position: relative;
    z-index: 2;
}

.posts-grid .wp-block-post-date time{
	color: #800020;
}

/* Alignement à gauche du contenu (sauf image et catégorie qui restent centrées) */
.wp-block-group {
    text-align: left;
}

/* Supprimer les marges automatiques des éléments flexibles */
.wp-block-query ul {
    padding: 0;
}

.wp-block-post {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/*-----------------------------------------------*/

/*-----------------------------------------------*/
/*banniere single post */

.single-post-banner {
    max-width: 900px; /* Ajuste selon tes besoins */
    margin: 0 auto; /* Centre le bloc */
}

.banner-single-post .wp-block-post-featured-image img {
    border-radius: 50%; /* Image en cercle */
}

.taxonomy-category {
	text-align: none !important;
}

/* 📱 Mobiles (-768px) */
@media screen and (max-width: 768px) {
	.taxonomy-category {
		margin-top : 30px !important; 
	}
}

/*-----------------------------------------------*/

/*-----------------------------------------------*/
/*single event */

.location-info span.location-full {
    display: inline-block;
    margin-left: 1.2em; /* Ajustez cette valeur selon la taille réelle de l'icône */
    vertical-align: middle; /* Pour assurer un alignement vertical cohérent */
	margin-top: -60px;
  }
  .location-info span {
    vertical-align: middle;
  }

/* 📱 Mobiles (-768px) */
@media screen and (max-width: 768px) {
	.thumbnail-event {
		margin-bottom : 60px !important; 
	}
}


/*-----------------------------------------------*/

/*-----------------------------------------------*/
/*boutons */
/*button * wizz effect */
.wp-block-button__link {
	transition: all .3s !important;
	position: relative !important;
	overflow: hidden !important;
	z-index: 1 !important;
}
.wp-block-button__link:after {
	content: '' !important;
		position: absolute !important;
		bottom: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100% !important;
		z-index: -2 !important;
}

.wp-block-button__link:before {
	content: '' !important;
		position: absolute !important;
		bottom: 0 !important;
		left: 0 !important;
		width: 0% !important;
		height: 100% !important;
		background-color: #8C1837 !important;
		transition: all .3s !important;
		z-index: -1 !important;
}

.wp-block-button__link:hover:before {
	width: 100% !important;
}

.wp-block-button__link:hover {
	color: white !important;
}
/*-----------------------------------------------*/

/*-----------------------------------------------*/
/* Newsletter */
/* Style général du formulaire */
#mailpro {
    width: 100%;
    max-width: 450px; /* Taille de la carte */
    margin: 50px auto; /* Centre la carte sur la page */
    padding: 30px;
    background: #f9f9f9; /* Fond clair */
    border-radius: 15px; /* Bords arrondis */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombre douce */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alignement des éléments à gauche */
}

/* Style du champ email */
#awEmail {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 2px solid #8D0A31; /* Bordure bordeaux */
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

#awEmail:focus {
    border-color: #700A20; /* Bordure plus foncée au focus */
    box-shadow: 0 0 8px rgba(144, 13, 41, 0.5);
}

/* Style du label */
label[for="awEmail"] {
    font-weight: bold;
    color: #8D0A31;
    font-size: 18px;
    margin-bottom: 5px;
    display: block;
}

/* Style du bouton Valider */
#btnSubmit {
    background-color: #8D0A31;
    color: white;
    font-size: 16px;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    margin-top: 15px;
}

#btnSubmit:hover {
    background-color: #700A20;
}

/* Ajustement du CAPTCHA */
.g-recaptcha {
    margin: 15px 0;
    display: block;
}

/* Centrage du logo Mailpro */
img[src*="mailpro"] {
    display: block;
    max-width: 150px;
	margin-top: 15px;
}
/*-----------------------------------------------*/

/*-----------------------------------------------*/
/* Footer */
.logo-footer {
	max-width: 150px !important;
}

.title-footer {
	margin-bottom: -20px;
}
/*-----------------------------------------------*/

/*-----------------------------------------------*/
/* Responsive */
@media (max-width: 768px) {
  .stack-on-mobile {
    flex-direction: column !important;
    align-items: center;
  }
	.stack-on-mobile h1 {
    margin-top: 25px !important;
  }
}

body {
  margin: 0;
  padding: 0;
}

.evenements-wrapper,
.event_clickable,
.events_row {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

