/*
 * ZEN Landing — feuille de style autonome (chargée UNIQUEMENT sur
 * page-templates/template-zen-landing.php). Toutes les classes préfixées .zen-.
 * Aucune dépendance au CSS du thème ; aucun token du thème n'est référencé.
 *
 * Univers ZEN : Swiss Style plat — alignement gauche, zéro border-radius,
 * géométrie plate, hiérarchie typographique stricte. Mobile-first.
 * Rythme : sombre → blanc → sombre.
 */

/* ── Tokens (locaux à cette page uniquement) ───────────────────────────── */
:root {
	--zen-dark: #0A0F24;
	--zen-dark-2: #0E1430;
	--zen-white: #FFFFFF;
	--zen-amber: #D97706;
	--zen-amber-hover: #B45309;
	--zen-red: #DC2626;
	--zen-yellow: #FBBF24;
	--zen-grey: #6B7280;
	--zen-grey-light: #9AA1AE;
	--zen-ink: #0A0F24;
	--zen-line: rgba(10, 15, 36, 0.14);
	--zen-line-dark: rgba(255, 255, 255, 0.16);
	--zen-surface: #F6F6F4;

	--zen-font-title: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	--zen-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--zen-maxw: 720px;
	--zen-pad: 20px;
}

/* ── Reset minimal, scopé ──────────────────────────────────────────────── */
body.zen-root {
	margin: 0;
	background: var(--zen-dark);
	color: var(--zen-ink);
	font-family: var(--zen-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.zen-page,
.zen-page *,
.zen-page *::before,
.zen-page *::after {
	box-sizing: border-box;
}

.zen-page h1,
.zen-page h2,
.zen-page h3,
.zen-page p,
.zen-page ul,
.zen-page figure {
	margin: 0;
}

.zen-page ul {
	list-style: none;
	padding: 0;
}

.zen-page img,
.zen-page svg {
	display: block;
	max-width: 100%;
}

.zen-page [hidden] {
	display: none !important;
}

/* ── Layout ────────────────────────────────────────────────────────────── */
.zen-container {
	width: 100%;
	max-width: var(--zen-maxw);
	margin-inline: auto;
	padding-inline: var(--zen-pad);
}

/* ── Boutons ───────────────────────────────────────────────────────────── */
.zen-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 26px;
	border: 2px solid var(--zen-amber);
	border-radius: 0;
	background: var(--zen-amber);
	color: var(--zen-ink);
	font-family: var(--zen-font-title);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.zen-btn--primary:hover,
.zen-btn--primary:focus-visible {
	background: var(--zen-amber-hover);
	border-color: var(--zen-amber-hover);
	color: var(--zen-white);
}

.zen-btn--lg {
	min-height: 58px;
	font-size: 19px;
	padding: 16px 34px;
}

.zen-btn[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ── Liens ─────────────────────────────────────────────────────────────── */
.zen-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.zen-link:hover {
	color: var(--zen-amber);
}

/* ── Accessibilité focus (plat, ambre, pas de radius) ──────────────────── */
.zen-page a:focus-visible,
.zen-page button:focus-visible,
.zen-page input:focus-visible,
.zen-page summary:focus-visible {
	outline: 3px solid var(--zen-amber);
	outline-offset: 2px;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.zen-header {
	background: var(--zen-dark);
	border-bottom: 1px solid var(--zen-line-dark);
}

.zen-header__inner {
	display: flex;
	align-items: center;
	min-height: 64px;
}

.zen-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--zen-white);
}

.zen-logo__mark {
	color: var(--zen-amber);
}

.zen-logo__word {
	font-family: var(--zen-font-title);
	font-weight: 800;
	font-size: 21px;
	letter-spacing: -0.01em;
	color: var(--zen-white);
}

/* ── 1. Hero + audit (sombre) ──────────────────────────────────────────── */
.zen-hero {
	background: var(--zen-dark);
	color: var(--zen-white);
	padding-block: clamp(40px, 9vw, 76px);
}

.zen-hero__title {
	font-family: var(--zen-font-title);
	font-weight: 800;
	font-size: clamp(30px, 8vw, 46px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--zen-white);
	max-width: 16ch;
}

.zen-hero__lede {
	margin-top: 16px;
	font-size: clamp(17px, 4.5vw, 20px);
	line-height: 1.5;
	color: var(--zen-grey-light);
	max-width: 42ch;
}

/* Audit form */
.zen-audit {
	margin-top: 32px;
}

.zen-audit__label {
	display: block;
	font-family: var(--zen-font-title);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--zen-grey-light);
	margin-bottom: 10px;
}

.zen-audit__field {
	position: relative;
}

.zen-audit__input {
	width: 100%;
	min-height: 56px;
	padding: 14px 16px;
	border: 1px solid transparent;
	border-radius: 0;
	background: var(--zen-white);
	color: var(--zen-ink);
	font-family: var(--zen-font-body);
	font-size: 17px;
	line-height: 1.3;
}

.zen-audit__input::placeholder {
	color: var(--zen-grey);
}

/* Dropdown prédictions */
.zen-audit__predictions {
	position: absolute;
	z-index: 20;
	top: calc(100% - 1px);
	left: 0;
	right: 0;
	background: var(--zen-white);
	border: 1px solid var(--zen-line);
	box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.55);
	max-height: 320px;
	overflow-y: auto;
}

