/*
  Theme Name: Theme enfant de hello-elementor
  Description: Thème enfant du thème hello-elementor par New Slang. Ce thème est désormais modifiable ! Enjoy :)
  Author: New Slang
  Author URI: https://newslang.ch
  Template: hello-elementor
  Version: 1.0
*/
/* Espacement après les listes — toutes les pages (hors BetterDocs géré via functions.php) */
.entry-content ul + p,
.entry-content ol + p,
.entry-content ul + h2,
.entry-content ol + h2,
.entry-content ul + h3,
.entry-content ol + h3,
.entry-content ul + h4,
.entry-content ol + h4,
.entry-content ul + ul,
.entry-content ol + ol,
.elementor-widget-theme-post-content ul + p,
.elementor-widget-theme-post-content ol + p,
.elementor-widget-theme-post-content ul + h2,
.elementor-widget-theme-post-content ol + h2,
.elementor-widget-theme-post-content ul + h3,
.elementor-widget-theme-post-content ol + h3,
.elementor-widget-theme-post-content ul + h4,
.elementor-widget-theme-post-content ol + h4,
.elementor-widget-theme-post-content ul + ul,
.elementor-widget-theme-post-content ol + ol,
.elementor-widget-text-editor ul + p,
.elementor-widget-text-editor ol + p,
.elementor-widget-text-editor ul + h2,
.elementor-widget-text-editor ol + h2,
.elementor-widget-text-editor ul + h3,
.elementor-widget-text-editor ol + h3,
.elementor-widget-text-editor ul + ul,
.elementor-widget-text-editor ol + ol {
    margin-top: 1.5em !important;
}
.entry-content li,
.elementor-widget-theme-post-content li,
.elementor-widget-text-editor li {
    margin-bottom: 0.3em;
}
/* Pas d espace supplementaire sur les sous-listes */
.entry-content li > ul,
.entry-content li > ol,
.elementor-widget-theme-post-content li > ul,
.elementor-widget-theme-post-content li > ol,
.elementor-widget-text-editor li > ul,
.elementor-widget-text-editor li > ol {
    margin-top: 0.3em;
    margin-bottom: 0 !important;
}

/* Options produit (Advanced Product Fields) — espacement entre les radio */
.wapf-checkable {
    margin-bottom: 0.8em;
}
/* Mobile : aligner les options a gauche */
@media (max-width: 767px) {
    .wapf-field-input {
        text-align: left !important;
    }
    .wapf-checkable {
        justify-content: flex-start !important;
    }
}

/* Masquer la date 'Mise à jour' sur les widgets BetterDocs Category Box (layout-4) */
.betterdocs-last-update {
    display: none !important;
}

/* ============================================================
   Encarts articles (shortcodes caya_template / caya_freebie /
   caya_quiz / caya_boutique) - design validé 2026-07-08
   Spécificité : .caya-encart a.caya-encart__btn (0,2,1) pour battre
   le link_normal du kit Elementor (.elementor-kit-8 a).
   ============================================================ */

.caya-encart {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 36px auto;
	border: 1px solid #e2dccb;
	background: #fff;
}
.caya-encart :where(p) {
	margin: 0;
}
.caya-encart__contenu {
	flex: 1;
	padding: 22px 22px 22px 0;
}
.caya-encart__label {
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #37402A;
	font-weight: 400;
}
.caya-encart__label--freebie {
	color: #8a7a4e;
}
.caya-encart__titre {
	font-family: 'Anton', sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 26px;
	line-height: 1.2;
	color: #000;
	margin: 6px 0 8px;
}
.caya-encart__titre--petit {
	font-size: 19px;
}
.caya-encart__titre--boutique {
	font-size: 24px;
	margin: 0 0 10px;
}
.caya-encart__accroche {
	font-size: 16px;
	color: #333;
	line-height: 1.6;
	margin: 0 0 16px;
}
.caya-encart a.caya-encart__btn {
	display: inline-block;
	background: #37402A;
	color: #fff;
	padding: 11px 24px;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
}
.caya-encart a.caya-encart__btn:hover {
	background: #000;
	color: #fff;
}
.caya-encart a.caya-encart__btn--ghost {
	background: transparent;
	color: #37402A;
	border: 1px solid #37402A;
}
.caya-encart a.caya-encart__btn--ghost:hover {
	background: #37402A;
	color: #fff;
}
.caya-encart a.caya-encart__lien-demo {
	font-size: 13px;
	color: #37402A;
	text-decoration: underline;
	margin-left: 12px;
}

/* Encart template : image entière, marge intérieure, bordure sur l'image */
.caya-encart-template__visuel {
	width: 36%;
	flex-shrink: 0;
	padding: 18px;
	box-sizing: border-box;
}
.caya-encart .caya-encart-template__visuel img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid #e2dccb;
}

/* Encarts freebie et quiz : image pleine hauteur à gauche */
.caya-encart img.caya-encart__img {
	width: 30%;
	flex-shrink: 0;
	align-self: stretch;
	object-fit: cover;
	object-position: top;
	height: auto;
	min-height: 150px;
}
.caya-encart img.caya-encart__img--quiz {
	width: 26%;
	min-height: 135px;
}
.caya-encart--freebie {
	background: #F4EFE4;
}

/* CTA boutique : bloc centré sans image */
.caya-encart--boutique {
	display: block;
	text-align: center;
	background: #F4EFE4;
	padding: 34px;
}

/* Mobile : tout passe en colonne, image au-dessus */
@media (max-width: 767px) {
	.caya-encart {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.caya-encart__contenu {
		padding: 20px;
	}
	.caya-encart-template__visuel {
		width: 100%;
		padding: 18px 18px 0;
	}
	.caya-encart img.caya-encart__img,
	.caya-encart img.caya-encart__img--quiz {
		width: 100%;
		height: auto;
		min-height: 0;
		align-self: auto;
	}
	.caya-encart--boutique {
		padding: 24px 18px;
	}
}

/* ============================================================
   Tableaux articles (.caya-tableau) - charte 2026-07-09
   Wrapper .caya-tableau-wrap = scroll horizontal sur mobile.
   ============================================================ */

.caya-tableau-wrap {
	overflow-x: auto;
	margin: 28px 0;
}
.caya-tableau {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.5;
	background: #fff;
}
.caya-tableau th {
	background: #37402A;
	color: #fff;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: left;
	padding: 12px 16px;
}
.caya-tableau td {
	border: 1px solid #e2dccb;
	padding: 12px 16px;
	vertical-align: top;
}
.caya-tableau tbody tr:nth-child(even) {
	background: #F4EFE4;
}
.caya-tableau td:first-child {
	font-weight: 400;
	white-space: nowrap;
}
@media (max-width: 767px) {
	.caya-tableau {
		font-size: 14px;
	}
	.caya-tableau th,
	.caya-tableau td {
		padding: 9px 10px;
	}
}
