/* =============================================================================
   AU CŒUR DU CORPS — HOMEPAGE LAB « L'ORGANISME »
   Page : home-lab-mimo-x3k7p  ·  Root class : .acdcmimo
   -----------------------------------------------------------------------------
   Chargé UNIQUEMENT pour cette page (MU-plugin acdc-home-lab-mimo.php, via
   enqueue_block_assets → front + éditeur). Aucun autre fichier partagé n'est
   touché. Tous les sélecteurs sont encapsulés sous .acdcmimo.

   Concept : la page est un organisme. Le logo est le "cœur" d'où part une veine
   dorée qui traverse et relie les sections ; les textures, densités et lumières
   évoluent progressivement au fil du défilement.

   Sûreté :
   - Tout reste visible et correct sans JavaScript (static-first).
   - prefers-reduced-motion neutralise toute la chorégraphie (.acdcmimo-motion
     n'est alors jamais posée par organism.js).
   - Les couches décoratives sont aria-hidden, pointer-events:none, et forcent
     position:absolute !important (l'échelle z d'Atomic pose position:relative
     sur les enfants non-techniques d'une surface décorée).
   ========================================================================== */

.acdcmimo {
	/* Palette (miroir de theme.json, repli autonome) */
	--mimo-plum: #2d1b2e;
	--mimo-plum-mid: #3a2233;
	--mimo-bordeaux: #3a1d2a;
	--mimo-bordeaux-deep: #2d1520;
	--mimo-burgundy: #1a0e1a;
	--mimo-burgundy-deep: #120912;
	--mimo-ivory: #f7f1e8;
	--mimo-rose: #efe3dc;
	--mimo-mauve: #7b5b7a;
	--mimo-gold: #c9a961;
	--mimo-gold-soft: rgb(201 169 97 / 0.55);
	--mimo-gold-faint: rgb(201 169 97 / 0.16);
	--mimo-ink: var(--mimo-ivory);

	/*
	 * Repli de contexte Atomic : la feuille atom-wp-theme peint p/body avec
	 * var(--awp-context-text) (prune foncé) quand aucun ancêtre ne pose
	 * awp-context--dark. Notre racine fournit la valeur claire par défaut ; les
	 * sections qui portent awp-context--dark restent prioritaires (plus proches).
	 */
	--awp-context-text: rgb(247 241 232 / 0.88);
	--awp-context-heading: var(--mimo-ivory);

	position: relative;
	isolation: isolate;
	margin-block: 0;
	color: var(--mimo-ink);
	font-family: var(--wp--preset--font-family--body-font, "Manrope", system-ui, sans-serif);
	/* Le fond sombre profond est porté par la racine pour que la veine ait un
	 * socle continu même entre les sections. */
	background:
		radial-gradient(120% 60% at 78% -6%, rgb(123 91 122 / 0.22) 0%, transparent 55%),
		radial-gradient(120% 70% at 12% 104%, rgb(58 29 42 / 0.85) 0%, transparent 60%),
		linear-gradient(180deg, var(--mimo-burgundy) 0%, var(--mimo-plum) 34%, var(--mimo-bordeaux) 68%, var(--mimo-burgundy-deep) 100%);
	overflow: clip;
}

/* --- Typographie partagée ------------------------------------------------- */
.acdcmimo :where(h1, h2, h3) {
	font-family: var(--wp--preset--font-family--display-font, "Cormorant Garamond", Georgia, serif);
	font-style: italic;
	font-weight: 600;
	text-wrap: balance;
	letter-spacing: -0.01em;
}
.acdcmimo h1 { font-size: clamp(2.9rem, 6.2vw, 5.6rem); line-height: 1.02; }
/* Les styles globaux du thème peignent h1 en --wp--preset--color--text (prune
 * foncé) : illisible sur nos fonds sombres. On rétablit l'ivoire (les h2
 * dorés du thème, plus spécifiques, sont conservés). */
.acdcmimo h1,
.acdcmimo h2,
.acdcmimo h3 { color: var(--mimo-ivory); }
.acdcmimo h2 { font-size: clamp(2.15rem, 4.2vw, 3.9rem); line-height: 1.08; }
.acdcmimo h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.18; }
.acdcmimo p { line-height: 1.82; }

