/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Thème enfant pour Astra
Author: Ton nom
Author URI: https://tonsite.com/
Template: astra
Version: 1.0.7
*/

/* Navigation : libellés en majuscules */
.main-header-menu .menu-link,
.main-header-menu .menu-item,
#ast-hf-menu-1 .menu-link,
#ast-hf-mobile-menu .menu-link,
.ast-mobile-popup-content .menu-link,
.ast-desktop-header-content .menu-link {
	text-transform: uppercase;
}

/* Logo Profile Investment */
.site-branding .site-logo-img .custom-logo {
	width: auto;
	height: 24px;
	max-width: min(380px, 100%);
	display: block;
}

@media (max-width: 544px) {
	.site-branding .site-logo-img .custom-logo {
		height: 20px;
		max-width: 260px;
	}
}

/* Bouton burger — visible uniquement sur la page d'accueil */
#show-hidden-menu {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99999;
	width: 64px;
	height: 64px;
	margin: 0;
	padding: 0;
	border: none;
	background: #1e7ec2;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	-webkit-tap-highlight-color: transparent;
}

body.home #show-hidden-menu {
	display: flex;
}

/* Menu principal masqué par défaut sur la page d'accueil */
body.home #masthead.site-header {
	display: none;
}

/* Icône burger (3 barres → croix à l'ouverture) */
.burger-icon {
	display: block;
	width: 26px;
	height: 18px;
	position: relative;
}

.burger-line {
	display: block;
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: #fff;
	border-radius: 1px;
	transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.burger-line:nth-child(1) {
	top: 0;
}

.burger-line:nth-child(2) {
	top: 8px;
}

.burger-line:nth-child(3) {
	top: 16px;
}

#show-hidden-menu.is-open .burger-line:nth-child(1) {
	top: 8px;
	transform: rotate(45deg);
}

#show-hidden-menu.is-open .burger-line:nth-child(2) {
	opacity: 0;
}

#show-hidden-menu.is-open .burger-line:nth-child(3) {
	top: 8px;
	transform: rotate(-45deg);
}

/*
 * Page d'accueil (mobile) : menu desktop (ast-hf-menu-1), pas le menu off-canvas Astra.
 */
@media (max-width: 921px) {
	body.home #ast-mobile-header {
		display: none !important;
	}

	body.home #ast-desktop-header {
		display: block !important;
	}

	body.home #ast-desktop-header .ast-builder-menu-1 {
		display: flex !important;
	}

	body.home #ast-desktop-header .site-primary-header-wrap .ast-builder-grid-row {
		flex-wrap: wrap;
	}

	body.home #ast-desktop-header .site-header-primary-section-left,
	body.home #ast-desktop-header .site-header-primary-section-right {
		width: 100%;
		justify-content: center;
	}

	body.home #ast-hf-menu-1.main-header-menu {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	body.home #ast-hf-menu-1.main-header-menu > .menu-item {
		width: 100%;
		text-align: center;
	}

	body.home #ast-hf-menu-1.main-header-menu > .menu-item > .menu-link {
		padding: 0.85em 1em;
	}

	body.home #ast-hf-menu-1 .sub-menu {
		position: static;
		width: 100%;
		box-shadow: none;
		border: 0;
	}

	/* Panneau plein écran sous le bouton burger */
	body.home.home-menu-open #masthead.site-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 99998;
		width: 100%;
		max-height: 100vh;
		overflow-x: hidden;
		overflow-y: auto;
		background: #fff;
		padding-top: 64px;
		-webkit-overflow-scrolling: touch;
	}

	body.home.home-menu-open {
		overflow: hidden;
	}
}

/* Tablette : menu Astra visible en permanence, pas de burger custom */
@media (min-width: 768px) and (max-width: 1024px) {
	body.home #show-hidden-menu {
		display: none;
	}

	body.home #masthead.site-header {
		display: block;
	}
}

/*
 * Page Our Team — cartes membres (Essential Addons / Elementor).
 */
.team-member .eael-team-image figure {
	height: 250px;
	overflow: hidden;
}

.team-member .eael-team-image figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-member .eael-team-content h2.eael-team-member-name,
.team-member .eael-team-content h3.eael-team-member-name {
	height: 40px;
	margin: 0;
}

.team-member .eael-team-content h3.eael-team-member-position,
.team-member .eael-team-content h4.eael-team-member-position {
	height: 45px;
	margin: 0 !important;
}

.bio-list h3.eael-team-member-position,
.bio-list h4.eael-team-member-position {
	padding: 0;
	margin: 0 !important;
}

.bio-list h6 {
	padding: 0;
	margin: 0 0 0.25em;
	text-transform: uppercase;
	color: #228bc9;
	font-family: 'Adamina', serif;
}

.bio-list .eael-team-text {
	color: #6f7f8e;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	line-height: 1.35;
	margin: 0;
}

.bio-list .eael-team-text p:empty {
	display: none;
	margin: 0;
	padding: 0;
}

.bio-list span {
	white-space: nowrap;
}

.bio-list .eael-team-image .eael-team-text {
	display: none;
}

.bio-list .eael-team-member-name {
	margin-bottom: 0.15em;
}

.bio-list .eael-team-member-position {
	margin-bottom: 0.35em !important;
}

.bio-list .eael-team-content {
	padding-top: 8px;
	padding-bottom: 8px;
}

.btn-bio {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 5px 0;
	margin-top: 0.5em;
	border-top: 1px solid #228bc9;
	border-bottom: 1px solid #228bc9;
	color: #228bc9;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.btn-bio:hover {
	color: #333;
}

.btn-bio .elementor-button-icon,
.btn-bio i {
	float: none;
	margin: 0;
}

.btn-bio:hover .elementor-button-icon,
.btn-bio:hover i {
	transition: transform 0.3s ease;
}

.team-member .eael-team-content a span {
	display: inline;
	height: auto;
}

@media (max-width: 921px) {
	.team-member .eael-team-content h2.eael-team-member-name,
	.team-member .eael-team-content h3.eael-team-member-name {
		height: 43px;
	}

	.bio-list span {
		white-space: nowrap;
	}
}

@media (max-width: 544px) {
	.team-member .eael-team-content h2.eael-team-member-name,
	.team-member .eael-team-content h3.eael-team-member-name {
		height: auto;
	}

	.team-member .eael-team-content h3.eael-team-member-position,
	.team-member .eael-team-content h4.eael-team-member-position {
		height: auto;
	}
}
