/* DK Widgets — Liseuse PDF */
.dkf {
	--dkf-accent: #EB782A;
	--dkf-bg: radial-gradient(120% 90% at 50% 40%, #3a3d44 0%, #1e2025 70%);
	--dkf-bar-bg: rgba(18, 19, 23, .82);
	--dkf-bar-color: #f2f2f4;
	--dkf-overlay: rgba(10, 11, 14, .92);
	--dkf-height: 640px;
	position: relative;
}
.dkf *, .dkf *::before, .dkf *::after,
.dkf-modal *, .dkf-modal *::before, .dkf-modal *::after { box-sizing: border-box; }

/* =========================================================
 * Lanceurs (vignette / bouton)
 * ======================================================= */
.dkf-launch {
	-webkit-appearance: none;
	appearance: none;
	font: inherit;
	cursor: pointer;
}
.dkf-launch--cover {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: var(--dkf-cover-w, 320px);
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	text-align: center;
}
.dkf-cover {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 3px 8px 8px 3px;
	background: #e9e9ec;
	aspect-ratio: 0.707;
	/* Fin contour gris : les couvertures blanches se détachent du fond blanc. */
	box-shadow: 0 0 0 1px var(--dkf-cover-ring, rgba(0, 0, 0, .14)), 0 2px 4px rgba(0, 0, 0, .1), 0 14px 30px -8px rgba(0, 0, 0, .38);
	transform: perspective(900px) rotateY(0);
	transform-origin: left center;
	transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
}
.dkf-cover img, .dkf-cover canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.dkf-cover::before {           /* reliure */
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 7%;
	z-index: 2;
	background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .18) 45%, rgba(0, 0, 0, .06) 75%, transparent);
	pointer-events: none;
}
.dkf-cover::after {            /* reflet */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(115deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 40%);
	opacity: 0;
	transition: opacity .45s ease;
	pointer-events: none;
}
.dkf-cover-auto:not(.is-ready)::after {
	opacity: 1;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%) -200% 0 / 200% 100%;
	animation: dkf-shimmer 1.4s infinite;
}
@keyframes dkf-shimmer { to { background-position: 200% 0; } }
.dkf-launch--cover:hover .dkf-cover,
.dkf-launch--cover:focus-visible .dkf-cover {
	transform: perspective(900px) rotateY(-14deg);
	box-shadow: 0 0 0 1px var(--dkf-cover-ring, rgba(0, 0, 0, .14)), 0 2px 4px rgba(0, 0, 0, .1), 18px 22px 40px -12px rgba(0, 0, 0, .45);
}
.dkf-launch--cover:hover .dkf-cover::after { opacity: 1; }
.dkf-launch--cover:focus-visible { outline: none; }
.dkf-launch--cover:focus-visible .dkf-cover { outline: 3px solid var(--dkf-accent); outline-offset: 3px; }
.dkf-cover-badge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--dkf-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .4);
	transform: translateY(6px);
	opacity: 0;
	transition: opacity .3s ease, transform .3s ease;
}
.dkf-cover-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.dkf-launch--cover:hover .dkf-cover-badge,
.dkf-launch--cover:focus-visible .dkf-cover-badge { opacity: 1; transform: none; }
@media (hover: none) { .dkf-cover-badge { opacity: 1; transform: none; } }
.dkf-launch-title { display: block; margin-top: 12px; font-weight: 600; line-height: 1.35; }

.dkf-launch--btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border: 0;
	border-radius: 6px;
	background: var(--dkf-accent);
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
	transition: filter .2s ease, transform .2s ease;
}
.dkf-launch--btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dkf-launch--btn:hover { filter: brightness(1.08); }
.dkf-launch--btn:active { transform: scale(.98); }
.dkf-launch--btn:focus-visible { outline: 3px solid var(--dkf-accent); outline-offset: 3px; }

