/*
Theme Name: STC Court
Description: Thème moderne du Segré Tennis Club — enfant de Sports Club Lite, aux couleurs du logo (jaune balle, turquoise, noir).
Author: Segré Tennis Club
Template: sports-club-lite
Version: 1.1.0
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stc-court
*/

/* ==========================================================================
   1. Charte
   ========================================================================== */
:root {
	--stc-yellow: #ffed00;      /* jaune balle du logo */
	--stc-yellow-soft: #fff9b8;
	--stc-teal: #0ae0c6;        /* turquoise du logo */
	--stc-teal-ink: #067a6c;    /* turquoise lisible sur fond clair */
	--stc-ink: #0b0b0c;         /* noir du logo */
	--stc-ink-2: #17181b;
	--stc-ink-3: #2a2c31;
	--stc-text: #26272b;
	--stc-muted: #6b6d74;
	--stc-paper: #f7f7f2;
	--stc-line: #e6e6df;
	--stc-white: #ffffff;

	/* Jetons qui changent entre mode jour et mode nuit */
	--stc-bg: #ffffff;              /* fond de page */
	--stc-surface: #ffffff;         /* cartes, sous-menus, champs */
	--stc-fg: var(--stc-ink);       /* titres, liens */
	--stc-link-hover: var(--stc-teal-ink);
	--stc-input-border: #d4d4cc;
	--stc-contrast-bg: var(--stc-ink);      /* survol des boutons jaunes */
	--stc-contrast-fg: var(--stc-yellow);

	--stc-font-display: 'Archivo', 'Arial Narrow', sans-serif;
	--stc-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--stc-radius: 14px;
	--stc-radius-sm: 8px;
	--stc-shadow: 0 1px 2px rgba(11, 11, 12, .06), 0 8px 24px rgba(11, 11, 12, .08);
	--stc-shadow-lg: 0 2px 4px rgba(11, 11, 12, .06), 0 18px 40px rgba(11, 11, 12, .14);
	--stc-header-h: 78px;
	--stc-admin-bar: var(--wp-admin--admin-bar--height, 0px);
	color-scheme: light;
}

/* Mode nuit : data-theme est posé sur <html> avant l'affichage (cf. functions.php). */
:root[data-theme="dark"] {
	--stc-bg: #111214;
	--stc-surface: #1b1c20;
	--stc-paper: #16171a;
	--stc-line: #2c2e34;
	--stc-text: #d5d6d1;
	--stc-muted: #9a9ca3;
	--stc-fg: #f4f4ef;
	--stc-link-hover: var(--stc-teal);
	--stc-yellow-soft: rgba(255, 237, 0, .16);
	--stc-input-border: #3a3c43;
	--stc-contrast-bg: #f4f4ef;
	--stc-contrast-fg: var(--stc-ink);
	--stc-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
	--stc-shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 40px rgba(0, 0, 0, .5);
	color-scheme: dark;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
html { scroll-behavior: smooth; }

body {
	font-family: var(--stc-font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--stc-text);
	background: var(--stc-bg);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

::selection { background: var(--stc-yellow); color: var(--stc-ink); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--stc-font-display);
	font-stretch: 112%;
	font-weight: 800;
	color: var(--stc-fg);
	line-height: 1.15;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
h4 { font-size: 20px; }

a { color: var(--stc-fg); transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s; }
a:hover { color: var(--stc-link-hover); }

#layout_forsite a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--stc-teal);
	outline-offset: 2px;
}

.container { width: min(1200px, 100% - 40px); }

img { border-radius: 0; }

/* ==========================================================================
   3. En-tête
   ========================================================================== */
.header_fixer,
.header_fixer.siteinner,
.header_fixer.fixed {
	position: sticky !important;
	top: var(--stc-admin-bar);
	z-index: 9999;
	background: var(--stc-ink) !important;
	border-bottom: 0;
	transition: box-shadow .25s;
}
.header_fixer::after {
	/* ligne de court : jaune + turquoise, comme les traits de vitesse du logo */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 4px;
	background: linear-gradient(90deg, var(--stc-yellow) 0 72%, var(--stc-ink) 72% 73%, var(--stc-teal) 73% 100%);
}
.header_fixer.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

.header_fixer .container {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--stc-header-h);
}
.header_fixer .container > .clear { display: none; }

