/*
 * Compléments de style PS Rhône.
 * L'essentiel de la charte (couleurs, polices, boutons) vit dans le kit Elementor ;
 * ce fichier ne couvre que ce qu'Elementor ne sait pas régler.
 */

/* En-tête : bandeau blanc flottant, 10 px du bord, comme sur parti-socialiste.fr */
.ps69-header {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	pointer-events: none;
}

.ps69-header > .e-con {
	pointer-events: auto;
	transition: box-shadow 0.2s ease;
}

.admin-bar .ps69-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .ps69-header {
		top: 46px;
	}
}

body.ps69-scrolled .ps69-header > .e-con {
	box-shadow: 0 4px 18px rgba(39, 39, 39, 0.1);
}

/* Méga-menu : chevrons roses, panneaux sans ombre parasite */
.ps69-mega .e-n-menu-dropdown-icon svg,
.ps69-mega .e-n-menu-dropdown-icon i {
	fill: #f70059;
	color: #f70059;
}

.ps69-mega .e-n-menu-content > .e-con {
	pointer-events: auto;
}

/* Tablette et mobile : burger collé au bouton « J'adhère », menu aligné à gauche */
@media (max-width: 1024px) {
	.ps69-header .ps69-mega {
		flex: 0 0 auto !important;
	}

	.ps69-mega .e-n-menu-heading {
		justify-content: flex-start !important;
		align-items: stretch !important;
	}

	.ps69-mega .e-n-menu-title {
		width: 100%;
		justify-content: space-between !important;
		padding: 6px 20px;
		border-bottom: 1px solid #f7f7f7;
	}
}

/* Cartes d'actualité du méga-menu : visuel en paysage */
.ps69-menu-actus .ps69-ratio-portrait img {
	aspect-ratio: 8 / 3;
}

/* Mot surligné dans les titres : <span class="ps69-surligne">…</span> */
.ps69-surligne {
	background: #f70059;
	color: #fff;
	padding: 0 0.12em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Visuels des cartes : remplissage sans déformation, y compris pour les SVG */
.ps69-cover img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.ps69-ratio-portrait img {
	aspect-ratio: 3 / 4;
}

.ps69-ratio-paysage img {
	aspect-ratio: 16 / 9;
}

.ps69-ratio-carre img {
	aspect-ratio: 1 / 1;
}

.ps69-ratio-adherer img {
	aspect-ratio: 6 / 5;
}

/* Grande carte de gauche dans « Nos actualités » */
.ps69-grande-carte .ps69-ratio-portrait img {
	aspect-ratio: 5 / 7;
}

/* Visuel de la carte « À la une » : portrait, hauteur fixe */
.ps69-une-img img {
	height: 306px !important;
	aspect-ratio: auto;
}

@media (max-width: 767px) {
	.ps69-une-img img {
		height: 240px !important;
	}
}

/* Catégorie des cartes : filet rose à droite, comme sur parti-socialiste.fr */
.ps69-card-cat .elementor-post-info__terms-list {
	border-left: 2px solid #f70059;
	padding-left: 4px;
}

.ps69-card-cat .elementor-post-info__terms-list a {
	color: inherit;
}

/* Fiches (section, élu·e, rendez-vous) : libellé violet au-dessus de la valeur */
.ps69-info .ps69-info-label {
	display: block;
	margin-bottom: 2px;
	color: #8e0090;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

/* Carte rendez-vous : la colonne de texte prend la place restante sans déborder */
.ps69-rdv-corps {
	flex: 1 1 0 !important;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Date de l'article en italique, calée à droite */
.ps69-date-italique .elementor-icon-list-text {
	font-style: italic;
}

.ps69-date-italique .elementor-icon-list-items {
	justify-content: flex-end;
}

/* Boutons de partage : ronds blancs de 40 px, icône rose */
.elementor-widget-share-buttons .elementor-share-btn {
	width: 40px;
	height: 40px;
	font-size: 18px;
}

.elementor-widget-share-buttons .elementor-share-btn__icon {
	width: 40px;
}

/* Chiffres en dégradé rose → violet */
.ps69-stat .elementor-counter-number-wrapper {
	background: linear-gradient(90deg, #f70059, #8e0090);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
}

.ps69-stat .elementor-counter-number-wrapper span {
	color: transparent !important;
}

/* Compteurs « Nos chiffres clés » : alignés à gauche, filet sous le libellé */
.ps69-counter .elementor-counter {
	align-items: flex-start;
	border-bottom: 1px solid #272727;
	padding-bottom: 8px;
}

.ps69-counter .elementor-counter-number-wrapper {
	justify-content: flex-start;
}

.ps69-counter .elementor-counter-title {
	text-align: left;
}

/* Accroche en dégradé rose → violet (« Première force de gauche… ») */
.ps69-degrade-texte .elementor-heading-title {
	background: linear-gradient(90deg, #f70059, #8e0090);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
}

/* Lien « Lire la suite » souligné */
.ps69-lien-souligne .elementor-heading-title a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

/* Formulaire newsletter compact */
.ps69-newsletter .elementor-field-type-acceptance label {
	font-size: 12px;
	line-height: 1.35;
}

/* Contenu des articles : rythme de lecture */
.elementor-widget-theme-post-content p {
	margin-bottom: 1em;
}

.elementor-widget-theme-post-content h2 {
	font-size: 26px;
	margin: 1.2em 0 0.5em;
}
