/* ==========================================================================
   Pour Toujours — Page du guide gratuit (aimant à prospects)
   ========================================================================== */

body.ptg-body {
	margin: 0;
	background: #fff;
}

.ptg {
	--ptg-ink: #183030;
	--ptg-ink-soft: #526354;
	--ptg-rose: #f7aea1;
	--ptg-rose-deep: #f08f7e;
	--ptg-rose-tint: #fdf0ed;
	--ptg-mint: #f3faf6;
	--ptg-line: rgba(24, 48, 48, 0.12);
	--ptg-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.55;
	color: var(--ptg-ink);
	background: #fff;
}

.ptg *,
.ptg *::before,
.ptg *::after {
	box-sizing: border-box;
}

/* Largeur standard de TOUTES les pages de l'extension (référence : l'accueil).
 * 1640 px au maximum, marges de côté 64 px, 40 px sous 1100 px, 20 px sur téléphone.
 * Les nouvelles pages n'en changent pas; un texte long garde sa propre largeur de lecture à l'intérieur. */
:root {
	--pt-max: 1640px;
	--pt-gutter: 64px;
}

@media (max-width: 1100px) {
	:root {
		--pt-gutter: 40px;
	}
}

@media (max-width: 640px) {
	:root {
		--pt-gutter: 20px;
	}
}

.ptg-wrap {
	width: 100%;
	max-width: var(--pt-max);
	margin: 0 auto;
	padding-left: var(--pt-gutter);
	padding-right: var(--pt-gutter);
}

.ptg p,
.ptg ul,
.ptg ol,
.ptg h1,
.ptg h2,
.ptg h3 {
	margin: 0;
	padding: 0;
}

.ptg ul,
.ptg ol {
	list-style: none;
}

.ptg a {
	color: inherit;
}

.ptg img {
	display: block;
	max-width: 100%;
	height: auto;
}

.ptg a:focus-visible,
.ptg button:focus-visible,
.ptg input:focus-visible,
.ptg summary:focus-visible {
	outline: 2px solid var(--ptg-rose-deep);
	outline-offset: 3px;
}

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

/* ---------- Éléments communs ---------- */

.ptg .ptg-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ptg-rose);
}

.ptg .ptg-eyebrow--dark {
	color: #a8402d;
}

.ptg .ptg-h2 {
	font-family: Helvetica, Arial, sans-serif;
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ptg-ink);
}

.ptg .ptg-h2--light {
	color: #fff;
}

.ptg .ptg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 30px;
	border: 0;
	border-radius: 999px;
	background: var(--ptg-rose);
	color: var(--ptg-ink);
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.2s var(--ptg-ease);
}

.ptg .ptg-btn:hover,
.ptg .ptg-btn:focus {
	background: var(--ptg-rose-deep);
	color: var(--ptg-ink);
}

.ptg .ptg-btn[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.ptg-head {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 720px;
}

.ptg-head__sub {
	color: var(--ptg-ink-soft);
}

/* ---------- En-tête ---------- */

.ptg-top {
	background: #fff;
	border-bottom: 1px solid var(--ptg-line);
}

.ptg-top .ptg-wrap {
	display: flex;
	align-items: center;
	min-height: 68px;
}

.ptg-top__logo img {
	width: 190px;
}

/* ---------- Héros ---------- */

.ptg-hero {
	background: var(--ptg-ink);
	color: #fff;
	overflow: hidden;
}

.ptg-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 64px;
	align-items: center;
	padding-top: 72px;
	padding-bottom: 72px;
}

.ptg-hero__text {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.ptg .ptg-hero__title {
	font-family: Helvetica, Arial, sans-serif;
	font-size: clamp(34px, 4.6vw, 60px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.025em;
	color: #fff;
	text-wrap: balance;
}

.ptg-hero__lead {
	max-width: 54ch;
	color: rgba(255, 255, 255, 0.82);
	font-size: 19px;
}

.ptg-hero__note {
	color: rgba(255, 255, 255, 0.66);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.ptg-hero__visual {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	aspect-ratio: 900 / 1165;
}

.ptg .ptg-hero__page {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}

.ptg .ptg-hero__page--back {
	transform: translate(17%, -3%) rotate(9deg);
}

.ptg .ptg-hero__page--mid {
	transform: translate(-15%, 1%) rotate(-8deg);
}

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

.ptg-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	max-width: 600px;
	margin: 8px 0 0;
}

.ptg-form__row {
	display: flex;
	gap: 10px;
}

.ptg .ptg-form__input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: 56px;
	padding: 0 20px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: #fff;
	color: var(--ptg-ink);
	font-family: inherit;
	font-size: 17px;
	line-height: 1.2;
	box-shadow: none;
}

.ptg .ptg-form__input::placeholder {
	color: #7c8a80;
	opacity: 1;
}

.ptg .ptg-form__input:focus {
	border-color: var(--ptg-rose);
	outline: 0;
}

.ptg .ptg-form__input[aria-invalid='true'] {
	border-color: #ff8f7a;
}

.ptg .ptg-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	cursor: pointer;
}

