/**
 * Deekay School — pages auto (profs / styles / salles)
 * Thème sombre Deekay, cohérent avec le planning.
 * Les cartes ont un fond sombre plein → lisibles quel que soit le fond de la page.
 */

.dks-cards,
.dks-term {
	--dks-accent: #FFE62B;
	--dks-gold: #E4C98C;
	color: #F3F4F6;
}

/* ============ Titre de section unifié (partout pareil) ============ */
.dks-heading {
	text-align: center;
	margin: 0 auto 34px;
	max-width: 1160px;
}
.dks-heading-title {
	margin: 0;
	color: #FFE62B;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.1;
}
.dks-heading-sub {
	margin: 12px 0 0;
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	opacity: .9;
}

/* ============ Popup / modal ============ */
.dks-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.dks-modal[hidden] { display: none; }
/* Repli sans JavaScript : l'ancre #id ouvre la modale */
.dks-modal:target { display: flex; }
.dks-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .72);
	backdrop-filter: blur(3px);
}
.dks-modal-box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: 88vh;
	overflow-y: auto;
	background: #201b18;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
	padding: 32px 28px;
	text-align: center;
	color: #F3F4F6;
}
.dks-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	opacity: .7;
}
.dks-modal-close:hover { opacity: 1; }
.dks-modal-photo {
	width: 150px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 18px;
	border: 1px solid rgba(255, 255, 255, .12);
}
.dks-modal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dks-modal-name {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: #fff;
}
.dks-modal-styles {
	margin-top: 6px;
	color: #FFE62B;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: .02em;
}
.dks-modal-bio {
	margin-top: 16px;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .85);
	text-align: left;
}
.dks-modal-courses-title {
	margin: 22px 0 10px;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: rgba(255, 255, 255, .6);
	text-align: left;
}
.dks-modal-courses {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
}
.dks-modal-courses li {
	display: flex;
	gap: 10px;
	align-items: baseline;
	padding: 8px 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 14px;
	flex-wrap: wrap;
}
.dks-mc-day { font-weight: 800; text-transform: uppercase; font-size: 12px; min-width: 78px; }
.dks-mc-time { color: #FFE62B; font-weight: 700; min-width: 90px; }
.dks-mc-title { font-weight: 600; }

/* ============ Listing PROFS (photos rondes) ============ */
.dks-profs {
	--dks-accent: #FFE62B;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 44px 24px;
	margin: 32px auto;
	max-width: 1160px;
	color: #F3F4F6;
}
.dks-prof {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;
}
.dks-prof-photo {
	width: 190px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 16px;
	background: linear-gradient(135deg, #2a2420, #1c1816);
	border: 1px solid rgba(255, 255, 255, .1);
}
.dks-prof-photo img,
.dks-prof-ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.dks-prof-name {
	font-size: 22px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .02em;
	line-height: 1.15;
	color: #fff;
}
.dks-prof-styles {
	margin-top: 8px;
	color: var(--dks-accent);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	font-size: 14px;
}
.dks-prof-more {
	margin-top: 10px;
	color: rgba(255, 255, 255, .8);
	font-size: 14px;
}
.dks-prof:hover .dks-prof-more { color: var(--dks-accent); }
.dks-prof:hover .dks-prof-photo { border-color: rgba(255, 255, 255, .35); }

@media (max-width: 900px) {
	.dks-profs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
	.dks-profs { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
	.dks-prof-photo { width: 140px; }
	.dks-prof-name { font-size: 18px; }
}

/* ============ Listing STYLES (liste : image ronde + nom + description) ============ */
.dks-styles {
	max-width: 1000px;
	margin: 32px auto;
	color: #F3F4F6;
}
.dks-style-row {
	display: flex;
	gap: 34px;
	align-items: center;
	padding: 26px 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
}
.dks-style-row:first-child { border-top: 0; }
.dks-style-photo {
	flex: 0 0 140px;
	width: 140px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, #2a2420, #1c1816);
	border: 1px solid rgba(255, 255, 255, .1);
}
.dks-style-photo img,
.dks-style-ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.dks-style-body { flex: 1 1 auto; }
.dks-style-name {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
}
.dks-style-desc {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .82);
}
.dks-style-desc p { margin: 0 0 8px; }
.dks-style-desc p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
	.dks-style-row { flex-direction: column; text-align: center; gap: 18px; }
	.dks-style-photo { flex-basis: 120px; width: 120px; }
	.dks-style-name { font-size: 22px; }
}

/* ============ Listing SALLES (2 colonnes + carte) ============ */
.dks-rooms {
	max-width: 1100px;
	margin: 32px auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 44px;
	color: #F3F4F6;
}
.dks-room-label {
	color: #FFE62B;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-size: 14px;
}
.dks-room-name {
	margin: 6px 0 10px;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.15;
}
.dks-room-addr {
	color: rgba(255, 255, 255, .8);
	line-height: 1.5;
	margin-bottom: 16px;
}
.dks-room-map {
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	margin-bottom: 16px;
	border: 1px solid rgba(255, 255, 255, .12);
	background: rgba(255, 255, 255, .04);
}
.dks-room-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.dks-room-btns {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.dks-room-btn {
	display: block;
	text-align: center;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	border-radius: 999px;
	padding: 13px 20px;
	text-decoration: none;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 13px;
}
.dks-room-btn:hover { background: rgba(255, 255, 255, .18); }
.dks-room-btn-book {
	background: var(--dks-accent);
	color: #1c1816;
}
.dks-room-btn-book:hover { background: var(--dks-accent); opacity: .88; }
.dks-room-access {
	margin-top: 16px;
	color: rgba(255, 255, 255, .8);
	line-height: 1.6;
	font-size: 14px;
}
.dks-room-access p { margin: 0 0 6px; }

/* ============ Grille de cartes (listing générique) ============ */
.dks-cards {
	display: grid;
	grid-template-columns: repeat(var(--dks-cols, 3), 1fr);
	gap: 22px;
	margin: 24px 0;
}
.dks-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border-radius: 16px;
	overflow: hidden;
	background: #201b18;
	border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
	transition: transform .15s ease, border-color .15s ease;
}
.dks-card:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, .3);
}
.dks-card-media {
	aspect-ratio: 4 / 3;
	background: rgba(255, 255, 255, .05);
	overflow: hidden;
}
.dks-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.dks-card-ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2a2420, #1c1816);
}
.dks-card-body { padding: 16px 18px 20px; }
.dks-card-title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: #fff;
}
.dks-card-desc {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, .7);
}
.dks-card-count {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--dks-accent);
}

