/**
 * Cocooning Spa Pro – Pages & Transversal Styles
 *
 * Styles for: page headers, tarifs, prestations detail, contact,
 * reglement, legal, breadcrumbs, floating buttons, back-to-top,
 * footer enhancements.
 *
 * @package Cocooning_Spa_Pro
 * @since   1.1.0
 */

/* ==========================================================================
   Page Header (shared across all internal pages)
   ========================================================================== */

.csp-page-header {
	padding: 8rem 0 4rem;
	text-align: center;
	background: var(--csp-navy);
	position: relative;
}

.csp-page-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 2px;
	background: var(--csp-gold);
}

.csp-page-header__title {
	font-family: var(--csp-font-heading);
	font-size: clamp(2rem, 5vw, 3rem);
	color: var(--csp-cream);
	margin-bottom: 1rem;
}

.csp-page-header__desc {
	color: rgba(248, 244, 238, 0.7);
	max-width: 600px;
	margin: 0 auto;
	font-size: 1.05rem;
	line-height: 1.7;
}

/* ==========================================================================
   Tarifs Page
   ========================================================================== */

.csp-tarifs-page .csp-tarif-card {
	background: rgba(201, 168, 76, 0.03);
	border: 1px solid rgba(201, 168, 76, 0.15);
	border-radius: var(--csp-radius);
	padding: 2.5rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.csp-tarifs-page .csp-tarif-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(201, 168, 76, 0.1);
}

.csp-tarifs-page .csp-tarif-card__badge {
	display: inline-block;
	background: var(--csp-gold);
	color: var(--csp-navy);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.25rem 0.75rem;
	border-radius: 2rem;
	margin-bottom: 1rem;
}

.csp-tarifs-page .csp-tarif-card__title {
	font-family: var(--csp-font-heading);
	font-size: 1.5rem;
	color: var(--csp-cream);
	margin-bottom: 0.5rem;
}

.csp-tarifs-page .csp-tarif-card__price {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--csp-gold);
	margin-bottom: 0.25rem;
}

.csp-tarifs-page .csp-tarif-card__price small {
	font-size: 0.9rem;
	color: rgba(248, 244, 238, 0.6);
	font-weight: 400;
}

.csp-tarifs-page .csp-tarif-card__desc {
	color: rgba(248, 244, 238, 0.7);
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

.csp-tarifs-page .csp-tarif-card__features {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}

.csp-tarifs-page .csp-tarif-card__features li {
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(248, 244, 238, 0.05);
	color: rgba(248, 244, 238, 0.8);
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.csp-tarifs-page .csp-tarif-card__features li::before {
	content: '✓';
	color: var(--csp-gold);
	font-weight: 700;
}

.csp-tarifs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.csp-tarifs-options {
	margin-top: 3rem;
}

.csp-tarifs-options__title {
	font-family: var(--csp-font-heading);
	font-size: 1.3rem;
	color: var(--csp-cream);
	margin-bottom: 1.5rem;
	text-align: center;
}

.csp-tarifs-options__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
}

.csp-tarifs-option {
	background: rgba(0, 200, 200, 0.03);
	border: 1px solid rgba(0, 200, 200, 0.15);
	border-radius: var(--csp-radius);
	padding: 1.5rem;
	text-align: center;
}

.csp-tarifs-option__price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--csp-turquoise);
}

.csp-tarifs-option__label {
	color: rgba(248, 244, 238, 0.7);
	font-size: 0.9rem;
	margin-top: 0.25rem;
}

/* ==========================================================================
   Prestations Detail Page
   ========================================================================== */

.csp-prestation-detail__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.csp-prestation-detail__grid--reverse {
	direction: rtl;
}

.csp-prestation-detail__grid--reverse > * {
	direction: ltr;
}

.csp-prestation-detail__desc {
	color: rgba(248, 244, 238, 0.8);
	font-size: 1.05rem;
	line-height: 1.8;
	margin-bottom: 1.5rem;
}

.csp-prestation-detail__features {
	list-style: none;
	padding: 0;
	margin: 0;
}

.csp-prestation-detail__features li {
	padding: 0.6rem 0;
	border-bottom: 1px solid rgba(248, 244, 238, 0.05);
	color: rgba(248, 244, 238, 0.7);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.csp-prestation-detail__features li::before {
	content: '◆';
	color: var(--csp-gold);
	font-size: 0.6rem;
}

.csp-prestation-detail__img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	border-radius: var(--csp-radius);
}