/* Étagère [dk_bibliotheque] */
.dkf-shelf {
	display: grid;
	grid-template-columns: repeat(var(--dkf-shelf-cols, 4), minmax(0, 1fr));
	gap: 34px 26px;
	align-items: start;
}
.dkf-shelf-item .dkf { text-align: center; --dkf-cover-w: 100%; }
@media (max-width: 1024px) { .dkf-shelf { grid-template-columns: repeat(min(3, var(--dkf-shelf-cols, 4)), minmax(0, 1fr)); } }
@media (max-width: 767px) { .dkf-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; } }

/* =========================================================
 * Liseuse
 * ======================================================= */
.dkf-inline { height: var(--dkf-height); }
.dkf-app {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: 320px;
	overflow: hidden;
	background: var(--dkf-bg);
	color: var(--dkf-bar-color);
	font-size: 14px;
	line-height: 1.4;
	outline: none;
	border-radius: inherit;
	-webkit-user-select: none;
	user-select: none;
}
.dkf-app.dkf-light {
	--dkf-bg: radial-gradient(120% 90% at 50% 40%, #fafafa 0%, #e6e7ea 75%);
	--dkf-bar-bg: rgba(255, 255, 255, .9);
	--dkf-bar-color: #26282d;
}
.dkf-app.is-full { border-radius: 0; }

.dkf-stage { position: relative; flex: 1; min-height: 0; }
.dkf-book-holder { position: absolute; inset: 22px 64px 18px; }
.dkf-mode-scroll .dkf-book-holder { display: none; }
.dkf-scrollbox { display: none; }
.dkf-mode-scroll .dkf-scrollbox {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: 18px 16px 40px;
	overflow: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.dkf-book { position: absolute; inset: 0; width: 100%; height: 100%; margin: auto; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }

/* Pages */
.dkf-page, .dkf-spage, .dkf-zoom-page {
	position: relative;
	overflow: hidden;
	background: #fff;
}
.dkf-page .dkf-cv, .dkf-spage .dkf-cv, .dkf-zoom-page .dkf-cv {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}
.dkf-page-ph {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, #f1f1f3 30%, #fafafa 50%, #f1f1f3 70%) -200% 0 / 200% 100%;
	animation: dkf-shimmer 1.6s infinite;
}
.is-ready > .dkf-page-ph { display: none; }
/* Pli central (ombre de reliure) */
.dkf-page-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.dkf-page-right .dkf-page-shade { background: linear-gradient(90deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .04) 4%, transparent 9%); }
.dkf-page-left .dkf-page-shade { background: linear-gradient(270deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .04) 4%, transparent 9%); }
.dkf-book .stf__block { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.dkf-spage { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .55); border-radius: 2px; flex: none; }
.dkf-spage-num {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 3;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 11px;
}

/* Liens et surlignage */
.dkf-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.dkf-link {
	position: absolute;
	pointer-events: auto;
	border-radius: 2px;
	transition: background-color .2s ease, box-shadow .2s ease;
}
.dkf-link:hover, .dkf-link:focus-visible { background: color-mix(in srgb, var(--dkf-accent) 14%, transparent); box-shadow: inset 0 0 0 1.5px var(--dkf-accent); outline: none; }
.dkf-hl {
	position: absolute;
	border-radius: 2px;
	background: rgba(255, 214, 0, .45);
	mix-blend-mode: multiply;
	box-shadow: 0 0 0 1px rgba(230, 170, 0, .6);
}

