/*
 * COMPAK design system (phase 2) — module "global". PHASE 3: kept only for the ck-* component classes
 * that modules still use while they move to the tecpap layout; retired by `global` once unused.
 * Nothing here styles the site globally any more (base type, buttons, fields, focus: global-10-tecpap.css).
 * Tokens + base typography + shared components. Class names and variables are a CONTRACT used by every
 * module (see DEV.md "Design system"). Do not rename.
 *
 * Elementor note: Elementor writes its own per-element rules as
 * ".elementor-N .elementor-element.elementor-element-ID" (3 classes). Layout classes below therefore also
 * have a doubled-class form ".e-con.e-con.ck-x" / ".elementor-widget.elementor-widget.ck-x" (4 classes) so
 * they win when the class is set on an Elementor container or widget, whatever order the CSS loads in.
 */

/* ========================================================================== Tokens */
:root {
	--ck-green: #00752f;
	--ck-green-600: #005a24;
	--ck-deep: #06301a;
	--ck-deep-2: #0b3d22;
	--ck-mint: #cfe8d6;
	--ck-mint-50: #eef6f0;
	--ck-tint: #f6f9f6;
	--ck-kraft: #c9a77a;
	--ck-ink: #0e1a13;
	--ck-body: #3d4a42;
	--ck-muted: #5b6a61;
	--ck-line: #dfe7e1;
	--ck-white: #fff;
	--ck-font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ck-radius-card: 20px;
	--ck-radius-img: 24px;
	--ck-radius-field: 12px;
	--ck-radius-pill: 999px;
	--ck-container: 1200px;
	--ck-gutter: 24px;
	--ck-section: 96px;
	--ck-shadow: 0 10px 30px rgba(6, 48, 26, 0.08);
	/* Arrow marker used by .ck-link and .ck-card--media: kraft ring + ink arrow. */
	--ck-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='12' viewBox='0 0 30 12'%3E%3Ccircle cx='5' cy='6' r='3.6' fill='none' stroke='%23c9a77a' stroke-width='1.6'/%3E%3Cpath d='M13 6h15M23.5 1.5 28 6l-4.5 4.5' fill='none' stroke='%230e1a13' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--ck-arrow-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='12' viewBox='0 0 30 12'%3E%3Ccircle cx='5' cy='6' r='3.6' fill='none' stroke='%23c9a77a' stroke-width='1.6'/%3E%3Cpath d='M13 6h15M23.5 1.5 28 6l-4.5 4.5' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (max-width: 1024px) {
	:root { --ck-section: 72px; }
}
@media (max-width: 767px) {
	:root { --ck-section: 56px; --ck-gutter: 16px; }
}

/* (Phase 3: site-wide base typography, link colours and sentence case moved out; see global-10-tecpap.css.)
 * Phase 2 type helpers kept for modules still using them. */
.ck-display { font-size: 56px; line-height: 1.15; font-weight: 600; }
.ck-lead { font-size: 18px; line-height: 1.6; }
.ck-small { font-size: 14px; line-height: 1.5; }
.ck-eyebrow { display: inline-block; margin: 0 0 12px; color: var(--ck-green); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* ========================================================================== Layout */
.ck-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--ck-container) + 2 * var(--ck-gutter));
	margin-inline: auto;
	padding-inline: var(--ck-gutter);
}
/* On an Elementor container: boxed → the inner box is the 1200px column; full width → the container itself. */
.e-con.e-con.ck-container {
	--content-width: var(--ck-container);
	--container-max-width: var(--ck-container);
	--padding-left: var(--ck-gutter);
	--padding-right: var(--ck-gutter);
	max-width: calc(var(--ck-container) + 2 * var(--ck-gutter));
	margin-inline: auto;
	padding-inline: var(--ck-gutter);
}
.e-con.e-con.ck-container > .e-con-inner { max-width: var(--ck-container); padding-inline: 0; }

