/* ============================================================
   Arnaud Coquillard — site style
   Loaded on every page and in the editor by the ac-site plugin.
   You shouldn't need to edit this file to change any words.
   ============================================================ */

:root {
	--ac-mint: #81dfbc;   --ac-mint-deep: #1a5c44;
	--ac-violet: #ba85fa; --ac-violet-deep: #5a1fa0;
	--ac-rose: #de7684;   --ac-rose-deep: #8a2535;
	--ac-blue: #85affa;   --ac-blue-deep: #1a3c8a;
	--ac-yellow: #f5e48e; --ac-yellow-deep: #7a6010;
	--ac-white: #ffffff;
	--ac-ink: #1a1a2e; --ac-ink-mid: #3d3d5c; --ac-ink-soft: #7a7a9a;
	--ac-bg: #f9f9ff;
	--ac-serif: 'Playfair Display', Georgia, serif;
	--ac-sans: 'Atkinson Hyperlegible', system-ui, sans-serif;
	--ac-pad: clamp(1.25rem, 5vw, 5rem);
}

/* ── 1. THE GROUND ─────────────────────────────────────────────
   Colour sits on <html>; the motif sits on two fixed layers
   behind everything, so it stays still while pages scroll.     */
html { background: var(--ac-bg); }

body,
.editor-styles-wrapper {
	background: transparent !important;
	font-family: var(--ac-sans);
	color: var(--ac-ink);
	line-height: 1.7;
}

/* Two layers added by the plugin itself (BuddyX hides body::before).
   In the editor, the editor canvas pseudo-elements do the same job. */
.ac-ground-rings,
.ac-ground-circles,
.editor-styles-wrapper::before,
.editor-styles-wrapper::after {
	content: "";
	display: block !important;
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

/* Concentric rings — resonance spreading in place */
.ac-ground-rings,
.editor-styles-wrapper::before {
	background: repeating-radial-gradient(circle at 50% 38%,
		rgba(222, 118, 132, 0.075) 0 1.3px, transparent 1.3px 46px);
	-webkit-mask: radial-gradient(circle at 50% 38%, #000 0, rgba(0, 0, 0, 0.35) 28vmax, transparent 55vmax);
	        mask: radial-gradient(circle at 50% 38%, #000 0, rgba(0, 0, 0, 0.35) 28vmax, transparent 55vmax);
	animation: acBreathe 16s ease-in-out infinite;
}

/* Two soft floating circles (from v5) */
.ac-ground-circles,
.editor-styles-wrapper::after {
	background:
		radial-gradient(circle at calc(100% - 4vmax) 3vmax,
			rgba(129, 223, 188, 0.11) 0 22vmax, transparent calc(22vmax + 1px)),
		radial-gradient(circle at 3vmax calc(100% - 3vmax),
			rgba(186, 133, 250, 0.08) 0 18vmax, transparent calc(18vmax + 1px));
}

/* When the script runs, the atmosphere is drawn live on a canvas;
   the CSS rings and circles above are the fallback (and the editor view). */
html.ac-ground-live .ac-ground-rings {
	background: none;
	-webkit-mask: none;
	        mask: none;
	animation: none;
}
/* The live atmosphere has its own colour glows, so the static circles step aside */
html.ac-ground-live .ac-ground-circles { display: none !important; }
.ac-ground-rings canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

@keyframes acBreathe {
	0%, 100% { transform: scale(1);    opacity: 0.85; }
	50%      { transform: scale(1.04); opacity: 1; }
}

/* Let the ground show through BuddyX Pro's content wrappers */
#page, .site, #content, .site-content, .site-wrapper,
.site-content > .container, #primary, .content-area, .site-main,
article.page, .entry-content, .entry-content-wrapper {
	background: transparent !important;
	box-shadow: none !important;
}

/* BuddyX Pro: hide the page-title bar (sub header) on pages built
   from these patterns. Remove this rule if you want it back. */
body.page .site-sub-header { display: none; }

/* ── 2. TYPE ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.editor-styles-wrapper :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--ac-serif);
	font-weight: 400;
	color: var(--ac-ink);
	line-height: 1.2;
	letter-spacing: 0;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }

/* Small label (eyebrow) */
p.is-style-ac-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ac-accent-deep, var(--ac-violet-deep));
}

/* Lead paragraph */
p.is-style-ac-lead {
	font-size: clamp(1rem, 2.2vw, 1.15rem);
	color: var(--ac-ink-mid);
	line-height: 1.9;
	max-width: 60ch;
}

/* Arrow link */
p.is-style-ac-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ac-ink);
	border-bottom: 2px solid var(--ac-accent, var(--ac-violet));
	padding-bottom: 0.2rem;
	transition: gap 0.2s, color 0.2s;
}
p.is-style-ac-link a::after { content: "→"; }
p.is-style-ac-link a:hover { gap: 0.8rem; color: var(--ac-accent-deep, var(--ac-violet-deep)); }

