.adjex-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:48px 32px;margin:36px 0 64px;text-align:left;font:15px/1.55 Arial,sans-serif;color:#1c1c1b}
.adjex-card{min-width:0;text-align:left}.adjex-portrait{width:100%;aspect-ratio:35/45;background:#f2efe9;display:flex;align-items:center;justify-content:center;overflow:hidden}.adjex-portrait img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}.adjex-portrait span{font-size:12px;color:#62615e}.adjex-card h3{font:24px/1.2 Georgia,serif;margin:18px 0 12px}.adjex-card p{margin:0 0 8px;overflow-wrap:anywhere}.adjex-card a{color:inherit;text-underline-offset:3px}.adjex-card a:focus-visible{outline:2px solid #b5090e;outline-offset:4px}@media(max-width:950px){.adjex-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.adjex-grid{grid-template-columns:1fr}.adjex-portrait{max-width:280px}}

/* 1.0.1 — portraits aux deux tiers et informations sur fond beige. */
.adjex-grid{margin-top:76px}
.adjex-portrait{width:66.6667%}
.adjex-details{background:var(--wp--preset--color--adjugart-beige-clair-01,#f7f4ee);padding:16px;text-align:left}
.adjex-details h3{margin:0 0 12px}
.adjex-details p{line-height:1.085;margin-bottom:8px}
.adjex-details .adjex-specialties{text-transform:uppercase;font-weight:700}
@media(max-width:480px){.adjex-portrait{max-width:186.6667px}}

/* 1.0.2 — photo et descriptif partagent une seule largeur. */
.adjex-card{width:83.333333%;box-sizing:border-box}
.adjex-card .adjex-portrait,.adjex-card .adjex-details{width:100%;max-width:none;box-sizing:border-box}
.adjex-card .adjex-details{padding:12px}
.adjex-card .adjex-details h3{font-size:16px;line-height:1.2;overflow-wrap:anywhere}
.adjex-card .adjex-specialties{font-size:12px}
@media(max-width:480px){.adjex-card{max-width:233.333333px}}

/* 1.0.3 — fond commun, hauteur naturelle de la fiche la plus haute. */
.adjex-grid{display:block}
.adjex-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;background:#f5f5f5;padding:20px 0;align-items:start}
.adjex-row+.adjex-row{border-top:1px solid #000}
.adjex-card .adjex-details{background:transparent}
@media(max-width:950px){.adjex-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.adjex-row{grid-template-columns:minmax(0,1fr)}}

/* 1.0.4 — fiches sans fond ni filet, coordonnées centrées. */
.adjex-row{background:transparent}
.adjex-row+.adjex-row{border-top:0}
.adjex-card .adjex-details{text-align:center}
.adjex-card .adjex-details h3,.adjex-card .adjex-details p{text-align:center}
.adjex-card .adjex-details a{text-decoration:none}

/* 1.0.5 — coordonnées et pictogrammes centrés. */
.adjex-details .adjex-contact{display:flex;justify-content:center;align-items:flex-start;gap:6px}
.adjex-contact .adjex-icon{flex:0 0 17px;width:17px;height:17px}
.adjex-contact a,.adjex-contact span{min-width:0;overflow-wrap:anywhere}

/* 1.0.6 — sections par fonction ; mêmes dimensions pour les deux groupes. */
.adjex-group{margin-top:64px}
.adjex-group .adjex-group-title{font-family:Georgia,serif;font-size:24px;line-height:1.25;text-align:left;margin:0 0 28px}
.adjex-group .adjex-grid{margin-top:0}

/* Expertise page team sections: scoped to these native groups. */
.adj-expertise-team .adjex-group{margin-top:24px}.adj-expertise-team .adjex-grid{font:inherit;color:inherit;margin:0 0 48px}.adj-expertise-team .adjex-card{width:100%;max-width:none}.adj-expertise-team .adjex-row{padding:0;gap:32px}.adj-team-commissaires .adjex-row{grid-template-columns:repeat(2,minmax(0,240px));gap:48px}.adj-expertise-team .adjex-details{padding:16px 0}.adj-expertise-team .adjex-details h3{font-family:var(--wp--preset--font-family--heading,Georgia,serif);font-size:var(--wp--preset--font-size--medium,1.125rem)}.adj-expertise-team .adjex-details p{line-height:1.4}.adj-expertise-team .adjex-details a{color:inherit;text-decoration:none;transition:color .2s ease}.adj-expertise-team .adjex-details a:hover,.adj-expertise-team .adjex-details a:focus-visible{color:#a80c19;text-decoration:none}@media(max-width:600px){.adj-expertise-team .adjex-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}}

/* Compact portraits and line spacing, only within Expertise team sections. */
.adj-expertise-team .adjex-card .adjex-portrait{width:75%;margin-inline:auto}.adj-expertise-team .adjex-card .adjex-details{padding-top:12px}.adj-expertise-team .adjex-card .adjex-details h3{line-height:1.1;margin-bottom:8px}.adj-expertise-team .adjex-card .adjex-details p{line-height:1.15;margin-bottom:4px}

/* Equal text panels within each team row, following the tallest content. */
.adj-expertise-team .adjex-row{align-items:stretch}.adj-expertise-team .adjex-card{display:flex;flex-direction:column}.adj-expertise-team .adjex-card .adjex-portrait{flex-shrink:0}.adj-expertise-team .adjex-card .adjex-details{flex:1;background:#f4f4f4;padding:12px;box-sizing:border-box}

/* Wider contact panels; adapt column count before email addresses wrap. */
.adj-expertise-team .adjex-row{gap:24px}.adj-team-commissaires .adjex-row{grid-template-columns:repeat(2,minmax(0,290px));gap:32px}.adj-expertise-team .adjex-card .adjex-portrait{max-width:200px}.adj-expertise-team .adjex-contact a[href^="mailto:"]{white-space:nowrap;overflow-wrap:normal}@media(max-width:1100px){.adj-team-experts .adjex-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.adj-expertise-team .adjex-row{grid-template-columns:minmax(0,1fr);max-width:380px;margin-inline:auto}}

/* Portrait and text panel share one compact width. */
.adj-expertise-team .adjex-card{width:220px;max-width:100%}.adj-expertise-team .adjex-card .adjex-portrait,.adj-expertise-team .adjex-card .adjex-details{width:100%;max-width:none;margin-inline:0}.adj-expertise-team .adjex-card .adjex-details{padding:10px 6px;font-size:12.5px}.adj-expertise-team .adjex-card .adjex-specialties{font-size:12px}

.adj-expertise-team .adjex-card .adjex-details p,.adj-expertise-team .adjex-card .adjex-details a{font-size:12.5px!important}

/* Four experts per row on compact desktop and tablet widths. */
@media(min-width:651px){.adj-team-experts .adjex-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.adj-team-experts .adjex-card{width:220px;max-width:100%}}
@media(min-width:651px) and (max-width:1000px){.adj-team-experts .adjex-details h3{font-size:16px}.adj-team-experts .adjex-card .adjex-details{padding-inline:4px}.adj-team-experts .adjex-contact{gap:3px}.adj-team-experts .adjex-card .adjex-details p,.adj-team-experts .adjex-card .adjex-details a{font-size:10px!important}.adj-team-experts .adjex-contact .adjex-icon{width:13px;height:13px;flex-basis:13px}}

/* Matching commissaire cards and explicit spacing across mobile row groups. */
.adj-team-commissaires .adjex-card .adjex-portrait{aspect-ratio:35/45}.adj-team-commissaires .adjex-card .adjex-details h3{min-height:2.2em;display:flex;align-items:center;justify-content:center}.adj-team-commissaires .adjex-card .adjex-details{min-height:165px}@media(max-width:650px){.adj-team-experts .adjex-row{row-gap:32px}.adj-team-experts .adjex-row+.adjex-row{margin-top:32px}.adj-expertise-team .adjex-card{justify-self:center}}

/* Center the two team headings on mobile only. */
@media(max-width:650px){.adj-expertise-team > .wp-block-heading{text-align:center}}