.zen-prediction {
	display: block;
	width: 100%;
	text-align: left;
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--zen-line);
	background: var(--zen-white);
	color: var(--zen-ink);
	font-family: var(--zen-font-body);
	font-size: 16px;
	line-height: 1.35;
	cursor: pointer;
}

.zen-prediction:last-child {
	border-bottom: 0;
}

.zen-prediction:hover,
.zen-prediction[aria-selected="true"],
.zen-prediction.is-active {
	background: var(--zen-surface);
	box-shadow: inset 3px 0 0 0 var(--zen-amber);
}

.zen-audit__submit {
	margin-top: 16px;
	width: 100%;
}

.zen-audit__hint {
	margin-top: 12px;
	font-size: 14px;
	color: var(--zen-grey-light);
}

/* Honeypot anti-bot : présent dans le DOM mais invisible et hors flux — jamais vu
   ni focalisé par un humain ; un bot qui remplit tout se trahit en le remplissant. */
.zen-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.zen-audit--fallback .zen-btn {
	margin-top: 8px;
}

.zen-noscript {
	margin-top: 28px;
	padding: 20px;
	border: 1px solid var(--zen-line-dark);
	color: var(--zen-grey-light);
}

.zen-noscript p {
	margin-bottom: 16px;
}

.zen-noscript a {
	color: var(--zen-yellow);
}

/* ── 2. Résultat d'audit (sombre, carte blanche plate) ─────────────────── */
.zen-result {
	background: var(--zen-dark);
	padding-block: clamp(8px, 3vw, 20px) clamp(40px, 9vw, 72px);
	color: var(--zen-white);
}

.zen-result__card {
	background: var(--zen-white);
	color: var(--zen-ink);
	border: 1px solid var(--zen-line);
	padding: clamp(28px, 6vw, 44px);
}

.zen-result__place {
	font-family: var(--zen-font-title);
	font-weight: 800;
	font-size: clamp(20px, 5.5vw, 26px);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.zen-result__addr {
	margin-top: 8px;
	font-size: 14px;
	color: var(--zen-grey);
}

.zen-result__headline {
	margin-top: 24px;
	font-family: var(--zen-font-title);
	font-weight: 700;
	font-size: clamp(18px, 4.5vw, 21px);
	line-height: 1.3;
}

.zen-constats {
	margin-top: 24px;
}

.zen-constat {
	padding: 20px 0;
	border-top: 1px solid var(--zen-line);
}

/* En-tête du constat : catégorie (gauche) + étiquette de gravité (droite). */
.zen-constat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.zen-constat__cat {
	font-family: var(--zen-font-title);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--zen-ink);
}

/* Étiquette de gravité : tag plein — le libellé ET la couleur portent l'info
   (rouge = Grave, ambre = Moyen, gris = Mineur). Pas une déco. Zéro radius. */
.zen-constat__sev {
	flex: none;
	font-family: var(--zen-font-title);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 10px;
	color: var(--zen-white);
	background: var(--zen-grey);
	white-space: nowrap;
}