/* ── 3. SECTIONS (Group block styles) ───────────────────────── */
.wp-block-group.is-style-ac-hero,
.wp-block-group.is-style-ac-band,
.wp-block-group.is-style-ac-narrow,
.wp-block-group.is-style-ac-ink {
	padding: clamp(3rem, 7vw, 5.5rem) var(--ac-pad);
	margin-top: 0;
	margin-bottom: 0;
}
.wp-block-group.is-style-ac-hero > *   { max-width: 780px;  margin-left: auto; margin-right: auto; }
.wp-block-group.is-style-ac-band > *   { max-width: 1040px; margin-left: auto; margin-right: auto; }
.wp-block-group.is-style-ac-narrow > * { max-width: 680px;  margin-left: auto; margin-right: auto; }

/* Hero: italic words get a soft violet underline */
.is-style-ac-hero h1 { margin-bottom: 0.5rem; }
.is-style-ac-hero h1 em { font-style: italic; position: relative; z-index: 0; }
.is-style-ac-hero h1 em::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0.05em;
	height: 0.12em;
	background: var(--ac-violet);
	opacity: 0.6;
	border-radius: 2px;
	z-index: -1;
}
.is-style-ac-hero > * { animation: acFadeUp 0.7s ease both; }
.is-style-ac-hero > *:nth-child(2) { animation-delay: 0.1s; }
.is-style-ac-hero > *:nth-child(3) { animation-delay: 0.2s; }
.is-style-ac-hero > *:nth-child(4) { animation-delay: 0.3s; }
@keyframes acFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Text section */
.is-style-ac-narrow p { color: var(--ac-ink-mid); font-size: 1rem; line-height: 1.85; }

/* Dark section */
.wp-block-group.is-style-ac-ink {
	background: var(--ac-ink);
	color: rgba(255, 255, 255, 0.68);
	text-align: center;
	position: relative;
	overflow: hidden;
}
.wp-block-group.is-style-ac-ink > * {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 1;
}
.wp-block-group.is-style-ac-ink::before,
.wp-block-group.is-style-ac-ink::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	opacity: 0.06;
	pointer-events: none;
}
.wp-block-group.is-style-ac-ink::before { width: 480px; height: 480px; background: var(--ac-violet); top: -150px; right: -90px; }
.wp-block-group.is-style-ac-ink::after  { width: 320px; height: 320px; background: var(--ac-mint); bottom: -120px; left: 6%; }
.is-style-ac-ink :is(h1, h2, h3, h4) { color: var(--ac-white); font-style: italic; }
.is-style-ac-ink p { color: rgba(255, 255, 255, 0.68); }
.is-style-ac-ink p.is-style-ac-eyebrow { color: var(--ac-mint); }
.is-style-ac-ink p.is-style-ac-lead { color: rgba(255, 255, 255, 0.8); margin-left: auto; margin-right: auto; }
.is-style-ac-ink .wp-block-buttons { justify-content: center; }

