/* ==========================================================================
   Bes Rencontre — styles principaux
   Les couleurs, la police, l'arrondi et la largeur viennent du Customizer
   (variables CSS injectées dans :root).
   ========================================================================== */

:root {
	--bes-primary: #4a1470;
	--bes-secondary: #7b1fa2;
	--bes-accent: #e91e63;
	--bes-cta: #e0102f;
	--bes-cta-text: #fff;
	--bes-bg: #fbf4f9;
	--bes-text: #2a1533;
	--bes-topbar: #ffe1ec;
	--bes-footer: #2b0a42;
	--bes-star: #ffb400;
	--bes-radius: 10px;
	--bes-container: 1200px;
	--bes-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--bes-muted: #6f5a7a;
	--bes-border: #eedcea;
	--bes-white: #fff;
	--bes-ok: #13a05f;
	--bes-ko: #d64545;
	--bes-shadow: 0 2px 6px rgba(74, 20, 112, .06), 0 10px 30px rgba(74, 20, 112, .07);
	--bes-shadow-lg: 0 8px 20px rgba(74, 20, 112, .10), 0 24px 60px rgba(74, 20, 112, .12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--bes-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--bes-text);
	background: var(--bes-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bes-secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bes-accent); }
h1, h2, h3, h4, h5, h6 { color: var(--bes-primary); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bes-accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100000; left: 10px; top: 10px;
	padding: 10px 16px; background: #fff; color: var(--bes-primary); border-radius: 6px;
}

.bes-container { width: 100%; max-width: var(--bes-container); margin: 0 auto; padding: 0 20px; }
.bes-container--narrow { max-width: 860px; }
.bes-container--page { max-width: 900px; padding-top: 30px; padding-bottom: 60px; }

.bes-icon { display: inline-block; vertical-align: -0.2em; flex-shrink: 0; }

/* ---------- Boutons ---------- */
.bes-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: var(--bes-radius); border: 2px solid transparent;
	font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; text-align: center;
	transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.bes-btn:hover { transform: translateY(-1px); }
.bes-btn--cta {
	background: var(--bes-cta); color: var(--bes-cta-text);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--bes-cta) 40%, transparent);
}
.bes-btn--cta:hover { color: var(--bes-cta-text); filter: brightness(1.06); box-shadow: 0 6px 20px color-mix(in srgb, var(--bes-cta) 50%, transparent); }
.bes-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.bes-btn--ghost:hover { background: #fff; color: var(--bes-primary); }
.bes-btn--sm { padding: 8px 16px; font-size: 14px; }
.bes-btn--lg { padding: 15px 28px; font-size: 16px; }
.bes-btn--block { display: flex; width: 100%; }
.bes-btn .bes-icon { width: 18px; height: 18px; }

.bes-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.bes-link-arrow .bes-icon { width: 16px; height: 16px; transition: transform .2s; }
.bes-link-arrow:hover .bes-icon { transform: translateX(3px); }

.bes-kicker {
	display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: 13px;
	font-weight: 700; color: var(--bes-accent); margin-bottom: 10px;
}
.bes-pill {
	display: inline-flex; align-items: center; gap: 8px; background: #e8f7ef; color: var(--bes-ok);
	font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.bes-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bes-ok); box-shadow: 0 0 0 4px rgba(19, 160, 95, .2); }
