/*
 Theme Name:   LGPM
 Theme URI:    https://lgpm.org/
 Description:  Thème LGPM based on theme TwentyTwenty
 Author:       KNL
 Author URI:   https://biyotee.com/
 Template:     twentytwentyfive
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         parade
 Text Domain:  lgpm
*/

/* Text should be white on gradient, black elsewhise */
body[class^="gradient-"],
body[class*=" gradient-"],
body.default-grd {
	color: #fdfeff;
}

body.default-grd:not([class*="gradient-"]) {
	background-image: linear-gradient(180deg, #e83173 0%, #f464ba 30%, #6370ff 40%, #6370ff 100%);
}

/* Header - navigation component */
.wp-block-navigation__container {
	text-transform: uppercase;
	font-family: "konnectregular";
}

/* Header : socials icons */
li[class^="social-"],
li[class*=" social-"] {
	list-style: none;
	text-transform: uppercase;
	font-size: 12px;
	line-height: 0.75;
}

li[class^="social-"] a,
li[class*=" social-"] a {
	text-decoration: none;
}

li[class^="social-"] a:hover,
li[class*=" social-"] a:hover {
	color: #dadada;
}

li[class^="social-"]:after,
li[class*=" social-"]:after {
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	margin-left: 5px;
}

li.social-facebook:after {
	content: "\f082";
}

li.social-youtube:after {
	content: "\f167";
}

li.social-instagram:after {
	content: "\f16d";
}

li.social-website:after {
	content: "\f0ac";
}

@media (min-width: 768px) {
	/* Prevent default full-screen overlay */
	.hamburger-menu .wp-block-navigation__responsive-container.has-modal-open {
		position: static !important;
		align-items: flex-start !important;
		justify-content: flex-end !important;
		display: flex !important;
		width: auto !important;
		height: auto !important;
		overflow: visible !important;
	}

	.wp-block-navigation__responsive-container.is-menu-open {
		background: transparent !important;
	}

	/* Remove white screen overlay */
	.hamburger-menu .wp-block-navigation__responsive-container.has-modal-open::before {
		display: none !important;
	}

	/* Style the floating panel menu */
	.hamburger-menu .wp-block-navigation__responsive-container-content {
		position: fixed !important;
		top: 0px; /* adjust depending on header height */
		right: 30px;
		width: 300px;
		max-height: 600px;
		color: #fdfeff;
		background-color: #2b2b2b;
		border-radius: 10px;
		box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
		padding: 3.5rem 2rem 2rem 2rem; /* Extra top padding to make room for close button */
		z-index: 10000;
		overflow-y: auto;
		display: block !important;
	}

	/* Prevent invisible default style from hiding the menu */
	.hamburger-menu .wp-block-navigation__responsive-container-content[aria-hidden="true"] {
		display: none !important;
	}

	.hamburger-menu .wp-block-navigation__responsive-container-close {
		position: fixed !important;
		top: 35px; /* Match the menu panel's top (80px) + margin */
		right: 50px; /* Align just inside the panel (same as panel right + internal padding) */
		z-index: 10001;
		background: none;
		color: #fdfeff;
		border: none;
		font-size: 1.5rem;
		line-height: 1;
		cursor: pointer;
	}
}

.wp-block-navigation__responsive-container.hidden-by-default.has-modal-open.is-menu-open,
.mobile-menu .wp-block-navigation__responsive-container-content {
	background-color: #2b2b2b;
	color: #fdfeff;
}

.mobile-menu .wp-block-navigation__responsive-container-close {
	color: #fdfeff;
}
.mobile-menu li.separator a::before,
.hamburger-menu li.separator a::before {
	content: "";
	display: block;
	height: 1px;
	background-color: #ccc;
	margin-bottom: 8px; /* spacing between line and text */
	margin-left: -15px;
	margin-right: -15px;
}

/* Position is absolute so that it can be above */
header.wp-block-template-part .header-home {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
}

@media (min-width: 768px) {
	/* Hide mobile menu on desktop */
	.mobile-menu {
		display: none !important;
	}

	.desktop-hidden {
		display: none! important;
	}
}

/* Responsive styles */
@media (max-width: 768px) {
	/* Hide desktop navs */
	.menu-columns {
		display: none !important;
	}

	.mobile-hidden {
		display: none! important;
	}
}

/* Base hamburger styles (optional customization) */
.wp-block-navigation__responsive-container-open {
	transition: transform 0.3s ease;
}

/* Rotate slightly on hover */
.wp-block-navigation__responsive-container-open:hover {
	transform: rotate(90deg);
}
/* END HEADER */

/* FOOTER */
li[class^="footer-"] a,
li[class*="footer-"] a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding-top: 0;
	text-decoration: none;
	position: relative;
}

