/*
 * ACCUEIL-020 — restrained editorial presentation.
 * Homepage only; no effect on CABINET, RDV, document pages or admin.
 * Existing Gutenberg content and source photographs are not rewritten.
 */

/* The professional identity remains in the Hero; the masthead is just a brand. */
body.home .site-header__main-inner {
	min-block-size:3.6rem;
	padding-block:.4rem;
}
body.home .site-branding__title {
	font-size:clamp(1.15rem,1.8vw,1.45rem);
	letter-spacing:.07em;
	line-height:1.2;
}
html[dir="rtl"] body.home .site-branding__title {
	letter-spacing:.04em;
}

/* Hero: preserve genuine portraits and the existing 3000ms accessible slider. */
.home-main .home-hero {
	padding-block:clamp(1.65rem,3.2vw,2.9rem);
}
.home-main .home-hero__layout {
	gap:clamp(1.2rem,3.3vw,3rem);
	align-items:center;
}
.home-main .home-hero__copy { min-inline-size:0; }
.home-main .home-hero__title {
	font-size:clamp(2.5rem,4.25vw,4rem);
	line-height:1.06;
	max-inline-size:15ch;
}
.home-main .home-hero__subtitle {
	font-size:clamp(1rem,1.35vw,1.3rem);
	line-height:1.42;
	margin-block:.85rem 0;
	max-inline-size:41ch;
}
.home-main .home-hero__media:has(img) {
	inline-size:min(100%,21rem);
	padding:.55rem;
	box-shadow:.7rem .7rem 0 -.18rem var(--color-gold,#e3bd7d);
}
.home-main .home-hero__media--rotator:has(img) {
	padding-block-end:3.2rem;
}
.home-main .home-hero__media--rotator img {
	object-fit:contain;
}
.home-main .home-portrait-controls {
	gap:.3rem;
	padding:.32rem;
}
.home-main .home-portrait-controls button {
	min-block-size:2.4rem;
	min-inline-size:2.4rem;
	padding:.3rem .55rem;
	font-size:.74rem;
	border-radius:.2rem;
}
.home-main .home-hero__actions { gap:.55rem; }
.home-main .home-action > a {
	min-block-size:2.8rem;
	padding:.65rem 1rem;
}

/* The saved Columns block has 56% and 44% flex bases. Grid allocates
   the gap before sizing either track, independently of those inline widths. */
html:lang(ar) .home-main .home-hero__layout {
	display:grid;
	grid-template-columns:minmax(0, 1.35fr) minmax(0, 1fr);
	gap:clamp(1.75rem, 4vw, 4rem);
	align-items:center;
}
html:lang(ar) .home-main .home-hero__layout > .wp-block-column {
	min-inline-size:0;
	margin:0;
}
html:lang(ar) .home-main .home-hero__copy {
	overflow-wrap:anywhere;
}
html:lang(ar) .home-main .home-hero__title {
	max-inline-size:100%;
	font-size:clamp(2rem,4.2vw,3.6rem);
	line-height:1.35;
}
html:lang(ar) .home-main .home-hero__subtitle {
	max-inline-size:100%;
	line-height:1.65;
}
html:lang(ar) .home-main .home-hero__media--rotator:has(img) {
	inline-size:min(100%, 18rem);
	padding:.45rem;
	background:var(--color-ivory);
}
html:lang(ar) .home-main .home-hero__media--rotator > .wp-block-group__inner-container {
	aspect-ratio:2 / 3;
	background:#f2efe7;
}
html:lang(ar) .home-main .home-portrait-controls {
	position:static;
	padding:.45rem 0 0;
}
html:lang(ar) .home-main .home-portrait-controls button {
	min-block-size:2.75rem;
	min-inline-size:2.75rem;
}
@media (max-width: 51rem) {
	html:lang(ar) .home-main .home-hero__layout {
		grid-template-columns:minmax(0, 1fr);
		gap:1.5rem;
	}
	html:lang(ar) .home-main .home-hero__title {
		font-size:clamp(1.85rem,7vw,2.7rem);
	}
	html:lang(ar) .home-main .home-hero__media--rotator:has(img) {
		inline-size:min(100%, 15rem);
	}
}

/* Tighten the transition between the signature and professional credentials. */
.home-main .home-stats {
	padding-block:clamp(.8rem,1.6vw,1.25rem);
}
.home-main .home-stats > .wp-block-group__inner-container { gap:.8rem; }
.home-main .home-stats .home-stat {
	padding:clamp(.85rem,1.7vw,1.15rem);
}
.home-main .home-stats .home-stat__value {
	font-size:clamp(1.55rem,2.2vw,2rem);
	margin-block-end:.35rem;
}
.home-main .home-stat__context {
	display:block;
	color:#f7f5ee;
	font-size:.78rem;
	line-height:1.45;
	margin-block:-.1rem 0 .45rem;
	opacity:.92;
}

/* Consistent editorial rhythm for the Gutenberg-controlled sections. */
.home-main .home-section:not(.home-hero):not(.home-contact) {
	padding-block:clamp(1.85rem,2.7vw,2.8rem);
}
.home-main .home-enrich .home-section__title {
	font-size:clamp(1.8rem,2.85vw,2.6rem);
	line-height:1.17;
}
.home-main .home-enrich .home-section__inner > h2 {
	margin-block-end:clamp(.9rem,1.5vw,1.25rem);
}
.home-main .home-enrich .home-section__inner > p {
	margin-block:.5rem 1rem;
	line-height:1.65;
}
.home-main .home-enrich__layout {
	grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
	gap:clamp(1.25rem,3vw,2.6rem);
}
.home-main .home-enrich__layout img {
	max-block-size:25rem;
	object-fit:contain;
}
.home-main .home-enrich__copy p {
	font-size:clamp(.96rem,1.1vw,1.06rem);
	line-height:1.67;
}
.home-main .home-cabinet-approach {
	margin-block-start:1.25rem;
	padding-block-start:1.1rem;
}
.home-main .home-cabinet-approach h3 {
	font-size:clamp(1.25rem,2vw,1.65rem);
	margin-block-end:.75rem;
}
.home-main .home-cabinet-approach p {
	font-family:inherit;
	font-size:clamp(1rem,1.2vw,1.12rem);
	line-height:1.7;
	max-inline-size:77ch;
}

/* A timeline with proportional cards and a distinct, sourced consular note. */
.home-main .e11-milestones,
.home-main .home-enrich .e11-milestones {
	gap:.85rem;
	margin-block:1.2rem 1rem;
}
.home-main .e11-milestone {
	padding:clamp(.8rem,1.6vw,1.15rem);
	border:1px solid #0d233920;
	border-inline-start:3px solid #b28a4b;
	border-radius:.3rem;
	background:#fcfbf9;
}
.home-main .e11-milestone h3 {
	margin-block:0 .35rem;
	font-size:clamp(1.25rem,1.95vw,1.65rem);
	color:#79591e;
}
.home-main .e11-milestone p {
	font-size:.95rem;
	line-height:1.55;
}
.home-main .home-consular-reference {
	position:relative;
	margin-block:1rem .25rem;
	padding:clamp(1rem,2.2vw,1.45rem);
	border:1px solid #d4b174;
	border-inline-start:4px solid #b58946;
	border-radius:.35rem;
	background:linear-gradient(115deg,#fffdf9,#f7f5ee);
	box-shadow:0 3px 16px #0d23390a;
	line-height:1.65;
}
.home-main .home-consular-reference__eyebrow {
	margin:0 0 .45rem;
	font-size:.76rem;
	font-weight:700;
	color:#695020;
	text-transform:uppercase;
	letter-spacing:.085em;
}
.home-main .home-consular-reference p:not(.home-consular-reference__eyebrow) {
	margin-block:.4rem;
	font-size:clamp(.96rem,1.16vw,1.05rem);
}
.home-main .home-consular-reference a {
	color:#0d2339;
	text-underline-offset:.22em;
}

/* Three authentic attestations, equal-height cards and legible descriptions. */
.home-main .e12-attestations {
	inline-size:100%;
	gap:clamp(.65rem,1.6vw,1.1rem);
	margin-block:1.2rem 1rem;
	align-items:stretch;
}
.home-main .e12-attestations article {
	display:flex;
	flex-direction:column;
	min-block-size:0;
	padding:clamp(.85rem,1.6vw,1.15rem);
	border:1px solid #d4b174;
	border-radius:.45rem;
	box-shadow:0 3px 14px #0d233909;
}
.home-main .e12-attestations article > a {
	display:block;
	color:#0d2339;
	text-decoration:none;
}
.home-main .e12-attestations img {
	block-size:auto;
	max-block-size:12.75rem;
	aspect-ratio:4/3;
	object-fit:contain;
	background:#f7f5ee;
}
.home-main .e12-attestations h3 {
	font-size:clamp(1.03rem,1.4vw,1.2rem);
	line-height:1.28;
	margin-block:.8rem .5rem;
	text-decoration:none;
}
.home-main .e12-attestations p {
	font-size:.83rem;
	line-height:1.5;
	margin-block:.25rem;
	overflow-wrap:anywhere;
}
.home-main .e12-attestations article > p:last-child { margin-block-end:0; }
.home-main .e12-attestations article > a:hover h3 { text-decoration:underline; text-decoration-color:#b58946; }

/* Real televised material remains prominent without occupying an oversized gap. */
.home-main .e11-media-card {
	gap:clamp(1rem,2.2vw,1.9rem);
	margin-block:1.1rem;
	padding:clamp(.8rem,1.7vw,1.2rem);
}
.home-main .e11-media-card h3 {
	margin-block:.3rem .65rem;
	font-size:clamp(1.35rem,2.2vw,1.8rem);
}
.home-main .e11-media-card p { line-height:1.6; }
.home-main .e11-media-card__meta {
	margin-block:.55rem;
	color:#435363;
}

/* Six service summaries: keep complete, factual canonical summaries. */
.home-main .e11-domaines .domaines-grid {
	gap:clamp(.65rem,1.4vw,1rem);
	margin-block:1.1rem;
}
.home-main .e11-domaines .domaines-card {
	padding:clamp(.95rem,1.6vw,1.25rem);
}
.home-main .e11-domaines .domaines-card__title {
	font-size:clamp(1.09rem,1.4vw,1.22rem);
	line-height:1.27;
}
.home-main .e11-domaines .domaines-card__summary {
	font-size:.92rem;
	line-height:1.6;
}
.home-main .e11-domaines .domaines-card > a {
	display:inline-block;
	margin-block-start:auto;
	padding-block-start:.8rem;
	text-underline-offset:.2em;
}

/* Two catalogue entry points instead of redundant homepage search forms. */
.home-main .e11-resources {
	gap:clamp(.8rem,1.5vw,1.1rem);
	margin-block:1.1rem .5rem;
}
.home-main .e11-resources article {
	display:flex;
	flex-direction:column;
	gap:.3rem;
	padding:clamp(1rem,2vw,1.5rem);
}
.home-main .e11-resources h3 {
	font-size:clamp(1.12rem,1.7vw,1.36rem);
	margin:0 0 .25rem;
}
.home-main .e11-resources article > p {
	font-size:.93rem;
	line-height:1.6;
	margin:.35rem 0;
}
.home-main .e11-resources .e11-reference {
	font-size:.85rem;
}
.home-main .e11-resource-card__action {
	display:inline-flex;
	align-items:center;
	align-self:flex-start;
	min-block-size:44px;
	margin-block-start:auto;
	padding:.45rem 0 .1rem;
	font-weight:700;
	font-size:.88rem;
}

/* Institutions are pointers, not a second large directory on ACCUEIL. */
.home-main .e11-institutions {
	gap:clamp(.65rem,1.5vw,1rem);
	margin-block:1.1rem .75rem;
	align-items:stretch;
}
.home-main .e11-institutions article {
	padding:clamp(.9rem,1.6vw,1.2rem);
	border-radius:.4rem;
}
.home-main .e11-institutions h3 {
	font-size:clamp(1.03rem,1.35vw,1.2rem);
	line-height:1.3;
	margin-block:0 .55rem;
}
.home-main .e11-institutions p {
	font-size:.9rem;
	line-height:1.6;
	margin:0;
	overflow-wrap:anywhere;
}
.home-main .home-contact {
	padding-block:clamp(1.65rem,2.5vw,2.4rem);
}

/* Small launcher on the homepage; full dialog and accessible name are retained. */
/* Mobile, RTL, zoom and reduced motion. */
@media (max-width:64rem) {
	.home-main .home-hero__title { font-size:clamp(2.3rem,4vw,3.4rem); }
}
@media (max-width:48rem) {
	.home-main .home-hero { padding-block:1.35rem; }
	.home-main .home-hero__title { font-size:clamp(2.15rem,7.5vw,3.05rem); }
	.home-main .home-hero__media:has(img) { inline-size:min(100%,20rem); }
	.home-main .home-enrich__layout { grid-template-columns:minmax(0,1fr); }
	.home-main .home-enrich__layout figure { max-inline-size:23rem; }
	.home-main .e11-milestones,
	.home-main .home-enrich .e11-milestones { grid-template-columns:repeat(2,minmax(0,1fr)); }
	.home-main .e12-attestations { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:39rem) {
	.home-main .e11-milestones,
	.home-main .home-enrich .e11-milestones,
	.home-main .e12-attestations,
	.home-main .e11-resources,
	.home-main .e11-institutions { grid-template-columns:minmax(0,1fr); }
	.home-main .e12-attestations img { max-block-size:13rem; }
	.home-main .e11-media-card { grid-template-columns:minmax(0,1fr); }
	.home-main .home-section:not(.home-hero):not(.home-contact) { padding-block:1.5rem; }
	.home-main .home-enrich .home-section__title { font-size:clamp(1.55rem,6vw,2.1rem); }
	.home-main .home-consular-reference { padding:1rem; }
}
@media (max-width:24rem) {
	.home-main .home-hero__actions { flex-direction:column; align-items:stretch; }
	.home-main .home-action > a { inline-size:100%; }
}
html[dir="rtl"] .home-main .home-consular-reference__eyebrow {
	letter-spacing:0;
	text-transform:none;
}
@media (prefers-reduced-motion:reduce) {
	.home-main .e12-attestations article > a:hover h3 { text-decoration:underline; }
}

/* PRELAUNCH-031: prevent the final contact heading and actions from colliding. */
.home-main .home-contact__inner,
.home-main .home-contact__inner > .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .85rem;
}
.home-main .home-contact .home-section__title { margin-block: 0; line-height: 1.2; }
.home-main .home-contact__text { margin-block: 0; max-inline-size: 55ch; }
.home-main .home-contact__actions {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: .75rem;
	margin-block: .25rem 0;
}
.home-main .home-contact__actions > * { margin-block: 0; }
