/**
 * Page « Agenda » : reprise fidèle de la maquette validée (ordinateur et smartphone).
 *
 * @package ReveNomades
 */

.ag-k {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--kick);
}

.ag-k::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dot);
	flex: 0 0 auto;
}


/* ---------- En-tête : le titre, les catégories, le choix de la vue ---------- */

.ag-tete {
	position: relative;
	padding: clamp(140px,11.5vw,176px) 0 clamp(34px,3.4vw,50px);
}

.ag-tete-in {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(14px,1.6vw,22px);
}

.ag-title {
	margin: 0;
	font-size: clamp(48px,7vw,120px);
	line-height: .86;
}

.ag-lead {
	margin: 0;
	max-width: 56ch;
	font-size: clamp(14px,1.15vw,17px);
	line-height: 1.75;
}

.ag-tete .ag-tools {
	align-self: stretch;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px 24px;
	margin-top: clamp(12px,1.8vw,26px);
	padding-top: clamp(16px,1.6vw,22px);
	border-top: 1px solid var(--line);
}

.ag-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ag-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--fg);
	cursor: pointer;
	transition: background .25s,color .25s,border-color .25s;
}

.ag-chip:hover {
	border-color: var(--fg);
}

.ag-chip.on {
	background: var(--fg);
	color: var(--bg);
	border-color: var(--fg);
}

.ag-sw {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--cb);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
	flex: 0 0 auto;
}

.ag-sw.none {
	display: none;
}

.ag-views {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--fg);
	border-radius: 999px;
}

.ag-vbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fg);
	cursor: pointer;
}

.ag-vbtn.on {
	background: var(--fg);
	color: var(--bg);
}


/* ---------- Une couleur du site par catégorie ---------- */

.c-imagine {
	--cb: var(--verm-fond);
	--ct: var(--c-verm-texte);
}

.c-voyage {
	--cb: var(--c-tilleul);
	--ct: var(--c-foret);
}

.c-road {
	--cb: var(--c-ete);
	--ct: var(--c-carmin);
}

.c-rencontre {
	--cb: var(--c-nuit);
	--ct: var(--c-papier);
}

.c-solidaire {
	--cb: var(--c-soleil);
	--ct: var(--c-carmin);
}

.c-ponctuel {
	--cb: var(--c-foret);
	--ct: var(--c-papier);
}


/* ---------- Vue Calendrier : le mois, du lundi au dimanche ---------- */

.ag-main {
	position: relative;
	padding: clamp(36px,4vw,60px) 0 clamp(80px,8vw,120px);
}

.ag-main .blk.inl {
	margin: 0 0 20px;
}

.ag-cal-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	margin-bottom: clamp(14px,1.6vw,22px);
}

.ag-cal-nav {
	display: flex;
	align-items: center;
	gap: clamp(10px,1.4vw,20px);
}

.ag-month {
	margin: 0;
	min-width: 8ch;
	text-align: center;
	font-size: clamp(32px,3.4vw,58px);
	line-height: .9;
}

.ag-nav {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: transparent;
	color: var(--fg);
	cursor: pointer;
	transition: background .25s,color .25s,border-color .25s;
}

.ag-nav:hover {
	background: var(--fg);
	color: var(--bg);
	border-color: var(--fg);
}

.ag-nav.off {
	opacity: .3;
	pointer-events: none;
}

.ag-today {
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--fg);
	cursor: pointer;
}

.ag-today:hover {
	border-color: var(--fg);
}