/* Flèches latérales */
.dkf-nav {
	position: absolute;
	top: 50%;
	z-index: 6;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	backdrop-filter: blur(6px);
}
.dkf-light .dkf-nav { background: rgba(0, 0, 0, .06); color: #26282d; }
.dkf-nav-prev { left: 10px; }
.dkf-nav-next { right: 10px; }
.dkf-nav:hover:not(:disabled) { background: var(--dkf-accent); color: #fff; }
.dkf-nav svg { width: 24px; height: 24px; }
.dkf-mode-scroll .dkf-nav { display: none; }

/* Boutons */
.dkf-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.dkf-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dkf-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.dkf-light .dkf-btn:hover:not(:disabled) { background: rgba(0, 0, 0, .07); }
.dkf-btn:focus-visible { outline: 2px solid var(--dkf-accent); outline-offset: 1px; }
.dkf-btn:disabled { opacity: .3; cursor: default; }
.dkf-btn.is-on, .side-open .dkf-btn[data-act="panel"] { background: var(--dkf-accent); color: #fff; }

/* Barre d'outils */
.dkf-bar {
	position: relative;
	z-index: 8;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
	padding: 8px 10px 10px;
	background: var(--dkf-bar-bg);
	backdrop-filter: blur(12px) saturate(1.3);
	border-top: 1px solid rgba(255, 255, 255, .06);
}
.dkf-light .dkf-bar { border-top-color: rgba(0, 0, 0, .06); }
.dkf-bar-group { display: flex; align-items: center; gap: 2px; min-width: 0; }
.dkf-bar-right { justify-content: flex-end; }
.dkf-title { margin-left: 6px; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; opacity: .9; }
.dkf-pagebox {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 6px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.dkf-page-input {
	width: 58px;
	height: 32px;
	padding: 0 6px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 6px;
	background: rgba(255, 255, 255, .08);
	color: inherit;
	font: inherit;
	text-align: center;
}
.dkf-light .dkf-page-input { border-color: rgba(0, 0, 0, .15); background: #fff; }
.dkf-page-input:focus { outline: none; border-color: var(--dkf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dkf-accent) 25%, transparent); }
.dkf-page-total { opacity: .7; }
.dkf-slider {
	position: absolute;
	left: 0;
	right: 0;
	top: -9px;
	width: 100%;
	height: 18px;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.dkf-slider::-webkit-slider-runnable-track { height: 3px; background: rgba(255, 255, 255, .15); }
.dkf-slider::-moz-range-track { height: 3px; background: rgba(255, 255, 255, .15); }
.dkf-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: var(--dkf-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dkf-accent) 25%, transparent); }
.dkf-slider::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--dkf-accent); }
.dkf-slider:focus-visible { outline: none; }
.dkf-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--dkf-accent) 50%, transparent); }

/* Chargement */
.dkf-loader {
	position: absolute;
	inset: 0;
	z-index: 9;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	transition: opacity .35s ease, visibility .35s;
}
.dkf-loader.is-done { opacity: 0; visibility: hidden; }
.dkf-spinner { width: 38px; height: 38px; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--dkf-accent); border-radius: 50%; animation: dkf-spin .8s linear infinite; }
@keyframes dkf-spin { to { transform: rotate(360deg); } }
.dkf-loader-txt { opacity: .75; }
.dkf-progress { width: 180px; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.dkf-progress span { display: block; width: 0; height: 100%; background: var(--dkf-accent); transition: width .2s ease; }
.dkf-error { max-width: 380px; padding: 20px; text-align: center; line-height: 1.6; }
.dkf-error a { color: var(--dkf-accent); }

/* Message bref */
.dkf-toast {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 10;
	padding: 9px 16px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .78);
	color: #fff;
	font-size: 13px;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity .25s ease, transform .25s ease;
	pointer-events: none;
}
.dkf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Panneau latéral */
.dkf-side {
	position: absolute;
	top: 0;
	bottom: 56px;
	left: 0;
	z-index: 7;
	display: flex;
	flex-direction: column;
	width: 280px;
	max-width: 86%;
	background: var(--dkf-bar-bg);
	backdrop-filter: blur(14px) saturate(1.3);
	border-right: 1px solid rgba(255, 255, 255, .06);
	transform: translateX(-102%);
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.side-open .dkf-side { transform: none; box-shadow: 12px 0 40px -10px rgba(0, 0, 0, .5); }
@media (min-width: 1100px) {
	.dkf-app.side-open .dkf-book-holder { left: 300px; }
	.dkf-app.side-open .dkf-nav-prev { left: 290px; }
}
.dkf-book-holder, .dkf-nav-prev { transition: left .3s cubic-bezier(.2, .7, .2, 1); }
.dkf-tabs { display: flex; gap: 4px; padding: 10px 10px 6px; }
.dkf-tab {
	-webkit-appearance: none;
	appearance: none;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 8px 4px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 11.5px;
	opacity: .7;
	cursor: pointer;
}
.dkf-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dkf-tab:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.dkf-tab.is-active { opacity: 1; background: color-mix(in srgb, var(--dkf-accent) 18%, transparent); color: var(--dkf-accent); }
.dkf-panes { position: relative; flex: 1; min-height: 0; }
.dkf-pane { position: absolute; inset: 0; display: none; padding: 4px 10px 16px; overflow-y: auto; overscroll-behavior: contain; }
.dkf-pane.is-active { display: block; }
.dkf-empty { padding: 16px 6px; opacity: .7; }

.dkf-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; padding-top: 4px; }
.dkf-thumb { display: block; color: inherit; text-decoration: none; text-align: center; }
.dkf-thumb-img {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 3px;
	background: rgba(255, 255, 255, .08);
	outline: 2px solid transparent;
	outline-offset: 2px;
	transition: outline-color .2s ease, transform .2s ease;
}
.dkf-thumb-img canvas { display: block; width: 100%; height: 100%; }
.dkf-thumb:hover .dkf-thumb-img { transform: translateY(-2px); }
.dkf-thumb.is-current .dkf-thumb-img { outline-color: var(--dkf-accent); }
.dkf-thumb-n { display: block; margin-top: 4px; font-size: 11.5px; opacity: .7; }
.dkf-thumb.is-current .dkf-thumb-n { color: var(--dkf-accent); opacity: 1; font-weight: 600; }

