/* ============================================================================
   ZERO COMPLEXE — HOMEPAGE
   2026-08-21. Complement de hub.css (design system commun), charge uniquement
   sur la page d'accueil. Reutilise au maximum les composants des hubs :
   .zch-btn, .zch-link, .zch-badge, .zch-panel, .zch-container, .zch-section,
   .zch-eyebrow, .zch-rule, .zch-head, .zch-art*, .zch-value*, .zch-principle*.
   Seules les mises en page propres a la home sont definies ici.
   ========================================================================= */

/* --- Neutralisation du conteneur Astra, accueil uniquement --------------- */
body.zcm-home .site-content > .ast-container {
	max-width: 100%;
	padding: 0;
	margin: 0;
}
body.zcm-home .site-content { background: var(--zch-bg); }

/* --- 1. HERO ------------------------------------------------------------- */
.zcm-hero { padding-block: clamp(34px, 4.5vw, 72px) var(--zch-pad); }
.zcm-hero-grid {
	display: grid; grid-template-columns: 46fr 54fr;
	gap: clamp(28px, 4.5vw, 68px); align-items: center;
}
.zcm-hero h1 {
	font-size: clamp(40px, 5.2vw, 66px);
	line-height: 1.05; margin: 0 0 20px; max-width: 15ch;
}
.zcm-hero-lead { font-size: 17px; max-width: 48ch; margin-bottom: 26px; }
.zcm-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.zcm-hero-visual { position: relative; }
.zcm-hero-visual img {
	width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
	border-radius: var(--zch-radius-lg);
}
.zcm-hero-card {
	position: absolute; left: 22px; bottom: 22px;
	background: var(--zch-card); border: 1px solid var(--zch-border);
	border-radius: 18px; padding: 18px 22px; width: min(268px, 66%);
	box-shadow: 0 12px 34px rgba(47, 45, 41, .07);
}
.zcm-hero-card .zch-principle + .zch-principle { margin-top: 13px; }

/* --- 2. NOS UNIVERS ------------------------------------------------------ */
.zcm-univers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.zcm-univers-small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }

.zcm-uni {
	position: relative; display: block; text-decoration: none;
	background: var(--zch-card); border: 1px solid var(--zch-border);
	border-radius: var(--zch-radius-lg); overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}
.zcm-uni:hover { box-shadow: 0 10px 30px rgba(47, 45, 41, .07); transform: translateY(-2px); }
.zcm-uni img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* <span> : sans display block, le padding ne contient pas les enfants
   blocs et le contenu sortait de la carte. */
.zcm-uni-body { display: block; padding: 24px 26px 26px; }
.zcm-uni h3 { font-size: 23px; margin: 0 0 8px; }
.zcm-uni p { font-size: 14.5px; margin: 0 0 14px; }

.zcm-uni--soft {
	background: var(--zch-cream);
	display: flex; flex-direction: column; padding: 26px 24px 26px;
}
.zcm-uni--soft h3 { font-size: 19px; }
.zcm-uni--soft p { font-size: 14px; }
.zcm-uni-ico {
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--zch-sage-soft); color: var(--zch-sage);
	display: grid; place-items: center; margin-bottom: 16px;
}
.zcm-uni-ico svg { width: 22px; height: 22px; }
.zcm-uni--soft .zch-link { margin-top: auto; }

/* --- 3. GUIDES ESSENTIELS ------------------------------------------------ */
.zcm-guides { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: stretch; }
.zcm-guides-side { display: grid; gap: 22px; }
.zcm-guide {
	background: var(--zch-card); border: 1px solid var(--zch-border);
	border-radius: var(--zch-radius); overflow: hidden;
	display: flex; flex-direction: column;
}
.zcm-guide-band {
	min-height: 128px; display: grid; place-items: center;
	background: var(--zch-sage-soft); color: var(--zch-sage);
}
.zcm-guide-band svg { width: 44px; height: 44px; opacity: .8; }
.zcm-guide--side .zcm-guide-band { min-height: 84px; background: var(--zch-beige); }
.zcm-guide--side .zcm-guide-band svg { width: 30px; height: 30px; }
.zcm-guide-body { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.zcm-guide h3 { font-size: 25px; margin-bottom: 10px; }
.zcm-guide--side h3 { font-size: 19px; }
.zcm-guide p { font-size: 14.5px; }
.zcm-guide--side p { font-size: 13.8px; }
.zcm-guide .zch-btn, .zcm-guide .zch-link { margin-top: auto; align-self: flex-start; }


/* --- Carte guide : un seul lien reel, etendu a toute la carte ------------- */
.zcm-guide { position: relative; }
.zcm-guide .zcm-cover::after { content: ""; position: absolute; inset: 0; }
.zcm-guide .zch-btn, .zcm-guide .zch-link { pointer-events: none; }
.zcm-guide:hover { box-shadow: 0 10px 30px rgba(47, 45, 41, .07); }
.zcm-guide:focus-within { outline: 2px solid var(--zch-sage); outline-offset: 3px; }

/* --- 4. DERNIERS ARTICLES ------------------------------------------------ */
.zcm-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.zcm-posts .zch-art-img img { aspect-ratio: 3 / 2; min-height: 0; }
.zcm-posts .zch-art h3 { font-size: 18.5px; }
.zcm-more { text-align: center; margin-top: 34px; }

/* --- 5. BLOC DE MARQUE --------------------------------------------------- */
.zcm-brand { text-align: center; }
.zcm-brand h2 { max-width: 18ch; margin-inline: auto; margin-bottom: 16px; }
.zcm-brand > p { max-width: 62ch; margin-inline: auto; margin-bottom: 36px; }
.zcm-brand .zch-values { text-align: left; }

/* --- 6. PAR OU COMMENCER ------------------------------------------------- */
.zcm-start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.zcm-start-card {
	background: var(--zch-card); border: 1px solid var(--zch-border);
	border-radius: var(--zch-radius); padding: 30px 28px 28px;
	display: flex; flex-direction: column; text-decoration: none;
	transition: box-shadow .25s ease, transform .25s ease;
}
.zcm-start-card:hover { box-shadow: 0 10px 30px rgba(47, 45, 41, .07); transform: translateY(-2px); }
.zcm-start-num {
	font-family: var(--zch-serif); font-size: 19px;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--zch-sage-soft); color: var(--zch-text);
	display: grid; place-items: center; margin-bottom: 18px;
}
.zcm-start-card h3 { font-size: 20px; line-height: 1.32; margin-bottom: 10px; }
.zcm-start-card p { font-size: 14px; }
.zcm-start-card .zch-link { margin-top: auto; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
	.zcm-hero-grid { grid-template-columns: 1fr; }
	.zcm-hero-visual { order: 2; }
	.zcm-hero-text { order: 1; }
	.zcm-hero h1 { max-width: 100%; }
	.zcm-hero-card {
		position: static; width: 100%; margin-top: 16px; box-shadow: none;
	}
	.zcm-univers { grid-template-columns: 1fr; }
	.zcm-univers-small { grid-template-columns: repeat(3, 1fr); }
	.zcm-guides { grid-template-columns: 1fr; }
	.zcm-posts { grid-template-columns: repeat(2, 1fr); }
	.zcm-start { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.zcm-univers-small { grid-template-columns: 1fr; }
	.zcm-posts { grid-template-columns: 1fr; }
	.zcm-actions { gap: 14px; }
	.zcm-uni-body, .zcm-guide-body { padding: 22px 20px 24px; }
	.zcm-uni img { aspect-ratio: 16 / 9; }
}