/* Logo */
.header_fixer .logo {
	order: 1;
	float: none;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 0;
	flex-shrink: 0;
}
.header_fixer .logo img,
.header_fixer .logo .custom-logo {
	display: block;
	width: auto;
	height: 56px;
	transition: transform .4s cubic-bezier(.2, .9, .3, 1.4);
}
.header_fixer .logo a:hover img { transform: rotate(-12deg) scale(1.05); }
.header_fixer .logo h1 {
	margin: 0;
	font-family: var(--stc-font-display);
	font-stretch: 118%;
	font-style: italic;
	font-weight: 900;
	font-size: 21px;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
}
.header_fixer .logo h1 a { color: var(--stc-white); }
.header_fixer .logo h1 a:hover { color: var(--stc-yellow); }
.header_fixer .logo p { display: none; }

/* Navigation */
.sitenavigation {
	order: 2;
	float: none;
	margin-left: auto;
	padding: 0;
}
.sitemenu { display: block; }
.sitemenu ul {
	font-family: var(--stc-font-display);
	font-stretch: 105%;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.sitemenu ul li { margin: 0; }
.sitemenu ul li a,
.sitemenu ul li.current-menu-item ul.sub-menu li a {
	-webkit-transform: none;
	transform: none;
	color: var(--stc-white);
	padding: 9px 16px;
	border-radius: 999px;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: transparent;
}
.sitemenu ul li a:hover,
.sitemenu ul li.hover > a {
	background: rgba(255, 255, 255, .08);
	color: var(--stc-yellow);
}
.sitemenu ul li.current-menu-item > a,
.sitemenu ul li.current-menu-parent > a,
.sitemenu ul li.current-menu-ancestor > a,
.sitemenu ul li.current_page_item > a {
	background: var(--stc-yellow);
	color: var(--stc-ink);
}

/* Sous-menus */
.sitemenu ul li ul,
.sitemenu ul li:hover > ul {
	display: none;
	flex-direction: column;
	gap: 0;
	padding: 8px;
	min-width: 230px;
	width: auto;
	top: calc(100% + 10px);
	left: 0;
	background: var(--stc-surface);
	border-radius: var(--stc-radius);
	box-shadow: var(--stc-shadow-lg);
}
.sitemenu ul li:hover > ul { display: flex; position: absolute; }
.sitemenu ul li ul::before {
	/* pont invisible pour ne pas perdre le survol entre l'item et le sous-menu */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -12px;
	height: 12px;
}
.sitemenu ul li:hover ul li:hover > ul { left: 100%; top: -8px; }
.sitemenu ul li ul li { display: block; border: 0; }
.sitemenu ul li ul li a,
.sitemenu ul li.current-menu-item ul.sub-menu li a {
	color: var(--stc-fg);
	text-align: left;
	border-radius: var(--stc-radius-sm);
	padding: 9px 12px;
	font-size: 13px;
}
.sitemenu ul li ul li a:hover,
.sitemenu ul li.current-menu-item ul.sub-menu li a:hover,
.sitemenu ul li ul li.current-menu-item > a {
	background: var(--stc-yellow);
	color: var(--stc-ink);
}

/* Réseaux sociaux de l'en-tête */
.header_fixer .header_right {
	order: 3;
	float: none;
	margin: 0;
	padding: 0;
	background: none;
	-webkit-transform: none;
	transform: none;
}
.header_fixer .header_right::after { display: none; }
.header_fixer .contactinfo {
	-webkit-transform: none;
	transform: none;
	padding: 0;
	color: var(--stc-white);
}
.header_fixer .header-socialicons { display: flex; gap: 8px; }
.header_fixer .header-socialicons a {
	width: 38px;
	height: 38px;
	line-height: 38px;
	padding: 0;
	border-radius: 50%;
	color: var(--stc-white);
	border: 1px solid rgba(255, 255, 255, .22);
	font-size: 15px;
}
.header_fixer .header-socialicons a:hover {
	background: var(--stc-teal);
	border-color: var(--stc-teal);
	color: var(--stc-ink);
}

/* Bouton mode jour / mode nuit */
.header_fixer .stc-theme-toggle {
	order: 4;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .22);
	background: transparent;
	color: var(--stc-white);
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .3s;
}
.header_fixer .stc-theme-toggle:hover {
	background: var(--stc-yellow);
	border-color: var(--stc-yellow);
	color: var(--stc-ink);
	transform: rotate(-20deg);
}
.stc-theme-toggle svg { width: 18px; height: 18px; display: block; }
.stc-theme-toggle .stc-icon-sun,
:root[data-theme="dark"] .stc-theme-toggle .stc-icon-moon { display: none; }
:root[data-theme="dark"] .stc-theme-toggle .stc-icon-sun { display: block; }

