/* ==========================================================================
   Lipstip Showcase Website (LSW) — homepage (EN home-2-2 / FR fr-accueil)
   Ajustements propres aux blocs de la homepage construits par l'agence (classes lpv5-*).
   Marges et largeurs des sections : voir layout.css (.lsw-section).
   ========================================================================== */


/* --------------------------------------------------------------------------
   Hero — Figma node 2370:1806 : 2 colonnes égales, alignées en haut
   Hauteur = contenu (Figma : section 424 = section/padding 64 + 296 + 64).
   Annule la hauteur fixe de l'agence (height: 448px, min-height: 424px) qui laissait
   152 px vides sous le contenu en desktop.
   -------------------------------------------------------------------------- */
html body #page-container .lpv5-hero > .lpv5-hero-row {
	align-items: flex-start !important;
	height: auto !important;
	min-height: 0 !important;
}
html body #page-container .lpv5-hero > .lpv5-hero-row > .et_pb_column {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
/* Bloc texte (h1, paragraphe, bouton) : auto-layout vertical, gap space/s (12) comme Figma.
   Remplace padding-bottom 24 du h1 + margin-top 18 / margin-bottom 30 des modules (agence). */
html body #page-container .lpv5-hero > .lpv5-hero-row > .et_pb_column:has(h1) {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: var(--lsw-space-s) !important;
}
html body #page-container .lpv5-hero > .lpv5-hero-row > .et_pb_column:has(h1) > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
html body #page-container .lpv5-hero > .lpv5-hero-row > .et_pb_column:has(h1) > .et_pb_text {
	width: 100% !important;
}
/* Titre = style de texte Figma « Heading » (56/64 Desktop, 32/42 Mobile).
   « .et_pb_text » : doit l'emporter sur l'agence (52 px sous 980 px, 48 px sous 480 px). */
html body #page-container .lpv5-hero .et_pb_text h1 {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--lsw-interface-typography-font-family-main) !important;
	font-size: var(--lsw-interface-typography-font-size-heading) !important;
	line-height: var(--lsw-interface-typography-line-height-heading) !important;
	font-weight: var(--lsw-interface-typography-font-weight-heading) !important;
}
@media (min-width: 981px) {
	html body #page-container .lpv5-hero > .lpv5-hero-row > .et_pb_column {
		flex: 1 1 0 !important;
		min-width: 0 !important;
		width: auto !important;
	}
	html body #page-container .lpv5-hero .lpv5-stat-shell {
		max-width: 100% !important;
	}
}


/* --------------------------------------------------------------------------
   Customer success stories — carte témoignage, Figma node 2370:1833
   -------------------------------------------------------------------------- */
/* Fond de carte = interface/color/surface/accent (teal/700 depuis la décision D1) */
html body #page-container .lpv5-story-slide,
html body #page-container .lpv5-story-carousel .et_pb_group_carousel_slide > .lpv5-story-slide {
	background: var(--lsw-interface-color-surface-accent) !important;
	background-color: var(--lsw-interface-color-surface-accent) !important;
}
html body #page-container .lpv5-story-slide .et_pb_text_inner > p {
	text-align: justify;
	line-height: var(--lsw-interface-typography-line-height-body) !important;
}
html body #page-container .lpv5-story-copy {
	gap: 0 !important;
	row-gap: 0 !important;
}
html body #page-container .lpv5-story-person {
	gap: var(--lsw-space-s) !important;
	margin-top: var(--lsw-space-2xl) !important;
	transform: none !important;
}
html body #page-container .lpv5-story-person .lpv5-story-avatar {
	margin-right: 0 !important;
	flex: 0 0 75px !important;
}
html body #page-container .lpv5-story-person .et_pb_text_inner > p {
	font-size: var(--lsw-interface-typography-font-size-body) !important;
	line-height: var(--lsw-interface-typography-line-height-body) !important;
	font-weight: var(--lsw-interface-typography-font-weight-body) !important;
	text-align: left;
}
html body #page-container .lpv5-story-person strong {
	display: block;
	font-size: var(--lsw-interface-typography-font-size-sub-title) !important;
	font-weight: var(--lsw-interface-typography-font-weight-sub-title) !important;
	line-height: normal !important;
	text-transform: uppercase !important;
	color: var(--lsw-interface-color-content-on-accent-default) !important;
	margin-bottom: var(--lsw-space-xs);
}
html body #page-container .lpv5-story-person strong + br {
	display: none;
}
html body #page-container .lpv5-story-avatar,
html body #page-container .lpv5-story-avatar .et_pb_image_wrap,
html body #page-container .lpv5-story-avatar img {
	width: 75px !important;
	height: 75px !important;
	max-width: 75px !important;
	border-radius: var(--lsw-border-radius-pill) !important;
	overflow: hidden !important;
	object-fit: cover !important;
}
@media (min-width: 981px) {
	html body #page-container .lpv5-story-carousel .et_pb_group_carousel_slide,
	html body #page-container .lpv5-story-slide {
		height: 464px !important;
		min-height: 464px !important;
		max-height: 464px !important;
	}
	html body #page-container .lpv5-story-slide {
		padding: var(--lsw-section-padding) !important;
	}
}


