/*
 * Décors des styles de blocs (front + éditeur). CSS custom : theme.json ne sait
 * pas générer de pseudo-éléments.
 */

/* Étoile orange collée au dernier mot (maquette : composant « titre de section »).
   margin-bottom négatif : l'étoile descend sous la ligne sans agrandir la hauteur de ligne. */
.is-style-titre-section::after,
.cm-etoile::after {
	content: "";
	display: inline-block;
	width: var(--wp--custom--etoile--largeur);
	height: 0.91em;
	margin-bottom: -0.71em;
	background: url("../images/etoile.svg") center / contain no-repeat;
}

/* Formulaires Fluent Forms : libellé et placeholder de la maquette (theme.json ne couvre ni label ni ::placeholder). */
.fluentform .ff-el-input--label label {
	font-weight: 500;
}

/* Placeholder gris et non gras : il ne doit pas ressembler à une saisie (tous les formulaires). */
.fluentform .ff-el-form-control::placeholder {
	color: var(--wp--preset--color--noir);
	font-weight: 400;
	opacity: 0.45;
}

/* Bouton d'envoi pleine largeur (maquettes Contact, Newsletter). */
.fluentform .cm-envoi .wp-element-button {
	width: 100%;
}

/* Zone de message : rayon « image » (maquette Contact), la pilule ne convient qu'aux champs d'une ligne. */
.fluentform textarea {
	border-radius: var(--wp--preset--border-radius--image);
}

/* Aide sous le champ (maquette Contact : 12px). */
.fluentform .ff-el-help-message {
	font-size: var(--wp--preset--font-size--mini);
	font-style: normal;
	color: var(--wp--preset--color--noir);
}

/* Titre « Barre orange » (maquette Article) : barre dégradée 9px à gauche du titre. */
.is-style-barre-orange::before {
	content: "";
	position: absolute;
	top: 0.1em;
	bottom: 0.1em;
	left: 0;
	width: 9px;
	border-radius: var(--wp--preset--border-radius--petit);
	background: var(--wp--preset--gradient--orange-beige);
}

/* Photo « La meilleure offre » : suit la hauteur de la pile de cartes voisine, qui varie avec la largeur (un ratio fixe laisse un vide sous la photo). */
.cm-photo-pleine,
.cm-photo-pleine img {
	height: 100%;
}

/* Transition douce entre les états (survol, focus, onglet actif). :where() laisse la priorité aux animations du header. */
:where(a, button, input, textarea, select, .wp-element-button) {
	transition: color var(--wp--custom--transition), background-color var(--wp--custom--transition), border-color var(--wp--custom--transition), box-shadow var(--wp--custom--transition), opacity var(--wp--custom--transition), text-decoration-color var(--wp--custom--transition);
}

/* Survol des boutons orange : opacité sur tout le bouton (theme.json n'a pas de réglage d'opacité). Les onglets et le bouton secondaire gardent leur style. */
.wp-element-button:hover:not(.is-style-onglet *, .is-style-onglet-actif *, .is-style-secondaire *) {
	opacity: var(--wp--custom--bouton--opacite-survol);
}

/* Boutons à hauteur fixe (54px, 44px en « Compact ») : theme.json n'a pas de min-height. Les onglets gardent leur hauteur. */
.wp-element-button:not(.is-style-onglet *, .is-style-onglet-actif *) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--wp--custom--bouton--hauteur-grand);
	white-space: nowrap;
}

/* Style « Compact » (bouton de la navbar) : 44px de haut, texte 16px. */
.is-style-compact .wp-element-button {
	min-height: var(--wp--custom--bouton--hauteur);
	padding-inline: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--p-1);
}

/* ———————————————————————————————————————————————————————————————
 * Charte (handoff accueil, 26/10) : CSS que theme.json ne sait pas exprimer.
 * ——————————————————————————————————————————————————————————————— */

/* Titres équilibrés sur leurs lignes, liens soulignés plus épais au survol. */
:where(h1, h2, h3, h4, .cm-hero__chapo) {
	text-wrap: balance;
}

a:hover {
	text-decoration-thickness: 2px;
}

/* Fond de page fixe derrière le contenu (handoff) : un calque fixe, car background-attachment: fixed
   est ignoré sur iOS et force le recalcul du verre à chaque image de défilement. Même image que theme.json. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background: var(--wp--custom--degrade-repli) url("../images/degrade.webp") 50% 0 / cover no-repeat;
}

/* Ancres (#services, #faq…) visibles sous la navbar collante. */
[id] {
	scroll-margin-top: var(--wp--custom--header--hauteur);
}

/* Cartes à contenu empilé : le lien d'action reste en bas, quelle que soit la hauteur. */
.cm-carte {
	display: flex;
	flex-direction: column;
}

.cm-carte__texte {
	max-width: 24rem;
	line-height: 1.5;
	text-wrap: pretty;
}

.cm-carte__texte--large {
	max-width: 32rem;
}

.cm-carte > .is-style-lien-action:last-child {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--20);
}

.cm-projet__texte > .is-style-lien-action:last-child {
	margin-top: auto;
}

/* Étiquettes au-dessus du lien, alignées en bas d'une carte à l'autre (même place que sur la page Projets). */
.cm-projet__texte > .cm-projet__etiquettes {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--10);
}

.cm-projet__texte > .cm-projet__etiquettes + .is-style-lien-action:last-child {
	margin-top: 0;
}

.cm-puces {
	margin-top: auto !important; /* l'emporte sur la marge de flux générée par WordPress */
	padding-top: var(--wp--preset--spacing--35);
}

.cm-puces + .is-style-lien-action:last-child {
	margin-top: var(--wp--preset--spacing--20);
	padding-top: 0;
}

/* Puces beige de la carte « avec captation » : montent en cascade au survol de la carte. */
.cm-puce {
	margin: 0;
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--15);
	border: 1px solid var(--wp--custom--puce--contour);
	border-radius: var(--wp--preset--border-radius--puce);
	background: var(--wp--preset--color--beige-clair);
	font-size: var(--wp--preset--font-size--p-2);
	white-space: nowrap;
	transition: transform var(--wp--custom--duree--lente) var(--wp--custom--courbe--sortie);
}

.cm-puce:nth-child(2) { transition-delay: 75ms; }
.cm-puce:nth-child(3) { transition-delay: 150ms; }
.cm-carte:hover .cm-puce:nth-child(1) { transform: translateY(-8px); }
.cm-carte:hover .cm-puce:nth-child(2) { transform: translateY(-12px); }
.cm-carte:hover .cm-puce:nth-child(3) { transform: translateY(-16px); }

/* Cartes alignées entre elles (subgrid) : titre (emoji compris), texte, liste et lien sur les mêmes lignes d'une carte
   à l'autre ; la variante large (Pour qui) ajoute un surtitre au-dessus du titre. */
.cm-sous-grille {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 4;
	row-gap: var(--wp--preset--spacing--15);
}

.cm-sous-grille--large {
	grid-row: span 5;
	row-gap: var(--wp--preset--spacing--20);
}

.cm-sous-grille > * {
	margin: 0 !important; /* l'espacement vient de row-gap, pas des marges de flux */
}

.cm-sous-grille > .is-style-coches {
	align-self: start;
	padding-top: var(--wp--preset--spacing--10);
}

/* Carte « The CM Agency » : photo et texte passent l'un sous l'autre dès que le texte manquerait de place
   (handoff : 300px + 360px minimum), pas seulement sous 782px comme les colonnes WordPress. */
.wp-block-columns.cm-agence {
	flex-wrap: wrap !important;
}

.cm-agence > .wp-block-column:first-child {
	flex: 1 1 300px !important;
	max-width: 460px;
}

.cm-agence > .wp-block-column:last-child {
	flex: 1 1 360px !important;
}

.cm-sans-coupure {
	white-space: nowrap;
}

/* ——— Hero ——— */

.cm-hero > :is(h1, p, .wp-block-buttons) {
	animation: cm-fade-up var(--wp--custom--duree--entree) var(--wp--custom--courbe--sortie) both;
}

/* Chapô sur deux lignes en desktop (handoff : 860px max). */
.cm-hero > .cm-hero__chapo {
	max-width: var(--wp--custom--mesure--chapo);
}

.cm-hero > p { animation-delay: 100ms; }
.cm-hero > .wp-block-buttons { animation-delay: 200ms; }

.cm-vitrine {
	position: relative;
}

/* Panneau de la vitrine : sans carte, entrée inclinée qui garde une légère perspective. */
.cm-vitrine__panneau {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30);
	transform-origin: top;
	animation: cm-mockup-in var(--wp--custom--duree--mockup) var(--wp--custom--courbe--sortie) 300ms both;
}

/* Carte « publication Instagram » : en-tête, visuel cliquable (toute la carte), barre d'actions décorative. */
.cm-post {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--petit);
	background: var(--wp--preset--color--blanc);
	box-shadow: var(--wp--preset--shadow--md);
	color: var(--wp--preset--color--bleu-fonce);
	text-align: left;
	transition: transform var(--wp--custom--duree--lente) var(--wp--custom--courbe--sortie);
}

.cm-post--avant {
	box-shadow: var(--wp--preset--shadow--float);
}

.cm-post:hover {
	transform: translateY(var(--wp--custom--survol--montee));
}

.cm-post > *,
.cm-post figure {
	margin: 0;
}

.cm-post__entete {
	align-items: center;
	gap: var(--wp--preset--spacing--10);
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--15);
}

