/* ==========================================================================
   Climavi — content pages (Nos services, À propos, FAQ…)
   Elementor containers/widgets carry cv-* classes; colours follow the kit.
   ========================================================================== */

.cv-section {
	--cv-red: var(--e-global-color-primary, #da3b35);
	--cv-ink: #0b1320;
	--cv-dim: #4a5261;
	--cv-line: #e4e7ee;
	--cv-soft: #f4f6f9;
	--cv-head: "Big Shoulders Text", "Big Shoulders Display", Impact, sans-serif;
}

/* ---------- Sections ---------- */
.e-con.cv-section {
	--padding-top: clamp(56px, 8vw, 112px);
	--padding-bottom: clamp(56px, 8vw, 112px);
	--padding-left: clamp(16px, 3vw, 30px);
	--padding-right: clamp(16px, 3vw, 30px);
	--gap: 0px;
	--row-gap: 0px;
}
.e-con.cv-section > .e-con-inner { gap: 0; }
.e-con.cv-section--soft { background: var(--cv-soft); }
.e-con.cv-section--tight { --padding-top: clamp(40px, 5vw, 64px); --padding-bottom: clamp(40px, 5vw, 64px); }
.e-con.cv-section--center > .e-con-inner { align-items: center; text-align: center; }
.e-con.cv-section--center .cv-text { margin-left: auto; margin-right: auto; }

.cv-section--dark,
.e-con.cv-section--cta { color: #f4f7fb; }
.e-con.cv-section--dark { background: #03070d; }
.e-con.cv-section--cta { position: relative; overflow: hidden; }
.e-con.cv-section--cta::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(3, 7, 13, .95) 0%, rgba(3, 7, 13, .8) 45%, rgba(3, 7, 13, .2) 100%);
}
.e-con.cv-section--cta > .e-con-inner { position: relative; }

/* ---------- Type ---------- */
.cv-kicker .elementor-heading-title {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
	color: var(--cv-red); margin-bottom: 16px;
}
.cv-kicker .elementor-heading-title::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.cv-section--center .cv-kicker .elementor-heading-title::after { content: ""; width: 28px; height: 2px; background: currentColor; }

.cv-title .elementor-heading-title {
	font-family: var(--cv-head); font-weight: 900; text-transform: uppercase;
	font-size: clamp(34px, 4.4vw, 64px); line-height: .95; letter-spacing: 0;
	color: var(--cv-ink); margin-bottom: 22px;
}
.cv-section--dark .cv-title .elementor-heading-title,
.cv-section--cta .cv-title .elementor-heading-title { color: #fff; }
.cv-title--sm .elementor-heading-title {
	font-family: var(--cv-head); font-weight: 800; text-transform: uppercase;
	font-size: clamp(22px, 2vw, 28px); line-height: 1.05; color: var(--cv-ink); margin-bottom: 10px;
}

.cv-text { color: var(--cv-dim); font-size: 16px; line-height: 1.75; max-width: 720px; }
.cv-text p { margin: 0 0 1em; }
.cv-text p:last-child { margin-bottom: 0; }
.cv-text--lead { font-size: 18px; }
.cv-text strong { color: var(--cv-ink); }
.cv-section--dark .cv-text,
.cv-section--cta .cv-text { color: rgba(244, 247, 251, .75); }
.cv-text ul.cv-checks { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 10px; }
.cv-text ul.cv-checks li { position: relative; padding-left: 30px; }
.cv-text ul.cv-checks li::before {
	content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 10px;
	border-left: 3px solid var(--cv-red); border-bottom: 3px solid var(--cv-red); transform: rotate(-45deg) scale(.7); transform-origin: left top;
}

/* ---------- Buttons ---------- */
.cv-actions { margin-top: 30px; }
body .elementor-widget.cv-btn .elementor-button {
	border-radius: 999px; padding: 17px 30px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	transition: background-color .3s, color .3s, border-color .3s, transform .3s;
}
body .elementor-widget.cv-btn .elementor-button:hover { transform: translateY(-2px); }
body .elementor-widget.cv-btn--primary .elementor-button { background: var(--cv-red); color: #fff; border: 1px solid var(--cv-red); }
body .elementor-widget.cv-btn--primary .elementor-button:hover { background: #b82e29; border-color: #b82e29; color: #fff; }
body .elementor-widget.cv-btn--ghost .elementor-button { background: transparent; color: var(--cv-ink); border: 1px solid #c9ced8; }
body .elementor-widget.cv-btn--ghost .elementor-button:hover { background: var(--cv-ink); border-color: var(--cv-ink); color: #fff; }
body .cv-section--cta .elementor-widget.cv-btn--ghost .elementor-button,
body .cv-section--dark .elementor-widget.cv-btn--ghost .elementor-button { color: #fff; border-color: rgba(255, 255, 255, .4); }
body .cv-section--cta .elementor-widget.cv-btn--ghost .elementor-button:hover,
body .cv-section--dark .elementor-widget.cv-btn--ghost .elementor-button:hover { background: #fff; color: #03070d; }

/* ---------- Layout ---------- */
.cv-grid { margin-top: clamp(32px, 4vw, 52px); }
.cv-split { margin-top: 0; align-items: center; }
.e-con.cv-col { --gap: 0px; --row-gap: 0px; justify-content: center; }

/* ---------- Images ---------- */
.cv-img img { width: 100%; border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(11, 19, 32, .45); }

/* ---------- Cards ---------- */
.e-con.cv-card,
.cv-feature {
	background: #fff; border: 1px solid var(--cv-line); border-radius: 18px;
	transition: transform .4s cubic-bezier(.19, 1, .22, 1), box-shadow .4s, border-color .4s;
}
.e-con.cv-card { --padding-top: 30px; --padding-bottom: 30px; --padding-left: 28px; --padding-right: 28px; --gap: 0px; --row-gap: 0px; }
.cv-feature { padding: 32px 28px; height: 100%; }
.e-con.cv-card:hover,
.cv-feature:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(11, 19, 32, .35); border-color: #d4d9e3; }
.cv-feature .elementor-icon-box-wrapper { text-align: left; }
.cv-feature .elementor-icon-box-icon { margin-bottom: 22px !important; }
.cv-feature .elementor-icon {
	display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
	background: rgba(218, 59, 53, .09); color: var(--cv-red); font-size: 26px;
}
.cv-feature .elementor-icon i,
.cv-feature .elementor-icon svg { color: var(--cv-red); fill: var(--cv-red); width: 26px; height: 26px; font-size: 26px; }
.cv-feature .elementor-icon-box-title {
	font-family: var(--cv-head); font-weight: 800; text-transform: uppercase; font-size: 23px; line-height: 1.05; color: var(--cv-ink); margin: 0 0 12px;
}
.cv-feature .elementor-icon-box-description { color: var(--cv-dim); font-size: 15px; line-height: 1.7; margin: 0; }
.cv-section--soft .e-con.cv-card,
.cv-section--soft .cv-feature { border-color: transparent; }

/* Steps */
.cv-step-num .elementor-heading-title {
	font-family: var(--cv-head); font-weight: 900; font-size: 64px; line-height: 1; color: transparent;
	-webkit-text-stroke: 1.5px var(--cv-red); margin-bottom: 18px;
}

/* Stats */
.e-con.cv-stat { --padding-top: 28px; --padding-bottom: 28px; --padding-left: 24px; --padding-right: 24px; border-left: 2px solid var(--cv-red); background: rgba(255, 255, 255, .04); }
.cv-stat-value .elementor-heading-title { font-family: var(--cv-head); font-weight: 900; font-size: clamp(48px, 5vw, 72px); line-height: 1; color: #fff; margin-bottom: 8px; }
.cv-stat-label .elementor-heading-title { font-size: 14px; line-height: 1.5; font-weight: 500; color: rgba(244, 247, 251, .7); font-family: inherit; text-transform: none; letter-spacing: 0; }

/* Info box (regulation, notes) */
.e-con.cv-note { --padding-top: 26px; --padding-bottom: 26px; --padding-left: 26px; --padding-right: 26px; margin-top: 26px; border-radius: 16px; background: #fff5f4; border: 1px solid #f6d3d0; }

/* ---------- FAQ ---------- */
.cv-faq-layout { align-items: start; }
.e-con.cv-faq-aside { position: sticky; top: 30px; }
.cv-faq h3 {
	font-family: var(--cv-head); font-weight: 900; text-transform: uppercase; font-size: 26px; color: var(--cv-ink);
	margin: 44px 0 14px; display: flex; align-items: center; gap: 12px;
}
.cv-faq h3:first-child { margin-top: 0; }
.cv-faq h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--cv-red); }
.cv-faq details { border: 1px solid var(--cv-line); border-radius: 14px; background: #fff; margin-bottom: 10px; transition: border-color .3s, box-shadow .3s; }
.cv-faq details[open] { border-color: #d4d9e3; box-shadow: 0 18px 40px -28px rgba(11, 19, 32, .35); }
.cv-faq summary {
	list-style: none; cursor: pointer; position: relative; padding: 20px 60px 20px 22px;
	font-weight: 700; font-size: 16px; line-height: 1.45; color: var(--cv-ink);
}
.cv-faq summary::-webkit-details-marker { display: none; }
.cv-faq summary::after {
	content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
	background: var(--cv-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23da3b35' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform .3s;
}
.cv-faq details[open] summary::after { transform: rotate(45deg); }
.cv-faq summary:focus-visible { outline: 2px solid var(--cv-red); outline-offset: 2px; border-radius: 14px; }
.cv-faq .cv-faq__a { padding: 0 22px 20px; color: var(--cv-dim); font-size: 15px; line-height: 1.75; }
.cv-faq .cv-faq__a p { margin: 0 0 .8em; }
.cv-faq .cv-faq__a p:last-child { margin: 0; }
.cv-faq a,
.cv-text a { color: var(--cv-red); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) {
	.e-con.cv-faq-aside { position: static; }
}
@media (max-width: 767px) {
	.cv-img img { aspect-ratio: 16 / 11; }
	.cv-feature { padding: 26px 22px; }
	.cv-faq summary { padding: 18px 54px 18px 18px; font-size: 15px; }
	.cv-faq .cv-faq__a { padding: 0 18px 18px; }
	body .elementor-widget.cv-btn .elementor-button { padding: 15px 22px; }
}

/* ---------- Legal / info pages (Gutenberg, wrapped in .cv-legal) ---------- */
.cv-legal {
	max-width: 860px; margin: clamp(40px, 6vw, 80px) auto; padding: 0 16px;
	color: #4a5261; font-size: 16px; line-height: 1.8;
}
.cv-legal h2 {
	font-family: "Big Shoulders Text", Impact, sans-serif; font-weight: 900; text-transform: uppercase;
	font-size: clamp(26px, 3vw, 36px); line-height: 1.05; color: #0b1320; margin: 2.2em 0 .7em; scroll-margin-top: 30px;
}
.cv-legal h3 { font-size: 18px; font-weight: 700; color: #0b1320; margin: 1.6em 0 .5em; }
.cv-legal p,
.cv-legal ul,
.cv-legal ol { margin: 0 0 1em; }
.cv-legal li { margin-bottom: .35em; }
.cv-legal a { color: #da3b35; text-decoration: underline; text-underline-offset: 3px; }
.cv-legal strong { color: #0b1320; }
.cv-legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 15px; }
.cv-legal th,
.cv-legal td { border: 1px solid #e4e7ee; padding: 12px 14px; text-align: left; vertical-align: top; }
.cv-legal th { background: #f4f6f9; color: #0b1320; }
.cv-legal .cv-legal-updated { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #8a91a0; }
.cv-legal .cv-legal-toc-title { font-weight: 700; color: #0b1320; margin-bottom: .4em; }
.cv-legal .cv-legal-toc-title + ul,
.cv-legal .cv-legal-toc-title + ol {
	background: #f4f6f9; border-radius: 14px; padding: 20px 20px 20px 42px; columns: 2 280px; column-gap: 32px;
}
.cv-legal .cv-legal-box { background: #f4f6f9; border-left: 3px solid #da3b35; border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 1.2em 0 1.6em; }
.cv-legal .cv-legal-box > :last-child { margin-bottom: 0; }
.cv-legal details { border: 1px solid #e4e7ee; border-radius: 12px; padding: 14px 18px; margin: 1em 0; }
.cv-legal summary { cursor: pointer; font-weight: 700; color: #0b1320; }
.cv-legal mark.cv-placeholder { background: #fff1c2; color: #6b4e00; padding: 0 4px; border-radius: 4px; }
.cv-legal hr,
.cv-legal .wp-block-separator { border: 0; border-top: 1px solid #e4e7ee; margin: 2em 0; }

/* ---------- Product range cards [climavi_categories] ---------- */
.cv-cats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(28px, 4vw, 48px); }
a.cv-cat-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid #e4e7ee; border-radius: 20px; color: #0b1320; text-decoration: none;
	transition: transform .45s cubic-bezier(.19, 1, .22, 1), box-shadow .45s, border-color .45s;
}
a.cv-cat-card:hover { transform: translateY(-6px); border-color: #d4d9e3; box-shadow: 0 30px 60px -34px rgba(11, 19, 32, .45); color: #0b1320; }
.cv-cat-card__media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(180deg, #f4f6f9, #fff); padding: 18px; }
.cv-cat-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.19, 1, .22, 1); }
a.cv-cat-card:hover .cv-cat-card__media img { transform: scale(1.05); }
.cv-cat-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.cv-cat-card__title { font-family: "Big Shoulders Text", Impact, sans-serif; font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: 1; padding-right: 36px; }
.cv-cat-card__desc { font-size: 14px; line-height: 1.55; color: #4a5261; }
.cv-cat-card__meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: #6b7280; }
.cv-cat-card__meta b { color: #da3b35; font-weight: 700; }
.cv-cat-card__arrow {
	position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%;
	display: grid; place-items: center; background: #fff; color: #da3b35; font-size: 18px;
	box-shadow: 0 8px 20px -10px rgba(11, 19, 32, .4); transition: background .3s, color .3s, transform .3s;
}
a.cv-cat-card:hover .cv-cat-card__arrow { background: #da3b35; color: #fff; transform: rotate(-45deg); }
@media (max-width: 1024px) { .cv-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 480px) {
	.cv-cats-grid { gap: 12px; }
	.cv-cat-card__media { padding: 10px; }
	.cv-cat-card__body { padding: 14px 14px 16px; gap: 6px; }
	.cv-cat-card__title { font-size: 20px; padding-right: 0; }
	.cv-cat-card__desc { display: none; }
	.cv-cat-card__meta { flex-direction: column; font-size: 12px; }
	.cv-cat-card__arrow { width: 32px; height: 32px; right: 10px; top: 10px; font-size: 15px; }
}
.cv-cat-card__body { justify-content: flex-start; }
.cv-cat-card__title { min-height: 2em; display: flex; align-items: flex-start; }
.e-con.cv-home-cats { --padding-top: clamp(40px, 6vw, 80px); --padding-bottom: clamp(40px, 6vw, 80px); }
@media (max-width: 480px) { .cv-cat-card__title { min-height: 2em; } }
.cv-cat-card__media { height: auto; overflow: hidden; }
.cv-cat-card__media img { position: static; max-height: 100%; aspect-ratio: auto; }
.cv-cat-card__media > img { width: 100%; height: 100% !important; }
.cv-cat-card__title { min-height: 0; }
@media (max-width: 480px) { .cv-cat-card__title { min-height: 2em; align-items: flex-start; } }

/* QA fix: category card images rendered 1500px tall (WP core `img[sizes=auto]` contain-intrinsic-size
   + unresolvable height:100% in the grid) so the picture sat outside the clipped media box. Pin it to the box. */
.cv-cat-card__media { position: relative; }
.cv-cat-card__media > img {
	position: absolute !important; inset: 18px;
	width: calc(100% - 36px) !important; height: calc(100% - 36px) !important; max-height: none; object-fit: contain;
}
@media (max-width: 480px) {
	.cv-cat-card__media > img { inset: 10px; width: calc(100% - 20px) !important; height: calc(100% - 20px) !important; }
}

/* QA fix: home "Notre mission" heading widget was fixed at 360px while the 120px word "MISSION" needs ~421px,
   so it broke mid-word ("MISSIO / N") on desktop. Let the widget use its column width. */
body .elementor-element.elementor-element-0f3417b { width: 100% !important; max-width: 100% !important; }

/* QA fix: legal tables (privacy/cookies) broke words mid-word on phones ("Destinatair/e", "O2SWITC/H").
   Keep words whole and let the table scroll sideways inside its figure instead. */
@media (max-width: 600px) {
	.cv-legal .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.cv-legal .wp-block-table table { font-size: 13px; line-height: 1.5; table-layout: auto !important; width: auto; min-width: 100%; }
	.cv-legal .wp-block-table th,
	.cv-legal .wp-block-table td { padding: 8px 9px; overflow-wrap: normal !important; word-break: normal !important; }
}

/* Installed prices ("Fourniture et installation comprises", inc/pricing.php): a line under every air-conditioner price */
.price .cv-price-incl {
	display: flex; align-items: center; gap: 5px; margin-top: 4px;
	font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; color: #da3b35; white-space: normal;
}
.price .cv-price-incl::before {
	content: ""; flex: none; width: 13px; height: 13px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* the parent lays the loop price out as a one-line flex row: let the label go under the amount */
.price:has(.cv-price-incl),
li.product .price { flex-wrap: wrap; }
.price .cv-price-incl { flex: 1 0 100%; }
.price:has(.cv-price-incl) .amount { white-space: nowrap; }
.single-product .summary .price .cv-price-incl {
	display: inline-flex; margin: 10px 0 0; padding: 7px 14px 7px 11px; border-radius: 999px;
	font-size: 14px; background: rgba(218, 59, 53, .08); border: 1px solid rgba(218, 59, 53, .25);
}
.single-product .summary p.price { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; }
.single-product .summary p.price .cv-price-incl { flex: 0 0 auto; }

/* Thank-you page: next step after an order with installation (inc/pricing.php) */
.cv-next-step { margin: 0 0 28px; padding: 18px 22px; border-radius: 14px; border: 1px solid rgba(218, 59, 53, .25); background: rgba(218, 59, 53, .06); }
.cv-next-step p { margin: 0; }
.cv-next-step .cv-next-step__title { margin-bottom: 4px; font-weight: 700; color: #03070d; }
/* Cart / checkout / order tables: the parent sets `table td { word-break: break-all }`, which cut product names,
   the shipping text and "TVA" in the middle of words. Wrap between words, and only split a word that cannot fit. */
.woocommerce table.shop_table td,
.woocommerce table.shop_table th,
.cart_totals table td,
.cart_totals table th,
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
	word-break: normal;
	overflow-wrap: break-word;
}
/* "(dont 735,09 € TVA)" under the total: a quiet note, not the size of the total itself */
.cart_totals .order-total .includes_tax,
.woocommerce-checkout-review-order-table .order-total .includes_tax {
	display: block; margin-top: 4px;
	font-size: 13px !important; font-weight: 400; line-height: 1.4; color: #6b7280;
}
.cart_totals .order-total .includes_tax .amount,
.woocommerce-checkout-review-order-table .order-total .includes_tax .amount { font-size: inherit !important; font-weight: 600; color: inherit; }
/* "Valider la commande": the parent template prints a <br> before the label, which pushed it to the bottom */
.wc-proceed-to-checkout a.checkout-button br { display: none; }
.wc-proceed-to-checkout a.checkout-button {
	display: flex; align-items: center; justify-content: center;
	min-height: 58px; padding: 12px 30px; font-size: 14px; line-height: 1.3; letter-spacing: .04em;
}
/* "TTC" after the price (inc/pricing.php), on the same line as the amount */
.price .cv-price-ttc { margin-left: 4px; font-size: .55em; font-weight: 600; letter-spacing: .02em; color: inherit; opacity: .75; }
/* Shop cards: the price block sits next to the 40px cart button; let it shrink so the label wraps instead of going under the button */
li.product .product-caption-bottom .price:has(.cv-price-incl) { flex: 1 1 0; min-width: 0; margin-right: 8px; }
li.product .product-caption-bottom .price .cv-price-incl { min-width: 0; max-width: 100%; }