/* Transition douce pendant le changement de mode uniquement (classe posée brièvement par le JS) */
.stc-theme-switching,
.stc-theme-switching *,
.stc-theme-switching *::before,
.stc-theme-switching *::after {
	transition: background-color .35s ease, color .35s ease, border-color .35s ease !important;
}

/* Bouton menu mobile */
.toggle a,
.toggle a.toggleMenu {
	background: var(--stc-yellow);
	color: var(--stc-ink);
	font-family: var(--stc-font-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 13px;
	padding: 10px 18px 10px 44px;
	margin: 0;
	border-radius: 999px;
	position: relative;
	width: auto;
}
.toggle a:hover { color: var(--stc-ink) !important; }
.toggle a::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 50%;
	width: 16px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
	transform: translateY(-50%);
}
.toggle a.active::before {
	box-shadow: none;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 7px solid currentColor;
	background: none;
	width: 0;
	left: 20px;
}

@media screen and (max-width: 980px) {
	.header_fixer .container { flex-wrap: wrap; gap: 12px; padding: 0 !important; }
	.sitenavigation { display: contents; }
	.header_fixer .header_right { order: 2; margin-left: auto; width: auto; }
	.header_fixer .stc-theme-toggle { order: 3; }
	.toggle { order: 4; }
	.sitemenu { order: 5; flex-basis: 100%; padding: 0 0 16px; }
	.sitemenu ul { display: block; }
	.sitemenu ul li { display: block; }
	.sitemenu ul li a { text-align: left; border-radius: var(--stc-radius-sm); padding: 12px 14px; }
	.sitemenu ul li ul,
	.sitemenu ul li:hover > ul,
	.sitemenu ul li:hover ul li:hover > ul {
		display: block;
		position: static;
		background: transparent;
		box-shadow: none;
		padding: 0 0 0 16px;
		min-width: 0;
	}
	.sitemenu ul li ul::before { display: none; }
	.sitemenu ul li ul li a,
	.sitemenu ul li.current-menu-item ul.sub-menu li a { color: rgba(255, 255, 255, .78); }
}

@media screen and (max-width: 767px) {
	:root { --stc-header-h: 64px; }
	.header_fixer .logo { width: auto; text-align: left; margin: 0; }
	.header_fixer .logo img, .header_fixer .logo .custom-logo { height: 44px; }
	.header_fixer .logo h1 { font-size: 15px; }
	.header_fixer .header_right { display: none; }
	.header_fixer .stc-theme-toggle { margin-left: auto; }
}

/* ==========================================================================
   4. Accueil
   ========================================================================== */