.cm-post__entete p {
	flex: 1;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	font-size: var(--wp--preset--font-size--publication);
	font-weight: 600;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-post__entete::after {
	content: "•••" / "";
	font-size: var(--wp--preset--font-size--mini);
	letter-spacing: 1px;
	line-height: 1;
}

.cm-post__avatar {
	flex: none;
}

.cm-post__avatar img {
	display: block;
	width: 32px;
	height: 32px;
	border: 1px solid var(--wp--custom--avatar--contour);
	border-radius: 50%;
	object-fit: cover;
}

.cm-post__image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Lien étendu : toute la carte mène à la publication. */
.cm-post__image a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Barre d'actions (cœur, commentaire, partage, enregistrer) : pictos en masque, couleur du texte. */
.cm-post::after {
	content: "";
	display: block;
	flex: none;
	height: 44px;
	background: currentColor;
	-webkit-mask: url("../images/instagram/coeur.svg") 12px 10px / 22px no-repeat, url("../images/instagram/commentaire.svg") 48px 12px / 18px no-repeat, url("../images/instagram/partage.svg") 80px 12px / 18px no-repeat, url("../images/instagram/enregistrer.svg") right 12px top 11px / 20px no-repeat;
	mask: url("../images/instagram/coeur.svg") 12px 10px / 22px no-repeat, url("../images/instagram/commentaire.svg") 48px 12px / 18px no-repeat, url("../images/instagram/partage.svg") 80px 12px / 18px no-repeat, url("../images/instagram/enregistrer.svg") right 12px top 11px / 20px no-repeat;
}

/* Reel : pictogramme ▶ en haut à gauche du visuel (sous l'en-tête de 52px). */
.cm-post--reel::before {
	content: "";
	position: absolute;
	top: 62px;
	left: 10px;
	z-index: 1;
	width: 22px;
	height: 22px;
	background: url("../images/instagram/lecture.svg") center / contain no-repeat;
	filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.35));
	pointer-events: none;
}

/* Badges flottants autour de la vitrine (masqués en mobile par la visibilité native) ; accueil : chacun à 35px du post le plus proche. */
.cm-vitrine > .cm-satellite {
	position: absolute;
	z-index: 10;
	width: max-content;
	margin: 0;
	padding: var(--wp--preset--spacing--17);
	border: var(--wp--custom--verre--epaisseur) solid var(--wp--custom--verre--contour-fort);
	border-radius: var(--wp--preset--border-radius--citation);
	background: var(--wp--preset--gradient--verre-fort);
	box-shadow: var(--wp--preset--shadow--float);
	-webkit-backdrop-filter: var(--wp--custom--verre--flou);
	backdrop-filter: var(--wp--custom--verre--flou);
	text-align: left;
	animation: cm-fade-up var(--wp--custom--duree--entree) var(--wp--custom--courbe--sortie) 1100ms both, cm-float 5.5s ease-in-out 1800ms infinite alternate;
}

.cm-satellite p {
	margin: 0;
}

.cm-satellite--ines {
	top: -48px;
	left: max(-56px, calc(8px - var(--wp--custom--gouttiere)));
	align-items: center;
}

.cm-satellite__avatar {
	flex: none;
	margin: 0;
}

.cm-satellite__avatar img {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	box-shadow: var(--wp--preset--shadow--avatar);
	object-fit: cover;
}

.cm-satellite--ines .has-p-2-font-size {
	white-space: nowrap;
}

.cm-vitrine > .cm-satellite--captation {
	right: max(-72px, calc(8px - var(--wp--custom--gouttiere)));
	bottom: -66px;
	padding-block: var(--wp--preset--spacing--15);
	animation-delay: 1200ms, 1900ms;
	animation-duration: var(--wp--custom--duree--entree), 6.5s;
}

.cm-satellite--captation > * + * {
	margin-top: var(--wp--preset--spacing--10);
}

.cm-satellite--captation > * + * + * {
	margin-top: var(--wp--preset--spacing--05);
}

