/* ==========================================================================
   CM Advisory — main stylesheet (front end + block editor)
   Brand: Nuit #0A2E58 · Azur #0663C4 · Ambre foncé #916018 (light bg only)
   Ambre clair #D5A762 (dark bg only) · Papier #F5F0E6 · Encre #1C1C1A
   Gris #65696F · Filet #DDD6C8 · Texte secondaire sur fond foncé #C9D4E2
   No gradients, no shadows, no round bullets, never justified.
   ========================================================================== */

:root {
	--cm-nuit: #0A2E58;
	--cm-azur: #0663C4;
	--cm-ambre: #916018;
	--cm-ambre-clair: #D5A762;
	--cm-papier: #F5F0E6;
	--cm-encre: #1C1C1A;
	--cm-gris: #65696F;
	--cm-rule: #DDD6C8;
	--cm-muted-dark: #C9D4E2;
	--cm-rule-dark: rgba(201, 212, 226, 0.25);
	--cm-white: #FFFFFF;
	--cm-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
	--cm-sans: "IBM Plex Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
	--cm-max: 1140px;
	--cm-gutter: 24px;
	--cm-pad-x: max(var(--cm-gutter), calc((100% - var(--cm-max)) / 2));
	--cm-section-y: 96px;
	--cm-header-h: 76px;
}

@media (max-width: 781px) {
	:root {
		--cm-gutter: 16px;
		--cm-section-y: 56px;
		--cm-header-h: 68px;
	}
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--cm-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--cm-white);
	color: var(--cm-encre);
	font-family: var(--cm-sans);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.7;
	text-align: left;
	overflow-x: clip;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img,
video {
	height: auto;
}

a {
	color: var(--cm-azur);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
	color: var(--cm-nuit);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--cm-serif);
	font-weight: 600;
	color: var(--cm-nuit);
	line-height: 1.2;
	letter-spacing: -0.005em;
	margin: 0 0 0.6em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.2rem, 4.5vw, 3.4rem);
	line-height: 1.12;
}

h2 {
	font-size: clamp(1.6rem, 3vw, 2rem);
}

h3 {
	font-size: 1.25rem;
	line-height: 1.3;
}

h4,
h5,
h6 {
	font-family: var(--cm-sans);
	font-size: 1.0625rem;
	line-height: 1.4;
}

p {
	margin: 0 0 1.1em;
}

strong,
b {
	font-weight: 600;
}

small {
	font-size: 0.875em;
}

blockquote {
	margin: 32px 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--cm-ambre);
	font-family: var(--cm-serif);
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--cm-nuit);
}

/* Never justified (charte). */
.has-text-align-justify,
[style*="text-align:justify"],
[style*="text-align: justify"] {
	text-align: left !important;
}

:focus-visible {
	outline: 2px solid var(--cm-azur);
	outline-offset: 3px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.cm-skip {
	position: absolute;
	left: 16px;
	top: -200px;
	z-index: 1000;
	background: var(--cm-nuit);
	color: var(--cm-white);
	padding: 12px 18px;
	font-weight: 500;
	text-decoration: none;
}

.cm-skip:focus {
	top: 16px;
	color: var(--cm-white);
	outline-color: var(--cm-ambre-clair);
}

.cm-main:focus {
	outline: none;
}

.cm-container {
	width: 100%;
	max-width: calc(var(--cm-max) + 2 * var(--cm-gutter));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--cm-gutter);
	padding-right: var(--cm-gutter);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.cm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--cm-white);
	border-bottom: 1px solid var(--cm-rule);
}

.admin-bar .cm-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .cm-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .cm-header {
		top: 0;
	}
}

.cm-header__inner {
	display: flex;
	align-items: stretch;
	gap: 32px;
	min-height: var(--cm-header-h);
}

.cm-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	line-height: 0;
}

.cm-logo__img {
	display: block;
	height: 44px;
	width: auto;
}

.cm-nav-panel {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	flex: 1 1 auto;
	gap: 28px;
}

.cm-nav {
	display: flex;
	align-items: stretch;
}

.cm-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: stretch;
	gap: 2px;
}

.cm-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.cm-menu a {
	display: block;
	padding: 10px 12px;
	color: var(--cm-encre);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

.cm-menu a:hover {
	color: var(--cm-azur);
	text-decoration: underline;
	text-underline-offset: 6px;
}

.cm-menu .current-menu-item > a,
.cm-menu .current-menu-ancestor > a,
.cm-menu .current_page_item > a,
.cm-menu .current_page_ancestor > a,
.cm-menu a[aria-current="page"] {
	color: var(--cm-azur);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.cm-subtoggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 32px;
	margin-left: -8px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 2px;
	color: var(--cm-encre);
	cursor: pointer;
}

.cm-subtoggle::before {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.cm-subtoggle[aria-expanded="true"]::before {
	transform: translateY(2px) rotate(-135deg);
}

.cm-subtoggle:hover {
	color: var(--cm-azur);
}

.cm-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	display: none;
	min-width: 320px;
	background: var(--cm-white);
	border: 1px solid var(--cm-rule);
	border-top: 3px solid var(--cm-azur);
}

.cm-menu li:hover > .sub-menu,
.cm-menu li:focus-within > .sub-menu,
.cm-menu li.is-open > .sub-menu {
	display: block;
}

.cm-menu .sub-menu li {
	display: block;
}

.cm-menu .sub-menu a {
	padding: 9px 20px;
	font-weight: 400;
}

.cm-header__tools {
	display: flex;
	align-items: center;
	gap: 20px;
}

.cm-lang {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--cm-gris);
}

