/* =========================================================
   Patinage Artistique Neuilly-sur-Marne — Styles des pages
   Un shortcode = un fichier PHP dans /shortcodes, et sa section
   de styles ici (une section par shortcode, séparée par un
   commentaire avec le nom du shortcode). La page d'accueil est
   une page Elementor (scripts/elementor/accueil.json) qui
   réutilise ces classes : sa section ouvre le fichier.
   ========================================================= */

/* ---------------------------------------------------------
   Accueil (page Elementor, scripts/elementor/accueil.json)
   Design tokens et polices (Fraunces / Manrope) propres aux
   pages « club », tout est scopé sous .panm-home pour ne pas
   interférer avec la nav/le footer globaux (--panm-* / Cormorant
   Garamond / Montserrat, définis dans variables.css).

   Deux markups cohabitent : les shortcodes (div/section/a nus)
   et la page d'accueil Elementor, où chaque classe est posée sur
   un conteneur (.e-con) ou un widget (.elementor-widget) via
   « Classes CSS ». Les widgets Elementor ajoutent un niveau :
   le titre est dans .elementor-heading-title, le bouton dans
   .elementor-button, la vidéo dans .elementor-wrapper.
   --------------------------------------------------------- */

.panm-home {
	--bg: #FAF7FC;
	--surface: #FFFFFF;
	--surface-2: #F1E9F8;
	--ink: #241B33;
	--ink-soft: #5E5372;
	--violet-900: #33204B;
	--violet-800: #432A5E;
	--violet-700: #5B3583;
	--mauve-500: #9C6FC4;
	--mauve-200: #E3D3F0;
	--gold-500: #C08A2B;
	--gold-300: #E7C878;
	--ice-100: #EAF5F9;
	--ice-300: #BEE1EC;
	--border: #E4DAEF;
	--shadow: 0 20px 45px -25px rgba(51, 32, 75, 0.45);

	display: flow-root;
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
	background: var(--bg);
	color: var(--ink);
	font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
	.panm-home {
		--bg: #180F24;
		--surface: #221732;
		--surface-2: #2B1F3E;
		--ink: #F1E9F7;
		--ink-soft: #C3B4D6;
		--violet-900: #150C21;
		--violet-800: #241736;
		--violet-700: #8C60C2;
		--mauve-500: #B993E0;
		--mauve-200: #3A2C51;
		--gold-500: #E0AC3E;
		--gold-300: #F0CE8A;
		--ice-100: #17232B;
		--ice-300: #234450;
		--border: #3A2C4F;
		--shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.6);
	}
}

/* --- Neutralisation d'Elementor ---
   Le conteneur racine Elementor est déjà pleine largeur (pas besoin
   du débordement 100vw), et les conteneurs/widgets ont un padding
   et un gap par défaut (10px / 20px) : tout est remis à zéro ici,
   les espacements sont ceux définis plus bas, classe par classe. */

.panm-home.e-con {
	width: 100%;
	margin-left: 0;
	transform: none;
}

.panm-home.e-con,
.panm-home .e-con,
.panm-home .e-con > .e-con-inner,
.panm-home .elementor-widget {
	padding: 0;
	gap: 0;
}

.panm-home .elementor-heading-title {
	line-height: inherit;
}

.panm-home h1,
.panm-home h2,
.panm-home h3 {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
	color: var(--ink);
}

.panm-home p {
	margin: 0;
}

.panm-home a {
	color: inherit;
}

.panm-home img,
.panm-home svg {
	display: block;
	max-width: 100%;
}

.panm-home button {
	font: inherit;
}

.panm-home :focus-visible {
	outline: 2.5px solid var(--gold-500);
	outline-offset: 3px;
	border-radius: 4px;
}

.panm-home .wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding-inline: 24px;
}

.panm-home .eyebrow {
	font-family: 'Manrope', sans-serif;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold-500);
}

@media (prefers-reduced-motion: reduce) {
	.panm-home * {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* --- Hero --- */

.panm-home .hero {
	position: relative;
	overflow: hidden;
	height: calc(100vh - 82px);
	min-height: 560px;
	background:
		radial-gradient(120% 140% at 15% 0%, var(--mauve-500) 0%, transparent 55%),
		linear-gradient(160deg, var(--violet-700) 0%, var(--violet-900) 100%);
	color: #fff;
}

/* La barre d'admin WordPress (visible en étant connecté) ajoute une
   hauteur non comptée dans le 100vh : on la retranche pour que le hero
   tienne pile dans l'écran aussi bien connecté que déconnecté.
   Restreint à > 900px : sous ce seuil le hero repasse en hauteur
   automatique (voir plus bas) et n'a pas besoin de cet ajustement. */
@media (min-width: 901px) {
	body.admin-bar .panm-home .hero {
		height: calc(100vh - 82px - 32px);
	}
}

.panm-home .hero-deco {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

.panm-home .hero-deco svg {
	width: 100%;
	height: 100%;
}

.panm-home .hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1140px;
	height: 100%;
	margin: 0 auto;
	padding: 40px 24px;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 48px;
	align-items: center;
}

.panm-home .hero h1 {
	font-size: clamp(2.6rem, 4.2vw + 1rem, 4.2rem);
	font-style: italic;
	font-weight: 500;
	color: #fff;
	text-shadow: 0 2px 18px rgba(20, 10, 35, .25);
}

.panm-home .hero-lede {
	margin-top: 20px;
	max-width: 46ch;
	font-size: 1.08rem;
	color: #F4F0F8;
	line-height: 1.65;
}

/* Toujours posé sur un fond violet sombre (hero, panneau Gala) : couleurs
   fixes, indépendantes du mode clair/sombre, texte blanc. */
.panm-home .hero-cta {
	margin-top: 30px;
}

.panm-home a.hero-cta,
.panm-home .hero-cta .elementor-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .55);
	text-decoration: none;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 700;
	padding: 14px 26px;
	border-radius: 999px;
	box-shadow: 0 14px 30px -12px rgba(21, 12, 33, .45);
	transition: background .15s ease, border-color .15s ease, translate .15s ease;
}