.cm-satellite__surtitre {
	color: var(--wp--preset--color--bleu-fonce);
	font-size: var(--wp--preset--font-size--mini);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Tuile ☀️ inclinée (pages projets) : « rotate » se cumule avec le transform des animations. */
.cm-vitrine > .cm-satellite--soleil {
	bottom: -28px;
	left: -20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	padding: 0;
	border-radius: var(--wp--preset--border-radius--verre);
	rotate: -8deg;
	font-size: 36px;
	line-height: 1;
	animation-delay: 1300ms, 2000ms;
	animation-duration: var(--wp--custom--duree--entree), 7s;
}

/* ——— Bandeau de logos (défilement en boucle : accueil.js ; pause au survol des logos) ——— */

.cm-bandeau {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	overflow: hidden;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	border: var(--wp--custom--verre--epaisseur) solid var(--wp--custom--verre--contour-carte);
	border-radius: var(--wp--preset--border-radius--carte);
	background: var(--wp--preset--gradient--verre);
	background-clip: padding-box;
	-webkit-backdrop-filter: var(--wp--custom--verre--flou);
	backdrop-filter: var(--wp--custom--verre--flou);
}

.cm-bandeau figure {
	flex-shrink: 0;
	margin: 0;
}

.cm-bandeau img {
	display: block;
	width: auto;
	height: 52px;
}

.cm-bandeau.is-defilant {
	flex-wrap: nowrap;
	padding: var(--wp--preset--spacing--10) 0;
}

.cm-bandeau__vue {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.cm-bandeau__piste {
	display: flex;
	width: max-content;
	animation: cm-defilement var(--wp--custom--duree--bandeau) linear infinite;
}

.cm-bandeau__piste:hover,
.cm-bandeau__piste:focus-within {
	animation-play-state: paused;
}

.cm-bandeau__lot {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
}

/* Projets phares (accueil) : cartes projets dans le bandeau défilant, sans le cadre verre du bandeau de logos.
   Le défilement reste dans la largeur de contenu ; marge verticale du lot = place pour le survol (−4px) et l'ombre. */
.cm-bandeau--cartes,
.cm-bandeau--cartes.is-defilant {
	align-items: stretch;
	gap: var(--wp--preset--spacing--25);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.cm-bandeau--cartes .cm-bandeau__piste {
	animation-duration: var(--wp--custom--duree--bandeau-cartes);
}

/* Demi-écart de chaque côté du lot : entre la fin d'un lot et le début de sa copie, le même écart qu'entre deux cartes. */
.cm-bandeau--cartes .cm-bandeau__lot {
	align-items: stretch;
	gap: var(--wp--preset--spacing--25);
	padding: var(--wp--preset--spacing--20) calc(var(--wp--preset--spacing--25) / 2);
}

.cm-bandeau--cartes .is-style-verre-lien {
	flex-shrink: 0;
	box-sizing: border-box;
	width: min(var(--wp--custom--accueil--carte-projet), var(--wp--custom--accueil--carte-projet-max));
}

/* Sans défilement (pas de JS, animations réduites) : cartes en rangées centrées. Le groupe est en flux :
   on annule la marge de flux de WordPress entre cartes, et on laisse dépasser la montée au survol et l'ombre. */
.cm-bandeau--cartes:not(.is-defilant) {
	overflow: visible;
}

.cm-bandeau--cartes > .wp-block-group {
	margin-block: 0;
}

/* Cartes en mouvement : pas de flou d'arrière-plan recalculé à chaque image (le dégradé verre reste). */
.cm-bandeau--cartes .cm-bandeau__piste .is-style-verre-lien {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.cm-bandeau--cartes img {
	width: 100%;
	height: auto;
}

.cm-compteur {
	font-variant-numeric: tabular-nums;
}

/* ——— FAQ : catégories dépliables (Détails) contenant des questions dépliables ——— */

.cm-faq summary {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	list-style: none;
	cursor: pointer;
}

.cm-faq summary::-webkit-details-marker {
	display: none;
}

.cm-faq summary::after {
	content: "＋" / "";
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	border-radius: var(--wp--preset--border-radius--petit);
	background: var(--wp--preset--color--blanc);
	transition: transform var(--wp--custom--duree--lente) var(--wp--custom--courbe--sortie);
}

.cm-faq details[open] > summary::after {
	transform: rotate(45deg);
}

/* Ouverture animée là où le navigateur sait animer ::details-content (sinon : ouverture directe). */
.cm-faq details::details-content {
	block-size: 0;
	overflow: hidden;
	transition: block-size var(--wp--custom--duree--lente) var(--wp--custom--courbe--sortie), content-visibility var(--wp--custom--duree--lente) allow-discrete;
}

.cm-faq details[open]::details-content {
	block-size: auto;
}

.cm-faq {
	interpolate-size: allow-keywords;
}

.cm-faq__categorie {
	padding: 0;
}

.cm-faq__categorie > summary {
	padding: var(--wp--preset--spacing--30);
	border-radius: var(--wp--preset--border-radius--verre);
	color: var(--wp--preset--color--bleu-fonce);
	font-family: var(--wp--preset--font-family--gliker);
	font-size: var(--wp--preset--font-size--h-4);
	line-height: 1.375;
	text-transform: uppercase;
}

.cm-faq__categorie > summary::after {
	width: 36px;
	height: 36px;
	font-size: 16px;
}

/* Tuile emoji et nombre de questions, posés par accueil.js. */
.cm-faq__emoji {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--wp--custom--tuile--contour);
	border-radius: var(--wp--preset--border-radius--petit);
	background: var(--wp--custom--tuile--fond);
	box-shadow: var(--wp--preset--shadow--card);
	font-family: var(--wp--preset--font-family--emoji);
	font-size: 22px;
	line-height: 1;
}

.cm-faq__titre {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--07);
}

.cm-faq__nombre {
	color: var(--wp--preset--color--bleu-petrole);
	font-family: var(--wp--preset--font-family--poppins);
	font-size: var(--wp--preset--font-size--p-2);
	line-height: 1.5;
	text-transform: none;
}

.cm-faq__categorie > details {
	margin: 0 var(--wp--preset--spacing--20);
}

.cm-faq__categorie > details + details {
	margin-top: var(--wp--preset--spacing--15);
}

.cm-faq__categorie > details:last-child {
	margin-bottom: var(--wp--preset--spacing--20);
}

.cm-faq__categorie > details {
	border: var(--wp--custom--verre--epaisseur) solid var(--wp--custom--verre--contour-carte);
	border-radius: var(--wp--preset--border-radius--verre);
	background: var(--wp--preset--gradient--verre);
	background-clip: padding-box;
}

.cm-faq__categorie > details > summary {
	min-height: 44px;
	padding: 22px var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--bleu-fonce);
	font-size: var(--wp--preset--font-size--corps-lg);
	font-weight: 600;
}

.cm-faq__categorie > details > summary::after {
	width: 32px;
	height: 32px;
	font-size: 14px;
}

.cm-faq__categorie > details > p {
	max-width: 42rem;
	margin: 0;
	padding: 0 var(--wp--preset--spacing--30) 22px;
	color: var(--wp--preset--color--bleu-petrole);
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.625;
}

/* FAQ (48px) + haut du CTA (16px) : 64px entre les deux, au lieu de l'espacement de section. */
.cm-faq + .cm-cta {
	margin-block-start: var(--wp--preset--spacing--60);
}

/* ——— Footer ——— */

.cm-footer p {
	margin: 0;
}

.cm-footer a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Le bloc Navigation force « color: inherit » sur ses liens : la couleur se pose sur le bloc. */
.cm-footer .wp-block-navigation {
	color: var(--wp--preset--color--orange-vif);
	font-size: var(--wp--preset--font-size--p-1);
}

.cm-footer__adresse {
	flex: 1 1 260px;
}

nav.cm-footer__liens {
	flex: 1 1 240px;
}

.cm-footer__legal {
	flex-basis: 100%;
}

/* Pastilles sociales verre, pictos bleu pétrole puis orange au survol. */
.wp-block-social-links.cm-social .wp-social-link {
	width: 44px;
	height: 44px;
	border: var(--wp--custom--verre--epaisseur) solid var(--wp--custom--verre--contour-carte);
	border-radius: var(--wp--preset--border-radius--pilule);
	background: var(--wp--preset--gradient--verre);
	background-clip: padding-box;
	color: var(--wp--preset--color--bleu-petrole);
	transition: color var(--wp--custom--duree--moyenne) var(--wp--custom--courbe--sortie);
}

.wp-block-social-links.cm-social .wp-social-link:hover {
	color: var(--wp--preset--color--orange-vif);
	transform: none;
}

.wp-block-social-links.cm-social .wp-social-link a {
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 0;
	color: inherit;
}

.wp-block-social-links.cm-social .wp-social-link svg {
	width: 20px;
	height: 20px;
}

/* ——— Apparition des sections au scroll (accueil.js) ——— */

.cm-apparition {
	transition: opacity var(--wp--custom--duree--revelation) var(--wp--custom--courbe--sortie), transform var(--wp--custom--duree--revelation) var(--wp--custom--courbe--sortie);
}

.cm-apparition.is-cache {
	opacity: 0;
	transform: translateY(20px);
}

@media print {
	.cm-apparition.is-cache {
		opacity: 1;
		transform: none;
	}
}

@keyframes cm-fade-up {
	from { opacity: 0; transform: translateY(20px); }
}

@keyframes cm-mockup-in {
	from { opacity: 0; transform: perspective(2000px) rotateX(14deg) translateY(48px); }
	to { transform: perspective(2000px) rotateX(5deg); }
}

@keyframes cm-float {
	to { transform: translateY(-12px); }
}

@keyframes cm-defilement {
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.cm-hero *,
	.cm-hero *::before,
	.cm-hero *::after,
	.cm-bandeau__piste,
	.cm-apparition,
	.cm-faq details::details-content,
	.cm-faq summary::after,
	.cm-puce,
	.cm-post,
	.is-style-verre-lien,
	.is-style-verre-avant {
		animation: none !important;
		transition: none !important;
	}

	.cm-apparition.is-cache {
		opacity: 1;
		transform: none;
	}
}


/* ——— Page Social media (classe cm-sm sur chaque section ; états interactifs posés par social-media.js) ——— */

/* Les groupes en flex / grid l'emporteraient sur l'attribut hidden posé par le script. */
.cm-sm [hidden] {
	display: none !important;
}

/* Mesures de lecture du handoff. */
.cm-mesure-large { max-width: var(--wp--custom--mesure--large); }
.cm-mesure-moyenne { max-width: var(--wp--custom--mesure--moyenne); }
.cm-mesure-courte { max-width: var(--wp--custom--mesure--courte); }

.cm-equilibre {
	text-wrap: balance;
}

.cm-une-ligne {
	white-space: nowrap;
}

/* Encart « Idéal si… » collé en bas de la carte : les cartes d'une rangée ont la même hauteur. */
.cm-en-bas {
	margin-block-start: auto !important; /* l'emporte sur l'espacement de flux généré par WordPress */
}

/* Élément focalisé au clavier jamais caché sous la navbar collante (WCAG 2.4.11). */
.cm-sm :focus-visible {
	scroll-margin-block: var(--wp--custom--header--hauteur) var(--wp--preset--spacing--30);
}

.cm-sm :is(button, [role="tab"], [role="radio"]):focus-visible,
.cm-interrupteur button:focus-visible {
	outline: 2px solid var(--wp--preset--color--bleu-petrole);
	outline-offset: 2px;
}

/* Étiquette posée dans une rangée flex : le style Étiquette force align-self: flex-start, ici centrée sur ses voisins. */
.cm-sm .is-layout-flex:not(.is-vertical) > .is-style-etiquette {
	align-self: center;
}

/* Défilement fluide vers les ancres, page Social media seulement. */
@media (prefers-reduced-motion: no-preference) {
	html:has(.cm-sm) {
		scroll-behavior: smooth;
	}
}

/* Hero : texte (base 560px) et photo (base 320px, 460px max) côte à côte, empilés quand la place manque. */
.cm-sm-hero__corps > .cm-sm-hero__texte {
	flex: 1.7 1 560px;
	min-width: 0;
}

.cm-sm-hero__corps > .cm-sm-hero__visuel {
	flex: 1 1 320px;
	max-width: 460px;
	margin-inline: auto;
}

.cm-sm-hero h1 {
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.cm-sm-hero__photo {
	margin: 0;
}

.cm-sm-hero__photo img {
	display: block;
	width: 100%;
	box-shadow: var(--wp--preset--shadow--mockup);
}

/* Badges flottants de la photo (base : badges du hero de l'accueil), texte sur plusieurs lignes. */
.cm-sm-hero__visuel > .cm-satellite {
	width: 265px;
	font-size: var(--wp--preset--font-size--publication);
	line-height: 1.45;
	text-wrap: balance;
}

.cm-sm-hero__visuel > .cm-satellite--ines {
	top: -28px;
	left: max(-40px, calc(8px - var(--wp--custom--gouttiere)));
}

.cm-sm-hero__visuel > .cm-satellite--info {
	right: max(-48px, calc(8px - var(--wp--custom--gouttiere)));
	bottom: -40px;
	width: 245px;
	animation-delay: 1200ms, 1900ms;
	animation-duration: var(--wp--custom--duree--entree), 6.5s;
}

/* Interrupteur avec / sans captation : pastille bleu foncé qui glisse sous l'option choisie. */
.cm-forfaits.is-interactif .cm-forfaits__nom {
	display: none;
}

.cm-forfaits.is-interactif .cm-forfaits__nom + * {
	margin-block-start: 0;
}

.cm-interrupteur {
	position: relative;
	display: grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	box-sizing: border-box;
	width: min(100%, 440px);
	margin-block-start: var(--wp--preset--spacing--17) !important; /* plus près de son libellé que l'espacement de flux */
	margin-inline: auto !important;
	padding: var(--wp--preset--spacing--08);
	border: var(--wp--custom--verre--epaisseur) solid var(--wp--custom--verre--contour-blanc);
	border-radius: var(--wp--preset--border-radius--pilule);
	background: var(--wp--preset--gradient--verre-fort);
	box-shadow: var(--wp--preset--shadow--md);
	-webkit-backdrop-filter: var(--wp--custom--verre--flou);
	backdrop-filter: var(--wp--custom--verre--flou);
}

.cm-interrupteur button {
	position: relative;
	z-index: 1;
	min-height: 48px;
	padding: 0 var(--wp--preset--spacing--17);
	border: 0;
	border-radius: var(--wp--preset--border-radius--pilule);
	background: transparent;
	color: var(--wp--preset--color--bleu-fonce);
	font-family: var(--wp--preset--font-family--poppins);
	font-size: var(--wp--preset--font-size--p-1);
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.cm-interrupteur [aria-checked="true"] {
	color: var(--wp--preset--color--beige-clair);
}

.cm-interrupteur__pastille {
	position: absolute;
	inset-block: var(--wp--preset--spacing--08);
	left: var(--wp--preset--spacing--08);
	width: calc((100% - 2 * var(--wp--preset--spacing--08)) / var(--nombre, 2));
	border-radius: var(--wp--preset--border-radius--pilule);
	background: var(--wp--preset--color--bleu-fonce);
	box-shadow: var(--wp--preset--shadow--float);
	transform: translateX(calc(var(--choix, 0) * 100%));
	transition: transform 400ms var(--wp--custom--courbe--douce);
}

/* Onglets des packs : l'onglet choisi passe en verre fort, contour orange, légèrement soulevé. */
.cm-packs.is-interactif .cm-packs__onglet {
	position: relative;
	cursor: pointer;
	transition: transform var(--wp--custom--duree--lente) var(--wp--custom--courbe--sortie), box-shadow var(--wp--custom--duree--lente) var(--wp--custom--courbe--sortie), background var(--wp--custom--transition);
}

.cm-packs__onglet[aria-selected="true"] {
	border-color: var(--wp--preset--color--orange);
	background: var(--wp--preset--gradient--verre-fort);
	background-clip: padding-box;
	box-shadow: var(--wp--preset--shadow--lift);
	transform: translateY(var(--wp--custom--survol--montee));
}

.cm-packs.is-interactif .cm-packs__panneaux {
	margin-block-start: var(--wp--preset--spacing--25);
}

/* Livrables numérotés 01, 02… (liste ordonnée native, numéro posé en CSS). */
.cm-livrables {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: livrable;
}

.cm-livrables > li {
	position: relative;
	padding-block: var(--wp--preset--spacing--17);
	padding-left: calc(28px + var(--wp--preset--spacing--17));
	font-size: var(--wp--preset--font-size--note);
	line-height: 1.55;
	counter-increment: livrable;
}

.cm-livrables > li::before {
	content: counter(livrable, decimal-leading-zero) / "";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--orange);
	font-family: var(--wp--preset--font-family--gliker);
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.4;
}

.cm-livrables strong:first-child {
	display: block;
	margin-bottom: var(--wp--preset--spacing--07);
	color: var(--wp--preset--color--bleu-fonce);
	font-size: var(--wp--preset--font-size--p-1);
	font-weight: 600;
	line-height: 1.4;
}

/* Aide au choix : phrases en pilules de verre, la phrase choisie teintée pêche. */
.cm-quiz__phrase {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 56px;
	margin: 0;
	padding: var(--wp--preset--spacing--17) var(--wp--preset--spacing--30);
	border: var(--wp--custom--verre--epaisseur) solid var(--wp--custom--verre--contour-carte);
	border-radius: var(--wp--preset--border-radius--citation);
	background: var(--wp--preset--gradient--verre);
	background-clip: padding-box;
	-webkit-backdrop-filter: var(--wp--custom--verre--flou);
	backdrop-filter: var(--wp--custom--verre--flou);
}

.cm-quiz.is-interactif .cm-quiz__phrase {
	cursor: pointer;
}

.cm-quiz__phrase[aria-checked="true"] {
	border-color: var(--wp--preset--color--orange);
	background: var(--wp--custom--etiquette--fond);
	font-weight: 600;
}

/* Tableau « En un coup d'œil » : notes en pastilles turquoise (social-media.js), défilement horizontal en mobile. */
.cm-coup-doeil {
	margin: 0;
	overflow-x: auto;
}

.cm-coup-doeil table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--p-1);
}

