/* ==========================================================================
   Pages membres (gabarit templates/membre.php, body.sumo-membre).
   Socle : refonte.css (cartes, bandeau, typo) + pp.css (.pp-s, .pp-in, .pp-sur).
   Le portrait dessiné est sur fond blanc : le haut de page reste blanc.
   ========================================================================== */

.sumo-membre .site-content > .ast-container { padding: 0; max-width: none; }
.sumo-membre .mb { width: 100%; }
.sumo-membre .mb-contenu { margin: 0; }
.sumo-membre .pp-bandeau { margin-top: 0 !important; }

/* Titres de section : trait rouge + compteur ou lien à droite */
.mb-tete {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin-bottom: clamp(28px, 3.5vw, 48px);
}
.sumo-refonte .mb-tete h2.wp-block-heading { margin: 0; }
.mb-compte { margin: 0; color: var(--sumo-grey, #555); font-size: 1rem; font-weight: 400; }

/* --- Hero ---------------------------------------------------------------- */
.sumo-membre .mb-hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 104px); }
.mb-hero__grille {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	grid-template-areas:
		"tete     portrait"
		"citation portrait"
		"suite    portrait";
	grid-template-rows: auto auto 1fr;
	column-gap: clamp(32px, 6vw, 96px);
}
.mb-hero--sans-portrait .mb-hero__grille { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "citation" "suite"; }
.mb-hero__tete { grid-area: tete; padding-top: clamp(8px, 3vw, 48px); }
.mb-portrait { grid-area: portrait; align-self: start; margin: 0; }
.mb-citation { grid-area: citation; }
.mb-hero__suite { grid-area: suite; }