.dkf-outline { list-style: none; margin: 0; padding: 0; }
.dkf-outline-sub { padding-left: 14px; }
.dkf-outline-item {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
	line-height: 1.35;
}
.dkf-outline-item:hover { background: rgba(255, 255, 255, .08); color: var(--dkf-accent); }
.dkf-outline-n { flex: none; opacity: .55; font-variant-numeric: tabular-nums; }

.dkf-search-form { display: flex; gap: 6px; padding-top: 4px; }
.dkf-search-input {
	flex: 1;
	min-width: 0;
	height: 38px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 8px;
	background: rgba(255, 255, 255, .08);
	color: inherit;
	font: inherit;
}
.dkf-light .dkf-search-input { border-color: rgba(0, 0, 0, .15); background: #fff; }
.dkf-search-input:focus { outline: none; border-color: var(--dkf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dkf-accent) 25%, transparent); }
.dkf-search-info { padding: 10px 4px 6px; font-size: 12.5px; opacity: .75; }
.dkf-results { list-style: none; margin: 0; padding: 0; }
.dkf-result { display: block; padding: 9px 10px; border-radius: 6px; color: inherit; text-decoration: none; }
.dkf-result:hover { background: rgba(255, 255, 255, .08); }
.dkf-result-p { display: block; margin-bottom: 3px; color: var(--dkf-accent); font-size: 12px; font-weight: 600; }
.dkf-result-t { display: block; font-size: 12.5px; line-height: 1.45; opacity: .85; }
.dkf-result mark { padding: 0 2px; border-radius: 2px; background: rgba(255, 214, 0, .55); color: inherit; }

