/* Fire & Outdoor Living — complément de charte
   ------------------------------------------------------------------
   Le thème enfant porte déjà :
     · fire-outdoor-tokens.css  → variables, boutons, cartes, badges,
                                  puces, bannière de base, sections
     · fol-flatsome-map.css     → mapping Flatsome (en-tête, méga-menu,
                                  boutons, cartes produit, pied de page,
                                  cartes communauté, Forminator)
   Ce fichier n'ajoute QUE ce qui manque, et ne redéfinit aucun token.
   Il est chargé après fol-map, dont les règles sont en !important.
   ------------------------------------------------------------------ */

/* --- Bandeau de réassurance -------------------------------------------- */
.fol-reassurance {
	background: var(--fol-ink);
	color: var(--fol-border-light);
	font-size: 13.5px;
	letter-spacing: .05em;
}
.fol-reassurance__inner {
	max-width: var(--fol-max-width);
	margin: 0 auto;
	padding: 18px var(--fol-gutter);
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	justify-content: center;
}

/* --- Bannière : variantes de hauteur et typographie -------------------- */
.fol-hero--tall   { min-height: 78vh; }
.fol-hero--medium { min-height: 56vh; }
.fol-hero--short  { min-height: 48vh; }

.fol-hero__eyebrow {
	font-size: 12.5px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--fol-apricot);
	margin-bottom: 14px;
}
.fol-hero h1 {
	font-family: var(--fol-font-display);
	font-weight: 400;
	font-size: clamp(36px, 4.6vw, 64px);
	line-height: 1.06;
	color: #fff;
	margin: 0 0 18px;
}
.fol-hero--home h1 { font-size: clamp(38px, 5.4vw, 76px); max-width: 15ch; }
.fol-hero p {
	font-weight: 300;
	line-height: 1.55;
	max-width: 60ch;
	color: rgba(255, 255, 255, .92);
	margin: 0 0 28px;
}
.fol-hero .text-box-content { padding: 0; background: transparent; }
@keyframes folFadeUp {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}
.fol-hero__inner { animation: folFadeUp .8s ease both; }

/* --- En-têtes de section ------------------------------------------------ */
.fol-section__lead { color: var(--fol-text-muted); font-weight: 300; margin: 0 0 36px; }
.fol-section--dark .fol-section__lead { color: var(--fol-beige); }
.fol-section__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 36px;
}
.fol-section__more { font-size: 14px; letter-spacing: .06em; }
.fol-section--dark .fol-section__more { color: var(--fol-apricot); }

/* --- Colonnes Flatsome habillées en carte ------------------------------ */
.fol-card-col > .col-inner {
	background: var(--fol-surface);
	border: var(--fol-border-width) solid var(--fol-border);
	height: 100%;
	transition: box-shadow .25s ease;
}
.fol-card-col > .col-inner:hover { box-shadow: var(--fol-shadow-hover); }
.fol-card-col__body { padding: 24px; }
.fol-card-col__body > p:last-child { margin-bottom: 0; }
.fol-card-col img { display: block; width: 100%; }
.section.dark .fol-card-col > .col-inner {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(255, 255, 255, .12);
}

/* --- Cartes sur fond sombre (communauté) ------------------------------- */
.section.dark .fol-card,
.fol-section--dark .fol-card {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(255, 255, 255, .12);
}
.fol-post__body  { padding: 0 4px 4px; }
.fol-post__likes { color: var(--fol-apricot); }

/* --- Événements --------------------------------------------------------- */
.fol-event__media   { height: 190px; background-size: cover; background-position: center; position: relative; }
.fol-event__date    { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fol-primary); }
.fol-event__places  { font-size: 13.5px; color: var(--fol-olive); }
.fol-event__complet { font-size: 13.5px; color: var(--fol-text-muted); }
.fol-event--home .fol-card__body { padding: 24px; }

/* --- Revendeurs --------------------------------------------------------- */
.fol-dealer__canton { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--fol-primary); }
.fol-dealer__type   { font-size: 13.5px; color: var(--fol-text-muted); }

/* --- Formulaires à étapes : configurateur et rendez-vous --------------- *
   .fol-option n'est pas défini dans le thème enfant : il l'est ici.       */
.fol-steps__label {
	font-size: 12.5px;
	letter-spacing: var(--fol-ls-eyebrow);
	text-transform: uppercase;
	color: var(--fol-apricot);
	margin-bottom: 18px;
}
.fol-section--olive .fol-steps__label,
.section.dark .fol-section--olive .fol-steps__label { color: var(--fol-olive-light); }