/* --- Structure : conteneur de section ------------------------------------- */
.acdcmimo .acdcmimo-section {
	position: relative;      /* z-index auto → n'écrase pas la veine (z 1) */
	/*
	 * Atomic pose isolation: isolate sur .awp-has-decoration / .acdc-surface.
	 * La section devient alors un contexte d'empilement atomique : tout son
	 * contenu (z 3) est peint SOUS la veine racine (z 1), qui traverserait le
	 * texte. On neutralise l'isolation dans notre périmètre uniquement pour
	 * rétablir l'échelle z commune : fonds de section (auto/0) < veine (1) <
	 * décors (2) < contenu (3). L'isolation racine .acdcmimo conserve la
	 * bulle de mélange (le screen de la veine reste cantonné à la page).
	 */
	isolation: auto;
	padding: clamp(4.5rem, 9vw, 9rem) clamp(1.25rem, 5vw, 3.5rem);
	scroll-margin-top: 5.5rem;
}
/* Le reset de marge ne doit pas annuler la superposition du moteur de découpe :
 * une section découpée porte sa propre marge négative (--awp-edge-bite) et c'est
 * elle qui révèle la surface voisine. Neutraliser cette marge laissait voir le
 * fond du document dans la bande de découpe. */
.acdcmimo .acdcmimo-section:not(.awp-has-edge-clip) {
	margin-block: 0;
}
.acdcmimo .acdcmimo-inner {
	position: relative;
	z-index: 3;              /* le contenu passe au-dessus de la veine (z 1) */
	max-width: 68rem;
	margin-inline: auto;
}
.acdcmimo .acdcmimo-inner--narrow { max-width: 52rem; }
.acdcmimo .acdcmimo-inner--wide { max-width: 78rem; }

/* Sous-entête éditoriale */
.acdcmimo .acdcmimo-eyebrow {
	font-family: var(--wp--preset--font-family--body-font, "Manrope", sans-serif);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--mimo-gold);
	margin: 0 0 1.15rem;
}
/* L'ornement des labels (trait — texte — trait) est défini une seule fois,
   dans le thème enfant, sur le contrat d'overline du thème parent : plus
   de trait local ici, et plus d'asymétrie liée à la composition centrée. */
.acdcmimo .acdcmimo-lead {
	font-size: clamp(1.12rem, 1.5vw, 1.4rem);
	line-height: 1.72;
	color: rgb(247 241 232 / 0.9);
	max-width: 40rem;
}
.acdcmimo .acdcmimo-note {
	font-size: 0.86rem;
	line-height: 1.7;
	color: rgb(247 241 232 / 0.6);
	border-left: 2px solid var(--mimo-gold-faint);
	padding-left: 1rem;
	max-width: 44rem;
}
.acdcmimo .acdcmimo-gold { color: var(--mimo-gold); }

/* =============================================================================
   LA VEINE — élément organique continu traversant toutes les sections
   ========================================================================== */
.acdcmimo .acdcmimo-vein {
	position: absolute !important;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;              /* au-dessus des fonds de section, sous le contenu */
	pointer-events: none;
	mix-blend-mode: screen;  /* or luminux additif sur prune/bordeaux */
	opacity: 0.9;
}
.acdcmimo .acdcmimo-vein__path {
	fill: none;
	stroke: var(--mimo-gold);
	stroke-width: 1.5;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke; /* épaisseur constante malgré le stretch du viewBox */
	filter: drop-shadow(0 0 6px rgb(201 169 97 / 0.45));
	/* Sans JS : tracé entièrement visible (pas de dasharray) → décor statique. */
}
.acdcmimo .acdcmimo-vein__halo {
	fill: none;
	stroke: var(--mimo-gold);
	stroke-width: 10;
	opacity: 0.1;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	filter: blur(8px);
}
.acdcmimo .acdcmimo-vein__pulse {
	fill: var(--mimo-gold);
	filter: drop-shadow(0 0 10px rgb(201 169 97 / 0.95));
	opacity: 0;             /* révélé seulement par JS + motion */
}
.acdcmimo .acdcmimo-vein__pulse-halo {
	fill: var(--mimo-gold);
	opacity: 0;
	filter: blur(4px);
}
.acdcmimo-motion .acdcmimo-vein__pulse { opacity: 1; transition: opacity 0.6s ease; }
.acdcmimo-motion .acdcmimo-vein__pulse-halo { opacity: 0.35; transition: opacity 0.6s ease; }
/* Le conteneur SVG doit remplir exactement la veine (viewBox étiré). */
.acdcmimo .acdcmimo-vein svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* =============================================================================
   HERO « LE CŒUR »
   ========================================================================== */
