/**
 * Conceptic — design system du site.
 * Noir profond + rouge CONCEPTIC + crème chaud, photos au rendu cinéma.
 * Préfixe : .cx-
 */

:root {
	--cx-ink: #0d1117;
	--cx-ink-2: #161c25;
	--cx-ink-3: #232b36;
	--cx-red: #c8102e;
	--cx-red-d: #a30d25;
	--cx-red-soft: #fbe9ec;
	--cx-cream: #f7f3ee;
	--cx-sand: #eee6da;
	--cx-text: #1b1f24;
	--cx-muted: #5b6470;
	--cx-line: rgba(13, 17, 23, .1);
	--cx-amber: #e9a35b;
	--cx-radius: 22px;
	--cx-radius-sm: 14px;
	--cx-shadow: 0 18px 50px rgba(13, 17, 23, .14);
	--cx-shadow-sm: 0 6px 20px rgba(13, 17, 23, .08);
	--cx-font-title: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
	--cx-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--cx-header-h: 78px;
	--cx-gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
body.cx-site {
	margin: 0;
	background: var(--cx-cream);
	color: var(--cx-text);
	font-family: var(--cx-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.cx-site *, body.cx-site *::before, body.cx-site *::after { box-sizing: border-box; }
:where(body.cx-site) img { max-width: 100%; height: auto; }
:where(body.cx-site) a { color: var(--cx-red); text-underline-offset: 3px; }
:where(body.cx-site) a:hover { color: var(--cx-red-d); }
body.cx-site h1, body.cx-site h2, body.cx-site h3, body.cx-site h4 {
	font-family: var(--cx-font-title);
	color: var(--cx-ink);
	letter-spacing: -.02em;
	line-height: 1.08;
	font-weight: 800;
	margin: 0 0 .5em;
}
body.cx-site h1 { font-size: clamp(40px, 6.4vw, 84px); }
body.cx-site h2 { font-size: clamp(32px, 4.2vw, 56px); }
body.cx-site h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -.01em; }
body.cx-site p { margin: 0 0 1em; }
body.cx-site :focus-visible { outline: 3px solid var(--cx-red); outline-offset: 3px; border-radius: 4px; }

.cx-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--cx-ink); color: #fff !important; padding: 12px 18px; }
.cx-skip:focus { left: 12px; top: 12px; }

.cx-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--cx-gutter); }
.cx-main { display: block; }

.cx-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--cx-red); margin: 0 0 18px !important;
}
.cx-eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.cx-eyebrow-light { color: #ff8a9c; }
.cx-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--cx-muted); max-width: 640px; }
.cx-red { color: var(--cx-red); }