.ptg .ptg-form__consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--ptg-rose);
}

.ptg .ptg-form__msg {
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(255, 143, 122, 0.16);
	color: #ffd9d1;
	font-size: 15px;
	font-weight: 600;
}

.ptg-form__captcha:empty {
	display: none;
}

.ptg-form__captcha {
	min-height: 78px;
}

.ptg-final .ptg-form__captcha {
	align-self: center;
}

/* ---------- Dans le guide ---------- */

.ptg-inside {
	padding: 96px 0;
}

.ptg .ptg-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 32px;
	margin-top: 48px;
}

.ptg-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.ptg-card__img {
	aspect-ratio: 4 / 3;
	margin-bottom: 8px;
	padding: 24px 24px 0;
	border-radius: 16px;
	background: var(--ptg-mint);
	overflow: hidden;
}

.ptg .ptg-card__img img {
	width: 100%;
	border: 1px solid var(--ptg-line);
	border-bottom: 0;
	border-radius: 6px 6px 0 0;
}

.ptg .ptg-card__title {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--ptg-ink);
}

.ptg-card__text {
	color: var(--ptg-ink-soft);
	font-size: 16px;
}

/* ---------- Comment ça marche ---------- */

.ptg-steps {
	padding: 80px 0;
	background: var(--ptg-mint);
}

.ptg .ptg-steps__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-top: 36px;
	counter-reset: ptg-step;
}

.ptg .ptg-steps__list li {
	position: relative;
	padding-top: 64px;
	color: var(--ptg-ink-soft);
	counter-increment: ptg-step;
}

.ptg .ptg-steps__list li::before {
	content: counter(ptg-step);
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ptg-ink);
	color: #fff;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
}

.ptg .ptg-steps__list strong {
	display: block;
	margin-bottom: 4px;
	color: var(--ptg-ink);
	font-size: 18px;
}

/* ---------- FAQ ---------- */

.ptg-faq {
	padding: 96px 0;
}

.ptg-faq__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 48px 64px;
	align-items: start;
}

.ptg-faq__list {
	border-top: 1px solid var(--ptg-line);
}

.ptg-faq__item {
	border-bottom: 1px solid var(--ptg-line);
}

.ptg .ptg-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.ptg .ptg-faq__item summary::-webkit-details-marker {
	display: none;
}

.ptg .ptg-faq__item summary::after {
	content: '+';
	flex: none;
	color: var(--ptg-rose-deep);
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.2s var(--ptg-ease);
}

.ptg .ptg-faq__item[open] summary::after {
	transform: rotate(45deg);
}

.ptg .ptg-faq__item p {
	max-width: 64ch;
	padding: 0 0 24px;
	color: var(--ptg-ink-soft);
}

/* ---------- Appel final ---------- */

.ptg-final {
	padding: 88px 0;
	background: var(--ptg-ink);
	color: #fff;
}

.ptg-final__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

.ptg-final .ptg-h2 {
	max-width: 26ch;
	text-wrap: balance;
}

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

/* ---------- Pied de page ---------- */

.ptg-foot {
	background: var(--ptg-ink);
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
}

.ptg-foot__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	flex-wrap: wrap;
	padding-top: 22px;
	padding-bottom: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ptg .ptg-foot ul {
	display: flex;
	gap: 8px 24px;
	flex-wrap: wrap;
}

.ptg .ptg-foot a {
	text-decoration: none;
}

.ptg .ptg-foot a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Bouton collant (mobile) ---------- */

.ptg-sticky {
	display: none;
}

/* ---------- Tablette ---------- */