.ck-section,
.e-con.e-con.ck-section {
	--padding-top: var(--ck-section);
	--padding-bottom: var(--ck-section);
	padding-top: var(--ck-section);
	padding-bottom: var(--ck-section);
}
.ck-section--tint, .e-con.e-con.ck-section--tint { background-color: var(--ck-tint); }
.ck-section--mint, .e-con.e-con.ck-section--mint { background-color: var(--ck-mint-50); }
.ck-section--deep, .e-con.e-con.ck-section--deep { background-color: var(--ck-deep); color: rgba(255, 255, 255, 0.86); }
.ck-section--deep :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title),
.e-con.e-con.ck-section--deep :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title) { color: var(--ck-white); }
.ck-section--deep :is(p, li, .elementor-widget-text-editor) { color: rgba(255, 255, 255, 0.86); }

/* Section header: h2 left, optional .ck-link right. */
.ck-head,
.e-con.e-con.ck-head,
.e-con.e-con.ck-head > .e-con-inner {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}
.ck-head { margin-bottom: 40px; }
.e-con.e-con.ck-head { --margin-bottom: 40px; margin-bottom: 40px; }
.ck-head :is(h2, .elementor-heading-title) { margin: 0; }
.ck-head > *, .e-con.ck-head > .e-con-inner > * { width: auto; --width: auto; max-width: 100%; flex: 0 1 auto; }

