/**
 * MyDodoLife Experts — shortcode styles.
 */

.mdl-experts {
	--mdl-expert-text: #31616e;
	--mdl-expert-card-bg: #f0f0f0;
	--mdl-expert-accent: #fecb0a;
	width: 100%;
	max-width: 100%;
	color: var(--mdl-expert-text);
	font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mdl-experts__grid {
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.5rem);
	align-items: start;
}

.mdl-experts--grid .mdl-experts__grid {
	column-gap: clamp(1.25rem, 3vw, 2.25rem);
	row-gap: clamp(1.5rem, 3.5vw, 2.75rem);
}

.mdl-experts__grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mdl-experts__grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mdl-expert {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 0;
}

.mdl-expert--card {
	background: var(--mdl-expert-card-bg);
	border-radius: 16px;
	padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.75rem);
	height: 100%;
	box-sizing: border-box;
}

.mdl-expert__photo {
	width: clamp(7.5rem, 12vw, 9.5rem);
	height: clamp(7.5rem, 12vw, 9.5rem);
	margin: 0;
	border-radius: 50%;
	overflow: hidden;
	background: #d9e2e5;
	flex-shrink: 0;
}

.mdl-expert__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mdl-expert__name {
	margin: 1.75rem 0 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
}

.mdl-expert__roles {
	margin: 0.35rem 0 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.35;
	color: inherit;
}

.mdl-expert--card .mdl-expert__roles {
	font-weight: 700;
}

.mdl-expert__description {
	margin: 1.35rem 0 0;
	font-size: inherit;
	font-weight: 400;
	line-height: 1.55;
	color: inherit;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	min-width: 0;
}

.mdl-expert__description-body {
	position: relative;
	max-height: 9.3em; /* ~6 lines */
	overflow: hidden;
}

.mdl-expert__description.is-expanded .mdl-expert__description-body {
	max-height: none;
	overflow: visible;
}

.mdl-expert__description.is-clamped .mdl-expert__description-body::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2.4em;
	pointer-events: none;
	background: linear-gradient(to bottom, rgb(240 240 240 / 0%), var(--mdl-expert-card-bg));
}

.mdl-expert__description.is-expanded.is-clamped .mdl-expert__description-body::after {
	display: none;
}

.mdl-expert__description p {
	margin: 0 0 0.75rem;
}

.mdl-expert__description p:last-child {
	margin-bottom: 0;
}

.mdl-expert__description-toggle {
	align-self: center;
	margin-top: 0.65rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--mdl-expert-text);
	font: inherit;
	font-size: 0.95em;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	cursor: pointer;
}

.mdl-expert__description-toggle:hover,
.mdl-expert__description-toggle:focus-visible {
	color: #254d58;
}

.mdl-expert__description-toggle:focus-visible {
	outline: 2px solid var(--mdl-expert-accent);
	outline-offset: 3px;
}

.mdl-expert__description-toggle[hidden] {
	display: none !important;
}

/* Live Elementor `button_blue` wrapper — centered in card */
.mdl-expert-cta {
	display: flex;
	justify-content: center;
	align-self: center;
	margin-top: 1.5rem;
	width: 100%;
	cursor: pointer;
}

.mdl-expert-cta a {
	text-decoration: none;
}