.panm-home a.hero-cta:hover,
.panm-home a.hero-cta:focus-visible,
.panm-home .hero-cta .elementor-button:hover,
.panm-home .hero-cta .elementor-button:focus-visible {
	background: rgba(255, 255, 255, .26);
	border-color: #fff;
	color: #fff;
	translate: 0 -2px;
}

.panm-home .hero-cta svg,
.panm-home .hero-cta .elementor-button-content-wrapper::after {
	width: 16px;
	height: 16px;
}

/* Flèche du bouton Elementor : le SVG du shortcode, en masque CSS. */
.panm-home .hero-cta .elementor-button-content-wrapper {
	align-items: center;
	gap: 10px;
}

.panm-home .hero-cta .elementor-button-content-wrapper::after {
	content: '';
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.panm-home .social-follow {
	margin-top: 44px;
}

.panm-home .social-follow p {
	font-family: 'Fraunces', serif;
	font-style: italic;
	font-size: 1.05rem;
	color: #fff;
	margin-bottom: 12px;
}

.panm-home .social-icons,
.panm-home .social-icons .elementor-grid {
	display: flex;
	justify-content: flex-start;
	gap: 12px;
}

.panm-home .social-icons .elementor-grid .elementor-grid-item {
	display: block;
	margin: 0;
}

.panm-home .social-icons a {
	--icon-size: 19px;
	--e-social-icon-icon-color: #fff;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, .35);
	transition: background .15s ease, translate .15s ease;
}

.panm-home .social-icons a:hover {
	background: rgba(255, 255, 255, .3);
	opacity: 1;
	translate: 0 -2px;
}

.panm-home .hero-visual {
	position: relative;
	width: 100%;
	max-width: 340px;
	margin: 0 auto;
}

.panm-home .hero-figure {
	position: relative;
	box-sizing: border-box;
	aspect-ratio: 1 / 1;
	width: 100%;
	border: 6px solid #fff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow:
		0 35px 80px -18px rgba(21, 12, 33, .65),
		0 14px 30px -12px rgba(21, 12, 33, .5);
}

.panm-home .hero-figure .elementor-wrapper {
	aspect-ratio: 1 / 1;
	height: 100%;
}

.panm-home .hero-figure video:is(.hero-video, .elementor-video) {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.panm-home .hero-bubble {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	text-align: center;
	border-radius: 50%;
	background: var(--surface);
	box-shadow: 0 14px 30px -10px rgba(21, 12, 33, .45);
	text-decoration: none;
}

/* Dans l'éditeur Elementor, le widget Texte ajoute un div intermédiaire. */
.panm-home .hero-bubble > .elementor-text-editor {
	display: contents;
}

.panm-home .hero-bubble strong {
	font-family: 'Fraunces', serif;
	font-weight: 600;
	line-height: 1;
	color: var(--violet-700);
}

.panm-home .hero-bubble span {
	font-family: 'Manrope', sans-serif;
	font-size: .6rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ink-soft);
}

.panm-home .hero-bubble--stat1 {
	width: 96px;
	height: 96px;
	top: -18px;
	left: -22px;
}

.panm-home .hero-bubble--stat1 strong {
	font-size: 1.15rem;
}

.panm-home .hero-bubble--stat2 {
	width: 78px;
	height: 78px;
	bottom: 36px;
	left: -30px;
	background: var(--violet-700);
}

.panm-home .hero-bubble--stat2 strong,
.panm-home .hero-bubble--stat2 span {
	color: #fff;
}

.panm-home .hero-bubble--social {
	width: 54px;
	height: 54px;
	top: 20px;
	right: -18px;
	background: var(--gold-500);
}

.panm-home .hero-bubble--social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.panm-home .hero-bubble--social svg {
	width: 22px;
	height: 22px;
	color: #fff;
}

.panm-home .hero-bubble--badge {
	width: 104px;
	height: 104px;
	bottom: -20px;
	right: 6px;
	padding: 12px;
	border: 2px solid var(--gold-300);
}

.panm-home .hero-bubble--badge svg {
	width: 20px;
	height: 20px;
	color: var(--violet-700);
}

.panm-home .hero-bubble--badge span {
	font-size: .58rem;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ink-soft);
}

@media (max-width: 900px) {
	.panm-home .hero {
		height: auto;
		min-height: 0;
	}

	.panm-home .hero-inner {
		height: auto;
		grid-template-columns: 1fr;
		padding: 56px 24px;
	}

	.panm-home .hero-visual {
		max-width: 300px;
	}
}

/* --- Section shell --- */

.panm-home .section {
	padding: 72px 0;
}

/* Décor des sections claires : la courbe et les cercles du hero, en violet et or très
   transparents, dans un pseudo-élément derrière le contenu. */
.panm-home .section {
	position: relative;
	overflow: hidden;
}

.panm-home .section:not(.section--violet)::before {
	content: '';
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	opacity: 1;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M-50,560 C150,460 300,620 480,520 C660,420 780,560 960,480 C1080,430 1150,460 1250,420' fill='none' stroke='%235B3583' stroke-width='1.5' opacity='.22'/%3E%3Ccircle cx='1050' cy='120' r='110' fill='none' stroke='%23C08A2B' stroke-width='1.2' opacity='.4'/%3E%3Ccircle cx='1050' cy='120' r='150' fill='none' stroke='%23C08A2B' stroke-width='1.2' opacity='.28'/%3E%3Ccircle cx='180' cy='700' r='170' fill='none' stroke='%235B3583' stroke-width='1.2' opacity='.18'/%3E%3C/svg%3E") center / cover no-repeat;
}

.panm-home .section > .wrap,
.panm-home .section > .e-con-inner {
	position: relative;
	z-index: 1;
}

/* Une section sur deux en violet (moins sombre que le hero) pour rythmer la page :
   titres blancs, surtitres et accents dorés, textes en lavande clair. */
