/* =========================================================
   Bebea Site Kit — styles de la charte
   Palette : violet #9E91C5 · orange #EE743A · rose #E6007A
             turquoise #01B3CC · vert #AFC40C
   ========================================================= */

:root {
	--bebea-violet: #9E91C5;
	--bebea-orange: #EE743A;
	--bebea-rose: #E6007A;
	--bebea-turquoise: #01B3CC;
	--bebea-vert: #AFC40C;
	--bebea-encre: #2B2B3A;
	--bebea-creme: #FFF9F4;
	--bebea-radius: 28px;
	--bebea-shadow: 0 14px 40px rgba(43, 43, 58, 0.10);
	--bebea-shadow-soft: 0 6px 20px rgba(43, 43, 58, 0.07);
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* ---------- Titres ---------- */
h1, h2, h3, h4, .wp-block-heading {
	letter-spacing: -0.01em;
}
h1.wp-block-heading, .bebea-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2.wp-block-heading { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; }
h3.wp-block-heading { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; }

.bebea-surtitre {
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bebea-turquoise);
	margin-bottom: 0.4rem !important;
}
.bebea-surtitre.is-rose { color: var(--bebea-rose); }
.bebea-surtitre.is-orange { color: var(--bebea-orange); }
.bebea-surtitre.is-violet { color: var(--bebea-violet); }
.bebea-surtitre.is-vert { color: #8FA300; }

.bebea-lead { font-size: 1.2rem; line-height: 1.6; }
.bebea-small { font-size: 0.9rem; opacity: 0.8; }

/* Texte arc-en-ciel (packaging) */
.bebea-rainbow .w1 { color: var(--bebea-violet); }
.bebea-rainbow .w2 { color: var(--bebea-orange); }
.bebea-rainbow .w3 { color: var(--bebea-rose); }
.bebea-rainbow .w4 { color: var(--bebea-turquoise); }
.bebea-rainbow .w5 { color: #8FA300; }

/* ---------- Sections ---------- */
.bebea-section {
	padding-top: clamp(3rem, 7vw, 5.5rem);
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.bebea-section.is-tight {
	padding-top: clamp(2rem, 4vw, 3rem);
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* ---------- Hero ---------- */
.bebea-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 12% 18%, rgba(1, 179, 204, 0.16), transparent 32%),
		radial-gradient(circle at 88% 12%, rgba(230, 0, 122, 0.12), transparent 30%),
		radial-gradient(circle at 80% 85%, rgba(175, 196, 12, 0.18), transparent 30%),
		radial-gradient(circle at 15% 90%, rgba(238, 116, 58, 0.14), transparent 28%),
		var(--bebea-creme);
	padding-top: clamp(2.5rem, 6vw, 5rem);
	padding-bottom: 0;
}
.bebea-hero .wp-block-columns { align-items: flex-end; }
.bebea-hero .bebea-hero-image img { display: block; margin: 0 auto; max-height: 560px; width: auto; }
.bebea-hero .bebea-hero-text { padding-bottom: clamp(2rem, 5vw, 4rem); }
.bebea-hero .wp-block-buttons { margin-top: 1.6rem; }

/* Bandeau "recommandée par mon pharmacien" (comme sur le packaging : ruban coloré + bande blanche) */
.bebea-bandeau {
	position: relative;
	background: #fff;
	text-align: center;
	padding: 2.6rem 1rem 2.4rem;
}
.bebea-bandeau::before,
.bebea-bandeau::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	height: 22px;
	background: var(--bebea-rose);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 26' preserveAspectRatio='none'><path d='M0 0h1200v8c-60 12-120 18-200 18s-140-14-200-14-140 16-200 16-140-18-200-18S140 26 80 24 0 14 0 14z'/></svg>") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 26' preserveAspectRatio='none'><path d='M0 0h1200v8c-60 12-120 18-200 18s-140-14-200-14-140 16-200 16-140-18-200-18S140 26 80 24 0 14 0 14z'/></svg>") center / 100% 100% no-repeat;
}
.bebea-bandeau::before { top: -1px; }
.bebea-bandeau::after { bottom: -1px; transform: scaleY(-1); background: var(--bebea-turquoise); }
.bebea-bandeau p {
	color: var(--bebea-encre);
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600;
	font-size: clamp(1.35rem, 3vw, 2.1rem);
	margin: 0;
	line-height: 1.2;
}
.bebea-bandeau .bebea-small { font-family: var(--wp--preset--font-family--nunito); font-weight: 700; font-size: 1rem; opacity: 0.75; margin-top: 0.5rem; }
.bebea-bandeau.is-turquoise::before { background: var(--bebea-turquoise); }
.bebea-bandeau.is-turquoise::after { background: var(--bebea-rose); }
.bebea-bandeau.is-orange::before { background: var(--bebea-orange); }
.bebea-bandeau.is-orange::after { background: var(--bebea-vert); }
.bebea-bandeau-top { padding-top: 1.6rem; }
.bebea-bandeau-top::before { display: none; }

/* ---------- Boutons / CTA ---------- */
.wp-block-button__link {
	border-radius: 999px;
	padding: 0.95rem 1.9rem;
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600;
	box-shadow: 0 8px 22px rgba(230, 0, 122, 0.22);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(43, 43, 58, 0.18); }
.wp-block-button.is-style-outline .wp-block-button__link,
.bebea-btn-outline .wp-block-button__link {
	background: transparent;
	color: var(--bebea-encre);
	border: 2px solid var(--bebea-encre);
	box-shadow: none;
}
.bebea-btn-turquoise .wp-block-button__link { background: var(--bebea-turquoise); color: #fff; box-shadow: 0 8px 22px rgba(1, 179, 204, 0.28); }
.bebea-btn-orange .wp-block-button__link { background: var(--bebea-orange); color: #fff; box-shadow: 0 8px 22px rgba(238, 116, 58, 0.28); }
.bebea-btn-violet .wp-block-button__link { background: var(--bebea-violet); color: #fff; box-shadow: 0 8px 22px rgba(158, 145, 197, 0.32); }
.bebea-btn-vert .wp-block-button__link { background: #9BB000; color: #fff; box-shadow: 0 8px 22px rgba(175, 196, 12, 0.32); }
.bebea-btn-blanc .wp-block-button__link { background: #fff; color: var(--bebea-rose); box-shadow: 0 8px 22px rgba(43, 43, 58, 0.14); }

/* ---------- Cartes ---------- */
.bebea-card {
	background: #fff;
	border-radius: var(--bebea-radius);
	box-shadow: var(--bebea-shadow-soft);
	padding: 1.8rem 1.6rem !important;
	height: 100%;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bebea-card:hover { transform: translateY(-4px); box-shadow: var(--bebea-shadow); }
.bebea-card h3 { margin-top: 0.6rem !important; margin-bottom: 0.4rem !important; }
.bebea-card p { margin-bottom: 0; }
.bebea-card.is-violet { border-top: 6px solid var(--bebea-violet); }
.bebea-card.is-orange { border-top: 6px solid var(--bebea-orange); }
.bebea-card.is-rose { border-top: 6px solid var(--bebea-rose); }
.bebea-card.is-turquoise { border-top: 6px solid var(--bebea-turquoise); }
.bebea-card.is-vert { border-top: 6px solid var(--bebea-vert); }

/* Pictos bénéfices (blocs HTML) */
.bebea-icon {
	width: 64px; height: 64px;
	border-radius: 20px;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 0.4rem;
}
.bebea-icon svg { width: 34px; height: 34px; }
.bebea-icon.is-violet { background: #EFEDF7; color: var(--bebea-violet); }
.bebea-icon.is-orange { background: #FDEEE5; color: var(--bebea-orange); }
.bebea-icon.is-rose { background: #FDE6F1; color: var(--bebea-rose); }
.bebea-icon.is-turquoise { background: #E4F6F9; color: var(--bebea-turquoise); }
.bebea-icon.is-vert { background: #F3F6DC; color: #8FA300; }

/* Cartes tailles */
.bebea-size-card {
	background: #fff;
	border-radius: var(--bebea-radius);
	box-shadow: var(--bebea-shadow-soft);
	padding: 1.4rem 1.2rem 1.6rem !important;
	text-align: center;
	height: 100%;
	position: relative;
	overflow: hidden;
}
.bebea-size-card::before {
	content: "";
	position: absolute; inset: 0 0 auto 0; height: 110px;
	background: var(--card-tint, #EFEDF7);
	border-radius: var(--bebea-radius) var(--bebea-radius) 50% 50% / var(--bebea-radius) var(--bebea-radius) 30px 30px;
}
.bebea-size-card.is-turquoise { --card-tint: #E4F6F9; --card-color: var(--bebea-turquoise); }
.bebea-size-card.is-violet { --card-tint: #EFEDF7; --card-color: var(--bebea-violet); }
.bebea-size-card.is-rose { --card-tint: #FDE6F1; --card-color: var(--bebea-rose); }
.bebea-size-card.is-orange { --card-tint: #FDEEE5; --card-color: var(--bebea-orange); }
.bebea-size-card.is-vert { --card-tint: #F3F6DC; --card-color: #8FA300; }
.bebea-size-card > * { position: relative; }
.bebea-size-card .wp-block-image { margin: 0 auto 0.4rem; }
.bebea-size-card .wp-block-image img { width: 130px; height: 130px; object-fit: contain; }
.bebea-size-card .bebea-size-letter {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--card-color);
	line-height: 1;
	margin: 0.2rem 0 0 !important;
}
.bebea-size-card .bebea-size-meta {
	font-weight: 700;
	margin: 0.2rem 0 0.3rem !important;
}
.bebea-size-card .bebea-size-animal { font-size: 0.9rem; opacity: 0.75; margin: 0 !important; }

/* Chips / badges */
.bebea-chip {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600;
	font-size: 0.9rem;
	background: #fff;
	color: var(--bebea-encre);
	box-shadow: var(--bebea-shadow-soft);
	margin: 0.25rem;
}
.bebea-chip.is-rose { background: var(--bebea-rose); color: #fff; }
.bebea-chip.is-turquoise { background: var(--bebea-turquoise); color: #fff; }
.bebea-chip.is-orange { background: var(--bebea-orange); color: #fff; }
.bebea-chip.is-violet { background: var(--bebea-violet); color: #fff; }
.bebea-chip.is-vert { background: var(--bebea-vert); color: #fff; }

/* Macaron "Testées peaux sensibles" */
.bebea-macaron {
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	width: 150px; height: 150px; border-radius: 50%;
	border: 3px dashed var(--bebea-vert);
	background: #fff;
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600; font-size: 0.9rem; text-align: center; line-height: 1.2;
	color: #6f8000; padding: 12px;
}

/* Placeholder certifications (en attente des documents) */
.bebea-certif-placeholder {
	border: 2px dashed rgba(43, 43, 58, 0.18);
	border-radius: 20px;
	padding: 1.2rem 1.4rem;
	text-align: center;
	color: rgba(43, 43, 58, 0.6);
	font-size: 0.95rem;
	background: rgba(255, 255, 255, 0.6);
}

/* ---------- FAQ ---------- */
.bebea-faq details.wp-block-details {
	background: #fff;
	border-radius: 18px;
	box-shadow: var(--bebea-shadow-soft);
	padding: 1rem 1.3rem;
	margin-bottom: 0.8rem;
}
.bebea-faq details.wp-block-details summary {
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600;
	font-size: 1.1rem;
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
}
.bebea-faq details.wp-block-details summary::-webkit-details-marker { display: none; }
.bebea-faq details.wp-block-details summary::after {
	content: "+";
	position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%;
	background: #FDE6F1; color: var(--bebea-rose);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.3rem; line-height: 1;
}
.bebea-faq details.wp-block-details[open] summary::after { content: "–"; background: var(--bebea-rose); color: #fff; }
.bebea-faq details.wp-block-details > :not(summary) { margin-top: 0.7rem; }

/* ---------- Tableau des tailles ---------- */
.bebea-table table { border-collapse: separate; border-spacing: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--bebea-shadow-soft); background: #fff; }
.bebea-table thead th { background: var(--bebea-turquoise); color: #fff; font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; border: 0; padding: 0.9rem 1rem; }
.bebea-table td { border: 0; border-bottom: 1px solid #f0eef5; padding: 0.85rem 1rem; }
.bebea-table tr:last-child td { border-bottom: 0; }
.bebea-table td:first-child { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; }

/* ---------- Header ---------- */
.bebea-header {
	background: #fff;
	box-shadow: 0 2px 18px rgba(43, 43, 58, 0.06);
	position: sticky; top: 0; z-index: 50;
}
.bebea-header .wp-block-button__link { white-space: nowrap; }
.bebea-header .bebea-header-right { align-items: center; }
/* Menu mobile (overlay) */
.bebea-header .wp-block-navigation__responsive-container.is-menu-open {
	background: #fff;
	padding: 5rem 2rem 2rem;
}
.bebea-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.2rem; }
.bebea-header .wp-block-navigation__responsive-container.is-menu-open a {
	font-size: 1.5rem;
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600;
}
.bebea-header .wp-block-navigation__responsive-container-open,
.bebea-header .wp-block-navigation__responsive-container-close { color: var(--bebea-encre); }
.admin-bar .bebea-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bebea-header { top: 46px; } }
.bebea-header .wp-block-site-logo img { max-height: 46px; width: auto; }
.bebea-header .wp-block-navigation a {
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 500;
	font-size: 1.05rem;
}
.bebea-header .wp-block-navigation .current-menu-item > a { color: var(--bebea-rose); }
.bebea-header .wp-block-button__link { padding: 0.65rem 1.3rem; font-size: 0.95rem; }
.bebea-header .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.bebea-footer {
	background: var(--bebea-encre);
	color: #fff;
}
.bebea-footer a { color: #fff; text-decoration: none; }
.bebea-footer a:hover { color: var(--bebea-vert); }
.bebea-footer h3, .bebea-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 0.6rem !important; }
.bebea-footer .wp-block-navigation a { font-size: 0.98rem; }
.bebea-footer .wp-block-site-logo img { max-height: 48px; width: auto; }
.bebea-footer .bebea-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; opacity: 0.8; }
.bebea-footer .wp-block-social-links .wp-social-link { transition: transform 0.2s ease; }
.bebea-footer .wp-block-social-links .wp-social-link:hover { transform: scale(1.12); }
.bebea-footer .bebea-macaron-mini {
	display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.25); font-size: 0.85rem;
}

/* ---------- Animaux décoratifs ---------- */
.bebea-zoo { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.bebea-section .bebea-zoo { max-width: 1240px; }
.bebea-zoo img { width: 92px; height: 92px; object-fit: contain; transition: transform 0.25s ease; }
.bebea-zoo img:hover { transform: rotate(-6deg) scale(1.1); }
@media (max-width: 600px) { .bebea-zoo img { width: 64px; height: 64px; } }

/* ---------- Divers ---------- */
.bebea-rounded img { border-radius: var(--bebea-radius); }
.bebea-rounded-sm img { border-radius: 18px; }
.bebea-shadow img { box-shadow: var(--bebea-shadow); }
.bebea-stat {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.45rem; font-weight: 600; line-height: 1.1; margin-bottom: 0.3rem !important;
}
.bebea-valeurs { margin-top: 1.4rem; }
.bebea-valeurs p:not(.bebea-stat) { font-size: 0.95rem; }
.bebea-stat.is-rose { color: var(--bebea-rose); }
.bebea-stat.is-turquoise { color: var(--bebea-turquoise); }
.bebea-stat.is-orange { color: var(--bebea-orange); }
.bebea-stat.is-violet { color: var(--bebea-violet); }
.bebea-stat.is-vert { color: #8FA300; }

.bebea-quote {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: clamp(1.3rem, 2.6vw, 1.8rem);
	font-weight: 500;
	line-height: 1.35;
	color: var(--bebea-encre);
}
.bebea-quote .w1, .bebea-quote .w2, .bebea-quote .w3, .bebea-quote .w4, .bebea-quote .w5 { font-weight: 600; }

.bebea-legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.bebea-legal .bebea-todo {
	background: #FFF4CC; border-left: 4px solid #F2C200; padding: 0.6rem 0.9rem; border-radius: 8px; font-weight: 700;
}

@media (max-width: 900px) {
	.bebea-header .wp-block-site-logo img { max-height: 36px; }
	.bebea-header .bebea-header-right { gap: 0.6rem !important; }
	.bebea-header .bebea-header-cta .wp-block-button__link {
		padding: 0.5rem 0.9rem;
		font-size: 0.82rem;
		box-shadow: 0 4px 12px rgba(1, 179, 204, 0.25);
	}
	.bebea-header .alignwide { padding-left: 0.6rem; padding-right: 0.6rem; }
}
@media (max-width: 380px) {
	.bebea-header .bebea-header-cta .wp-block-button__link { padding: 0.45rem 0.7rem; font-size: 0.76rem; }
	.bebea-header .wp-block-site-logo img { max-height: 30px; }
}
@media (max-width: 781px) {
	.bebea-hero .bebea-hero-image img { max-height: 380px; }
	.bebea-hero .bebea-hero-text { text-align: center; padding-bottom: 1.5rem; }
	.bebea-hero .wp-block-buttons { justify-content: center; }
	.bebea-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.bebea-table table { min-width: 560px; }
	.bebea-sizes.wp-block-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
	.bebea-sizes .wp-block-column { flex-basis: auto !important; }
	.bebea-sizes .bebea-size-card .wp-block-image img { width: 100px; height: 100px; }
	.bebea-sizes .bebea-size-card .bebea-size-letter { font-size: 1.9rem; }
	.bebea-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}
