/* ==========================================================================
   Ouest Avenue – Conseillers : mise en page de la fiche conseiller
   Reprend le rendu de l'ancienne surcharge du thème enfant (avril 2025).
   Couleur de marque : #CC0000.
   ========================================================================== */

.oa-agent {
	--oa-red: #cc0000;
	--oa-text: #222;
	--oa-muted: #555;
	--oa-card-bg: #fff;
	--oa-radius: 6px;
	--oa-photo: 270px;
	padding-bottom: 50px;
}

/* 1. Bandeau de couverture ------------------------------------------------ */
.oa-agent-hero {
	position: relative;
	height: 300px;
	background-color: #d9d9d9;
	background-image: linear-gradient(135deg, #e9e9e9 0%, #cfcfcf 100%);
	background-size: cover;
	background-position: center;
}
.oa-agent-hero__inner {
	position: relative;
	height: 100%;
}

/* 2. Photo en débord ------------------------------------------------------ */
.oa-agent-photo {
	position: absolute;
	left: 15px;
	top: 25px;
	width: var(--oa-photo);
	z-index: 2;
}
.oa-agent-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 270 / 365;
	object-fit: cover;
	border: 4px solid #fff;
	border-radius: var(--oa-radius);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	background: #fff;
}

/* 3. Nom et note --------------------------------------------------------- */
.oa-agent-head {
	min-height: 115px;
	padding: 16px 0 0 calc(var(--oa-photo) + 70px);
	margin-bottom: 0;
}
.oa-agent-name {
	margin: 0 0 6px;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--oa-text);
}
.oa-agent-rating .rating-score-wrap {
	font-size: 13px;
}
.oa-agent-rating .all-reviews {
	margin-left: 6px;
}

/* 4. Colonnes ------------------------------------------------------------ */
.oa-agent-columns {
	--bs-gutter-x: 32px;
	row-gap: 32px;
	margin-bottom: 40px;
}
@media (min-width: 992px) {
	/* Proportions de l'ancienne fiche : biographie 64 %, coordonnées 36 %. */
	.oa-agent-columns > .col-lg-8 {
		flex: 0 0 64%;
		max-width: 64%;
	}
	.oa-agent-columns > .col-lg-4 {
		flex: 0 0 36%;
		max-width: 36%;
	}
}
.oa-card {
	background: var(--oa-card-bg);
	border-radius: var(--oa-radius);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
	padding: 32px;
	height: 100%;
}
.oa-agent-bio {
	font-size: 16px;
	line-height: 24px;
	color: var(--oa-text);
}
.oa-agent-bio > :last-child {
	margin-bottom: 0;
}

.oa-agent-contact p {
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--oa-muted);
}
.oa-agent-contact .oa-agent-position {
	font-size: 16px;
	font-weight: 700;
	color: var(--oa-text);
}
.oa-agent-contact .oa-agent-phone strong {
	color: var(--oa-text);
}
.oa-agent-contact .oa-agent-phone a {
	color: var(--oa-text);
	font-weight: 600;
	white-space: nowrap;
}
.oa-agent-social {
	margin: 18px 0 22px;
}
.oa-agent-social__title {
	font-weight: 700;
	color: var(--oa-text) !important;
	margin-bottom: 8px !important;
}
.oa-agent-social a {
	color: var(--oa-red);
	margin-right: 10px;
}

/* 5. Boutons ------------------------------------------------------------- */
.oa-agent-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.oa-btn {
	flex: 0 0 150px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	font-size: 16px;
	font-weight: 500;
	border-radius: 4px;
	border: 1px solid var(--oa-red);
	cursor: pointer;
	text-decoration: none !important;
	transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}
.oa-btn--primary {
	background: var(--oa-red);
	color: #fff !important;
}
.oa-btn--primary:hover {
	opacity: 0.9;
}
.oa-btn--outline {
	background: transparent;
	color: var(--oa-red) !important;
}
.oa-btn--outline:hover {
	background: var(--oa-red);
	color: #fff !important;
}

/* 6. Onglets ------------------------------------------------------------- */
.oa-agent-tabs {
	margin-bottom: 20px;
}
.oa-agent-tabs .nav-link {
	border: 1px solid #000;
	border-radius: 4px;
	background: transparent;
	color: #000;
	font-weight: 500;
}
.oa-agent-tabs .nav-link.active,
.oa-agent-tabs .nav-link:hover {
	background-color: #000;
	color: #fff;
}

/* 7. Mobile -------------------------------------------------------------- */
@media (max-width: 767px) {
	/* Comme la fiche actuelle : photo à gauche, entièrement dans le bandeau. */
	.oa-agent {
		--oa-photo: 150px;
	}
	.oa-agent-hero {
		height: 258px;
	}
	.oa-agent-photo {
		left: 12px;
		top: 45px;
	}
	.oa-agent-head {
		min-height: 0;
		padding: 20px 0 20px;
		text-align: center;
	}
	.oa-agent-name {
		font-size: 26px;
	}
	.oa-agent-rating {
		display: flex;
		justify-content: center;
	}
	.oa-card {
		padding: 24px 20px;
	}
	.oa-btn {
		flex: 1 1 130px;
	}
}