.mb-retour a { color: inherit; text-decoration: none; }
.mb-retour a:hover { color: var(--sumo-red-text, #d9171f); }
.mb-retour::before { background: var(--sumo-red, #ed1c24); }

.sumo-refonte .entry-content h1.mb-nom {
	font-family: var(--font-title);
	font-weight: 700;
	font-size: clamp(3.25rem, 8vw, 7rem);
	line-height: .95;
	letter-spacing: -.03em;
	margin: 0 0 14px;
	color: var(--sumo-ink, #111);
}
.mb-metier {
	font-family: var(--font-title);
	font-weight: 500;
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1.2;
	margin: 0;
	color: var(--sumo-ink, #111);
}

.mb-portrait__img {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
	margin-left: auto;
}

/* Le mantra, mis en valeur : grand guillemet rouge, texte en titre */
.sumo-refonte .mb-citation {
	margin: clamp(28px, 3.2vw, 44px) 0 clamp(24px, 2.6vw, 36px);
	padding: 0;
	border: 0;
	background: none;
	font-style: normal;
	quotes: none;
}
.mb-citation { position: relative; }
.sumo-refonte .mb-citation { padding-top: clamp(2.4rem, 3.4vw, 3rem); }
.mb-citation::before {                    /* le guillemet est dessiné à mi-hauteur de sa ligne : on le remonte dans le rembourrage */
	content: "«";
	position: absolute;
	left: -.04em;
	top: -.3em;
	font-family: var(--font-title);
	font-weight: 700;
	font-size: clamp(3.75rem, 5vw, 4.75rem);
	line-height: 1;
	color: var(--sumo-red, #ed1c24);
}
.sumo-refonte .entry-content .mb-citation p {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 700;
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--sumo-ink, #111);
	text-wrap: balance;
	max-width: 22em;
}

.mb-intro { font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); font-weight: 400; line-height: 1.65; color: #222; max-width: 36em; }
.sumo-refonte .entry-content .mb-intro p { margin: 0 0 1em; }
.mb-intro ul { margin: 0 0 1em; padding-left: 1.2em; }
.mb-intro li::marker { color: var(--sumo-red, #ed1c24); }
.sumo-refonte .entry-content .mb-intro h3 { font-family: var(--font-title); font-size: 1.25rem; margin: 1.2em 0 .4em; }

/* Prestations : de simples étiquettes-liens */
.mb-prestas { margin-top: clamp(20px, 2.5vw, 32px); }
.sumo-refonte .entry-content .mb-label {
	margin: 0 0 12px;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sumo-ink, #111);
}
.mb-prestas__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mb-prestas__liste li { margin: 0; }
.mb-prestas__liste a {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #c8c8c8;
	color: var(--sumo-ink, #111);
	font-size: .9375rem;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}
.mb-prestas__liste a:hover { border-color: var(--sumo-red, #ed1c24); color: var(--sumo-red-text, #d9171f); }

.mb-ancre { margin: clamp(28px, 3vw, 40px) 0 0; }
.mb-ancre .pp-lien { color: var(--sumo-ink, #111); }
.mb-ancre__nb { font-weight: 400; }
.mb-ancre .pp-lien:hover svg { translate: 0 4px; }

/* --- Ses projets --------------------------------------------------------- */
.sumo-membre .mb-projets { padding-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--sumo-line, #e3e3e3); }

/* --- Son parcours (volets) ----------------------------------------------- */
.sumo-membre .mb-parcours { background: #f4f4f2; }
.mb-parcours__grille {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 24px clamp(32px, 6vw, 96px);
	align-items: start;
}
.mb-parcours__tete { position: sticky; top: calc(var(--sumo-header-offset, 110px) + 24px); }
.mb-volets { border-bottom: 1px solid #cfcfcb; }
.mb-volet { position: relative; border-top: 1px solid #cfcfcb; }
.mb-volet::before {                      /* le petit trait rouge sur le filet, qui court quand le volet est ouvert */
	content: "";
	position: absolute;
	left: 0; top: -2px;
	width: 32px; height: 4px;
	background: var(--sumo-red, #ed1c24);
	transition: width .45s var(--sumo-ease, ease);
}
.mb-volet.is-ouvert::before,
.mb-volet:has(.mb-volet__btn:is(:hover, :focus-visible))::before { width: 100%; }

.sumo-refonte .entry-content h3.mb-volet__titre {
	margin: 0;
	padding: 24px 0;
	font-family: var(--font-title);
	font-weight: 700;
	font-size: clamp(1.4rem, 2.1vw, 1.875rem);
	line-height: 1.15;
	color: var(--sumo-ink, #111);
}
.is-pret .mb-volet__titre { padding: 0 !important; }
.mb-volet__btn {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	cursor: pointer;
}
.mb-volet__btn:hover,
.mb-volet__btn:focus { background: none; color: inherit; }
.mb-volet__btn:focus-visible { outline: 3px solid var(--sumo-red, #ed1c24); outline-offset: 4px; }
.mb-volet__icone { position: relative; flex: none; width: 22px; height: 22px; }
.mb-volet__icone::before,
.mb-volet__icone::after {
	content: "";
	position: absolute;
	left: 0; top: 10px;
	width: 22px; height: 3px;
	background: var(--sumo-red, #ed1c24);
	transition: rotate .3s var(--sumo-ease, ease);
}
.mb-volet__icone::after { rotate: 90deg; }
.mb-volet__btn[aria-expanded="true"] .mb-volet__icone::after { rotate: 0deg; }

/* le corps ne porte ni marge ni rembourrage : un volet fermé (hidden="until-found") ne prend aucune place */
.mb-volet__corps { font-size: 1.0625rem; font-weight: 400; line-height: 1.65; color: #222; max-width: 44em; }
.mb-volet__corps:not([hidden]) { padding-bottom: 32px; }
.mb-volet__corps > :last-child { margin-bottom: 0 !important; }
.sumo-refonte .entry-content .mb-volet__corps p { margin: 0 0 1em; }
.mb-volet__corps ul { margin: 0 0 1em; padding-left: 1.2em; }
.mb-volet__corps li { margin: 0 0 .4em; }
.mb-volet__corps li > p { margin: 0 !important; }
.mb-volet__corps li::marker { color: var(--sumo-red, #ed1c24); }
.mb-volet__corps strong { color: var(--sumo-ink, #111); }
.mb-volet__corps a { color: var(--sumo-red-text, #d9171f); }
.sumo-refonte .entry-content .mb-volet__corps h4 {
	font-family: var(--font-title);
	font-weight: 700;
	font-size: 1.1875rem;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
	color: var(--sumo-ink, #111);
	margin: 1.5em 0 .45em;
}
.sumo-refonte .entry-content .mb-volet__corps h4:first-child { margin-top: 0; }

/* --- L'équipe du dojo ---------------------------------------------------- */
/* le sumo du bandeau sort au-dessus du noir : on lui laisse sa place (180 px de large = 129 px de haut) */
.sumo-membre .mb-equipe { padding-bottom: calc(clamp(28px, 3vw, 44px) + 129px); }
.mb-equipe__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 32px clamp(12px, 1.6vw, 24px);
}
.mb-equipe__liste li { margin: 0; }
.mb-equipe__liste a { display: block; color: inherit; text-decoration: none; }
.mb-equipe__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.mb-equipe__img img {
	display: block;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: 50% 18%;
	transform-origin: 50% 30%;
	transition: transform .5s var(--sumo-ease, ease);
}
.mb-equipe__nom {
	position: relative;
	display: block;
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--sumo-line, #e3e3e3);
	font-family: var(--font-title);
	font-size: 1.0625rem;
	line-height: 1.15;
}
.mb-equipe__nom::before {
	content: "";
	position: absolute;
	left: 0; top: -2px;
	width: 24px; height: 4px;
	background: var(--sumo-red, #ed1c24);
	transition: width .45s var(--sumo-ease, ease);
}
.mb-equipe__role { display: block; margin-top: 4px; color: var(--sumo-grey, #555); font-size: .8125rem; line-height: 1.35; }
.mb-equipe__liste a:is(:hover, :focus-visible) .mb-equipe__nom::before { width: 100%; }
.mb-equipe__liste a:is(:hover, :focus-visible) img { transform: scale(1.05); }
.mb-equipe__liste a:focus-visible { outline: 3px solid var(--sumo-red, #ed1c24); outline-offset: 6px; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1199px) {
	.mb-equipe__liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
	.mb-hero__grille {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "tete" "portrait" "citation" "suite";
		grid-template-rows: none;
	}
	.mb-hero__tete { padding-top: 0; }
	.mb-portrait { margin-top: 16px; }
	/* les dessins ont de larges marges blanches : on resserre le cadre autour du visage et du sceau */
	.mb-portrait__img { max-width: min(300px, 80vw); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; margin-inline: auto; }
	.sumo-refonte .mb-citation { margin-top: 24px; }
	.mb-parcours__grille { grid-template-columns: minmax(0, 1fr); }
	.mb-parcours__tete { position: static; }
}
@media (max-width: 781px) {
	.sumo-membre .mb-equipe { padding-bottom: calc(28px + 101px); }
}
@media (max-width: 599px) {
	.mb-equipe__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
	.mb-equipe__nom { font-size: 1rem; }
	.mb-equipe__role { font-size: .75rem; }
	.mb-volet__corps { font-size: 1rem; }
}

/* style.css fixe la taille des paragraphes (1.15rem) : ici ils suivent leur bloc */
.mb-intro :is(p, li),
.mb-volet__corps :is(p, li) { font-size: inherit; }
.mb-intro h3 { text-transform: none; }