.cm-coup-doeil :is(thead, th, td) {
	border: 0;
	text-align: left;
}

.cm-coup-doeil :is(th, td) {
	padding: var(--wp--preset--spacing--17) var(--wp--preset--spacing--10);
}

.cm-coup-doeil th {
	padding-block: var(--wp--preset--spacing--15);
	font-size: var(--wp--preset--font-size--p-2);
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.cm-coup-doeil tbody tr {
	border-top: 1px solid var(--wp--custom--filet);
}

.cm-coup-doeil tbody td:first-child {
	color: var(--wp--preset--color--bleu-fonce);
	font-family: var(--wp--preset--font-family--gliker);
	font-weight: 700;
	text-transform: uppercase;
}

.cm-notes {
	display: inline-flex;
	gap: var(--wp--preset--spacing--08);
	vertical-align: middle;
}

.cm-notes > span {
	box-sizing: border-box;
	width: 14px;
	height: 14px;
	border: 2px solid var(--wp--preset--color--turquoise);
	border-radius: 50%;
}

.cm-notes > .is-plein {
	background: var(--wp--preset--color--turquoise);
}

/* Comment ça se passe : photo (base 320px) et étapes (base 420px) côte à côte, empilées quand la place manque. */
.cm-deroule > .wp-block-image {
	flex: 1 1 320px;
	min-width: 0;
	margin: 0;
}

.cm-deroule > .wp-block-image img {
	display: block;
	width: 100%;
}

.cm-deroule > .cm-etapes {
	flex: 1.5 1 420px;
	min-width: 0;
}

/* Étapes numérotées dans une tuile (liste ordonnée native, numéro posé en CSS). */
.cm-etapes {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--35);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: etape;
	line-height: 1.6;
}

.cm-etapes > li {
	position: relative;
	min-height: 46px;
	padding-left: calc(46px + var(--wp--preset--spacing--17));
	counter-increment: etape;
}

.cm-etapes > li::before {
	content: counter(etape) / "";
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--wp--custom--tuile--contour);
	border-radius: var(--wp--preset--border-radius--petit);
	background: var(--wp--custom--tuile--fond);
	box-shadow: var(--wp--preset--shadow--xs);
	color: var(--wp--preset--color--bleu-fonce);
	font-family: var(--wp--preset--font-family--gliker);
	font-size: var(--wp--preset--font-size--xl);
}

.cm-etapes strong:first-child {
	display: block;
	margin-bottom: var(--wp--preset--spacing--07);
	color: var(--wp--preset--color--bleu-fonce);
	font-size: var(--wp--preset--font-size--texte-moyen);
	font-weight: 600;
	line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
	.cm-interrupteur__pastille,
	.cm-interrupteur button,
	.cm-packs__onglet {
		transition: none !important;
	}
}


/* ——— Page Contact (classe cm-contact) ——— */

/* Texte et carte formulaire centrés verticalement (la grille native n'a pas de réglage d'alignement). */
.cm-contact__corps {
	align-items: center;
}

/* Badge « Inès, ta CM » au coin de la carte (masqué en mobile par la visibilité native du bloc). */
.cm-vitrine > .cm-satellite--contact {
	top: var(--wp--custom--badge-contact--haut);
	right: var(--wp--custom--badge-contact--droite);
	z-index: 3;
	align-items: center;
}

.cm-satellite--contact .has-p-2-font-size {
	white-space: nowrap;
}

/* État « envoyé » (message de confirmation Fluent Forms, HTML hors éditeur) : prend la place du titre,
   du formulaire et de la mention dans la carte. */
.cm-contact__carte:has(.cm-envoye) > :not(:has(.cm-envoye)) {
	display: none;
}

.fluentform .ff-message-success:has(.cm-envoye) {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.cm-envoye {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	padding-block: var(--wp--preset--spacing--40);
	line-height: 1.6;
	text-align: center;
}

.cm-envoye p {
	max-width: var(--wp--custom--mesure--message);
	margin: 0;
	text-wrap: pretty;
}

.cm-envoye .cm-envoye__emoji {
	font-family: var(--wp--preset--font-family--emoji);
	font-size: var(--wp--custom--emoji-grand);
	line-height: 1;
}

.cm-envoye .cm-envoye__titre {
	color: var(--wp--preset--color--bleu-fonce);
	font-family: var(--wp--preset--font-family--gliker);
	font-size: var(--wp--preset--font-size--h-4);
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}

.cm-envoye .wp-block-buttons {
	justify-content: center;
	gap: var(--wp--preset--spacing--15);
	margin-top: var(--wp--preset--spacing--10);
}

/* Bouton « Écrire un autre message » : style Secondaire (mêmes tokens que styles/secondaire.json, dont le CSS
   n'est chargé que si un bloc Bouton l'utilise dans la page ; ici le bouton vient du message Fluent Forms). */
.cm-envoye .is-style-secondaire .wp-element-button {
	background: var(--wp--custom--bouton--fond-secondaire);
	box-shadow: none;
	color: var(--wp--preset--color--bleu-fonce);
	font-family: var(--wp--preset--font-family--poppins);
}

.cm-envoye .is-style-secondaire .wp-element-button:hover {
	background: var(--wp--preset--color--cyan-clair);
}

/* Et après ton message : photo et étapes centrées, étapes plus aérées que sur la page Social media. */
.cm-contact__etapes {
	align-items: center;
}

.cm-contact__etapes > .wp-block-image {
	margin: 0;
}

.cm-contact__etapes > .wp-block-image img {
	display: block;
	width: 100%;
}

.cm-contact .cm-etapes {
	gap: var(--wp--preset--spacing--40);
}

.cm-contact .cm-etapes > li {
	padding-left: calc(var(--wp--custom--tuile--taille) + var(--wp--preset--spacing--20));
}

.cm-contact .cm-etapes strong:first-child {
	font-size: var(--wp--preset--font-size--lg);
}

/* ——— Pages légales (classe cm-legal) ———
   Sommaire, puces, pilules, encart et surtitre : styles de bloc (styles/*.json), choisis dans l'éditeur. */

/* Texte à côté du sommaire, l'un sous l'autre quand la place manque. */
.cm-legal__corps > .cm-legal__contenu {
	flex: 999 1 var(--wp--custom--colonne--texte);
	min-width: 0;
}

/* Sections visibles sous la navbar après un clic dans le sommaire ; défilement fluide sauf animations réduites. */
.cm-legal [id] {
	scroll-margin-top: calc(var(--wp--custom--header--hauteur) + var(--wp--preset--spacing--25));
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.cm-legal) {
		scroll-behavior: smooth;
	}
}