/* Où nous trouver : panneau sombre façon court de nuit */
#about_section {
	position: relative;
	padding: clamp(56px, 8vw, 96px) 0;
	background:
		linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .06) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
		linear-gradient(0deg, transparent 18%, rgba(255, 255, 255, .06) 18% calc(18% + 2px), transparent calc(18% + 2px) calc(82% - 2px), rgba(255, 255, 255, .06) calc(82% - 2px) 82%, transparent 82%),
		var(--stc-ink);
	color: rgba(255, 255, 255, .82);
	overflow: hidden;
}
#about_section .container { display: flex; align-items: center; gap: clamp(32px, 6vw, 80px); }
#about_section .container > .clear { display: none; }
.aboutus_contentcol { float: none; width: auto; flex: 1 1 55%; order: 2; }
.aboutus_thumbox { float: none; width: auto; flex: 0 1 38%; order: 1; }
.aboutus_thumbox img {
	max-width: 420px;
	margin: 0 auto;
	filter: drop-shadow(0 20px 40px rgba(255, 237, 0, .18));
	animation: stc-bounce 6s ease-in-out infinite;
}
.aboutus_contentcol h3 {
	color: var(--stc-white);
	font-size: clamp(30px, 4vw, 44px);
	font-style: italic;
	font-weight: 900;
	text-transform: uppercase;
	padding-bottom: 22px;
	margin-bottom: 24px;
}
.aboutus_contentcol h3::after {
	width: 72px;
	border: 0;
	height: 6px;
	background: linear-gradient(90deg, var(--stc-yellow) 0 64%, transparent 64% 72%, var(--stc-teal) 72%);
	transform: skewX(-24deg);
}
.aboutus_contentcol h3 span { color: var(--stc-yellow); }
#about_section p { margin-bottom: 20px; font-size: 17px; }
#about_section iframe {
	width: 100%;
	max-width: 100%;
	height: 300px;
	border: 0;
	border-radius: var(--stc-radius);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .06);
}

@keyframes stc-bounce {
	0%, 100% { transform: translateY(0) rotate(0); }
	50% { transform: translateY(-12px) rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) {
	.aboutus_thumbox img { animation: none; }
	html { scroll-behavior: auto; }
}

@media screen and (max-width: 767px) {
	#about_section .container { flex-direction: column; }
	.aboutus_thumbox img { max-width: 220px; }
	.aboutus_thumbox, .aboutus_contentcol { margin: 0; }
}

/* Sections de pages de l'accueil */
.stc-section {
	padding: clamp(48px, 7vw, 88px) 0;
	background: var(--stc-bg);
}
.stc-section--alt { background: var(--stc-paper); }
.stc-section .container > div > div > h3:empty { display: none; }
.stc-section .container > div > div > h3,
.stc-section-title {
	position: relative;
	display: inline-block;
	margin: 0 0 36px;
	padding-left: 64px;
	font-size: clamp(28px, 3.6vw, 42px);
	font-style: italic;
	font-weight: 900;
	text-transform: uppercase;
}
.stc-section .container > div > div > h3::before {
	/* traits de vitesse jaune + turquoise */
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 48px;
	height: 14px;
	transform: translateY(-50%) skewX(-24deg);
	background:
		linear-gradient(var(--stc-yellow), var(--stc-yellow)) 0 0 / 100% 6px no-repeat,
		linear-gradient(var(--stc-teal), var(--stc-teal)) 14px 100% / calc(100% - 14px) 4px no-repeat;
}
.stc-section .white-dot, .stc-section .orange-dot { display: none; }

/* Chiffres clés (compteurs Elementor) */
.elementor-widget-counter .elementor-counter {
	background: var(--stc-ink);
	color: var(--stc-white);
	border-radius: var(--stc-radius);
	padding: 26px 18px 22px;
	position: relative;
	overflow: hidden;
	height: 100%;
}
.elementor-widget-counter .elementor-counter::after {
	content: "";
	position: absolute;
	right: -26px;
	top: -26px;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: var(--stc-yellow);
	box-shadow: inset 8px -6px 0 -4px rgba(255, 255, 255, .9);
	opacity: .95;
}
/* Elementor injecte ses propres typographies par widget : !important nécessaire. */
#layout_forsite .elementor-widget-counter .elementor-counter-number-wrapper {
	font-family: var(--stc-font-display) !important;
	font-stretch: 120%;
	font-style: italic !important;
	font-weight: 900 !important;
	font-size: clamp(42px, 5vw, 60px) !important;
	line-height: 1 !important;
	color: var(--stc-yellow) !important;
	margin-bottom: 10px;
}
#layout_forsite .elementor-widget-counter .elementor-counter-title {
	font-family: var(--stc-font-display) !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	line-height: 1.35 !important;
	letter-spacing: .1em !important;
	text-transform: uppercase;
	text-align: center;
	color: rgba(255, 255, 255, .85) !important;
}

