/* Pour Toujours — « Se marier au palais de justice » (palais/template.php).
 * S'ajoute à guide/pt-guide.css et budget/pt-budget.css (haut de page, carte, tableau, FAQ). Plat, compact. */

.ptp .ptp-alt {
	background: #f7f3f1; /* Sable : fond neutre du site, ni menthe ni saumon. */
}

.ptp .ptt-link {
	color: var(--ptb-ink);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--ptb-rose);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* --- Calculateur --------------------------------------------------------------- */

/* Champ date : même présentation que l'échéancier (« Choisir une date », icône calendrier). */
.ptp .ptt-date {
	position: relative;
	display: block;
	min-height: 44px;
}

.ptp .ptt-date input {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	min-height: 44px;
	padding-right: 36px;
	font-size: 21px;
	cursor: pointer;
}

.ptp .ptt-date input::-webkit-date-and-time-value {
	text-align: left;
}

.ptp .ptt-date input::-webkit-calendar-picker-indicator {
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	opacity: 0;
	cursor: pointer;
}

.ptp .ptt-date input:invalid:not(:focus):not(.has-value)::-webkit-datetime-edit {
	color: transparent;
}

.ptp .ptt-date__ph {
	display: none;
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	color: #7d8d86;
	font-size: 21px;
	font-weight: 700;
	pointer-events: none;
}

.ptp .ptt-date input:invalid:not(:focus) ~ .ptt-date__ph {
	display: block;
}

.ptp .ptt-date input.has-value ~ .ptt-date__ph {
	display: none;
}

.ptp .ptt-date__icon {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	color: var(--ptb-green);
	pointer-events: none;
}


.ptp-result {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 16px 0 0;
}

.ptp-result[hidden] {
	display: none;
}

.ptp .ptp-result__statut {
	margin: 0;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
}

.ptp .ptp-result__statut.is-oui {
	background: var(--ptb-mint-2);
	color: var(--ptb-green);
}

.ptp .ptp-result__statut.is-non {
	background: var(--ptb-rose-tint);
	color: #8a2f20;
}

.ptp .ptp-result__liste {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.ptp .ptp-result__liste div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 12px;
	padding: 9px 0;
	border-top: 1px solid var(--ptb-line);
}

.ptp .ptp-result__liste dt {
	color: var(--ptb-muted);
	font-size: 14px;
}

.ptp .ptp-result__liste dd {
	margin: 0;
	color: var(--ptb-ink);
	font-size: 15px;
	font-weight: 700;
}

.ptp .ptp-result__note {
	margin: 0;
	color: var(--ptb-muted);
	font-size: 14px;
	line-height: 1.5;
}

/* --- Étapes ---------------------------------------------------------------------- */

.ptp-etapes {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ptp;
}

.ptp-etapes li {
	padding: 20px;
	border: 1px solid var(--ptb-mint-2);
	border-radius: 16px;
	background: #fff;
}

.ptp .ptp-etapes h3 {
	margin: 0 0 6px;
	font-size: 17px;
	line-height: 1.3;
}

.ptp .ptp-etapes p {
	margin: 0;
	color: var(--ptb-muted);
	font-size: 15px;
	line-height: 1.5;
}

/* --- Listes et textes --------------------------------------------------------------- */

.ptp .ptp-copy {
	margin: 12px 0 0;
	color: var(--ptb-muted);
	font-size: 16px;
	line-height: 1.55;
}

.ptp .ptp-copy--fort {
	margin: 0 0 8px;
	color: var(--ptb-ink);
	font-weight: 700;
}

.ptp .ptp-liste {
	list-style: disc;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0 0 0 20px;
	color: var(--ptb-ink);
	font-size: 16px;
	line-height: 1.5;
}

.ptp .ptp-table td,
.ptp .ptp-table th {
	text-align: left;
	white-space: normal;
}

.ptp .ptp-table td:nth-child(2) {
	color: var(--ptb-ink);
}

