/* En-tête et méga-menus Kizuna Éditions.
   Maquette : Claude Design « Mega menu leadgen ». Polices auto-hébergées (OFL). */

@font-face {
	font-family: "Baloo 2";
	src: url("../fonts/baloo-2-latin.woff2") format("woff2");
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Karla";
	src: url("../fonts/karla-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

.kz-entete {
	--kz-creme: #FAF3E8;
	--kz-creme-clair: #FFFBF3;
	--kz-creme-survol: #FFF8EF;
	--kz-sable: #EFE2CD;
	--kz-sable-fonce: #DFD1B8;
	--kz-encre: #2E2822;
	--kz-texte: #35302A;
	--kz-texte-doux: #5D544A;
	--kz-gris: #8A7F72;
	--kz-brique: #B0573B;
	--kz-brique-fonce: #8E4029;
	--kz-ocre: #F2A03F;
	--kz-titre: "Baloo 2", Karla, system-ui, sans-serif;
	--kz-corps: Karla, system-ui, sans-serif;
	--kz-gouttiere: max(16px, 5vw);

	font-family: var(--kz-corps);
	color: var(--kz-texte);
	-webkit-font-smoothing: antialiased;
}

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

:where(.kz-entete) :is(p, ul) { margin: 0; padding: 0; }
:where(.kz-entete) a { text-decoration: none; }

.kz-entete :focus-visible {
	outline: 2px solid var(--kz-brique);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Barre ---------- */

.kz-entete__barre {
	position: relative;
	z-index: 30;
	background: var(--kz-creme);
	border-bottom: 1px solid var(--kz-sable);
}

.kz-entete__haut {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px var(--kz-gouttiere) 16px;
}

.kz-marque {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--kz-texte);
	min-width: 0;
}

.kz-marque:hover { color: var(--kz-texte); }

.kz-marque__logo {
	width: 56px;
	height: auto;
	flex: none;
}

.kz-marque__nom {
	font-family: var(--kz-titre);
	font-weight: 700;
	font-size: 24px;
	line-height: 1;
	white-space: nowrap;
}

.kz-marque__trait {
	width: 1px;
	height: 26px;
	background: var(--kz-sable-fonce);
}

.kz-marque__baseline {
	font-size: 14px;
	color: var(--kz-gris);
}

.kz-reseaux {
	display: flex;
	align-items: center;
	gap: 10px;
}

.kz-reseaux__lien {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--kz-sable);
	color: var(--kz-texte-doux);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .15s ease, color .15s ease;
}

.kz-reseaux__lien:hover {
	background: var(--kz-brique);
	color: var(--kz-creme-survol);
}

/* ---------- Navigation ---------- */

.kz-nav {
	border-top: 1px solid var(--kz-sable);
	padding: 0 var(--kz-gouttiere);
}

.kz-nav__liste {
	list-style: none;
	display: flex;
	align-items: stretch;
	justify-content: center;
	flex-wrap: wrap;
}

.kz-nav__lien {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 22px;
	margin-top: -1px;
	border: 0;
	border-top: 3px solid transparent;
	background: none;
	cursor: pointer;
	font-family: var(--kz-corps);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--kz-texte-doux);
	transition: color .15s ease, border-color .15s ease;
}

.kz-nav__lien:hover {
	color: var(--kz-brique);
	border-top-color: #EFD3C4;
}

.kz-nav__bouton[aria-expanded="true"] {
	color: var(--kz-brique);
	border-top-color: var(--kz-brique);
}

.kz-nav__fleche { transition: transform .18s ease; }
.kz-nav__bouton[aria-expanded="true"] .kz-nav__fleche { transform: rotate(180deg); }

.kz-nav__reseaux { display: none; }
.kz-burger { display: none; }

/* ---------- Panneaux ---------- */

@keyframes kz-descente {
	from { transform: translateY(-10px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.kz-panneau {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--kz-creme-clair);
	border-bottom: 1px solid #EADDC5;
	box-shadow: 0 30px 60px -34px rgba(60, 40, 25, .6);
	animation: kz-descente .2s ease both;
	text-align: left;
}

.kz-panneau[hidden] { display: none; }

.kz-panneau__grille {
	max-width: 1280px;
	margin: 0 auto;
	padding: 34px var(--kz-gouttiere) 32px;
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 54px);
	align-items: stretch;
}

.kz-panneau__cartes {
	min-width: 0;
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.kz-panneau__cartes--faq {
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Carte livre */

.kz-livre,
.kz-question {
	border: 1px solid var(--kz-sable);
	background: var(--kz-creme);
	min-width: 0;
	transition: border-color .15s ease, background-color .15s ease;
}

.kz-livre:hover,
.kz-question:hover {
	border-color: var(--kz-brique);
	background: var(--kz-creme-survol);
}

.kz-livre {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
	border-radius: 14px;
}

.kz-livre__haut {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	min-width: 0;
}

.kz-livre__couverture {
	flex: none;
	position: relative;
	width: 62px;
	aspect-ratio: 2 / 3;
	border-radius: 2px 6px 6px 2px;
	overflow: hidden;
	background: var(--kz-sable);
	box-shadow: 0 12px 20px -14px rgba(60, 40, 25, .7), 0 1px 3px rgba(60, 40, 25, .2);
}

.kz-livre__couverture img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Reliure : léger dégradé sur le bord gauche. */
.kz-livre__couverture::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 9%;
	background: linear-gradient(90deg, rgba(25, 14, 5, .45), rgba(25, 14, 5, .06) 58%, rgba(255, 255, 255, .26));
}

.kz-livre__accroche {
	display: block;
	font-family: var(--kz-titre);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.25;
	color: var(--kz-brique);
}

.kz-livre__titre {
	display: block;
	margin-top: 8px;
	font-family: var(--kz-titre);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.08;
	letter-spacing: -.01em;
	color: var(--kz-encre);
}

.kz-livre__texte {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--kz-texte-doux);
}

.kz-livre__cta {
	margin-top: auto;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--kz-brique);
}