/* L'essentiel (mentions) : éditeur 2/3, hébergeur 1/3, même hauteur sur une rangée. */
.cm-legal__essentiel > .cm-legal__editeur {
	flex: 2 1 var(--wp--custom--colonne--editeur);
	min-width: 0;
}

.cm-legal__essentiel > .cm-legal__hebergeur {
	flex: 1 1 var(--wp--custom--colonne--hebergeur);
	min-width: 0;
}

/* Grande carte de texte : un filet entre chaque section (une section ajoutée par la cliente le prend aussi). */
.cm-legal__texte > section + section {
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--custom--filet);
}

.cm-legal__texte > section:not(:last-child) {
	padding-bottom: var(--wp--preset--spacing--40);
}

.cm-legal__texte h2 {
	line-height: 1.3;
}

.cm-legal__texte p {
	max-width: var(--wp--custom--mesure--texte);
	line-height: 1.7;
	text-wrap: pretty;
}

/* Étiquette « Mise à jour le… » centrée sous le sous-titre (le style Étiquette l'aligne à gauche par défaut). */
.cm-legal .is-style-etiquette {
	align-self: center;
}

@media (prefers-reduced-motion: reduce) {
	.cm-contact .cm-satellite,
	.is-style-liens-sommaire a::before {
		animation: none !important;
		transition: none !important;
	}
}

/* ——— Page Projets (classe cm-projets ; filtre posé par projets.js) ——— */

/* La carte en grille l'emporterait sur l'attribut hidden posé par le filtre. */
.cm-projets [hidden] {
	display: none !important;
}

/* L'étoile est collée au dernier mot : même retrait à gauche pour que le mot reste optiquement centré. */
.cm-projets .is-style-titre-section {
	padding-left: var(--wp--custom--etoile--largeur);
}

/* Filtre : interrupteur de la page Social media, élargi pour 5 options, 48px au-dessus des cartes.
   Les libellés longs (« Community management ») passent sur deux lignes plutôt que de déborder. */
.cm-projets .cm-interrupteur {
	grid-auto-columns: minmax(0, 1fr); /* colonnes égales même si un mot long voudrait élargir la sienne (pastille) */
	width: min(100%, var(--wp--custom--projets--filtre));
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--55) !important;
}

.cm-projets .cm-interrupteur button {
	padding-inline: var(--wp--preset--spacing--10);
	line-height: 1.2;
	white-space: normal;
}

/* Mobile : 5 colonnes égales ne tiennent pas, les options deviennent des pilules qui passent à la ligne.
   La pastille glissante (calculée pour des colonnes égales) est masquée, l'option choisie prend sa couleur.
   767px = settings.viewport.mobile (theme.json) : une media query ne peut pas lire de variable CSS. */
@media (max-width: 767px) {
	.cm-projets .cm-interrupteur {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: var(--wp--preset--spacing--08);
		border-radius: var(--wp--preset--border-radius--carte);
	}

	.cm-projets .cm-interrupteur__pastille {
		display: none;
	}

	.cm-projets .cm-interrupteur button {
		padding-inline: var(--wp--preset--spacing--17);
		white-space: nowrap;
	}

	.cm-projets .cm-interrupteur [aria-checked="true"] {
		background: var(--wp--preset--color--bleu-fonce);
		box-shadow: var(--wp--preset--shadow--float);
	}
}

/* Cartes alignées entre elles (subgrid) : image, titre, contexte, texte, étiquettes et lien
   sur les mêmes lignes d'une carte à l'autre (handoff). */
.cm-projets__carte {
	display: grid;
	grid-row: span 6;
	grid-template-rows: subgrid;
	row-gap: var(--wp--preset--spacing--12);
}

.cm-projets__carte > * {
	margin: 0 !important; /* l'espacement vient de row-gap, pas des marges de flux */
}

/* Texte en retrait de 12px par rapport à l'image. */
.cm-projets__carte > :not(.wp-block-image) {
	padding-inline: var(--wp--preset--spacing--15);
}

/* 28px entre l'image et le titre (16px + 12px du handoff), row-gap compris. */
.cm-projets__carte > .wp-block-image {
	margin-bottom: calc(var(--wp--preset--spacing--35) - var(--wp--preset--spacing--12)) !important;
}

.cm-projets__carte > p {
	text-wrap: pretty;
}

/* Étiquettes : 8px de plus au-dessus, collées au lien en dessous. */
.cm-projets__carte > .wp-block-group {
	align-content: flex-start;
	padding-top: var(--wp--preset--spacing--10);
}

/* « Voir le projet » : repère visuel du style Lien d'action (le lien est sur le nom du client, étendu à la carte),
   souligné au survol de la carte. */
.cm-projets__voir {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--10);
	min-height: var(--wp--custom--cible--tactile);
}

.cm-projets__voir::after {
	content: "→" / "";
}

.cm-projets__carte:hover > .cm-projets__voir {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

/* Invitation de fin : mesure du chapô, texte équilibré. */
.cm-projets__invitation > p {
	max-width: var(--wp--custom--mesure--chapo);
	text-wrap: balance;
}

/* ——— Page Projet (gabarit page-projet, classe cm-projet sur <main> ; interrupteur posé par projet.js) ——— */

/* Défilement fluide vers #publications et #strategie (boutons du hero). */
@media (prefers-reduced-motion: no-preference) {
	html:has(.cm-projet) {
		scroll-behavior: smooth;
	}
}

/* Hero : H1 au style Titre de section (interligne et approche du titre de section, pas ceux du H1). */
.cm-projet-hero h1 {
	max-width: var(--wp--custom--projet--titre);
	line-height: 1.25;
	letter-spacing: normal;
}

/* Fondu montant échelonné du handoff : 0 / 150 / 200 / 250 / 300 / 400ms (base : .cm-hero). */
.cm-projet-hero > * {
	animation: cm-fade-up var(--wp--custom--duree--revelation) var(--wp--custom--courbe--sortie) both;
}

.cm-projet-hero > :nth-child(2) { animation-delay: 150ms; }
.cm-projet-hero > :nth-child(3) { animation-delay: 200ms; }
.cm-projet-hero > :nth-child(4) { animation-delay: 250ms; }
.cm-projet-hero > :nth-child(5) { animation-delay: 300ms; }
.cm-projet-hero > :nth-child(6) { animation-delay: 400ms; }

.cm-projet-hero__image {
	margin: 0;
}

.cm-projet-hero__image img {
	display: block;
	width: 100%;
	box-shadow: var(--wp--preset--shadow--mockup);
}

/* Badges de l'image (base : badges du hero de l'accueil), un peu plus près de l'image. */
.cm-projet-hero__visuel > .cm-satellite--ines {
	top: var(--wp--custom--projet--badge-haut);
}

.cm-projet-hero__visuel > .cm-satellite--captation {
	bottom: var(--wp--custom--projet--badge-bas);
}

/* Objectifs : liste ordonnée native en grille, numéro « 01 » en CSS sous un filet turquoise. */
.cm-objectifs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--wp--custom--projet--grille)), 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: objectif;
}

.cm-objectifs > li {
	padding-top: var(--wp--preset--spacing--25);
	border-top: 3px solid var(--wp--preset--color--turquoise);
	color: var(--wp--preset--color--bleu-fonce);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 500;
	line-height: 1.5;
	text-wrap: pretty;
	counter-increment: objectif;
}

.cm-objectifs > li::before {
	content: counter(objectif, decimal-leading-zero) / "";
	display: block;
	margin-bottom: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--orange);
	font-family: var(--wp--preset--font-family--gliker);
	font-size: var(--wp--preset--font-size--h-2);
	font-weight: 700;
	line-height: 1;
}

/* Cartes Stratégie : titres sur deux lignes réservées, les listes démarrent à la même hauteur. */
.cm-projet .cm-projet-titre-carte {
	min-height: var(--wp--custom--projet--titre-carte);
}

/* Mesure de lecture (intro de la stratégie, carte des outils). */
.cm-projet .cm-projet-mesure {
	max-width: var(--wp--custom--projet--mesure);
}

/* Outils : une ligne par catégorie, libellé en colonne fixe, filet entre les lignes. */
.cm-projet .cm-outils__ligne {
	align-items: baseline;
}

.cm-outils__ligne + .cm-outils__ligne {
	border-top: 1px solid var(--wp--custom--filet);
}

.cm-outils__libelle {
	flex: 0 0 var(--wp--custom--projet--libelle);
	letter-spacing: var(--wp--custom--projet--interlettrage);
}

.cm-outils__liste {
	flex: 1 1 var(--wp--custom--projet--grille);
}

/* Publications : un seul jeu affiché, choisi dans l'interrupteur (classes .cm-interrupteur de la page Social media). */
.cm-galerie__jeux [hidden] {
	display: none !important; /* les groupes en grille l'emporteraient sur l'attribut hidden */
}

