/*
Theme Name: Hipno Child
Theme URI: https://santedudirigeant.fr
Description: Child theme for Hipno — Live Santé customizations.
Author: Live Santé
Template: hipno
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: hipno-child
*/

/* ==========================================================================
   Avis section background
   ========================================================================== */

.bgcolorlesavis {
	background: linear-gradient(
		65deg,
		rgb(88, 110, 160),
		rgb(88, 123, 189),
		rgb(99, 138, 200),
		rgb(114, 149, 205),
		rgb(134, 155, 204),
		rgb(157, 160, 201),
		rgb(180, 164, 198),
		rgb(205, 169, 195),
		rgb(226, 173, 192),
		rgb(237, 176, 189),
		rgb(243, 180, 181),
		rgb(246, 186, 163),
		rgb(247, 192, 138),
		rgb(248, 201, 102),
		rgb(249, 213, 55),
		rgb(249, 225, 6)
	);
	background-size: cover;
	background-repeat: no-repeat;
}

/* ==========================================================================
   Elementor buttons
   ========================================================================== */

.elementor-widget-button .elementor-button::before {
	background: unset !important;
}

/* ==========================================================================
   Page header
   ========================================================================== */

.page-header {
	background: #17254f !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 200px 20px 50px;
	margin-top: -116px;
	min-height: 300px;
	text-align: center;
}

.page-header::before {
	background: none;
}

.page-header-box h1 {
	font-size: 2rem;
	line-height: 1.3;
	color: #fff;
	margin-bottom: 20px;
}

@media (max-width: 767px) {
	.page-header {
		padding: 160px 15px 50px;
		min-height: 400px;
		margin-top: -115px !important;
	}

	.page-header-box h1 {
		font-size: 1.6rem;
		line-height: 1.4;
		padding: 0 10px;
	}

	.post-single-meta {
		font-size: 0.9rem;
	}
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumb-trail a {
	color: #0073aa;
	text-decoration: none;
}

.breadcrumb-trail a:hover {
	color: #d35400;
}

.breadcrumb-trail .trail-item + .trail-item::before {
	content: "››";
	color: #fff;
	margin: 0 7px;
	font-size: 12px;
}

/* ==========================================================================
   Header — animated border (Contactez-nous)
   ========================================================================== */

.animated-border-btn .elementor-button-link .anim-span {
	position: absolute;
	background: #ffffff;
	z-index: 1;
}

.animated-border-btn .span-1 {
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	animation: slide-top 2s linear infinite;
}

.animated-border-btn .span-2 {
	top: 0;
	right: 0;
	width: 2px;
	height: 100%;
	animation: slide-right 2s linear infinite;
	animation-delay: -1s;
}

.animated-border-btn .span-3 {
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	animation: slide-bottom 2s linear infinite;
}

.animated-border-btn .span-4 {
	top: 0;
	left: 0;
	width: 2px;
	height: 100%;
	animation: slide-left 2s linear infinite;
	animation-delay: -1s;
}

@keyframes slide-top {
	from { transform: translateX(-100%); }
	to { transform: translateX(100%); }
}

@keyframes slide-bottom {
	from { transform: translateX(100%); }
	to { transform: translateX(-100%); }
}

@keyframes slide-left {
	from { transform: translateY(100%); }
	to { transform: translateY(-100%); }
}

@keyframes slide-right {
	from { transform: translateY(-100%); }
	to { transform: translateY(100%); }
}

/* ==========================================================================
   Contact Form 7 — Demander la formation
   ========================================================================== */

.wpcf7 form .cf7-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 720px) {
	.wpcf7 form .cf7-grid {
		grid-template-columns: 1fr;
	}
}

.wpcf7 form .cf7-title {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
}

.wpcf7 form .cf7-intro {
	margin: 0 0 1rem;
	color: #555;
}

.wpcf7 form .cf7-section-label {
	margin: 1rem 0 0.25rem;
	font-weight: 600;
}

.wpcf7 form hr {
	border: 0;
	border-top: 1px solid #eee;
	margin: 1rem 0;
}

.wpcf7 form input[type="text"],
.wpcf7 form input[type="email"],
.wpcf7 form input[type="tel"],
.wpcf7 form input[type="url"],
.wpcf7 form select,
.wpcf7 form textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #dcdcdc;
	border-radius: 8px;
	background: #fff;
	font: inherit;
}

