/*
 Theme Name:   OceanWP Child
 Template:     oceanwp
 Version:      1.2.0
 Text Domain:  oceanwp-child
*/

/* ============================================
 * OceanWP Child — overrides CSS globaux
 * ============================================ */

.elementor-element-77d8738 .elementor-button,
.elementor-element-77d8738 .elementor-button:visited {
	background-color: transparent;
	background-image: linear-gradient(135deg, #4A6CF7 0%, #9F3FFB 100%);
	border: none;
	color: #fff;
	transition: filter 0.2s ease, transform 0.2s ease;
}
.elementor-element-77d8738 .elementor-button:hover,
.elementor-element-77d8738 .elementor-button:focus {
	background-image: linear-gradient(135deg, #4A6CF7 0%, #9F3FFB 100%);
	color: #fff;
	filter: brightness(1.08);
}

#site-navigation-wrap .dropdown-menu > li > a {
	color: #333 !important;
	font-weight: 500;
}

#site-header {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ============================================
 * Liens, séparation content/sidebar, images
 * ============================================ */

.entry-content a:not(.elementor-button):not(.wp-block-button__link):not(.button) {
	color: #6b21d6;
	text-decoration: underline;
	text-decoration-color: rgba(107, 33, 214, 0.35);
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
	transition: color .15s ease, text-decoration-color .15s ease;
}
.entry-content a:not(.elementor-button):not(.wp-block-button__link):not(.button):hover,
.entry-content a:not(.elementor-button):not(.wp-block-button__link):not(.button):focus {
	color: #4a0d99;
	text-decoration-color: currentColor;
}

.content-area {
	border-right: 0 !important;
	padding-right: 50px !important;
}
@media (max-width: 960px) {
	.content-area { padding-right: 0 !important; }
}

.entry-content img:not(.custom-logo):not([class*="emoji"]),
.entry-content figure img,
.entry-content .wp-block-image img {
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
	max-width: 100%;
	height: auto;
}

/* ============================================
 * Articles — largeur, sidebar sticky, titres, tableaux
 * ============================================ */

.single-post .entry-content {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}
.single-post .entry-content .alignwide,
.single-post .entry-content .alignfull,
.single-post .entry-content .wp-block-table,
.single-post .entry-content > table {
	max-width: none;
}

@media (min-width: 961px) {
	#right-sidebar,
	.sidebar-container {
		position: sticky;
		top: 100px;
		align-self: flex-start;
	}
}

.single-post .entry-title,
.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
	color: #0f172a !important;
}
.single-post .entry-content h2 {
	position: relative;
	padding-left: 20px;
	margin-top: 2.2em;
}
.single-post .entry-content h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.18em;
	bottom: 0.18em;
	width: 4px;
	border-radius: 2px;
	background: linear-gradient(180deg, #4A6CF7 0%, #9F3FFB 100%);
}
.single-post .entry-content h3 { margin-top: 1.8em; }