.panm-home .section--violet {
	--surface: rgba(255, 255, 255, .06);
	--surface-2: rgba(255, 255, 255, .12);
	--border: rgba(255, 255, 255, .22);
	--ink: #FFFFFF;
	--ink-soft: #F3EEF8;
	--violet-700: #F0CE8A;
	--shadow: 0 20px 45px -25px rgba(0, 0, 0, .6);
	background: linear-gradient(160deg, #7E5EA8 0%, #6A4B93 100%);
	color: #fff;
}

.panm-home .section--violet .eyebrow,
.panm-home .section--violet .news-date {
	color: var(--gold-300);
}

.panm-home .section--violet .section-head::before {
	background: var(--gold-300);
}

.panm-home .section--violet .history-stats {
	border-color: var(--gold-300);
}

/* Liens utiles sur fond violet : un poteau indicateur. Les liens sont des panneaux blancs en
   flèche fixés sur un poteau doré, alternativement vers la gauche et vers la droite (sur
   mobile, tous vers la droite, poteau à gauche), un peu de travers, avec un tas de neige au
   pied. clip-path coupe les box-shadow : l'ombre est un drop-shadow. */
.panm-home .section--violet .links-grid {
	position: relative;
	max-width: 880px;
	margin: 0 auto;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 60px;
	row-gap: 26px;
	padding: 34px 0 56px;
}

/* Poteau. */
.panm-home .section--violet .links-grid::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 8px;
	left: 50%;
	width: 14px;
	translate: -50% 0;
	border-radius: 7px 7px 2px 2px;
	background: linear-gradient(90deg, #A8761F, #F0CE8A 45%, #C08A2B);
}

/* Neige au pied du poteau. */
.panm-home .section--violet .links-grid::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 170px;
	height: 24px;
	translate: -50% 0;
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
	background: linear-gradient(#fff, #EAF5F9);
	box-shadow: 0 -2px 10px rgba(255, 255, 255, .35);
}

.panm-home .section--violet .link-card {
	--pointe: 30px;
	position: relative;
	z-index: 1;
	width: min(100%, 400px);
	display: grid;
	grid-template-columns: 96px 1fr;
	align-items: center;
	column-gap: 16px;
	text-align: left;
	border: 0;
	border-radius: 0;
	color: #241B33;
	/* Rivet doré côté poteau. */
	background:
		radial-gradient(circle 4px at calc(100% - 16px) 50%, #C08A2B 95%, transparent) no-repeat,
		#fff;
	padding: 16px 34px 16px calc(var(--pointe) + 14px);
	clip-path: polygon(var(--pointe) 0, 100% 0, 100% 100%, var(--pointe) 100%, 0 50%);
	filter: drop-shadow(0 10px 14px rgba(20, 8, 35, .4));
	box-shadow: none;
	justify-self: end;
	margin-right: -22px; /* le panneau vient contre le poteau */
	rotate: -2deg;
	transition: translate .2s ease, rotate .2s ease;
}

/* Panneaux de droite (colonne 2) : pointe à droite. */
.panm-home .section--violet .link-card:nth-child(even) {
	background:
		radial-gradient(circle 4px at 16px 50%, #C08A2B 95%, transparent) no-repeat,
		#fff;
	padding: 16px calc(var(--pointe) + 14px) 16px 34px;
	clip-path: polygon(0 0, calc(100% - var(--pointe)) 0, 100% 50%, calc(100% - var(--pointe)) 100%, 0 100%);
	justify-self: start;
	margin-right: 0;
	margin-left: -22px;
	rotate: 1.5deg;
}

.panm-home .section--violet .link-card:nth-child(4n + 3) {
	rotate: 1deg;
}

.panm-home .section--violet .link-card:nth-child(4n) {
	rotate: -1.2deg;
}

/* Au survol, le panneau se redresse et avance dans la direction qu'il indique. */
.panm-home .section--violet .link-card:hover {
	rotate: 0deg;
	translate: -8px 0;
	box-shadow: none;
}

.panm-home .section--violet .link-card:nth-child(even):hover {
	translate: 8px 0;
}

.panm-home .section--violet .link-card .link-logo {
	grid-row: 1 / span 2;
	width: 96px;
	height: 64px;
}

.panm-home .section--violet .link-card .link-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.panm-home .section--violet .link-card .name,
.panm-home .section--violet .link-card .name .elementor-heading-title {
	align-self: end;
	font-size: .95rem;
	line-height: 1.3;
	color: #33204B;
}

.panm-home .section--violet .link-card .go {
	align-self: start;
	margin-top: 4px;
}

.panm-home .section--violet .link-card .go,
.panm-home .section--violet .link-card .go .elementor-heading-title {
	color: #5B3583;
	overflow-wrap: anywhere;
}

@media (max-width: 700px) {
	.panm-home .section--violet .links-grid {
		grid-template-columns: minmax(0, 1fr);
		padding-left: 12px;
	}

	.panm-home .section--violet .links-grid::before {
		left: 19px;
	}

	.panm-home .section--violet .links-grid::after {
		left: 19px;
		width: 90px;
	}

	.panm-home .section--violet .link-card,
	.panm-home .section--violet .link-card:nth-child(even) {
		--pointe: 24px;
		grid-template-columns: 72px 1fr;
		column-gap: 12px;
		background:
			radial-gradient(circle 4px at 14px 50%, #C08A2B 95%, transparent) no-repeat,
			#fff;
		padding: 14px calc(var(--pointe) + 10px) 14px 28px;
		clip-path: polygon(0 0, calc(100% - var(--pointe)) 0, 100% 50%, calc(100% - var(--pointe)) 100%, 0 100%);
		justify-self: start;
		margin: 0;
	}

	.panm-home .section--violet .link-card:hover,
	.panm-home .section--violet .link-card:nth-child(even):hover {
		translate: 6px 0;
	}

	.panm-home .section--violet .link-card .link-logo {
		width: 72px;
		height: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.panm-home .section--violet .link-card {
		transition: none;
	}
}

/* Bouton d'appel à l'action sur fond violet : inversé (blanc, texte violet). */
.panm-home .section--violet a.section-cta,
.panm-home .section--violet .section-cta .elementor-button {
	background: #fff;
	color: #5B3583;
}

.panm-home .section--violet a.section-cta:hover,
.panm-home .section--violet .section-cta .elementor-button:hover {
	background: var(--gold-300);
	color: #33204B;
}

/* Conteneur Elementor « boxed » : .e-con-inner joue le rôle de .wrap. */
.panm-home .section > .e-con-inner {
	max-width: 1140px;
	padding-inline: 24px;
}

.panm-home .section-head {
	position: relative;
	max-width: 56ch;
	margin-bottom: 40px;
	padding-left: 22px;
}

.panm-home .section-head::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 3px;
	height: auto;
	border: 0;
	border-radius: 2px;
	opacity: 1;
	background: var(--violet-700);
}

.panm-home .section-head h2 {
	font-size: clamp(1.6rem, 2.4vw + 1rem, 2.2rem);
}

.panm-home .section-head .eyebrow {
	display: block;
	margin-bottom: 10px;
}

/* --- Événements --- */

.panm-home .events-panel {
	border: 1.5px dashed var(--border);
	border-radius: 18px;
	background: var(--surface);
	padding: 44px 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
}

.panm-home .events-panel .icon-circle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--surface-2);
	color: var(--violet-700);
	display: flex;
	align-items: center;
	justify-content: center;
}

.panm-home .events-panel p {
	color: var(--ink-soft);
	font-size: 1rem;
}

.panm-home .events-panel .hint,
.panm-home .events-panel .hint p {
	font-size: .82rem;
	color: var(--ink-soft);
	opacity: .8;
	max-width: 38ch;
}

/* --- Liens utiles --- */

.panm-home .links-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 820px) {
	.panm-home .links-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.panm-home .links-grid {
		grid-template-columns: 1fr;
	}
}

.panm-home .link-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 26px 20px;
	text-align: center;
	text-decoration: none;
	color: var(--ink);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	overflow-wrap: anywhere;
	transition: translate .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.panm-home .link-card:hover {
	translate: 0 -4px;
	box-shadow: var(--shadow);
	border-color: var(--mauve-500);
}

.panm-home .badge {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(155deg, var(--violet-700), var(--violet-900));
	color: #fff;
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: .02em;
}

.panm-home .link-card .name {
	font-weight: 700;
	font-size: .92rem;
}

.panm-home .link-card .go,
.panm-home .link-card .go .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .78rem;
	color: var(--violet-700);
	font-weight: 600;
}