/* Zoom */
.dkf-zoom {
	position: absolute;
	inset: 0;
	z-index: 7;
	overflow: auto;
	background: var(--dkf-bg);
	cursor: grab;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.dkf-zoom.is-drag { cursor: grabbing; }
.dkf-zoom-inner { display: flex; width: max-content; min-width: 100%; min-height: 100%; align-items: center; justify-content: center; padding: 30px; }
.dkf-zoom-page { flex: none; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .55); }
.dkf-zoom-ui { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.dkf-zoom-close { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .6); color: #fff; pointer-events: auto; }
.dkf-zoom-close:hover { background: var(--dkf-accent) !important; }
.dkf-zoom-hint {
	position: absolute;
	left: 50%;
	bottom: 14px;
	width: max-content;
	max-width: 90%;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: 12px;
	transform: translateX(-50%);
	pointer-events: none;
	animation: dkf-fade 4s forwards;
}
@keyframes dkf-fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.is-zoomed .dkf-nav { display: none; }

/* =========================================================
 * Fenêtre plein écran (vignette / bouton)
 * ======================================================= */
html.dkf-lock, html.dkf-lock body { overflow: hidden !important; }
.dkf-modal {
	--dkf-accent: #EB782A;
	--dkf-bg: radial-gradient(120% 90% at 50% 40%, #3a3d44 0%, #1e2025 70%);
	--dkf-bar-bg: rgba(18, 19, 23, .82);
	--dkf-bar-color: #f2f2f4;
	--dkf-overlay: rgba(10, 11, 14, .92);
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2vh 2vw;
	background: var(--dkf-overlay);
	opacity: 0;
	transition: opacity .25s ease;
}
.dkf-modal[hidden] { display: none; }
.dkf-modal.is-open { opacity: 1; }
.dkf-modal-box {
	width: 100%;
	height: 100%;
	max-width: 1600px;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	transform: scale(.97);
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.dkf-modal.is-open .dkf-modal-box { transform: none; }
.dkf-close-btn { margin-left: 4px; background: rgba(255, 255, 255, .1); }

/* =========================================================
 * Petits écrans
 * ======================================================= */
@media (max-width: 760px) {
	.dkf-book-holder { inset: 12px 8px 12px; }
	.dkf-nav { width: 40px; height: 40px; margin-top: -20px; background: rgba(0, 0, 0, .35); }
	.dkf-nav-prev { left: 4px; }
	.dkf-nav-next { right: 4px; }
	.dkf-hide-sm { display: none !important; }
	.dkf-bar { grid-template-columns: auto 1fr auto; padding: 8px 6px 8px; gap: 4px; }
	.dkf-bar-mid { justify-content: center; }
	.dkf-title { display: none; }
	.dkf-modal { padding: 0; }
	.dkf-modal-box { border-radius: 0; }
	.dkf-side { width: 100%; max-width: 100%; }
	.dkf-page-input { width: 50px; }
}
@media (max-width: 420px) {
	.dkf-hide-xs { display: none !important; }
	.dkf-btn { width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
	.dkf *, .dkf-modal * { animation: none !important; transition: none !important; }
}

/* =========================================================
 * Protection contre les styles du thème (ex. Hello Elementor : boutons et champs roses).
 * Spécificité choisie pour battre le thème sans écraser les réglages faits dans Elementor.
 * ======================================================= */
.dkf-app .dkf-btn.dkf-btn,
.dkf-modal .dkf-btn.dkf-btn {
	display: inline-flex;
	width: 38px;
	height: 38px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background-color: transparent;
	color: inherit;
	box-shadow: none;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.dkf-app .dkf-btn.dkf-btn:focus { background-color: transparent; color: inherit; }
.dkf-app .dkf-btn.dkf-btn:hover:not(:disabled) { background-color: rgba(255, 255, 255, .12); color: inherit; }
.dkf-app.dkf-light .dkf-btn.dkf-btn:hover:not(:disabled) { background-color: rgba(0, 0, 0, .07); }
.dkf-app .dkf-btn.dkf-btn:focus-visible { outline: 2px solid var(--dkf-accent); outline-offset: 1px; }
.dkf-app .dkf-btn.dkf-btn.is-on,
.dkf-app.side-open .dkf-btn.dkf-btn[data-act="panel"] { background-color: var(--dkf-accent); color: #fff; }
.dkf-app .dkf-btn.dkf-close-btn { margin-left: 4px; background-color: rgba(255, 255, 255, .1); }

.dkf-app .dkf-btn.dkf-nav {
	position: absolute;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, .1);
	color: #fff;
}
.dkf-app.dkf-light .dkf-btn.dkf-nav { background-color: rgba(0, 0, 0, .06); color: #26282d; }
.dkf-app .dkf-btn.dkf-nav:hover:not(:disabled),
.dkf-app .dkf-btn.dkf-nav:focus-visible { background-color: var(--dkf-accent); color: #fff; }
.dkf-app.dkf-mode-scroll .dkf-btn.dkf-nav,
.dkf-app.is-zoomed .dkf-btn.dkf-nav { display: none; }
.dkf-app .dkf-btn.dkf-zoom-close { position: absolute; background-color: rgba(0, 0, 0, .6); color: #fff; }
.dkf-app .dkf-btn.dkf-zoom-close:hover { background-color: var(--dkf-accent); }
@media (max-width: 760px) {
	.dkf-app .dkf-btn.dkf-nav { width: 40px; height: 40px; background-color: rgba(0, 0, 0, .35); }
}
@media (max-width: 420px) {
	.dkf-app .dkf-btn.dkf-btn { width: 34px; }
}

.dkf-app .dkf-tab.dkf-tab {
	display: flex;
	min-height: 0;
	margin: 0;
	padding: 8px 4px;
	border: 0;
	border-radius: 8px;
	background-color: transparent;
	color: inherit;
	box-shadow: none;
	font-size: 11.5px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: none;
	white-space: normal;
}
.dkf-app .dkf-tab.dkf-tab:hover, .dkf-app .dkf-tab.dkf-tab:focus { background-color: rgba(255, 255, 255, .08); color: inherit; }
.dkf-app .dkf-tab.dkf-tab.is-active { background-color: color-mix(in srgb, var(--dkf-accent) 18%, transparent); color: var(--dkf-accent); }

.dkf-app .dkf-page-input.dkf-page-input,
.dkf-app .dkf-search-input.dkf-search-input {
	min-height: 0;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 6px;
	background-color: rgba(255, 255, 255, .08);
	color: inherit;
	box-shadow: none;
	font-size: 14px;
	line-height: normal;
}
.dkf-app .dkf-page-input.dkf-page-input { width: 58px; height: 32px; padding: 0 6px; text-align: center; }
.dkf-app .dkf-search-input.dkf-search-input { width: auto; height: 38px; padding: 0 12px; }
.dkf-app.dkf-light .dkf-page-input.dkf-page-input,
.dkf-app.dkf-light .dkf-search-input.dkf-search-input { border-color: rgba(0, 0, 0, .15); background-color: #fff; }
.dkf-app .dkf-page-input.dkf-page-input:focus,
.dkf-app .dkf-search-input.dkf-search-input:focus { outline: none; border-color: var(--dkf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dkf-accent) 25%, transparent); }
.dkf-app .dkf-slider.dkf-slider { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
@media (max-width: 760px) { .dkf-app .dkf-page-input.dkf-page-input { width: 50px; } }

.dkf-app a.dkf-thumb, .dkf-app a.dkf-result, .dkf-app a.dkf-outline-item,
.dkf-app a.dkf-thumb:hover, .dkf-app a.dkf-result:hover { color: inherit; text-decoration: none; box-shadow: none; }
.dkf-app a.dkf-outline-item:hover { color: var(--dkf-accent); }

.dkf .dkf-launch.dkf-launch--cover,
.dkf .dkf-launch.dkf-launch--cover:hover,
.dkf .dkf-launch.dkf-launch--cover:focus {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	box-shadow: none;
	white-space: normal;
	line-height: inherit;
}
.dkf .dkf-launch.dkf-launch--btn {
	display: inline-flex;
	padding: 13px 22px;
	border: 0;
	border-radius: 6px;
	background-color: var(--dkf-accent);
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
}
.dkf .dkf-launch.dkf-launch--btn:hover,
.dkf .dkf-launch.dkf-launch--btn:focus { background-color: var(--dkf-accent); color: #fff; filter: brightness(1.08); }