.ag-grid {
	display: grid;
	grid-template-columns: repeat(7,minmax(0,1fr));
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.ag-wd {
	padding: 10px 10px 8px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	color: var(--fg2);
}

.ag-c {
	position: relative;
	min-height: clamp(84px,7.6vw,116px);
	padding: 8px 0 10px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ag-c.we {
	background: color-mix(in srgb,var(--fg) 3%,transparent);
}

.ag-c.out {
	background: color-mix(in srgb,var(--fg) 6%,transparent);
}

.ag-dn {
	align-self: flex-start;
	margin: 0 8px;
	padding: 2px 7px;
	border-radius: 999px;
	color: var(--fg2);
	font-size: 11px;
}

.ag-c.has .ag-dn {
	color: var(--fg);
}

.ag-c.today .ag-dn {
	background: var(--verm);
	color: var(--c-blanc);
}

.ag-bar {
	position: relative;
	display: block;
	height: 26px;
	margin: 0 -1px;
	padding: 0;
	border: 0;
	background: var(--cb);
	color: var(--ct);
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.ag-bar.s {
	margin-left: 6px;
	border-radius: 4px 0 0 4px;
}

.ag-bar.e {
	margin-right: 6px;
	border-radius: 0 4px 4px 0;
}

.ag-bar.s.e {
	border-radius: 4px;
}

.ag-bar.on {
	outline: 2px solid var(--fg);
	outline-offset: 2px;
}

.ag-bar.past {
	opacity: .45;
}

.ag-bar-t {
	position: absolute;
	z-index: 2;
	left: 0;
	top: 0;
	bottom: 0;
	width: calc(var(--span) * 100% + (var(--span) - 1) * 2px);
	display: flex;
	align-items: center;
	padding: 0 10px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-family: var(--f-sub);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: 13px;
	line-height: 1;
	pointer-events: none;
	box-sizing: border-box;
}


/* ---------- Les rendez-vous, en lignes (sous le calendrier, et vue Liste) ---------- */

.ag-month-list {
	margin-top: clamp(28px,3vw,44px);
}

.ag-count {
	display: block;
	margin-bottom: 12px;
	color: var(--fg2);
}

.ag-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

.ag-row {
	display: grid;
	grid-template-columns: clamp(100px,10vw,150px) minmax(0,1fr) auto;
	align-items: center;
	column-gap: clamp(16px,2.4vw,40px);
	row-gap: 10px;
	padding: clamp(16px,1.6vw,22px) clamp(8px,1vw,14px);
	border-bottom: 1px solid var(--line);
	transition: background .35s;
}

.ag-row.sel {
	background: color-mix(in srgb,var(--fg) 8%,transparent);
}

.ag-row.past {
	opacity: .55;
}

.ag-d {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ag-d-n {
	font-family: var(--f-title);
	font-weight: 700;
	font-size: clamp(32px,3vw,50px);
	line-height: .85;
	white-space: nowrap;
}

.ag-d-m {
	color: var(--fg2);
}

.ag-r-main {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ag-cat {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--fg2);
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 26px;
	padding: 0 10px;
	border: 1px solid currentcolor;
	border-radius: 999px;
	font-family: var(--f-label);
	font-weight: var(--l-weight);
	font-size: 10px;
	letter-spacing: var(--l-track);
	text-transform: uppercase;
	white-space: nowrap;
}

.ag-cat .tag {
	min-height: 22px;
	padding: 0 8px;
	font-size: 9px;
}

.tag.ex {
	border-style: dashed;
}

.ag-r-t {
	font-family: var(--f-sub);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: clamp(19px,1.7vw,26px);
	line-height: 1.05;
}

.ag-r-m {
	font-size: clamp(13px,1vw,15px);
	line-height: 1.55;
	color: var(--fg2);
}

.ag-go {
	white-space: nowrap;
}

.ag-empty {
	margin: 0;
	font-size: clamp(15px,1.2vw,18px);
	line-height: 1.6;
}

.ag-after {
	margin-top: 8px;
}

.ag-mo {
	margin-bottom: clamp(36px,4vw,56px);
}

.ag-mo-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 12px;
}

.ag-mo-head .mono {
	color: var(--fg2);
}

.ag-mo-t {
	margin: 0;
	font-size: clamp(30px,3vw,48px);
	line-height: .9;
}

.ag-note {
	margin: clamp(30px,3vw,44px) 0 0;
	max-width: 70ch;
	font-size: 13px;
	line-height: 1.8;
	color: var(--fg2);
}

.ag-note a {
	color: var(--fg);
}




/* ---------- Petits écrans ---------- */


@media (max-width: 899px) {
	.ag-tete {
		padding-top: clamp(120px,30vw,150px);
	}

	.ag-row {
		grid-template-columns: auto minmax(0,1fr);
	}

	.ag-go {
		grid-column: 2;
		justify-self: start;
	}
}


@media (max-width: 640px) {
	.ag-title {
		font-size: clamp(44px,13vw,72px);
	}

	.ag-chip {
		min-height: 32px;
		padding: 0 11px;
	}

	.ag-month {
		font-size: clamp(28px,8.4vw,40px);
		min-width: 0;
	}

	.ag-wd {
		padding: 8px 0;
		text-align: center;
		font-size: 9px;
	}

	.ag-c {
		min-height: 56px;
		padding: 6px 0;
		align-items: stretch;
	}

	.ag-dn {
		align-self: center;
		margin: 0;
		padding: 1px 6px;
		font-size: 10px;
	}

	.ag-bar {
		height: 6px;
	}

	.ag-bar.s {
		margin-left: 4px;
	}

	.ag-bar.e {
		margin-right: 4px;
	}

	.ag-bar-t {
		display: none;
	}

	.ag-row {
		grid-template-columns: 84px minmax(0,1fr);
		column-gap: 14px;
	}

	.ag-d-n {
		font-size: 28px;
	}
}

/* Repère « Exemple » : seulement pour l’équipe connectée (comme les repères de la maquette). */
.ag-cat .tag.ex {
	display: none;
}

.rn-reperes .ag-cat .tag.ex {
	display: inline-flex;
}

/* Fine bande sombre entre l’en-tête et le calendrier (maquette). */
.ag-tete {
	margin-bottom: clamp(8px, .9vw, 14px);
}