.cm-lang a {
	color: var(--cm-gris);
	text-decoration: none;
	padding: 6px 2px;
}

.cm-lang a:hover {
	color: var(--cm-azur);
	text-decoration: underline;
}

.cm-lang__current {
	color: var(--cm-nuit);
	font-weight: 600;
	padding: 6px 2px;
}

.cm-lang__sep {
	color: var(--cm-rule);
}

.cm-burger {
	display: none;
	align-self: center;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	padding: 10px 12px;
	background: none;
	border: 1px solid var(--cm-rule);
	border-radius: 2px;
	color: var(--cm-encre);
	font-family: var(--cm-sans);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}

.cm-burger__box {
	position: relative;
	display: block;
	width: 18px;
	height: 12px;
}

.cm-burger__box::before,
.cm-burger__box::after,
.cm-burger__box span {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.cm-burger__box::before {
	top: 0;
}

.cm-burger__box span {
	top: 5px;
}

.cm-burger__box::after {
	bottom: 0;
}

.cm-burger[aria-expanded="true"] .cm-burger__box span {
	opacity: 0;
}

.cm-burger[aria-expanded="true"] .cm-burger__box::before {
	top: 5px;
	transform: rotate(45deg);
}

.cm-burger[aria-expanded="true"] .cm-burger__box::after {
	bottom: 5px;
	transform: rotate(-45deg);
}

/* Mobile / tablet header */
@media (max-width: 1079px) {
	.cm-header__inner {
		gap: 16px;
		align-items: center;
	}

	.cm-logo__img {
		height: 38px;
	}

	.js .cm-burger {
		display: inline-flex;
	}

	.cm-nav-panel {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.js .cm-nav-panel {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - var(--cm-header-h));
		overflow-y: auto;
		padding: 8px var(--cm-gutter) 24px;
		background: var(--cm-white);
		border-bottom: 1px solid var(--cm-rule);
	}

	.js .cm-nav-panel.is-open {
		display: flex;
	}

	/* Without JS: everything stays visible below the logo. */
	.no-js .cm-header {
		position: static;
	}

	.no-js .cm-header__inner {
		flex-wrap: wrap;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.no-js .cm-nav-panel {
		flex-basis: 100%;
	}

	.cm-nav {
		display: block;
	}

	.cm-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.cm-menu > li {
		display: block;
		border-bottom: 1px solid var(--cm-rule);
	}

	.cm-menu a {
		padding: 14px 0;
		font-size: 1rem;
	}

	.cm-subtoggle {
		display: none;
	}

	.cm-menu .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		padding: 0 0 12px 16px;
		border: 0;
	}

	.cm-menu .sub-menu a {
		padding: 8px 0;
		font-size: 0.9375rem;
		color: var(--cm-gris);
	}

	.cm-header__tools {
		justify-content: space-between;
		padding-top: 20px;
	}
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.cm-btn,
body .wp-block-button__link,
.wp-element-button {
	display: inline-block;
	padding: 12px 22px;
	background: var(--cm-azur);
	color: var(--cm-white);
	border: 1.5px solid var(--cm-azur);
	border-radius: 2px;
	font-family: var(--cm-sans);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cm-btn:hover,
body .wp-block-button__link:hover,
.wp-element-button:hover {
	background: var(--cm-nuit);
	border-color: var(--cm-nuit);
	color: var(--cm-white);
	text-decoration: none;
}

.cm-btn--header {
	align-self: center;
	padding: 10px 18px;
	white-space: nowrap;
}

body .wp-block-button.is-style-outline > .wp-block-button__link,
body .wp-block-button__link.is-style-outline {
	background: transparent;
	color: var(--cm-azur);
	border-color: var(--cm-azur);
}

body .wp-block-button.is-style-outline > .wp-block-button__link:hover,
body .wp-block-button__link.is-style-outline:hover {
	background: var(--cm-azur);
	color: var(--cm-white);
	border-color: var(--cm-azur);
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin: 32px 0 0;
}

.wp-block-buttons > .wp-block-button {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Content wrapper (page content = Gutenberg blocks)
   -------------------------------------------------------------------------- */

.cm-content > :not(.cm-hero):not(.cm-section):not(.cm-cta):not(.alignfull) {
	width: min(var(--cm-max), calc(100% - 2 * var(--cm-gutter)));
	margin-left: auto;
	margin-right: auto;
}

.cm-content > :first-child:not(.cm-hero):not(.cm-section):not(.cm-cta) {
	margin-top: 56px;
}

.cm-content > :last-child:not(.cm-hero):not(.cm-section):not(.cm-cta) {
	margin-bottom: 88px;
}

.cm-content p,
.cm-content ul,
.cm-content ol {
	max-width: 72ch;
}

.cm-content .cm-grid p,
.cm-content .cm-stats p,
.cm-content .cm-steps p,
.cm-content .cm-domain-index p {
	max-width: none;
}

/* --------------------------------------------------------------------------
   Hero, sections, CTA band
   -------------------------------------------------------------------------- */

.wp-block-group.cm-hero {
	margin: 0;
	padding: clamp(72px, 10vw, 128px) var(--cm-pad-x) clamp(64px, 8vw, 112px);
	background: var(--cm-nuit);
	color: var(--cm-white);
}

.cm-hero h1 {
	max-width: 860px;
	margin-bottom: 24px;
	color: var(--cm-white);
}

.cm-hero .cm-lead {
	max-width: 62ch;
}

.cm-hero .wp-block-buttons {
	margin-top: 40px;
}

.wp-block-group.cm-section {
	margin: 0;
	padding: var(--cm-section-y) var(--cm-pad-x);
	background: var(--cm-white);
}

.wp-block-group.cm-section--paper {
	background: var(--cm-papier);
}

.wp-block-group.cm-section--nuit {
	background: var(--cm-nuit);
	color: var(--cm-white);
}

.cm-section h2 {
	max-width: 30ch;
}

.cm-section > :last-child,
.cm-section > .wp-block-group__inner-container > :last-child,
.cm-hero > :last-child,
.cm-hero > .wp-block-group__inner-container > :last-child,
.cm-cta > :last-child,
.cm-cta > .wp-block-group__inner-container > :last-child {
	margin-bottom: 0;
}

.wp-block-group.cm-cta {
	margin: 0;
	padding: 72px var(--cm-pad-x);
	background: var(--cm-nuit);
	color: var(--cm-white);
}

.cm-section .wp-block-group.cm-cta,
.cm-cta.alignwide {
	margin-top: 48px;
	padding: 48px clamp(24px, 5vw, 56px);
}

.cm-cta h2 {
	color: var(--cm-white);
}

.cm-cta p {
	color: var(--cm-muted-dark);
	max-width: 62ch;
}

.cm-cta .wp-block-buttons {
	margin-top: 28px;
}

/* Dark contexts: hero, nuit section, CTA band. */
:is(.cm-hero, .cm-section--nuit, .cm-cta) :is(h1, h2, h3, h4, h5, h6) {
	color: var(--cm-white);
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) .cm-eyebrow {
	color: var(--cm-ambre-clair);
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) .cm-lead {
	color: var(--cm-muted-dark);
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) a:not(.wp-block-button__link):not(.cm-btn) {
	color: var(--cm-white);
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) a:not(.wp-block-button__link):not(.cm-btn):hover {
	color: var(--cm-ambre-clair);
}

:is(.cm-hero, .cm-section--nuit, .cm-cta, .cm-footer, .cm-carte__top) :focus-visible {
	outline-color: var(--cm-ambre-clair);
}

body :is(.cm-hero, .cm-section--nuit, .cm-cta) .wp-block-button__link:hover {
	background: var(--cm-white);
	border-color: var(--cm-white);
	color: var(--cm-nuit);
}

body :is(.cm-hero, .cm-section--nuit, .cm-cta) .wp-block-button.is-style-outline > .wp-block-button__link,
body :is(.cm-hero, .cm-section--nuit, .cm-cta) .wp-block-button__link.is-style-outline {
	background: transparent;
	color: var(--cm-white);
	border-color: var(--cm-white);
}

body :is(.cm-hero, .cm-section--nuit, .cm-cta) .wp-block-button.is-style-outline > .wp-block-button__link:hover,
body :is(.cm-hero, .cm-section--nuit, .cm-cta) .wp-block-button__link.is-style-outline:hover {
	background: var(--cm-white);
	color: var(--cm-nuit);
}

/* --------------------------------------------------------------------------
   Eyebrow, lead
   -------------------------------------------------------------------------- */

.cm-eyebrow {
	margin: 0 0 24px;
	color: var(--cm-ambre);
	font-family: var(--cm-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.cm-eyebrow::after {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	margin-top: 14px;
	background: currentColor;
}

.cm-lead {
	color: var(--cm-gris);
	font-size: 1.25rem;
	line-height: 1.6;
}

@media (max-width: 600px) {
	.cm-lead {
		font-size: 1.125rem;
	}
}

/* --------------------------------------------------------------------------
   Grids (cm-grid, cm-stats, cm-steps, cm-domain-index)
   Classic themes wrap groups in .wp-block-group__inner-container:
   display: contents lets its children become the grid items.
   -------------------------------------------------------------------------- */

:is(.cm-grid, .cm-stats, .cm-steps, .cm-domain-index, .cm-card, .cm-stat, .cm-step) > .wp-block-group__inner-container {
	display: contents;
}

.wp-block-group.cm-grid,
.wp-block-group.cm-stats,
.wp-block-group.cm-steps,
.wp-block-group.cm-domain-index {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin: 40px 0 0;
}

:is(.cm-grid, .cm-stats, .cm-steps, .cm-domain-index) > *,
:is(.cm-grid, .cm-stats, .cm-steps, .cm-domain-index) > .wp-block-group__inner-container > * {
	margin: 0 !important;
	max-width: none;
	width: auto;
}

@media (min-width: 640px) {
	.wp-block-group.cm-grid,
	.wp-block-group.cm-grid--2,
	.wp-block-group.cm-grid--3,
	.wp-block-group.cm-grid--4,
	.wp-block-group.cm-domain-index,
	.wp-block-group.cm-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-group.cm-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 24px;
	}
}

@media (min-width: 1000px) {
	.wp-block-group.cm-grid,
	.wp-block-group.cm-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wp-block-group.cm-grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-group.cm-grid--4,
	.wp-block-group.cm-steps,
	.wp-block-group.cm-stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.wp-block-group.cm-domain-index:not(.cm-grid--3):not(.cm-grid--4) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Cards */
.wp-block-group.cm-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 28px 28px 24px;
	background: var(--cm-papier);
	border: 1px solid var(--cm-rule);
	border-top: 3px solid var(--cm-azur);
	color: var(--cm-encre);
}

:is(.cm-section--paper, .cm-section--nuit, .cm-cta) .wp-block-group.cm-card {
	background: var(--cm-white);
}

.cm-card h3 {
	margin: 0 0 0.55em;
	color: var(--cm-nuit) !important;
	font-size: 1.25rem;
}

.cm-card p {
	color: var(--cm-encre);
	font-size: 1rem;
	line-height: 1.65;
}

.cm-card > :last-child,
.cm-card > .wp-block-group__inner-container > :last-child {
	margin-bottom: 0;
}

:is(.cm-section--nuit, .cm-cta) .cm-card .cm-eyebrow {
	color: var(--cm-ambre);
}

.cm-card .cm-card-link {
	margin-top: auto;
	padding-top: 12px;
	font-size: 0.9375rem;
	font-weight: 500;
}

.cm-card .cm-card-link a {
	color: var(--cm-azur) !important;
	text-decoration: none;
}

.cm-card .cm-card-link a:hover {
	text-decoration: underline;
}

.cm-card :focus-visible {
	outline-color: var(--cm-azur);
}

/* Stats */
.cm-stat {
	padding-top: 20px;
	border-top: 1px solid var(--cm-rule);
}

.cm-stat-value {
	margin: 0 0 8px !important;
	color: var(--cm-nuit);
	font-family: var(--cm-serif);
	font-size: 2.6rem;
	font-weight: 600;
	line-height: 1.1;
	font-variant-numeric: lining-nums tabular-nums;
}

.cm-stat-label {
	margin: 0 !important;
	color: var(--cm-gris);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.cm-section--nuit .cm-stat,
.cm-hero .cm-stat,
.cm-cta .cm-stat {
	border-top-color: var(--cm-rule-dark);
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) .cm-stat-value {
	color: var(--cm-white);
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) .cm-stat-label {
	color: var(--cm-muted-dark);
}

/* Steps */
.cm-step {
	padding-top: 20px;
	border-top: 1px solid var(--cm-rule);
}

.cm-step-num {
	margin: 0 0 12px !important;
	color: var(--cm-ambre);
	font-family: var(--cm-serif);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: lining-nums;
}

.cm-step h3 {
	font-size: 1.1875rem;
}

.cm-step p {
	font-size: 1rem;
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) .cm-step {
	border-top-color: var(--cm-rule-dark);
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) .cm-step-num {
	color: var(--cm-ambre-clair);
}

/* Split (core/columns) */
body .wp-block-columns.cm-split {
	gap: 32px 64px;
	margin: 40px 0 0;
	align-items: flex-start;
}

.cm-split .wp-block-column > :last-child {
	margin-bottom: 0;
}

/* Aside */
.wp-block-group.cm-aside {
	margin: 0;
	padding: 28px 32px;
	background: var(--cm-papier);
	border-left: 3px solid var(--cm-ambre);
}

.cm-section--paper .wp-block-group.cm-aside {
	background: var(--cm-white);
}

.cm-section--nuit .wp-block-group.cm-aside {
	background: var(--cm-white);
	color: var(--cm-encre);
}

.cm-section--nuit .cm-aside :is(h2, h3, h4) {
	color: var(--cm-nuit);
}

.cm-aside h3 {
	font-size: 1.125rem;
}

.cm-aside p,
.cm-aside li {
	font-size: 1rem;
}

.cm-aside > :last-child,
.cm-aside > .wp-block-group__inner-container > :last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Lists: small filled amber squares
   -------------------------------------------------------------------------- */

.cm-content ul,
ul.wp-block-list,
ul.cm-list {
	list-style: none;
	margin: 0 0 1.2em;
	padding-left: 0;
}

.cm-content ul > li,
ul.wp-block-list > li,
ul.cm-list > li {
	position: relative;
	margin-bottom: 0.45em;
	padding-left: 1.4em;
}

.cm-content ul > li::before,
ul.wp-block-list > li::before,
ul.cm-list > li::before {
	content: "";
	position: absolute;
	left: 0.1em;
	top: calc(0.85em - 3.5px);
	width: 7px;
	height: 7px;
	background: var(--cm-ambre);
}

.cm-content ol,
ol.wp-block-list {
	margin: 0 0 1.2em;
	padding-left: 1.5em;
}

.cm-content ol > li,
ol.wp-block-list > li {
	margin-bottom: 0.45em;
	padding-left: 0.25em;
}

.cm-content ol > li::marker,
ol.wp-block-list > li::marker {
	color: var(--cm-ambre);
	font-weight: 600;
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) ul > li::before {
	background: var(--cm-ambre-clair);
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) ol > li::marker {
	color: var(--cm-ambre-clair);
}

.cm-section--nuit .cm-card ul > li::before,
.cm-section--nuit .cm-aside ul > li::before {
	background: var(--cm-ambre);
}

/* --------------------------------------------------------------------------
   Tables: horizontal rules only, header on papier
   -------------------------------------------------------------------------- */

.wp-block-table {
	margin: 32px 0;
	overflow-x: auto;
}

body .wp-block-table table,
.cm-content table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid var(--cm-rule);
	font-size: 0.9375rem;
	line-height: 1.55;
}

body .wp-block-table th,
body .wp-block-table td,
.cm-content th,
.cm-content td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--cm-rule);
	text-align: left;
	vertical-align: top;
}

body .wp-block-table thead,
body .wp-block-table tfoot {
	border: 0;
}

body .wp-block-table thead th,
.cm-content thead th {
	background: var(--cm-papier);
	color: var(--cm-nuit);
	font-weight: 600;
}

body .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: transparent;
}

body .wp-block-table figcaption,
.wp-element-caption {
	margin-top: 10px;
	color: var(--cm-gris);
	font-size: 0.875rem;
}

.cm-section--nuit .wp-block-table table {
	background: var(--cm-white);
	color: var(--cm-encre);
}

/* --------------------------------------------------------------------------
   Details / summary (FAQ)
   -------------------------------------------------------------------------- */

.wp-block-details {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--cm-rule);
	border-bottom: 1px solid var(--cm-rule);
}

.wp-block-details + .wp-block-details {
	border-top: 0;
}

.wp-block-details summary {
	position: relative;
	display: block;
	padding: 20px 44px 20px 0;
	color: var(--cm-nuit);
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.45;
	list-style: none;
	cursor: pointer;
	transition: color 0.15s ease;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--cm-ambre);
	font-family: var(--cm-serif);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1;
}