/* ── 4. CARDS (Column block styles) ─────────────────────────── */
.is-style-ac-card-mint   { --ac-accent: var(--ac-mint);   --ac-accent-deep: var(--ac-mint-deep); }
.is-style-ac-card-violet { --ac-accent: var(--ac-violet); --ac-accent-deep: var(--ac-violet-deep); }
.is-style-ac-card-rose   { --ac-accent: var(--ac-rose);   --ac-accent-deep: var(--ac-rose-deep); }
.is-style-ac-card-blue   { --ac-accent: var(--ac-blue);   --ac-accent-deep: var(--ac-blue-deep); }
.is-style-ac-card-yellow { --ac-accent: var(--ac-yellow); --ac-accent-deep: var(--ac-yellow-deep); }

.wp-block-columns:has(> [class*="is-style-ac-card"]) { gap: 1.5rem; }

.wp-block-column[class*="is-style-ac-card"] {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: var(--ac-white);
	border: 1.5px solid rgba(0, 0, 0, 0.07);
	border-radius: 1.5rem;
	padding: clamp(1.6rem, 3vw, 2.25rem);
	transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.wp-block-column[class*="is-style-ac-card"]::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--ac-accent);
}
.wp-block-column[class*="is-style-ac-card"]:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 0, 0, 0.12);
	box-shadow: 0 16px 36px -24px rgba(26, 26, 46, 0.3);
}
.wp-block-column[class*="is-style-ac-card"] h3 { margin-top: 0.5rem; margin-bottom: 0.75rem; }
.wp-block-column[class*="is-style-ac-card"] > p:not([class*="is-style"]) {
	font-size: 0.92rem;
	color: var(--ac-ink-mid);
	line-height: 1.8;
}
.wp-block-column[class*="is-style-ac-card"] > p.is-style-ac-link:last-child {
	margin-top: auto;
	padding-top: 1.25rem;
}

/* ── 5. BUTTONS ─────────────────────────────────────────────── */
.wp-block-button.is-style-ac-primary .wp-block-button__link,
.wp-block-button.is-style-ac-ghost .wp-block-button__link {
	display: inline-block;
	padding: 0.85rem 1.9rem;
	border-radius: 2rem;
	border: 1.5px solid var(--ac-ink);
	font-family: var(--ac-sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: none;
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.wp-block-button.is-style-ac-primary .wp-block-button__link { background: var(--ac-ink); color: var(--ac-white); }
.wp-block-button.is-style-ac-primary .wp-block-button__link:hover { background: var(--ac-violet); border-color: var(--ac-violet); color: var(--ac-ink); transform: translateY(-2px); }
.wp-block-button.is-style-ac-ghost .wp-block-button__link { background: transparent; color: var(--ac-ink); }
.wp-block-button.is-style-ac-ghost .wp-block-button__link:hover { border-color: var(--ac-mint); color: var(--ac-mint-deep); transform: translateY(-2px); }

/* Buttons inside a dark section */
.is-style-ac-ink .wp-block-button.is-style-ac-primary .wp-block-button__link { background: var(--ac-mint); border-color: var(--ac-mint); color: var(--ac-ink); }
.is-style-ac-ink .wp-block-button.is-style-ac-primary .wp-block-button__link:hover { background: var(--ac-yellow); border-color: var(--ac-yellow); }
.is-style-ac-ink .wp-block-button.is-style-ac-ghost .wp-block-button__link { border-color: rgba(255, 255, 255, 0.3); color: var(--ac-white); }
.is-style-ac-ink .wp-block-button.is-style-ac-ghost .wp-block-button__link:hover { border-color: var(--ac-mint); color: var(--ac-white); }

/* ── 6. SMALL SCREENS & REDUCED MOTION ──────────────────────── */
@media (max-width: 520px) {
	.wp-block-buttons { flex-direction: column; align-items: stretch; }
	.wp-block-button.is-style-ac-primary .wp-block-button__link,
	.wp-block-button.is-style-ac-ghost .wp-block-button__link { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.ac-ground-rings, .editor-styles-wrapper::before { animation: none; }
	.is-style-ac-hero > * { animation: none; }
	.wp-block-column[class*="is-style-ac-card"],
	p.is-style-ac-link a,
	.wp-block-button__link { transition: none; }
}
