/* =========================================================
   GALERIE KAO — design system
   Ivoire #F8F7F4 · Graphite #242424 · Champagne #B69B78 · Pierre #E8E5DF
   ========================================================= */

:root:root {
	--kao-ivory: #F8F7F4;
	--kao-graphite: #242424;
	--kao-ink-soft: #5E5B56;
	--kao-champagne: #B69B78;
	--kao-champagne-dark: #94795A;
	--kao-stone: #E8E5DF;
	--kao-white: #FFFFFF;

	--kao-serif: "Cormorant Garamond", "Cormorant", "Playfair Display", Georgia, "Times New Roman", serif;
	--kao-sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;

	--kao-ease: cubic-bezier(.22, .61, .36, 1);
	--kao-radius: 2px;
	--kao-gap: clamp(20px, 3vw, 40px);
	--kao-section: clamp(72px, 10vw, 160px);

	/* Palette Blocksy remplacée par la palette KAO */
	--theme-palette-color-1: var(--kao-graphite);   /* accent / boutons */
	--theme-palette-color-2: var(--kao-champagne);  /* survol */
	--theme-palette-color-3: var(--kao-ink-soft);   /* texte */
	--theme-palette-color-4: var(--kao-graphite);   /* titres */
	--theme-palette-color-5: var(--kao-stone);      /* bordures */
	--theme-palette-color-6: #F1EFEA;               /* fonds discrets */
	--theme-palette-color-7: var(--kao-ivory);      /* fond du site */
	--theme-palette-color-8: var(--kao-white);

	--theme-text-color: var(--kao-ink-soft);
	--theme-link-initial-color: var(--kao-graphite);
	--theme-link-hover-color: var(--kao-champagne-dark);
	--theme-border-color: var(--kao-stone);
	--theme-headings-color: var(--kao-graphite);
	--theme-button-background-initial-color: var(--kao-graphite);
	--theme-button-background-hover-color: var(--kao-champagne-dark);
	--theme-button-text-initial-color: var(--kao-ivory);
	--theme-button-text-hover-color: var(--kao-white);
	--theme-button-border-radius: var(--kao-radius);
	--theme-font-family: var(--kao-sans);
}