.cm-galerie__jeux.is-interactif .cm-galerie__nom {
	display: none;
}

.cm-galerie__jeux.is-interactif > *,
.cm-galerie__jeux.is-interactif .cm-galerie__nom + * {
	margin-block-start: 0;
}

/* Interrupteur à la largeur de ses libellés (3 options ici) ; les libellés passent sur deux lignes s'il manque de place. */
.cm-projet .cm-interrupteur {
	width: max-content;
	max-width: 100%;
	margin-block-start: var(--wp--preset--spacing--65) !important; /* l'emporte sur la marge de .cm-interrupteur */
}

.cm-projet .cm-interrupteur + .cm-galerie__jeux {
	margin-block-start: var(--wp--preset--spacing--50);
}

.cm-projet .cm-interrupteur button {
	min-height: var(--wp--custom--cible--tactile);
	padding: var(--wp--preset--spacing--15) var(--wp--custom--projet--marge-option);
	line-height: 1.3;
	white-space: normal;
}

/* Mobile (settings.viewport.mobile) : texte et marges réduits pour tenir trois options sur 390px. */
@media (max-width: 767px) {
	.cm-projet .cm-interrupteur button {
		padding-inline: var(--wp--preset--spacing--10);
		font-size: var(--wp--preset--font-size--p-2);
	}
}

/* Visuels des carrousels et emplacements des reels : carte blanche arrondie, montée au survol. */
.cm-galerie__jeu .is-layout-grid > .wp-block-image,
.cm-reel {
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--image);
	background: var(--wp--preset--color--blanc);
	box-shadow: var(--wp--preset--shadow--md);
	transition: transform var(--wp--custom--duree--lente) var(--wp--custom--courbe--sortie), box-shadow var(--wp--custom--duree--lente) var(--wp--custom--courbe--sortie);
}

.cm-galerie__jeu .is-layout-grid > .wp-block-image:hover,
.cm-reel:hover {
	transform: translateY(var(--wp--custom--survol--montee));
	box-shadow: var(--wp--preset--shadow--lift);
}

.cm-galerie__jeu .is-layout-grid > .wp-block-image img {
	display: block;
	width: 100%;
}

/* Reel : case 9:16, picto ▶. Sur le site, une case sans image (bloc Image vide = rien au rendu) est masquée, et le jeu
   entier s'il n'a aucune image ; dans l'éditeur (.editor-styles-wrapper) elles restent visibles pour être remplies. */
body:not(.editor-styles-wrapper) :is(.cm-reel, .cm-galerie__jeu):not(:has(img)) {
	display: none;
}

.cm-reel {
	position: relative;
	aspect-ratio: 9 / 16;
	background: var(--wp--preset--gradient--verre-fort);
}

.cm-reel::after {
	content: "";
	position: absolute;
	top: var(--wp--preset--spacing--15);
	left: var(--wp--preset--spacing--15);
	width: 22px;
	height: 22px;
	background: url("../images/instagram/lecture.svg") center / contain no-repeat;
	filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.35));
	pointer-events: none;
}

.cm-reel .wp-block-image,
.cm-reel img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
	.cm-galerie__jeu .is-layout-grid > .wp-block-image,
	.cm-reel {
		transition: none !important;
	}
}

/* ——— Page Pour qui (classe cm-pq sur chaque section ; onglets posés par pour-qui-onglets.js) ——— */

/* Les groupes en grille l'emporteraient sur l'attribut hidden posé par le script. */
.cm-pq [hidden] {
	display: none !important;
}

/* Défilement fluide vers les ancres (#independants, #pme-tpe…), sauf animations réduites. */
@media (prefers-reduced-motion: no-preference) {
	html:has(.cm-pq) {
		scroll-behavior: smooth;
	}
}

/* « Pour qui ? » : décalé de la largeur de l'étoile pour que le texte reste centré à l'œil (handoff). */
.cm-pq__titre {
	padding-left: var(--wp--custom--etoile--largeur);
}

/* Cartes de profils. Sans JS : liens d'ancre (toute la carte) et « Voir ↓ ». */
.cm-profils__onglet {
	position: relative;
}

.cm-profils__onglet .is-style-titre-lien a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* Sans JS (cartes = liens d'ancre) : « Voir ↓ » en face de la ligne du titre (emoji + nom, h5 à 1.2). */
.cm-profils__onglet::after {
	content: "Voir ↓" / "";
	position: absolute;
	top: var(--wp--preset--spacing--30);
	right: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--bleu-petrole);
	font-size: var(--wp--preset--font-size--publication);
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: calc(var(--wp--preset--font-size--h-5) * 1.2);
	text-transform: uppercase;
}

/* Le titre ne passe pas sous « Voir ↓ ». */
.cm-profils:not(.is-interactif) .cm-profils__onglet .is-style-titre-lien {
	padding-inline-end: var(--wp--preset--spacing--60);
}

/* Onglets (JS) : l'onglet choisi passe en verre fort, contour orange, légèrement soulevé (mêmes états que les packs). */
.cm-profils.is-interactif .cm-profils__onglet {
	cursor: pointer;
	transition: transform var(--wp--custom--duree--lente) var(--wp--custom--courbe--sortie), box-shadow var(--wp--custom--duree--lente) var(--wp--custom--courbe--sortie), border-color var(--wp--custom--transition), background var(--wp--custom--transition);
}

/* Onglets : pas de libellé, la carte choisie se distingue par son contour. */
.cm-profils.is-interactif .cm-profils__onglet::after {
	content: none;
}

.cm-profils__onglet[aria-selected="true"] {
	border-color: var(--wp--preset--color--orange);
	background: var(--wp--preset--gradient--verre-fort);
	background-clip: padding-box;
	box-shadow: var(--wp--preset--shadow--lift);
	transform: translateY(var(--wp--custom--survol--montee));
}

.cm-profils__onglet:focus-visible,
.cm-profils__panneau:focus-visible {
	outline: 2px solid var(--wp--preset--color--bleu-petrole);
	outline-offset: 2px;
}

/* Élément focalisé au clavier jamais caché sous la navbar collante (WCAG 2.4.11). */
.cm-pq :focus-visible {
	scroll-margin-block: var(--wp--custom--header--hauteur) var(--wp--preset--spacing--30);
}

/* Panneau : le bloc « Par où commencer » garde son contour transparent hors du dégradé. */
.cm-profils__offres {
	background-clip: padding-box;
}

/* Carte projet : vignette carrée (fond tuile), logo sur toute la largeur. */
.cm-profils__vignette {
	flex-shrink: 0; /* garde ses 140px en mobile (handoff) */
	aspect-ratio: 1;
	background: var(--wp--custom--tuile--fond);
}

.cm-profils__vignette .wp-block-image {
	width: 100%;
	margin: 0;
}

.cm-profils__vignette img {
	display: block;
	width: 100%;
	height: auto;
}

/* Où je t'accompagne : photo (base 320px, règles .cm-deroule) et points (base 420px) côte à côte, empilés si besoin. */
.cm-deroule > .cm-zones {
	flex: 1.5 1 420px;
	min-width: 0;
}

.cm-zones .is-style-tuile-emoji {
	box-shadow: var(--wp--preset--shadow--xs);
}

/* Lien aligné sur le texte des points (tuile 46px + écart 14px). */
.cm-zones__lien {
	padding-left: calc(var(--wp--custom--tuile--taille) + var(--wp--preset--spacing--17));
}

@media (prefers-reduced-motion: reduce) {
	.cm-profils__onglet {
		transition: none !important;
	}
}

/* ——— Page Blog (classe cm-blog ; templates home.html et category.html) ——— */

/* Hero : bloc de 1040px qui sert de repère aux badges ; espace sous le chapô pour les badges du bas. */
.cm-blog.cm-blog-hero {
	max-width: var(--wp--custom--blog--hero);
	padding-top: var(--wp--preset--spacing--10);
	padding-bottom: var(--wp--custom--blog--hero-bas);
}

.cm-blog-hero > .cm-blog-hero__chapo {
	max-width: var(--wp--custom--blog--chapo);
}

/* Entrées en cascade : surtitre, titre, chapô (0 / 100 / 200 ms). */
.cm-blog-hero > p:first-child { animation-delay: 0ms; }
.cm-blog-hero > h1 { animation-delay: 100ms; }
.cm-blog-hero > h1 + p { animation-delay: 200ms; }

/* Badges flottants (base : badges de l'accueil, .cm-vitrine > .cm-satellite), masqués sous 1024px par la visibilité native. */
.cm-blog-hero > .cm-satellite--info {
	display: flex;
	flex-direction: column;
	width: var(--wp--custom--blog--satellite);
	padding-block: var(--wp--preset--spacing--15);
	font-size: var(--wp--preset--font-size--publication);
	line-height: 1.45;
	text-wrap: balance;
}

.cm-blog-hero > .cm-satellite--info > * + * {
	margin-top: var(--wp--preset--spacing--10);
}

.cm-blog-hero > .cm-blog-hero__dernier {
	top: 0;
	right: 0;
	animation-delay: 1000ms, 1700ms;
	animation-duration: var(--wp--custom--duree--entree), 6.5s;
}

.cm-blog-hero__dernier .wp-block-post-title {
	margin: 0;
	color: var(--wp--preset--color--bleu-fonce);
	font-size: inherit;
	line-height: inherit;
}