@media (max-width: 1280px) {
	.ptp-etapes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.ptp-etapes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ptp-etapes {
		grid-template-columns: 1fr;
	}
}

.ptp .ptp-result__plan {
	color: var(--ptb-ink);
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--ptb-rose);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* --- Plan personnel ---------------------------------------------------------------- */

.ptp .ptp-plan {
	border-top: 1px solid var(--ptb-line);
}

.ptp-plan[hidden] {
	display: none;
}

.ptp-plan__liste {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ptp-plan__liste li {
	padding: 20px;
	border: 1px solid var(--ptb-mint-2);
	border-radius: 16px;
	background: var(--ptb-mint);
}

.ptp .ptp-plan__liste h4 {
	margin: 0 0 8px;
	color: var(--ptb-ink);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.ptp .ptp-plan__liste p {
	margin: 0;
	color: var(--ptb-muted);
	font-size: 14.5px;
	line-height: 1.55;
}

/* La date : courte, en couleur, séparée du texte par un filet. */
.ptp .ptp-plan__liste .ptp-plan__quand {
	margin: 0 0 12px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--ptb-mint-2);
	color: #8a3a2c;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.ptp-plan__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin: 24px 0 0;
}

.ptp .ptp-plan__btn {
	width: auto;
}

.ptp .ptp-plan__lien {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ptb-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--ptb-rose);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	cursor: pointer;
}

.ptp .ptp-plan__statut {
	color: var(--ptb-green);
	font-size: 14px;
	font-weight: 700;
}

/* --- Documents selon la situation ----------------------------------------------------- */

.ptp .ptp-situations {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	border: 0;
}

.ptp-situations label {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.ptp-situations input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.ptp-situations span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--ptb-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ptb-ink);
	font-size: 14px;
	font-weight: 700;
	transition: background-color 0.15s, border-color 0.15s;
}

.ptp-situations label:hover span {
	border-color: var(--ptb-ink);
}

.ptp-situations input:checked + span {
	border-color: var(--ptb-rose);
	background: var(--ptb-rose);
}

.ptp-situations input:focus-visible + span {
	outline: 2px solid var(--ptb-ink);
	outline-offset: 2px;
}

.ptp-docs li[hidden] {
	display: none;
}