/* ---------- Base ---------- */
body.kao {
	background: var(--kao-ivory);
	color: var(--kao-ink-soft);
	font-family: var(--kao-sans);
	font-size: 16px;
	line-height: 1.7;
	letter-spacing: .005em;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.kao h1, .kao h2, .kao h3, .kao h4,
.kao .entry-title, .kao .page-title,
.kao .woocommerce-loop-product__title,
.kao .product_title {
	font-family: var(--kao-serif);
	font-weight: 400;
	color: var(--kao-graphite);
	letter-spacing: -.01em;
	line-height: 1.12;
}
.kao h1, .kao .page-title { font-size: clamp(40px, 6vw, 84px); }
.kao h2 { font-size: clamp(32px, 4.2vw, 56px); }
.kao h3 { font-size: clamp(24px, 2.4vw, 32px); }
.kao h4 { font-size: 22px; }

.kao h5, .kao h6, .kao .kao-eyebrow {
	font-family: var(--kao-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--kao-champagne-dark);
}

.kao a { transition: color .3s var(--kao-ease), opacity .3s var(--kao-ease); }
.kao ::selection { background: var(--kao-champagne); color: var(--kao-white); }
.kao img { image-rendering: auto; }

.kao :focus-visible {
	outline: 1px solid var(--kao-champagne);
	outline-offset: 3px;
}

/* ---------- Boutons ---------- */
.kao .wp-element-button,
.kao .wp-block-button__link,
.kao .button, .kao button.button,
.kao input[type="submit"],
.kao .ct-button,
.kao .dokan-btn-theme {
	font-family: var(--kao-sans);
	font-size: 12px !important;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	padding: 16px 32px;
	border-radius: var(--kao-radius) !important;
	transition: background-color .35s var(--kao-ease), color .35s var(--kao-ease), border-color .35s var(--kao-ease);
}
.kao .dokan-btn-theme {
	background: var(--kao-graphite) !important;
	border-color: var(--kao-graphite) !important;
	color: var(--kao-ivory) !important;
}
.kao .dokan-btn-theme:hover { background: var(--kao-champagne-dark) !important; border-color: var(--kao-champagne-dark) !important; }

.kao .is-style-outline .wp-block-button__link,
.kao .kao-btn-ghost .wp-block-button__link {
	background: transparent;
	color: var(--kao-graphite);
	border: 1px solid var(--kao-graphite);
}
.kao .is-style-outline .wp-block-button__link:hover,
.kao .kao-btn-ghost .wp-block-button__link:hover {
	background: var(--kao-graphite);
	color: var(--kao-ivory);
}

/* Lien fléché éditorial */
.kao .kao-link {
	display: inline-flex; align-items: center; gap: 12px;
	font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
	color: var(--kao-graphite); text-decoration: none;
	border-bottom: 1px solid var(--kao-champagne); padding-bottom: 6px;
}
.kao .kao-link::after { content: "→"; transition: transform .35s var(--kao-ease); }
.kao .kao-link:hover::after { transform: translateX(6px); }

/* ---------- En-tête ---------- */
.kao #header,
.kao [data-header] {
	--theme-font-family: var(--kao-sans);
}
.kao .site-title, .kao .site-title a {
	font-family: var(--kao-serif) !important;
	font-size: 26px !important;
	font-weight: 500 !important;
	letter-spacing: .28em !important;
	text-transform: uppercase;
	color: var(--kao-graphite) !important;
}
.kao .site-description {
	font-size: 10px !important;
	letter-spacing: .26em !important;
	text-transform: uppercase;
	color: var(--kao-champagne-dark) !important;
}
.kao [data-row="middle"] {
	border-bottom: 1px solid var(--kao-stone);
	background: rgba(248, 247, 244, .92) !important;
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
}
.kao .ct-menu-link {
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase;
}
.kao .menu > li > .ct-menu-link { position: relative; }
.kao .menu > li > .ct-menu-link::after {
	content: ""; position: absolute; left: var(--menu-item-padding, 15px); right: var(--menu-item-padding, 15px);
	bottom: 30%; height: 1px; background: var(--kao-champagne);
	transform: scaleX(0); transform-origin: left; transition: transform .4s var(--kao-ease);
}
.kao .menu > li:hover > .ct-menu-link::after,
.kao .menu > li.current-menu-item > .ct-menu-link::after,
.kao .menu > li.current-menu-ancestor > .ct-menu-link::after { transform: scaleX(1); }

.kao .menu .kao-menu-join > .ct-menu-link {
	border: 1px solid var(--kao-graphite);
	padding: 10px 18px !important;
	margin-left: 8px;
	height: auto !important;
}
.kao .menu .kao-menu-join > .ct-menu-link::after { display: none; }
.kao .menu .kao-menu-join > .ct-menu-link:hover { background: var(--kao-graphite); color: var(--kao-ivory) !important; }

/* Sous-menus */
.kao .sub-menu {
	background: var(--kao-white) !important;
	border: 1px solid var(--kao-stone);
	box-shadow: 0 24px 60px -30px rgba(36, 36, 36, .25) !important;
	padding: 14px 0 !important;
	min-width: 240px;
}
.kao .sub-menu .ct-menu-link {
	font-size: 13px !important;
	letter-spacing: .04em !important;
	text-transform: none;
	font-weight: 400 !important;
	padding-block: 9px !important;
}
.kao .sub-menu .ct-menu-link:hover { color: var(--kao-champagne-dark) !important; }

/* Menu mobile */
.kao #offcanvas .ct-panel-inner { background: var(--kao-ivory); }
.kao #offcanvas .ct-menu-link { font-family: var(--kao-serif); font-size: 26px !important; text-transform: none; letter-spacing: 0 !important; font-weight: 400 !important; }
.kao #offcanvas .sub-menu .ct-menu-link { font-family: var(--kao-sans); font-size: 15px !important; }

/* ---------- Pied de page ---------- */
.kao .ct-footer, .kao footer#footer {
	background: var(--kao-graphite) !important;
	color: #BDB8AF;
}
.kao .ct-footer a, .kao footer#footer a { color: #E8E5DF; }
.kao .ct-footer a:hover, .kao footer#footer a:hover { color: var(--kao-champagne); }
.kao .ct-footer [data-row] { border-color: rgba(232, 229, 223, .12) !important; background: transparent !important; }
.kao .ct-footer-copyright { font-size: 12px; letter-spacing: .08em; }

/* ---------- Mise en page générique ---------- */
.kao .hero-section[data-type="type-1"] { margin-bottom: clamp(32px, 5vw, 64px); }
.kao .hero-section .page-title { margin-bottom: 0; }
.kao .entry-content > * + * { margin-top: 1.4em; }