.csp-prestation-detail__visual .csp-presentation__placeholder {
	width: 100%;
	height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(201, 168, 76, 0.05);
	border: 1px dashed rgba(201, 168, 76, 0.3);
	border-radius: var(--csp-radius);
	color: rgba(248, 244, 238, 0.5);
	font-size: 0.9rem;
	text-align: center;
	padding: 2rem;
}

.csp-section__title--left {
	text-align: left;
}

.csp-prestation-info .csp-grid--3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.csp-contact__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
}

.csp-contact__item {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
}

.csp-contact__item h3 {
	font-size: 1rem;
	color: var(--csp-cream);
	margin-bottom: 0.25rem;
}

.csp-contact__item a {
	color: var(--csp-gold);
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.csp-contact__item a:hover {
	opacity: 0.8;
}

.csp-contact__hint {
	color: rgba(248, 244, 238, 0.5);
	font-size: 0.85rem;
	margin-top: 0.25rem;
}

.csp-contact__icon {
	width: 48px;
	height: 48px;
	min-width: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(201, 168, 76, 0.1);
	border-radius: 50%;
	color: var(--csp-gold);
}

.csp-contact__form h2 {
	font-family: var(--csp-font-heading);
	font-size: 1.5rem;
	color: var(--csp-cream);
	margin-bottom: 1.5rem;
}

.csp-contact__notice {
	background: rgba(201, 168, 76, 0.05);
	border: 1px dashed rgba(201, 168, 76, 0.3);
	border-radius: var(--csp-radius);
	padding: 2rem;
	text-align: center;
	color: rgba(248, 244, 238, 0.6);
}

.csp-map-wrapper {
	margin-top: 2rem;
	border-radius: var(--csp-radius);
	overflow: hidden;
}

/* ==========================================================================
   Règlement Page
   ========================================================================== */

.csp-reglement-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
}