.wp-block-details[open] > summary::after {
	content: "\2013";
}

.wp-block-details summary:hover {
	color: var(--cm-azur);
}

.wp-block-details > :not(summary) {
	padding-right: 44px;
}

.wp-block-details > :last-child:not(summary) {
	margin-bottom: 22px;
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) .wp-block-details {
	border-color: var(--cm-rule-dark);
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) .wp-block-details summary {
	color: var(--cm-white);
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) .wp-block-details summary::after {
	color: var(--cm-ambre-clair);
}

/* --------------------------------------------------------------------------
   Separator, misc blocks
   -------------------------------------------------------------------------- */

body .wp-block-separator,
.cm-content hr {
	height: 0;
	margin: 48px 0;
	border: 0;
	border-top: 1px solid var(--cm-rule);
	background: none;
	color: var(--cm-rule);
	opacity: 1;
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) .wp-block-separator {
	border-top-color: var(--cm-rule-dark);
}

/* Palette helper classes (editor-color-palette) */
.has-nuit-color { color: var(--cm-nuit) !important; }
.has-azur-color { color: var(--cm-azur) !important; }
.has-ambre-color { color: var(--cm-ambre) !important; }
.has-ambre-clair-color { color: var(--cm-ambre-clair) !important; }
.has-papier-color { color: var(--cm-papier) !important; }
.has-encre-color { color: var(--cm-encre) !important; }
.has-gris-color { color: var(--cm-gris) !important; }
.has-blanc-color { color: var(--cm-white) !important; }
.has-nuit-background-color { background-color: var(--cm-nuit) !important; }
.has-azur-background-color { background-color: var(--cm-azur) !important; }
.has-ambre-background-color { background-color: var(--cm-ambre) !important; }
.has-ambre-clair-background-color { background-color: var(--cm-ambre-clair) !important; }
.has-papier-background-color { background-color: var(--cm-papier) !important; }
.has-encre-background-color { background-color: var(--cm-encre) !important; }
.has-gris-background-color { background-color: var(--cm-gris) !important; }
.has-blanc-background-color { background-color: var(--cm-white) !important; }