.kao .kao-section { padding-block: var(--kao-section); }
.kao .kao-section--stone { background: var(--kao-stone); }
.kao .kao-section--dark { background: var(--kao-graphite); color: #CFCAC1; }
.kao .kao-section--dark h2, .kao .kao-section--dark h3 { color: var(--kao-ivory); }
.kao .kao-wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }
.kao .kao-narrow { max-width: 720px; }
.kao .kao-lead { font-family: var(--kao-serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; color: var(--kao-graphite); font-weight: 400; }
.kao .kao-rule { width: 48px; height: 1px; background: var(--kao-champagne); border: 0; margin: 28px 0; }

.kao .kao-section-head {
	display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
	margin-bottom: clamp(32px, 5vw, 64px); flex-wrap: wrap;
}
.kao .kao-section-head h2 { margin: 8px 0 0; }

/* ---------- Accueil : hero ---------- */
.kao .kao-hero {
	position: relative;
	min-height: min(92vh, 960px);
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: stretch;
	background: var(--kao-ivory);
	overflow: hidden;
}
.kao .kao-hero__text {
	display: flex; flex-direction: column; justify-content: center;
	padding: clamp(48px, 8vw, 120px) clamp(16px, 6vw, 96px);
}
.kao .kao-hero__title {
	font-size: clamp(52px, 8.2vw, 128px) !important;
	line-height: .95 !important;
	margin: 22px 0 28px;
}
.kao .kao-hero__title em { font-style: italic; color: var(--kao-champagne-dark); }
.kao .kao-hero__sub { max-width: 460px; font-size: 17px; margin-bottom: 40px; }
.kao .kao-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.kao .kao-hero__media {
	position: relative; background: var(--kao-stone);
	display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.2fr 1fr; gap: 12px; padding: 12px;
}
.kao .kao-hero__media figure { margin: 0; overflow: hidden; background: #DDD8CF; position: relative; }
.kao .kao-hero__media figure:first-child { grid-row: span 2; }
.kao .kao-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--kao-ease); }
.kao .kao-hero__media figure:hover img { transform: scale(1); }
.kao .kao-hero__media .kao-placeholder {
	position: absolute; inset: 0; display: grid; place-items: center;
	font-family: var(--kao-serif); font-style: italic; color: #6B655C; font-size: 18px;
	background:
		radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,.65), transparent 60%),
		linear-gradient(160deg, #E8E5DF, #D9D3C8);
}
.kao .kao-hero__caption {
	position: absolute; left: 12px; bottom: 12px; padding: 10px 14px;
	background: rgba(248,247,244,.9); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--kao-graphite);
}
.kao .kao-hero__scroll {
	position: absolute; left: clamp(16px, 6vw, 96px); bottom: 28px;
	font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--kao-ink-soft);
	display: flex; align-items: center; gap: 14px;
}
.kao .kao-hero__scroll::before { content: ""; width: 40px; height: 1px; background: var(--kao-champagne); }

/* Bandeau chiffres / valeurs */
.kao .kao-values {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--kao-stone); border-bottom: 1px solid var(--kao-stone);
}
.kao .kao-values > div { padding: 36px clamp(16px, 2.5vw, 36px); border-right: 1px solid var(--kao-stone); }
.kao .kao-values > div:last-child { border-right: 0; }
.kao .kao-values strong { display: block; font-family: var(--kao-serif); font-weight: 400; font-size: 30px; color: var(--kao-graphite); margin-bottom: 6px; }
.kao .kao-values span { font-size: 13px; }

/* ---------- Grille d'œuvres (accueil + catalogue) ---------- */
.kao .kao-works {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(28px, 3.5vw, 56px) var(--kao-gap);
}
.kao .kao-work { display: block; text-decoration: none; color: inherit; }
.kao .kao-work__img {
	aspect-ratio: 4 / 5; overflow: hidden; background: var(--kao-stone); margin-bottom: 18px;
	display: grid; place-items: center; padding: 8%;
}
.kao .kao-work__img img {
	max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
	box-shadow: 0 18px 30px -18px rgba(36,36,36,.45);
	transition: transform .9s var(--kao-ease);
}
.kao .kao-work:hover .kao-work__img img { transform: translateY(-6px); }
.kao .kao-work__artist { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--kao-champagne-dark); }
.kao .kao-work__title { font-family: var(--kao-serif); font-size: 22px; color: var(--kao-graphite); margin: 4px 0 2px; line-height: 1.25; }
.kao .kao-work__meta { font-size: 13px; color: var(--kao-ink-soft); }
.kao .kao-work__price { font-size: 14px; color: var(--kao-graphite); margin-top: 8px; }

.kao .kao-empty {
	grid-column: 1 / -1; padding: 64px 24px; text-align: center; border: 1px dashed #CFC8BC;
	font-family: var(--kao-serif); font-style: italic; font-size: 22px; color: #6B655C;
}

/* ---------- Artistes ---------- */
.kao .kao-artists { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--kao-gap); }
.kao .kao-artist { text-decoration: none; color: inherit; }
.kao .kao-artist__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--kao-stone); margin-bottom: 16px; }
.kao .kao-artist__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: filter .6s var(--kao-ease), transform 1.2s var(--kao-ease); }
.kao .kao-artist:hover .kao-artist__img img { filter: none; transform: scale(1.03); }
.kao .kao-artist__name { font-family: var(--kao-serif); font-size: 24px; color: var(--kao-graphite); }
.kao .kao-artist__place { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Cartes éditoriales (magazine, expositions, opportunités) ---------- */
.kao .kao-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--kao-gap); }
.kao .kao-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.kao .kao-card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--kao-stone); margin-bottom: 20px; }
.kao .kao-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--kao-ease); }
.kao .kao-card:hover .kao-card__img img { transform: scale(1.04); }
.kao .kao-card__kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--kao-champagne-dark); }
.kao .kao-card__title { font-family: var(--kao-serif); font-size: 26px; line-height: 1.2; color: var(--kao-graphite); margin: 8px 0 10px; }
.kao .kao-card__excerpt { font-size: 14px; }
.kao .kao-card__date { font-size: 12px; margin-top: auto; padding-top: 14px; color: #6B655C; }

/* Opportunités : liste en rangées */
.kao .kao-rows { border-top: 1px solid #D4CEC4; }
.kao .kao-rows .kao-row {
	display: grid; grid-template-columns: 160px 1fr auto; gap: 24px; align-items: baseline;
	padding: 26px 0; border-bottom: 1px solid #D4CEC4; text-decoration: none; color: inherit;
	transition: padding .4s var(--kao-ease);
}
.kao .kao-rows .kao-row:hover { padding-left: 12px; }
.kao .kao-row__type { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--kao-champagne-dark); }
.kao .kao-row__title { font-family: var(--kao-serif); font-size: 26px; color: var(--kao-graphite); }
.kao .kao-row__date { font-size: 13px; white-space: nowrap; }

/* Publics (artistes / collectionneurs / professionnels) */
.kao .kao-audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(232,229,223,.15); }
.kao .kao-audience { background: var(--kao-graphite); padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; }
.kao .kao-audience h3 { margin: 0; }
.kao .kao-audience p { margin: 0; flex: 1; }
.kao .kao-audience .kao-link { color: var(--kao-ivory); align-self: flex-start; }