.csp-reglement-grid--wide {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.csp-rule {
	background: rgba(248, 244, 238, 0.02);
	border-radius: var(--csp-radius);
	padding: 2rem;
	border-left: 4px solid transparent;
	transition: transform 0.3s ease;
}

.csp-rule:hover {
	transform: translateY(-2px);
}

.csp-rule--do {
	border-left-color: #4ade80;
}

.csp-rule--dont {
	border-left-color: #f87171;
}

.csp-rule--info {
	border-left-color: var(--csp-turquoise);
}

.csp-rule__icon {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.csp-rule--do .csp-rule__icon {
	color: #4ade80;
}

.csp-rule--dont .csp-rule__icon {
	color: #f87171;
}

.csp-rule--info .csp-rule__icon {
	color: var(--csp-turquoise);
}

.csp-rule h3 {
	font-size: 1.05rem;
	color: var(--csp-cream);
	margin-bottom: 0.5rem;
}

.csp-rule p {
	color: rgba(248, 244, 238, 0.7);
	font-size: 0.9rem;
	line-height: 1.6;
}

/* ==========================================================================
   Legal Pages (Mentions légales, Politique de confidentialité)
   ========================================================================== */

.csp-legal__content {
	max-width: 800px;
	margin: 0 auto;
}

.csp-legal__content h2 {
	font-family: var(--csp-font-heading);
	font-size: 1.4rem;
	color: var(--csp-cream);
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.csp-legal__content p {
	color: rgba(248, 244, 238, 0.8);
	line-height: 1.8;
	margin-bottom: 1rem;
}

.csp-legal__content ul {
	color: rgba(248, 244, 238, 0.8);
	padding-left: 1.5rem;
	margin-bottom: 1rem;
}

.csp-legal__content ul li {
	margin-bottom: 0.5rem;
	line-height: 1.6;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.csp-breadcrumbs {
	padding: 1rem 0;
	background: rgba(10, 22, 40, 0.5);
}

.csp-breadcrumbs__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.85rem;
}

.csp-breadcrumbs__item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.csp-breadcrumbs__item::after {
	content: '›';
	color: rgba(248, 244, 238, 0.4);
}

.csp-breadcrumbs__item:last-child::after {
	display: none;
}

.csp-breadcrumbs__item a {
	color: var(--csp-gold);
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.csp-breadcrumbs__item a:hover {
	opacity: 0.7;
}

.csp-breadcrumbs__item--current span {
	color: rgba(248, 244, 238, 0.6);
}

/* ==========================================================================
   Floating Buttons (Phone + WhatsApp)
   ========================================================================== */

.csp-floating-buttons {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	z-index: 1000;
}

.csp-floating-btn {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.csp-floating-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.csp-floating-btn--phone {
	background: var(--csp-gold);
	color: var(--csp-navy);
}

.csp-floating-btn--whatsapp {
	background: #25d366;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */

.csp-back-to-top {
	position: fixed;
	bottom: 2rem;
	left: 2rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(201, 168, 76, 0.15);
	border: 1px solid rgba(201, 168, 76, 0.3);
	color: var(--csp-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
	z-index: 999;
}

.csp-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.csp-back-to-top:hover {
	background: var(--csp-gold);
	color: var(--csp-navy);
}

/* ==========================================================================
   Footer Enhancements
   ========================================================================== */

.footer-col--brand {
	max-width: 280px;
}

.footer-logo {
	max-width: 120px;
	height: auto;
	margin-bottom: 1rem;
}

.footer-site-name {
	font-family: var(--csp-font-heading);
	font-size: 1.3rem;
	color: var(--csp-gold);
	display: block;
	margin-bottom: 1rem;
}

.footer-tagline {
	color: rgba(248, 244, 238, 0.6);
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.footer-contact {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-contact__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	color: rgba(248, 244, 238, 0.7);
	font-size: 0.9rem;
}

.footer-contact__item svg {
	color: var(--csp-gold);
	min-width: 16px;
}

.footer-contact__item a {
	color: rgba(248, 244, 238, 0.7);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-contact__item a:hover {
	color: var(--csp-gold);
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 2rem;
	margin-top: 3rem;
	border-top: 1px solid rgba(248, 244, 238, 0.08);
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-copyright {
	color: rgba(248, 244, 238, 0.5);
	font-size: 0.85rem;
}

.footer-legal {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.footer-legal a {
	color: rgba(248, 244, 238, 0.5);
	font-size: 0.85rem;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-legal a:hover {
	color: var(--csp-gold);
}

/* ==========================================================================
   À propos page
   ========================================================================== */

.csp-about-intro__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.csp-about-intro__text p {
	color: rgba(248, 244, 238, 0.8);
	line-height: 1.8;
	margin-bottom: 1rem;
}

.csp-about-intro__img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	border-radius: var(--csp-radius);
}

.csp-values-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.csp-value {
	text-align: center;
	padding: 2rem;
}

.csp-value__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(201, 168, 76, 0.1);
	border-radius: 50%;
	color: var(--csp-gold);
}

.csp-value__title {
	font-family: var(--csp-font-heading);
	font-size: 1.1rem;
	color: var(--csp-cream);
	margin-bottom: 0.5rem;
}

.csp-value__desc {
	color: rgba(248, 244, 238, 0.7);
	font-size: 0.9rem;
	line-height: 1.6;
}

/* ==========================================================================
   Responsive – Pages
   ========================================================================== */

@media (max-width: 768px) {
	.csp-page-header {
		padding: 6rem 0 3rem;
	}

	.csp-prestation-detail__grid,
	.csp-prestation-detail__grid--reverse {
		grid-template-columns: 1fr;
		gap: 2rem;
		direction: ltr;
	}

	.csp-prestation-detail__img {
		height: 250px;
	}

	.csp-contact__grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.csp-about-intro__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.csp-about-intro__img {
		height: 250px;
	}

	.csp-prestation-info .csp-grid--3 {
		grid-template-columns: 1fr;
	}

	.csp-tarifs-grid {
		grid-template-columns: 1fr;
	}

	.csp-floating-buttons {
		bottom: 1.5rem;
		right: 1.5rem;
	}

	.csp-floating-btn {
		width: 48px;
		height: 48px;
	}

	.csp-back-to-top {
		left: 1.5rem;
		bottom: 1.5rem;
		width: 40px;
		height: 40px;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}

	.footer-legal {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.csp-reglement-grid {
		grid-template-columns: 1fr;
	}

	.csp-values-grid {
		grid-template-columns: 1fr;
	}

	.csp-tarifs-options__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.csp-rule:hover,
	.csp-tarifs-page .csp-tarif-card:hover,
	.csp-floating-btn:hover {
		transform: none;
	}

	.csp-back-to-top {
		transition: none;
	}
}
