/**
 * Pages auteurs : accroche, vidéos, questions fréquentes, médias, alerte parution.
 * Reprend la charte du site (crème, rouge KA', Lora pour les titres).
 */

/* ---------- Accroche sous le nom ---------- */

.ka-author-hero__tagline {
	margin: 2px 0 10px;
	font-family: var(--ka-titres);
	font-size: clamp(17px, 2.2vw, 21px);
	font-style: italic;
	line-height: 1.45;
	color: #6B5B4E;
}

.ka-author-hero__bio {
	max-width: 68ch;
	font-size: 16.5px;
	line-height: 1.72;
	color: #4A433D;
}

.ka-author-hero__bio p + p {
	margin-top: .85em;
}

/* ---------- Conteneur des sections ---------- */

.ka-author-sections {
	display: flex;
	flex-direction: column;
	gap: clamp(36px, 6vw, 64px);
	margin: clamp(44px, 7vw, 76px) 0 8px;
}

.ka-author-sec {
	scroll-margin-top: calc(var(--ka-header-h) + 20px);
}

.ka-author-sections .ka-section-title {
	margin: 0 0 clamp(18px, 2.6vw, 26px);
	font-size: clamp(22px, 3.1vw, 30px);
	font-weight: 700;
	letter-spacing: -.015em;
	color: #2E2925;
}

/* ---------- Vidéos ---------- */

.ka-video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: clamp(16px, 2.4vw, 26px);
}

.ka-video {
	background: var(--ka-carte, #fff);
	border-radius: var(--ka-radius-lg);
	box-shadow: var(--ka-ombre-1);
	overflow: hidden;
	transition: transform .3s var(--ka-ease), box-shadow .3s var(--ka-ease);
}

.ka-video:hover {
	transform: translateY(-4px);
	box-shadow: var(--ka-ombre-2);
}

.ka-video__play,
.ka-video iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

.ka-video__play {
	position: relative;
	padding: 0;
	margin: 0;
	cursor: pointer;
	background: #EEE2D0;
	overflow: hidden;
}

.ka-video__play img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s var(--ka-ease), filter .3s;
}

.ka-video__play:hover img {
	transform: scale(1.04);
	filter: brightness(.92);
}

/* Bouton lecture */
.ka-video__btn {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: #A41916;
	box-shadow: var(--ka-ombre-rouge);
	transition: transform .3s var(--ka-ease), background .3s;
}

.ka-video__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent #fff;
	transform: translateX(3px);
}

.ka-video__play:hover .ka-video__btn,
.ka-video__play:focus-visible .ka-video__btn {
	transform: scale(1.1);
	background: #8E1512;
}

.ka-video__play:focus-visible {
	outline: 3px solid #A41916;
	outline-offset: 3px;
}

.ka-video__titre {
	margin: 0;
	padding: 14px 18px 16px;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.45;
	color: #2E2925;
}

/* ---------- Questions fréquentes ---------- */

.ka-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 860px;
}

.ka-faq__item {
	background: var(--ka-carte, #fff);
	border-radius: var(--ka-radius);
	box-shadow: var(--ka-ombre-1);
	overflow: hidden;
	transition: box-shadow .3s var(--ka-ease);
}

.ka-faq__item[open] {
	box-shadow: var(--ka-ombre-2);
}

.ka-faq__item summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 17px 20px;
	cursor: pointer;
	list-style: none;
	font-family: var(--ka-titres);
	font-size: clamp(16px, 2vw, 18.5px);
	font-weight: 600;
	line-height: 1.4;
	color: #2E2925;
}

.ka-faq__item summary::-webkit-details-marker { display: none; }

/* Chevron */
.ka-faq__item summary::after {
	content: "";
	flex: 0 0 auto;
	margin-left: auto;
	width: 10px;
	height: 10px;
	border-right: 2.5px solid #A41916;
	border-bottom: 2.5px solid #A41916;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .3s var(--ka-ease);
}

