/* Bloc t2m/rdv — maquette : .ct-g, .ms, .tile, .day, .ms-sum, .who-card (constante CSS de v2.py). */
.t2m-rdv__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
}
.t2m-rdv__grid > .t2m-ms { grid-column: span 3; }
.t2m-rdv__grid--full > .t2m-ms { grid-column: 1 / -1; }
.t2m-rdv__aside {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Carte du formulaire */
.t2m-ms {
	display: flex;
	flex-direction: column;
	gap: 28px;
	min-height: 520px;
	padding: 32px 36px 36px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--l);
	box-shadow: 0 30px 60px -40px rgba(22, 24, 29, .35);
}
.t2m-ms [hidden] { display: none !important; }
.t2m-ms__head { display: flex; flex-direction: column; gap: 12px; }
.t2m-ms__meta { display: flex; justify-content: space-between; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.t2m-ms__meta span { color: var(--wp--preset--color--red); }
.t2m-ms__meta span:first-child { font-weight: 600; }
.t2m-ms__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.t2m-ms__bar i { position: relative; height: 4px; overflow: hidden; border-radius: 2px; background: #E6E7EA; }
.t2m-ms__bar i::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .45s var(--wp--custom--ease);
}
.t2m-ms__bar i[data-on="true"]::after { transform: scaleX(1); }
@keyframes t2m-ms-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.t2m-ms__step { display: flex; flex-direction: column; gap: 22px; animation: t2m-ms-in .4s var(--wp--custom--ease) both; }
.t2m-ms__title { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 700; color: var(--wp--preset--color--ink); }
.t2m-ms__title:focus { outline: none; }
.t2m-ms__title:focus-visible { outline: 3px solid var(--wp--custom--color--focus); outline-offset: 4px; }
.t2m-ms__hint, .t2m-ms__note { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.t2m-ms fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.t2m-ms legend { margin-bottom: 12px; padding: 0; font-size: 16px; font-weight: 600; color: var(--wp--preset--color--ink); }

/* Tuiles (besoin, format) */
.t2m-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.t2m-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 20px;
	text-align: left;
	border: 1px solid var(--wp--custom--color--card-border-hover);
	border-radius: var(--wp--custom--radius--l);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--sans);
	cursor: pointer;
	transition: border-color .2s, box-shadow .25s, transform .25s var(--wp--custom--ease), background-color .2s;
}
.t2m-tile:hover { border-color: var(--wp--preset--color--ink); transform: translateY(-3px); box-shadow: 0 16px 28px -22px rgba(22, 24, 29, .45); }
.t2m-tile__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--red-pale);
	color: var(--wp--preset--color--red);
	transition: background-color .2s, color .2s;
}
.t2m-tile:hover .t2m-tile__icon,
.t2m-tile[aria-pressed="true"] .t2m-tile__icon { background: var(--wp--preset--color--red); color: var(--wp--preset--color--white); }
.t2m-tile__text { display: flex; flex-direction: column; gap: 4px; }
.t2m-tile strong { font-size: 17px; }
.t2m-tile em { font-style: normal; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.t2m-tile[aria-pressed="true"] { border-color: var(--wp--preset--color--red); box-shadow: 0 0 0 1px var(--wp--preset--color--red) inset; background: #FFF8F8; }
.t2m-tile:focus-visible, .t2m-day:focus-visible, .t2m-ms__back:focus-visible, .t2m-btn:focus-visible {
	outline: 3px solid var(--wp--custom--color--focus);
	outline-offset: 3px;
}

/* Jours */
.t2m-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.t2m-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px 6px;
	border: 1px solid var(--wp--custom--color--card-border-hover);
	border-radius: var(--wp--custom--radius--l);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--sans);
	cursor: pointer;
	transition: border-color .2s, background-color .2s, transform .2s;
}
.t2m-day:hover { border-color: var(--wp--preset--color--ink); transform: translateY(-2px); }
.t2m-day small { font-size: 13px; color: var(--wp--preset--color--muted); text-transform: capitalize; }
.t2m-day b { font-size: 22px; line-height: 1.2; font-weight: 700; }
.t2m-day[aria-pressed="true"] { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }
.t2m-day[aria-pressed="true"] small { color: var(--wp--preset--color--on-dark); }

/* « Une autre date » : calendrier du navigateur, du lundi au vendredi, jusqu'à « Dates possibles » mois. */
.t2m-other { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 12px; }
.t2m-other__btn { gap: 8px; }
.t2m-other__field { width: min(100%, 320px); }
.t2m-other__field input { min-height: 50px; }

/* Navigation des étapes */
.t2m-ms__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 8px; }
.t2m-ms__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	border: 0;
	background: none;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
}
.t2m-ms__back:hover { color: var(--wp--preset--color--ink); }
/* Récapitulatif, champs */
.t2m-ms__sum {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 16px 18px;
	border-radius: var(--wp--custom--radius--m);
	background: var(--wp--preset--color--soft);
}
.t2m-ms__sum div { display: flex; flex-direction: column; gap: 2px; }
.t2m-ms__sum dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--wp--preset--color--muted); }
.t2m-ms__sum dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--wp--preset--color--ink); }
.t2m-ms__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Confirmation */
.t2m-ms__done { align-items: flex-start; }
.t2m-ms__done .t2m-ms__sum { align-self: stretch; }
.t2m-ms__done p { margin: 0; }
.t2m-ms__ok {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #E8F3EC;
	color: #1F7A45;
	animation: t2m-ok-pop .5s cubic-bezier(.3, 1.5, .5, 1) both;
}
@keyframes t2m-ok-pop { from { transform: scale(.4); opacity: 0; } }

/* Colonne « Vous échangez avec Sedat » */
.t2m-who { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--wp--custom--radius--l); background: var(--wp--preset--color--soft); }
.t2m-who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.t2m-who strong { display: block; font-size: 16px; line-height: 1.35; color: var(--wp--preset--color--ink); }
.t2m-who span { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.t2m-rdv__checks, .t2m-rdv__contact { list-style: none; margin: 0; padding: 0; }
.t2m-rdv__checks { display: flex; flex-direction: column; gap: 10px; }
.t2m-rdv__checks li { display: flex; gap: 12px; align-items: flex-start; }
.t2m-rdv__checks .t2m-i { margin-top: 4px; color: var(--wp--custom--color--success); flex: 0 0 auto; }
.t2m-rdv__contact { border-top: 1px solid var(--wp--preset--color--line); }
.t2m-rdv__contact li { display: flex; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.t2m-rdv__contact li:last-child { align-items: flex-start; }
.t2m-rdv__contact .t2m-i { flex: 0 0 auto; }
.t2m-rdv__contact a { color: var(--wp--preset--color--ink); }

@media (max-width: 1100px) {
	.t2m-rdv__grid > .t2m-ms, .t2m-rdv__aside { grid-column: 1 / -1; }
	.t2m-rdv__aside { position: static; }
}
@media (max-width: 640px) {
	.t2m-ms { min-height: 0; padding: 22px 18px 24px; }
	.t2m-tiles { grid-template-columns: 1fr; }
	.t2m-tile { flex-direction: row; align-items: center; padding: 14px 16px; }
	.t2m-tile__icon { flex: 0 0 auto; }
	.t2m-days { grid-template-columns: repeat(3, 1fr); }
	.t2m-ms__title { font-size: 22px; }
	.t2m-ms__nav .t2m-btn { flex: 1; }
	.t2m-ms__row { grid-template-columns: 1fr; }
}

#rdv { scroll-margin-top: 96px; }
