/* ==========================================================================
   Pour Toujours — cartes photo des pages Ressources et À propos (même look que les cartes de l'accueil).
   Bureau : photo en haut qui se fond dans la couleur de la carte (nuit, menthe, saumon), texte en bas.
   Téléphone : rangées compactes (photo carrée, étiquette, titre, flèche), aucune carte cachée de côté.
   Gabarit : a.pt-carte.pt-carte--{nuit|menthe|saumon} > img.pt-carte__img + span.pt-carte__corps >
   span.pt-carte__entete (num, titre, texte) + span.pt-carte__lien (texte + span.pt-carte__go).
   ========================================================================== */

/* Cartes photo comme celles de l'accueil (accueil/pt-accueil.css, .pth-path) : photo en haut qui se fond
   dans la couleur de la carte (nuit, menthe, saumon), texte en bas. Survol : couleur seulement. */
.ptg .pt-carte {
	--carte: 24, 48, 48;
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: 420px;
	overflow: hidden;
	border-radius: 18px;
	background: rgb(var(--carte));
	color: #fff;
	text-decoration: none;
}

.ptg .pt-carte--menthe { --carte: 227, 240, 232; color: #183030; }
.ptg .pt-carte--saumon { --carte: 247, 174, 161; color: #183030; }

.ptg .pt-carte picture {
	display: contents;
}

.ptg .pt-carte__img {
	position: absolute;
	inset: 0 0 auto;
	z-index: -2;
	width: 100%;
	height: 58%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	/* Même tonalité que les photos de l'accueil. */
	filter: saturate(0.82) sepia(0.14) contrast(0.96) brightness(1.03);
}

.ptg .pt-carte::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(var(--carte), 0) 0%, rgba(var(--carte), 0.3) 24%, rgba(var(--carte), 0.94) 46%, rgb(var(--carte)) 58%);
	transition: background-color 0.25s;
}

.ptg .pt-carte:hover::before {
	background-color: rgba(12, 26, 26, 0.16);
}

.pt-carte__corps {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	padding: 24px 22px 22px;
}

.pt-carte__entete {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pt-carte__num {
	color: #f7aea1;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pt-carte--menthe .pt-carte__num { color: #2f6b55; }
.pt-carte--saumon .pt-carte__num { color: #8a3324; }

.ptg .pt-carte .pt-carte__titre {
	margin: 0;
	color: inherit;
	font-size: var(--pt-h3, 20px);
	font-weight: 800;
	line-height: 1.2;
	text-wrap: balance;
}

.pt-carte__texte {
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
	line-height: 1.5;
}

.pt-carte--menthe .pt-carte__texte,
.pt-carte--saumon .pt-carte__texte {
	color: #2f4240;
}

.pt-carte__lien {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	font-size: 15px;
	font-weight: 700;
}

.pt-carte--menthe .pt-carte__lien,
.pt-carte--saumon .pt-carte__lien {
	border-top-color: rgba(24, 48, 48, 0.2);
}

.pt-carte__go {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1.5px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.pt-carte__go svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ptg .pt-carte:hover .pt-carte__go {
	border-color: #f7aea1;
	background: #f7aea1;
	color: #183030;
}

.pt-carte--menthe .pt-carte__go,
.pt-carte--saumon .pt-carte__go {
	border-color: #183030;
	color: #183030;
}

.ptg .pt-carte--menthe:hover .pt-carte__go,
.ptg .pt-carte--saumon:hover .pt-carte__go,
.pt-carte--saumon .pt-carte__go {
	border-color: #183030;
	background: #183030;
	color: #fff;
}

/* Titres et textes alignés d'une carte à l'autre (4 colonnes). */
@media (min-width: 1101px) {
	.pt-carte__texte { min-height: 6em; }
}

/* Téléphone : rangées compactes. Photo carrée à gauche, étiquette et titre à droite, flèche au bout;
   la description et le dégradé disparaissent, la couleur de la carte reste. */
@media (max-width: 640px) {
	.ptg .pt-carte {
		align-items: center;
		gap: 14px;
		min-height: 0;
		padding: 10px;
		border-radius: 18px;
	}

	.ptg .pt-carte::before {
		display: none;
	}

	.ptg .pt-carte__img {
		position: static;
		flex: none;
		width: 76px;
		height: 76px;
		border-radius: 10px;
	}

	.pt-carte__corps {
		flex-direction: row;
		align-items: center;
		gap: 12px;
		min-width: 0;
		padding: 0 4px 0 0;
	}

	.pt-carte__entete {
		display: flex;
		flex: 1;
		flex-direction: column;
		gap: 4px;
		min-width: 0;
	}

	.pt-carte__num {
		font-size: 11px;
	}

	.ptg .pt-carte .pt-carte__titre {
		font-size: 17px;
	}

	.pt-carte__texte {
		display: none;
	}

	.pt-carte__lien {
		margin: 0;
		padding: 0;
		border: 0;
		font-size: 0;
	}

	.pt-carte__go {
		width: 34px;
		height: 34px;
	}
}

