/* Agenda (maquette : 1258 x 845 ; calendrier 774 + panneau 484 ; mobile 366 de large, empilé). */
.adr-agenda {
	display: flex;
	height: 845px;
	color: #232A55;
	font-family: "elza", sans-serif;
	font-weight: 500;
}
.adr-agenda p { margin: 0; }
.adr-agenda button { cursor: pointer; }

/* ----- Calendrier ----- */
.adr-agenda__calendrier {
	flex: 1 1 774px;
	min-width: 0;
	box-sizing: border-box;
	width: 774px;
	padding: 72px 0 0 40px;
	background: #F5F5F5;
	border-radius: 25px 0 0 25px;
}
.adr-agenda__haut {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	width: 689px;
	max-width: calc(100% - 45px);
}
.adr-agenda__mois {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 155px;
	height: 44px;
	margin-top: 1px !important;
	border: 1px solid #232A55;
	border-radius: 10px;
	font: 600 18px/24px "noka", sans-serif;
}
.adr-agenda__fleches { display: flex; gap: 10px; }
.adr-agenda .adr-agenda__fleches button {
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	background: none;
	color: #232A55;
	line-height: 0;
}
.adr-agenda__fleches svg { width: 100%; height: 100%; }
.adr-agenda__fleches svg circle { transition: fill .2s; }
.adr-agenda__fleches svg path { transition: stroke .2s; }
.adr-agenda__fleches button:hover svg circle,
.adr-agenda__fleches button:focus-visible svg circle { fill: #232A55; }
.adr-agenda__fleches button:hover svg path,
.adr-agenda__fleches button:focus-visible svg path { stroke: #FFFFFF; }
.adr-agenda__precedent svg { transform: rotate(180deg); }
.adr-agenda__legende {
	display: flex;
	gap: 8px;
	margin: 23px 0 0;
	padding: 0;
	list-style: none;
}
.adr-agenda__type {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 155px;
	height: 44px;
	border-radius: 10px;
	font: 600 18px/24px "noka", sans-serif;
}
/* Couleurs des types : réglées dans ADRpsy > Agenda (style en ligne). */
.adr-agenda__grille {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 91.43px));
	max-width: calc(100% - 45px);
	grid-auto-rows: 101.5px;
	gap: 9px 8.43px;
	margin-top: 51px;
}
.adr-agenda__jour {
	position: relative;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 1px solid #232A55;
	border-radius: 10px;
	background: transparent;
	text-align: left;
}
.adr-agenda button.adr-agenda__jour { padding: 0; border: 1px solid #232A55; border-radius: 10px; background: transparent; color: inherit; }
.adr-agenda button.adr-agenda__jour:hover,
.adr-agenda button.adr-agenda__jour:focus-visible,
.adr-agenda button.adr-agenda__jour.est-choisi { background: #FFFFFF; }
.adr-agenda__num {
	position: absolute;
	top: 5px;
	right: 9px;
	color: #86D0F4;
	font: 600 18px/24px "noka", sans-serif;
}
.adr-agenda__barres {
	position: absolute;
	left: 6px;
	bottom: 7.5px;
	display: flex;
	flex-direction: column-reverse;
	gap: 4px;
}
.adr-agenda__barre {
	display: block;
	width: 75px;
	height: 16px;
	border-radius: 5px;
}

/* ----- Panneau ----- */
.adr-agenda__panneau {
	position: relative;
	flex: none;
	box-sizing: border-box;
	width: 484px;
	display: flex;
	flex-direction: column;
	background: #E4E4E4;
	border-radius: 0 25px 25px 0;
}
.adr-agenda__invitation {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 363px;
	transform: translate(-50%, -50%);
	text-align: center;
	font-size: 18px;
	line-height: 24px;
}
.adr-agenda .adr-agenda__fermer {
	position: absolute;
	z-index: 2;
	top: 26px;
	right: 31px;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	background: none;
	color: #232A55;
	line-height: 0;
}
.adr-agenda__fermer svg { width: 100%; height: 100%; }
.adr-agenda__fermer:hover svg circle { fill: #232A55; }
.adr-agenda__fermer:hover svg path { stroke: #FFFFFF; }
.adr-agenda__details {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 96px 31px 36px 49px;
}
.adr-agenda__details.est-seul { display: flex; flex-direction: column; }
.adr-agenda__details.est-seul .adr-evt { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.adr-agenda__details.est-seul .adr-evt > * { align-self: stretch; }
.adr-agenda__details.est-seul a.adr-evt__bouton { align-self: flex-start; margin-top: auto; }
.adr-evt + .adr-evt { margin-top: 40px; padding-top: 30px; border-top: 1px solid #C9C9C9; }
.adr-evt__type {
	display: flex;
	align-items: center;
	gap: 12px;
	font: 600 23px/29px "noka", sans-serif;
}
.adr-evt__forme {
	flex: none;
	width: 37px;
	height: 19px;
	border-radius: 21.3px 2.7px 2px 1.3px / 19px 2px 2px 1.3px;
}
.adr-evt__bloc { margin-top: 22px; }
.adr-evt__bloc--date { margin-top: 16px; }
.adr-evt__label,
.adr-evt__titre { font: 600 23px/29px "noka", sans-serif; }
.adr-evt__titre { margin-top: 11px !important; }
.adr-evt__valeur,
.adr-evt__texte { font-size: 18px; line-height: 24px; white-space: pre-line; }
.adr-evt__texte { margin-top: 14px !important; }
.adr-evt__colonnes { display: block; }
.adr-agenda a.adr-evt__bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 155px;
	height: 44px;
	margin-top: 30px;
	padding: 0 16px;
	border: 2px solid #232A55;
	border-radius: 10px;
	background: #232A55;
	color: #FFFFFF;
	font: 600 18px/24px "noka", sans-serif;
	text-decoration: none;
	transition: background-color .3s, color .3s;
}
.adr-agenda a.adr-evt__bouton:hover,
.adr-agenda a.adr-evt__bouton:focus-visible { background: transparent; color: #232A55; }

/* ----- Tablette large (1025 à 1279) : calendrier fluide et panneau côte à côte, comme l'ordinateur ----- */
@media (min-width: 1025px) and (max-width: 1279px) {
	.adr-agenda { height: auto; min-height: 700px; }
	.adr-agenda__calendrier { width: auto; padding: 50px 0 40px 30px; }
	.adr-agenda__haut { width: auto; }
	.adr-agenda__grille { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 88px; }
	.adr-agenda__panneau { width: 38%; }
	.adr-agenda__invitation { width: 80%; }
}

/* ----- Tablette (768 à 1024) : calendrier et panneau empilés sur toute la largeur ----- */
@media (max-width: 1024px) {
	.adr-agenda { flex-direction: column; height: auto; }
	.adr-agenda__calendrier { width: 100%; padding: 40px; border-radius: 25px 25px 0 0; }
	.adr-agenda__haut { width: auto; }
	.adr-agenda__grille { grid-template-columns: repeat(7, minmax(0, 1fr)); }
	.adr-agenda__panneau { width: 100%; min-height: 220px; border-radius: 0 0 25px 25px; }
}

/* ----- Mobile (maquette 402 : bloc de 366) ----- */
@media (max-width: 767px) {
	.adr-agenda { max-width: 366px; margin: 0 auto; }
	.adr-agenda__calendrier { height: 399px; padding: 21.8px 18.8px 0 12.7px; border-radius: 12.5px 12.5px 0 0; }
	.adr-agenda__mois { width: 108.3px; height: 30.7px; margin-top: 0 !important; border-width: 1.3px; border-radius: 7px; font-size: 15px; line-height: 21px; }
	.adr-agenda__fleches { gap: 6.6px; margin-top: -.1px; }
	.adr-agenda .adr-agenda__fleches button { width: 30.7px; height: 30.7px; }
	.adr-agenda__legende { gap: 6px; margin-top: 16.5px; }
	.adr-agenda__type { width: auto; height: 30.7px; padding: 0 9px; border-radius: 7px; font-size: 15px; line-height: 21px; }
	.adr-agenda__type--webinaire { width: 108.3px; padding: 0; }
	.adr-agenda__type--manifestation { width: 124px; padding: 0; }
	.adr-agenda__grille { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 48px; gap: 4.25px 3.83px; margin-top: 11.1px; }
	.adr-agenda__jour,
	.adr-agenda button.adr-agenda__jour { border-width: .5px; border-radius: 4.7px; }
	.adr-agenda__num { top: 3px; right: 5px; font-size: 15px; line-height: 21px; }
	.adr-agenda__barres { left: 4px; bottom: 4px; gap: 2px; }
	.adr-agenda__barre { width: 36px; height: 13px; border-radius: 2.4px; }
	.adr-agenda__panneau { position: relative; z-index: 1; min-height: 447px; margin-top: -9px; border-radius: 0 12.5px 12.5px 0; }
	.adr-agenda__invitation { top: 138px; width: 284px; transform: translateX(-50%); font-size: 15px; line-height: 21px; }
	.adr-agenda .adr-agenda__fermer { top: 5px; right: 16px; width: 30px; height: 30px; }
	.adr-agenda__details { padding: 14px 16px 20px 13px; }
	.adr-evt__type { gap: 9px; font-size: 16px; line-height: 22px; }
	.adr-evt__forme { width: 26.4px; height: 13.6px; border-radius: 15.2px 1.9px 1.5px 1px / 13.6px 1.5px 1.5px 1px; }
	.adr-evt__bloc { margin-top: 18px; }
	.adr-evt__bloc--date { margin-top: 8px; }
	.adr-evt__label, .adr-evt__titre { font-size: 16px; line-height: 22px; letter-spacing: .16px; }
	.adr-evt__titre { margin-top: 12px !important; }
	.adr-evt__valeur, .adr-evt__texte { font-size: 15px; line-height: 21px; letter-spacing: -.3px; }
	.adr-evt__texte { margin-top: 4px !important; }
	.adr-evt__colonnes { display: grid; grid-template-columns: 192px 1fr; }
	.adr-evt__colonnes .adr-evt__bloc { margin-top: 18px; }
	.adr-agenda a.adr-evt__bouton { height: 31px; min-width: 108px; margin-top: 20px; border-radius: 7px; font-size: 15px; line-height: 21px; }
}