.panm-home .link-card .go svg,
.panm-home .link-card .go .elementor-heading-title::after {
	width: 11px;
	height: 11px;
}

/* Flèche « lien externe » du widget Titre : le SVG du shortcode, en masque CSS. */
.panm-home .link-card .go .elementor-heading-title::after {
	content: '';
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17 17 7M9 7h8v8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17 17 7M9 7h8v8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Actus --- */

.panm-home .news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 820px) {
	.panm-home .news-grid {
		grid-template-columns: 1fr;
	}
}

.panm-home .news-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 26px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.panm-home .news-date {
	font-family: 'Manrope', sans-serif;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gold-500);
}

.panm-home .news-card h3 {
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 1.05rem;
}

.panm-home .news-card p {
	color: var(--ink-soft);
	font-size: .9rem;
	line-height: 1.6;
}

/* --- Histoire --- */

.panm-home .history-layout {
	display: grid;
	grid-template-columns: 1.3fr .7fr;
	gap: 40px;
	align-items: start;
}

@media (max-width: 760px) {
	.panm-home .history-layout {
		grid-template-columns: 1fr;
	}
}

.panm-home .history-text {
	color: var(--ink-soft);
	font-size: 1rem;
	line-height: 1.75;
}

/* Page Elementor : titre + texte à gauche, chiffres à droite alignés sur le titre. */
.panm-home .history-main .section-head {
	margin-bottom: 24px;
}

.panm-home .history-stats {
	display: flex;
	flex-direction: column;
	gap: 20px;
	border-left: 2px solid var(--gold-300);
	padding-left: 24px;
}

.panm-home .stat strong {
	display: block;
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 1.8rem;
	color: var(--violet-700);
}

.panm-home .stat span {
	font-size: .82rem;
	color: var(--ink-soft);
}

/* --- Nos partenaires --- */

.panm-home .partners-row {
	display: flex;
	flex-direction: row; /* Elementor met les conteneurs en colonne par défaut */
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.panm-home .partners-row .badge {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface-2);
	color: var(--violet-700);
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: .85rem;
	border: 1px solid var(--border);
	overflow: hidden;
}

/* Partenaires (shortcode [panm_partenaires]) en médailles : ruban violet à liseré or,
   disque blanc cerclé d'or (les logos ont besoin d'un fond blanc), nom et description dessous.
   Rubans de longueurs alternées pour un effet de guirlande ; au survol, la médaille se balance
   depuis son attache et un reflet glisse sur le disque. */
.panm-home .partners-medals {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 40px 56px;
}

.panm-home .partner-medal {
	flex: 0 1 220px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transform-origin: 50% 0;
}

.panm-home .partner-medal:hover {
	animation: panm-medal-swing 1.1s ease-out;
}

@keyframes panm-medal-swing {
	0%   { rotate: 0deg; }
	20%  { rotate: 5deg; }
	45%  { rotate: -3.5deg; }
	70%  { rotate: 1.5deg; }
	100% { rotate: 0deg; }
}

/* Ruban : trois bandes (violet / or / violet), agrafe or en haut, pointe en V sous le disque. */
.panm-home .partner-medal__ribbon {
	position: relative;
	width: 64px;
	height: 72px;
	background: linear-gradient(90deg,
		var(--violet-700) 0 34%,
		var(--gold-300) 34% 66%,
		var(--violet-700) 66% 100%);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
	margin-bottom: -26px; /* la pointe passe sous le disque */
}

