/**
 * Chat Group International — Elementor homepage "Institution"
 * Modern premium finance/corporate design. Loaded on the front page.
 * Namespaced .cg-* / .fx-* to avoid collisions with theme main.css + Elementor.
 */

/* ---- Neutralise Elementor section padding so our sections are full-bleed ---- */
.cg-home .elementor-section .elementor-container { max-width: 100% !important; }
.cg-home .elementor-widget-html,
.cg-home .elementor-widget-shortcode { width: 100%; }
.cg-home .elementor-widget-container { margin: 0 !important; }

/* ===================================================== TOKENS */
.cg-home {
	--nv: #0a1830;
	--nv2: #0f2547;
	--nv3: #17345f;
	--grn: #f0a818;
	--grn2: #d68f0e;
	--gold: #f0a818;
	--gold2: #ffcc4d;
	--paper: #f4f7fb;
	--card: #ffffff;
	--ink: #0a1830;
	--muted: #5a6b83;
	--line: rgba(10, 24, 48, 0.10);
	--line-2: rgba(10, 24, 48, 0.06);
	--sky: #48c0f0;
	--up: #48c0f0;
	--down: #f01818;
	--white-72: rgba(255, 255, 255, 0.74);
	--white-52: rgba(255, 255, 255, 0.54);
	--disp: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
	--data: "Space Grotesk", ui-monospace, monospace;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--wrap: 1180px;
}

/* Base typography scope */
.cg-home,
.cg-home p,
.cg-home a,
.cg-home li,
.cg-home span,
.cg-home div {
	font-family: var(--disp);
}
.cg-home h1, .cg-home h2, .cg-home h3, .cg-home h4 {
	font-family: var(--disp);
	letter-spacing: -0.025em;
	line-height: 1.04;
	text-wrap: balance;
	margin: 0;
}
.cg-wrap { width: min(calc(100% - 44px), var(--wrap)); margin-inline: auto; }

.cg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--data);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #9a6a08;
	margin: 0 0 16px;
}
.cg-eyebrow::before {
	content: "";
	width: 22px; height: 2px; border-radius: 2px;
	background: var(--gold);
}
.cg-eyebrow--light { color: var(--gold); }
.cg-eyebrow--light::before { background: var(--gold); }