.acdcmimo .acdcmimo-hero { padding-block: clamp(3.5rem, 10vh, 8rem); }
.acdcmimo .acdcmimo-hero__stage {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(1.4rem, 3vw, 2.4rem);
}

/* Halo vivant derrière le cœur */
.acdcmimo .acdcmimo-hero__halo {
	position: absolute !important;
	top: clamp(1rem, 6vw, 3rem);
	left: 50%;
	transform: translateX(-50%);
	width: min(80vw, 46rem);
	aspect-ratio: 1;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 50% 46%, rgb(201 169 97 / 0.22) 0%, rgb(201 169 97 / 0.08) 34%, transparent 66%),
		radial-gradient(circle at 52% 54%, rgb(153 82 111 / 0.28) 0%, transparent 60%);
	border-radius: 50%;
	filter: blur(6px);
}
.acdcmimo-motion .acdcmimo-hero__halo {
	animation: mimo-breathe 9s ease-in-out infinite;
}
@keyframes mimo-breathe {
	0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.85; }
	50%      { transform: translateX(-50%) scale(1.09); opacity: 1; }
}

/* Cœur : le logo officiel, intact et identifiable */
.acdcmimo .acdcmimo-hero__corewrap {
	position: relative;
	z-index: 2;
	display: inline-block;
	will-change: transform;
}
.acdcmimo .acdcmimo-hero__core {
	position: relative;
	z-index: 2;
	margin: 0;
	width: clamp(9rem, 20vw, 15rem);
	will-change: transform;
}
.acdcmimo .acdcmimo-hero__core img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 18px 40px rgb(18 9 18 / 0.55));
}
/* Anneau organique fin qui respire autour du cœur */
.acdcmimo .acdcmimo-hero__ring {
	position: absolute !important;
	inset: -14%;
	z-index: 1;
	pointer-events: none;
	border: 1px solid rgb(201 169 97 / 0.35);
	border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
}
.acdcmimo-motion .acdcmimo-hero__ring { animation: mimo-ring 16s ease-in-out infinite; }
@keyframes mimo-ring {
	0%, 100% { transform: rotate(0deg) scale(1); border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%; }
	50%      { transform: rotate(180deg) scale(1.04); border-radius: 54% 46% 48% 52% / 46% 54% 50% 54%; }
}

.acdcmimo .acdcmimo-hero__eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: rgb(247 241 232 / 0.72);
	margin: 0;
}
.acdcmimo .acdcmimo-hero__title { margin: 0; max-width: 18ch; }
.acdcmimo .acdcmimo-hero__lead { margin: 0 auto; max-width: 42rem; }
.acdcmimo .acdcmimo-hero__keywords {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.acdcmimo .acdcmimo-hero__keywords li {
	font-size: 0.74rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgb(247 241 232 / 0.82);
	border: 1px solid rgb(201 169 97 / 0.32);
	border-radius: 999px;
	padding: 0.42rem 0.95rem;
	background: rgb(201 169 97 / 0.05);
}
.acdcmimo .acdcmimo-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem 1.1rem;
	justify-content: center;
	margin-top: 0.4rem;
}

/* Indicateur de défilement */
.acdcmimo .acdcmimo-scrollcue {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.4rem;
	font-size: 0.68rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgb(247 241 232 / 0.5);
}
.acdcmimo .acdcmimo-scrollcue__line {
	width: 1px;
	height: 3.4rem;
	background: linear-gradient(180deg, var(--mimo-gold), transparent);
	overflow: hidden;
	position: relative;
}
.acdcmimo-motion .acdcmimo-scrollcue__line::after {
	content: "";
	position: absolute;
	top: -40%;
	left: 0;
	width: 100%;
	height: 40%;
	background: var(--mimo-ivory);
	animation: mimo-cue 2.4s ease-in-out infinite;
}
/* Travel is expressed with transform: percentage `top` re-ran a layout pass on
   every frame (60/s at rest). translateY resolves against the cue height (40%
   of the line), so 400% reproduces the original -40% → 120% course exactly. */