/* Cartes des rencontres (plugin stc-rencontres) */
/* La feuille du plugin est chargée après le thème : sélecteur renforcé. */
body .stc-renc { --stc-renc-accent: var(--stc-ink); }
body .stc-renc-card {
	border-radius: var(--stc-radius);
	overflow: hidden;
	border: 1px solid var(--stc-line);
	box-shadow: var(--stc-shadow);
	background: var(--stc-surface);
	color: var(--stc-text);
	transition: transform .25s, box-shadow .25s;
}
.stc-renc-card:hover { transform: translateY(-4px); box-shadow: var(--stc-shadow-lg); }
.stc-renc-card-head { color: var(--stc-white); padding: 12px 14px; }
.stc-renc-jour {
	font-family: var(--stc-font-display);
	font-stretch: 120%;
	font-style: italic;
	font-weight: 900;
	color: var(--stc-yellow);
}
.stc-renc-card-head .stc-renc-lieu {
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	font-weight: 600;
}
.stc-renc-card.is-domicile .stc-renc-card-head .stc-renc-lieu { background: var(--stc-teal); color: var(--stc-ink); }
.stc-renc-card-logos .stc-renc-vs {
	font-family: var(--stc-font-display);
	font-style: italic;
	font-weight: 900;
	color: var(--stc-ink);
	background: var(--stc-yellow);
	border-radius: 6px;
	padding: 2px 8px;
}
body .stc-renc-nav {
	border-radius: 50%;
	background: var(--stc-ink);
	color: var(--stc-yellow);
	box-shadow: 0 0 0 2px var(--stc-bg);
}
body .stc-renc-nav:hover { background: var(--stc-yellow); color: var(--stc-ink); }

/* ==========================================================================
   5. Pages intérieures
   ========================================================================== */
#sport_innerpage_area { padding: 0 0 72px; }
.sport_innerpage_content_wrapper { padding-bottom: 0; }

/* Titre de page : bandeau sombre pleine largeur */
#sport_innerpage_area h1.entry-title,
body.single #sport_innerpage_area h3.single-title {
	position: relative;
	margin: 0 0 48px;
	padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
	color: var(--stc-white);
	font-size: clamp(32px, 5vw, 58px);
	font-style: italic;
	font-weight: 900;
	text-transform: uppercase;
	background: var(--stc-ink);
	box-shadow: 0 0 0 100vmax var(--stc-ink);
	clip-path: inset(0 -100vmax);
}
#sport_innerpage_area h1.entry-title::after,
body.single #sport_innerpage_area h3.single-title::after {
	content: "";
	display: block;
	width: 96px;
	height: 8px;
	margin-top: 20px;
	transform: skewX(-24deg);
	background: linear-gradient(90deg, var(--stc-yellow) 0 66%, transparent 66% 74%, var(--stc-teal) 74%);
}

/* Sur l'accueil, le titre de la page suit le style des autres sections */
body.home #sport_innerpage_area { padding-top: clamp(48px, 7vw, 88px); }
body.home #sport_innerpage_area h1.entry-title {
	display: inline-block;
	margin: 0 0 36px;
	padding: 0 0 0 64px;
	color: var(--stc-fg);
	font-size: clamp(28px, 3.6vw, 42px);
	background: none;
	box-shadow: none;
	clip-path: none;
}
body.home #sport_innerpage_area h1.entry-title::after {
	position: absolute;
	left: 0;
	top: 50%;
	width: 48px;
	height: 6px;
	margin: 0;
	transform: translateY(-50%) skewX(-24deg);
}

#sport_innerpage_area p { margin-bottom: 1.2em; }
.entry-content { font-size: 17px; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; }

.sport_innerpage_content_wrapper a {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--stc-teal);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.sport_innerpage_content_wrapper a:hover {
	color: var(--stc-fg);
	background: var(--stc-yellow-soft);
	text-decoration-color: var(--stc-fg);
}
.sport_innerpage_content_wrapper a:has(img) { background: none; text-decoration: none; }

.entry-content img,
.wp-block-image img { border-radius: var(--stc-radius); }
img.alignleft, .alignleft, img.alignright, .alignright { border: 0; padding: 0; }

blockquote {
	background: var(--stc-paper);
	border-left: 6px solid var(--stc-yellow);
	border-radius: 0 var(--stc-radius) var(--stc-radius) 0;
	color: var(--stc-text);
	font-size: 18px;
	font-style: italic;
	padding: 20px 24px 20px 28px;
}

