/* ==========================================================================
   MyPastilla — Feuille de style principale
   Style : premium, minimaliste, inspiré de la restauration haut de gamme.
   ========================================================================== */

/* ---------- Base ---------- */
body.mypastilla-site {
	background-color: var(--mp-color-bg);
	color: var(--mp-color-text);
	font-family: var(--mp-font-body);
	font-size: 16px;
	line-height: 1.7;
}

.mypastilla-site h1,
.mypastilla-site h2,
.mypastilla-site h3,
.mypastilla-site h4 {
	font-family: var(--mp-font-heading);
	color: var(--mp-color-primary-dark);
	line-height: 1.25;
	font-weight: 700;
}

.mypastilla-site a {
	color: var(--mp-color-primary);
	transition: color var(--mp-transition-fast);
}

.mypastilla-site .container,
.mypastilla-site .elementor-container {
	max-width: var(--mp-container-width);
}

/* ---------- Boutons ---------- */
.mypastilla-btn,
.mypastilla-site .elementor-button,
.mypastilla-site button.button,
.mypastilla-site a.button,
.mypastilla-site input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--mp-gradient-btn);
	color: var(--mp-color-white) !important;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 14px 32px;
	border: none;
	border-radius: 999px;
	text-decoration: none;
	transition: transform var(--mp-transition-fast), box-shadow var(--mp-transition-fast), background var(--mp-transition-medium);
	box-shadow: var(--mp-shadow-soft);
	cursor: pointer;
}

.mypastilla-btn:hover,
.mypastilla-site .elementor-button:hover,
.mypastilla-site button.button:hover,
.mypastilla-site a.button:hover {
	background: var(--mp-gradient-btn-hover);
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(15, 107, 80, 0.18);
}

.mypastilla-btn-whatsapp {
	background: #25D366;
}
.mypastilla-btn-whatsapp:hover {
	background: #1DA851;
}

.mypastilla-btn-outline {
	background: transparent;
	border: 2px solid var(--mp-color-primary);
	color: var(--mp-color-primary) !important;
	box-shadow: none;
}

/* ---------- Header ---------- */
.mypastilla-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: rgba(255, 248, 240, 0.96);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--mp-color-border);
	transition: background var(--mp-transition-medium), box-shadow var(--mp-transition-medium), padding var(--mp-transition-medium);
	padding: 18px 0;
}

.mypastilla-header.is-scrolled {
	padding: 10px 0;
	background: rgba(255, 248, 240, 0.85);
	box-shadow: 0 6px 24px rgba(15, 107, 80, 0.08);
}

.mypastilla-header .mypastilla-logo img {
	max-height: 56px;
	transition: max-height var(--mp-transition-medium);
}
.mypastilla-header.is-scrolled .mypastilla-logo img {
	max-height: 42px;
}

.mypastilla-header nav ul {
	display: flex;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mypastilla-header nav a {
	color: var(--mp-color-text);
	font-weight: 500;
	text-decoration: none;
	position: relative;
}

.mypastilla-header nav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 0;
	height: 2px;
	background: var(--mp-color-secondary);
	transition: width var(--mp-transition-fast);
}

.mypastilla-header nav a:hover::after {
	width: 100%;
}

/* ---------- Hero ---------- */
.mypastilla-hero {
	position: relative;
	min-height: 78vh;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	border-radius: 0 0 var(--mp-radius-lg) var(--mp-radius-lg);
	overflow: hidden;
}

.mypastilla-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 107, 80, 0.55) 0%, rgba(15, 107, 80, 0.75) 100%);
}

.mypastilla-hero-content {
	position: relative;
	z-index: 2;
	max-width: 720px;
	color: var(--mp-color-white);
	padding: 0 24px;
}

.mypastilla-hero-content h1 {
	color: var(--mp-color-white);
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	margin-bottom: 16px;
}

.mypastilla-hero-content p {
	font-size: 1.15rem;
	margin-bottom: 32px;
	color: rgba(255, 255, 255, 0.92);
}

.mypastilla-hero-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* ---------- Section "Pourquoi choisir MyPastilla" ---------- */
.mypastilla-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	padding: var(--mp-section-padding-y) 24px;
	text-align: center;
}

.mypastilla-feature-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--mp-color-bg);
	border: 2px solid var(--mp-color-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mp-color-primary);
	font-size: 28px;
}

/* ---------- Cartes produits / catégories ---------- */
.mypastilla-card,
ul.products li.product {
	background: var(--mp-color-white);
	border-radius: var(--mp-radius-md);
	box-shadow: var(--mp-shadow-card);
	padding: 20px;
	transition: transform var(--mp-transition-medium), box-shadow var(--mp-transition-medium);
	position: relative;
	overflow: hidden;
}

ul.products li.product:hover,
.mypastilla-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(15, 107, 80, 0.14);
}

ul.products li.product img {
	border-radius: var(--mp-radius-sm);
}

.mypastilla-card-excerpt {
	font-size: 0.9rem;
	color: #6b6b6b;
	margin-top: 6px;
}

.mypastilla-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	background: var(--mp-gradient-btn);
	color: var(--mp-color-white);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 999px;
	z-index: 3;
	box-shadow: var(--mp-shadow-soft);
}

.mypastilla-servings {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--mp-color-primary);
	font-weight: 500;
}

/* ---------- FAQ ---------- */
.mypastilla-faq-item {
	border-bottom: 1px solid var(--mp-color-border);
}

.mypastilla-faq-question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: none;
	border: none;
	padding: 20px 4px;
	font-family: var(--mp-font-heading);
	font-size: 1.1rem;
	color: var(--mp-color-primary-dark);
	cursor: pointer;
	text-align: left;
}

.mypastilla-faq-icon {
	font-size: 1.4rem;
	color: var(--mp-color-secondary);
	transition: transform var(--mp-transition-fast);
}

.mypastilla-faq-item.is-open .mypastilla-faq-icon {
	transform: rotate(45deg);
}

.mypastilla-faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--mp-transition-medium);
	padding: 0 4px;
}

.mypastilla-faq-item.is-open .mypastilla-faq-answer {
	max-height: 300px;
	padding-bottom: 16px;
}

/* ---------- Témoignages ---------- */
.mypastilla-testimonials {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.mypastilla-testimonial-card {
	background: var(--mp-color-white);
	border-radius: var(--mp-radius-md);
	box-shadow: var(--mp-shadow-card);
	padding: 28px;
}

.mypastilla-stars {
	color: var(--mp-color-secondary);
	margin-bottom: 12px;
}

.mypastilla-testimonial-name {
	font-weight: 600;
	color: var(--mp-color-primary-dark);
	margin-top: 12px;
}

/* ---------- WhatsApp flottant ---------- */
.mypastilla-whatsapp-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
	z-index: 9999;
	transition: transform var(--mp-transition-fast);
}

.mypastilla-whatsapp-float:hover {
	transform: scale(1.08);
	color: #fff;
}

/* ---------- Footer ---------- */
.mypastilla-footer {
	background: var(--mp-color-primary-dark);
	color: rgba(255, 255, 255, 0.85);
	padding: 64px 24px 24px;
}

.mypastilla-footer h4 {
	color: var(--mp-color-secondary-light);
}

.mypastilla-footer a {
	color: rgba(255, 255, 255, 0.85);
}

.mypastilla-footer a:hover {
	color: var(--mp-color-secondary);
}

.mypastilla-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	margin-top: 40px;
	padding-top: 20px;
	text-align: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
}