/* Carte question */

.kz-question {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 15px 16px;
	border-radius: 12px;
}

.kz-question__numero {
	flex: none;
	font-family: var(--kz-titre);
	font-weight: 700;
	font-size: 15px;
	color: #C9663F;
}

.kz-question__titre {
	display: block;
	font-family: var(--kz-titre);
	font-weight: 600;
	font-size: 16.5px;
	line-height: 1.25;
	color: var(--kz-encre);
}

.kz-question__reponse {
	display: block;
	margin-top: 6px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--kz-texte-doux);
}

/* Encart latéral */

.kz-encart {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	border-radius: 16px;
	padding: 26px 24px;
}

.kz-encart--brique {
	background: var(--kz-brique);
	box-shadow: 0 26px 44px -30px rgba(120, 50, 25, .9);
	--kz-encart-texte: #F6DED0;
}

.kz-encart--encre {
	background: var(--kz-encre);
	box-shadow: 0 26px 44px -30px rgba(40, 26, 16, .9);
	--kz-encart-texte: #B3A797;
}

.kz-encart__badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 6px;
	background: var(--kz-ocre);
	color: #4A2312;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.kz-encart__titre {
	margin-top: 16px;
	font-family: var(--kz-titre);
	font-weight: 700;
	font-size: 25px;
	line-height: 1.08;
	letter-spacing: -.01em;
	text-wrap: balance;
	color: var(--kz-creme-survol);
}

.kz-encart__texte {
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.6;
	text-wrap: pretty;
	color: var(--kz-encart-texte);
}

.kz-encart__formulaire { width: 100%; }
.kz-encart__formulaire:not(:empty) { margin-top: 20px; }

/* Voile derrière un panneau ouvert */

.kz-voile {
	position: fixed;
	inset: 0;
	z-index: 20;
	background: rgba(46, 40, 34, .28);
}

.kz-voile[hidden] { display: none; }

/* ---------- Mobile et tablette ---------- */

@media (max-width: 899px) {
	.kz-entete__haut { gap: 12px; padding-block: 14px; }
	.kz-marque { gap: 10px; }
	.kz-marque__logo { width: 44px; }
	.kz-marque__nom { font-size: 21px; }

	.kz-burger {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		flex: none;
		min-height: 44px;
		padding: 0 14px;
		border: 1px solid var(--kz-sable-fonce);
		border-radius: 999px;
		background: var(--kz-creme-clair);
		color: var(--kz-texte);
		font-family: var(--kz-corps);
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .12em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.kz-burger__barres,
	.kz-burger__barres::before,
	.kz-burger__barres::after {
		display: block;
		width: 16px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform .18s ease, background-color .18s ease;
	}

	.kz-burger__barres { position: relative; }
	.kz-burger__barres::before,
	.kz-burger__barres::after { content: ""; position: absolute; left: 0; }
	.kz-burger__barres::before { top: -5px; }
	.kz-burger__barres::after { top: 5px; }

	.kz-burger[aria-expanded="true"] .kz-burger__barres { background: transparent; }
	.kz-burger[aria-expanded="true"] .kz-burger__barres::before { transform: translateY(5px) rotate(45deg); }
	.kz-burger[aria-expanded="true"] .kz-burger__barres::after { transform: translateY(-5px) rotate(-45deg); }

	.kz-reseaux--haut { display: none; }

	.kz-nav { display: none; padding: 0 0 20px; }
	.kz-nav.est-ouvert { display: block; }

	.kz-nav__liste {
		flex-direction: column;
		align-items: stretch;
	}

	.kz-nav__liste > li { border-bottom: 1px solid var(--kz-sable); }

	.kz-nav__lien {
		width: 100%;
		justify-content: space-between;
		margin-top: 0;
		padding: 17px var(--kz-gouttiere);
		border-top: 0;
		font-size: 14px;
	}

	.kz-nav__lien:hover { border-top-color: transparent; }
	.kz-nav__bouton[aria-expanded="true"] { background: var(--kz-creme-clair); }

	.kz-panneau {
		position: static;
		box-shadow: none;
		border-bottom: 0;
	}

	.kz-panneau__grille {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding: 6px var(--kz-gouttiere) 22px;
	}

	.kz-nav__liste > .kz-nav__reseaux {
		display: block;
		border-bottom: 0;
		padding: 20px var(--kz-gouttiere) 0;
	}

	.kz-voile { display: none; }
}

@media (max-width: 599px) {
	.kz-marque__trait,
	.kz-marque__baseline { display: none; }
	.kz-panneau__cartes,
	.kz-panneau__cartes--faq { grid-template-columns: minmax(0, 1fr); }
	.kz-encart__titre { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.kz-entete *,
	.kz-entete *::before,
	.kz-entete *::after {
		animation: none !important;
		transition: none !important;
	}
}