/* Tarifs */
.kao .kao-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--kao-gap); max-width: 980px; }
.kao .kao-plan { background: var(--kao-white); border: 1px solid var(--kao-stone); padding: clamp(28px, 4vw, 48px); }
.kao .kao-plan--featured { border-color: var(--kao-champagne); position: relative; }
.kao .kao-plan--featured::before { content: "Recommandé"; position: absolute; top: -12px; left: 32px; background: var(--kao-champagne); color: #fff; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding: 5px 12px; }
.kao .kao-plan__price { font-family: var(--kao-serif); font-size: 56px; color: var(--kao-graphite); line-height: 1; margin: 12px 0 4px; }
.kao .kao-plan__price small { font-family: var(--kao-sans); font-size: 14px; color: var(--kao-ink-soft); }
.kao .kao-plan ul { list-style: none; padding: 0; margin: 24px 0 32px; }
.kao .kao-plan li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--kao-stone); position: relative; font-size: 15px; }
.kao .kao-plan li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 1px; background: var(--kao-champagne); }

/* Newsletter / appel final */
.kao .kao-cta { text-align: center; }
.kao .kao-cta .kao-lead { max-width: 760px; margin: 0 auto 36px; }

/* ---------- WooCommerce : catalogue d'œuvres ---------- */
.kao.woocommerce ul.products,
.kao .woocommerce ul.products {
	gap: clamp(28px, 3.5vw, 56px) var(--kao-gap) !important;
}
.kao ul.products li.product .ct-media-container,
.kao ul.products li.product figure {
	background: var(--kao-stone);
	aspect-ratio: 4 / 5;
	display: grid; place-items: center; padding: 8%;
	border-radius: 0 !important;
}
.kao ul.products li.product figure img {
	object-fit: contain !important; width: auto !important; max-height: 100%;
	box-shadow: 0 18px 30px -18px rgba(36,36,36,.45);
}
.kao ul.products li.product .woocommerce-loop-product__title { font-size: 22px !important; margin-top: 14px; }
.kao ul.products li.product .price { font-family: var(--kao-sans); font-size: 14px !important; color: var(--kao-graphite) !important; font-weight: 400 !important; }
.kao ul.products li.product .ct-woo-card-actions,
.kao ul.products li.product .add_to_cart_button { display: none !important; }
.kao .onsale { background: var(--kao-champagne) !important; border-radius: 0 !important; font-size: 10px !important; letter-spacing: .16em; text-transform: uppercase; }

.kao.single-product .product_title { font-size: clamp(36px, 4.5vw, 60px) !important; }
.kao.single-product .woocommerce-product-gallery { background: var(--kao-stone); }
.kao.single-product .price { font-family: var(--kao-serif); font-size: 32px !important; color: var(--kao-graphite) !important; }

/* Filtres / tri */
.kao .woocommerce-ordering select,
.kao select, .kao input[type="text"], .kao input[type="email"], .kao input[type="password"],
.kao input[type="search"], .kao input[type="tel"], .kao input[type="url"], .kao input[type="number"], .kao textarea {
	border-radius: var(--kao-radius) !important;
	border-color: #D4CEC4 !important;
	background-color: var(--kao-white) !important;
}
.kao input:focus, .kao textarea:focus, .kao select:focus { border-color: var(--kao-champagne) !important; box-shadow: none !important; }

