/*
 * Styles des shortcodes du plugin. Palette neutre reprise de la maquette
 * (maquette-video-cours/Main.dc.html) — à remplacer par la charte ANWA
 * définitive quand elle sera prête.
 */

:root {
	--anwa-bg: #faf8f5;
	--anwa-surface: #ffffff;
	--anwa-border: #e7e1d8;
	--anwa-text: #241f19;
	--anwa-text-soft: #6b6255;
	--anwa-accent: #d97b3f;
	--anwa-accent-soft: #f6e4d6;
}

.anwa-notice {
	color: var(--anwa-text-soft);
}

.anwa-mes-cours-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.anwa-cours-tile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--anwa-surface);
	border: 1px solid var(--anwa-border);
	border-radius: 12px;
	padding: 24px;
	color: var(--anwa-text);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.anwa-cours-tile:hover,
.anwa-cours-tile:focus-visible {
	border-color: var(--anwa-accent);
	box-shadow: 0 4px 16px rgba(36, 31, 25, 0.08);
	color: var(--anwa-text);
	text-decoration: none;
}

.anwa-cours-tile-nom {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
}

.anwa-cours-tile-horaire {
	margin: 0;
	font-size: 14px;
	color: var(--anwa-text-soft);
}

.anwa-cours-tile-niveau {
	margin: 0;
	display: inline-block;
	align-self: flex-start;
	font-size: 12px;
	font-weight: 600;
	color: var(--anwa-accent);
	background: var(--anwa-accent-soft);
	border-radius: 999px;
	padding: 4px 10px;
}

.anwa-videos-header {
	margin-bottom: 24px;
}

.anwa-videos-titre {
	margin: 0 0 4px;
	font-size: 28px;
	font-weight: 700;
}

.anwa-videos-sous-titre {
	margin: 0;
	color: var(--anwa-text-soft);
}

.anwa-videos-semaine {
	margin: 4px 0 0;
	font-weight: 600;
}

.anwa-semaines-header {
	margin-bottom: 24px;
}

.anwa-semaines-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

.anwa-semaine-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: var(--anwa-surface);
	border: 1px solid var(--anwa-border);
	border-radius: 12px;
	padding: 20px;
	color: var(--anwa-text);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.anwa-semaine-tile:hover,
.anwa-semaine-tile:focus-visible {
	border-color: var(--anwa-accent);
	box-shadow: 0 4px 16px rgba(36, 31, 25, 0.08);
	color: var(--anwa-text);
	text-decoration: none;
}

.anwa-semaine-tile-titre {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
}

.anwa-semaine-tile-compte {
	margin: 0;
	font-size: 13px;
	color: var(--anwa-text-soft);
}

.anwa-badge-nouveau {
	position: absolute;
	top: 14px;
	right: 14px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #fff;
	background: var(--anwa-accent);
	border-radius: 999px;
	padding: 3px 9px;
}

.anwa-message {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.anwa-message-ok {
	background: #e6f4ea;
	color: #1e7b34;
}

.anwa-message-erreur {
	background: #fbe7e7;
	color: #b3261e;
}

.anwa-form-ajout-video {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
	background: var(--anwa-surface);
	border: 1px solid var(--anwa-border);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 32px;
}

.anwa-form-ajout-video label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	color: var(--anwa-text-soft);
}

.anwa-form-ajout-video input[type="text"],
.anwa-form-ajout-video input[type="file"] {
	font-size: 14px;
	padding: 8px 10px;
	border: 1px solid var(--anwa-border);
	border-radius: 6px;
}

.anwa-form-ajout-video button {
	background: var(--anwa-accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 20px;
	font-weight: 600;
	cursor: pointer;
}

.anwa-form-ajout-video button:hover {
	background: #b85f2c;
}

.anwa-form-ajout-video button:disabled {
	background: var(--anwa-border);
	cursor: not-allowed;
}

.anwa-progress {
	width: 100%;
	height: 22px;
	background: var(--anwa-bg);
	border: 1px solid var(--anwa-border);
	border-radius: 999px;
	overflow: hidden;
}

.anwa-progress-bar {
	height: 100%;
	width: 0;
	background: var(--anwa-accent);
	color: #fff;
	font-size: 12px;
	line-height: 22px;
	text-align: center;
	white-space: nowrap;
	transition: width 0.2s ease;
}

.anwa-semaine {
	margin-bottom: 32px;
}

.anwa-semaine-titre {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--anwa-border);
}

.anwa-videos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.anwa-video-carte video {
	width: 100%;
	border-radius: 10px;
	background: #000;
	display: block;
}

.anwa-video-titre {
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 600;
}

.anwa-video-telecharger {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--anwa-accent);
}

.anwa-video-telecharger:hover {
	color: #b85f2c;
}