.zen-constat[data-severity="high"] .zen-constat__sev { background: var(--zen-red); }
.zen-constat[data-severity="high"] .zen-constat__sev::before { content: "Grave"; }
.zen-constat[data-severity="medium"] .zen-constat__sev { background: var(--zen-amber); }
.zen-constat[data-severity="medium"] .zen-constat__sev::before { content: "Moyen"; }
.zen-constat[data-severity="low"] .zen-constat__sev { background: var(--zen-grey); }
.zen-constat[data-severity="low"] .zen-constat__sev::before { content: "Mineur"; }

.zen-constat__text {
	font-size: 16px;
	line-height: 1.55;
	color: var(--zen-ink);
}

.zen-result__pivot {
	margin-top: 24px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--zen-grey);
}

.zen-result__cta {
	margin-top: 28px;
	width: 100%;
}

/* Squelette de chargement (sobre, pas de spinner) */
.zen-skel {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.zen-skel__bar {
	height: 14px;
	background: var(--zen-surface);
	animation: zen-pulse 1.2s ease-in-out infinite;
}

.zen-skel__bar--title {
	height: 26px;
	width: 60%;
}

.zen-skel__bar--w80 { width: 80%; }
.zen-skel__bar--w90 { width: 90%; }
.zen-skel__bar--w70 { width: 70%; }

@keyframes zen-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Erreur + retry */
.zen-result__error {
	border-left: 3px solid var(--zen-amber);
	padding: 4px 0 4px 16px;
}

.zen-result__error p {
	font-size: 16px;
	line-height: 1.45;
}

.zen-result__retry {
	margin-top: 18px;
}

/* ── 3. Offre (blanc) ──────────────────────────────────────────────────── */
.zen-offer {
	background: var(--zen-white);
	color: var(--zen-ink);
	padding-block: clamp(48px, 11vw, 88px);
}

.zen-section__title {
	font-family: var(--zen-font-title);
	font-weight: 800;
	font-size: clamp(26px, 6.5vw, 38px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	max-width: 18ch;
	margin-bottom: 32px;
}

.zen-plans {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.zen-plan {
	border: 1px solid var(--zen-line);
	padding: clamp(22px, 6vw, 32px);
	background: var(--zen-white);
}

.zen-plan--featured {
	border: 2px solid var(--zen-amber);
}

.zen-plan__badge {
	display: inline-block;
	font-family: var(--zen-font-title);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--zen-ink);
	background: var(--zen-yellow);
	padding: 5px 10px;
	margin-bottom: 14px;
}

.zen-plan__name {
	font-family: var(--zen-font-title);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -0.01em;
}

.zen-plan__price {
	margin-top: 8px;
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.zen-plan__amount {
	font-family: var(--zen-font-title);
	font-weight: 800;
	font-size: clamp(34px, 9vw, 44px);
	line-height: 1;
	letter-spacing: -0.02em;
}

.zen-plan__period {
	font-size: 16px;
	color: var(--zen-grey);
}

.zen-plan__vat {
	margin-top: 6px;
	font-size: 13px;
	color: var(--zen-grey);
}

.zen-plan__features {
	margin-top: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.zen-plan__features li {
	position: relative;
	padding-left: 22px;
	font-size: 15.5px;
	line-height: 1.45;
}

.zen-plan__features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 10px;
	height: 2px;
	background: var(--zen-amber);
}

.zen-plan__cta {
	margin-top: 26px;
	width: 100%;
}

.zen-offer__note {
	margin-top: 26px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--zen-grey);
}

/* ── 4. Réassurance (blanc cassé) ──────────────────────────────────────── */
.zen-reassure {
	background: var(--zen-surface);
	color: var(--zen-ink);
	padding-block: clamp(40px, 10vw, 72px);
}

.zen-reassure__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
}

.zen-reassure__item {
	padding-left: 16px;
	border-left: 3px solid var(--zen-amber);
}

.zen-reassure__label {
	display: block;
	font-family: var(--zen-font-title);
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 4px;
}

.zen-reassure__text {
	display: block;
	font-size: 15px;
	line-height: 1.5;
	color: var(--zen-grey);
}

.zen-reassure__text--small {
	font-size: 13px;
}

/* ── 5. FAQ (blanc) ────────────────────────────────────────────────────── */
.zen-faq {
	background: var(--zen-white);
	color: var(--zen-ink);
	padding-block: clamp(48px, 11vw, 88px);
}

.zen-faq__item {
	border-top: 1px solid var(--zen-line);
	padding: 4px 0;
}

.zen-faq__item:last-child {
	border-bottom: 1px solid var(--zen-line);
}

.zen-faq__q {
	list-style: none;
	cursor: pointer;
	padding: 18px 32px 18px 0;
	position: relative;
	font-family: var(--zen-font-title);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.35;
}

.zen-faq__q::-webkit-details-marker {
	display: none;
}

.zen-faq__q::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 16px;
	font-size: 24px;
	font-weight: 400;
	color: var(--zen-amber);
	line-height: 1;
}