/* ---------- Dokan : boutiques d'artistes & tableau de bord ---------- */
.kao #dokan-seller-listing-wrap .dokan-single-seller .store-wrapper { border-radius: 0 !important; box-shadow: none !important; border: 1px solid var(--kao-stone); background: var(--kao-white); }
.kao #dokan-seller-listing-wrap .store-data h2 a { font-family: var(--kao-serif); font-size: 26px; color: var(--kao-graphite) !important; }
.kao .dokan-dashboard .dokan-dash-sidebar { background: var(--kao-graphite) !important; }
.kao .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a { font-size: 13px; letter-spacing: .04em; }
.kao .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active,
.kao .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover { background: var(--kao-champagne-dark) !important; }
.kao .dokan-dashboard-content { background: var(--kao-white); border: 1px solid var(--kao-stone); }
.kao .dokan-alert-info { background: #F4F0E9; border-color: #E3D9C9; color: var(--kao-graphite); }
.kao .profile-frame { border-radius: 0 !important; }

/* Formulaires de compte / inscription */
.kao .woocommerce-form-login, .kao .woocommerce-form-register, .kao .kao-join-form {
	background: var(--kao-white); border: 1px solid var(--kao-stone) !important; border-radius: 0 !important; padding: clamp(24px, 4vw, 48px) !important;
}

/* ---------- Animations ---------- */
.kao .kao-reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--kao-ease), transform 1s var(--kao-ease); }
.kao .kao-reveal.is-visible { opacity: 1; transform: none; }
.kao .kao-reveal[data-delay="1"] { transition-delay: .1s; }
.kao .kao-reveal[data-delay="2"] { transition-delay: .2s; }
.kao .kao-reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .kao-reveal, .kao.wp-admin .kao-reveal, .block-editor-page .kao-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.kao *, .kao *::before, .kao *::after { transition: none !important; animation: none !important; }
	.kao .kao-reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.kao .kao-works, .kao .kao-artists { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.kao .kao-hero { grid-template-columns: 1fr; min-height: 0; }
	.kao .kao-hero__media { min-height: 70vw; order: -1; }
	.kao .kao-hero__scroll { display: none; }
	.kao .kao-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kao .kao-values > div:nth-child(2) { border-right: 0; }
	.kao .kao-values > div:nth-child(-n+2) { border-bottom: 1px solid var(--kao-stone); }
	.kao .kao-works, .kao .kao-artists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kao .kao-cards, .kao .kao-audiences { grid-template-columns: 1fr; }
	.kao .kao-plans { grid-template-columns: 1fr; }
	.kao .kao-rows .kao-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
	.kao .kao-works { gap: 28px 16px; }
	.kao .kao-work__title { font-size: 18px; }
	.kao .kao-artists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.kao .kao-values { grid-template-columns: 1fr; }
	.kao .kao-values > div { border-right: 0 !important; border-bottom: 1px solid var(--kao-stone); }
	.kao .kao-hero__actions .wp-block-button, .kao .kao-hero__actions a { width: 100%; text-align: center; }
}

/* ---------- Pages pleine largeur (accueil, landing) ---------- */
.kao .kao-full { width: 100vw; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; }
.kao .entry-content > .kao-full + .kao-full { margin-top: 0 !important; }
.kao.home .hero-section,
.kao.kao-landing .hero-section { display: none; }
.kao.home .site-main > .ct-container-full,
.kao.kao-landing .site-main > .ct-container-full,
.kao.home [data-vertical-spacing],
.kao.kao-landing [data-vertical-spacing] { padding-top: 0 !important; padding-bottom: 0 !important; }
.kao.home .entry-content > *,
.kao.kao-landing .entry-content > * { margin-top: 0; margin-bottom: 0; }
html { overflow-x: clip; }
.kao .menu > li > .ct-menu-link { --menu-item-padding: 11px; }