/* Tableaux (classements, programmes…) */
.entry-content table, .comment-body table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--stc-line);
	border-radius: var(--stc-radius-sm);
	overflow: hidden;
	font-size: 15px;
}
.entry-content table th, .comment-body table th,
.entry-content table thead td {
	background: var(--stc-ink);
	color: var(--stc-yellow);
	font: 700 13px/1.3 var(--stc-font-display);
	letter-spacing: .06em;
	text-transform: uppercase;
	border-bottom: 0;
	padding: 12px 10px;
}
.entry-content table td, .comment-body table td { border-bottom: 1px solid var(--stc-line); padding: 10px; }
.entry-content table tbody tr:nth-child(even) td { background: var(--stc-paper); }
.entry-content table tbody tr:hover td { background: var(--stc-yellow-soft); }
.entry-content table tr:last-child td { border-bottom: 0; }

/* Articles */
.blogpost_layout {
	background: var(--stc-surface);
	border: 1px solid var(--stc-line);
	border-radius: var(--stc-radius);
	padding: 28px;
	box-shadow: var(--stc-shadow);
}
body.single-post .blogpost_layout { border: 0; box-shadow: none; padding: 0; }
.blogpost_layout .blogpost_imagebx img { border-radius: var(--stc-radius-sm); }
.blogpost_layout h3 a { color: var(--stc-fg); }
.blogpost_layout h3 a:hover { color: var(--stc-link-hover); }

/* Pagination */
nav.pagination .page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 9px 14px;
	border-radius: 999px;
	background: var(--stc-paper);
	color: var(--stc-fg);
	font-weight: 700;
	text-align: center;
}
nav.pagination .page-numbers.current,
nav.pagination a.page-numbers:hover { background: var(--stc-yellow); color: var(--stc-ink); }

/* Barre latérale */
#sidebar aside.widget {
	background: var(--stc-paper);
	border-radius: var(--stc-radius);
	padding: 24px;
}
h3.widget-title { font-size: 18px; text-transform: uppercase; font-style: italic; }
h3.widget-title::after { width: 40px; height: 4px; border: 0; background: var(--stc-yellow); transform: skewX(-24deg); }
#sidebar ul li:before { color: var(--stc-link-hover); }
#sidebar ul li a { color: var(--stc-text); }
#sidebar ul li a:hover { color: var(--stc-link-hover); }
aside .textwidget { background: transparent; padding: 0; }
#sidebar .search-form input.search-submit { background-color: var(--stc-yellow); }

/* ==========================================================================
   6. Boutons & formulaires
   ========================================================================== */
.wp-block-button__link,
.wp-element-button,
.blogreadmore,
.learnmore,
.button,
a.ReadMore,
input[type="submit"],
button[type="submit"],
.wpforms-submit,
#commentform input#submit,
.wpcf7 input[type="submit"] {
	display: inline-block;
	background: var(--stc-yellow) !important;
	color: var(--stc-ink) !important;
	border: 2px solid var(--stc-yellow) !important;
	border-radius: 999px !important;
	padding: 11px 26px !important;
	font: 800 14px/1.2 var(--stc-font-display) !important;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .15s, background-color .2s, color .2s, border-color .2s;
}
.wp-block-button__link:hover,
.wp-element-button:hover,
.blogreadmore:hover,
.learnmore:hover,
.button:hover,
a.ReadMore:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.wpforms-submit:hover,
#commentform input#submit:hover,
.wpcf7 input[type="submit"]:hover {
	background: var(--stc-contrast-bg) !important;
	border-color: var(--stc-contrast-bg) !important;
	color: var(--stc-contrast-fg) !important;
	transform: translateY(-1px);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	border-color: var(--stc-fg) !important;
	color: var(--stc-fg) !important;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"], input[type="date"],
select, textarea {
	font-family: var(--stc-font-body);
	font-size: 16px;
	border: 1px solid var(--stc-input-border);
	border-radius: var(--stc-radius-sm);
	padding: 11px 14px;
	background: var(--stc-surface);
	color: var(--stc-text);
	transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
	border-color: var(--stc-fg);
	box-shadow: 0 0 0 4px rgba(10, 224, 198, .25);
	outline: none;
}

/* ==========================================================================
   7. Pied de page
   ========================================================================== */
.stc-footer {
	position: relative;
	background: var(--stc-ink);
	color: rgba(255, 255, 255, .7);
	padding-top: 64px;
	border-top: 6px solid var(--stc-yellow);
}
.stc-footer-grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(180px, 1fr));
	gap: 40px;
	padding-bottom: 48px;
}
.stc-footer-grid > [class^="widget-column-"] { float: none; width: auto; margin: 0; }
.stc-footer-grid > [class^="widget-column-"]:empty { display: none; }
.stc-footer-logo { display: inline-flex; align-items: center; gap: 16px; color: var(--stc-white); }
.stc-footer-logo img { width: 72px; height: auto; }
.stc-footer-logo span {
	font-family: var(--stc-font-display);
	font-stretch: 118%;
	font-style: italic;
	font-weight: 900;
	font-size: 22px;
	line-height: 1.05;
	text-transform: uppercase;
}
.stc-footer-logo:hover { color: var(--stc-yellow); }
.stc-footer-fft { margin: 18px 0 20px; font-size: 14px; }
.stc-footer-social { display: flex; gap: 10px; }
.stc-footer-social a {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--stc-ink-3);
	color: var(--stc-white);
}
.stc-footer-social a:hover { background: var(--stc-yellow); color: var(--stc-ink); }

