/* ==========================================================================
   KIDS CARE — MISE EN PAGE : conteneurs, sections, grilles
   ========================================================================== */

/* ---------- Conteneur ---------- */
.kc-container {
	width: 100%;
	max-width: var(--kc-container);
	margin-inline: auto;
	padding-inline: var(--kc-gutter);
}

.kc-container--narrow {
	max-width: 860px;
}

/* ---------- Section ---------- */
.kc-section {
	padding-block: var(--kc-section-y);
}

.kc-section--tight {
	padding-block: calc(var(--kc-section-y) * 0.6);
}

.kc-section--surface {
	background-color: var(--kc-surface);
}

.kc-section--tint-cyan {
	background-color: var(--kc-tint-cyan);
}

.kc-section--tint-mint {
	background-color: var(--kc-tint-mint);
}

.kc-section--tint-yellow {
	background-color: var(--kc-tint-yellow);
}

/* En-tête de section : sur-titre + H2 + chapô */
.kc-section-head {
	margin-bottom: var(--kc-space-7);
	max-width: 780px;
}

.kc-section-head--center {
	margin-inline: auto;
	text-align: center;
}

.kc-section-head--center p {
	margin-inline: auto;
}

.kc-eyebrow {
	display: block;
	font-family: var(--kc-font-body);
	font-size: var(--kc-text-sm);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--kc-link);
	margin-bottom: var(--kc-space-2);
}

.kc-section-head > h2,
.kc-section-head > .kc-h2 {
	margin-bottom: var(--kc-space-3);
}

.kc-lead {
	font-size: var(--kc-text-lg);
	color: var(--kc-ink-soft);
}

/* ---------- Grilles ---------- */
.kc-grid {
	display: grid;
	gap: var(--kc-space-5);
}

.kc-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kc-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kc-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Grille auto-ajustée : idéale pour les 15 cartes d'expertise */
.kc-grid--auto {
	grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
}

@media (max-width: 1024px) {
	.kc-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kc-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.kc-grid--2,
	.kc-grid--3,
	.kc-grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Bloc média + texte ---------- */
.kc-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(var(--kc-space-5), 4vw, var(--kc-space-8));
	align-items: center;
}

.kc-split--media-right .kc-split__media {
	order: 2;
}

@media (max-width: 860px) {
	.kc-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.kc-split--media-right .kc-split__media {
		order: 0;
	}
}

/* ---------- Utilitaires ---------- */
.kc-text-center {
	text-align: center;
}

.kc-stack > * + * {
	margin-top: var(--kc-space-4);
}

.kc-cluster {
	display: flex;
	flex-wrap: wrap;
	gap: var(--kc-space-3);
	align-items: center;
	/* Ces groupes de boutons sont souvent des <p> : sans cette annulation,
	   ils héritent de la largeur de lecture de 70ch et un « centrage » se
	   fait alors dans cette boîte étroite, donc visiblement décalé à gauche. */
	max-width: none;
}

.kc-cluster--center {
	justify-content: center;
}

/* ---------- Contenu principal ---------- */
.kc-main {
	display: block;
}

/* Compense la barre d'action mobile collante */
@media (max-width: 860px) {
	body.kc-has-mobile-bar .kc-footer {
		padding-bottom: calc(var(--kc-space-6) + 64px);
	}
}