/* --------------------------------------------------------------------------
   Decide — textes centrés (drapeaux / Coverage / colonnes au-dessus des images)
   -------------------------------------------------------------------------- */
html body #page-container .lpv5-decide-intro,
html body #page-container .lpv5-decide-intro *,
html body #page-container .lpv5-decide-feature-copy,
html body #page-container .lpv5-decide-feature-copy * {
	text-align: center !important;
}

/* --------------------------------------------------------------------------
   Decide — drapeaux et texte « Coverage » sortis de l'ancien module d'intro
   (neutralise les anciennes règles positionnelles :nth-child(2) de l'agence)
   -------------------------------------------------------------------------- */
html body #page-container .lpv5-decide > .et_pb_row .lpv5-header-extras.lpv5-header-extras p.lp-cov {
	font-size: var(--lsw-interface-typography-font-size-label) !important;
	font-weight: var(--lsw-interface-typography-font-weight-body) !important;
	line-height: 1.55 !important;
}
html body #page-container .lpv5-decide .lpv5-header-extras .lp-flags {
	margin-top: 0 !important;
}

/* Compare — pastilles sorties de l'ancien sous-titre : l'espacement vient de section/gap */
html body #page-container .lpv5-compare .lpv5-compare-pills .lp-pills {
	margin-top: 0 !important;
}


/* --------------------------------------------------------------------------
   Manifeste — blocs principes : auto-layout vertical, 16 px entre tag, texte et bouton
   Figma node 2370:1951 ; rangées en hauteur auto, boutons alignés en bas de rangée
   -------------------------------------------------------------------------- */
html body #page-container .lpv5-manifest .lpv5-manifest-grid {
	grid-template-rows: none !important;
	grid-auto-rows: auto !important;
	height: auto !important;
}
html body #page-container .lpv5-manifest .lpv5-manifest-grid > *,
html body #page-container .lpv5-manifest .lpv5-manifest-grid .et_pb_text:has(a.lsw-button-secondary) {
	height: auto !important;
}
html body #page-container .lpv5-manifest .lpv5-manifest-grid .et_pb_text:has(a.lsw-button-secondary) {
	flex: 1 1 auto !important;
}
html body #page-container .lpv5-manifest .et_pb_text_inner:has(> p > a.lsw-button-secondary) {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: var(--lsw-space-m) !important;
	flex: 1 1 auto !important;
}
html body #page-container .lpv5-manifest .et_pb_text_inner:has(> p > a.lsw-button-secondary) > * {
	margin: 0 !important;
	padding: 0 !important;
	flex-shrink: 0 !important;
}
html body #page-container .lpv5-manifest .et_pb_text_inner:has(> p > a.lsw-button-secondary) > h3 {
	line-height: normal !important;
}
html body #page-container .lpv5-manifest .et_pb_text_inner:has(> p > a.lsw-button-secondary) > h3 > span {
	display: inline-block !important;
	line-height: normal !important;
}
html body #page-container .lpv5-manifest .et_pb_text_inner:has(> p > a.lsw-button-secondary) > p:has(> a.lsw-button-secondary) {
	display: flex !important;
	line-height: normal !important;
	position: static !important;
	margin-top: auto !important;
}


/* --------------------------------------------------------------------------
   CTA (lpv5-contact) — Figma desktop 2370:1986 / mobile 2454:1214
   Section et rangée : layout.css (.lsw-section.lsw-section--wide)
   -------------------------------------------------------------------------- */