.cm-blog-hero__dernier .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.cm-blog-hero__dernier .wp-block-post-title a:hover {
	text-decoration: underline;
}

.cm-blog-hero > .cm-satellite--soleil {
	bottom: var(--wp--preset--spacing--10);
	left: 6%;
	animation-delay: 1100ms, 1800ms;
}

.cm-blog-hero > .cm-blog-hero__conseils {
	right: 0;
	bottom: 0;
	width: var(--wp--custom--blog--satellite-bas);
	animation-delay: 1200ms, 1900ms;
	animation-duration: var(--wp--custom--duree--entree), 6s;
}

/* Cartes d'article : l'image suit les coins arrondis, le titre est un lien étendu à toute la carte
   (étiquettes et « Lire l'article » restent cliquables au-dessus). */
.cm-blog-carte {
	overflow: hidden;
}

.cm-blog-carte .wp-block-post-title {
	margin: 0;
}

.cm-blog-carte .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.cm-blog-carte .wp-block-post-title a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.cm-blog-carte :is(.wp-block-post-terms a, .cm-blog-lire) {
	position: relative;
	z-index: 1;
}

.cm-blog-carte :is(.wp-block-post-excerpt, .wp-block-post-excerpt__excerpt) {
	margin: 0;
}

.cm-blog-carte .wp-block-post-featured-image {
	margin: 0;
}

/* Icônes calendrier et durée en bleu pétrole, comme le texte. */
.cm-blog-carte .wp-block-icon {
	flex: none;
	color: var(--wp--preset--color--bleu-petrole);
}

/* « Lire l'article → » : lien d'action orange (même rendu que le style Lien d'action). */
.cm-blog-lire {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--10);
	align-self: flex-start;
	font-weight: 600;
	text-decoration: none;
}

.cm-blog-lire::after {
	content: "→" / "";
}

.cm-blog-lire:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

/* À la une : image et texte côte à côte (base 380px chacun), l'un sous l'autre quand la place manque. */
.cm-blog-une > * {
	flex: 1 1 var(--wp--custom--blog--colonne);
	min-width: 0;
}

.cm-blog-une__image {
	position: relative;
	min-height: var(--wp--custom--blog--image-min);
}

.cm-blog-une__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Grille : cartes de même hauteur, extrait sur 3 lignes, date et lien en bas de carte. */
.cm-blog .wp-block-post-template > li {
	display: flex;
}

.cm-blog-vignette {
	flex: 1;
}

.cm-blog-vignette .wp-block-post-featured-image img {
	display: block;
	width: 100%;
}

.cm-blog-vignette__extrait .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	text-wrap: pretty;
}

.cm-blog-vignette__pied {
	margin-top: auto !important; /* l'emporte sur l'espacement de flux généré par WordPress */
}

/* Filtre par thématique (liste au style Filtre) : défile horizontalement quand il est plus large que l'écran. */
.cm-filtre {
	overflow-x: auto;
	padding: var(--wp--preset--spacing--07) var(--wp--preset--spacing--07) var(--wp--preset--spacing--20);
}

/* Avec JS, la liste devient l'interrupteur des pages Social media et Projets (blog-filtre.js) :
   largeur de ses 5 libellés, 24px de part et d'autre de chacun (handoff). */
.cm-filtre .cm-interrupteur {
	width: max-content;
	margin-block-start: 0 !important;
}

.cm-filtre .cm-interrupteur button {
	padding-inline: var(--wp--preset--spacing--30);
}

/* Liste rechargée par le filtre : légère atténuation pendant le chargement. */
.cm-blog .wp-block-query[aria-busy="true"] {
	opacity: 0.6;
	transition: opacity var(--wp--custom--duree--moyenne) var(--wp--custom--courbe--sortie);
}

/* Pagination : numéros en pastilles de verre, page courante bleu foncé ; Précédent / Suivant en boutons discrets. */
.cm-blog-pagination {
	margin-top: var(--wp--preset--spacing--55);
	gap: var(--wp--preset--spacing--15);
	font-weight: 600;
}

.cm-blog-pagination .wp-block-query-pagination-numbers {
	display: flex;
	gap: var(--wp--preset--spacing--10);
}

.cm-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--wp--custom--blog--pagination);
	height: var(--wp--custom--blog--pagination);
	border: var(--wp--custom--verre--epaisseur) solid var(--wp--custom--verre--contour-blanc);
	border-radius: var(--wp--preset--border-radius--pilule);
	background: var(--wp--preset--gradient--verre-fort);
	box-shadow: var(--wp--preset--shadow--md);
	color: var(--wp--preset--color--bleu-fonce);
	text-decoration: none;
}

.cm-blog-pagination .page-numbers.current {
	border-color: var(--wp--preset--color--bleu-fonce);
	background: var(--wp--preset--color--bleu-fonce);
	box-shadow: var(--wp--preset--shadow--float);
	color: var(--wp--preset--color--beige-clair);
}

.cm-blog-pagination .page-numbers.dots {
	border: 0;
	background: none;
	box-shadow: none;
}

.cm-blog-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--blog--pagination);
	margin: 0;
	padding: 0 var(--wp--preset--spacing--30);
	border-radius: var(--wp--preset--border-radius--pilule);
	color: var(--wp--preset--color--bleu-fonce);
	text-decoration: none;
}

.cm-blog-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next):hover {
	background: var(--wp--preset--gradient--verre-fort);
}

/* Newsletter : texte (base 340px) et formulaire (base 320px) côte à côte ; champ et bouton sur une ligne. */
.cm-blog-newsletter__corps > .cm-blog-newsletter__texte {
	flex: 1.2 1 var(--wp--custom--blog--texte-newsletter);
	align-self: center;
	min-width: 0;
}

.cm-blog-newsletter__corps > .fluentform {
	flex: 1 1 var(--wp--custom--blog--formulaire);
	min-width: 0;
}

.cm-blog-newsletter .fluentform fieldset {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--wp--preset--spacing--15);
}

.cm-blog-newsletter .fluentform .ff-el-group:not(.cm-envoi) {
	flex: 1 1 var(--wp--custom--blog--champ);
	min-width: 0;
	margin-bottom: 0;
}

.cm-blog-newsletter .fluentform .cm-envoi {
	margin-bottom: 0;
}

.cm-blog-newsletter .fluentform .cm-envoi .wp-element-button {
	width: auto;
}

/* Titre de la carte sur une seule ligne à partir de la tablette (pas de réglage natif de retour à la ligne). */
@media (min-width: 768px) {
	.cm-blog-newsletter__titre {
		white-space: nowrap;
	}
}

/* Après inscription (message de confirmation Fluent Forms, HTML hors éditeur) : texte simple à la place du
   formulaire, sans encadré ni emoji. Le titre passe en Poppins pour laisser la priorité au titre Gliker de la carte. */
:is(.cm-blog-newsletter, .cm-article__newsletter) .ff-message-success {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--wp--preset--color--bleu-petrole);
	line-height: 1.6;
}

.cm-blog-newsletter__corps > .fluentform:has(.ff-message-success) {
	align-self: center;
}

.cm-inscrit {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
}

.cm-inscrit p {
	margin: 0;
	text-wrap: pretty;
}

.cm-inscrit .cm-inscrit__titre {
	color: var(--wp--preset--color--bleu-fonce);
	font-family: var(--wp--preset--font-family--poppins);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 600;
	line-height: 1.4;
}

.cm-article__newsletter .cm-inscrit .cm-inscrit__titre {
	font-size: var(--wp--preset--font-size--p-1);
}

/* Carte de l'article : l'accroche disparaît une fois inscrit, la confirmation suffit. */
.cm-article__newsletter .is-style-verre:has(.ff-message-success) > p {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.cm-blog-carte,
	.cm-filtre a {
		transition: none !important;
	}
}

/* ——— Page Article (gabarit single, classe cm-article sur le main) ———
   La mise en forme du contenu (chapô, sections h2, h3, liste numérotée, tableau) s'applique à tout article,
   sans style à choisir dans l'éditeur. */

/* Colonne latérale (masquée ≤ 1024px par la visibilité native) à côté de l'article, l'un sous l'autre sinon. */
.cm-article__aside {
	flex: 1 1 var(--wp--custom--article--colonne);
	min-width: 0;
}

/* Collante seulement si elle tient dans la fenêtre : navbar 120px + sommaire et newsletter ≈ 690px + marge
   = 860px (valeur en dur : une media query ne lit pas les variables CSS). Plus bas (1366×768…), elle défile
   avec la page, sinon la newsletter resterait sous l'écran pendant toute la lecture. */
@media (min-height: 860px) {
	.cm-article__aside {
		position: sticky;
		top: var(--wp--custom--header--hauteur);
	}
}

.cm-article__principal {
	flex: 999 1 var(--wp--custom--colonne--texte);
	min-width: 0;
}

/* Sommaire : barre de progression (sommaire.js) sous le titre, puis liens numérotés 01, 02… avec barre active à droite. */
.cm-sommaire > .cm-sommaire__progression {
	height: var(--wp--custom--article--progression);
	margin-block-start: var(--wp--preset--spacing--15);
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--pilule);
	background: var(--wp--custom--article--progression-fond);
}

.cm-sommaire__progression > span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: var(--wp--preset--border-radius--pilule);
	background: var(--wp--preset--color--turquoise);
	transition: width var(--wp--custom--article--progression-duree) linear;
}

.cm-sommaire__liens {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--08);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: sommaire;
}