.wpcf7 form textarea {
	min-height: 120px;
}

.wpcf7 form .cf7-inline .wpcf7-list-item {
	display: inline-flex;
	margin: 0 0.9rem 0.5rem 0;
}

.wpcf7 form .muted {
	color: #777;
}

.wpcf7 form .cf7-actions {
	margin-top: 1rem;
}

.wpcf7 form input[type="submit"] {
	padding: 0.75rem 1.2rem;
	border-radius: 10px;
	border: 1px solid #ffc56b;
	background: #ffcc7a;
	cursor: pointer;
	transition: filter 0.15s;
}

.wpcf7 form input[type="submit"]:hover {
	filter: brightness(0.97);
}

/* ==========================================================================
   Blog — single post & sidebar
   ========================================================================== */

.post-single-image {
	display: none;
}

aside.widget {
	padding: 10px 15px;
}

.wp-block-search .wp-block-search__button {
	position: relative;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 10px;
	background-color: var(--e-global-color-accent);
	transition: background-color 0.2s ease, transform 0.1s ease;
	font-size: 0;
	line-height: 0;
	color: transparent;
}

.wp-block-search .wp-block-search__button::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 18px;
	height: 18px;
	background: url("https://santedudirigeant.fr/wp-content/uploads/2025/08/search.svg") no-repeat center / contain;
	pointer-events: none;
}

.wp-block-search .wp-block-search__button:hover,
.wp-block-search .wp-block-search__button:focus {
	background-color: var(--primary-hover);
}

.wp-block-search .wp-block-search__button:active {
	background-color: var(--primary-pressed);
	transform: scale(0.98);
}

/* ==========================================================================
   Download form — Les mots qui sauvent
   ========================================================================== */

.download-form {
	max-width: 560px;
	margin: 4rem auto;
	background: #fff;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	text-align: center;
}

.download-form p {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding-top: 25px;
}

.download-form .wpcf7-form-control-wrap {
	flex: 1;
}

.download-form input[type="email"] {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 1px solid #d9d9df;
	border-radius: 8px;
	font-size: 1rem;
	box-sizing: border-box;
}

.download-form form input[type="submit"] {
	background: #fdc652 !important;
	color: #fff;
	border: 0;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	padding: 0.9rem 1.1rem;
	border-radius: 8px;
	transition: background-color 0.2s ease;
}

.download-form form input[type="submit"]:hover {
	background: #e6b347;
}

@media (max-width: 480px) {
	.download-form p {
		flex-direction: column;
		align-items: stretch;
	}

	.download-form input[type="submit"] {
		width: 100%;
	}
}

/* ==========================================================================
   Mobile menu — social icons
   ========================================================================== */

.menu-insta,
.menu-linkedin {
	display: inline-block !important;
	margin-right: 10px;
}

.menu-insta a,
.menu-linkedin a {
	font-size: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
}

/* ==========================================================================
   Newsletter form
   ========================================================================== */

.newsletter {
	max-width: 560px;
	width: 100%;
	margin: 0 auto;
	padding: 3rem 0;
	border-radius: 12px;
	text-align: center;
}

.newsletter p {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
}

@media (max-width: 480px) {
	.newsletter p {
		flex-direction: column;
		gap: 0.5rem;
	}

	.newsletter input,
	.newsletter button {
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
	}
}

/* ==========================================================================
   Livre blanc form
   ========================================================================== */

.livreblanc {
	max-width: 560px;
	width: 100%;
	margin: 0 auto;
	padding: 3rem 0;
	border-radius: 12px;
	text-align: center;
	background-color: #5a94cf;
}

.livreblanc h2 {
	color: white;
}

.livreblanc p {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding-top: 25px;
}

@media (max-width: 480px) {
	.livreblanc p {
		flex-direction: column;
		gap: 1rem;
	}

	.livreblanc input,
	.livreblanc button {
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
	}
}

/* ==========================================================================
   ElementsKit countdown
   ========================================================================== */

.elementskit-countdown-timer .elementskit-timer-container {
	margin: 0;
	padding: 0;
}

.elementskit-countdown-timer .elementskit-timer-content {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.elementskit-countdown-timer .elementskit-timer-count,
.elementskit-countdown-timer .elementskit-timer-title {
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   Spam protection badges (hidden, still active)
   ========================================================================== */

.grecaptcha-badge,
.wpcf7-turnstile,
.cf-turnstile {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
