/* Pour Toujours — Guide gratuit, version alignée sur le site (guide/template-v2.php).
 * S'ajoute à guide/pt-guide.css (formulaire, largeur, boutons) et budget/pt-budget.css (haut de page, sections, FAQ).
 * Fond clair : le formulaire, conçu pour l'ancien fond vert foncé, est ajusté ici. */

/* La page se ferme sur son propre formulaire : pas de deuxième appel à l'action avec la bande photo du pied de page. */
.ptf-cta {
	display: none;
}

/* --- Haut de page --------------------------------------------------------- */

.ptgp .ptgp-hero {
	padding: 40px 0 64px;
}

.ptgp-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 56px;
	align-items: center;
}

.ptgp .ptgp-hero h1 {
	max-width: 640px;
	margin: 0 0 16px;
	font-size: var(--pt-h1-hero);
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.ptgp .ptgp-note {
	margin: 14px 0 0;
	color: var(--ptb-muted);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* Couverture et une page intérieure, à plat (pas d'ombre). */
.ptgp-hero__visual {
	position: relative;
	max-width: 460px;
	margin: 0 auto;
	padding: 4% 14% 4% 0;
}

.ptgp-page {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--ptb-line);
	border-radius: 6px;
	background: #fff;
}

.ptgp-page--front {
	position: relative;
	z-index: 2;
}

.ptgp-page--back {
	position: absolute;
	top: 0;
	right: 0;
	width: 78%;
	transform: rotate(4deg);
	transform-origin: bottom left;
}

/* --- Formulaire sur fond clair --------------------------------------------- */

.ptgp .ptg-form__row {
	align-items: stretch;
}

.ptgp .ptg-form__input {
	height: var(--pt-btn-h);
	border: 1px solid #c9d2cd;
}

.ptgp .ptg-form__input:focus {
	border-color: var(--ptb-ink);
}

.ptgp .ptg-form__consent {
	color: var(--ptb-muted);
	font-size: 14px;
}

.ptgp .ptg-form__msg {
	background: var(--ptb-rose-tint);
	color: #8a2f20;
}

/* --- Pages du guide --------------------------------------------------------- */

.ptgp-pages {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ptgp-pages__item img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 18px;
	border: 1px solid var(--ptb-line);
	border-radius: 6px;
	background: #fff;
}

.ptgp .ptgp-pages__item h3 {
	margin: 0 0 6px;
	font-size: var(--pt-h3);
	line-height: 1.25;
}

.ptgp .ptgp-pages__item p {
	margin: 0;
	color: var(--ptb-muted);
	font-size: 15px;
	line-height: 1.55;
}

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

.ptgp-steps {
	background: var(--ptb-mint);
}

.ptgp-steps__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ptgp-steps__list li {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ptgp-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0 0 8px;
	border-radius: 50%;
	background: var(--ptb-rose);
	color: var(--ptb-ink);
	font-size: 15px;
	font-weight: 700;
}

.ptgp-steps__list strong {
	font-size: 17px;
}

.ptgp-steps__list span:last-child {
	color: var(--ptb-muted);
	font-size: 15px;
	line-height: 1.55;
}

/* --- Formulaire final -------------------------------------------------------- */

.ptgp-final__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ptgp .ptgp-final h2 {
	max-width: 620px;
	margin: 0 0 8px;
	font-size: var(--pt-h2);
	line-height: 1.15;
}

.ptgp-final .ptg-form {
	align-items: stretch;
}

.ptgp-final .ptg-form__consent {
	justify-content: center;
	text-align: left;
}

/* --- Tablette et téléphone ---------------------------------------------------- */

@media (max-width: 960px) {
	.ptgp-hero__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.ptgp-hero__visual {
		max-width: 340px;
	}

	.ptgp-pages {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 20px;
	}

	.ptgp-steps__list {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 640px) {
	.ptgp .ptg-form__row {
		flex-direction: column;
	}

	.ptgp .ptg-form .ptg-btn {
		width: 100%;
	}

	/* Pages du guide : carrousel horizontal, comme les cartes « Points de départ » de l'accueil. */
	.ptgp-pages {
		display: flex;
		gap: 14px;
		margin: 0 -20px;
		padding: 0 20px 8px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 20px;
		scrollbar-width: none;
	}

	.ptgp-pages::-webkit-scrollbar {
		display: none;
	}

	.ptgp-pages__item {
		flex: 0 0 78%;
		scroll-snap-align: start;
	}

	.ptgp-hero__visual {
		max-width: 280px;
	}
}

/* Date prévue du mariage (facultative) dans le formulaire. */
.ptgp .ptg-form__date {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	color: var(--ptb-ink);
	font-size: 14px;
	font-weight: 700;
	text-align: left;
}

.ptgp .ptg-form__date em {
	color: var(--ptb-muted);
	font-style: normal;
	font-weight: 400;
}

.ptgp .ptg-form__date select {
	height: var(--pt-btn-h-sm);
	padding: 0 14px;
	border: 1px solid #c9d2cd;
	border-radius: 10px;
	background: #fff;
	color: var(--ptb-ink);
	font: inherit;
	font-weight: 400;
}

.ptgp .ptg-form__date select:focus {
	border-color: var(--ptb-ink);
	outline: none;
}

/* Téléphone : courriel, date, puis bouton (la ligne courriel + bouton se défait pour réordonner). */
@media (max-width: 640px) {
	.ptgp .ptg-form__row {
		display: contents;
	}

	.ptgp .ptg-form__input {
		order: 1;
	}

	.ptgp .ptg-form__date {
		order: 2;
	}

	.ptgp .ptg-form .ptg-btn {
		order: 3;
	}

	.ptgp .ptg-form__consent {
		order: 4;
	}

	.ptgp .ptg-form__captcha,
	.ptgp .ptg-form__msg {
		order: 5;
	}
}

/* --- Page de remerciement (merci/template.php) -------------------------------- */

.ptgm-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
	margin: 8px 0 0;
}

.ptgm-actions--center {
	justify-content: center;
}

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

.ptgp .ptgm-page {
	margin: 0 0 4px;
	color: #8a4a40;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ptgm-tips {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 32px;
	margin: 40px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--ptb-line);
	list-style: none;
	color: var(--ptb-muted);
	font-size: 15px;
	line-height: 1.5;
}

.ptgm-tips strong {
	display: block;
	color: var(--ptb-ink);
}

.ptgp .ptgm-final__text {
	max-width: 560px;
	margin: 0 0 18px;
	color: var(--ptb-muted);
}

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

.ptgp .ptgm-actions .ptb-button {
	flex: 0 0 auto;
	width: auto;
}

.ptgp .ptgm-tips {
	margin: 48px 0 0 !important;
	padding: 22px 0 0 !important;
}

@media (max-width: 640px) {
	.ptgp .ptgm-actions .ptb-button {
		width: 100%;
	}

	.ptgp .ptgm-actions--center .ptgm-link {
		width: 100%;
		text-align: center;
	}
}

/* --- Page « Ta date de mariage a changé? » (madate/template.php) --------------- */

.ptgd-inner {
	max-width: 720px;
}

.ptgp.ptgd .ptgp-hero {
	padding: 56px 0 72px;
}

.ptgp.ptgd .ptb-hero h1 {
	font-size: var(--pt-h1);
}