/* --------------------------------------------------------------------------
   Page header band + breadcrumb
   -------------------------------------------------------------------------- */

.cm-page-header {
	padding: 40px 0 44px;
	background: var(--cm-papier);
	border-bottom: 1px solid var(--cm-rule);
}

.cm-page-title {
	max-width: 900px;
	margin: 0;
}

.cm-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	color: var(--cm-gris);
	font-size: 0.875rem;
	line-height: 1.5;
}

.cm-breadcrumb li + li::before {
	content: "\203A";
	margin: 0 10px;
	color: var(--cm-gris);
}

.cm-breadcrumb a {
	color: var(--cm-gris);
	text-decoration: none;
}

.cm-breadcrumb a:hover {
	color: var(--cm-azur);
	text-decoration: underline;
}

.cm-breadcrumb [aria-current="page"] {
	color: var(--cm-encre);
}

.cm-listing {
	padding-top: 56px;
	padding-bottom: 88px;
}

.cm-listing__item {
	padding: 24px 0;
	border-bottom: 1px solid var(--cm-rule);
}

.cm-listing__item h2 {
	font-size: 1.375rem;
	margin-bottom: 8px;
}

.cm-listing__item h2 a {
	color: var(--cm-nuit);
	text-decoration: none;
}

.cm-listing__item h2 a:hover {
	color: var(--cm-azur);
	text-decoration: underline;
}