li[class*=" footer-"] a span,
li[class^="footer-"] a span {
	display: none;
}

li[class*=" footer-"] a::before,
li[class^="footer-"] a::before {
	content: "";
	display: block;
	width: 80px;
	height: 56px;
	margin-bottom: 5px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

li.footer-contact a::before {
	background-image: url("https://lgpm.org/wp-content/uploads/icons/PictoContact.png");
}

li.footer-news a::before {
	background-image: url("https://lgpm.org/wp-content/uploads/icons/Picto-News.png");
}

li.footer-subscribe a::before {
	background-image: url("https://lgpm.org/wp-content/uploads/icons/Picto-j_adhere.png");
}

li.footer-participate a::before {
	background-image: url("https://lgpm.org/wp-content/uploads/icons/Picto-je-participe.png");
}

/* Overlay using ::after (initially transparent) */
li[class*=" footer-"] a::after,
li[class^="footer-"] a::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 56px;
	background-color: rgba(0, 0, 0, 0.3); /* dark overlay */
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none; /* allow clicks through */
	border-radius: 12px;
}

/* On hover, show overlay */
li[class*=" footer-"] a:hover::after,
li[class^="footer-"] a:hover::after {
	opacity: 1;
}

footer .wp-block-navigation__container {
	border: 2px solid white;
	max-width: 500px;
	padding: 12px;
	border-radius: 12px;
}

/* Partners */
.lgpm-partners figure {
	height: 35px;
}

/* END FOOTER */

/* Home LGPM section with image + gradient background */
/* DESKTOP */

.home-banner {
	min-height: 75vh;
}

/* Home page card style */

.home-card div a {
	border: 2px solid #fff;
	border-radius: 0.5em;
	padding: 8px 32px;
	color: #fff;
	cursor: pointer;
	background: transparent;
	transition:
		background 0.2s,
		color 0.2s;
}

.home-card div a:hover {
	color: #dedede;
}

@media screen and (min-width: 768px) {
	p.banner-credit {
		position: absolute;
		top: 10vh;
		text-orientation: sideways-right;
		writing-mode: vertical-lr;
		font-size: smaller;
		rotate: 180deg;
	}
}
@media screen and (max-width: 768px) {
	p.banner-credit {
		position: absolute;
		top: 0px;
		text-orientation: sideways-right;
		writing-mode: vertical-lr;
		font-size: smaller;
		rotate: 180deg;
	}
}

/* Home gallery page */
.wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: fit-content;
}

/* Participate btn */
.btn-participate {
	font-family: "konnectbold";
	text-transform: uppercase;
	background-image: url("assets/img/btn_participate_off.png");
	background-size: 217px 273px;
	min-width: 273px;
	height: 315px;
	background-position: bottom center;
	background-repeat: no-repeat;
	border: none;
	cursor: pointer;
}

.btn-participate a {
	display: flex;
	justify-content: center;
}

.btn-participe a:hover,
.btn-participate a {
	background-color: transparent;
}

.btn-participate:hover {
	background-image: url("assets/img/btn_participate_on.png");
}

@media (min-width: 768px) {
	p.three-columns {
		column-count: 3;
		column-gap: 48px;
	}

	p.two-columns {
		column-count: 2;
		column-gap: 48px;
	}
}