/* Buttons */
.cg-btn {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 54px; padding: 0 26px;
	border-radius: 999px;
	font-family: var(--disp); font-weight: 700; font-size: 15px;
	border: 1.5px solid transparent;
	transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.cg-btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.cg-btn:hover svg { transform: translateX(4px); }
.cg-btn--grn { background: var(--grn); color: #04231a; box-shadow: 0 14px 30px rgba(240,168,24,.28); }
.cg-btn--grn:hover { background: var(--grn2); color: #fff; transform: translateY(-2px); }
.cg-btn--gold { background: var(--gold); color: #241a05; }
.cg-btn--gold:hover { background: #ffcc4d; transform: translateY(-2px); }
.cg-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.cg-btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.cg-btn--ink { background: var(--nv); color: #fff; }
.cg-btn--ink:hover { background: var(--nv3); transform: translateY(-2px); }

/* Section heading row */
.cg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 44px; }
.cg-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--ink); }
.cg-head p { margin: 12px 0 0; max-width: 460px; color: var(--muted); font-size: 16px; }

/* ===================================================== HERO */
.cg-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: radial-gradient(120% 120% at 80% -10%, var(--nv3), var(--nv) 55%);
	color: #fff;
	padding: clamp(150px, 20vh, 220px) 0 clamp(70px, 8vw, 120px);
}
.cg-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(45% 45% at 88% 12%, rgba(240,168,24,.22), transparent 70%),
		radial-gradient(40% 40% at 10% 90%, rgba(240,168,24,.16), transparent 70%);
	animation: cg-drift 18s ease-in-out infinite alternate;
}
.cg-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image:
		linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent);
}
@keyframes cg-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-3%,2%,0) scale(1.08); } }
.cg-hero__grid {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .78fr);
	gap: clamp(30px, 5vw, 64px); align-items: center;
}
.cg-hero h1 { font-size: clamp(42px, 6vw, 78px); font-weight: 800; }
.cg-hero h1 .cg-hl { color: var(--grn); }
.cg-hero__lede { margin: 24px 0 0; max-width: 540px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--white-72); font-weight: 500; }
.cg-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cg-hero__trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 42px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.cg-hero__trust div { display: grid; gap: 2px; }
.cg-hero__trust strong { font-family: var(--data); font-size: 30px; font-weight: 700; color: #fff; }
.cg-hero__trust span { font-size: 12.5px; letter-spacing: .04em; color: var(--white-52); }

/* Hero glass finance mini-panel */
.cg-hero__panel {
	position: relative;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
	backdrop-filter: blur(18px);
	box-shadow: 0 40px 90px rgba(0,0,0,.42);
	padding: 22px;
	overflow: hidden;
}
.cg-hero__panel::before {
	content: ""; position: absolute; top: -40%; right: -20%; width: 240px; height: 240px;
	background: radial-gradient(circle, rgba(240,168,24,.5), transparent 70%); filter: blur(20px); opacity: .5;
}
.cg-hero__panel h3 { font-family: var(--data); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--white-72); font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.cg-hero__panel h3 i { width: 8px; height: 8px; border-radius: 50%; background: var(--grn); box-shadow: 0 0 0 0 rgba(240,168,24,.7); animation: cg-pulse 1.8s var(--ease) infinite; }
@keyframes cg-pulse { 0%{box-shadow:0 0 0 0 rgba(240,168,24,.55);} 70%{box-shadow:0 0 0 9px rgba(240,168,24,0);} 100%{box-shadow:0 0 0 0 rgba(240,168,24,0);} }

/* ===================================================== FX BOARD (shortcode) */
.fx-board { background: var(--paper); padding: clamp(30px, 5vw, 60px) 0; }
.fx-board--hero { padding: 0; background: transparent; }
.fx-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.fx-rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fx-grid > *, .fx-rates > *, .fx-tile, .fx-conv, .cg-cards > *, .cg-proj-grid > *, .cg-hero__grid > *, .cg-leader__grid > * { min-width: 0; }
.fx-tile {
	position: relative; background: var(--card); border: 1px solid var(--line);
	border-radius: 16px; padding: 20px; overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.fx-tile:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(10,24,48,.12); }
.fx-tile::after { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--grn); }
.fx-tile__pair { display: flex; align-items: center; gap: 8px; font-family: var(--data); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.fx-tile__val { margin: 12px 0 4px; font-family: var(--data); font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.fx-tile__unit { font-size: 14px; color: var(--muted); font-weight: 600; }
.fx-tile__delta { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-family: var(--data); font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.fx-tile__delta--up { color: var(--up); background: rgba(240,168,24,.12); }
.fx-tile__delta--down { color: var(--down); background: rgba(240,24,24,.12); }
.fx-tile__delta--flat { color: var(--muted); background: rgba(10,24,48,.06); }

/* Converter */
.fx-conv {
	background: linear-gradient(180deg, var(--nv2), var(--nv)); color: #fff;
	border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.fx-conv h4 { font-size: 18px; font-weight: 700; }
.fx-conv__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.fx-conv__pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.fx-mini { display: grid; gap: 2px; }
.fx-mini__row { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.10); }
.fx-mini__row:last-child { border-bottom: 0; }
.fx-mini__row > span { font-family: var(--data); font-size: 13px; color: var(--white-72); letter-spacing: .02em; }
.fx-mini__row > b { font-family: var(--data); font-size: 21px; font-weight: 700; color: #fff; text-align: right; }
.fx-mini__row > em { font-style: normal; font-family: var(--data); font-size: 12px; font-weight: 600; }
.fx-mini__row em.up { color: var(--up); } .fx-mini__row em.down { color: var(--down); } .fx-mini__row em.flat { color: var(--white-52); }
.fx-field { display: grid; gap: 6px; min-width: 0; }
.fx-field label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--white-52); }
.fx-conv input, .fx-conv select {
	width: 100%; min-width: 0; box-sizing: border-box;
	height: 48px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16);
	background: rgba(255,255,255,.06); color: #fff; padding: 0 14px;
	font-family: var(--data); font-size: 16px; font-weight: 600; -webkit-appearance: none; appearance: none;
}
.fx-conv select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.fx-conv input:focus, .fx-conv select:focus { outline: 2px solid var(--grn); border-color: transparent; }
.fx-conv__swap { align-self: end; height: 48px; width: 48px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 18px; transition: background .2s var(--ease), transform .3s var(--ease); }
.fx-conv__swap:hover { background: var(--grn); transform: rotate(180deg); }
.fx-conv__out { margin-top: 4px; padding: 16px; border-radius: 12px; background: rgba(240,168,24,.12); border: 1px solid rgba(240,168,24,.3); }
.fx-conv__out span { font-size: 12px; color: var(--white-72); }
.fx-conv__out strong { display: block; margin-top: 4px; font-family: var(--data); font-size: 26px; font-weight: 700; color: #fff; }
.fx-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-family: var(--data); font-size: 12px; color: var(--muted); }
.fx-meta i { color: var(--grn2); font-style: normal; }
.fx-board--hero .fx-tile { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.fx-board--hero .fx-tile__val { color: #fff; }
.fx-board--hero .fx-tile__pair { color: var(--white-72); }
.fx-board--hero .fx-tile__unit { color: var(--white-52); }

/* ===================================================== SECTORS */
.cg-sectors { background: var(--paper); padding: clamp(64px, 8vw, 110px) 0; }
.cg-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cg-card {
	background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px;
	display: flex; flex-direction: column; gap: 12px;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cg-card:hover { transform: translateY(-5px); box-shadow: 0 26px 54px rgba(10,24,48,.13); border-color: transparent; }
.cg-card__ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(240,168,24,.14), rgba(240,168,24,.05)); color: var(--grn2); }
.cg-card__ic svg { width: 24px; height: 24px; }
.cg-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.cg-card p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
.cg-card__code { margin-top: auto; font-family: var(--data); font-size: 12px; letter-spacing: .1em; color: var(--gold); }

/* ===================================================== PROJECTS */
.cg-projects { background: var(--card); padding: clamp(64px, 8vw, 110px) 0; }
.cg-proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cg-proj { position: relative; border-radius: 20px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.cg-proj img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cg-proj::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,24,48,.1) 30%, rgba(10,24,48,.9)); }
.cg-proj:hover img { transform: scale(1.06); }
.cg-proj__body { padding: 28px; display: grid; gap: 10px; }
.cg-proj__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.cg-proj__tags span { font-family: var(--data); font-size: 11px; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
.cg-proj__body h3 { font-size: 26px; font-weight: 800; }
.cg-proj__body p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--white-72); max-width: 46ch; }