/* Fallback if Elementor component cannot render */
.mdl-expert-button--fallback {
	position: relative;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: auto;
	column-gap: 24px;
	margin-top: 1.5rem;
	padding: 6px 15px;
	border: 0;
	border-radius: 10px;
	background-color: var(--Bleu_sombre, #31616e);
	color: #ffffff;
	text-decoration: none;
	font-family: inherit;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.2;
	cursor: pointer;
	transition: filter 0.2s ease;
}

.mdl-expert-button--fallback:hover,
.mdl-expert-button--fallback:focus-visible {
	filter: brightness(1.06);
	color: #ffffff;
}

.mdl-expert-button--fallback .mdl-expert-button__text {
	display: flex;
	align-items: center;
	justify-content: center;
}

.mdl-expert-button--fallback .mdl-expert-button__icon {
	display: block;
	width: 25px;
	height: auto;
	max-width: 25px;
	flex-shrink: 0;
}

@media (max-width: 767px) {
	.mdl-expert-button--fallback .mdl-expert-button__icon {
		display: none;
	}
}

/* Expert contact popup — shared profile and embedded Odoo form. */
.mdl-expert-modal-open { overflow: hidden; }
.mdl-expert-modal {
 --mdl-expert-modal-bg: #31616e;
 --mdl-expert-modal-yellow: #fecb0a;
 --mdl-expert-modal-text: #31616e;
 position: fixed; inset: 0; z-index: 100000;
 display: flex; align-items: center; justify-content: center;
 padding: 24px; box-sizing: border-box;
 font-family: 'Montserrat', system-ui, sans-serif;
}
.mdl-expert-modal *, .mdl-expert-modal *::before, .mdl-expert-modal *::after { box-sizing: border-box; }
.mdl-expert-modal[hidden] { display: none !important; }
.mdl-expert-modal__backdrop {
 position: absolute; inset: 0; width: 100%; height: 100%;
 background: rgba(13, 39, 47, .64); backdrop-filter: blur(6px);
 border: 0; border-radius: 0; padding: 0; cursor: pointer;
 opacity: 0;
 transition: opacity .22s ease;
}
.mdl-expert-modal__dialog {
 position: relative; z-index: 1; width: min(100%, 1040px);
 max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain;
 border-radius: 24px; background: #fff; color: var(--mdl-expert-modal-text);
 box-shadow: 0 32px 100px rgba(13, 39, 47, .3);
 opacity: 0;
 transform: translateY(14px) scale(.985);
 transition: opacity .28s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}
.mdl-expert-modal.is-open .mdl-expert-modal__backdrop { opacity: 1; }
.mdl-expert-modal.is-open .mdl-expert-modal__dialog {
 opacity: 1;
 transform: translateY(0) scale(1);
}
.mdl-expert-modal__layout { display: grid; grid-template-columns: 36% minmax(0, 1fr); }
.mdl-expert-modal__left {
 position: relative; display: flex; flex-direction: column;
 padding: 96px 36px 44px; overflow: hidden;
 background: var(--mdl-expert-modal-bg); color: #fff;
 opacity: 0;
 transform: translateX(-10px);
 transition: opacity .34s ease .06s, transform .34s cubic-bezier(.22, 1, .36, 1) .06s;
}
.mdl-expert-modal.is-open .mdl-expert-modal__left {
 opacity: 1;
 transform: translateX(0);
}
.mdl-expert-modal__left::before {
 content: ''; position: absolute; width: 280px; height: 280px;
 border: 1px solid rgba(255,255,255,.08); border-radius: 50%;
 right: -190px; bottom: -100px; pointer-events: none;
}
.mdl-expert-modal__eyebrow {
 margin: 0 0 16px; padding-right: 0; font-size: 10px; font-weight: 700;
 line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: #d0e3e7;
}
.mdl-expert-modal__plane {
 position: absolute; top: 26px; right: 28px;
 color: rgba(255,255,255,.72); line-height: 0; pointer-events: none;
}
.mdl-expert-modal__heading {
 margin: 0; font-size: clamp(25px, 2.5vw, 32px); font-weight: 800;
 line-height: 1.15; letter-spacing: -.04em; color: var(--mdl-expert-modal-yellow);
 overflow-wrap: anywhere;
}
.mdl-expert-modal__roles {
 margin: 12px 0 0; min-height: 1.65em; font-size: 12px; font-weight: 500;
 line-height: 1.65; color: #e6eff1;
}
.mdl-expert-modal__roles[hidden], .mdl-expert-modal__photo-img[hidden], .mdl-expert-modal__photo[hidden] { display: none; }
.mdl-expert-modal__photo {
 position: relative; margin-top: 26px; width: 100%; aspect-ratio: 4 / 5;
 border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.1);
 box-shadow: 0 12px 28px rgba(12,40,47,.18);
}
.mdl-expert-modal .mdl-expert-modal__photo-img {
 position: absolute; inset: 0; display: block; width: 100%; height: 100%;
 max-height: none; object-fit: cover; object-position: center top;
 opacity: 0; transform: scale(1.03);
 transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.mdl-expert-modal .mdl-expert-modal__photo-img.is-ready {
 opacity: 1;
 transform: scale(1);
}
.mdl-expert-modal__availability {
 position: relative; margin-top: 20px; padding: 16px 16px 16px 28px;
 border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
 background: rgba(0,42,52,.24);
}
.mdl-expert-modal__availability::before {
 content: ''; position: absolute; left: 14px; top: 18px; bottom: 18px;
 width: 3px; border-radius: 3px; background: var(--mdl-expert-modal-yellow);
}
.mdl-expert-modal__availability-title { margin: 0; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; }
.mdl-expert-modal__availability-meta { margin: 4px 0 0; color: #d0e3e7; font-size: 10px; line-height: 1.6; }
.mdl-expert-modal__slogan {
 position: relative; align-self: flex-end; margin: auto 0 0;
 padding-top: 36px; padding-bottom: 28px;
 font-family: 'Caveat', 'Segoe Script', cursive; font-size: 25px;
 font-weight: 500; line-height: 1.3; text-align: right; color: #fff;
 transform: rotate(-7deg); transform-origin: right center;
}
.mdl-expert-modal__slogan > span { display: block; }
.mdl-expert-modal__underline {
 position: absolute; right: 0; bottom: 0; width: 112px; height: 19px;
 color: var(--mdl-expert-modal-yellow); overflow: visible;
}
.mdl-expert-modal__right {
 min-width: 0; background: #fff; padding: 58px 40px 32px;
 opacity: 0; transform: translateY(8px);
 transition: opacity .3s ease .1s, transform .3s cubic-bezier(.22, 1, .36, 1) .1s;
}
.mdl-expert-modal.is-open .mdl-expert-modal__right {
 opacity: 1;
 transform: translateY(0);
}
.mdl-expert-modal__close {
 position: absolute; top: 16px; right: 16px; z-index: 2;
 display: flex; align-items: center; justify-content: center;
 width: 36px; height: 36px; padding: 0; border: 1px solid #dfe8ea;
 border-radius: 50%; background: #fff; color: #31616e;
 font-size: 0; line-height: 0; cursor: pointer;
 appearance: none; transform: none;
 transition: background-color .15s, border-color .15s;
}
.mdl-expert-modal__close > svg { display: block; flex: none; width: 16px; height: 16px; margin: 0; pointer-events: none; }
.mdl-expert-modal__close:hover, .mdl-expert-modal__close:active { background: #edf4f4; border-color: #c4d6da; color: #31616e; transform: none; }
.mdl-expert-modal__close:focus-visible { outline: 3px solid #fecb0a; outline-offset: 3px; }
.mdl-expert-modal__intro { margin-bottom: 24px; }
.mdl-expert-modal__intro h3 { margin: 0 0 14px; color: #31616e; font-size: clamp(25px, 2.6vw, 32px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
.mdl-expert-modal__intro p { margin: 0; color: #007782; font-size: 18px; font-weight: 700; line-height: 1.55; }
.mdl-expert-modal__form { width: 100%; }
.mdl-expert-modal__form > iframe,
.mdl-expert-modal__form .mdl-iframe-wrap > iframe {
	display: block;
	width: 100%;
	border: 0;
	background: transparent;
	min-height: 560px;
}
.mdl-expert-modal__form .mdl-iframe-wrap { min-height: 560px; }
@media (max-width: 760px) {
 .mdl-expert-modal { padding: 12px; }
 .mdl-expert-modal__dialog { max-height: calc(100dvh - 24px); width: min(100%, 560px); border-radius: 20px; }
 .mdl-expert-modal__layout { grid-template-columns: minmax(0, 1fr); }
 .mdl-expert-modal__left {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0 18px; padding: 28px 24px 24px;
 }
 .mdl-expert-modal__eyebrow { grid-column: 2; margin: 0 32px 8px 0; font-size: 9px; }
 .mdl-expert-modal__heading { grid-column: 2; font-size: 25px; padding-right: 20px; }
 .mdl-expert-modal__roles { grid-column: 2; margin-top: 8px; font-size: 11px; }
 .mdl-expert-modal__photo { grid-column: 1; grid-row: 1 / 4; margin: 0; aspect-ratio: 3 / 4; border-radius: 12px; }
 .mdl-expert-modal__availability { grid-column: 1 / -1; margin-top: 20px; }
 .mdl-expert-modal__slogan, .mdl-expert-modal__plane { display: none; }
 .mdl-expert-modal__right { padding: 24px 20px; }
 .mdl-expert-modal__form > iframe,
 .mdl-expert-modal__form .mdl-iframe-wrap > iframe,
 .mdl-expert-modal__form .mdl-iframe-wrap { min-height: 640px; }
}
@media (prefers-reduced-motion: reduce) {
 .mdl-expert-modal__close,
 .mdl-expert-modal__backdrop,
 .mdl-expert-modal__dialog,
 .mdl-expert-modal__left,
 .mdl-expert-modal__right,
 .mdl-expert-modal .mdl-expert-modal__photo-img { transition: none; }
 .mdl-expert-modal__dialog,
 .mdl-expert-modal__left,
 .mdl-expert-modal__right,
 .mdl-expert-modal .mdl-expert-modal__photo-img { transform: none; }
}

@media (max-width: 1024px) {
	.mdl-experts__grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mdl-experts__grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mdl-experts__grid--4,
	.mdl-experts__grid--3 {
		grid-template-columns: 1fr;
		max-width: none;
		width: 100%;
		margin-inline: 0;
	}

	.mdl-experts--grid .mdl-expert--card {
		width: 100%;
		max-width: none;
	}

	.mdl-experts--grid .mdl-expert__name {
		margin-top: 1rem;
	}

	.mdl-experts--grid .mdl-expert__description {
		margin-top: 0.75rem;
	}
}