@media (max-width: 1000px) {
	.ptg-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 56px;
		padding-top: 56px;
		padding-bottom: 72px;
	}

	.ptg-hero__visual {
		max-width: 320px;
	}

	.ptg .ptg-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ptg-faq__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
	.ptg {
		font-size: 16px;
	}


	.ptg-top .ptg-wrap {
		min-height: 56px;
	}

	.ptg-top__logo img {
		width: 150px;
	}

	.ptg-hero__inner {
		gap: 48px;
		padding-top: 32px;
		padding-bottom: 64px;
	}

	.ptg-hero__text {
		gap: 14px;
	}

	.ptg .ptg-eyebrow {
		font-size: 12px;
	}

	.ptg-hero__lead {
		font-size: 16.5px;
	}

	.ptg-form {
		margin-top: 4px;
		gap: 12px;
	}

	.ptg-form__row {
		flex-direction: column;
	}

	.ptg .ptg-form__input,
	.ptg .ptg-btn {
		width: 100%;
		min-height: 54px;
		height: 54px;
	}

	.ptg-hero__visual {
		max-width: 240px;
	}

	.ptg-inside,
	.ptg-faq {
		padding: 64px 0;
	}

	.ptg-steps,
	.ptg-final {
		padding: 56px 0;
	}

	.ptg .ptg-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
		margin-top: 32px;
	}

	.ptg .ptg-steps__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		margin-top: 28px;
	}

	.ptg .ptg-steps__list li {
		padding-top: 0;
		padding-left: 60px;
		min-height: 44px;
	}

	.ptg-foot__inner {
		flex-direction: column;
		align-items: flex-start;
		padding-bottom: 96px;
	}

	.ptg-sticky:not([hidden]) {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid var(--ptg-line);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ptg *,
	.ptg *::before,
	.ptg *::after {
		transition: none !important;
	}
}

/* ==========================================================================
   Questions fréquentes : UN seul composant pour tout le site (référence : la page d'accueil, .pth-faq).
   Lignes fines, question en gras, cercle rose avec + (blanc avec − une fois ouvert), sans animation.
   Utilisé par le répertoire (.pf-faq), le calculateur et l'échéancier (.ptb-faq__list).
   Les articles gardent leurs questions-réponses en texte (réponses longues).
   ========================================================================== */

.pf .pf-faq,
.ptb .ptb-faq__list {
	border-top: 1px solid rgba(24, 48, 48, 0.12);
}

.pf .pf-faq details,
.ptb .ptb-faq__item {
	border-bottom: 1px solid rgba(24, 48, 48, 0.12);
}

.pf .pf-faq summary,
.ptb .ptb-faq__item summary {
	position: relative;
	display: block;
	padding: 26px 56px 26px 0;
	color: #183030;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	list-style: none;
	cursor: pointer;
	transition: color 0.2s;
}

.pf .pf-faq summary::-webkit-details-marker,
.ptb .ptb-faq__item summary::-webkit-details-marker {
	display: none;
}

.pf .pf-faq summary:hover,
.ptb .ptb-faq__item summary:hover {
	color: #a8402d;
}

.pf .pf-faq summary::after,
.ptb .ptb-faq__item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border-radius: 50%;
	background:
		linear-gradient(#183030, #183030) center / 12px 2px no-repeat,
		linear-gradient(#183030, #183030) center / 2px 12px no-repeat,
		#f7aea1;
}

.pf .pf-faq details[open] summary::after,
.ptb .ptb-faq__item[open] summary::after {
	background:
		linear-gradient(#183030, #183030) center / 12px 2px no-repeat,
		#fff;
	box-shadow: inset 0 0 0 1px rgba(24, 48, 48, 0.12);
}

.pf .pf-faq .pf-prose,
.ptb .ptb-faq__item > p {
	max-width: 64ch;
	margin: 0 !important;
	padding: 0 56px 28px 0;
	color: #526354;
	font-size: 17px;
	line-height: 1.6;
}

.pf .pf-faq .pf-prose p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

@media (max-width: 1100px) {
	.pf .pf-faq summary,
	.ptb .ptb-faq__item summary {
		padding: 20px 44px 20px 0;
		font-size: 17px;
	}

	.pf .pf-faq summary::after,
	.ptb .ptb-faq__item summary::after {
		width: 28px;
		height: 28px;
		margin-top: -14px;
	}

	.pf .pf-faq .pf-prose,
	.ptb .ptb-faq__item > p {
		padding: 0 0 22px;
		font-size: 15.5px;
	}
}