.zen-faq__item[open] .zen-faq__q::after {
	content: "–";
}

.zen-faq__a {
	padding: 0 0 20px;
}

.zen-faq__a p {
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--zen-grey);
	max-width: 60ch;
}

/* ── 6. CTA final (sombre) ─────────────────────────────────────────────── */
.zen-final {
	background: var(--zen-dark);
	color: var(--zen-white);
	padding-block: clamp(48px, 12vw, 96px);
}

.zen-final__title {
	font-family: var(--zen-font-title);
	font-weight: 800;
	font-size: clamp(26px, 7vw, 40px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--zen-white);
	max-width: 20ch;
}

.zen-final__lede {
	margin-top: 14px;
	font-size: 17px;
	line-height: 1.5;
	color: var(--zen-grey-light);
	max-width: 44ch;
}

.zen-final .zen-btn {
	margin-top: 28px;
}

/* ── 7. Footer (sombre) ────────────────────────────────────────────────── */
.zen-footer {
	background: var(--zen-dark);
	color: var(--zen-grey-light);
	border-top: 1px solid var(--zen-line-dark);
	padding-block: 32px;
}

.zen-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.zen-logo--footer .zen-logo__word {
	font-size: 18px;
}

.zen-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.zen-footer__links .zen-link {
	color: var(--zen-grey-light);
	font-size: 14px;
	text-decoration: none;
}

.zen-footer__links .zen-link:hover {
	color: var(--zen-white);
}

.zen-footer__copy {
	font-size: 13px;
	color: var(--zen-grey);
}

/* ── Breakpoint : ≥ 720px (tablette/desktop) ───────────────────────────── */
@media (min-width: 720px) {
	.zen-audit {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"label label"
			"field submit"
			"hint  hint";
		gap: 12px 16px;
		align-items: start;
	}

	.zen-audit__label { grid-area: label; }
	.zen-audit__field { grid-area: field; }
	.zen-audit__submit { grid-area: submit; margin-top: 0; width: auto; white-space: nowrap; }
	.zen-audit__hint { grid-area: hint; margin-top: 0; }

	.zen-plans {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.zen-reassure__list {
		grid-template-columns: 1fr 1fr;
		gap: 28px 32px;
	}

	.zen-plan__cta,
	.zen-result__cta {
		width: auto;
	}
}

/* ── Préférence de mouvement réduit ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.zen-page * {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

/* ── Reveal léger (piloté par zen-landing.js, dégradé propre sans JS) ───── */
.zen-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 480ms ease, transform 480ms ease;
}

.zen-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.zen-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ═════════════════════════════════════════════════════════════════════════
 *  WIDGET AUDIT EMBARQUABLE — shortcode [happyresto_audit]
 *
 *  Couche posée SUR les styles .zen-page réutilisés. Panneau autonome, centré
 *  et thémable, pensé pour vivre au milieu d'une page Elementor ; les sections
 *  (offres, FAQ, CTA) se construisent AUTOUR, dans Elementor.
 *
 *  Personnalisation depuis le CSS custom Elementor (surcharger les variables) :
 *    .zen-aw {
 *      --zen-aw-bg: #0A0F24;      fond du panneau (mettre transparent pour fondre)
 *      --zen-aw-fg: #FFFFFF;      couleur du texte
 *      --zen-aw-muted: #9AA1AE;   label + hint
 *      --zen-aw-accent: #D97706;  bouton, barres de constats, surbrillance
 *      --zen-aw-maxw: 560px;      largeur max du widget
 *    }
 * ═════════════════════════════════════════════════════════════════════════ */