/* Split: two columns, stacks ≤1024. */
.ck-split,
.e-con.e-con.ck-split.e-con-full,
.e-con.e-con.ck-split > .e-con-inner {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 64px;
	align-items: center;
}
.ck-split > *,
.e-con.ck-split.e-con-full > *,
.e-con.ck-split > .e-con-inner > * { --width: auto; width: auto !important; max-width: none; min-width: 0; margin: 0; }
.ck-split img, .ck-media-round img, img.ck-media-round { border-radius: var(--ck-radius-img); }
@media (max-width: 1024px) {
	.ck-split,
	.e-con.e-con.ck-split.e-con-full,
	.e-con.e-con.ck-split > .e-con-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ========================================================================== Buttons */
/* On an Elementor Button widget the class sits on the wrapper <div>: the pill goes on the inner
 * .elementor-button only (:not(.elementor-widget) keeps the wrapper plain). */
.ck-btn:not(.elementor-widget),
a.ck-btn,
.elementor-widget.elementor-widget.ck-btn .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	min-height: 48px;
	padding: 14px 28px;
	border: 1px solid var(--ck-green);
	border-radius: var(--ck-radius-pill);
	background: var(--ck-green);
	color: var(--ck-white);
	font-family: var(--ck-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ck-btn:not(.elementor-widget):hover,
a.ck-btn:hover,
.elementor-widget.elementor-widget.ck-btn .elementor-button:hover {
	background: var(--ck-green-600);
	border-color: var(--ck-green-600);
	color: var(--ck-white);
}
.ck-btn--outline:not(.elementor-widget),
a.ck-btn--outline,
.elementor-widget.elementor-widget.ck-btn--outline .elementor-button {
	background: transparent;
	border-color: var(--ck-green);
	color: var(--ck-ink);
}
.ck-btn--outline:not(.elementor-widget):hover,
a.ck-btn--outline:hover,
.elementor-widget.elementor-widget.ck-btn--outline .elementor-button:hover {
	background: var(--ck-green);
	border-color: var(--ck-green);
	color: var(--ck-white);
}
.ck-btn--light:not(.elementor-widget),
a.ck-btn--light,
.elementor-widget.elementor-widget.ck-btn--light .elementor-button {
	background: transparent;
	border-color: var(--ck-white);
	color: var(--ck-white);
}
.ck-btn--light:not(.elementor-widget):hover,
a.ck-btn--light:hover,
.elementor-widget.elementor-widget.ck-btn--light .elementor-button:hover {
	background: var(--ck-white);
	border-color: var(--ck-white);
	color: var(--ck-deep);
}
.ck-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-left: -14px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	flex: none;
}
.ck-btn--outline .ck-btn__icon { background: var(--ck-mint-50); color: var(--ck-green); }
.ck-btn__icon svg { width: 16px; height: 16px; }
.ck-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ========================================================================== Arrow link  "Voir tout ○→" */
.ck-link:not(.elementor-widget),
a.ck-link,
.elementor-widget.elementor-widget.ck-link a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ck-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.ck-link:not(.elementor-widget)::after,
.elementor-widget.elementor-widget.ck-link a::after {
	content: "";
	flex: none;
	width: 30px;
	height: 12px;
	background: var(--ck-arrow) no-repeat center / contain;
	transition: transform 0.2s ease;
}
.ck-link:not(.elementor-widget):hover,
.elementor-widget.elementor-widget.ck-link a:hover { color: var(--ck-green); }
.ck-link:not(.elementor-widget):hover::after,
.elementor-widget.elementor-widget.ck-link a:hover::after { transform: translateX(4px); }
.ck-link--light:not(.elementor-widget),
a.ck-link--light,
.ck-section--deep .ck-link:not(.elementor-widget),
.ck-section--deep .elementor-widget.elementor-widget.ck-link a,
.elementor-widget.elementor-widget.ck-link--light a { color: var(--ck-white); }
.ck-link--light:not(.elementor-widget)::after,
.ck-section--deep .ck-link:not(.elementor-widget)::after,
.ck-section--deep .elementor-widget.elementor-widget.ck-link a::after,
.elementor-widget.elementor-widget.ck-link--light a::after { background-image: var(--ck-arrow-light); }

/* ========================================================================== Cards */
.ck-card,
.e-con.e-con.ck-card,
.elementor-widget.elementor-widget.ck-card {
	position: relative;
	box-sizing: border-box;
	padding: 24px;
	border: 1px solid var(--ck-line);
	border-radius: var(--ck-radius-card);
	background: var(--ck-white);
	color: var(--ck-body);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.e-con.e-con.ck-card { --padding-top: 24px; --padding-right: 24px; --padding-bottom: 24px; --padding-left: 24px; --border-radius: var(--ck-radius-card); }
.ck-card:hover,
.e-con.e-con.ck-card:hover,
.elementor-widget.elementor-widget.ck-card:hover { box-shadow: var(--ck-shadow); transform: translateY(-2px); }
/* Card title: h3/h4 or the title classes only — a real section h2 placed in a card keeps its size. */
.ck-card :is(h3, h4, .ck-card__title, .elementor-icon-box-title, .elementor-image-box-title) {
	margin: 0 0 8px;
	color: var(--ck-ink);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
}
.ck-card p:last-child { margin-bottom: 0; }
.ck-section--deep .ck-card,
.ck-card--dark,
.ck-section--deep .e-con.e-con.ck-card,
.ck-section--deep .elementor-widget.elementor-widget.ck-card,
.e-con.e-con.ck-card--dark,
.elementor-widget.elementor-widget.ck-card--dark {
	border-color: rgba(255, 255, 255, 0.12);
	background: var(--ck-deep-2);
	color: rgba(255, 255, 255, 0.86);
}
.ck-section--deep .ck-card :is(h3, .ck-card__title, .elementor-heading-title, .elementor-icon-box-title, .elementor-icon-box-title a),
.ck-card--dark :is(h3, .ck-card__title, .elementor-heading-title, .elementor-icon-box-title, .elementor-icon-box-title a) { color: var(--ck-white); }
.ck-section--deep .ck-card :is(p, .elementor-icon-box-description, .elementor-widget-text-editor),
.ck-card--dark :is(p, .elementor-icon-box-description, .elementor-widget-text-editor) { color: rgba(255, 255, 255, 0.86); }

/* Media card: image on top, title bottom-left, arrow marker bottom-right (categories, products). */
.ck-card--media,
.e-con.e-con.ck-card--media,
.elementor-widget.elementor-widget.ck-card--media {
	display: flex;
	flex-direction: column;
	padding: 0;
	--padding-top: 0;
	--padding-right: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	overflow: hidden;
	text-decoration: none;
}
a.ck-card--media { color: var(--ck-ink); }
.ck-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--ck-tint);
	overflow: hidden;
}
.ck-card--media img,
.ck-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--ck-tint);
	border-radius: var(--ck-radius-card) var(--ck-radius-card) 0 0;
	transition: transform 0.4s ease;
}
.ck-card__media img { border-radius: 0; }
.ck-card--media:hover img { transform: scale(1.03); }
.ck-card__body,
.ck-card--media > :last-child:not(.ck-card__media):not(img) {
	display: block;
	padding: 18px 64px 20px 24px;
}
.ck-card--media :is(.ck-card__title, h3, .elementor-heading-title, .elementor-image-box-title) {
	margin: 0;
	color: var(--ck-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}
.ck-card--media::after {
	content: "";
	position: absolute;
	right: 22px;
	bottom: 24px;
	width: 30px;
	height: 12px;
	background: var(--ck-arrow) no-repeat center / contain;
	transition: transform 0.2s ease;
	pointer-events: none;
}
.ck-card--media:hover::after { transform: translateX(4px); }

/* Grids of cards.
 * Column counts are variables with ZERO-specificity defaults (:where), so any page rule — whatever its
 * selector — can change them:  --ck-cols (all sizes) or per size --ck-cols-lg (>1024), --ck-cols-md
 * (561–1024), --ck-cols-sm (≤560). Modifiers: .ck-grid--3, .ck-grid--2, .ck-grid--keep (2 per row on phones).
 */
:where(.ck-grid) { --ck-cols: var(--ck-cols-lg, 4); }
:where(.ck-grid--3) { --ck-cols-lg: 3; }
:where(.ck-grid--2) { --ck-cols-lg: 2; }
:where(.ck-grid--keep) { --ck-cols-sm: 2; }
@media (max-width: 1024px) { :where(.ck-grid) { --ck-cols: var(--ck-cols-md, 2); } }
@media (max-width: 560px) { :where(.ck-grid) { --ck-cols: var(--ck-cols-sm, 1); } }
.ck-grid,
.e-con.e-con.ck-grid.e-con-full,
.e-con.e-con.ck-grid > .e-con-inner {
	display: grid !important;
	grid-template-columns: repeat(var(--ck-cols, 4), minmax(0, 1fr));
	gap: 24px;
}
.ck-grid > *, .e-con.ck-grid.e-con-full > *, .e-con.ck-grid > .e-con-inner > * { --width: auto; width: auto !important; max-width: none; min-width: 0; margin: 0; }

/* ========================================================================== Icon grid (sectors) */
.ck-icongrid,
.e-con.e-con.ck-icongrid.e-con-full,
.e-con.e-con.ck-icongrid > .e-con-inner {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 0;
	border-top: 1px solid var(--ck-line);
	border-left: 1px solid var(--ck-line);
}
.ck-icongrid > *,
.e-con.ck-icongrid.e-con-full > *,
.e-con.ck-icongrid > .e-con-inner > * {
	--width: auto;
	width: auto !important;
	max-width: none;
	min-width: 0;
	margin: 0 !important;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	padding: 32px 16px;
	border-right: 1px solid var(--ck-line);
	border-bottom: 1px solid var(--ck-line);
	color: var(--ck-body);
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}
.ck-icongrid :is(svg, i, .elementor-icon) { color: var(--ck-green); fill: currentColor; font-size: 40px; width: 40px; height: 40px; }
.ck-icongrid .elementor-icon { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; }
.ck-icongrid :is(.elementor-icon-box-title, .ck-icongrid__label) { margin: 0; font-size: 14px; font-weight: 500; color: var(--ck-body); }
@media (max-width: 767px) {
	.ck-icongrid, .e-con.e-con.ck-icongrid.e-con-full, .e-con.e-con.ck-icongrid > .e-con-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ck-icongrid > *, .e-con.ck-icongrid > .e-con-inner > * { padding: 22px 6px; font-size: 13px; }
}
@media (max-width: 400px) {
	.ck-icongrid, .e-con.e-con.ck-icongrid.e-con-full, .e-con.e-con.ck-icongrid > .e-con-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========================================================================== Stepped tiles (hero quick links)
 * <div class="ck-tiles">
 *   <a class="ck-tile" href="…"><span class="ck-tile__label">Sacs en papier</span><span class="ck-tile__chip" aria-hidden="true"></span></a> ×3
 * </div>
 * Tile 1 mint and tall, tile 2 green, tile 3 mint; the arrow chip sits on the top-right corner.
 */
.ck-tiles {
	display: flex;
	align-items: flex-end;
	gap: 0;
}
.ck-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-sizing: border-box;
	width: 200px;
	min-height: 150px;
	padding: 24px;
	background: var(--ck-mint);
	color: var(--ck-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.ck-tiles .ck-tile { color: var(--ck-ink); }
.ck-tile:first-child { min-height: 210px; border-radius: var(--ck-radius-card) 0 0 0; }
.ck-tile:nth-child(2n), .ck-tiles .ck-tile:nth-child(2n) { background: var(--ck-green); color: var(--ck-white); }
.ck-tile:last-child { border-radius: 0 var(--ck-radius-card) 0 0; }
.ck-tile:hover, .ck-tiles .ck-tile:hover { background: var(--ck-white); color: var(--ck-ink); }
.ck-tile__sub { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; opacity: 0.85; }
.ck-tile__chip {
	position: absolute;
	top: -60px;
	right: 0;
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 14px 14px 14px 0;
	background: var(--ck-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2306301a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") no-repeat center / 24px;
	background-clip: padding-box;
	box-sizing: border-box;
}
.ck-tile:nth-child(2n) .ck-tile__chip {
	background-color: var(--ck-green);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
}
@media (max-width: 767px) {
	.ck-tiles { width: 100%; }
	.ck-tile { flex: 1 1 0; width: auto; min-height: 120px; padding: 16px 12px; font-size: 14px; }
	.ck-tile:first-child { min-height: 150px; }
	.ck-tile__chip { width: 44px; height: 44px; top: -44px; background-size: 18px; }
}

/* ========================================================================== Form fields
 * Plain HTML: <label class="ck-field"><span class="ck-field__label">Nom *</span><input type="text"></label>
 * (label sits on the top border). CF7 and WooCommerce fields get the same box automatically.
 */
.ck-field { position: relative; display: block; margin: 0 0 20px; }
.ck-field__label {
	position: absolute;
	top: -9px;
	left: 12px;
	z-index: 1;
	padding: 0 6px;
	background: linear-gradient(to bottom, transparent 50%, var(--ck-white) 50%);
	color: var(--ck-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
}
.ck-input,
.ck-field :is(input, select, textarea) {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--ck-line);
	border-radius: var(--ck-radius-field);
	background: var(--ck-white);
	color: var(--ck-ink);
	font-family: var(--ck-font);
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.ck-input,
.ck-field textarea {
	height: auto;
	min-height: 140px;
	padding-top: 14px;
	padding-bottom: 14px;
	resize: vertical;
}
.ck-input::placeholder,
.ck-field :is(input, textarea)::placeholder { color: var(--ck-muted); opacity: 1; }
.ck-input:focus,
.ck-field :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--ck-green);
	box-shadow: 0 0 0 2px var(--ck-green);
}
.ck-label { color: var(--ck-ink); font-size: 13px; font-weight: 600; }

/* ========================================================================== Images */
.ck-img-round img, img.ck-img-round { border-radius: var(--ck-radius-img); }

/* (Keyboard focus rings: global-10-tecpap.css.) */
