/* G2 Theme — primitives partagées (base, section, highlight, eyebrow, reveal, marquee). */

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--g2-paper);
	color: var(--g2-ink-soft);
	font-family: "Hanken Grotesk", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }

/* Conteneur horizontal centré */
.g2-section {
	width: 100%;
	max-width: var(--g2-maxw);
	margin-left: auto;
	margin-right: auto;
	padding-left: 28px;
	padding-right: 28px;
}

/* Surlignage dégradé sur un mot (titres) */
.g2-hl {
	background: var(--g2-grad);
	color: #fff;
	padding: 0 .1em;
	border-radius: 8px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Eyebrow (sur-titre en capitales) */
.g2-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--g2-accent);
}

/* Étoiles */
.g2-stars { color: var(--g2-orange); font-size: 15px; letter-spacing: 1px; }

/* Bouton dégradé pleine largeur */
.g2-btn--block { display: block; text-align: center; padding: 14px 0; }

/* ---------- Reveal au scroll ---------- */
.reveal { transition: opacity .6s cubic-bezier(.16,.84,.44,1), transform .6s cubic-bezier(.16,.84,.44,1); }
.reveal.armed { opacity: 0; transform: translateY(26px); }
.reveal.armed.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal.armed { opacity: 1 !important; transform: none !important; }
	.g2-marquee__track { animation: none !important; }
}

/* ---------- Marquee ---------- */
.g2-marquee { background: var(--g2-grad); overflow: hidden; padding: 14px 0; }
.g2-marquee__track {
	display: flex;
	width: max-content;
	white-space: nowrap;
	animation: g2-marquee 28s linear infinite;
	will-change: transform;
}
.g2-marquee__track span {
	font-family: "Bricolage Grotesque", sans-serif;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .01em;
	color: #fff;
	display: inline-flex;
	align-items: center;
}
@keyframes g2-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cartes article (partagées Home + Article) ---------- */
.g2-articles { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.g2-artcard { text-decoration: none; display: flex; flex-direction: column; transition: transform .18s ease; }
.g2-artcard:hover { transform: translateY(-4px); }
.g2-artcard__media { aspect-ratio: 16/10; border-radius: 18px; background: var(--g2-cream) center/cover no-repeat; margin-bottom: 16px; }
.g2-artcard__title {
	font-family: "Bricolage Grotesque", sans-serif;
	font-weight: 700; font-size: 23px; line-height: 1.25; color: var(--g2-ink); margin: 0 0 8px;
}
.g2-artcard__excerpt { font-size: 14px; line-height: 1.6; color: var(--g2-body); margin: 0; }

/* ---------- Glow décoratif (hero home / mag / pages) ---------- */
.g2-hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.g2-hero__glow--1 {
	top: -120px; right: -60px; width: 520px; height: 520px;
	background: radial-gradient(circle at 30% 30%, rgba(242,121,42,.28), rgba(232,76,94,.14) 45%, rgba(255,255,255,0) 70%);
	filter: blur(8px);
}
.g2-hero__glow--2 {
	bottom: -180px; left: -120px; width: 460px; height: 460px;
	background: radial-gradient(circle at 50% 50%, rgba(243,166,190,.34), rgba(255,255,255,0) 70%);
}

/* ---------- Prose (article + pages) ---------- */
.g2-prose { max-width: var(--g2-maxw-prose); padding-top: 36px; padding-bottom: 20px; }
.g2-prose p { font-size: 17px; line-height: 1.8; color: var(--g2-ink-soft); margin: 0 0 20px; }
.g2-prose > p:first-of-type { font-size: 19px; line-height: 1.75; color: var(--g2-body-alt); }
.g2-prose a { color: var(--g2-accent); text-decoration: none; border-bottom: 1px solid rgba(232,76,94,.4); }
.g2-prose a:hover { border-bottom-color: var(--g2-accent); }
.g2-prose strong { color: var(--g2-ink); font-weight: 700; }
.g2-prose h2 {
	font-family: "Bricolage Grotesque", sans-serif;
	font-weight: 500; font-size: 30px; line-height: 1.25; color: var(--g2-ink); margin: 46px 0 16px;
}
.g2-prose h2::before {
	content: ""; display: block; width: 42px; height: 4px; border-radius: 2px;
	background: var(--g2-grad); margin-bottom: 16px;
}
.g2-prose h3 {
	font-family: "Bricolage Grotesque", sans-serif;
	font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--g2-ink); margin: 32px 0 12px;
}
.g2-prose ul, .g2-prose ol { font-size: 17px; line-height: 1.8; color: var(--g2-ink-soft); margin: 0 0 20px; padding-left: 24px; }
.g2-prose li { margin-bottom: 8px; }
.g2-prose img { border-radius: 18px; height: auto; }
.g2-prose figure { margin: 24px 0; }
.g2-prose figcaption { font-size: 13px; color: var(--g2-muted); text-align: center; margin-top: 8px; }
.g2-prose blockquote {
	border-left: 3px solid var(--g2-accent); padding-left: 18px; margin: 24px 0;
	color: var(--g2-body-alt); font-style: italic;
}
.g2-prose .wp-block-button__link {
	background: var(--g2-grad); color: #fff; border-radius: var(--g2-radius-pill);
	padding: 14px 28px; font-weight: 700; text-decoration: none; display: inline-block;
}
.g2-prose .wp-block-image { margin: 24px 0; }

/* ---------- 404 ---------- */
.g2-404 {
	background: var(--g2-cream);
	background-image: radial-gradient(rgba(255,106,90,.06) 1.3px, transparent 1.3px);
	background-size: 24px 24px;
	padding: 120px 24px 140px;
	text-align: center;
}
.g2-404__eyebrow {
	font-weight: 700; font-size: 13px; letter-spacing: .18em;
	text-transform: uppercase; color: var(--g2-accent);
}
.g2-404__code {
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: clamp(120px, 22vw, 260px); line-height: .86; letter-spacing: -.03em;
	margin: 12px 0 0;
	background: var(--g2-grad);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: var(--g2-grad-c1);
}
.g2-404__title {
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: clamp(38px, 6.5vw, 76px); line-height: 1.02; letter-spacing: -.03em;
	color: var(--g2-ink); margin: 6px 0 0;
}
.g2-404__text {
	font-size: 18px; line-height: 1.6; color: var(--g2-body);
	max-width: 600px; margin: 22px auto 0;
}
.g2-404__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.g2-404__btn {
	display: inline-block; text-decoration: none;
	font-weight: 700; font-size: 15px;
	padding: 14px 26px; border-radius: var(--g2-radius-pill);
	background: var(--g2-dark); color: #fff;
	box-shadow: var(--g2-shadow-card);
	transition: transform .15s ease, box-shadow .15s ease;
}
.g2-404__btn:hover { transform: translateY(-2px); box-shadow: var(--g2-shadow-hover); }
.g2-404__btn--rose { background: var(--g2-grad); color: #fff; }

@media (max-width: 760px) {
	.g2-section { padding-left: 18px; padding-right: 18px; }
	.g2-articles { grid-template-columns: 1fr; }
	.g2-prose h2 { font-size: 26px; }
	.g2-404 { padding: 80px 18px 96px; }
	.g2-404__text { font-size: 16px; }
}