/* Fiches pratiques (expositions, événements, opportunités) */
.kao .kao-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--kao-stone); margin: 48px 0; }
.kao .kao-facts > div { padding: 20px 0; border-bottom: 1px solid var(--kao-stone); }
.kao .kao-facts dt { margin-bottom: 6px; }
.kao .kao-facts dd { margin: 0; color: var(--kao-graphite); }
.kao .kao-linked-artists { margin-top: 56px; }
.kao .kao-linked-artists .kao-artists { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* Menu principal compact : 11 rubriques sur une ligne */
@media (min-width: 1000px) {
	.kao [data-id="menu"] > ul > li > .ct-menu-link,
	.kao .header-menu-1 > ul > li > .ct-menu-link { font-size: 11px !important; letter-spacing: .1em !important; --menu-item-padding: 9px; padding-inline: 9px !important; }
}

/* En-tête plus large pour afficher les 11 rubriques */
@media (min-width: 1000px) {
	.kao #header [data-row] > .ct-container { max-width: min(1560px, 100% - 48px); width: 100%; }
}
/* Message « déjà connecté » de l'inscription */
.kao .entry-content > p:only-of-type:empty { display: none; }

/* Formules : 3 colonnes */
.kao .kao-plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1200px; }
.kao .kao-plan__note { font-size: 13px; color: var(--kao-champagne-dark); margin: 0; }
.kao .kao-plan__price--soon { font-size: 40px; color: #6B655C; }
.kao .kao-plan__soon { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #6B655C; }
.kao .kao-plans__legal { font-size: 12px; margin-top: 28px; max-width: 760px; }
.kao .kao-legal h4 { font-family: var(--kao-sans); font-size: 15px; font-weight: 600; margin-top: 1.6em; }
@media (max-width: 1100px) { .kao .kao-plans--3 { grid-template-columns: 1fr; max-width: 560px; } }

/* =========================================================
   Bandeaux d'images (pages & rubriques)
   ========================================================= */
.kao.kao-has-banner .site-main > .ct-container,
.kao.kao-has-banner .site-main > .ct-container-full,
.kao.kao-has-banner .site-main > div[data-vertical-spacing] { padding-top: 0 !important; }
.kao.kao-has-banner .hero-section {
	position: relative;
	width: 100vw; max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important; margin-right: 0 !important;
	min-height: clamp(340px, 56vh, 620px);
	display: flex; align-items: flex-end;
	padding: 0 max(16px, calc(50vw - 660px)) clamp(40px, 6vw, 80px) !important;
	margin-bottom: clamp(48px, 7vw, 96px) !important;
	background:
		linear-gradient(180deg, rgba(36,36,36,0) 35%, rgba(36,36,36,.62) 100%),
		var(--kao-banner) center / cover no-repeat;
	isolation: isolate;
	overflow: hidden;
}
.kao.kao-has-banner .hero-section::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--kao-banner) center / cover no-repeat;
	transform: scale(1.06); animation: kao-banner-in 2.4s var(--kao-ease) forwards;
}
.kao.kao-has-banner .hero-section { background: linear-gradient(180deg, rgba(36,36,36,0) 30%, rgba(36,36,36,.62) 100%); }
@keyframes kao-banner-in { to { transform: scale(1); } }
.kao.kao-has-banner .hero-section .entry-header { width: 100%; max-width: 1320px; margin: 0 auto; }
.kao.kao-has-banner .hero-section .page-title,
.kao.kao-has-banner .hero-section h1 { color: var(--kao-ivory) !important; text-shadow: 0 2px 30px rgba(0,0,0,.25); margin: 0; }
.kao.kao-has-banner .hero-section .page-description,
.kao.kao-has-banner .hero-section .ct-breadcrumbs,
.kao.kao-has-banner .hero-section .entry-meta { color: rgba(248,247,244,.85) !important; }
.kao.kao-has-banner .hero-section::before {
	content: ""; position: absolute; left: max(16px, calc(50vw - 660px)); bottom: clamp(28px, 4vw, 52px);
	width: 48px; height: 1px; background: var(--kao-champagne);
}

/* Accueil : images réelles dans le hero */
.kao .kao-hero__media img { display: block; }
.kao .kao-hero__media figure img { position: absolute; inset: 0; }

/* Bande image pleine largeur */
.kao .kao-image-band { position: relative; min-height: clamp(360px, 60vh, 680px); background: var(--kao-graphite) center / cover no-repeat; display: flex; align-items: center; }
.kao .kao-image-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,36,36,.72) 0%, rgba(36,36,36,.25) 60%, rgba(36,36,36,0) 100%); }
.kao .kao-image-band .kao-wrap { position: relative; }
.kao .kao-image-band h2, .kao .kao-image-band .kao-lead { color: var(--kao-ivory); }
.kao .kao-image-band .kao-lead { max-width: 560px; }
.kao .kao-image-band .kao-link { color: var(--kao-ivory); }