.fol-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fol-option {
	display: block;
	width: 100%;
	text-align: left;
	border: var(--fol-border-width) solid rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .04);
	padding: 22px;
	cursor: pointer;
	transition: border-color .2s ease;
}
.fol-option.is-selected { border: 2px solid var(--fol-primary); }
.fol-option__title {
	display: block;
	font-family: var(--fol-font-display);
	font-size: 20px;
	color: #fff;
	margin-bottom: 6px;
}
.fol-option__desc { display: block; color: var(--fol-beige); font-size: 14.5px; line-height: 1.5; }
.fol-option:focus-visible { outline: 2px solid var(--fol-apricot); outline-offset: 2px; }

/* Sur fond olive, la sélection se lit mieux en encre */
.fol-section--olive .fol-option.is-selected { border-color: var(--fol-ink); }

.fol-step[hidden] { display: none; }
.fol-step__back {
	display: inline-block;
	margin-top: 22px;
	font-size: 13.5px;
	color: var(--fol-apricot);
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}
.fol-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 760px; }
.fol-form-grid label { display: block; margin: 0; }
.fol-form-grid .fol-field { width: 100%; }
.fol-error { color: var(--fol-error); font-size: 14px; }
.fol-recap {
	font-family: var(--fol-font-display);
	font-size: clamp(22px, 2.4vw, 30px);
	color: var(--fol-bg);
	margin: 0 0 12px;
}

/* --- Puces de filtre en lien ------------------------------------------- */
a.fol-chip { display: inline-block; }
a.fol-chip:hover { border-color: var(--fol-primary); color: var(--fol-primary); }
a.fol-chip.is-active:hover { color: #fff; }
button.fol-chip[aria-pressed="true"] { background: var(--fol-primary); border-color: var(--fol-primary); color: #fff; }

/* --- Accordéon FAQ (élément natif Flatsome) ---------------------------- */
.fol-faq .accordion-item { border-bottom: var(--fol-border-width) solid var(--fol-border); }
.fol-faq .accordion-title {
	border: none;
	padding: 18px 0;
	font-size: 17px;
	font-family: var(--fol-font-body);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--fol-ink);
}
.fol-faq .accordion-title .toggle { color: var(--fol-primary); font-size: 20px; left: auto; right: 0; }
.fol-faq .accordion-inner { padding: 0 0 18px; color: var(--fol-text-muted); line-height: 1.6; }

/* --- WooCommerce : compléments de carte produit ------------------------ */
.fol-product__cat {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: rgba(34, 28, 20, .82);
	color: var(--fol-apricot);
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	padding: 4px 10px;
}
.fol-product__ref    { font-size: 13px; color: var(--fol-text-muted); margin-bottom: 6px; }
.fol-product__detail { font-size: 13.5px; display: inline-block; margin-bottom: 6px; }
.woocommerce .product-small .button.fol-add,
.fol-add { width: 100%; margin: 12px 0 0; }
.woocommerce .product-small .button.added,
.fol-add.is-added {
	background: transparent !important;
	border: var(--fol-border-width) solid var(--fol-olive-border) !important;
	color: var(--fol-olive) !important;
}
.woocommerce a.added_to_cart { display: none; }

/* --- WooCommerce : fiche produit --------------------------------------- */
.fol-product__provisoire { font-size: 12.5px; color: var(--fol-disabled); margin-top: 8px; }
.fol-specs { list-style: none; margin: 22px 0; padding: 0; }
.fol-specs li { position: relative; padding-left: 22px; margin-bottom: 9px; font-weight: 300; line-height: 1.55; }
.fol-specs li::before { content: '—'; position: absolute; left: 0; color: var(--fol-primary); }

.fol-buybox {
	background: var(--fol-surface);
	border: var(--fol-border-width) solid var(--fol-border);
	padding: 24px;
	margin: 24px 0;
}
.fol-buybox .price .amount { font-size: 24px; }
.fol-buybox__tva { font-size: 13.5px; color: var(--fol-text-muted); margin: 6px 0 18px; }
.fol-buybox .single_add_to_cart_button { width: 100%; }
.fol-mentions { font-size: 13.5px; color: var(--fol-text-muted); line-height: 1.6; margin: 0; padding: 0; }
.fol-mentions li { list-style: none; margin-bottom: 4px; }

.fol-crosssell__media { height: 150px; background-size: cover; background-position: center; display: block; }
.fol-crosssell .fol-card__body { padding: 18px; gap: 6px; }

.fol-content-card__media { height: 170px; background-size: cover; background-position: center; display: block; }
.fol-content-card__meta  { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fol-primary); }

/* --- Tiroir panier ------------------------------------------------------ */
.fol-drawer__tva { font-size: 12.5px; color: var(--fol-text-muted); margin: 8px 0 14px; }