.round-title {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 12px;
	min-width: 64px;
	min-height: 64px;
}

.round-title-big {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 12px;
	min-width: 92px;
	min-height: 92px;
	border-radius: 50% !important;
}

div.Widget--Footer {
	display: none;
}

/* Prevent spacer blocks from causing horizontal overflow */
/* Because of <div class="wp-block-spacer" style="height:25px;width:452px"> */
.wp-block-spacer {
	width: 100% !important;
	max-width: 100%;
	display: block;
	box-sizing: border-box;
}

/** ARTICLES LIST **/
.wp-block-latest-posts.columns-3 li {
	width: 100% !important;
}
/* Style individual post item */

.wp-block-latest-posts__list li {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
	padding: 2rem 0;
	border-bottom: 1px solid #eee;
	flex-wrap: wrap; /* fallback for smaller screens */
}

/* Text content (title + excerpt) */
li .wp-block-latest-posts__post-title,
li .wp-block-latest-posts__post-full-content {
	flex: 1 1 50%;
	max-width: 60%;
}

/* Image block */
li .wp-block-latest-posts__featured-image {
	flex: 0 0 35%;
	max-width: 35%;
}

/* Optional: Image styles */
li .wp-block-latest-posts__featured-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 6px;
}

/* Responsive stacking for mobile */
@media (max-width: 768px) {
	.wp-block-latest-posts__list li {
		flex-direction: column;
	}

	li .wp-block-post-title,
	li .wp-block-post-excerpt,
	li .wp-block-post-featured-image {
		max-width: 100%;
		flex: 1 1 100%;
	}
}

/** END ARTICLES LIST **/

/* Match Mailchimp form to comment form style */
.mailchimp-form {
	max-width: 600px;
	color: #fff;
	font-family: inherit;
}

.mailchimp-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	font-family: "konnectbold";
}

.mailchimp-form input[type="email"],
.mailchimp-form input[type="text"],
.mailchimp-form input[type="checkbox"],
.mailchimp-form select,
.mailchimp-form textarea {
	width: 100%;
	padding: 0.5rem;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	box-sizing: border-box;
}

.mailchimp-form input[type="checkbox"] {
	width: auto;
	margin-right: 0.5rem;
	vertical-align: middle;
}

.mailchimp-form input[type="submit"] {
	background-color: #222;
	color: white;
	padding: 0.5rem 1rem;
	font-size: 1.1rem;
	border: none;
	border-radius: 40px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.mailchimp-form input[type="submit"]:hover {
	background-color: #444;
}

.mailchimp small {
	font-size: small;
}

.mc4wp-response p {
	font-family: "konnectbold";
}

.mc4wp-response p:before {
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	margin-left: 5px;
	content: "\f72b";
}

/* Style for four-images navigation */
.sub-navigation a:hover img {
	filter: invert(1) sepia(1) saturate(5) hue-rotate(60deg);
}


/* Checkbox style (default styling) */
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 5px auto;
  display: block;
}

.participation-card {
	border: solid 2px white;
	padding: 12px;    
	background: linear-gradient(to bottom, #ffffff00 40%, #ffffffa5 40%);
}

.participation-card.score-2 {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.6) 40%,
    rgba(255, 255, 255, 0.6) 80%,
    #F22440 80%,
    #F22440 100%
  );
}

.participation-card.score-4 {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.6) 40%,
    rgba(255, 255, 255, 0.6) 70%,
    #E65555 70%,
    #E65555 100%
  );
} 

.participation-card.score-6 {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.6) 40%,
    rgba(255, 255, 255, 0.6) 60%,
    #d86f32 60%,
    #d86f32 100%
  );
}

.participation-card.score-8 {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.6) 40%,
    rgba(255, 255, 255, 0.6) 50%,
    #85D362 50%,
    #85D362 100%
  );
}

.participation-card.score-10 {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    #00F4B0 40%,
    #00F4B0 100%
  );
}