/* Section « Pour qui » sur fond d'image */
.kao .kao-section--photo { position: relative; background: var(--kao-graphite) center / cover no-repeat; }
.kao .kao-section--photo::before { content: ""; position: absolute; inset: 0; background: rgba(28,27,26,.82); }
.kao .kao-section--photo > .kao-wrap { position: relative; }
.kao .kao-section--photo .kao-audiences { background: rgba(232,229,223,.12); }
.kao .kao-section--photo .kao-audience { background: rgba(36,36,36,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.kao .kao-image-band::before { background: linear-gradient(90deg, rgba(30,29,28,.82) 0%, rgba(30,29,28,.55) 45%, rgba(30,29,28,.05) 85%); }
.kao .kao-image-band h5 { color: #D9C3A3; }
.kao.kao-has-banner .hero-section { background: linear-gradient(180deg, rgba(30,29,28,.05) 25%, rgba(30,29,28,.68) 100%); }
.kao.kao-has-banner .hero-section .entry-header { text-align: left !important; }
.kao.kao-has-banner .hero-section .entry-header > * { margin-left: 0 !important; }

/* =========================================================
   CONTRASTE — corrections globales (v1.2)
   Fonds clairs → texte graphite #242424 · Fonds sombres → texte clair
   ========================================================= */
:root:root {
	--kao-champagne-dark: #85694B;   /* champagne lisible sur fond clair (AA) */
	--theme-text-color: #242424;
	--theme-palette-color-3: #242424;
}
body.kao { color: #242424; }
.kao .entry-content p, .kao .entry-content li, .kao .kao-lead { color: #242424; }
.kao .kao-work__meta, .kao .kao-card__excerpt, .kao .kao-card__date,
.kao .kao-artist__place, .kao .kao-values span, .kao .kao-plan li { color: #4A4743; }

/* --- Sous-menus (desktop) : fond blanc, texte graphite --- */
.kao .sub-menu,
.kao [data-id="menu"] .sub-menu,
.kao .ct-header .sub-menu {
	--theme-link-initial-color: #242424;
	--theme-link-hover-color: #85694B;
	--theme-link-active-color: #85694B;
	--dropdown-text-initial-color: #242424;
	--dropdown-text-hover-color: #85694B;
	background-color: #FFFFFF !important;
}
.kao .sub-menu .ct-menu-link,
.kao .sub-menu a { color: #242424 !important; }
.kao .sub-menu .ct-menu-link:hover,
.kao .sub-menu li:hover > .ct-menu-link,
.kao .sub-menu .current-menu-item > .ct-menu-link { color: #85694B !important; background: #F8F7F4 !important; }
.kao .sub-menu .ct-toggle-dropdown-desktop,
.kao .sub-menu svg { color: #242424; fill: currentColor; }
.kao .sub-menu li { border-color: #E8E5DF !important; }

/* --- Menu « Plus » (rubriques débordantes) --- */
.kao .more-items-container .sub-menu .ct-menu-link,
.kao [data-id="menu"] .more-items-container a { color: #242424 !important; }

/* --- Liens du menu principal : toujours graphite sur l'en-tête clair --- */
.kao [data-row="middle"] .menu > li > .ct-menu-link { color: #242424 !important; }
.kao [data-row="middle"] .menu > li > .ct-menu-link:hover,
.kao [data-row="middle"] .menu > li.current-menu-item > .ct-menu-link,
.kao [data-row="middle"] .menu > li.current-menu-ancestor > .ct-menu-link { color: #85694B !important; }
.kao [data-row="middle"] .ct-toggle-dropdown-desktop, .kao [data-row="middle"] .ct-header-search, .kao [data-row="middle"] .ct-header-trigger { color: #242424 !important; --theme-icon-color: #242424; }
.kao .menu .kao-menu-join > .ct-menu-link:hover { color: #F8F7F4 !important; }

/* --- Menu mobile (panneau clair) --- */
.kao #offcanvas,
.kao #offcanvas .ct-panel-inner {
	--theme-link-initial-color: #242424;
	--theme-link-hover-color: #85694B;
	--theme-link-active-color: #85694B;
	--theme-icon-color: #242424;
	--theme-icon-hover-color: #85694B;
	--theme-text-color: #242424;
	background-color: #F8F7F4 !important;
	color: #242424;
}
.kao #offcanvas .ct-menu-link,
.kao #offcanvas a { color: #242424 !important; }
.kao #offcanvas .current-menu-item > .ct-menu-link,
.kao #offcanvas .ct-menu-link:hover { color: #85694B !important; }
.kao #offcanvas .sub-menu { background: transparent !important; border: 0; box-shadow: none !important; }
.kao #offcanvas .ct-toggle-dropdown-mobile,
.kao #offcanvas .ct-toggle-close,
.kao #offcanvas svg { color: #242424 !important; fill: currentColor; }
.kao #offcanvas .ct-toggle-close { --theme-icon-color: #242424; border-color: #242424; }

/* --- Recherche (fenêtre plein écran Blocksy, fond sombre) --- */
.kao #search-modal { --theme-text-color: #F8F7F4; --theme-link-initial-color: #F8F7F4; }

/* --- Sections sombres : texte clair --- */
.kao .kao-section--dark, .kao .kao-section--dark p { color: #E8E5DF !important; }
.kao .kao-section--dark h5, .kao .kao-image-band h5, .kao .kao-audience h5 { color: #D9C3A3 !important; }
.kao .kao-section--dark .kao-link, .kao .kao-image-band .kao-link { color: #F8F7F4 !important; border-color: #B69B78; }
.kao .kao-image-band .kao-lead, .kao .kao-image-band p { color: #F8F7F4 !important; }

/* --- Pied de page sombre --- */
.kao .ct-footer, .kao footer#footer, .kao .ct-footer p,
.kao .ct-footer-copyright, .kao .ct-footer-copyright * { color: #CFCAC1 !important; }
.kao .ct-footer a, .kao .ct-footer-copyright a { color: #F8F7F4 !important; }
.kao .ct-footer a:hover { color: #D9C3A3 !important; }

/* --- Bandeaux : fond sombre de secours si l'image ne charge pas --- */
.kao.kao-has-banner .hero-section { background-color: #3A3836 !important; }

/* --- Blocs vides --- */
.kao .kao-empty { color: #4A4743; border-color: #B8B0A3; }

/* --- Boutons : états clairs et lisibles --- */
.kao .wp-block-button__link, .kao .button, .kao button.button, .kao input[type="submit"], .kao .ct-button {
	background-color: #242424; color: #F8F7F4 !important; border: 1px solid #242424;
}
.kao .wp-block-button__link:hover, .kao .button:hover, .kao button.button:hover, .kao input[type="submit"]:hover, .kao .ct-button:hover {
	background-color: #85694B !important; border-color: #85694B !important; color: #FFFFFF !important;
}
.kao .kao-btn-ghost .wp-block-button__link, .kao .is-style-outline .wp-block-button__link { background: transparent !important; color: #242424 !important; border-color: #242424 !important; }
.kao .kao-btn-ghost .wp-block-button__link:hover, .kao .is-style-outline .wp-block-button__link:hover { background: #242424 !important; color: #F8F7F4 !important; }
.kao .kao-section--dark .kao-btn-ghost .wp-block-button__link { color: #F8F7F4 !important; border-color: #F8F7F4 !important; }

/* --- Formulaires (WooCommerce, Dokan, inscription) --- */
.kao input[type="text"], .kao input[type="email"], .kao input[type="password"], .kao input[type="search"],
.kao input[type="tel"], .kao input[type="url"], .kao input[type="number"], .kao textarea, .kao select {
	color: #242424 !important; background-color: #FFFFFF !important;
}
.kao ::placeholder { color: #6B655C !important; opacity: 1; }
.kao label, .kao legend, .kao .woocommerce form .form-row label { color: #242424; }

/* --- WooCommerce --- */
.kao .woocommerce-message, .kao .woocommerce-info, .kao .woocommerce-error,
.kao .woocommerce-store-notice { color: #242424; }
.kao .woocommerce-store-notice { background: #E8E5DF !important; }
.kao .woocommerce-store-notice a { color: #242424 !important; text-decoration: underline; }
.kao ul.products li.product .woocommerce-loop-product__title,
.kao ul.products li.product .price, .kao.single-product .price { color: #242424 !important; }

/* --- Dokan --- */
.kao .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a,
.kao .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a i { color: #F8F7F4 !important; }
.kao .dokan-dashboard-content, .kao .dokan-dashboard-content p, .kao .dokan-dashboard-content label,
.kao .dokan-dashboard-content td, .kao .dokan-dashboard-content th { color: #242424; }
.kao .dokan-btn-default, .kao .dokan-btn:not(.dokan-btn-theme) { color: #242424 !important; background: #FFFFFF !important; border-color: #B8B0A3 !important; }
.kao #dokan-seller-listing-wrap .store-content .store-data, .kao #dokan-seller-listing-wrap .store-content .store-data * { color: #F8F7F4; }
.kao .dokan-store-tabs ul li a { color: #242424; }

/* --- Cartes de formules --- */
.kao .kao-plan__soon { color: #4A4743; }
.kao .kao-plans__legal, .kao .kao-plan p { color: #4A4743; }
.kao .kao-plan h5, .kao .kao-plan__note { color: #85694B; }

/* Sur-titres sur fond pierre : champagne plus foncé */
.kao .kao-section--stone h5 { color: #6E5539 !important; }
/* Bouton « Rejoindre KAO » quand il passe dans le sous-menu « Plus » */
.kao .sub-menu .kao-menu-join > .ct-menu-link { border: 0 !important; margin: 0 !important; padding: 9px 25px !important; color: #242424 !important; background: transparent !important; font-weight: 600 !important; }
.kao .sub-menu .kao-menu-join > .ct-menu-link:hover { color: #85694B !important; background: #F8F7F4 !important; }

/* Bloc promotionnel des opérations (ex. 30 artistes. 30 histoires.) */
.kao .kao-promo { background: #242424; color: #E8E5DF; padding-block: clamp(64px, 9vw, 128px); position: relative; overflow: hidden; }
.kao .kao-promo::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(182,155,120,.22), transparent 65%); pointer-events: none; }
.kao .kao-promo__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: end; position: relative; z-index: 1; }
.kao .kao-promo h2 { color: #F8F7F4 !important; font-size: clamp(42px, 6vw, 88px) !important; line-height: .98 !important; margin: 10px 0 0; }
.kao .kao-promo h5 { color: #D9C3A3 !important; }
.kao .kao-promo .kao-lead { color: #F8F7F4 !important; margin-bottom: 28px; }
.kao .kao-promo__count { font-family: var(--kao-serif); font-size: 64px; color: #D9C3A3; line-height: 1; vertical-align: middle; }
.kao .kao-promo__countlabel { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #CFCAC1; margin-left: 10px; }
.kao .kao-promo .wp-block-button__link { background: #F8F7F4 !important; color: #242424 !important; border-color: #F8F7F4 !important; }
.kao .kao-promo .kao-btn-ghost .wp-block-button__link { background: transparent !important; color: #F8F7F4 !important; border-color: #F8F7F4 !important; }
.kao .kao-promo .wp-block-button__link:hover { background: #B69B78 !important; border-color: #B69B78 !important; color: #fff !important; }
.kao .kao-promo.is-ended .kao-promo__count { font-size: 26px; }
.kao .kao-promo__preview { grid-column: 1 / -1; margin: 0; padding: 8px 12px; border: 1px dashed #D9C3A3; color: #D9C3A3 !important; font-size: 12px; letter-spacing: .08em; }
@media (max-width: 900px) { .kao .kao-promo__inner { grid-template-columns: 1fr; } }
/* Interviews du Magazine */
.kao .kao-iv-question { font-size: clamp(22px, 2.2vw, 28px) !important; margin-top: 2em !important; color: #242424; }
.kao .kao-iv-intro { font-family: var(--kao-serif); font-size: 22px; line-height: 1.5; }
