/*
Theme Name: ABS Hypnose
Description: Thème enfant de Hello Elementor pour ABS Hypnose & Laser. L'en-tête et le pied de page sont des modèles Elementor (Modèles > Enregistrés : « En-tête du site » et « Pied de page du site »).
Template: hello-elementor
Version: 1.1.1
Text Domain: abs-hypnose
*/

:root {
	--abs-orange: #E03F00;
	--abs-gris: #F1F1F1;
}

html { scroll-behavior: smooth; }

body {
	font-family: "Quicksand", sans-serif;
	color: #000;
}

/* En-tête collant au-dessus du hero */
.abs-header {
	position: sticky;
	top: 0;
	z-index: 100;
}
body.admin-bar .abs-header { top: 32px; }

/* Page d'accueil : l'en-tête se superpose à la vidéo / image du hero */
body.home .abs-header {
	position: fixed;
	left: 0;
	right: 0;
	transition: background-color .3s ease, box-shadow .3s ease;
}
body.home .abs-header:not(.is-scrolled) .elementor > .e-con {
	background-color: transparent !important;
	box-shadow: none !important;
}
body.home .abs-header:not(.is-scrolled) .elementor-heading-title a,
body.home .abs-header:not(.is-scrolled) .elementor-social-icon i,
body.home .abs-header:not(.is-scrolled) .abs-menu a {
	color: #fff !important;
}

/* Bloc Facebook + bouton RDV : largeur selon contenu */
.abs-header .abs-actions { width: auto !important; flex: 0 0 auto; }
@media (min-width: 1025px) {
	.abs-header .e-con-inner { flex-wrap: nowrap !important; }
	.abs-header .abs-nav { flex: 1 1 auto; display: flex; justify-content: center; }
}