@keyframes mimo-cue {
	0%   { transform: translateY(0); opacity: 0; }
	40%  { opacity: 1; }
	100% { transform: translateY(400%); opacity: 0; }
}

/* =============================================================================
   BOUTONS (portés par les presets du thème + finitions locales)
   ========================================================================== */
.acdcmimo .acdcmimo-btnrow {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem 1.1rem;
	margin-top: 1.6rem;
}
.acdcmimo .wp-block-button__link {
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}
.acdcmimo .wp-block-button__link:hover { transform: translateY(-2px); }
.acdcmimo .acdc-cta-gold .wp-block-button__link:hover { box-shadow: 0 12px 34px rgb(201 169 97 / 0.34); }
.acdcmimo .acdc-cta-outline .wp-block-button__link:hover { box-shadow: 0 12px 30px rgb(0 0 0 / 0.28); }

/* =============================================================================
   BLOCS ÉDITORIAUX GÉNÉRIQUES
   ========================================================================== */
.acdcmimo .acdcmimo-prose > * + * { margin-top: 1.15rem; }
.acdcmimo .acdcmimo-center { text-align: center; }
.acdcmimo .acdcmimo-center .acdcmimo-lead,
.acdcmimo .acdcmimo-center .acdcmimo-note { margin-inline: auto; }
/* Repères (3 piliers) */
.acdcmimo .acdcmimo-pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1rem, 3vw, 2rem);
	margin-top: 2.8rem;
}
.acdcmimo .acdcmimo-pillar {
	position: relative;
	padding: 1.9rem 1.6rem 1.7rem;
	border: 1px solid rgb(201 169 97 / 0.2);
	border-radius: 1.1rem 1.4rem 1.1rem 1.6rem;
	background: linear-gradient(160deg, rgb(247 241 232 / 0.05), rgb(247 241 232 / 0.015));
	backdrop-filter: blur(2px);
}
.acdcmimo .acdcmimo-pillar__num {
	font-family: var(--wp--preset--font-family--display-font, serif);
	font-style: italic;
	font-size: 1.1rem;
	color: var(--mimo-gold);
	opacity: 0.85;
}
.acdcmimo .acdcmimo-pillar h3 { margin: 0.4rem 0 0.6rem; color: var(--mimo-ivory); }
.acdcmimo .acdcmimo-pillar p { margin: 0; font-size: 0.95rem; color: rgb(247 241 232 / 0.78); }

/* Liste organique (situations / étapes) */
.acdcmimo .acdcmimo-flow {
	list-style: none;
	margin: 2.4rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.1rem;
}
.acdcmimo .acdcmimo-flow li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem 1.4rem;
	align-items: baseline;
	padding: 1.15rem 0.2rem;
	border-top: 1px solid rgb(201 169 97 / 0.16);
}
.acdcmimo .acdcmimo-flow li:last-child { border-bottom: 1px solid rgb(201 169 97 / 0.16); }
.acdcmimo .acdcmimo-flow__idx {
	font-family: var(--wp--preset--font-family--display-font, serif);
	font-style: italic;
	font-size: 1.35rem;
	color: var(--mimo-gold);
	min-width: 2.6rem;
}
.acdcmimo .acdcmimo-flow__body h3 { margin: 0 0 0.35rem; }
.acdcmimo .acdcmimo-flow__body p { margin: 0; color: rgb(247 241 232 / 0.8); }