/* ===================================================== LEADER */
.cg-leader { background: var(--paper); padding: clamp(64px, 8vw, 120px) 0; }
.cg-leader__grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 64px); align-items: center; }
.cg-leader__portrait { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/4.5; box-shadow: 0 34px 70px rgba(10,24,48,.2); }
.cg-leader__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.cg-leader__portrait::before { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; z-index: 1; background: linear-gradient(90deg, var(--grn), var(--gold)); }
.cg-leader__copy blockquote { margin: 16px 0 0; font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; color: var(--ink); line-height: 1.14; }
.cg-leader__copy > p { margin: 22px 0 0; max-width: 560px; font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.cg-leader__sign { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.cg-leader__sign strong { display: block; font-size: 18px; color: var(--ink); }
.cg-leader__sign span { font-family: var(--data); font-size: 13px; color: var(--muted); }

/* ===================================================== CTA */
.cg-cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(70px, 9vw, 130px) 0; color: #fff; text-align: center; background: radial-gradient(120% 140% at 50% -20%, var(--nv3), var(--nv) 60%); }
.cg-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 60% at 50% 0%, rgba(240,168,24,.22), transparent 70%); }
.cg-cta h2 { font-size: clamp(32px, 5vw, 58px); font-weight: 800; max-width: 16ch; margin-inline: auto; }
.cg-cta p { margin: 18px auto 0; max-width: 52ch; color: var(--white-72); font-size: 17px; }
.cg-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ===================================================== NEWSLETTER (shortcode) */
.cg-news { background: var(--card); padding: clamp(50px, 7vw, 90px) 0; }
.cg-news__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 4vw, 48px); }
.cg-news__box h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--ink); }
.cg-news__box p { margin: 8px 0 0; color: var(--muted); }
.cg-news form { display: flex; gap: 10px; flex-wrap: wrap; }
.cg-news input[type=email] { height: 54px; min-width: 240px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 20px; font-size: 15px; }
.cg-news input[type=email]:focus { outline: 2px solid var(--grn); }
.cg-news .form-notice { flex-basis: 100%; margin: 6px 0 0; color: var(--grn2); font-weight: 600; }