.single-post .entry-content .wp-block-table,
.single-post .entry-content figure.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 24px 0;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.single-post .entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.single-post .entry-content thead th {
	background: linear-gradient(135deg, #4A6CF7, #9F3FFB);
	color: #fff;
	font-weight: 600;
	text-align: left;
	padding: 12px 14px;
}
.single-post .entry-content tbody td {
	padding: 12px 14px;
	border-bottom: 1px solid #eef2ff;
}
.single-post .entry-content tbody tr:nth-child(even) td { background: #faf9ff; }
.single-post .entry-content tbody tr:hover td { background: #f3f0ff; }

/* ============================================
 * Shortcodes [verdict] et [cta]
 * ============================================ */

.vio-verdict {
	background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
	border-left: 4px solid #6b21d6;
	border-radius: 12px;
	padding: 22px 26px;
	margin: 32px 0;
	box-shadow: 0 4px 18px rgba(107, 33, 214, 0.06);
}
.vio-verdict__label {
	display: inline-block;
	background: #6b21d6;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.6px;
	padding: 4px 10px;
	border-radius: 6px;
	text-transform: uppercase;
	margin-bottom: 10px;
}
.vio-verdict__title {
	font-family: Outfit, sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #0f172a !important;
	margin: 0 0 8px;
	line-height: 1.3;
}
.vio-verdict__body p:last-child { margin-bottom: 0; }

.vio-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	margin: 32px 0;
	background: linear-gradient(135deg, #4A6CF7 0%, #9F3FFB 100%);
	border-radius: 16px;
	color: #fff;
	box-shadow: 0 8px 24px rgba(74, 108, 247, 0.25);
}
.vio-cta__main { flex: 1 1 280px; }
.vio-cta__title {
	font-family: Outfit, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #fff !important;
	margin: 0 0 4px;
	line-height: 1.3;
}
.vio-cta__sub { font-size: 14px; opacity: 0.9; margin: 0; }
.vio-cta__btn {
	display: inline-block;
	background: #fff;
	color: #4A6CF7 !important;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 10px;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	white-space: nowrap;
}
.vio-cta__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.vio-cta__price { font-size: 13px; opacity: 0.85; font-weight: 500; }

/* ============================================
 * Table of Contents (TOC) — design "card" moderne
 * ============================================ */

.vio-toc {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	margin: 24px 0 40px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.vio-toc__title {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	background: linear-gradient(135deg, #4A6CF7 0%, #9F3FFB 100%);
	color: #fff !important;
	font-family: Outfit, sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.2px;
	cursor: pointer;
	list-style: none;
	user-select: none;
	margin: 0;
}
.vio-toc__title::-webkit-details-marker,
.vio-toc__title::marker { display: none; content: ""; }
.vio-toc__title::before {
	content: "📋";
	font-size: 18px;
	filter: grayscale(0.05);
}
.vio-toc__title::after {
	content: "▾";
	margin-left: auto;
	font-size: 13px;
	transition: transform 0.2s ease;
	opacity: 0.85;
}
.vio-toc[open] .vio-toc__title::after { transform: rotate(180deg); }

.vio-toc__list {
	list-style: none;
	margin: 0;
	padding: 10px 12px 14px;
	counter-reset: vio-toc;
}
.vio-toc__list li {
	counter-increment: vio-toc;
	margin: 0;
	padding: 0;
}
.vio-toc__list li::before { content: none; } /* override ancien numéro */
.vio-toc__list a {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	color: #334155 !important;
	text-decoration: none !important;
	font-size: 15px;
	line-height: 1.45;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.vio-toc__list a::before {
	content: counter(vio-toc, decimal-leading-zero);
	background: #f1f5f9;
	color: #64748b;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	font-size: 12px;
	letter-spacing: 0.3px;
	padding: 3px 8px;
	border-radius: 6px;
	flex-shrink: 0;
	min-width: 30px;
	text-align: center;
	transition: background 0.15s ease, color 0.15s ease;
	line-height: 1.4;
	margin-top: 2px;
}
.vio-toc__list a:hover {
	background: #f8fafc;
	color: #4A6CF7 !important;
	transform: translateX(2px);
	text-decoration: none !important;
}
.vio-toc__list a:hover::before {
	background: linear-gradient(135deg, #4A6CF7, #9F3FFB);
	color: #fff;
}
.vio-toc__list a.is-active {
	background: linear-gradient(90deg, rgba(74,108,247,0.08), transparent);
	color: #4A6CF7 !important;
	font-weight: 600;
}
.vio-toc__list a.is-active::before {
	background: linear-gradient(135deg, #4A6CF7, #9F3FFB);
	color: #fff;
}

.single-post .entry-content h2[id] { scroll-margin-top: 100px; }

/* ============================================
 * Image mise en avant des articles
 * ============================================ */

.post-thumbnail img {
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}


/* ============================================
 * Désactiver le sticky du header — il ne suit plus le scroll
 * ============================================ */
#site-header.is-sticky,
#site-header.fixed-scroll,
#site-header.fixed-header,
.is-sticky #site-header,
.fixed-scroll #site-header,
.fixed-header #site-header {
	position: relative !important;
	transform: none !important;
	top: auto !important;
	width: auto !important;
	z-index: auto !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}
.fixed-header-placeholder,
.is-sticky-placeholder,
#site-header-placeholder {
	display: none !important;
	height: 0 !important;
}


/* ============================================
 * TOC Sidebar — version "card" verticale dans la sidebar
 * ============================================ */

.vio-toc-side {
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: 16px;
	padding: 12px 0 8px;
	margin-bottom: 20px !important;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.vio-toc-side__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 18px 12px;
	color: #4A6CF7;
	font-family: Outfit, sans-serif;
	font-weight: 600;
	font-size: 16px;
}
.vio-toc-side__head i { font-size: 18px; }

.vio-toc-side__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 8px 4px !important;
}
.vio-toc-side__list li {
	margin: 0 !important;
	padding: 0 !important;
}
.vio-toc-side__list li::before { content: none !important; }

.vio-toc-side__list a {
	display: flex !important;
	align-items: center;
	gap: 12px;
	padding: 9px 12px !important;
	border-radius: 8px;
	color: #475569 !important;
	text-decoration: none !important;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.35;
	transition: background 0.15s ease, color 0.15s ease;
	border-left: none !important;
	margin: 0 !important;
}
.vio-toc-side__list a i {
	width: 18px;
	text-align: center;
	font-size: 14px;
	color: #94a3b8;
	flex-shrink: 0;
	transition: color 0.15s ease;
}
.vio-toc-side__list a:hover {
	background: #f1f5f9;
	color: #0f172a !important;
	text-decoration: none !important;
}
.vio-toc-side__list a:hover i { color: #4A6CF7; }
.vio-toc-side__list a.is-active {
	background: #eff5ff;
	color: #4A6CF7 !important;
	font-weight: 600;
}
.vio-toc-side__list a.is-active i { color: #4A6CF7; }

/* ===== Encart "Notre choix" ===== */
.vio-pick {
	margin-bottom: 20px !important;
	border: 1px solid #e0e7ff;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	padding: 0 !important;
}
.vio-pick__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
	color: #4A6CF7;
	font-weight: 600;
	font-size: 13px;
	border-bottom: 1px solid #e0e7ff;
}
.vio-pick__head i { color: #4A6CF7; }
.vio-pick__body {
	padding: 16px;
	text-align: center;
}
.vio-pick__name {
	font-family: Outfit, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px;
}
.vio-pick__stars {
	color: #fbbf24;
	font-size: 14px;
	margin: 0 0 12px;
	letter-spacing: 2px;
}
.vio-pick__btn {
	display: inline-block;
	background: linear-gradient(135deg, #4A6CF7, #6F4FF7) !important;
	color: #fff !important;
	font-weight: 600;
	font-size: 14px;
	padding: 9px 22px;
	border-radius: 8px;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 4px 12px rgba(74, 108, 247, 0.25);
}
.vio-pick__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(74, 108, 247, 0.35);
	color: #fff !important;
}

/* On masque l'ancien TOC in-content (au cas où il resterait quelque part) */
.entry-content > details.vio-toc { display: none; }


/* ============================================
 * Premium — backgrounds enrichis TOC sidebar + Notre choix
 * ============================================ */

.vio-toc-side {
	background:
		radial-gradient(ellipse 120% 80% at 100% 0%, rgba(159, 63, 251, 0.08), transparent 55%),
		radial-gradient(ellipse 100% 60% at 0% 100%, rgba(74, 108, 247, 0.07), transparent 55%),
		linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
	border: 1px solid #e5ebff;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.8) inset,
		0 1px 3px rgba(15, 23, 42, 0.04),
		0 12px 32px rgba(74, 108, 247, 0.08),
		0 24px 48px rgba(159, 63, 251, 0.04);
	position: relative;
}

/* Liseré gradient en haut */
.vio-toc-side::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	border-radius: 16px 16px 0 0;
	background: linear-gradient(90deg, #4A6CF7 0%, #9F3FFB 100%);
	pointer-events: none;
}

/* Item actif : fond gradient subtil avec halo */
.vio-toc-side__list a.is-active {
	background:
		linear-gradient(90deg, rgba(74, 108, 247, 0.10), rgba(159, 63, 251, 0.04)),
		#ffffff !important;
	color: #4A6CF7 !important;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(74, 108, 247, 0.08);
}

/* Hover plus chaleureux */
.vio-toc-side__list a:hover {
	background: linear-gradient(90deg, rgba(74, 108, 247, 0.06), rgba(159, 63, 251, 0.02)) !important;
}

/* Encart Notre choix premium */
.vio-pick {
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74, 108, 247, 0.06), transparent 60%),
		#ffffff;
	border: 1px solid #e5ebff;
	box-shadow:
		0 1px 3px rgba(15, 23, 42, 0.04),
		0 8px 20px rgba(74, 108, 247, 0.08);
}

.vio-pick__head {
	background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #fdf4ff 100%);
	border-bottom: 1px solid rgba(224, 231, 255, 0.7);
}

/* Bouton CTA avec lueur subtle */
.vio-pick__btn {
	background: linear-gradient(135deg, #4A6CF7 0%, #6F4FF7 50%, #9F3FFB 100%) !important;
	box-shadow:
		0 4px 12px rgba(74, 108, 247, 0.30),
		0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.vio-pick__btn:hover {
	box-shadow:
		0 6px 20px rgba(74, 108, 247, 0.45),
		0 1px 0 rgba(255, 255, 255, 0.2) inset;
}


/* ============================================
 * Premium — élève les blocs in-content
 * ============================================ */

/* Encarts info type "border-left:5px solid" (Essentiel à retenir, etc.) */
.entry-content > div[style*="border-left:5px solid"],
.entry-content > div[style*="border-left: 5px solid"] {
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.6) inset,
		0 2px 6px rgba(15, 23, 42, 0.04),
		0 14px 36px rgba(74, 108, 247, 0.08) !important;
	transition: box-shadow .25s ease, transform .25s ease;
}
.entry-content > div[style*="border-left:5px solid"]:hover,
.entry-content > div[style*="border-left: 5px solid"]:hover {
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.6) inset,
		0 4px 12px rgba(15, 23, 42, 0.06),
		0 22px 50px rgba(74, 108, 247, 0.12) !important;
}

/* Cards "highlighted" — border:2px bleu/violet */
.entry-content div[style*="border:2px solid #4A6CF7"] {
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.6) inset,
		0 4px 14px rgba(74, 108, 247, 0.18),
		0 16px 36px rgba(74, 108, 247, 0.12) !important;
	transition: box-shadow .25s ease, transform .25s ease;
}
.entry-content div[style*="border:2px solid #4A6CF7"]:hover {
	transform: translateY(-2px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.6) inset,
		0 6px 20px rgba(74, 108, 247, 0.25),
		0 24px 50px rgba(159, 63, 251, 0.15) !important;
}

/* Cards "neutres" border:1px (les outils 2-5 du podium, etc.) */
.entry-content div[style*="border:1px solid #e5e7eb"] {
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 8px 24px rgba(15, 23, 42, 0.05) !important;
	transition: transform .2s ease, box-shadow .2s ease;
	background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%) !important;
}
.entry-content div[style*="border:1px solid #e5e7eb"]:hover {
	transform: translateY(-2px);
	box-shadow:
		0 4px 14px rgba(74, 108, 247, 0.10),
		0 18px 40px rgba(74, 108, 247, 0.10) !important;
}

/* Shortcodes [verdict] et [cta] — élévation premium */
.vio-verdict {
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.7) inset,
		0 1px 3px rgba(107, 33, 214, 0.05),
		0 14px 36px rgba(107, 33, 214, 0.10),
		0 28px 56px rgba(74, 108, 247, 0.05) !important;
}

.vio-cta {
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.15) inset,
		0 10px 28px rgba(74, 108, 247, 0.32),
		0 22px 56px rgba(159, 63, 251, 0.22) !important;
}

/* Tableau comparatif — ombre premium */
.single-post .entry-content .wp-block-table,
.single-post .entry-content figure.wp-block-table,
.single-post .entry-content > table {
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.7) inset,
		0 2px 6px rgba(15, 23, 42, 0.04),
		0 14px 36px rgba(74, 108, 247, 0.08) !important;
}