.panm-home .partner-medal:nth-child(even) .partner-medal__ribbon {
	height: 104px;
}

.panm-home .partner-medal__ribbon::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 8px;
	background: var(--gold-500);
}

.panm-home .partner-medal__disc {
	position: relative;
	z-index: 1;
	width: 168px;
	aspect-ratio: 1;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 6px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		conic-gradient(from 210deg, #C08A2B, #F0CE8A, #C08A2B, #E7C878, #C08A2B) border-box;
	box-shadow:
		0 0 0 1px rgba(91, 53, 131, .2),
		0 18px 36px -16px rgba(51, 32, 75, .55);
	transition: box-shadow .2s ease;
}

/* Filet pointillé intérieur, comme la gravure d'une médaille. */
.panm-home .partner-medal__disc::before {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	border: 1px dashed #E3D3F0;
	pointer-events: none;
}

/* Reflet, hors champ au repos. */
.panm-home .partner-medal__disc::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%);
	translate: -120% 0;
	pointer-events: none;
}

.panm-home .partner-medal:hover .partner-medal__disc {
	box-shadow:
		0 0 0 4px rgba(231, 200, 120, .45),
		0 22px 40px -16px rgba(51, 32, 75, .6);
}

.panm-home .partner-medal:hover .partner-medal__disc::after {
	translate: 120% 0;
	transition: translate .8s ease;
}

.panm-home .partner-medal__disc img {
	width: auto;
	height: auto;
	max-width: 80%; /* un logo large tient au centre du disque */
	max-height: 66%;
	object-fit: contain;
}

.panm-home .partner-medal__initiales {
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 1.6rem;
	color: #5B3583;
}

.panm-home .partner-medal h3 {
	font-size: 1.1rem;
	line-height: 1.3;
	margin: 18px 0 0;
}

.panm-home .partner-medal p {
	color: var(--ink-soft);
	font-size: .85rem;
	line-height: 1.55;
	margin: 6px 0 0;
	max-width: 26ch;
}