html body #page-container .lpv5-contact .lpv5-cta-shell {
	box-sizing: border-box !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: var(--lsw-space-2xl) !important;
	gap: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
}
html body #page-container .lpv5-contact .lpv5-cta-card {
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: var(--lsw-space-xl) !important;
	gap: var(--lsw-space-l) !important;
	align-items: center !important;
	justify-content: center !important;
}
html body #page-container .lpv5-contact .lpv5-cta-card > * {
	margin: 0 !important;
	width: auto !important;
	max-width: none !important;
}
html body #page-container .lpv5-contact .lpv5-cta-card h2 {
	margin: 0 !important;
	padding: 0 !important;
	font-size: var(--lsw-interface-typography-font-size-sub-title) !important;
	font-weight: var(--lsw-interface-typography-font-weight-sub-title) !important;
	line-height: normal !important;
	text-align: center !important;
}
html body #page-container .lpv5-contact .lpv5-cta-card > .et_pb_text:last-child p {
	margin: 0 !important;
	padding: 0 !important;
	text-align: center !important;
}
html body #page-container .lpv5-contact .lpv5-cta-card > .et_pb_text:last-child strong {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: var(--lsw-space-l) !important;
}
html body #page-container .lpv5-contact .lpv5-cta-card > .et_pb_text:last-child span {
	line-height: normal !important;
	font-size: var(--lsw-interface-typography-font-size-sub-title) !important;
	font-weight: var(--lsw-interface-typography-font-weight-sub-title) !important;
	white-space: nowrap !important;
}
@media (min-width: 768px) {
	html body #page-container .lpv5-contact .lpv5-cta-card h2 {
		white-space: nowrap !important;
	}
}
@media (max-width: 767px) {
	html body #page-container .lpv5-contact .lpv5-cta-shell {
		padding: var(--lsw-space-2xl) clamp(var(--lsw-space-m), calc(100vw - 354px), var(--lsw-space-2xl)) !important;
	}
	html body #page-container .lpv5-contact .lpv5-cta-card {
		width: 100% !important;
		padding: var(--lsw-space-xl) clamp(16px, calc(100vw - 370px), 32px) !important;
	}
	html body #page-container .lpv5-contact .lpv5-cta-card > .et_pb_text:last-child strong {
		flex-direction: column !important;
		gap: var(--lsw-space-s) !important;
	}
	html body #page-container .lpv5-contact .lpv5-cta-card .lpv5-cta-button {
		white-space: normal !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		text-align: center !important;
		justify-content: center !important;
	}
}


/* --------------------------------------------------------------------------
   Manifeste — retours de Nicolas (18/11) : image retirée, 4 cartes sur une ligne
   Figma : Homepage › section/manifest (Desktop : grille 4 col., gap space/xl ;
   Mobile : pile, gap space/2xl). Entre 768 et 1023 px (non couvert par Figma) : 2 × 2.
   -------------------------------------------------------------------------- */
/* la rangée de l'agence est une grille 2 × 480 px : une seule colonne désormais */
html body #page-container .lpv5-manifest > .et_pb_row:has(.lpv5-manifest-grid) {
	grid-template-columns: minmax(0, 1fr) !important;
}
html body #page-container .lpv5-manifest .et_pb_column:has(> .lpv5-manifest-grid) {
	flex: 1 1 100% !important;
	width: 100% !important;
	max-width: var(--lsw-layout-max-width-section) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
html body #page-container .lpv5-manifest .lpv5-manifest-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	column-gap: var(--lsw-space-xl) !important;
	row-gap: var(--lsw-space-2xl) !important;
	width: 100% !important;
	max-width: none !important;
}
@media (max-width: 1023px) {
	html body #page-container .lpv5-manifest .lpv5-manifest-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
@media (max-width: 767px) {
	html body #page-container .lpv5-manifest .lpv5-manifest-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* Hero — bloc de chiffres : padding vertical 48 → space/2xl (40), décision Figma du 18/11 */
html body #page-container .lpv5-hero .lpv5-stat-shell {
	padding-top: var(--lsw-space-2xl) !important;
	padding-bottom: var(--lsw-space-2xl) !important;
}