.cm-search-block {
	margin: 40px 0;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 560px;
}

.search-form label {
	flex: 1 1 240px;
}

.search-form .search-field {
	width: 100%;
}

/* --------------------------------------------------------------------------
   Forms ([cm_contact])
   -------------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
select,
textarea {
	width: 100%;
	padding: 11px 12px;
	background: var(--cm-white);
	color: var(--cm-encre);
	border: 1px solid var(--cm-gris);
	border-radius: 2px;
	font-family: var(--cm-sans);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 0.15s ease;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	border-color: var(--cm-azur);
	outline: 2px solid var(--cm-azur);
	outline-offset: 1px;
}

textarea {
	min-height: 180px;
	resize: vertical;
}

.cm-contact {
	margin: 32px 0 0;
	max-width: 780px;
}

.cm-form__note {
	color: var(--cm-gris);
	font-size: 0.875rem;
}

.cm-form__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px 24px;
}

@media (min-width: 640px) {
	.cm-form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cm-field--full {
		grid-column: 1 / -1;
	}
}

.cm-field label {
	display: block;
	margin-bottom: 6px;
	color: var(--cm-encre);
	font-size: 0.9375rem;
	font-weight: 500;
}

.cm-req {
	color: var(--cm-ambre);
}

.cm-field [aria-invalid="true"] {
	border-color: var(--cm-ambre);
	border-width: 2px;
}

.cm-field__error {
	margin: 6px 0 0;
	color: var(--cm-ambre);
	font-size: 0.875rem;
	font-weight: 500;
}

.cm-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.cm-consent input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 3px 0 0;
	accent-color: var(--cm-azur);
}

.cm-consent label {
	margin: 0;
	font-weight: 400;
	line-height: 1.55;
}

.cm-form__submit {
	margin: 28px 0 0;
}

.cm-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cm-notice {
	margin: 0 0 24px;
	padding: 16px 20px;
	background: var(--cm-papier);
	border-left: 3px solid var(--cm-azur);
	color: var(--cm-encre);
}

.cm-notice--error {
	border-left-color: var(--cm-ambre);
}

.cm-notice:focus {
	outline: 2px solid var(--cm-azur);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Map ([cm_map])
   -------------------------------------------------------------------------- */