.footer-wrapper .widget { padding: 0; }
.footer-wrapper h5 {
	margin: 0 0 18px;
	color: var(--stc-yellow);
	font-size: 15px;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-style: italic;
}
.footer-wrapper ul { list-style: none; }
.footer-wrapper ul li { color: rgba(255, 255, 255, .7); padding: 0 0 10px; }
.footer-wrapper ul li a, .footer-wrapper a { color: rgba(255, 255, 255, .78); }
.footer-wrapper ul li a:hover,
.footer-wrapper a:hover,
.footer-wrapper ul li.current_page_item a { color: var(--stc-teal); }

.footer_bottom {
	background: #000;
	color: rgba(255, 255, 255, .55);
	padding: 18px 0;
	font-size: 13px;
	text-align: left;
}
.footer_bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer_bottom a { color: rgba(255, 255, 255, .75); }
.footer_bottom a:hover { color: var(--stc-yellow); }

@media screen and (max-width: 767px) {
	.stc-footer { padding-top: 44px; }
	.stc-footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.footer_bottom .container { justify-content: center; text-align: center; }
}

/* ==========================================================================
   8. Mode nuit : contenus des plugins et de l'éditeur
   ========================================================================== */
:root[data-theme="dark"] .stc-renc-logo { background: #2a2c31; color: #c9cbd1; }

/* Elementor : couleurs globales du kit (texte courant) */
:root[data-theme="dark"] body[class*="elementor-kit-"] {
	--e-global-color-text: var(--stc-text);
}
:root[data-theme="dark"] .elementor-widget-text-editor,
:root[data-theme="dark"] .elementor-widget-heading .elementor-heading-title { color: inherit; }

/* WPForms (rendu « modern ») */
:root[data-theme="dark"] .wpforms-container {
	--wpforms-field-background-color: var(--stc-surface);
	--wpforms-field-border-color: var(--stc-input-border);
	--wpforms-field-text-color: var(--stc-text);
	--wpforms-label-color: var(--stc-fg);
	--wpforms-label-sublabel-color: var(--stc-muted);
	--wpforms-field-menu-color: var(--stc-surface);
}
:root[data-theme="dark"] .wpforms-container label { color: var(--stc-fg); }

/* Blocs Gutenberg avec fond clair imposé : on garde un texte lisible */
:root[data-theme="dark"] .has-white-background-color,
:root[data-theme="dark"] .has-base-background-color { color: var(--stc-ink); }

/* Images aux fonds transparents (logos partenaires…) : légère pastille claire */
:root[data-theme="dark"] .entry-content img[src$=".png"]:not(.wp-post-image),
:root[data-theme="dark"] .entry-content img[src$=".svg"] {
	background: rgba(255, 255, 255, .92);
	border-radius: var(--stc-radius-sm);
}