/* ============ Page individuelle d'un terme ============ */
.dks-term-head {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	margin-bottom: 34px;
	flex-wrap: wrap;
}
.dks-term-photo {
	flex: 0 0 280px;
	max-width: 280px;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .12);
}
.dks-term-photo img { width: 100%; height: auto; display: block; }
.dks-term-intro { flex: 1 1 320px; }
.dks-term-title {
	margin: 0 0 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: #fff;
}
.dks-term-address {
	font-size: 15px;
	color: rgba(255, 255, 255, .8);
	margin: 0 0 14px;
}
.dks-term-address a { color: var(--dks-accent); }
.dks-term-text {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .85);
}

/* Liste des cours du terme */
.dks-term-courses-title {
	margin: 28px 0 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .02em;
	font-size: 20px;
	color: #fff;
}
.dks-term-courses {
	list-style: none;
	margin: 0;
	padding: 0;
}
.dks-term-course {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 14px 4px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	flex-wrap: wrap;
}
.dks-tc-day {
	font-weight: 800;
	text-transform: uppercase;
	min-width: 90px;
	font-size: 13px;
	letter-spacing: .03em;
	color: #fff;
}
.dks-tc-time {
	font-variant-numeric: tabular-nums;
	color: var(--dks-accent);
	font-weight: 700;
	min-width: 100px;
}
.dks-tc-title { font-weight: 700; color: #fff; }
.dks-tc-meta {
	color: rgba(255, 255, 255, .6);
	font-size: 14px;
}

.dks-empty {
	color: rgba(255, 255, 255, .6);
	padding: 16px 0;
}

/* ============ Tarifs (lignes) ============ */
.dks-tarifs {
	--dks-accent: #FFE62B;
	max-width: 1160px;
	margin: 0 auto;
	color: #F3F4F6;
}
.dks-tarifs-toggle {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 14px;
	cursor: pointer;
	color: rgba(255, 255, 255, .85);
}
/* Interrupteur (switch) */
.dks-tarifs-toggle input {
	appearance: none;
	-webkit-appearance: none;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .22);
	position: relative;
	cursor: pointer;
	transition: background .2s ease;
	flex: 0 0 auto;
}
.dks-tarifs-toggle input::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s ease;
}
.dks-tarifs-toggle input:checked { background: var(--dks-accent); }
.dks-tarifs-toggle input:checked::after { transform: translateX(20px); }
.dks-tarif-row {
	display: flex;
	gap: 20px;
	align-items: stretch;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 14px;
	padding: 18px 22px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.dks-tarif-head {
	flex: 1 1 220px;
	min-width: 200px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.dks-tarif-name {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: #fff;
	line-height: 1.2;
}
.dks-tarif-desc {
	margin: 4px 0 0;
	font-size: 13px;
	color: rgba(255, 255, 255, .55);
}
.dks-tarif-cats {
	flex: 2 1 520px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.dks-tarif-cat { text-align: center; }
.dks-tc-label {
	font-weight: 800;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: .03em;
	color: #fff;
	padding-bottom: 8px;
	margin-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.dks-tc-prices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	align-items: center;
}
.dks-tc-normal {
	color: rgba(255, 255, 255, .6);
	font-size: 14px;
}
.dks-tc-promo { display: flex; flex-direction: column; align-items: center; }
.dks-tc-promo-label {
	color: var(--dks-accent);
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	line-height: 1.2;
}
.dks-tc-promo-price { color: #fff; font-weight: 800; font-size: 14px; }
.dks-tc-empty { color: rgba(255, 255, 255, .35); }

@media (max-width: 720px) {
	.dks-tarif-row { flex-direction: column; gap: 12px; }
	.dks-tarif-head { text-align: center; }
	.dks-tarif-cats { flex-basis: auto; }
	.dks-tc-label { font-size: 11px; }
}

/* ============ Conditions & rabais (accordéons) ============ */
.dks-conditions {
	max-width: 1160px;
	margin: 28px auto 0;
}
.dks-cond {
	background: #fff;
	color: #1c1816;
	border-radius: 10px;
	margin-bottom: 10px;
	overflow: hidden;
}
.dks-cond-q {
	list-style: none;
	cursor: pointer;
	padding: 16px 22px;
	font-weight: 700;
	font-size: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.dks-cond-q::-webkit-details-marker { display: none; }
.dks-cond-q::after {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-right: 2px solid #1c1816;
	border-bottom: 2px solid #1c1816;
	transform: rotate(45deg);
	transition: transform .2s ease;
	margin-top: -3px;
}
.dks-cond[open] .dks-cond-q::after { transform: rotate(225deg); margin-top: 3px; }
.dks-cond-a {
	padding: 0 22px 18px;
	color: #555;
	font-size: 14px;
	line-height: 1.6;
}
.dks-cond-a p { margin: 0 0 8px; }
.dks-cond-a p:last-child { margin-bottom: 0; }

/* ============ Location de salle ============ */
.dks-location {
	--dks-accent: #FFE62B;
	color: #F3F4F6;
}
.dks-rental-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
	margin: 24px 0;
}
.dks-rental {
	background: #201b18;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 16px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
	padding: 20px;
	text-align: center;
}
.dks-rental-date {
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: #fff;
}
.dks-rental-time {
	color: var(--dks-accent);
	font-weight: 800;
	margin-top: 4px;
}
.dks-rental-room {
	display: inline-block;
	margin-top: 12px;
	padding: 6px 15px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 999px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, .9);
}
.dks-rental-price {
	margin-top: 12px;
	font-size: 15px;
	color: rgba(255, 255, 255, .85);
}
.dks-rental-btn {
	display: inline-block;
	margin-top: 16px;
	padding: 11px 24px;
	background: var(--dks-accent);
	color: #1c1816;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 13px;
}
.dks-rental-btn:hover { opacity: .88; }

@media (max-width: 640px) {
	.dks-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
	.dks-card-title { font-size: 16px; }
	.dks-term-photo { flex-basis: 100%; max-width: 100%; }
	.dks-tc-day, .dks-tc-time { min-width: 0; }
}