.cm-sommaire__liens li {
	counter-increment: sommaire;
}

.cm-sommaire__liens a {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--15);
	box-sizing: border-box;
	min-height: var(--wp--custom--cible--tactile);
	padding-block: var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--bleu-petrole);
	text-decoration: none;
}

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

.cm-sommaire__liens a::before {
	content: counter(sommaire, decimal-leading-zero) / "";
	flex: none;
	width: var(--wp--custom--article--numero);
	color: var(--wp--preset--color--orange);
	font-family: var(--wp--preset--font-family--gliker);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
	line-height: 1.4;
}

.cm-sommaire__liens a::after {
	content: "";
	flex: none;
	align-self: stretch;
	width: var(--wp--custom--article--barre);
	margin-left: auto;
	border-radius: var(--wp--preset--border-radius--pilule);
	transition: background-color var(--wp--custom--transition);
}

.cm-sommaire__liens a[aria-current] {
	color: var(--wp--preset--color--bleu-fonce);
	font-weight: 600;
}

.cm-sommaire__liens a[aria-current]::after {
	background: var(--wp--preset--color--turquoise);
}

/* Carte Newsletter (pattern partagé) : 16px entre les éléments au lieu de 24px (handoff Article). */
.cm-article__newsletter > .is-style-verre > * + * {
	margin-block-start: var(--wp--preset--spacing--20);
}

.cm-article__newsletter p {
	line-height: 1.6;
}

/* Pas de marge Fluent Forms sous le bouton : la carte garde 24px en bas, comme en haut. */
.cm-article__newsletter .fluentform .ff_submit_btn_wrapper {
	margin-bottom: 0;
}

/* En-tête : avatar rond et séparateurs « · » décoratifs entre autrice, date et temps de lecture
   (en fin d'élément : au retour à la ligne, le point reste en fin de ligne). */
.cm-article__avatar {
	flex: none;
	margin: 0;
}

.cm-article__avatar img {
	display: block;
	width: var(--wp--custom--article--avatar);
	height: var(--wp--custom--article--avatar);
	border-radius: 50%;
	box-shadow: var(--wp--preset--shadow--avatar);
	object-fit: cover;
}

.cm-article__infos > :not(:last-child)::after {
	content: "·" / "";
	margin-left: var(--wp--preset--spacing--10);
}

/* Chapô : premier paragraphe de l'article. */
.cm-article__contenu > p:first-child {
	max-width: var(--wp--custom--mesure--large);
	font-size: var(--wp--preset--font-size--corps-lg);
}

/* Chaque h2 ouvre une section : filet et 48px au-dessus ; l'ancre laisse voir le filet sous la navbar. */
.cm-article__contenu > h2 {
	margin-block-start: var(--wp--preset--spacing--55);
	padding-top: var(--wp--preset--spacing--55);
	border-top: 1px solid var(--wp--custom--filet);
	font-size: var(--wp--preset--font-size--h-3);
	line-height: 1.2;
	scroll-margin-top: calc(var(--wp--custom--header--hauteur) + var(--wp--preset--spacing--55));
}

.cm-article__contenu > h3 {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
}

/* Liste numérotée 01, 02… séparée par des filets ; le premier gras d'un élément sert de titre. */
.cm-article__contenu > ol {
	padding: 0;
	list-style: none;
	counter-reset: article;
}

.cm-article__contenu > ol > li {
	position: relative;
	padding-block: var(--wp--preset--spacing--17);
	padding-left: calc(var(--wp--custom--article--numero) + var(--wp--preset--spacing--17));
	line-height: 1.6;
	counter-increment: article;
}

.cm-article__contenu > ol > li + li {
	border-top: 1px solid var(--wp--custom--filet);
}

.cm-article__contenu > ol > li::before {
	content: counter(article, decimal-leading-zero) / "";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--orange);
	font-family: var(--wp--preset--font-family--gliker);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
	line-height: 1.4;
}

.cm-article__contenu > ol > li > strong:first-child {
	display: block;
	margin-bottom: var(--wp--preset--spacing--07);
	color: var(--wp--preset--color--bleu-fonce);
	font-weight: 600;
}

/* Tableau : encadré verre fort, défilement horizontal en mobile ; 1re colonne en Gliker, 2e en gras sur une ligne. */
.cm-article__contenu > .wp-block-table {
	overflow-x: auto;
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--25);
	border: var(--wp--custom--verre--epaisseur) solid var(--wp--custom--verre--contour-blanc);
	border-radius: var(--wp--preset--border-radius--citation);
	background: var(--wp--preset--gradient--verre-fort);
	background-clip: padding-box;
}

.cm-article__contenu .wp-block-table table {
	width: 100%;
	min-width: var(--wp--custom--article--tableau);
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--p-1);
	line-height: 1.5;
}

.cm-article__contenu .wp-block-table :is(thead, th, td) {
	border: 0;
	text-align: left;
}

.cm-article__contenu .wp-block-table :is(th, td) {
	padding: var(--wp--preset--spacing--17) var(--wp--preset--spacing--10);
}

.cm-article__contenu .wp-block-table th {
	padding-block: var(--wp--preset--spacing--15);
	font-size: var(--wp--preset--font-size--p-2);
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.cm-article__contenu .wp-block-table tbody tr {
	border-top: 1px solid var(--wp--custom--filet);
}

.cm-article__contenu .wp-block-table td:first-child {
	color: var(--wp--preset--color--bleu-fonce);
	font-family: var(--wp--preset--font-family--gliker);
	font-weight: 700;
	text-transform: uppercase;
}

.cm-article__contenu .wp-block-table td:nth-child(2) {
	color: var(--wp--preset--color--bleu-fonce);
	font-weight: 600;
	white-space: nowrap;
}

/* Bio : portrait rond 129px, texte à côté (base 280px) puis dessous quand la place manque. */
.cm-auteur__portrait {
	flex: none;
	margin: 0;
}

.cm-auteur__portrait img {
	display: block;
	width: var(--wp--custom--article--portrait);
	height: var(--wp--custom--article--portrait);
	border-radius: 50%;
	box-shadow: var(--wp--preset--shadow--avatar);
	object-fit: cover;
}

.cm-auteur__texte {
	flex: 1 1 var(--wp--custom--article--colonne);
	min-width: 0;
}

.cm-auteur__texte > .is-style-lien-action {
	margin-block-start: calc(var(--wp--preset--spacing--10) + var(--wp--preset--spacing--07));
}

/* Défilement fluide vers les sections depuis le sommaire. */
@media (prefers-reduced-motion: no-preference) {
	html:has(.cm-article) {
		scroll-behavior: smooth;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cm-sommaire__progression > span,
	.cm-sommaire__liens a::after {
		transition: none;
	}
}

/* ——— Page À propos (classe cm-apropos sur chaque section ; mesures : tokens custom.aPropos) ——— */

/* Carte d'ouverture : photo (base 300px, 432px max) et texte (base 380px) côte à côte, empilés quand la place manque. */
.cm-apropos__carte > .wp-block-image {
	flex: 1 1 var(--wp--custom--a-propos--base-photo-mer);
	max-width: var(--wp--custom--a-propos--photo-mer);
	min-width: 0;
	margin: 0 auto;
}

.cm-apropos__carte > .wp-block-image img {
	display: block;
	width: 100%;
}

.cm-apropos__carte > .cm-apropos__texte {
	flex: 1.4 1 var(--wp--custom--a-propos--base-texte);
	min-width: 0;
}

/* Nom de l'agence en début de présentation : Poppins 600, couleur des titres. */
.cm-apropos__texte strong {
	color: var(--wp--preset--color--bleu-fonce);
	font-weight: 600;
}

.cm-apropos p:not(.cm-equilibre) {
	text-wrap: pretty;
}

/* Mon parcours : photo 460px max, centrée quand elle passe au-dessus des étapes ; titres d'étape 18px. */
.cm-apropos .cm-deroule > .wp-block-image {
	max-width: var(--wp--custom--a-propos--photo-parcours);
	margin-inline: auto;
}

.cm-apropos .cm-etapes strong:first-child {
	font-size: var(--wp--preset--font-size--lg);
}

/* Citation d'Inès : bulle centrée, auteur en dessous (le style Bulle ne règle pas cite). */
.cm-apropos__citation {
	width: 100%;
	max-width: var(--wp--custom--a-propos--citation);
}

.cm-apropos__citation p {
	margin: 0;
}

.cm-apropos__citation cite {
	display: block;
	margin-top: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--p-2);
	font-style: normal;
	font-weight: 600;
}

/* Libellé des chiffres clés sur deux lignes au plus (composant KeyFigure du handoff). */
.cm-apropos .cm-apropos__libelle {
	max-width: var(--wp--custom--a-propos--libelle-chiffre);
}

/* Mesures de lecture du handoff (Community manager). */
.cm-apropos .cm-apropos__intro {
	max-width: var(--wp--custom--a-propos--intro);
}

.cm-apropos .cm-apropos__conclusion {
	max-width: var(--wp--custom--a-propos--conclusion);
}

/* Titres des cartes Community manager sur une ligne (handoff) dès que le conteneur atteint sa largeur maximale
   (1280px = typography.fluid.maxViewportWidth) ; en dessous, « Mesurer et faire grandir » déborderait de sa carte
   (mesuré à 1100px) : retour à la ligne autorisé. */
@media (min-width: 1280px) {
	.cm-apropos__titre-metier {
		white-space: nowrap;
	}
}