.ka-faq__item[open] summary::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}

.ka-faq__item summary:hover { background: #FBF8F4; }

.ka-faq__rep {
	padding: 0 20px 20px;
	font-size: 16px;
	line-height: 1.7;
	color: #4A433D;
	border-top: 1px solid #F0E7DA;
	padding-top: 16px;
	margin: 0 20px;
	padding-left: 0;
	padding-right: 0;
}

.ka-faq__rep p { margin: 0 0 .8em; }
.ka-faq__rep p:last-child { margin-bottom: 0; }

/* ---------- Médias ---------- */

.ka-medias {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
	max-width: 980px;
}

.ka-medias a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 18px;
	background: var(--ka-carte, #fff);
	border-radius: var(--ka-radius);
	box-shadow: var(--ka-ombre-1);
	color: #2E2925;
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.45;
	text-decoration: none;
	transition: transform .25s var(--ka-ease), box-shadow .25s, color .25s;
}

.ka-medias a::after {
	content: "↗";
	margin-left: auto;
	color: #A41916;
	font-size: 17px;
	transition: transform .25s var(--ka-ease);
}

.ka-medias a:hover {
	transform: translateY(-3px);
	box-shadow: var(--ka-ombre-2);
	color: #A41916;
}

.ka-medias a:hover::after { transform: translate(3px, -3px); }

/* ---------- Alerte prochaine parution ---------- */

.ka-author-alerte {
	padding: clamp(26px, 4vw, 40px);
	border-radius: var(--ka-radius-lg);
	background: radial-gradient(120% 140% at 90% 0%, #fff 0%, #F6EEE2 60%, #EEE2D0 100%);
	box-shadow: var(--ka-ombre-2);
	text-align: center;
}

.ka-author-alerte__titre {
	margin: 0 0 8px;
	font-family: var(--ka-titres);
	font-size: clamp(20px, 2.8vw, 26px);
	font-weight: 700;
	line-height: 1.3;
	color: #2E2925;
}

.ka-author-alerte__txt {
	margin: 0 auto 20px;
	max-width: 54ch;
	font-size: 16px;
	line-height: 1.6;
	color: #5C534B;
}

.ka-author-alerte form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 520px;
	margin: 0 auto;
}

.ka-author-alerte input[type="email"],
.ka-author-alerte input[type="text"] {
	flex: 1 1 240px;
	min-width: 0;
	padding: 13px 16px;
	border: 1px solid #E3D7C6;
	border-radius: var(--ka-radius);
	background: #fff;
	font-size: 16px;
	color: #2E2925;
}

.ka-author-alerte input[type="email"]:focus,
.ka-author-alerte input[type="text"]:focus {
	outline: none;
	border-color: #A41916;
	box-shadow: 0 0 0 3px rgba(164, 25, 22, .14);
}

.ka-author-alerte input[type="submit"],
.ka-author-alerte button[type="submit"] {
	flex: 0 0 auto;
	padding: 13px 26px;
	border: 0;
	border-radius: var(--ka-radius);
	background: #A41916;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: var(--ka-ombre-rouge);
	transition: background .25s, transform .25s var(--ka-ease);
}

.ka-author-alerte input[type="submit"]:hover,
.ka-author-alerte button[type="submit"]:hover {
	background: #8E1512;
	transform: translateY(-2px);
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
	.ka-author-sections { gap: 38px; }
	.ka-video-grid { grid-template-columns: 1fr; }
	.ka-medias { grid-template-columns: 1fr; }
	.ka-author-alerte form { flex-direction: column; }
	.ka-author-alerte input[type="submit"],
	.ka-author-alerte button[type="submit"] { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.ka-video, .ka-video__play img, .ka-video__btn, .ka-medias a, .ka-medias a::after,
	.ka-faq__item, .ka-faq__item summary::after, .ka-author-alerte input[type="submit"] {
		transition: none !important;
	}
}