.cm-map {
	margin: 32px 0 0;
}

.cm-map__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--cm-rule);
	background: var(--cm-papier);
}

.cm-map__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.cm-map__link {
	margin: 10px 0 0;
	font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.cm-footer {
	padding: 72px 0 0;
	background: var(--cm-nuit);
	color: var(--cm-muted-dark);
	font-size: 0.9375rem;
	line-height: 1.65;
}

.cm-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px 48px;
	padding-bottom: 56px;
}

@media (min-width: 700px) {
	.cm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1080px) {
	.cm-footer__grid {
		grid-template-columns: 1.3fr 1.4fr 0.9fr 1.2fr;
	}
}

.cm-footer__logo {
	display: inline-block;
	margin-bottom: 20px;
	line-height: 0;
}

.cm-footer__logo img {
	display: block;
	height: 48px;
	width: auto;
}

.cm-footer__brand p {
	max-width: 36ch;
	margin: 0;
}

.cm-footer__title {
	margin: 0 0 18px;
	color: var(--cm-ambre-clair);
	font-family: var(--cm-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.cm-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cm-footer__list li {
	margin: 0 0 8px;
}

.cm-footer a {
	color: var(--cm-muted-dark);
	text-decoration: none;
}

.cm-footer a:hover {
	color: var(--cm-white);
	text-decoration: underline;
}

.cm-footer__address {
	margin: 0 0 16px;
	font-style: normal;
}

.cm-footer__label {
	display: block;
	color: var(--cm-white);
	font-weight: 500;
}

.cm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 20px 0 28px;
	border-top: 1px solid var(--cm-rule-dark);
	font-size: 0.8125rem;
}

.cm-footer__bottom p {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Business card page (template-carte.php)
   -------------------------------------------------------------------------- */

body.cm-carte-page {
	background: var(--cm-papier);
}

.cm-carte {
	max-width: 480px;
	margin: 0 auto;
	padding: 0 0 40px;
	background: var(--cm-papier);
}

.cm-carte__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 28px 24px;
	background: var(--cm-nuit);
}

.cm-carte__logo {
	display: block;
	height: 40px;
	width: auto;
}

.cm-carte__top .cm-lang,
.cm-carte__top .cm-lang a {
	color: var(--cm-muted-dark);
}

.cm-carte__top .cm-lang__current {
	color: var(--cm-white);
}

.cm-carte__top .cm-lang__sep {
	color: var(--cm-rule-dark);
}

.cm-carte__person {
	padding: 32px 24px 8px;
}

.cm-carte__name {
	margin: 0 0 6px;
	font-size: 2rem;
	line-height: 1.15;
}

.cm-carte__role {
	margin: 0 0 4px;
	color: var(--cm-encre);
	font-weight: 500;
}

.cm-carte__company {
	margin: 0;
	color: var(--cm-gris);
	font-size: 0.9375rem;
}

.cm-carte__summary {
	padding: 16px 24px 0;
	font-size: 1rem;
	line-height: 1.6;
}

.cm-carte__summary > :last-child {
	margin-bottom: 0;
}

.cm-carte__title {
	margin: 0 0 14px;
	color: var(--cm-ambre);
	font-family: var(--cm-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cm-carte__domains,
.cm-carte__contacts {
	margin: 24px 24px 0;
	padding-top: 20px;
	border-top: 1px solid var(--cm-rule);
}

.cm-carte__domains ul,
.cm-carte__contacts ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cm-carte__domains li {
	position: relative;
	margin: 0 0 6px;
	padding-left: 1.2em;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.cm-carte__domains li::before {
	content: "";
	position: absolute;
	left: 0;
	top: calc(0.725em - 3px);
	width: 6px;
	height: 6px;
	background: var(--cm-ambre);
}

.cm-carte__domains a {
	color: var(--cm-encre);
	text-decoration: none;
}

.cm-carte__domains a:hover {
	color: var(--cm-azur);
	text-decoration: underline;
}

.cm-carte__actions {
	display: grid;
	gap: 10px;
	margin: 28px 24px 0;
}

.cm-carte__btn {
	display: block;
	padding: 15px 18px;
	background: var(--cm-white);
	color: var(--cm-azur);
	border: 1.5px solid var(--cm-azur);
	border-radius: 2px;
	font-size: 1.0625rem;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.cm-carte__btn:hover {
	background: var(--cm-azur);
	color: var(--cm-white);
	text-decoration: none;
}

.cm-carte__btn--primary {
	background: var(--cm-azur);
	color: var(--cm-white);
}

.cm-carte__btn--primary:hover {
	background: var(--cm-nuit);
	border-color: var(--cm-nuit);
}

.cm-carte__contacts address {
	margin: 0 0 12px;
	font-style: normal;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.cm-carte__label {
	display: block;
	color: var(--cm-nuit);
	font-weight: 600;
}

.cm-carte__contacts li {
	margin: 0 0 4px;
	font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Editor tweaks (selectors are prefixed by .editor-styles-wrapper)
   -------------------------------------------------------------------------- */

.editor-styles-wrapper .cm-section,
.editor-styles-wrapper .cm-hero,
.editor-styles-wrapper .cm-cta {
	--cm-pad-x: 32px;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
	.cm-header,
	.cm-footer,
	.cm-skip,
	.cm-burger {
		display: none !important;
	}

	.wp-block-group.cm-hero,
	.wp-block-group.cm-section--nuit,
	.wp-block-group.cm-cta {
		background: none;
		color: var(--cm-encre);
	}

	:is(.cm-hero, .cm-section--nuit, .cm-cta) :is(h1, h2, h3, p) {
		color: var(--cm-encre) !important;
	}
}

/* ==========================================================================
   Images (core/image, core/cover), hero photo, card media
   ========================================================================== */

.wp-block-image,
.cm-content figure.wp-block-image {
	margin: 32px 0;
}

.wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 0;
	box-shadow: none;
}

.wp-block-image:not(.is-resized):not(.alignleft):not(.alignright):not(.aligncenter) img {
	width: 100%;
}

.wp-block-image figcaption,
.wp-element-caption {
	margin-top: 10px;
	margin-bottom: 0;
	color: var(--cm-gris);
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: start;
}

.cm-figure img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

:is(.cm-hero, .cm-section--nuit, .cm-cta) .wp-element-caption {
	color: var(--cm-muted-dark);
}

body .wp-block-cover,
body .wp-block-cover-image {
	min-height: 420px;
	margin: 32px 0;
	padding: 64px clamp(24px, 5vw, 56px);
	color: var(--cm-white);
}

.cm-content > .wp-block-cover.alignfull {
	margin: 0;
	padding-left: var(--cm-pad-x);
	padding-right: var(--cm-pad-x);
}

body .wp-block-cover .wp-block-cover__background:not([class*="-background-color"]) {
	background-color: var(--cm-nuit);
}

.wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--cm-max);
	margin-left: auto;
	margin-right: auto;
}

.wp-block-cover :is(h1, h2, h3, h4, p) {
	color: var(--cm-white);
}

.wp-block-cover.is-light :is(h1, h2, h3, h4, p) {
	color: var(--cm-nuit);
}

/* Hero with the page's featured image (body.cm-hero-photo + --cm-hero-img). */
.cm-hero-photo .cm-content .wp-block-group.cm-hero {
	background-color: var(--cm-nuit);
	background-image: linear-gradient(90deg, rgba(10, 46, 88, 0.94) 0%, rgba(10, 46, 88, 0.8) 55%, rgba(10, 46, 88, 0.45) 100%), var(--cm-hero-img);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

html[dir="rtl"] .cm-hero-photo .cm-content .wp-block-group.cm-hero {
	background-image: linear-gradient(270deg, rgba(10, 46, 88, 0.94) 0%, rgba(10, 46, 88, 0.8) 55%, rgba(10, 46, 88, 0.45) 100%), var(--cm-hero-img);
}

@media (max-width: 781px) {
	html[dir] .cm-hero-photo .cm-content .wp-block-group.cm-hero {
		background-image: linear-gradient(rgba(10, 46, 88, 0.86), rgba(10, 46, 88, 0.86)), var(--cm-hero-img);
	}
}

/* Card image on top (from [cm_domains] or a core/image first in a cm-card). */
.cm-card .cm-card__media,
.cm-card > .wp-block-image:first-child,
.cm-card > .wp-block-group__inner-container > .wp-block-image:first-child {
	margin: -28px -28px 22px;
	padding: 0;
}

.cm-card__media img,
.cm-card > .wp-block-image:first-child img,
.cm-card > .wp-block-group__inner-container > .wp-block-image:first-child img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 0;
}

/* Business card: photo band, landline link, labels */
.cm-carte__photo {
	line-height: 0;
}

.cm-carte__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 7;
	object-fit: cover;
}

.cm-carte__btn--small {
	padding: 9px 14px;
	border-width: 1px;
	border-color: var(--cm-rule);
	font-size: 0.9375rem;
}

.cm-carte__k {
	color: var(--cm-gris);
	font-size: 0.875rem;
	margin-inline-end: 6px;
}

.cm-footer__k {
	color: var(--cm-white);
	font-weight: 500;
	margin-inline-end: 6px;
}

/* LTR islands (phones, e-mails) inside RTL text */
.cm-ltr,
html[dir="rtl"] [dir="ltr"] {
	direction: ltr;
	unicode-bidi: isolate;
}

/* ==========================================================================
   Arabic (RTL) — html[dir="rtl"], IBM Plex Sans Arabic for body and titles
   ========================================================================== */

html[dir="rtl"] {
	--cm-serif: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, Arial, sans-serif;
	--cm-sans: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] body {
	text-align: right;
	line-height: 1.85;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
	letter-spacing: 0;
	line-height: 1.4;
}

/* Never letter-space or uppercase Arabic (breaks letter joining). */
html[dir="rtl"] .cm-eyebrow,
html[dir="rtl"] .cm-footer__title,
html[dir="rtl"] .cm-carte__title,
html[dir="rtl"] .cm-lang {
	letter-spacing: 0;
	text-transform: none;
}

html[dir="rtl"] .cm-eyebrow,
html[dir="rtl"] .cm-footer__title,
html[dir="rtl"] .cm-carte__title {
	font-size: 0.9375rem;
}

html[dir="rtl"] .has-text-align-justify,
html[dir="rtl"] [style*="text-align:justify"],
html[dir="rtl"] [style*="text-align: justify"] {
	text-align: right !important;
}

html[dir="rtl"] .cm-skip {
	left: auto;
	right: 16px;
}

html[dir="rtl"] .cm-subtoggle {
	margin-left: 0;
	margin-right: -8px;
}

html[dir="rtl"] .cm-menu .sub-menu {
	left: auto;
	right: 0;
}

html[dir="rtl"] .cm-burger {
	margin-left: 0;
	margin-right: auto;
}

@media (max-width: 1079px) {
	html[dir="rtl"] .cm-menu .sub-menu {
		padding: 0 16px 12px 0;
	}
}

html[dir="rtl"] blockquote {
	padding: 4px 24px 4px 0;
	border-left: 0;
	border-right: 3px solid var(--cm-ambre);
}

html[dir="rtl"] .wp-block-group.cm-aside {
	border-left: 0;
	border-right: 3px solid var(--cm-ambre);
}

html[dir="rtl"] .cm-notice {
	border-left: 0;
	border-right: 3px solid var(--cm-azur);
}

html[dir="rtl"] .cm-notice--error {
	border-right-color: var(--cm-ambre);
}

html[dir="rtl"] .cm-content ul > li,
html[dir="rtl"] ul.wp-block-list > li,
html[dir="rtl"] ul.cm-list > li,
html[dir="rtl"] .cm-carte__domains li {
	padding-left: 0;
	padding-right: 1.4em;
}

html[dir="rtl"] .cm-content ul > li::before,
html[dir="rtl"] ul.wp-block-list > li::before,
html[dir="rtl"] ul.cm-list > li::before,
html[dir="rtl"] .cm-carte__domains li::before {
	left: auto;
	right: 0.1em;
}

html[dir="rtl"] .cm-content ol,
html[dir="rtl"] ol.wp-block-list {
	padding-left: 0;
	padding-right: 1.5em;
}

html[dir="rtl"] .cm-content ol > li,
html[dir="rtl"] ol.wp-block-list > li {
	padding-left: 0;
	padding-right: 0.25em;
}

html[dir="rtl"] body .wp-block-table th,
html[dir="rtl"] body .wp-block-table td,
html[dir="rtl"] .cm-content th,
html[dir="rtl"] .cm-content td {
	text-align: right;
}

html[dir="rtl"] .wp-block-details summary {
	padding: 20px 0 20px 44px;
}

html[dir="rtl"] .wp-block-details summary::after {
	right: auto;
	left: 6px;
}

html[dir="rtl"] .wp-block-details > :not(summary) {
	padding-right: 0;
	padding-left: 44px;
}

html[dir="rtl"] .cm-breadcrumb li + li::before {
	content: "\2039";
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"] {
	direction: ltr;
	text-align: right;
}

html[dir="rtl"] .cm-consent label,
html[dir="rtl"] .cm-field label {
	text-align: right;
}

.cm-lang [lang="ar"] {
	font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

/* ---- Photo layout (side photos, banners, strips) ---- */
body .wp-block-columns.cm-photo-split { align-items: center; gap: clamp(28px, 5vw, 64px); }
.cm-photo-split .cm-figure, .cm-banner, .cm-photostrip .cm-figure { margin: 0; }
.cm-photo-split .cm-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.cm-banner { margin: 8px 0 40px !important; }
.cm-banner img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; display: block; }
.cm-photostrip { padding-top: 0 !important; }
.cm-photostrip .cm-grid { gap: 16px; }
.cm-photostrip .cm-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.cm-section--paper .cm-photo-split .cm-figure img, .cm-section--nuit .cm-photo-split .cm-figure img { box-shadow: none; }
@media (max-width: 781px) {
  .cm-photo-split .wp-block-column.cm-photo-col { order: -1; }
  .cm-banner img { aspect-ratio: 16 / 9; }
  .cm-photostrip .cm-grid { grid-template-columns: 1fr 1fr; }
  .cm-photostrip .cm-grid > :nth-child(3) { display: none; }
}