/* Menu principal (widget « Menu WordPress ») */
.abs-menu ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.abs-menu li { position: relative; }
.abs-menu a {
	display: block;
	padding: 8px 0;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	color: #000;
	text-decoration: none;
	transition: color .2s;
}
.abs-menu a:hover,
.abs-menu .current-menu-item > a { color: var(--abs-orange) !important; }
.abs-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: -12px;
	min-width: 260px;
	padding: 10px 12px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	border-radius: 8px;
	flex-direction: column;
	align-items: stretch;
}
.abs-menu li:hover > .sub-menu { display: flex; }
.abs-menu .sub-menu a { color: #000 !important; text-transform: none; }

.abs-burger { display: none; }

@media (max-width: 1024px) {
	.abs-menu { display: none; width: 100%; }
	.abs-menu.is-open { display: block; }
	.abs-menu ul { flex-direction: column; align-items: flex-start; padding: 12px 0; }
	.abs-menu .sub-menu { position: static; display: flex; box-shadow: none; padding: 0 0 0 16px; }
	body.home .abs-header .abs-menu.is-open a { color: #000 !important; }
	.abs-burger,
	.abs-burger:hover,
	.abs-burger:focus {
		display: inline-flex;
		background: none !important;
		border: 0 !important;
		padding: 4px 0;
		color: #000;
		font-size: 28px;
		line-height: 1;
		cursor: pointer;
		color: inherit;
	}
	body.home .abs-header:not(.is-scrolled) .abs-burger { color: #fff; }
	.abs-header.menu-open .abs-nav { order: 10; width: 100% !important; }
	.abs-header .abs-nav { order: 5; }
}
.abs-rdv-mobile { display: none; }
@media (max-width: 767px) {
	.abs-header .abs-actions { display: none !important; }
	.abs-rdv-mobile { display: block; }
	.abs-menu .abs-rdv-mobile a {
		margin-top: 8px;
		padding: 10px 22px;
		border-radius: 30px;
		background: var(--abs-orange);
		color: #fff !important;
	}
}

/* Cartes de services (image + titre superposé) */
.abs-card {
	border-radius: 24px;
	overflow: hidden;
	transition: transform .3s ease;
}
.abs-card:hover { transform: translateY(-6px); }

/* Pied de page */
.abs-footer a { color: #fff; text-decoration: none; }
.abs-footer a:hover { text-decoration: underline; }
.abs-footer ul { list-style: none; margin: 0; padding: 0; }
.abs-footer li { margin-bottom: 6px; }

/* Bouton « retour en haut » */
.abs-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--abs-orange);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	text-decoration: none;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s;
	z-index: 90;
}
.abs-top.is-visible { opacity: 1; pointer-events: auto; }
.abs-top:hover { color: #fff; }

/* Logo de l'en-tête */
.abs-header .abs-logo { flex: 0 0 auto; }
.abs-header .abs-logo img { display: block; height: auto; }

/* Module de réservation SimplyBook (présentation de l'ancien site) */
.abs-rdv { max-width: 900px; margin: 0 auto; }
.abs-rdv-couverture {
	height: 360px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px;
	padding: 20px; background: #333 center / cover no-repeat; text-align: center;
}
.abs-rdv-nom { color: #fff; font-size: 30px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.abs-rdv-boutons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.abs-rdv-btn {
	display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border: 0; border-radius: 3px;
	background: #E45F59; color: #F5FCFF !important; font: inherit; font-size: 16px; text-decoration: none; cursor: pointer;
}
.abs-rdv-btn:hover { background: #cf4d47; }
.abs-rdv-reserver { font-size: 18px; }
/* Cadre SimplyBook : en-tête SimplyBook masqué (92 px) ; sur l'accueil, sa barre « Réserver » aussi (180 px). */
.abs-reservation { height: 650px; overflow: hidden; background: #F2F2F2; scroll-margin-top: 100px; }
.abs-reservation iframe { display: block; width: 100%; height: calc(650px + 92px); margin-top: -92px; border: 0; }
.abs-reservation.is-accueil iframe { height: calc(650px + 180px); margin-top: -180px; }
@media (max-width: 767px) {
	.abs-rdv-couverture { height: 260px; }
	.abs-rdv-nom { font-size: 22px; }
	.abs-reservation { height: 75vh; }
	.abs-reservation iframe { height: calc(75vh + 92px); }
	.abs-reservation.is-accueil iframe { height: calc(75vh + 180px); }
}
.abs-reservation-secours { text-align: center; font-size: 13px; color: #666; margin: 0; }

/* ---------- Actualités ---------- */
.abs-bandeau-blog {
	position: relative;
	min-height: 380px;
	display: flex; flex-direction: column; justify-content: center; align-items: center;
	padding: 90px 20px; text-align: center; color: #fff;
	background: #333 center / cover no-repeat;
}
.abs-bandeau-blog::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.abs-bandeau-blog > * { position: relative; color: #fff; max-width: 900px; }
.abs-bandeau-blog h1 { font-size: 44px; font-weight: 500; margin: 0 0 10px; }
.abs-bandeau-blog p { font-size: 20px; margin: 0; }
@media (max-width: 767px) {
	.abs-bandeau-blog { min-height: 280px; padding: 50px 16px; }
	.abs-bandeau-blog h1 { font-size: 30px; }
}
.abs-blog-inner { background: var(--abs-gris); padding: 70px 20px; }
.abs-cards { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.abs-card-post { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.abs-card-post__img img { display: block; width: 100%; height: 230px; object-fit: cover; }
.abs-card-post__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.abs-card-post__body p { margin: 0; flex: 1; color: #333; line-height: 1.6; }
.abs-card-post__date { color: var(--abs-orange); font-weight: 600; font-size: 14px; text-transform: uppercase; }
.abs-card-post__title { font-size: 21px; font-weight: 600; margin: 0; line-height: 1.3; }
.abs-card-post__title a { color: #000; text-decoration: none; }
.abs-card-post__title a:hover { color: var(--abs-orange); }
.abs-btn {
	display: inline-block; align-self: flex-start; padding: 12px 26px; border-radius: 30px; border: 2px solid var(--abs-orange);
	background: var(--abs-orange); color: #fff !important; font-weight: 600; text-decoration: none; transition: background .2s, color .2s;
}
.abs-btn:hover { background: #B83300; border-color: #B83300; }
.abs-btn--outline { background: transparent; color: var(--abs-orange) !important; }
.abs-btn--outline:hover { background: var(--abs-orange); color: #fff !important; }
.abs-blog .pagination, .abs-blog .nav-links { max-width: 1200px; margin: 40px auto 0; display: flex; gap: 10px; justify-content: center; }
.abs-blog-social { text-align: center; margin-top: 50px; }
.abs-article { max-width: 860px; margin: 0 auto; padding: 70px 20px; font-size: 17px; line-height: 1.75; color: #222; }
.abs-article-figure { margin: 0 0 30px; text-align: center; }
.abs-article-figure img { border-radius: 20px; max-width: 100%; height: auto; }
.abs-article-content h2 { font-size: 26px; font-weight: 600; margin: 1.6em 0 .5em; }
.abs-article-content h3 { font-size: 20px; font-weight: 600; color: var(--abs-orange); margin: 1.4em 0 .5em; }
.abs-article-content a { color: var(--abs-orange); }
.abs-article-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 50px; }
body .site-main.abs-blog { max-width: none; width: 100%; margin: 0; padding: 0; }
.abs-blog .abs-article-figure img.wp-post-image { max-height: 640px; width: auto; object-fit: contain; }

/* ---------- Formulaire de contact ---------- */
.abs-form { display: flex; flex-direction: column; gap: 14px; }
.abs-form-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .abs-form-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .abs-form-grille { grid-template-columns: 1fr; } }
.abs-form input[type=text], .abs-form input[type=tel], .abs-form input[type=email], .abs-form textarea {
	width: 100%; padding: 12px 16px; border: 1px solid #ccc; border-radius: 12px; font: inherit; background: #fff;
}
.abs-form input:focus, .abs-form textarea:focus { outline: 2px solid var(--abs-orange); border-color: transparent; }
.abs-form-legal { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.abs-form-envoyer { text-align: right; margin: 0; }
.abs-form button.abs-btn { cursor: pointer; font: inherit; font-weight: 600; }
.abs-form-mentions { font-size: 12px; line-height: 1.5; color: #666; margin: 0; }
.abs-form-piege { position: absolute; left: -9999px; }
.abs-form-msg { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.abs-form-msg--succes { background: #e6f4ea; color: #1e6b34; }
.abs-form-msg--erreur { background: #fdecea; color: #a52714; }

/* ---------- Tarifs : filtres ---------- */
.abs-filtres { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.abs-filtres button {
	padding: 10px 22px; border-radius: 30px; border: 2px solid var(--abs-orange); background: #fff; color: var(--abs-orange);
	font: inherit; font-weight: 600; cursor: pointer;
}
.abs-filtres button.is-active, .abs-filtres button:hover { background: var(--abs-orange); color: #fff; }
.abs-produit.is-hidden { display: none !important; }

/* ---------- Mentions légales ---------- */
.abs-legal h2 { font-size: 28px; font-weight: 500; margin: 0 0 20px; }
.abs-legal h3 { font-size: 20px; font-weight: 600; color: var(--abs-orange); margin: 1.6em 0 .5em; }
.abs-bandeau-blog .abs-bandeau-blog__l3 { font-size: 17px; margin-top: 6px; opacity: .9; }
.abs-blog-cta { min-height: 480px; gap: 12px; }
.abs-blog-cta h3 { text-transform: uppercase; font-size: 20px; font-weight: 400; margin: 0; }
.abs-blog-cta h2 { font-size: 31px; font-weight: 500; margin: 0; }
.abs-blog-cta p { font-size: 16px; line-height: 1.7; }
.abs-blog-cta p a { color: #fff; text-decoration: underline; }
.abs-blog-cta .abs-btn { align-self: center; margin-top: 10px; }