/* ===================================================== REVEAL */
.cg-js .cg-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.cg-js .cg-reveal.in { opacity: 1; transform: none; }

/* ===================================================== RESPONSIVE */
@media (max-width: 1000px) {
	.cg-hero__grid { grid-template-columns: 1fr; }
	.cg-hero__panel { max-width: 460px; }
	.fx-grid { grid-template-columns: 1fr; }
	.cg-cards { grid-template-columns: repeat(2, 1fr); }
	.cg-leader__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.fx-rates { grid-template-columns: 1fr; }
	.cg-cards { grid-template-columns: 1fr; }
	.cg-proj-grid { grid-template-columns: 1fr; }
	.cg-head { flex-direction: column; align-items: flex-start; }
	.cg-news__box { flex-direction: column; align-items: flex-start; }
	.cg-hero__trust strong { font-size: 24px; }
}

/* ===================================================== REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
	.cg-js .cg-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	.cg-hero::before, .cg-hero__panel h3 i { animation: none !important; }
}

/* ===================================================================== */
/* ===============  IMAGE-LED HERO / MOSAIC / CHAT TV  ================== */
/* ===================================================================== */

/* ---- Image hero (overrides the gradient-only hero) ---- */
.cg-hero--image { padding: clamp(184px, 23vh, 240px) 0 clamp(64px, 8vw, 110px); background: var(--nv); }
.cg-hero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.cg-hero__media img {
	width: 100%; height: 100%; object-fit: cover;
	transform: scale(1.1);
	animation: cg-ken 22s ease-in-out infinite alternate;
	will-change: transform;
}
@keyframes cg-ken {
	from { transform: scale(1.1) translate(0, 0); }
	to   { transform: scale(1.18) translate(-2.5%, -1.5%); }
}
.cg-hero__scrim { position: absolute; inset: 0; z-index: -2; }
.cg-hero__scrim::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(102deg, rgba(8,15,30,.96) 30%, rgba(8,15,30,.66) 56%, rgba(8,15,30,.34) 78%, rgba(8,15,30,.55));
}
.cg-hero__scrim::after {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(46% 46% at 82% 24%, rgba(240,168,24,.20), transparent 70%),
		radial-gradient(40% 40% at 8% 96%, rgba(240,168,24,.14), transparent 70%);
}
.cg-hero--image .cg-hero__inner {
	position: relative;
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .82fr);
	gap: clamp(30px, 5vw, 64px); align-items: center;
}
.cg-hero--image h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 800; }