.ptp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 1280px) {
	.ptp-plan__liste {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.ptp-plan__liste {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ptp-plan__liste {
		grid-template-columns: 1fr;
	}

	.ptp .ptp-plan__btn {
		width: 100%;
	}
}

/* --- Carte du calculateur ------------------------------------------------------------ */

.ptp .ptp-calc__titre {
	margin: 0 0 4px;
	color: var(--ptb-ink);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.ptp .ptp-calc__aide {
	margin: 0 0 14px;
	color: var(--ptb-muted);
	font-size: 15px;
	line-height: 1.5;
}

.ptp .ptp-calc .ptb-loader {
	margin: 16px 0 0;
}

.ptp .ptp-calc__fait {
	display: block;
	margin: 14px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--ptb-mint-2);
	color: var(--ptb-green);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.ptp .ptp-calc__fait[hidden] {
	display: none;
}

.ptp .ptp-calc__fait:hover {
	text-decoration: underline;
}

/* --- Résultat --------------------------------------------------------------------------- */

.ptp .ptp-res {
	border-bottom: 1px solid var(--ptb-line);
	scroll-margin-top: 90px;
}

.ptp-res[hidden] {
	display: none;
}

.ptp .ptp-res .ptb-section__head {
	margin-bottom: 16px;
}

.ptp .ptp-statut {
	margin: 0 0 20px;
	padding: 16px 20px;
	border-radius: 14px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
}

.ptp .ptp-statut.is-oui {
	background: var(--ptb-mint-2);
	color: var(--ptb-green);
}

.ptp .ptp-statut.is-non {
	background: var(--ptb-rose-tint);
	color: #8a2f20;
}

.ptp-cles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ptp-cle {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 22px;
	border: 1px solid var(--ptb-mint-2);
	border-radius: 16px;
	background: #fff;
}

.ptp-cle--jour {
	border-color: var(--ptb-rose);
	background: var(--ptb-rose-tint);
}

.ptp .ptp-cle__label {
	margin: 0;
	color: #a0574a;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ptp .ptp-cle__valeur {
	margin: 0;
	color: var(--ptb-ink);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

.ptp .ptp-cle__detail {
	margin: 0;
	color: var(--ptb-muted);
	font-size: 15px;
	line-height: 1.45;
}

.ptp .ptp-note {
	margin: 14px 0 0;
	color: var(--ptb-muted);
	font-size: 15px;
}

.ptp .ptp-plan__titre {
	margin: 36px 0 14px;
	font-size: 20px;
}

@media (max-width: 960px) {
	.ptp-cles {
		grid-template-columns: 1fr;
	}
}

/* --- Équilibre des couleurs (Seb, 2026-10-18) : ni trop de menthe, ni trop de saumon.
 * Menthe : haut de page et signaux positifs. Saumon : boutons et accents. Saumon pâle : seulement le jour J. En-têtes de
 * tableau : menthe. Sections d'appui : sable. */

.ptp .ptp-plan__liste li {
	border-color: var(--ptb-line);
	background: #fff;
}

.ptp .ptp-plan__liste li:nth-child(4) {
	border-color: var(--ptb-rose);
	background: var(--ptb-rose-tint);
}

.ptp .ptp-plan__liste .ptp-plan__quand {
	border-bottom-color: var(--ptb-line);
}

.ptp .ptp-plan__liste li:nth-child(4) .ptp-plan__quand {
	border-bottom-color: rgba(247, 174, 161, 0.6);
}

.ptp .ptp-cle {
	border-color: var(--ptb-line);
}

.ptp .ptp-etapes li {
	border-color: var(--ptb-line);
}

.ptp .ptp-table thead th,
.ptp .ptp-table thead th:first-child {
	background: var(--ptb-mint);
}

.ptp .ptb-table-wrap {
	border-color: var(--ptb-line);
}



.ptp .ptp-docs__imprimer {
	margin: 14px 0 0;
}

/* --- Aide-mémoire imprimable : invisible à l'écran, seul élément imprimé. ---------------- */

.ptp-imprimable {
	display: none;
}

@media print {
	@page {
		size: letter;
		margin: 14mm 16mm;
	}

	body > *:not(.ptp-imprimable) {
		display: none !important;
	}

	body {
		margin: 0 !important;
		padding: 0 !important;
		background: #fff !important;
	}

	.ptp-imprimable {
		display: block !important;
		width: 100%;
		color: #183030;
		font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
		font-size: 9.5pt;
		line-height: 1.4;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.ptp-imprimable h1,
	.ptp-imprimable h2,
	.ptp-imprimable p {
		margin: 0;
		letter-spacing: normal !important;
	}

	.ptp-i__tete {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 0 8pt;
		border-bottom: 0.6pt solid #183030;
	}

	.ptp-i__logo {
		display: block;
		width: 112pt;
		height: auto;
	}

	.ptp-i__type {
		color: #a0574a;
		font-size: 7.5pt;
		font-weight: 700;
		letter-spacing: 0.12em !important;
		text-transform: uppercase;
	}

	.ptp-i__titre {
		margin: 14pt 0 3pt !important;
		font-size: 15pt;
		font-weight: 800;
		line-height: 1.2;
	}

	.ptp-i__statut {
		color: #2f6b55;
		font-size: 9pt;
		font-weight: 700;
	}

	.ptp-i__statut.is-non {
		color: #8a2f20;
	}

	.ptp-i__cles {
		display: flex;
		gap: 6pt;
		margin: 10pt 0 0;
	}

	.ptp-i__cle {
		flex: 1;
		padding: 7pt 8pt;
		border: 0.6pt solid #c9d2cd;
		border-radius: 5pt;
	}

	.ptp-i__cle:last-child {
		border-color: #f7aea1;
		background: #fdf0ed;
	}

	.ptp-i__cle-label {
		color: #a0574a;
		font-size: 6.5pt;
		font-weight: 700;
		letter-spacing: 0.1em !important;
		text-transform: uppercase;
	}

	.ptp-i__cle-detail {
		margin: 3pt 0 0 !important;
		color: #526354;
		font-size: 7.5pt;
	}

	.ptp-i__cle-date {
		font-size: 11.5pt;
		font-weight: 800;
	}

	.ptp-i__colonnes {
		display: flex;
		gap: 18pt;
		margin: 14pt 0 0;
	}

	.ptp-i__col:first-child {
		flex: 1.6;
	}

	.ptp-i__col:last-child {
		flex: 1;
	}

	.ptp-i__h2 {
		margin: 0 0 5pt !important;
		padding: 0 0 3pt;
		border-bottom: 0.6pt solid #e3f0e8;
		font-size: 8pt;
		font-weight: 800;
		letter-spacing: 0.08em !important;
		text-transform: uppercase;
	}

	.ptp-i__col .ptp-i__h2 + * {
		margin-bottom: 10pt !important;
	}

	.ptp-i__liste {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	/* Une case à cocher à la main devant chaque élément. */
	.ptp-i__liste li {
		position: relative;
		margin: 0 0 3.5pt;
		padding: 0 0 0 13pt;
		font-size: 9pt;
		line-height: 1.35;
	}

	.ptp-i__liste li::before {
		content: "";
		position: absolute;
		top: 1.5pt;
		left: 0;
		width: 6.5pt;
		height: 6.5pt;
		border: 0.6pt solid #183030;
		border-radius: 1pt;
	}

	.ptp-i__texte {
		font-size: 9pt;
	}

	.ptp-i__petit {
		margin: 4pt 0 0 !important;
		color: #526354;
		font-size: 7.5pt;
	}

	.ptp-i__pied {
		margin: 16pt 0 0;
		padding: 7pt 0 0;
		border-top: 0.6pt solid #c9d2cd;
		color: #526354;
		font-size: 7pt;
		line-height: 1.4;
	}

	.ptp-i__source {
		margin: 3pt 0 0 !important;
		color: #8a968f;
	}
}

/* --- Tes données vs l'info générale (Seb, 2026-10-18) ---------------------------------------
 * Ce qui est calculé pour la personne est dans un cadre foncé avec le badge « Calculé pour toi ».
 * L'info générale commence après un séparateur explicite. */

.ptp .ptp-res {
	padding-bottom: 32px;
}

.ptp-perso {
	padding: 28px;
	border: 2px solid var(--ptb-ink);
	border-radius: 22px;
	background: #fff;
}

.ptp-perso__tete {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
	margin: 0 0 18px;
}

.ptp .ptp-perso__tete h2 {
	margin: 6px 0 0;
}

.ptp .ptp-badge {
	display: inline-block;
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ptb-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ptp .ptp-badge[hidden] {
	display: none;
}

.ptp .ptp-separateur {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 40px 0 0;
	color: var(--ptb-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ptp .ptp-separateur::before,
.ptp .ptp-separateur::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--ptb-line);
}

.ptp .ptp-res {
	border-bottom: 0;
}

/* La liste des documents devient « ta liste » quand une situation est cochée. */
.ptp-docs-boite {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 18px;
	transition: border-color 0.15s, background-color 0.15s;
}

.ptp-docs-boite.is-perso {
	padding: 20px 22px;
	border-color: var(--ptb-ink);
	background: #fff;
}

.ptp-docs-boite .ptp-docs__badge {
	margin: 0 0 10px;
}

@media (max-width: 640px) {
	.ptp-perso {
		padding: 20px 18px;
	}
}

.ptp .ptp-calc__repris {
	margin: 12px 0 0;
	color: var(--ptb-muted);
	font-size: 14px;
}

.ptp .ptp-calc__repris[hidden] {
	display: none;
}