.zen-aw {
	--zen-aw-bg: transparent;          /* pas de fond par défaut (surchargeable via l'attribut bg) */
	--zen-aw-fg: inherit;              /* hérite du texte de la section Elementor */
	--zen-aw-muted: inherit;
	--zen-aw-accent: var(--zen-amber); /* couleur du CTA (surchargeable via l'attribut cta_color) */
	--zen-aw-maxw: none;               /* remplit la colonne ; largeur gérée dans Elementor */

	box-sizing: border-box;
	width: 100%;
	max-width: var(--zen-aw-maxw);
	margin-inline: 0;                  /* alignement à gauche */
	padding: 0;
	background: var(--zen-aw-bg);
	color: var(--zen-aw-fg);
	font-family: var(--zen-font-body);
	font-size: 17px;
	line-height: 1.6;

	display: flex;
	flex-direction: column;
	justify-content: center; /* centre verticalement dès que --zen-aw-minh est posé */
	min-height: var(--zen-aw-minh, auto);
}

/* Titre / sous-titre optionnels (attributs title / subtitle du shortcode) */
.zen-aw__title {
	font-family: var(--zen-font-title);
	font-weight: 800;
	font-size: clamp(22px, 5vw, 30px); /* assez grand, mais pas trop */
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--zen-aw-fg);
	text-align: left;
}

.zen-aw__subtitle {
	margin-top: 16px;
	font-size: clamp(16px, 4vw, 18px);
	line-height: 1.55;
	color: var(--zen-aw-muted);
	text-align: left;
}

.zen-aw__title + .zen-audit,
.zen-aw__subtitle + .zen-audit,
.zen-aw__title + .zen-audit--fallback,
.zen-aw__subtitle + .zen-audit--fallback {
	margin-top: 44px;
}

/* Formulaire : colonne centrée, contrôles pleine largeur — on annule la grille
   desktop du template (widget étroit → empilé, plus net). */
.zen-aw .zen-audit {
	margin-top: 0;
	display: block;
	text-align: left;
}

.zen-aw .zen-audit__label,
.zen-aw .zen-audit__hint {
	color: var(--zen-aw-muted);
}

.zen-aw .zen-audit__hint {
	opacity: 0.75;
}

/* Vide au repos (le message n'apparaît que sur interaction JS) → aucune place prise. */
.zen-aw .zen-audit__hint:empty {
	display: none;
	margin: 0;
}

.zen-aw .zen-audit__submit {
	margin-top: 22px;
	width: 100%;
}

/* Bouton + accents suivent la variable thémable (défaut = ambre ZEN) */
.zen-aw .zen-btn--primary {
	background: var(--zen-aw-accent);
	border-color: var(--zen-aw-accent);
	color: #fff;
}

/* Survol : garde la couleur choisie (juste un peu plus sombre) — pas de retour à l'ambre. */
.zen-aw .zen-btn--primary:hover,
.zen-aw .zen-btn--primary:focus-visible {
	background: var(--zen-aw-accent);
	border-color: var(--zen-aw-accent);
	color: #fff;
	filter: brightness(0.92);
}

.zen-aw .zen-result__error {
	border-left-color: var(--zen-aw-accent);
}

.zen-aw .zen-prediction:hover,
.zen-aw .zen-prediction[aria-selected="true"],
.zen-aw .zen-prediction.is-active {
	box-shadow: inset 3px 0 0 0 var(--zen-aw-accent);
}

/* Résultat : le panneau .zen-aw fournit déjà le fond → on neutralise le fond et
   le padding de « section », la carte reste blanche, texte interne à gauche. */
.zen-aw .zen-result {
	background: transparent;
	padding: 0;
	margin-top: 36px;
	color: inherit;
}

.zen-aw .zen-result__card {
	text-align: left;
}

.zen-aw .zen-result__cta {
	width: 100%;
}