/* Floating Mills portrait + service chips */
.cg-hero__stage { position: relative; min-height: 440px; }
.cg-hero__portrait {
	position: relative; margin: 0 0 0 auto; width: min(360px, 82%);
	border-radius: 22px; overflow: hidden; isolation: isolate;
	border: 1px solid rgba(255,255,255,.18);
	box-shadow: 0 44px 100px rgba(0,0,0,.55);
	animation: cg-float 6.5s ease-in-out infinite;
}
.cg-hero__portrait img { width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover; object-position: center top; }
.cg-hero__portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(8,15,30,.9)); }
.cg-hero__portrait figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: grid; gap: 3px; }
.cg-hero__portrait figcaption span { font-family: var(--data); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); }
.cg-hero__portrait figcaption strong { font-size: 19px; font-weight: 700; line-height: 1.1; color: #fff; }
.cg-hero__chip {
	position: absolute; display: block; border-radius: 16px; overflow: hidden;
	border: 1px solid rgba(255,255,255,.2); box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.cg-hero__chip img { width: 100%; height: 100%; object-fit: cover; }
.cg-hero__chip--1 { width: 150px; aspect-ratio: 4/3; top: 4%; left: -2%; animation: cg-float 8s ease-in-out infinite reverse; }
.cg-hero__chip--2 { width: 124px; aspect-ratio: 1/1; bottom: 2%; left: -6%; animation: cg-float 9s ease-in-out .4s infinite; }
@keyframes cg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* ---- Métiers image mosaic ---- */
.cg-mosaic { background: var(--card); padding: clamp(64px, 8vw, 110px) 0; }
.cg-mosaic__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 14px; grid-auto-flow: dense; }
.cg-tile {
	position: relative; overflow: hidden; border-radius: 18px; isolation: isolate;
	display: flex; align-items: flex-end; color: #fff; min-height: 0;
}
.cg-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cg-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,15,30,.06) 38%, rgba(8,15,30,.86)); transition: background .4s var(--ease); }
.cg-tile:hover img { transform: scale(1.08); }
.cg-tile:hover::after { background: linear-gradient(180deg, rgba(240,168,24,.14) 20%, rgba(8,15,30,.88)); }
.cg-tile__label { position: relative; z-index: 1; padding: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cg-tile__label b { font-size: clamp(15px, 1.4vw, 18px); font-weight: 700; line-height: 1.15; }
.cg-tile__label small { font-family: var(--data); font-size: 11px; letter-spacing: .08em; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 3px 9px; }
.cg-tile--lg { grid-column: span 2; grid-row: span 2; }
.cg-tile--tall { grid-row: span 2; }
.cg-tile--lg .cg-tile__label b { font-size: clamp(20px, 2.4vw, 30px); }

/* ---- Chat TV / YouTube ---- */
.cg-tv { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: clamp(64px, 8vw, 110px) 0; background: radial-gradient(120% 130% at 80% -10%, var(--nv3), var(--nv) 58%); }
.cg-tv__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(46% 60% at 88% 4%, rgba(240,168,24,.18), transparent 60%); }
.cg-tv__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 40px; }
.cg-tv__head h2 { font-size: clamp(28px, 3.8vw, 46px); font-weight: 800; margin: 12px 0 8px; }
.cg-tv__head p { margin: 0; max-width: 520px; color: var(--white-72); font-size: 15px; }
.cg-tv__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.cg-tv__feature { border: 1px solid rgba(255,255,255,.14); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.04); }
.cg-tv__screen { position: relative; aspect-ratio: 16 / 9; }
.cg-tv__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cg-tv__meta { display: flex; align-items: center; gap: 12px; padding: 15px 18px; }
.cg-tv__meta span { font-family: var(--data); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--grn); }
.cg-tv__meta h3 { margin: 0; font-size: 16px; font-weight: 600; }
.cg-tv__list { display: grid; grid-auto-rows: min-content; gap: 12px; align-content: start; max-height: 520px; overflow: auto; padding-right: 4px; }
.cg-tv__card { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.02); transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease); }
.cg-tv__card:hover { border-color: rgba(240,168,24,.5); background: rgba(240,168,24,.07); transform: translateX(4px); color: #fff; }
.cg-tv__thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #000; }
.cg-tv__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cg-tv__thumb::after { content: "\25B6"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #fff; background: rgba(0,0,0,.28); opacity: 0; transition: opacity .25s var(--ease); }
.cg-tv__card:hover .cg-tv__thumb::after { opacity: 1; }
.cg-tv__card span { font-family: var(--data); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--grn); }
.cg-tv__card strong { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; line-height: 1.25; }

/* ---- Responsive (image sections) ---- */
@media (max-width: 1000px) {
	.cg-hero--image .cg-hero__inner { grid-template-columns: 1fr; }
	.cg-hero__stage { min-height: 360px; max-width: 420px; }
	.cg-mosaic__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
	.cg-tile--lg { grid-column: span 2; grid-row: span 1; }
	.cg-tile--tall { grid-row: span 1; }
	.cg-tv__grid { grid-template-columns: 1fr; }
	.cg-tv__list { max-height: none; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.cg-mosaic__grid { grid-template-columns: 1fr; grid-auto-rows: 160px; }
	.cg-tile--lg { grid-column: span 1; }
	.cg-tv__head { flex-direction: column; align-items: flex-start; }
	.cg-tv__list { grid-template-columns: 1fr; }
	.cg-hero__chip--1 { width: 116px; }
	.cg-hero__chip--2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.cg-hero__media img, .cg-hero__portrait, .cg-hero__chip { animation: none !important; transform: none !important; }
}

/* ===================================================================== */
/* =======================  ENQUÊTE SPÉCIALE  ========================== */
/* ===================================================================== */
.cg-btn--red { background: var(--down); color: #fff; box-shadow: 0 14px 30px rgba(240, 24, 24, .28); }
.cg-btn--red:hover { background: #c40f0f; color: #fff; transform: translateY(-2px); }

.cg-enquete {
	position: relative; overflow: hidden; isolation: isolate; color: #fff;
	background: linear-gradient(180deg, #0c0f16, #0a1830);
	padding: clamp(64px, 8vw, 110px) 0;
}
.cg-enquete::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(50% 60% at 12% 0%, rgba(240, 24, 24, .18), transparent 60%);
}
.cg-enquete__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.cg-enquete__media { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.1; box-shadow: 0 34px 80px rgba(0, 0, 0, .5); }
.cg-enquete__media img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.06) saturate(.92); transition: transform .7s var(--ease); }
.cg-enquete:hover .cg-enquete__media img { transform: scale(1.05); }
.cg-enquete__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(240, 24, 24, .16), transparent 55%), linear-gradient(0deg, rgba(8, 12, 22, .5), transparent 40%); }
.cg-enquete__badge {
	position: absolute; top: 16px; left: 16px; z-index: 1;
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--down); color: #fff;
	font-family: var(--data); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	padding: 7px 12px; border-radius: 6px;
}
.cg-enquete__badge i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: cg-pulse-red 1.6s var(--ease) infinite; }
@keyframes cg-pulse-red { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.cg-enquete__eyebrow { color: #ff6a6a; }
.cg-enquete__eyebrow::before { background: var(--down); }
.cg-enquete h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; margin: 14px 0 0; }
.cg-enquete__lede { margin: 20px 0 0; max-width: 520px; color: var(--white-72); font-size: 16.5px; line-height: 1.65; }
.cg-enquete__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 2px; }
.cg-enquete__list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .10); }
.cg-enquete__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .10); }
.cg-enquete__list b { font-family: var(--data); font-size: 13px; color: var(--down); letter-spacing: .06em; }
.cg-enquete__list span { font-size: 15.5px; font-weight: 600; color: #fff; }
.cg-enquete__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
	.cg-enquete__grid { grid-template-columns: 1fr; }
	.cg-enquete__media { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
	.cg-enquete__badge i { animation: none; }
}

/* ===================================================================== */
/* ==============  ENQUÊTE-LED HERO + YOUTUBE BEACON  ================== */
/* ===================================================================== */

/* The investigation headline is long — give it its own scale.
   Needs to out-specify `.cg-hero--image h1`. */
.cg-hero--image h1.cg-hero__title--enq { font-size: clamp(31px, 4.6vw, 60px); line-height: 1.05; }

/* Right-align the portrait so the beacon gets a clear gutter beside it.
   Elementor resets `figure { margin: 0 }` from its own (later) stylesheet, so
   margin-left:auto is unreliable here — drive the alignment from the parent
   with flex instead, which a child margin reset cannot undo. */
.cg-hero--image .cg-hero__stage {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}
.cg-hero--image .cg-hero__portrait { flex: 0 0 auto; }

/* Animated YouTube beacon beside the portrait */
.cg-yt {
	position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	z-index: 3; display: inline-flex; width: 64px; height: 64px;
	text-decoration: none;
}
.cg-yt__btn {
	position: relative; z-index: 1;
	width: 64px; height: 64px; flex: 0 0 64px;
	border-radius: 50%; display: grid; place-items: center;
	background: var(--down); color: #fff;
	box-shadow: 0 18px 44px rgba(240, 24, 24, .45);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cg-yt__btn svg { width: 30px; height: 30px; }
.cg-yt:hover .cg-yt__btn { transform: scale(1.09); box-shadow: 0 22px 54px rgba(240, 24, 24, .6); }
.cg-yt:focus-visible .cg-yt__btn { outline: 3px solid #fff; outline-offset: 3px; }
/* Broadcast pulse rings */
.cg-yt__pulse {
	position: absolute; left: 0; top: 50%; margin-top: -32px;
	width: 64px; height: 64px; border-radius: 50%;
	border: 2px solid rgba(240, 24, 24, .65);
	animation: cg-ping 2.6s cubic-bezier(0, 0, .2, 1) infinite;
	pointer-events: none;
}
.cg-yt__pulse--2 { animation-delay: 1.3s; }
@keyframes cg-ping {
	0%   { transform: scale(1); opacity: .8; }
	80%, 100% { transform: scale(2.15); opacity: 0; }
}
/* Stacked layout: the beacon sits under the portrait */
@media (max-width: 1000px) {
	.cg-hero--image .cg-hero__stage {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
	}
	.cg-yt { position: static; transform: none; margin-top: 20px; }
	.cg-yt__pulse { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.cg-yt__pulse { animation: none; opacity: 0; }
	.cg-yt__btn { transition: none; }
}