/* Grille de situations (parcours) */
.acdcmimo .acdcmimo-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2.4rem;
}
.acdcmimo .acdcmimo-chip {
	border: 1px solid rgb(201 169 97 / 0.28);
	border-radius: 999px;
	padding: 0.7rem 1.25rem;
	font-size: 0.92rem;
	color: rgb(247 241 232 / 0.88);
	background: rgb(247 241 232 / 0.04);
	transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.acdcmimo .acdcmimo-chip:hover {
	border-color: rgb(201 169 97 / 0.6);
	background: rgb(201 169 97 / 0.08);
	transform: translateY(-2px);
}

/* Phrase manifeste */
.acdcmimo .acdcmimo-manifesto {
	font-family: var(--wp--preset--font-family--display-font, serif);
	font-style: italic;
	font-weight: 600;
	font-size: clamp(1.9rem, 4.4vw, 3.4rem);
	line-height: 1.14;
	text-align: center;
	color: var(--mimo-gold);
	text-shadow: 0 0 2.4rem rgb(201 169 97 / 0.22);
	margin: 2.6rem 0 0;
}

/* Encadré "cadre" */
.acdcmimo .acdcmimo-frame {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.4rem;
	margin-top: 2.6rem;
}
.acdcmimo .acdcmimo-frame__item {
	padding: 1.6rem 1.5rem;
	border-radius: 1.2rem;
	border: 1px solid rgb(201 169 97 / 0.2);
	background: linear-gradient(155deg, rgb(247 241 232 / 0.055), transparent 70%);
}
.acdcmimo .acdcmimo-frame__item h3 { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--mimo-gold); }
.acdcmimo .acdcmimo-frame__item p { margin: 0; font-size: 0.95rem; color: rgb(247 241 232 / 0.82); }

/* Contact final */
.acdcmimo .acdcmimo-contact__card {
	position: relative;
	margin-top: 2.4rem;
	padding: clamp(2.2rem, 5vw, 3.4rem);
	border-radius: 1.6rem;
	border: 1px solid rgb(201 169 97 / 0.28);
	background:
		radial-gradient(120% 140% at 50% 0%, rgb(201 169 97 / 0.1), transparent 60%),
		linear-gradient(160deg, rgb(45 27 46 / 0.6), rgb(18 9 18 / 0.6));
	text-align: center;
}
.acdcmimo .acdcmimo-contact__card .acdcmimo-btnrow { justify-content: center; }

/* =============================================================================
   ÉTATS DE RÉVÉLATION (motion) — visibles par défaut, animés si JS autorisé
   ========================================================================== */
.acdcmimo-motion [data-acdcmimo-reveal] {
	opacity: 0;
	transform: translateY(22px);
	filter: blur(4px);
	transition:
		opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.9s ease;
	transition-delay: var(--mimo-delay, 0s);
	will-change: opacity, transform;
}
.acdcmimo-motion [data-acdcmimo-reveal].is-inview {
	opacity: 1;
	transform: none;
	filter: none;
}

/* =============================================================================
   DENSITÉ / LUMIÈRE par section : voiles organiques très discrets
   ========================================================================== */
.acdcmimo .acdcmimo-section::after {
	content: "";
	position: absolute !important;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(90% 60% at 50% 0%, rgb(123 91 122 / 0.12), transparent 70%);
}
.acdcmimo .acdcmimo-section--deep::after {
	background: radial-gradient(100% 70% at 50% 100%, rgb(18 9 18 / 0.5), transparent 72%);
}
.acdcmimo .acdcmimo-section--warm::after {
	background: radial-gradient(90% 70% at 80% 20%, rgb(201 169 97 / 0.08), transparent 66%);
}

/* =============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
	.acdcmimo .acdcmimo-pillars { grid-template-columns: 1fr; }
	.acdcmimo .acdcmimo-frame { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
	.acdcmimo .acdcmimo-section { padding-inline: 1.15rem; }
	.acdcmimo .acdcmimo-flow li { grid-template-columns: 1fr; gap: 0.35rem; }
	.acdcmimo .acdcmimo-hero__keywords li { font-size: 0.68rem; padding: 0.38rem 0.8rem; }
	.acdcmimo .acdcmimo-btnrow .wp-block-button { width: 100%; }
	.acdcmimo .acdcmimo-btnrow .wp-block-button__link { display: block; text-align: center; }
	.acdcmimo .acdcmimo-vein { opacity: 0.5; }  /* la veine s'efface sur petit écran */
}

/* =============================================================================
   MOUVEMENT RÉDUIT — tout est immédiatement au repos, sans transition
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.acdcmimo *,
	.acdcmimo *::before,
	.acdcmimo *::after {
		animation: none !important;
		transition: none !important;
	}
	.acdcmimo-motion [data-acdcmimo-reveal] {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
	.acdcmimo .acdcmimo-vein__pulse { opacity: 0 !important; }
	.acdcmimo .acdcmimo-hero__halo,
	.acdcmimo .acdcmimo-hero__ring { transform: translateX(-50%) scale(1); opacity: 0.9; }
	.acdcmimo .acdcmimo-hero__ring { transform: none; }
}