/* --- Déroulé d’une soirée type ----------------------------------------- */
.fol-timeline__ligne {
	display: flex;
	gap: 18px;
	align-items: baseline;
	padding: 14px 0;
	border-bottom: var(--fol-border-width) solid var(--fol-border-light);
}
.fol-timeline__ligne:last-child { border-bottom: none; }
.fol-timeline__heure {
	font-family: var(--fol-font-display);
	font-size: 22px;
	color: var(--fol-primary);
	min-width: 68px;
}

/* --- Prix d’appel « dès CHF … » ---------------------------------------- */
.fol-from-price { font-size: 19px; color: var(--fol-ink); margin: 8px 0 0; }
.fol-section--alt .fol-from-price { color: var(--fol-text-on-alt); }

/* --- États de confirmation ---------------------------------------------- */
.fol-confirm { animation: folFadeUp .5s ease both; }
.fol-confirm__title { font-family: var(--fol-font-display); font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 12px; }
.fol-notice { padding: 22px; border: var(--fol-border-width) solid var(--fol-border); background: var(--fol-surface); }
.section.dark .fol-notice { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }

/* --- Accessibilité ------------------------------------------------------ */
.fol-visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
:where(.fol-btn, .fol-chip):focus-visible { outline: 2px solid var(--fol-primary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.fol-hero__inner, .fol-confirm { animation: none; }
	.fol-card, .fol-card-col > .col-inner { transition: none; }
}

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 900px) {
	.fol-section__head { margin-bottom: 26px; }
	.fol-reassurance__inner { justify-content: flex-start; gap: 8px 24px; }
	.fol-options { grid-template-columns: 1fr; }
}

/* --- Méga-menu Produits en pleine largeur ------------------------------ *
   Le thème enfant fixe le dropdown à 720px, largeur calibrée pour trois
   colonnes. On le fait courir sur toute la largeur de la fenêtre.

   Méthode : le panneau est en position absolue, calé sur le premier ancêtre
   positionné. En rendant statiques le <li> et le <ul> du menu, ce repère
   devient #wide-nav, qui occupe déjà toute la largeur — le panneau n’a plus
   qu’à faire 100 %.

   La position n’est forcée qu’à l’ouverture : au repos, Flatsome cache le
   panneau en l’envoyant à left:-99999px, et écraser `left` sans condition
   le laisserait affiché en permanence. */
#wide-nav ul.nav:has(.fol-megamenu__label),
#wide-nav li.has-dropdown:has(.fol-megamenu__label) {
	position: static !important;
}

#wide-nav li.has-dropdown:hover > .nav-dropdown:has(.fol-megamenu__label),
#wide-nav li.has-dropdown:focus-within > .nav-dropdown:has(.fol-megamenu__label) {
	left: 0 !important;
	right: auto !important;
	width: 100% !important;
	max-width: none !important;
	transform: none !important;
}

/* Le contenu, lui, reste sur le rail du site : 1410px est la largeur du
   conteneur Flatsome (Options du thème → Mise en page). */
#wide-nav .nav-dropdown:has(.fol-megamenu__label) > .row {
	max-width: min(1410px, 100%);
	margin-left: auto;
	margin-right: auto;
}

.nav-dropdown a.fol-megamenu__item { white-space: nowrap; }

/* --- Bandeau de caractéristiques --------------------------------------- *
   Grille auto : accepte 4, 5 ou 6 chiffres sans casser la ligne, là où les
   colonnes Flatsome (grille de 12) obligeraient à tricher. */
.fol-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 28px 20px;
	text-align: center;
}
.fol-stat__valeur {
	font-family: var(--fol-font-display);
	font-size: clamp(26px, 2.4vw, 34px);
	color: #fff;
	line-height: 1.1;
}
.fol-stat__libelle {
	color: var(--fol-beige);
	font-size: 13px;
	margin-top: 4px;
	line-height: 1.4;
}

/* --- Vidéo responsive --------------------------------------------------- */
.fol-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--fol-ink);
	border: var(--fol-border-width) solid var(--fol-border);
}
.fol-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* --- Liste d’usages (puces « — » sur fond clair) ----------------------- */
.fol-usages { list-style: none; margin: 18px 0 0; padding: 0; }
.fol-usages li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 10px;
	color: var(--fol-text-on-alt);
	line-height: 1.55;
}
.fol-usages li::before { content: '—'; position: absolute; left: 0; color: var(--fol-primary); }

/* --- Grille produits contrainte ---------------------------------------- *
   Deux produits sur une section pleine largeur donnaient des cartes de
   620 px de large : on borne la rangée. */
.fol-produits-compact > .row,
.row.fol-produits-compact { max-width: 900px; margin-left: auto; margin-right: auto; }