.bes-notice { background: #fff; border-left: 4px solid var(--bes-cta); padding: 14px 18px; border-radius: 6px; }

/* ---------- Bandeau ---------- */
.bes-topbar { background: var(--bes-topbar); font-size: 13px; color: #9c1342; padding: 8px 0; }
.bes-topbar .bes-container { display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; }
.bes-topbar .bes-icon { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.bes-header { background: var(--bes-primary); color: #fff; position: relative; z-index: 50; }
.bes-sticky-header .bes-header { position: sticky; top: 0; }
.admin-bar.bes-sticky-header .bes-header { top: 32px; }
.bes-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.bes-brand .custom-logo { max-height: 56px; width: auto; }
.bes-brand__text { display: flex; align-items: center; gap: 10px; color: #fff; }
.bes-brand__text:hover { color: #fff; }
.bes-brand__text strong { display: block; font-size: 22px; line-height: 1.1; letter-spacing: -.01em; }
.bes-brand__text small { display: block; font-size: 12px; opacity: .75; }
.bes-brand__heart {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
	background: var(--bes-accent); color: #fff;
}
.bes-brand__heart .bes-icon { width: 22px; height: 22px; }

.bes-nav { display: flex; align-items: center; gap: 18px; }
.bes-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.bes-menu li { position: relative; }
.bes-menu a { display: block; color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 500; font-size: 15px; }
.bes-menu a:hover, .bes-menu .current-menu-item > a { background: rgba(255, 255, 255, .12); color: #fff; }
.bes-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border-radius: var(--bes-radius); box-shadow: var(--bes-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.bes-menu li:hover > .sub-menu, .bes-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bes-menu .sub-menu a { color: var(--bes-text); }
.bes-menu .sub-menu a:hover { background: var(--bes-bg); color: var(--bes-primary); }

.bes-burger { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.bes-burger .bes-icon { width: 28px; height: 28px; }

/* Barre des catégories (comme la navigation produits de creditneto) */
.bes-catbar { background: linear-gradient(90deg, var(--bes-secondary), color-mix(in srgb, var(--bes-secondary) 55%, var(--bes-accent))); }
.bes-catbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.bes-catbar ul::-webkit-scrollbar { display: none; }
.bes-catbar a {
	display: block; white-space: nowrap; color: rgba(255, 255, 255, .9); padding: 11px 14px;
	font-size: 14px; font-weight: 500; border-bottom: 3px solid transparent;
}
.bes-catbar a:hover, .bes-catbar .current-menu-item a { color: #fff; border-bottom-color: var(--bes-accent); }

/* ---------- Hero ---------- */
.bes-hero {
	position: relative; color: #fff; overflow: hidden;
	background:
		radial-gradient(900px 420px at 90% -10%, color-mix(in srgb, var(--bes-accent) 60%, transparent), transparent 60%),
		radial-gradient(700px 380px at 0% 110%, color-mix(in srgb, var(--bes-cta) 45%, transparent), transparent 60%),
		linear-gradient(135deg, var(--bes-primary) 0%, var(--bes-secondary) 100%);
	padding: 64px 0 80px;
}
.bes-hero--img {
	background:
		linear-gradient(110deg, color-mix(in srgb, var(--bes-primary) 92%, transparent) 30%, color-mix(in srgb, var(--bes-primary) 55%, transparent)),
		var(--bes-hero-img) center / cover no-repeat;
}
.bes-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px;
	background: var(--bes-bg); clip-path: ellipse(60% 100% at 50% 100%);
}
.bes-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.bes-hero .bes-kicker { color: #ffd1de; }
.bes-hero__title { color: #fff; font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.bes-hero__subtitle { font-size: clamp(18px, 2vw, 23px); font-weight: 600; color: #ffc1d8; margin-bottom: 14px; }
.bes-hero__text { opacity: .92; max-width: 560px; }
.bes-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 30px; }
.bes-hero__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.bes-hero__stats strong { display: block; font-size: 26px; line-height: 1; font-weight: 800; }
.bes-hero__stats span { font-size: 13px; opacity: .8; }

/* Formulaire « trouvez votre site » */
.bes-finder {
	background: #fff; color: var(--bes-text); border-radius: calc(var(--bes-radius) + 6px);
	padding: 26px; box-shadow: var(--bes-shadow-lg);
}
.bes-finder__title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--bes-primary); margin-bottom: 18px; }
.bes-finder__title .bes-icon { color: var(--bes-accent); }
.bes-finder__row { display: block; border: 0; padding: 0; margin: 0 0 14px; }
.bes-finder__row legend, .bes-finder__label { display: block; font-size: 13px; font-weight: 700; color: var(--bes-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; padding: 0; }
.bes-finder select {
	width: 100%; padding: 12px 14px; border: 2px solid var(--bes-border); border-radius: var(--bes-radius);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f5a7a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
	appearance: none; cursor: pointer;
}
.bes-finder select:focus { border-color: var(--bes-secondary); outline: 0; }
.bes-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bes-seg label { position: relative; cursor: pointer; }
.bes-seg input { position: absolute; opacity: 0; }
.bes-seg span {
	display: block; text-align: center; padding: 11px; border: 2px solid var(--bes-border);
	border-radius: var(--bes-radius); font-weight: 600; transition: .15s;
}
.bes-seg input:checked + span { border-color: var(--bes-accent); background: color-mix(in srgb, var(--bes-accent) 8%, #fff); color: var(--bes-accent); }
.bes-seg input:focus-visible + span { outline: 3px solid var(--bes-accent); outline-offset: 2px; }
.bes-finder__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bes-finder__note { text-align: center; font-size: 13px; color: var(--bes-muted); margin: 10px 0 0; }

/* ---------- Sections ---------- */
.bes-section { padding: 60px 0; }
.bes-section__head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.bes-section__head--row { display: flex; justify-content: space-between; align-items: end; text-align: left; max-width: none; gap: 20px; flex-wrap: wrap; }
.bes-section__head--row .bes-section__title { margin: 0; }
.bes-section__title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.bes-section__intro { color: var(--bes-muted); font-size: 17px; margin: 0; }
.bes-section--comp { padding-top: 40px; }
.bes-section--temo, .bes-section--seo { background: #fff; }

/* ---------- Comparateur ---------- */
.bes-comp__toolbar {
	background: #fff; border-radius: var(--bes-radius); box-shadow: var(--bes-shadow);
	padding: 14px; margin-bottom: 22px; display: grid; gap: 12px;
}
.bes-comp__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.bes-comp__tabs button {
	border: 2px solid var(--bes-border); background: #fff; padding: 8px 16px; border-radius: 999px;
	font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s;
}
.bes-comp__tabs button:hover { border-color: var(--bes-secondary); color: var(--bes-secondary); }
.bes-comp__tabs button.is-active { background: var(--bes-primary); border-color: var(--bes-primary); color: #fff; }
.bes-comp__opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 14px; }
.bes-check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.bes-check input { width: 17px; height: 17px; accent-color: var(--bes-accent); }
.bes-sort { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
.bes-sort span { color: var(--bes-muted); }
.bes-sort select { border: 2px solid var(--bes-border); border-radius: 8px; padding: 6px 10px; background: #fff; cursor: pointer; }

.bes-comp__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bes-field { display: flex; flex-direction: column; gap: 4px; }
.bes-field span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bes-muted); }
.bes-field select {
	width: 100%; padding: 9px 34px 9px 12px; border: 2px solid var(--bes-border); border-radius: 8px; cursor: pointer; appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f5a7a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.bes-field select:focus { border-color: var(--bes-accent); outline: 0; }
.bes-comp__toolbar.is-js .bes-comp__apply { display: none; }
.bes-comp__status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: -8px 0 16px; min-height: 8px; }
.bes-comp__count { margin: 0; font-size: 15px; }
.bes-comp__count strong { color: var(--bes-accent); }
.bes-comp__reset { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--bes-cta); }
.bes-comp__reset[hidden] { display: none; }
.bes-comp__reset .bes-icon { width: 15px; height: 15px; }
.bes-free-f { display: none; font-size: 11px; font-weight: 700; color: var(--bes-accent); }
.is-femme .bes-free-f { display: block; }
.is-femme .bes-card[data-gratuitf="1"] { border-color: color-mix(in srgb, var(--bes-accent) 45%, transparent); }
.bes-comp__empty[hidden] { display: none; }
.bes-comp__empty p { margin-bottom: 14px; }
.bes-comp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.bes-card {
	position: relative; background: #fff; border-radius: calc(var(--bes-radius) + 4px);
	box-shadow: var(--bes-shadow); border: 2px solid transparent;
	display: grid; grid-template-columns: 56px 210px 1fr 190px 210px; align-items: center;
	gap: 22px; padding: 24px 24px 24px 0; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bes-card:hover { transform: translateY(-2px); box-shadow: var(--bes-shadow-lg); }
.bes-card--top { border-color: var(--bes-cta); }
.bes-card[hidden] { display: none; }

.bes-card__badge {
	position: absolute; top: -12px; left: 24px; background: var(--bes-accent); color: #fff;
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
	padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 10px color-mix(in srgb, var(--bes-accent) 40%, transparent);
}
.bes-card--top .bes-card__badge { background: var(--bes-cta); }
.bes-card__badge--inline { position: static; display: inline-block; margin-bottom: 8px; }

.bes-card__rank { align-self: stretch; display: flex; align-items: center; }
.bes-card__rank span {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 0 10px 10px 0;
	background: var(--bes-primary); color: #fff; font-weight: 800; font-size: 18px;
}
.bes-card--top .bes-card__rank span { background: var(--bes-cta); }

.bes-card__brand { text-align: center; }
.bes-card__logo {
	display: grid; place-items: center; height: 84px; padding: 8px; border-radius: var(--bes-radius);
	border: 1px solid var(--bes-border); margin-bottom: 10px; background: #fff;
}
.bes-card__logo img { max-height: 66px; width: auto; object-fit: contain; }
.bes-logo-fallback {
	display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
	background: linear-gradient(135deg, var(--bes-accent), var(--bes-primary)); color: #fff;
	font-weight: 800; font-size: 22px; margin: 0 auto;
}
.bes-card__name { font-size: 18px; margin: 0 0 4px; }
.bes-card__name a { color: var(--bes-primary); }
.bes-card__rating { display: flex; justify-content: center; }

.bes-stars { position: relative; display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px; }
.bes-stars__bg { color: #d7dde5; }
.bes-stars__fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--bes-star); }
.bes-stars__num { margin-left: 8px; font-weight: 800; color: var(--bes-primary); font-size: 16px; }
.bes-stars__num small { color: var(--bes-muted); font-weight: 500; font-size: 12px; }
.bes-card__rating, .bes-site-hero__rating { align-items: center; }

.bes-card__slogan { font-weight: 700; color: var(--bes-primary); margin: 0 0 4px; }
.bes-card__desc { color: var(--bes-muted); font-size: 14px; margin: 0 0 8px; }
.bes-card__pros { list-style: none; margin: 0 0 10px; padding: 0; font-size: 14px; }
.bes-card__pros li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 3px; }
.bes-card__pros .bes-icon { width: 16px; height: 16px; color: var(--bes-ok); margin-top: 3px; }
.bes-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bes-tag {
	display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600;
	background: #f4e8fa; color: var(--bes-secondary); padding: 3px 10px; border-radius: 999px;
}
.bes-tag .bes-icon { width: 13px; height: 13px; }
.bes-tag--ok { background: #e6f6ee; color: var(--bes-ok); }
.bes-tag--pink { background: color-mix(in srgb, var(--bes-accent) 12%, #fff); color: var(--bes-accent); }

.bes-card__facts { margin: 0; display: grid; gap: 8px; font-size: 14px; border-left: 1px solid var(--bes-border); padding-left: 20px; }
.bes-card__facts div { display: flex; flex-direction: column; }
.bes-card__facts dt { color: var(--bes-muted); font-size: 12px; display: flex; gap: 5px; align-items: center; }
.bes-card__facts dt .bes-icon { width: 14px; height: 14px; }
.bes-card__facts dd { margin: 0; font-weight: 700; color: var(--bes-primary); }

.bes-card__action { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.bes-card__action .bes-btn { width: 100%; }
.bes-card__offre {
	display: flex; gap: 6px; align-items: center; justify-content: center; margin: 0;
	background: #ffe8ef; color: #c2134a; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 8px;
}
.bes-card__offre .bes-icon { width: 16px; height: 16px; }
.bes-card__review { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.bes-comp__empty { text-align: center; background: #fff; padding: 30px; border-radius: var(--bes-radius); }
.bes-comp__disclaimer { display: flex; gap: 8px; font-size: 13px; color: var(--bes-muted); margin: 18px 0 0; }
.bes-comp__disclaimer .bes-icon { width: 16px; height: 16px; margin-top: 2px; }

/* Version compacte (fin d'article, alternatives) */
.bes-comp--compact .bes-card { grid-template-columns: 44px 150px 1fr 180px; gap: 16px; padding: 18px 18px 18px 0; }
.bes-comp--compact .bes-card__facts, .bes-comp--compact .bes-card__desc, .bes-comp--compact .bes-card__pros { display: none; }
.bes-comp--compact .bes-card__logo { height: 64px; }
.bes-comp--compact .bes-card__rank span { width: 34px; height: 34px; font-size: 15px; }

/* ---------- Offre spéciale ---------- */
.bes-offre {
	display: flex; align-items: center; gap: 28px; padding: 34px 40px; border-radius: calc(var(--bes-radius) + 8px);
	background: linear-gradient(120deg, var(--bes-accent), color-mix(in srgb, var(--bes-accent) 60%, var(--bes-cta)));
	color: #fff; box-shadow: var(--bes-shadow-lg);
}
.bes-offre__icon { display: grid; place-items: center; width: 74px; height: 74px; flex-shrink: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.bes-offre__icon .bes-icon { width: 36px; height: 36px; }
.bes-offre__text { flex: 1; }
.bes-offre .bes-kicker { color: #fff; opacity: .85; margin-bottom: 4px; }
.bes-offre h2 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 6px; }
.bes-offre p { margin: 0; opacity: .95; }
.bes-offre .bes-btn--cta { background: #fff; color: var(--bes-accent); box-shadow: none; flex-shrink: 0; }

/* ---------- Témoignages ---------- */
.bes-temo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.bes-temo {
	margin: 0; background: var(--bes-bg); border-radius: calc(var(--bes-radius) + 4px); padding: 24px;
	display: flex; flex-direction: column; position: relative;
}
.bes-temo::before {
	content: "“"; position: absolute; top: 6px; right: 18px; font-size: 80px; line-height: 1;
	color: color-mix(in srgb, var(--bes-accent) 25%, transparent); font-family: Georgia, serif;
}
.bes-temo__stars .bes-stars { font-size: 15px; }
.bes-temo blockquote { margin: 12px 0 18px; font-style: italic; flex: 1; }
.bes-temo blockquote p:last-child { margin: 0; }
.bes-temo figcaption { display: flex; align-items: center; gap: 12px; }
.bes-temo figcaption strong { display: block; color: var(--bes-primary); }
.bes-temo figcaption small { color: var(--bes-muted); }
.bes-temo__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.bes-temo__avatar--init { display: grid; place-items: center; background: var(--bes-primary); color: #fff; font-weight: 800; }

/* ---------- Articles ---------- */
.bes-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bes-post-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bes-post-card {
	background: #fff; border-radius: calc(var(--bes-radius) + 4px); overflow: hidden;
	box-shadow: var(--bes-shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.bes-post-card:hover { transform: translateY(-3px); box-shadow: var(--bes-shadow-lg); }
.bes-post-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f6e9f4; }
.bes-post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bes-post-card:hover .bes-post-card__img img { transform: scale(1.04); }
.bes-post-card__ph { display: grid; place-items: center; height: 100%; color: color-mix(in srgb, var(--bes-accent) 40%, #fff); background: linear-gradient(135deg, #f1e3fa, #ffe3ec); }
.bes-post-card__ph .bes-icon { width: 48px; height: 48px; }
.bes-post-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.bes-post-card__cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--bes-accent); margin-bottom: 6px; }
.bes-post-card__title { font-size: 19px; margin-bottom: 8px; }
.bes-post-card__title a { color: var(--bes-primary); }
.bes-post-card__title a:hover { color: var(--bes-accent); }
.bes-post-card__excerpt { color: var(--bes-muted); font-size: 15px; flex: 1; }

/* ---------- FAQ ---------- */
.bes-faq { display: grid; gap: 12px; }
.bes-faq__item { background: #fff; border-radius: var(--bes-radius); box-shadow: var(--bes-shadow); overflow: hidden; }
.bes-faq__item summary {
	list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700;
	color: var(--bes-primary); position: relative;
}
.bes-faq__item summary::-webkit-details-marker { display: none; }
.bes-faq__item summary::after {
	content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	background: var(--bes-bg); font-size: 20px; font-weight: 600; transition: .2s;
}
.bes-faq__item[open] summary::after { content: "−"; background: var(--bes-accent); color: #fff; }
.bes-faq__answer { padding: 0 22px 18px; color: var(--bes-text); }
.bes-faq__answer p:last-child { margin: 0; }

/* ---------- Contenu éditorial ---------- */
.bes-prose { font-size: 17px; }
.bes-prose > * + * { margin-top: 1.1em; }
.bes-prose h2 { font-size: 28px; margin-top: 1.6em; }
.bes-prose h3 { font-size: 22px; margin-top: 1.4em; }
.bes-prose ul, .bes-prose ol { padding-left: 1.3em; }
.bes-prose li { margin-bottom: .4em; }
.bes-prose blockquote { border-left: 4px solid var(--bes-accent); margin: 1.5em 0; padding: 6px 0 6px 20px; font-style: italic; color: var(--bes-muted); }
.bes-prose img { border-radius: var(--bes-radius); }
.bes-prose table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.bes-prose th, .bes-prose td { border: 1px solid var(--bes-border); padding: 10px 12px; text-align: left; }
.bes-prose th { background: var(--bes-primary); color: #fff; }
.bes-prose a { text-decoration: underline; text-underline-offset: 3px; }
.bes-prose .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.bes-prose--full .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.bes-prose .wp-block-button__link { background: var(--bes-cta); color: var(--bes-cta-text); border-radius: var(--bes-radius); font-weight: 700; text-decoration: none; }
.bes-inline-cta { text-align: center; margin: 1.5em 0; }
.bes-inline-cta a { text-decoration: none; }

/* ---------- En-tête de page ---------- */
.bes-page-head { background: radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--bes-accent) 45%, transparent), transparent 60%), linear-gradient(135deg, var(--bes-primary), var(--bes-secondary)); color: #fff; padding: 28px 0 36px; }
.bes-page-head__title { color: #fff; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin: 8px 0 6px; }
.bes-page-head__desc { opacity: .9; max-width: 760px; }
.bes-page-head__desc p:last-child { margin: 0; }
.bes-breadcrumb { font-size: 13px; opacity: .85; }
.bes-breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bes-breadcrumb .sep { margin: 0 4px; }
.bes-post-meta { font-size: 14px; opacity: .85; }
.bes-post-meta a { color: #fff; }

/* ---------- Mise en page avec barre latérale ---------- */
.bes-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 36px; padding-bottom: 60px; align-items: start; }
.bes-layout:not(:has(> .bes-sidebar)) { grid-template-columns: minmax(0, 860px); justify-content: center; }
.bes-article { background: #fff; border-radius: calc(var(--bes-radius) + 4px); padding: 36px 40px; box-shadow: var(--bes-shadow); }
.bes-article__cover { margin: -36px -40px 28px; }
.bes-article__cover img { width: 100%; border-radius: calc(var(--bes-radius) + 4px) calc(var(--bes-radius) + 4px) 0 0; }
.bes-article__comp, .bes-related { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--bes-border); }
.bes-article__comp h2, .bes-related h2 { font-size: 24px; }
.bes-article__comp .bes-card, .bes-related .bes-card { box-shadow: none; border: 1px solid var(--bes-border); }

.bes-sidebar { display: grid; gap: 22px; position: sticky; top: 140px; }
.bes-sidebar .widget { background: #fff; border-radius: calc(var(--bes-radius) + 4px); padding: 22px; box-shadow: var(--bes-shadow); }
.widget-title { font-size: 17px; margin-bottom: 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--bes-border); }
.widget li:last-child { border: 0; }

.bes-search { display: flex; border: 2px solid var(--bes-border); border-radius: var(--bes-radius); background: #fff; overflow: hidden; }
.bes-search input { flex: 1; border: 0; padding: 11px 14px; min-width: 0; }
.bes-search input:focus { outline: 0; }
.bes-search button { border: 0; background: var(--bes-primary); color: #fff; padding: 0 16px; cursor: pointer; }

.bes-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.bes-tags a { background: var(--bes-bg); padding: 4px 12px; border-radius: 999px; font-size: 13px; }

.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; background: var(--bes-bg); padding: 16px; border-radius: var(--bes-radius); height: 100%; }
.post-navigation small { display: block; color: var(--bes-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.post-navigation span { font-weight: 700; color: var(--bes-primary); }
.post-navigation .nav-next { text-align: right; }

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; background: #fff; border-radius: 8px; font-weight: 600; box-shadow: var(--bes-shadow); }
.pagination .current { background: var(--bes-primary); color: #fff; }

/* ---------- Fiche site ---------- */
.bes-page-head--site { padding-bottom: 40px; }
.bes-site-hero { display: grid; grid-template-columns: 170px 1fr 280px; gap: 30px; align-items: center; margin-top: 16px; }
.bes-site-hero__logo { background: #fff; border-radius: calc(var(--bes-radius) + 6px); height: 140px; display: grid; place-items: center; padding: 14px; box-shadow: var(--bes-shadow-lg); }
.bes-site-hero__logo img { max-height: 110px; width: auto; object-fit: contain; }
.bes-site-hero__slogan { font-size: 18px; opacity: .9; margin-bottom: 8px; }
.bes-site-hero .bes-stars__num { color: #fff; }
.bes-site-hero .bes-stars__num small { color: rgba(255, 255, 255, .7); }
.bes-site-hero .bes-stars__bg { color: rgba(255, 255, 255, .3); }
.bes-site-hero .bes-card__tags { margin-top: 12px; }
.bes-site-hero .bes-tag { background: rgba(255, 255, 255, .15); color: #fff; }
.bes-site-hero__cta { display: grid; gap: 10px; }

.bes-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 30px; }
.bes-proscons__col { border-radius: var(--bes-radius); padding: 20px; }
.bes-proscons__col h2 { font-size: 18px; margin-bottom: 10px; }
.bes-proscons__col ul { list-style: none; margin: 0; padding: 0; }
.bes-proscons__col li { display: flex; gap: 8px; margin-bottom: 6px; }
.bes-proscons__col .bes-icon { width: 17px; height: 17px; margin-top: 4px; }
.bes-proscons__col--pro { background: #eaf7f0; }
.bes-proscons__col--pro h2, .bes-proscons__col--pro .bes-icon { color: var(--bes-ok); }
.bes-proscons__col--con { background: #fdeeee; }
.bes-proscons__col--con h2, .bes-proscons__col--con .bes-icon { color: var(--bes-ko); }

.bes-scores { background: var(--bes-bg); border-radius: var(--bes-radius); padding: 22px; margin-bottom: 30px; }
.bes-scores h2 { font-size: 18px; }
.bes-score { display: grid; grid-template-columns: 180px 1fr 40px; gap: 14px; align-items: center; margin-bottom: 10px; font-size: 15px; }
.bes-score__bar { height: 10px; background: #f0dfee; border-radius: 999px; overflow: hidden; }
.bes-score__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--bes-secondary), var(--bes-accent)); border-radius: 999px; }
.bes-score__val { font-weight: 800; color: var(--bes-primary); text-align: right; }

.bes-site-bottom-cta { text-align: center; background: var(--bes-bg); border-radius: var(--bes-radius); padding: 26px; margin-top: 30px; }

.bes-factbox { background: #fff; border-radius: calc(var(--bes-radius) + 4px); padding: 22px; box-shadow: var(--bes-shadow); }
.bes-factbox dl { margin: 0 0 18px; }
.bes-factbox dl div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bes-border); font-size: 14px; }
.bes-factbox dt { color: var(--bes-muted); }
.bes-factbox dd { margin: 0; font-weight: 700; color: var(--bes-primary); text-align: right; }
.bes-factbox .is-yes { color: var(--bes-ok); }
.bes-factbox .is-no { color: var(--bes-ko); }
.bes-factbox .bes-icon { width: 18px; height: 18px; }

.bes-sticky-cta { display: none; }

/* ---------- Commentaires ---------- */
.bes-comments { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--bes-border); }
.bes-comments__list { list-style: none; padding: 0; }
.bes-comments__list .children { list-style: none; padding-left: 30px; }
.bes-comments .comment-body { background: var(--bes-bg); border-radius: var(--bes-radius); padding: 16px; margin-bottom: 14px; }
.bes-comments .comment-author img { border-radius: 50%; float: left; margin-right: 10px; }
.bes-comments .comment-metadata { font-size: 12px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; border: 2px solid var(--bes-border); border-radius: var(--bes-radius); padding: 10px 12px; background: #fff;
}
.comment-form .bes-btn { border: 0; }

/* ---------- 404 & vide ---------- */
.bes-404 { text-align: center; }
.bes-404__code { font-size: 110px; font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--bes-primary), var(--bes-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bes-404 .bes-search { max-width: 460px; margin: 20px auto; }
.bes-empty { background: #fff; border-radius: var(--bes-radius); padding: 30px; }

/* ---------- Pied de page ---------- */
.bes-footer { background: var(--bes-footer); color: rgba(255, 255, 255, .78); font-size: 15px; }
.bes-footer a { color: rgba(255, 255, 255, .85); }
.bes-footer a:hover { color: #fff; }
.bes-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.bes-footer__title, .bes-footer .widget-title { color: #fff; font-size: 17px; margin-bottom: 14px; }
.bes-footer__menu { list-style: none; margin: 0; padding: 0; }
.bes-footer__menu li { margin-bottom: 8px; }
.bes-footer .widget { background: none; padding: 0; box-shadow: none; }
.bes-footer .widget li { border-color: rgba(255, 255, 255, .1); }
.bes-social { display: flex; gap: 10px; margin-top: 16px; }
.bes-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background .2s; }
.bes-social a:hover { background: var(--bes-accent); }
.bes-social .bes-icon { width: 18px; height: 18px; }
.bes-footer__warning { background: rgba(0, 0, 0, .18); padding: 16px 0; font-size: 13px; }
.bes-footer__warning .bes-container { display: flex; gap: 10px; align-items: flex-start; }
.bes-footer__warning p { margin: 0; }
.bes-footer__warning .bes-icon { color: var(--bes-star); width: 18px; height: 18px; }
.bes-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 13px; }
.bes-footer__bottom .bes-container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bes-footer__bottom p { margin: 0; }
.bes-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }

.bes-totop {
	position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; background: var(--bes-primary); color: #fff; font-size: 20px;
	box-shadow: var(--bes-shadow-lg); opacity: 0; visibility: hidden; transition: .25s; z-index: 40;
}
.bes-totop.is-visible { opacity: 1; visibility: visible; }
.bes-totop:hover { background: var(--bes-accent); color: #fff; }

/* Mise en évidence après le formulaire du hero */
.bes-comp.is-flash .bes-comp__list { animation: besFlash 1s ease; }
@keyframes besFlash { 0% { opacity: .3; } 100% { opacity: 1; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.bes-card { grid-template-columns: 50px 180px 1fr 200px; }
	.bes-card__rank, .bes-card__brand { grid-row: 1 / span 2; }
	.bes-comp--compact .bes-card__rank, .bes-comp--compact .bes-card__brand { grid-row: auto; }
	.bes-card__facts { grid-column: 3; grid-row: 2; border-left: 0; padding-left: 0; grid-auto-flow: column; justify-content: start; gap: 24px; }
	.bes-card__action { grid-column: 4; grid-row: 1 / span 2; }
	.bes-site-hero { grid-template-columns: 140px 1fr; }
	.bes-site-hero__cta { grid-column: 1 / -1; max-width: 360px; }
}

@media (max-width: 960px) {
	.bes-comp__fields { grid-template-columns: 1fr 1fr; }
	.bes-burger { display: block; }
	.bes-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: var(--bes-primary);
		flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 12px;
		box-shadow: 0 20px 30px rgba(0, 0, 0, .2); display: none;
	}
	.bes-nav.is-open { display: flex; }
	.bes-menu { flex-direction: column; }
	.bes-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255, 255, 255, .06); margin-left: 12px; }
	.bes-menu .sub-menu a { color: #fff; }
	.bes-hero__inner { grid-template-columns: 1fr; gap: 32px; }
	.bes-layout { grid-template-columns: 1fr; }
	.bes-sidebar { position: static; }
	.bes-post-grid { grid-template-columns: repeat(2, 1fr); }
	.bes-offre { flex-direction: column; text-align: center; padding: 30px 24px; }
}

@media (max-width: 720px) {
	.bes-finder__cols { grid-template-columns: 1fr; gap: 0; }
	.bes-comp__tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
	.bes-comp__tabs button { white-space: nowrap; }
	body { font-size: 15px; }
	.bes-section { padding: 44px 0; }
	.bes-hero { padding: 40px 0 64px; }
	.bes-sort { margin-left: 0; }
	.bes-card, .bes-comp--compact .bes-card {
		grid-template-columns: 1fr; padding: 26px 18px 18px; gap: 14px; text-align: center;
	}
	.bes-card__rank { position: absolute; top: 14px; right: 14px; }
	.bes-card__rank span { border-radius: 50%; width: 34px; height: 34px; font-size: 15px; }
	.bes-card__brand { display: grid; justify-items: center; grid-row: auto; }
	.bes-card__logo { width: 180px; }
	.bes-card__pros { display: inline-block; text-align: left; }
	.bes-card__tags { justify-content: center; }
	.bes-card__facts { grid-column: auto; grid-row: auto; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--bes-border); padding-top: 12px; }
	.bes-card__facts div { align-items: center; }
	.bes-card__action { grid-column: auto; grid-row: auto; }
	.bes-comp--compact .bes-card__facts { display: none; }
	.bes-post-grid, .bes-post-grid--2 { grid-template-columns: 1fr; }
	.bes-article { padding: 24px 20px; }
	.bes-article__cover { margin: -24px -20px 20px; }
	.bes-proscons { grid-template-columns: 1fr; }
	.bes-score { grid-template-columns: 120px 1fr 34px; font-size: 14px; }
	.bes-site-hero { grid-template-columns: 1fr; text-align: center; }
	.bes-site-hero__logo { width: 180px; margin: 0 auto; }
	.bes-site-hero .bes-card__tags, .bes-site-hero__rating { justify-content: center; display: flex; }
	.bes-site-hero__cta { max-width: none; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.bes-footer__grid { grid-template-columns: 1fr 1fr; }
	.bes-footer__about { grid-column: 1 / -1; }
	.bes-prose .alignwide { margin-left: 0; margin-right: 0; }
	.bes-sticky-cta {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff;
		padding: 10px 14px; gap: 10px; align-items: center; justify-content: space-between;
		box-shadow: 0 -6px 20px rgba(0, 0, 0, .12);
	}
	.bes-sticky-cta__name { font-weight: 700; color: var(--bes-primary); font-size: 14px; display: flex; flex-direction: column; }
	.bes-sticky-cta .bes-stars { font-size: 13px; }
	.bes-sticky-cta .bes-stars__num { display: none; }
	.single-bes_site .bes-totop { bottom: 80px; }
	.single-bes_site .bes-footer { padding-bottom: 70px; }
}

@media (max-width: 782px) {
	.admin-bar.bes-sticky-header .bes-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar.bes-sticky-header .bes-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