/* ---------- Boutons ---------- */
.cx-btn, body.cx-site .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--cx-font); font-weight: 700; font-size: 16px; line-height: 1;
	text-decoration: none !important; cursor: pointer; white-space: nowrap;
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.cx-btn:hover { transform: translateY(-2px); }
.cx-btn-red, body.cx-site .wp-block-button__link { background: var(--cx-red); color: #fff !important; box-shadow: 0 10px 26px rgba(200, 16, 46, .3); }
.cx-btn-red:hover { background: var(--cx-red-d); color: #fff !important; box-shadow: 0 14px 32px rgba(200, 16, 46, .38); }
.cx-btn-dark { background: var(--cx-ink); color: #fff !important; }
.cx-btn-dark:hover { background: var(--cx-ink-3); color: #fff !important; }
.cx-btn-ghost { border-color: var(--cx-ink); color: var(--cx-ink) !important; background: transparent; }
.cx-btn-ghost:hover { background: var(--cx-ink); color: #fff !important; }
.cx-btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff !important; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.cx-btn-ghost-light:hover { background: #fff; color: var(--cx-ink) !important; border-color: #fff; }
.cx-btn-sm { padding: 11px 18px; font-size: 14px; }
.cx-btn .cx-arrow { transition: transform .2s ease; }
.cx-btn:hover .cx-arrow { transform: translateX(4px); }
.cx-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.cx-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(247, 243, 238, .86);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.admin-bar .cx-header { top: 32px; }
.cx-header.is-scrolled { border-bottom-color: var(--cx-line); box-shadow: 0 6px 24px rgba(13, 17, 23, .06); }
.cx-header-inner {
	max-width: 1320px; margin: 0 auto; padding: 0 var(--cx-gutter);
	height: var(--cx-header-h); display: flex; align-items: center; gap: 28px;
}

/* Bandeau prescripteurs (au-dessus de l'en-tête). */
.cx-topbar { background: var(--cx-red); color: #fff; font-size: 14px; position: relative; z-index: 99; }
body.cx-nav-open .cx-topbar { visibility: hidden; }
.cx-topbar-mobile { display: none; }
.cx-topbar-inner { max-width: 1320px; margin: 0 auto; padding: 9px var(--cx-gutter); display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; text-align: center; }
.cx-topbar p { margin: 0 !important; line-height: 1.4; }
body.cx-site .cx-topbar-cta { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: #fff; color: var(--cx-red) !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
body.cx-site .cx-topbar-cta:hover { background: var(--cx-ink); color: #fff !important; }
@media (max-width: 700px) {
	.cx-topbar p { display: none; }
	.cx-topbar-inner { padding-top: 7px; padding-bottom: 7px; }
	.cx-topbar-mobile { display: inline; }
	body.cx-site .cx-topbar-cta { background: transparent; color: #fff !important; padding: 2px 0; }
}

/* Entrée de menu « Prescripteurs » mise en évidence. */
body.cx-site .cx-header .cx-nav-list > li.cx-menu-prescripteur > a { border: 1.5px solid var(--cx-red); color: var(--cx-red); }
body.cx-site .cx-header .cx-nav-list > li.cx-menu-prescripteur > a:hover { background: var(--cx-red); color: #fff; }
body.cx-site.cx-home .cx-header:not(.is-scrolled) .cx-nav-list > li.cx-menu-prescripteur > a { border-color: rgba(255, 255, 255, .7); color: #fff; }

/* Accueil : en-tête transparent sur la photo, puis plein au défilement. */
body.cx-home .cx-header { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.cx-home .cx-header.is-scrolled { position: fixed; top: 0; }
.admin-bar.cx-home .cx-header.is-scrolled { top: 32px; }
body.cx-home .cx-topbar + .cx-header { top: auto; }
body.cx-home .cx-header.is-scrolled { background: rgba(13, 17, 23, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(255, 255, 255, .08); }
body.cx-home .cx-header .cx-logo { color: #fff !important; }
body.cx-home .cx-header .cx-nav-list > li > a,
body.cx-home .cx-header .cx-link-partner { color: #fff; }
body.cx-home .cx-header .cx-burger span { background: #fff; }

/* Logo officiel (SVG, noir/blanc via currentColor + rouge marque) */
.cx-logo { display: inline-flex; align-items: center; text-decoration: none !important; flex: none; color: var(--cx-ink) !important; line-height: 0; }
.cx-logo-svg { display: block; height: 60px; width: auto; overflow: visible; }
.cx-logo-light { color: #fff !important; }
.cx-footer .cx-logo-svg { height: 76px; }
@media (max-width: 600px) { .cx-logo-svg { height: 50px; } }

/* Navigation */
.cx-nav { margin-left: auto; }
.cx-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.cx-nav-list > li { position: relative; }
.cx-nav-list > li > a {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
	font-weight: 600; font-size: 15px; color: var(--cx-ink); text-decoration: none; white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}
.cx-nav-list > li > a:hover, .cx-nav-list > li.current-menu-item > a { background: rgba(200, 16, 46, .09); color: var(--cx-red); }
body.cx-home .cx-nav-list > li > a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cx-nav-list > li.menu-item-has-children > a::after {
	content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); opacity: .7;
}
.cx-nav-list .sub-menu {
	list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 10px); left: 50%;
	width: 340px; background: #fff; border-radius: 18px; box-shadow: var(--cx-shadow);
	opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: all .2s ease;
}
.cx-nav-list .sub-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.cx-nav-list > li:hover > .sub-menu, .cx-nav-list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cx-nav-list .sub-menu a {
	display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px;
	text-decoration: none; color: var(--cx-ink);
}
.cx-nav-list .sub-menu a:hover { background: var(--cx-cream); }
.cx-nav-list .sub-menu a strong { font-weight: 700; font-size: 15px; }
.cx-nav-list .sub-menu a span { font-size: 13px; color: var(--cx-muted); }

.cx-header-actions { display: flex; align-items: center; gap: 16px; }
.cx-link-partner { font-size: 14px; font-weight: 600; color: var(--cx-muted); text-decoration: none; white-space: nowrap; }
.cx-link-partner:hover { color: var(--cx-red); }
.cx-nav-mobile-extra { display: none; }

.cx-burger, .cx-burger:hover, .cx-burger:focus { display: none; width: 46px; height: 46px; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 11px !important; cursor: pointer; border-radius: 12px; }
.cx-burger span { display: block; height: 2px; background: var(--cx-ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.cx-burger span + span { margin-top: 6px; }
body.cx-nav-open .cx-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.cx-nav-open .cx-burger span:nth-child(2) { opacity: 0; }
body.cx-nav-open .cx-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1300px) {
	.cx-burger, .cx-burger:hover, .cx-burger:focus { display: block; }
	.cx-header-actions .cx-link-partner, .cx-header-actions .cx-btn { display: none; }
	.cx-header-actions { margin-left: auto; }
	.cx-nav {
		position: fixed; inset: var(--cx-header-h) 0 0 0; background: var(--cx-ink); margin: 0;
		padding: 24px var(--cx-gutter) 40px; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .25s ease;
	}
	.admin-bar .cx-nav { top: calc(var(--cx-header-h) + 46px); }
	body.cx-nav-open { overflow: hidden; }
	body.cx-nav-open .cx-header { position: fixed !important; top: 0 !important; left: 0; right: 0; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
	.admin-bar.cx-nav-open .cx-header { top: 46px !important; }
	body.cx-nav-open .cx-nav { opacity: 1; visibility: visible; transform: none; }
	body.cx-nav-open .cx-header { background: var(--cx-ink) !important; }
	body.cx-nav-open .cx-header .cx-logo { color: #fff !important; }
	body.cx-nav-open .cx-burger span { background: #fff !important; }
	.cx-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.cx-nav-list > li > a { color: #fff !important; font-size: 22px; font-family: var(--cx-font-title); font-weight: 700; padding: 16px 0; border-radius: 0; width: 100%; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.cx-nav-list > li > a:hover { background: transparent !important; color: #ff8a9c !important; }
	.cx-nav-list .sub-menu { position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none; background: transparent; box-shadow: none; padding: 6px 0 12px; }
	.cx-nav-list > li.is-open > .sub-menu { display: block; }
	.cx-nav-list .sub-menu a { color: #fff; }
	.cx-nav-list .sub-menu a:hover { background: rgba(255, 255, 255, .06); }
	.cx-nav-list .sub-menu a span { color: rgba(255, 255, 255, .55); }
	.cx-nav-mobile-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 28px; }
	.cx-nav-mobile-extra .cx-link-partner { color: rgba(255, 255, 255, .75); font-size: 16px; }
}
@media (max-width: 782px) { .admin-bar .cx-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .cx-header { top: 0; } }

/* ---------- Sections communes ---------- */
.cx-section { padding: clamp(72px, 10vw, 136px) 0; }
.cx-section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.cx-dark { background: var(--cx-ink); color: rgba(255, 255, 255, .78); }
.cx-dark h2, .cx-dark h3 { color: #fff !important; }
.cx-dark .cx-lead { color: rgba(255, 255, 255, .7); }
.cx-sand { background: var(--cx-sand); }
.cx-white { background: #fff; }
.cx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.cx-head h2 { margin: 0; max-width: 700px; }
.cx-head p { margin: 0; max-width: 460px; color: var(--cx-muted); }

/* Apparition */
.cx-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.cx-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Héros d'accueil ---------- */
.cx-hero {
	position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end;
	color: #fff; overflow: hidden; background: var(--cx-ink);
}
.cx-hero-media { position: absolute; inset: 0; }
.cx-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; transform: scale(1.04); animation: cxKen 18s ease-out forwards; }
@keyframes cxKen { to { transform: scale(1); } }
.cx-hero::after {
	content: ''; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(13, 17, 23, .9) 0%, rgba(13, 17, 23, .55) 42%, rgba(13, 17, 23, .05) 75%),
		linear-gradient(0deg, rgba(13, 17, 23, .85) 0%, rgba(13, 17, 23, 0) 45%);
}
.cx-hero-content { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--cx-header-h) + 80px); padding-bottom: clamp(56px, 9vw, 110px); }
.cx-hero h1 { color: #fff !important; max-width: 860px; margin-bottom: 26px; }
.cx-hero h1 em { font-style: normal; color: #ff5c74; }
.cx-hero .cx-lead { color: rgba(255, 255, 255, .82); margin-bottom: 36px; }
.cx-hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding: 0; list-style: none; }
.cx-hero-pills li {
	padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px);
}
.cx-hero-pills li::before { content: '●'; color: #ff5c74; margin-right: 8px; font-size: 10px; vertical-align: 2px; }
.cx-scroll-hint { position: absolute; right: var(--cx-gutter); bottom: 40px; z-index: 2; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* ---------- Manifeste ---------- */
.cx-manifesto { text-align: left; }
.cx-manifesto p.cx-big {
	font-family: var(--cx-font-title); font-weight: 700; letter-spacing: -.02em;
	font-size: clamp(28px, 3.6vw, 48px); line-height: 1.18; color: var(--cx-ink); max-width: 1080px; margin: 0;
}
.cx-manifesto p.cx-big span { color: var(--cx-muted); }

/* ---------- Bento « Nos actions » ---------- */
.cx-bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 300px; gap: 18px; }
.cx-tile {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	border-radius: var(--cx-radius); overflow: hidden; text-decoration: none !important;
	color: #fff !important; background: var(--cx-ink); isolation: isolate; min-height: 280px;
}
.cx-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cx-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 17, 23, 0) 30%, rgba(13, 17, 23, .9) 100%); transition: background .4s ease; }
.cx-tile:hover img { transform: scale(1.06); }
.cx-tile:hover::before { background: linear-gradient(180deg, rgba(13, 17, 23, .1) 10%, rgba(13, 17, 23, .94) 100%); }
.cx-tile-body { padding: 28px; }
.cx-tile-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffb3bf; margin-bottom: 10px; }
.cx-tile h3 { color: #fff !important; margin: 0 0 8px; font-size: clamp(22px, 2.2vw, 30px); }
.cx-tile p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 15px; max-width: 460px; }
.cx-tile-go {
	position: absolute; top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
	display: grid; place-items: center; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px);
	font-size: 20px; transition: background .3s ease, transform .3s ease;
}
.cx-tile:hover .cx-tile-go { background: var(--cx-red); transform: rotate(-45deg); }
.cx-tile-a { grid-column: span 7; grid-row: span 2; }
.cx-tile-a h3 { font-size: clamp(28px, 3.2vw, 44px); }
.cx-tile-b { grid-column: span 5; }
.cx-tile-c { grid-column: span 5; }
.cx-tile-d { grid-column: span 6; }
.cx-tile-e { grid-column: span 6; }
@media (max-width: 900px) {
	.cx-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.cx-tile-a, .cx-tile-b, .cx-tile-c, .cx-tile-d, .cx-tile-e { grid-column: auto; grid-row: auto; min-height: 340px; }
}

/* ---------- Agenda ---------- */
.cx-agenda-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.cx-agenda-grid .cx-btns { margin-top: 28px; }
@media (max-width: 900px) { .cx-agenda-grid { grid-template-columns: 1fr; } }
.cx-dark .ohub-at-agenda-item { background: var(--cx-ink-2) !important; box-shadow: none !important; border: 1px solid rgba(255, 255, 255, .08); }
.cx-dark .ohub-at-agenda-item:hover { border-color: rgba(255, 92, 116, .5); }
.cx-dark .ohub-at-agenda-txt strong { color: #fff !important; }
.cx-dark .ohub-at-agenda-txt > span:last-child { color: rgba(255, 255, 255, .6) !important; }
.cx-dark .ohub-at-agenda-cat { color: #ff8a9c !important; }
.cx-dark .ohub-at-agenda-date { background: var(--cx-red) !important; }
.cx-dark .ohub-at-places { color: #7dd3c0 !important; }
.cx-dark .ohub-at-places.is-low { color: var(--cx-amber) !important; }
.cx-dark .ohub-at-places.is-full { color: #ff8a9c !important; }
.cx-dark .ohub-at-vide-inline { color: rgba(255, 255, 255, .75); }
.cx-dark .ohub-at-vide-inline a { color: #ff8a9c; }

/* ---------- Blocs image + texte ---------- */
.cx-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cx-split + .cx-split { margin-top: clamp(72px, 9vw, 128px); }
.cx-split-media { position: relative; border-radius: var(--cx-radius); overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--cx-shadow); }
.cx-split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-split-reverse .cx-split-media { order: 2; }
.cx-split-badge {
	position: absolute; left: 20px; bottom: 20px; background: rgba(13, 17, 23, .72); backdrop-filter: blur(10px);
	color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; max-width: 80%;
}
.cx-split-badge strong { display: block; font-family: var(--cx-font-title); font-size: 18px; }
.cx-checks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.cx-checks li { position: relative; padding-left: 34px; }
.cx-checks li::before {
	content: ''; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--cx-red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23c8102e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 900px) {
	.cx-split { grid-template-columns: 1fr; }
	.cx-split-reverse .cx-split-media { order: 0; }
}

/* ---------- Partenaires ---------- */
.cx-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 72px); }
.cx-partners img { height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s ease, opacity .3s ease; mix-blend-mode: multiply; }
.cx-partners img:hover { filter: none; opacity: 1; }
.cx-partners-title { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-muted); margin-bottom: 32px !important; }

/* ---------- Bandeau final ---------- */
.cx-banner {
	position: relative; border-radius: calc(var(--cx-radius) + 8px); overflow: hidden; color: #fff;
	padding: clamp(48px, 7vw, 96px); background: var(--cx-ink); isolation: isolate;
}
.cx-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cx-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(13, 17, 23, .92) 0%, rgba(13, 17, 23, .7) 50%, rgba(200, 16, 46, .35) 100%); }
.cx-banner h2 { color: #fff !important; max-width: 720px; }
.cx-banner p { color: rgba(255, 255, 255, .8); max-width: 560px; }

/* ---------- Pages intérieures conçues ---------- */
.cx-page-intro { padding-top: calc(clamp(56px, 8vw, 110px)); padding-bottom: clamp(40px, 5vw, 72px); }
.cx-page-intro h1 { max-width: 900px; }
.cx-cover {
	position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden;
	background: var(--cx-ink); isolation: isolate;
}
.cx-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cx-cover::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13, 17, 23, .9) 0%, rgba(13, 17, 23, .25) 70%); }
.cx-cover .cx-container { padding-top: 120px; padding-bottom: clamp(44px, 6vw, 80px); }
.cx-cover h1 { color: #fff !important; max-width: 900px; }
.cx-cover .cx-lead { color: rgba(255, 255, 255, .82); }
.cx-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cx-card { background: #fff; border-radius: var(--cx-radius); padding: 32px; box-shadow: var(--cx-shadow-sm); }
.cx-card-num { font-family: var(--cx-font-title); font-weight: 800; font-size: 15px; color: var(--cx-red); letter-spacing: .1em; margin-bottom: 18px; display: block; }
.cx-card h3 { margin-bottom: 10px; }
.cx-card p { color: var(--cx-muted); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .cx-cards3 { grid-template-columns: 1fr; } }
.cx-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cx-contact-card { background: #fff; border-radius: var(--cx-radius); padding: 30px; box-shadow: var(--cx-shadow-sm); text-decoration: none !important; color: var(--cx-text) !important; display: flex; flex-direction: column; gap: 6px; transition: transform .2s ease, box-shadow .2s ease; }
a.cx-contact-card:hover { transform: translateY(-4px); box-shadow: var(--cx-shadow); }
.cx-contact-card span { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-red); }
.cx-contact-card strong { font-family: var(--cx-font-title); font-size: 22px; color: var(--cx-ink); line-height: 1.25; }
.cx-map { border: 0; width: 100%; height: 420px; border-radius: var(--cx-radius); filter: grayscale(.4) contrast(1.05); display: block; }
@media (max-width: 900px) { .cx-contact-grid { grid-template-columns: 1fr; } }

/* ---------- Pages par défaut (titre automatique) ---------- */
.cx-page-hero { background: var(--cx-ink); color: #fff; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.cx-page-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 16, 46, .45), transparent 65%); }
.cx-page-hero h1 { color: #fff !important; font-size: clamp(36px, 5vw, 64px) !important; margin: 0; position: relative; z-index: 1; }
.cx-page-body { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 112px); }
.cx-page-body > *:not(.ohub-portal):not(.alignwide):not(.alignfull) { max-width: 820px; }

/* ---------- Pied de page ---------- */
.cx-footer { background: var(--cx-ink); color: rgba(255, 255, 255, .68); font-size: 15px; }
.cx-footer a { color: rgba(255, 255, 255, .82) !important; text-decoration: none; }
.cx-footer a:hover { color: #fff !important; text-decoration: underline; }
.cx-footer-cta { border-bottom: 1px solid rgba(255, 255, 255, .08); padding: clamp(56px, 7vw, 88px) 0; background: radial-gradient(1200px 400px at 85% 0%, rgba(200, 16, 46, .25), transparent 60%); }
.cx-footer-cta-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cx-footer-cta h2 { color: #fff !important; font-size: clamp(28px, 3.4vw, 46px) !important; margin: 0; }
.cx-footer-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cx-footer-cta .cx-btn-red { color: #fff !important; }
.cx-footer-cta .cx-btn-ghost-light:hover { color: var(--cx-ink) !important; text-decoration: none; }
.cx-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.cx-footer-brand p { margin: 20px 0; max-width: 340px; }
.cx-footer h3 { font-family: var(--cx-font); font-size: 13px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff !important; margin: 8px 0 18px; }
.cx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cx-footer address { font-style: normal; margin-bottom: 16px; line-height: 1.6; }
.cx-footer address strong { color: #fff; }
.cx-socials { display: flex !important; flex-wrap: wrap; gap: 10px !important; }
.cx-socials a { display: inline-block; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 14px; }
.cx-socials a:hover { background: #fff; color: var(--cx-ink) !important; text-decoration: none; }
.cx-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.cx-footer-bottom p { margin: 0; }
.cx-footer-bottom ul { display: flex; gap: 20px; }
@media (max-width: 960px) { .cx-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cx-footer-grid { grid-template-columns: 1fr; } }

/* ---------- Harmonisation du module Ateliers (Conceptic'HUB) ---------- */
body.cx-site .ohub-portal {
	--ohub-navy: var(--cx-ink);
	--ohub-teal: var(--cx-red);
	--ohub-teal-d: var(--cx-red-d);
	--ohub-bg: var(--cx-cream);
	font-family: var(--cx-font);
}
body.cx-site .ohub-portal h1, body.cx-site .ohub-portal h2, body.cx-site .ohub-portal h3 { font-family: var(--cx-font-title); }
/* Tailles de titres du portail (le titre de page est déjà dans le bandeau). */
body.cx-site .ohub-portal:not(.ohub-at) h1 { font-size: clamp(26px, 3vw, 34px); }
body.cx-site .ohub-portal h2 { font-size: clamp(21px, 2.2vw, 26px); }
body.cx-site .ohub-portal h3 { font-size: 18px; }
body.cx-site .ohub-portal .ohub-at-hero-txt h1 { font-size: clamp(28px, 4vw, 44px) !important; }
body.cx-site .ohub-brandbar { display: none; }
body.cx-site .ohub-portal { padding-top: 0; }

/* Boutons du plugin : couleurs forcées (le thème parent impose #c36 aux <button>). */
body.cx-site .ohub-btn,
body.cx-site .ohub-btn:hover,
body.cx-site .ohub-btn:focus {
	background: var(--cx-red); color: #fff !important; border: 0 !important; border-radius: 999px;
	box-shadow: 0 8px 22px rgba(200, 16, 46, .26); text-decoration: none !important;
}
body.cx-site .ohub-btn:hover { background: var(--cx-red-d); box-shadow: 0 12px 28px rgba(200, 16, 46, .34); }
body.cx-site .ohub-btn-primary, body.cx-site .ohub-btn-primary:focus { background: var(--cx-ink); box-shadow: 0 8px 22px rgba(13, 17, 23, .22); }
body.cx-site .ohub-btn-primary:hover { background: var(--cx-ink-3); }
body.cx-site .ohub-btn-ghost, body.cx-site .ohub-btn-ghost:focus, body.cx-site .ohub-prev, body.cx-site .ohub-prev:focus {
	background: #fff; color: var(--cx-ink) !important; border: 1.5px solid #cbd5e0 !important; box-shadow: none;
}
body.cx-site .ohub-btn-ghost:hover, body.cx-site .ohub-prev:hover { background: var(--cx-cream); color: var(--cx-ink) !important; box-shadow: none; }

/* ---------- Liens, boutons et champs : neutraliser Hello Biz + kit Elementor ----------
   Hello Biz colore liens et boutons en #c36 (survol #336) et le kit Elementor les liens
   en #FD774E (survol #171717) : illisible sur nos fonds rouges et noirs. */
body.cx-site .cx-main a:not([class]),
body.cx-site .ohub-portal a:not([class]),
body.cx-site .cx-page-body a:not([class]) { color: var(--cx-red); text-decoration: underline; text-underline-offset: 3px; }
body.cx-site .cx-main a:not([class]):hover,
body.cx-site .ohub-portal a:not([class]):hover,
body.cx-site .cx-page-body a:not([class]):hover { color: var(--cx-red-d); }
body.cx-site .cx-dark a:not([class]), body.cx-site .cx-dark a:not([class]):hover { color: #ff8a9c; }
/* Titres-liens (cartes d'ateliers…) : couleur du titre, sans soulignement. */
body.cx-site .cx-main :is(h1, h2, h3, h4) a:not([class]),
body.cx-site .ohub-portal :is(h1, h2, h3, h4) a:not([class]) { color: inherit; text-decoration: none; }
body.cx-site .cx-main :is(h1, h2, h3, h4) a:not([class]):hover,
body.cx-site .ohub-portal :is(h1, h2, h3, h4) a:not([class]):hover { color: var(--cx-red); }
body.cx-site .ohub-at-back, body.cx-site .ohub-at-back:hover { color: var(--cx-red); }
body.cx-site .cx-nav-list a:hover, body.cx-site .cx-nav-list a:focus { text-decoration: none; }
body.cx-site .cx-header .cx-link-partner { color: var(--cx-muted); }
body.cx-site .cx-nav-mobile-extra .cx-link-partner { color: rgba(255, 255, 255, .75); }
body.cx-site .cx-header .cx-nav-list > li > a { color: var(--cx-ink); }
body.cx-site .cx-header .cx-nav-list > li > a:hover,
body.cx-site .cx-header .cx-nav-list > li.current-menu-item > a { color: var(--cx-red); }
body.cx-site .cx-header .cx-nav-list .sub-menu a, body.cx-site .cx-header .cx-nav-list .sub-menu a:hover { color: var(--cx-ink); }
body.cx-site .cx-link-partner:hover { color: var(--cx-red) !important; }
body.cx-site.cx-home .cx-header .cx-nav-list > li > a,
body.cx-site.cx-home .cx-header .cx-nav-list > li > a:hover,
body.cx-site.cx-home .cx-header .cx-link-partner { color: #fff; }
body.cx-home .cx-header .cx-link-partner:hover { color: #fff !important; text-decoration: underline; }

/* Boutons natifs restants (WooCommerce, formulaires tiers) aux couleurs du site. */
body.cx-site :is(button, [type="submit"], [type="button"], [type="reset"]):not(.cx-burger):not(.ohub-btn):not([class*="mfp"]) {
	border-color: var(--cx-red); color: var(--cx-red); border-radius: 999px; font-family: var(--cx-font); font-weight: 700;
}
body.cx-site :is(button, [type="submit"], [type="button"], [type="reset"]):not(.cx-burger):not(.ohub-btn):hover {
	background-color: var(--cx-red); border-color: var(--cx-red); color: #fff;
}
body.cx-site .woocommerce :is(a.button, button.button, input.button, #respond input#submit) {
	background: var(--cx-red); color: #fff !important; border-radius: 999px; border: 0;
}
body.cx-site .woocommerce :is(a.button, button.button, input.button):hover { background: var(--cx-red-d); color: #fff !important; }

/* Champs de formulaire. */
body.cx-site :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="number"], input[type="date"], input[type="search"], select, textarea):focus {
	border-color: var(--cx-red) !important; box-shadow: 0 0 0 3px rgba(200, 16, 46, .14) !important; outline: none;
}
body.cx-site .ohub-at-date:has(input:checked) { background: var(--cx-red-soft); box-shadow: 0 0 0 3px rgba(200, 16, 46, .12); }
body.cx-site .ohub-chip.is-active { background: var(--cx-ink); border-color: var(--cx-ink); }
body.cx-site .ohub-at-card-media { background: var(--cx-ink); }

/* WooCommerce et contenus classiques dans le conteneur */
body.cx-site .woocommerce { max-width: 1240px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
	.cx-hero-media img { animation: none; transform: none; }
	.cx-reveal { opacity: 1; transform: none; transition: none; }
	* { scroll-behavior: auto !important; }
}