@media (max-width: 600px) {
	.panm-home .partners-medals {
		gap: 32px 20px;
	}

	.panm-home .partner-medal {
		flex-basis: 150px;
	}

	.panm-home .partner-medal__disc {
		width: 136px;
	}

	.panm-home .partner-medal__ribbon {
		width: 52px;
		height: 56px;
		margin-bottom: -22px;
	}

	.panm-home .partner-medal:nth-child(even) .partner-medal__ribbon {
		height: 80px;
	}

	.panm-home .partner-medal h3 {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.panm-home .partner-medal:hover {
		animation: none;
	}

	.panm-home .partner-medal:hover .partner-medal__disc::after {
		transition: none;
		translate: -120% 0;
	}
}

/* Variante « billets » ([panm_partenaires style="billets"]) : billets de gala. Talon blanc
   pour le logo, pointillés et encoches de découpe, corps violet. Les encoches sont un masque
   sur __inner, l'ombre un drop-shadow sur le <li> (une box-shadow serait coupée par le masque).
   Billets légèrement inclinés, comme épinglés, qui se redressent au survol. */
.panm-home .partners-tickets {
	--cut: 38%; /* position de la découpe talon / corps */
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* un billet seul en fin de liste reste centré */
	gap: 36px 32px;
}

.panm-home .partner-ticket {
	flex: 0 1 460px;
	min-width: 0;
}

.panm-home .partner-ticket {
	filter: drop-shadow(0 16px 22px rgba(51, 32, 75, .28));
	rotate: -1.5deg;
	transition: rotate .25s ease, translate .25s ease, filter .25s ease;
}

.panm-home .partner-ticket:nth-child(even) {
	rotate: 1.2deg;
}

.panm-home .partner-ticket:nth-child(3n) {
	rotate: -.6deg;
}

.panm-home .partner-ticket:hover {
	rotate: 0deg;
	translate: 0 -6px;
	filter: drop-shadow(0 22px 26px rgba(51, 32, 75, .38));
}

.panm-home .partner-ticket__inner {
	position: relative;
	display: flex;
	min-height: 170px;
	border-radius: 14px;
	overflow: hidden;
	background: linear-gradient(90deg, #fff 0 var(--cut), transparent var(--cut)),
		linear-gradient(160deg, #7E5EA8 0%, #5B3583 100%);
	-webkit-mask:
		radial-gradient(circle 13px at var(--cut) 0, #0000 97%, #000) top / 100% 51% no-repeat,
		radial-gradient(circle 13px at var(--cut) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
	mask:
		radial-gradient(circle 13px at var(--cut) 0, #0000 97%, #000) top / 100% 51% no-repeat,
		radial-gradient(circle 13px at var(--cut) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}

/* Pointillés de découpe. */
.panm-home .partner-ticket__inner::before {
	content: "";
	position: absolute;
	top: 18px;
	bottom: 18px;
	left: var(--cut);
	border-left: 2px dashed #E7C878;
	translate: -1px 0;
}

.panm-home .partner-ticket__logo {
	flex: 0 0 var(--cut);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 20px;
}

.panm-home .partner-ticket__logo img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 120px;
	object-fit: contain;
}

.panm-home .partner-ticket__initiales {
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 1.6rem;
	color: #5B3583;
}

.panm-home .partner-ticket__body {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px 24px 30px 28px;
	color: #fff;
}

.panm-home .partner-ticket__kicker {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #F0CE8A;
}

.panm-home .partner-ticket h3 {
	font-size: 1.1rem;
	line-height: 1.3;
	color: #fff;
	margin: 6px 0 0;
}

.panm-home .partner-ticket p {
	color: rgba(255, 255, 255, .8);
	font-size: .82rem;
	line-height: 1.5;
	margin: 6px 0 0;
}

.panm-home .partner-ticket__num {
	position: absolute;
	right: 18px;
	bottom: 10px;
	font-family: 'Fraunces', serif;
	font-size: .8rem;
	color: #F0CE8A;
	opacity: .85;
}

@media (max-width: 600px) {
	.panm-home .partners-tickets {
		--cut: 30%;
		gap: 28px;
	}

	.panm-home .partner-ticket__logo {
		padding: 14px 12px;
	}

	.panm-home .partner-ticket__body {
		padding: 18px 18px 28px 22px;
	}

	.panm-home .partner-ticket h3 {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.panm-home .partner-ticket {
		transition: none;
	}
}

/* Variante « patinoire » ([panm_partenaires style="patinoire"]) : piste de glace aux bords
   arrondis (bandes blanches, marquages discrets), disques en quinconce et tracé de patin doré
   qui passe par leurs centres. Les disques sont à 70 px (rangs impairs) et 140 px (pairs) du
   haut de chaque rangée, comme le SVG (repère 1000 × 210, cf. panm_trace_patin()). */
.panm-home .partners-rink {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 36px;
	padding: 40px 32px 44px;
	border-radius: 120px;
	border: 6px solid #fff;
	overflow: hidden;
	background:
		repeating-linear-gradient(28deg, transparent 0 22px, rgba(255, 255, 255, .35) 22px 23px, transparent 23px 61px),
		radial-gradient(circle at 50% 50%, transparent 0 88px, rgba(91, 53, 131, .14) 88px 90px, transparent 90px),
		radial-gradient(ellipse at 30% 20%, #fff 0%, var(--ice-100) 45%, var(--ice-300) 130%);
	box-shadow:
		0 0 0 2px var(--mauve-200),
		inset 0 2px 18px rgba(51, 32, 75, .08),
		var(--shadow);
}

.panm-home .partners-rink__row {
	position: relative;
}

/* Plusieurs rangées : le rond central tomberait entre elles, on le retire. */
.panm-home .partners-rink:has(.partners-rink__row + .partners-rink__row) {
	background:
		repeating-linear-gradient(28deg, transparent 0 22px, rgba(255, 255, 255, .35) 22px 23px, transparent 23px 61px),
		radial-gradient(ellipse at 30% 20%, #fff 0%, var(--ice-100) 45%, var(--ice-300) 130%);
}

.panm-home .partners-rink__trace {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 210px;
	overflow: visible;
	pointer-events: none;
}

.panm-home .partners-rink__trace path {
	fill: none;
	stroke: var(--gold-500);
	stroke-width: 2.5;
	stroke-linecap: round;
	opacity: .8;
}

/* Le tracé se dessine au défilement, là où le navigateur le permet ; sinon il est déjà là. */
@supports (animation-timeline: view()) {
	.panm-home .partners-rink__trace path {
		stroke-dasharray: 1;
		animation: panm-trace-patin linear both;
		animation-timeline: view();
		animation-range: entry 10% cover 45%;
	}
}

@keyframes panm-trace-patin {
	from { stroke-dashoffset: 1; }
	to   { stroke-dashoffset: 0; }
}

.panm-home .partners-rink__list {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: flex-start;
}

.panm-home .partner-puck {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 12px;
}

.panm-home .partner-puck:nth-child(even) {
	padding-top: 70px;
}

.panm-home .partner-puck__disc {
	width: 140px;
	aspect-ratio: 1;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	box-shadow:
		0 0 0 3px #fff,
		0 0 0 5px var(--gold-300),
		0 14px 26px -12px rgba(51, 32, 75, .5);
}

/* Au survol, le disque fait une pirouette. */
.panm-home .partner-puck:hover .partner-puck__disc {
	animation: panm-pirouette .9s cubic-bezier(.3, .7, .3, 1);
}

@keyframes panm-pirouette {
	from { transform: rotateY(0); }
	to   { transform: rotateY(360deg); }
}

.panm-home .partner-puck__disc img {
	width: auto;
	height: auto;
	max-width: 76%;
	max-height: 62%;
	object-fit: contain;
}

.panm-home .partner-puck__initiales {
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 1.5rem;
	color: #5B3583;
}

.panm-home .partner-puck h3 {
	font-size: 1.05rem;
	line-height: 1.3;
	margin: 16px 0 0;
	max-width: 24ch;
}

.panm-home .partner-puck p {
	color: var(--ink-soft);
	font-size: .82rem;
	line-height: 1.5;
	margin: 4px 0 0;
	max-width: 28ch;
}

/* Tablette : 4 disques par rangée doivent tenir. Le décalage des rangs pairs suit le rayon
   (disque de 120 : centres à 60 et 130 px, trace décalée d'autant). */
@media (max-width: 1000px) {
	.panm-home .partner-puck__disc {
		width: 120px;
	}

	.panm-home .partners-rink__trace {
		top: -10px;
	}

	.panm-home .partner-puck h3 {
		font-size: .95rem;
	}
}

/* Mobile : une colonne, disques alternés à gauche et à droite, sans tracé. */
@media (max-width: 700px) {
	.panm-home .partners-rink {
		padding: 28px 20px;
		border-radius: 48px;
		background:
			repeating-linear-gradient(28deg, transparent 0 22px, rgba(255, 255, 255, .35) 22px 23px, transparent 23px 61px),
			radial-gradient(ellipse at 30% 20%, #fff 0%, var(--ice-100) 45%, var(--ice-300) 130%);
	}

	.panm-home .partners-rink__trace {
		display: none;
	}

	.panm-home .partners-rink {
		gap: 24px;
	}

	.panm-home .partners-rink__list {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}

	.panm-home .partner-puck,
	.panm-home .partner-puck:nth-child(even) {
		display: grid;
		grid-template-columns: 96px 1fr;
		column-gap: 16px;
		text-align: left;
		padding: 0;
	}

	.panm-home .partner-puck:nth-child(even) {
		grid-template-columns: 1fr 96px;
		text-align: right;
	}

	.panm-home .partner-puck__disc {
		width: 96px;
		grid-row: 1 / span 2;
		align-self: center;
	}

	.panm-home .partner-puck:nth-child(even) .partner-puck__disc {
		grid-column: 2;
	}

	.panm-home .partner-puck:nth-child(even) h3,
	.panm-home .partner-puck:nth-child(even) p {
		grid-column: 1;
	}

	.panm-home .partner-puck h3 {
		max-width: none;
		margin: 0;
		align-self: end;
	}

	.panm-home .partner-puck p {
		max-width: none;
		align-self: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.panm-home .partner-puck:hover .partner-puck__disc,
	.panm-home .partners-rink__trace path {
		animation: none;
	}
}

/* --- Inscriptions : bouton d'appel à l'action --- */

.panm-home .section-cta {
	margin-top: 6px;
}

.panm-home a.section-cta,
.panm-home .section-cta .elementor-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--violet-700);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: .9rem;
	line-height: 1.5;
	padding: 13px 28px;
	border-radius: 999px;
	transition: background .15s ease, translate .15s ease;
}

.panm-home a.section-cta:hover,
.panm-home .section-cta .elementor-button:hover {
	background: var(--violet-900);
	translate: 0 -2px;
}

/* ---------------------------------------------------------
   [panm_club]
   Réutilise les tokens et la base typographique de .panm-home
   définis dans la section Accueil ci-dessus.
   --------------------------------------------------------- */

.panm-home .page-header {
	background: linear-gradient(160deg, var(--violet-700) 0%, var(--violet-900) 100%);
	color: #fff;
	padding: 64px 0;
}

.panm-home .page-header h1 {
	margin-top: 10px;
	font-style: italic;
	font-weight: 500;
	font-size: clamp(2rem, 3vw + 1rem, 3rem);
	color: #fff;
}

.panm-home .page-lede {
	margin-top: 16px;
	max-width: 60ch;
	color: #F4F0F8;
	font-size: 1.02rem;
	line-height: 1.65;
}

/* --- Entraîneurs / Comité directeur --- */

.panm-home .people-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 820px) {
	.panm-home .people-grid {
		grid-template-columns: 1fr;
	}
}

.panm-home .person-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 28px 22px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.panm-home .person-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(155deg, var(--violet-700), var(--violet-900));
	color: #fff;
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 1rem;
}

.panm-home .person-card h3 {
	font-size: 1rem;
}

.panm-home .person-role {
	font-size: .82rem;
	color: var(--ink-soft);
}

/* --- Soutenir le club --- */

.panm-home .support-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 820px) {
	.panm-home .support-grid {
		grid-template-columns: 1fr;
	}
}

.panm-home .support-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.panm-home .support-card h3 {
	font-size: 1.05rem;
}

.panm-home .support-card p {
	color: var(--ink-soft);
	font-size: .9rem;
	line-height: 1.6;
}

/* --- Informations du club --- */

.panm-home .info-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

@media (max-width: 820px) {
	.panm-home .info-grid {
		grid-template-columns: 1fr;
	}
}

.panm-home .info-label {
	display: block;
	font-family: 'Manrope', sans-serif;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gold-500);
	margin-bottom: 8px;
}

.panm-home .info-item p {
	color: var(--ink-soft);
	font-size: .92rem;
	line-height: 1.6;
}

.panm-home .info-item a {
	color: var(--violet-700);
	text-decoration: underline;
}

/* ---------------------------------------------------------
   [panm_evenements]
   Réutilise .events-panel, .news-grid/.news-card et .hero-cta
   déjà définis plus haut ; seul .highlight-panel est propre à
   ce shortcode (mise en avant du Gala).
   --------------------------------------------------------- */

.panm-home .highlight-panel {
	background: linear-gradient(160deg, var(--violet-700) 0%, var(--violet-900) 100%);
	color: #fff;
	border-radius: 20px;
	padding: 44px 40px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.panm-home .highlight-panel .eyebrow {
	color: var(--gold-300);
}

.panm-home .highlight-panel h3 {
	color: #fff;
	font-size: 1.4rem;
}

.panm-home .highlight-panel p {
	color: #F4F0F8;
	max-width: 60ch;
	line-height: 1.6;
}

.panm-home .highlight-panel .hero-cta {
	margin-top: 8px;
}

/* ---------------------------------------------------------
   [panm_groupes]
   Réutilise .history-layout / .history-stats déjà définis
   plus haut — aucun style supplémentaire nécessaire.
   --------------------------------------------------------- */

/* ---------------------------------------------------------
   [panm_planning_tarifs]
   --------------------------------------------------------- */

.panm-home .table-wrap {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 16px;
}

.panm-home .panm-table {
	width: 100%;
	min-width: 480px;
	border-collapse: collapse;
	background: var(--surface);
	font-size: .92rem;
}

.panm-home .panm-table th,
.panm-home .panm-table td {
	padding: 14px 20px;
	text-align: left;
	white-space: nowrap;
}

.panm-home .panm-table thead th {
	background: var(--violet-900);
	color: #fff;
	font-family: 'Manrope', sans-serif;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.panm-home .panm-table thead th:first-child {
	border-top-left-radius: 15px;
}

.panm-home .panm-table thead th:last-child {
	border-top-right-radius: 15px;
}

.panm-home .panm-table tbody tr:nth-child(even) {
	background: var(--surface-2);
}

.panm-home .panm-table tbody td {
	color: var(--ink);
}

.panm-home .panm-table tbody tr:not(:last-child) td {
	border-bottom: 1px solid var(--border);
}

/* ---------------------------------------------------------
   [panm_contact]
   --------------------------------------------------------- */

.panm-home .contact-form {
	max-width: 640px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 32px;
}

.panm-home .form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.panm-home .form-row label {
	font-family: 'Manrope', sans-serif;
	font-size: .8rem;
	font-weight: 600;
	color: var(--ink);
}

.panm-home .form-row input,
.panm-home .form-row textarea {
	font-family: 'Manrope', sans-serif;
	font-size: .92rem;
	padding: 11px 14px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--bg);
	color: var(--ink);
	resize: vertical;
}

.panm-home .form-row input:focus,
.panm-home .form-row textarea:focus {
	outline: none;
	border-color: var(--violet-700);
}

.panm-home .contact-form button.section-cta {
	align-self: flex-start;
	border: none;
	cursor: pointer;
	font-family: 'Manrope', sans-serif;
}

/* ---------------------------------------------------------
   [panm_evenements_a_venir]
   Cartes d'évènements (4 par largeur sur desktop) dans un
   carrousel horizontal : défilement natif (overflow + scroll-snap),
   flèches ajoutées par carousel.js s'il y a débordement.
   --------------------------------------------------------- */

.panm-home .event-carousel {
	--per-view: 4;
	--carousel-gap: 20px;
	position: relative;
}

/* overflow-x rogne aussi verticalement : le padding fait de la place à l'ombre
   des cartes, la marge négative le compense pour ne pas décaler la mise en page. */
.panm-home .event-carousel__track {
	--shadow-room: 48px;
	list-style: none;
	margin: calc(-1 * var(--shadow-room)) calc(-1 * var(--shadow-room) / 2);
	padding: var(--shadow-room) calc(var(--shadow-room) / 2);
	display: flex;
	gap: var(--carousel-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: calc(var(--shadow-room) / 2);
	/* Fondu sur les bords : la carte suivante ne dépasse pas dans la marge de l'ombre. */
	-webkit-mask-image: linear-gradient(to right, transparent, #000 calc(var(--shadow-room) / 2), #000 calc(100% - var(--shadow-room) / 2), transparent);
	mask-image: linear-gradient(to right, transparent, #000 calc(var(--shadow-room) / 2), #000 calc(100% - var(--shadow-room) / 2), transparent);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.panm-home .event-carousel__track::-webkit-scrollbar {
	display: none;
}

.panm-home .event-carousel__item {
	flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--carousel-gap)) / var(--per-view));
	scroll-snap-align: start;
	display: flex;
}

@media (max-width: 1024px) {
	.panm-home .event-carousel { --per-view: 3; }
}

@media (max-width: 760px) {
	.panm-home .event-carousel { --per-view: 2; }
}

@media (max-width: 480px) {
	.panm-home .event-carousel { --per-view: 1.3; } /* on aperçoit la carte suivante */
}

/* Même violet que les sections .section--violet pour trancher sur le fond mauve
   clair de la page ; couleurs fixes, texte blanc. */
.panm-home .event-card {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: linear-gradient(160deg, #7E5EA8 0%, #6A4B93 100%);
	border-radius: 14px;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	/* Relief : halo violet centré (sans décalage), tout autour de la carte. */
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .14),
		0 0 0 1px rgba(91, 53, 131, .25),
		0 0 24px -4px rgba(91, 53, 131, .5),
		0 0 48px -8px rgba(91, 53, 131, .45);
	transition: translate .15s ease, box-shadow .15s ease;
}

.panm-home a.event-card:hover {
	translate: 0 -5px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .2),
		0 0 0 1px rgba(91, 53, 131, .35),
		0 0 30px -4px rgba(91, 53, 131, .6),
		0 0 64px -8px rgba(91, 53, 131, .6);
}

.panm-home .event-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #fff; /* un PNG transparent ne laisse pas voir le violet */
}

.panm-home .event-card__image--vide {
	background: rgba(255, 255, 255, .1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #F0CE8A;
}

.panm-home .event-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 18px;
}

.panm-home .event-card__date {
	font-size: .8rem;
	color: #F0CE8A;
}

.panm-home .event-card h3 {
	font-size: 1.1rem;
	line-height: 1.3;
	color: #fff;
}

.panm-home .event-carousel__arrow {
	position: absolute;
	top: 50%;
	translate: 0 -50%;
	z-index: 1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--violet-700);
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .15s ease, opacity .15s ease;
}

.panm-home .event-carousel__arrow[hidden] {
	display: none;
}

.panm-home .event-carousel__arrow:disabled {
	opacity: .35;
	cursor: default;
}

.panm-home .event-carousel__arrow:not(:disabled):hover {
	background: var(--surface-2);
}

.panm-home .event-carousel__arrow svg {
	width: 22px;
	height: 22px;
}

.panm-home .event-carousel__arrow--prev {
	left: -20px;
}

.panm-home .event-carousel__arrow--next {
	right: -20px;
}

@media (max-width: 1240px) {
	.panm-home .event-carousel__arrow--prev { left: -8px; }
	.panm-home .event-carousel__arrow--next { right: -8px; }
}

/* ---------------------------------------------------------
   Évènement (single-events.php)
   Réutilise .page-header, .section, .info-item et .section-cta ;
   seule la mise en page à deux colonnes est propre au gabarit.
   --------------------------------------------------------- */

/* Le <main> est directement dans <body> : pas besoin du débordement 100vw. */
.panm-event .panm-home {
	width: 100%;
	margin-left: 0;
	transform: none;
}

.panm-home .event-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
	gap: 48px;
	align-items: start;
}

@media (max-width: 820px) {
	.panm-home .event-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

.panm-home .event-affiche {
	margin: 0 0 24px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.panm-home .event-affiche img {
	width: 100%;
	height: auto;
}

.panm-home .event-content {
	color: var(--ink-soft);
	font-size: 1rem;
	line-height: 1.75;
}

.panm-home .event-content > * + * {
	margin-top: 1em;
}

.panm-home .event-content h2,
.panm-home .event-content h3 {
	color: var(--ink);
	margin-top: 1.6em;
}

.panm-home .event-content a {
	color: var(--violet-700);
	text-decoration: underline;
}

.panm-home .event-content ul,
.panm-home .event-content ol {
	padding-left: 1.4em;
}

.panm-home .event-infos {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.panm-home .event-infos .section-cta {
	align-self: flex-start;
}

.panm-home .event-back {
	display: inline-block;
	margin-top: 20px;
	font-size: .85rem;
	font-weight: 600;
	color: var(--violet-700);
	text-decoration: none;
}

.panm-home .event-back:hover {
	text-decoration: underline;
}
