/* Thovo : décors du site, appliqués par les classes posées dans scripts/*.php (onglet Avancé > Classes CSS).
   Mise en page inspirée du template SaaSFlow (cartes blanches, pastilles, panneaux sombres arrondis),
   dans les couleurs de Thovo : vert sapin et beige. */

body { background: var(--mb-light, #f3ede3); color: var(--mb-text); }
::selection { background: var(--mb-primary); color: var(--mb-white); }

/* Pied de page toujours en bas de l'écran, même sur une page courte. */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > .mb-site-main { flex: 1 0 auto; }
body > .mb-site-header, body > .mb-site-footer { flex: none; }
.admin-bar { min-height: calc(100vh - 32px); }

:root { --th-header: 77px; --th-shadow: 0 1px 2px rgba(13, 37, 35, 0.04), 0 18px 40px -18px rgba(13, 37, 35, 0.18); }
@media (max-width: 767px) { :root { --th-header: 61px; } }
[id] { scroll-margin-top: calc(var(--th-header) + 12px); }

/* ---------- En-tête ---------- */

.th-header > .mb-container { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0, 48, 46, 0.08); }
.mb-site-header .mb-button { white-space: nowrap; }
.th-logo { flex: none; }
.th-brand .mb-heading { margin: 0; }
.th-brand a { color: inherit; text-decoration: none; }
/* « Se connecter » : bouton à droite sur ordinateur, ligne du menu sur tablette et mobile. */
@media (min-width: 1025px) { .mb-site-header .th-menu-login { display: none !important; } }
@media (max-width: 1024px) {
	.mb-site-header .mb-w-nav-menu { order: 2; }
	.mb-site-header .mb-menu { position: static; }
	.mb-site-header .mb-menu.is-open .mb-menu__panel { top: calc(100% + 10px); border: 1px solid rgba(0, 48, 46, 0.1); border-radius: 16px; box-shadow: var(--th-shadow); }
	.mb-site-header .mb-menu li { border-bottom-color: rgba(0, 48, 46, 0.08) !important; }
	.mb-site-header .mb-menu__toggle { padding: 6px 0 6px 6px; font-size: 22px; }
}
@media (max-width: 380px) {
	.mb-site-header .mb-button { font-size: 13px !important; padding: 9px 11px !important; }
}

/* ---------- Pastilles de surtitre ---------- */

.th-pill .mb-heading {
	display: inline-flex; align-items: center; gap: 8px; margin: 0;
	padding: 5px 14px 5px 6px; border-radius: 100px;
	background: var(--mb-white); color: var(--mb-primary) !important;
	border: 1px solid rgba(0, 48, 46, 0.1); line-height: 1.5;
}
.th-pill .mb-heading::before {
	content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
	background: radial-gradient(circle, var(--mb-primary) 0 4px, var(--mb-menthe) 4.5px);
}
.th-pill--dark .mb-heading { background: rgba(255, 255, 255, 0.08); color: var(--mb-creme) !important; border-color: rgba(255, 255, 255, 0.16); }
.th-pill--dark .mb-heading::before { background: radial-gradient(circle, var(--mb-white) 0 4px, rgba(213, 232, 212, 0.35) 4.5px); }

/* ---------- Cartes ---------- */

.th-card > .mb-container { background: var(--mb-white); border: 1px solid rgba(0, 48, 46, 0.07); border-radius: 22px; box-shadow: var(--th-shadow); }
.th-card--dark > .mb-container { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; }

/* Captures de l'application. */
.th-shot img { display: block; }
.th-shot--panel { margin-top: auto; }
.th-shot--panel img { background: var(--mb-white); border-radius: 14px; }

/* ---------- Sections ---------- */

.th-section > .mb-container { position: relative; }

/* Hero : halos menthe et sapin sur le beige. */
.th-hero > .mb-container {
	background:
		radial-gradient(520px circle at 8% 0%, rgba(213, 232, 212, 0.9), transparent 70%),
		radial-gradient(620px circle at 92% 40%, rgba(20, 82, 76, 0.16), transparent 70%);
}
.th-hero-visual { position: relative; }
/* Hero d'accueil pleine hauteur : il remplit l'écran sous l'en-tête, contenu centré verticalement. */
.th-hero--full > .mb-container { min-height: calc(100svh - var(--th-header)); }
.th-hero--full > .mb-container > .mb-container__inner { justify-content: center; }
/* La capture a de grandes marges transparentes : on l'agrandit pour remplir la colonne. */
@media (min-width: 1025px) { .th-hero-visual:not(.th-hero-visual--stack) .th-shot img { transform: scale(1.18); } }
/* Hero d'accueil : l'ordinateur, sous le texte, prend la hauteur qui reste à l'écran (capture 3:2,
   environ 430 px de texte et de marges au-dessus), entre 300 px et 900 px de large. */
.th-hero-visual--stack { width: clamp(300px, calc((100svh - var(--th-header) - 432px) * 1.5), 900px); max-width: 100%; }
@media (max-width: 767px) { .th-hero-visual--stack { width: 100%; } }

/* ---------- Effet verre (glassmorphisme du template) ---------- */

/* Taches floues derrière le verre : sans elles, le flou n'aurait rien à montrer. Elles débordent doucement sur
   les sections voisines (pas de bord net) ; la page coupe ce qui dépasse sur les côtés (overflow-x: clip, qui\n   garde le bloc collant de « Le constat »). */
html, body { overflow-x: clip; }
.th-blobs > .mb-container { isolation: isolate; }
.th-blobs > .mb-container::before,
.th-blobs > .mb-container::after {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	width: 420px; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: 0.75;
}
.th-blobs > .mb-container::before { left: -120px; top: 10%; background: #b9dcb8; }
.th-blobs > .mb-container::after { right: -140px; bottom: 5%; background: #e3c9a0; }
.th-blobs--alt > .mb-container::before { left: auto; right: 8%; top: -80px; }
.th-blobs--alt > .mb-container::after { right: auto; left: 10%; bottom: -60px; background: #9fcfc3; }

/* Cartes de verre : fond blanc translucide, flou, bord blanc lumineux, ombre très douce. */
.th-glass > .mb-container {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
	backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 22px;
	box-shadow: 0 30px 80px -10px rgba(13, 37, 35, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.th-panel .th-card--dark > .mb-container { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Éléments suspendus : petites cartes et bulles de verre qui flottent doucement. */
.th-float { position: absolute; z-index: 3; pointer-events: none; }
.th-chip .mb-box {
	align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 16px; white-space: nowrap;
	background: rgba(255, 255, 255, 0.62); backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 24px 50px -16px rgba(13, 37, 35, 0.28);
}
.th-chip .mb-box p { margin: 0; }
.th-chip--dark .mb-box { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.45); }
.th-bubble .mb-icon-wrap > span {
	background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 60%) !important;
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 20px 40px -14px rgba(13, 37, 35, 0.3);
}
.th-bubble--dark .mb-icon-wrap > span {
	background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06) 65%) !important;
	border-color: rgba(255, 255, 255, 0.25);
}
@media (prefers-reduced-motion: no-preference) {
	.th-float { animation: th-float 7s ease-in-out infinite; }
	.th-float:nth-of-type(2n) { animation-duration: 8.5s; animation-delay: -3s; }
	.th-float--late, .th-bubble { animation-delay: -5s; }
}
@keyframes th-float { 50% { transform: translateY(-12px) rotate(var(--th-tilt, 0deg)); } }
.th-bubble { --th-tilt: 6deg; }
/* Sur téléphone et tablette, la place manque : ils cacheraient le contenu. */
@media (max-width: 1024px) { .th-float { display: none; } }

/* Panneau sombre arrondi, en retrait des bords de l'écran (« Services », « Testimonials » du template). */
.th-panel > .mb-container {
	width: 100%; max-width: 1360px; margin-inline: auto;
	border-radius: 32px; overflow: hidden; isolation: isolate;
	background:
		radial-gradient(560px circle at 0% 0%, rgba(213, 232, 212, 0.16), transparent 70%),
		radial-gradient(640px circle at 100% 100%, rgba(199, 154, 75, 0.14), transparent 70%),
		var(--mb-primary);
}
.th-panel { padding-inline: 16px; }
.th-panel + .th-panel { margin-top: 24px; }
.th-panel--gradient > .mb-container {
	background:
		radial-gradient(700px circle at 85% 110%, rgba(213, 232, 212, 0.28), transparent 65%),
		linear-gradient(135deg, #0d2523 0%, var(--mb-primary) 55%, #14524c 100%);
}
.th-panel--cta > .mb-container {
	background:
		radial-gradient(500px circle at 50% 120%, rgba(213, 232, 212, 0.3), transparent 70%),
		radial-gradient(420px circle at 0% 0%, rgba(199, 154, 75, 0.18), transparent 70%),
		var(--mb-primary);
}
@media (max-width: 767px) {
	.th-panel { padding-inline: 8px; }
	.th-panel > .mb-container { border-radius: 22px; }
}

/* Contour clair sur fond sombre. */
.th-on-dark .mb-button { color: var(--mb-white) !important; border-color: rgba(255, 255, 255, 0.45) !important; }
.th-on-dark .mb-button:hover, .th-on-dark .mb-button:focus-visible { background: var(--mb-white) !important; color: var(--mb-primary) !important; border-color: var(--mb-white) !important; }

/* Bloc de gauche qui reste visible pendant le défilement des cartes (ordinateur). */
@media (min-width: 1025px) {
	.th-sticky { position: sticky; top: calc(var(--th-header) + 32px); }
}

/* Logos des partenaires : léger fondu sur les bords. */
.th-logos .mb-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.th-logos .mb-marquee__logo img { border-radius: 8px; }

/* Compteur d'impact : filets entre les chiffres. */
@media (min-width: 1025px) {
	.th-impact .mb-w-counter:not(:first-child) { border-left: 1px solid rgba(0, 48, 46, 0.1); padding-left: 24px; }
}

/* Cartes des secteurs : photo en haut (la légende incrustée dans l'image reste hors champ). */
.th-sector > .mb-container { overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.th-sector:hover > .mb-container { transform: translateY(-4px); box-shadow: 0 24px 48px -20px rgba(13, 37, 35, 0.3); }
.th-sector .mb-w-image { overflow: hidden; }
.th-sector .mb-w-image img { object-position: 50% 22%; transition: transform 0.5s; }
.th-sector:hover .mb-w-image img { transform: scale(1.04); }
.th-link a { text-decoration: none; }
.th-link a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
	.th-sector > .mb-container, .th-sector .mb-w-image img { transition: none; transform: none !important; }
}

/* Application mobile : la photo touche le bas du panneau. */
.th-phone img { display: block; margin: 0 auto; }
@media (min-width: 768px) { .th-phone img { transform: scale(1.35); transform-origin: 50% 100%; } }

/* Équipe : initiales dans un disque, en attendant les photos. */
.th-avatar .mb-heading {
	display: flex; align-items: center; justify-content: center; margin: 0;
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--mb-menthe); color: var(--mb-primary) !important; font-size: 18px; font-weight: 600;
}
.th-team .mb-w-container:nth-child(2) { margin-left: 36px; }
@media (max-width: 767px) { .th-team .mb-w-container:nth-child(2) { margin-left: 0; } }
/* Valeurs de l'accueil : un titre seul, centré sur son icône. */
.th-values .mb-box { align-items: center; }
.th-values .mb-box__title { margin: 0; }

/* FAQ : filets entre les questions. */
.th-faq .mb-accordion__item:not(:last-child) { border-bottom: 1px solid rgba(0, 48, 46, 0.1); }
.th-faq .mb-accordion__content a { color: var(--mb-primary); font-weight: 600; }

/* ---------- Pages intérieures ---------- */

.th-visual { position: relative; }
.th-feature .mb-box { align-items: flex-start; }
.th-feature .mb-box h3 { margin: 0 0 4px; }
/* Ancres du haut de page (Avant, Pendant…) : pastilles de verre. */
.th-anchor .mb-button { background: rgba(255, 255, 255, 0.55) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: rgba(0, 48, 46, 0.18) !important; border-radius: 100px !important; }
.th-anchor .mb-button:hover { background: var(--mb-primary) !important; }
@media (min-width: 768px) { .th-shot--big img { transform: scale(1.12); } }

/* Tarifs : la formule mise en avant, sombre, un peu plus haute. */
.th-plan .mb-container__inner { height: 100%; }
.th-plan-intro { padding-top: 8px; border-top: 1px solid rgba(0, 48, 46, 0.1); }
.th-plan--featured .th-plan-intro { border-top-color: rgba(255, 255, 255, 0.15); }
.th-plan-cta { margin-top: auto; padding-top: 12px; }
.th-plan--featured > .mb-container {
	background: radial-gradient(320px circle at 100% 0%, rgba(213, 232, 212, 0.25), transparent 70%), var(--mb-primary);
	border-color: transparent; box-shadow: 0 30px 70px -20px rgba(0, 48, 46, 0.55);
}
@media (min-width: 1025px) { .th-plan--featured > .mb-container { transform: translateY(-14px); } }
.th-badge .mb-heading { display: inline-block; margin: 0; padding: 3px 12px; border-radius: 100px; background: var(--mb-menthe); color: var(--mb-primary) !important; }
.th-price-from .mb-heading { margin: 10px 0 -8px; }
.th-price .mb-heading { margin: 0; }

/* Tableau comparatif : défile horizontalement sur téléphone, première colonne fixe. */
.th-compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.th-compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.th-compare th, .th-compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid rgba(0, 48, 46, 0.08); }
.th-compare thead th { color: var(--mb-secondary); font-weight: 600; }
.th-compare tbody th { text-align: left; font-weight: 400; color: var(--mb-secondary); }
.th-compare th:first-child { position: sticky; left: 0; background: rgba(251, 248, 242, 0.95); }
.th-compare .is-featured { background: rgba(213, 232, 212, 0.45); }
.th-compare tr:last-child th, .th-compare tr:last-child td { border-bottom: 0; font-weight: 600; color: var(--mb-primary); }
.th-yes { color: var(--mb-primary); font-weight: 700; font-size: 17px; }
.th-no { color: rgba(0, 48, 46, 0.3); }

/* Témoignages : auteur en bas de la carte. */
.th-testimonial .mb-container__inner { height: 100%; }
.th-quote-author { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(0, 48, 46, 0.08); }
.th-logo-tile img { filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s; border-radius: 8px; }
.th-logo-tile img:hover { filter: none; opacity: 1; }

/* Notre histoire : numéros des chapitres, grands disques d'initiales. */
.th-step-num .mb-heading { display: inline-block; margin: 0; padding: 2px 12px; border-radius: 100px; background: var(--mb-menthe); color: var(--mb-primary) !important; }
.th-avatar--big .mb-heading { width: 76px; height: 76px; font-size: 24px; }

/* Petite histoire de Thovo : la question des fondateurs, mise en avant. */
.th-story p { margin: 0 0 0.9em; }
.th-story p:last-child { margin-bottom: 0; }
.th-story .th-story-question { padding-left: 20px; border-left: 3px solid var(--mb-menthe); color: var(--mb-primary); font-weight: 600; }

/* Pages légales. */
.th-legal h2 { margin: 1.8em 0 0.5em; color: var(--mb-secondary); font-size: 21px; line-height: 1.3; }
.th-legal h2:first-child { margin-top: 0; }

/* Bouton « Remonter » (option de Mon Builder) : verre sapin, comme les éléments suspendus. */
body .mb-to-top {
	background: rgba(0, 48, 46, 0.82); backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 20px 40px -14px rgba(0, 48, 46, 0.55);
}
body .mb-to-top:hover { background: var(--mb-primary); filter: none; }

/* ---------- Pied de page ---------- */

.th-footer > .mb-container { background: var(--mb-white); border-top: 1px solid rgba(0, 48, 46, 0.08); overflow: hidden; }
/* Même interligne que la liste « Nous joindre » : les lignes des colonnes tombent au même niveau. */
.th-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; line-height: 1.4; }
.th-footer-links a { color: var(--mb-text); text-decoration: none; }
.th-footer-links a:hover { color: var(--mb-primary); text-decoration: underline; text-underline-offset: 3px; }
/* Grand « Thovo » en filigrane, comme le grand nom en bas du template. */
.th-wordmark .mb-heading {
	margin: 0; font-size: clamp(90px, 21vw, 300px); font-weight: 700; line-height: 0.8; letter-spacing: -0.06em;
	color: transparent; background: linear-gradient(180deg, rgba(0, 48, 46, 0.14), rgba(0, 48, 46, 0.02));
	-webkit-background-clip: text; background-clip: text; user-select: none;
}
.th-footer-bottom > .mb-container { border-top: 1px solid rgba(0, 48, 46, 0.08); padding-top: 20px !important; }
