/* =========================================================
   Patinage Artistique Neuilly-sur-Marne — Styles des shortcodes
   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).
   ========================================================= */

/* ---------------------------------------------------------
   [panm_accueil]
   Design tokens et polices (Fraunces / Manrope) propres à ce
   shortcode, 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).
   --------------------------------------------------------- */

.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);
	}
}

.panm-home h1,
.panm-home h2,
.panm-home h3 {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
	font-weight: 600;
	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-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;
}

.panm-home .hero-cta {
	margin-top: 30px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--surface);
	color: var(--violet-900);
	text-decoration: none;
	font-weight: 700;
	padding: 14px 26px;
	border-radius: 999px;
	box-shadow: 0 14px 30px -12px rgba(21, 12, 33, .45);
	transition: background .15s ease, translate .15s ease;
}

.panm-home .hero-cta:hover {
	background: var(--mauve-200);
	translate: 0 -2px;
}

.panm-home .hero-cta svg {
	width: 16px;
	height: 16px;
}

.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 {
	display: flex;
	gap: 12px;
}

.panm-home .social-icons a {
	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);
	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-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;
}

.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 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;
	}
}

.panm-home .hero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

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

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

.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;
	border-radius: 2px;
	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 {
	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, 1fr);
	gap: 20px;
}

@media (max-width: 820px) {
	.panm-home .links-grid {
		grid-template-columns: repeat(2, 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;
	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 {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .78rem;
	color: var(--violet-700);
	font-weight: 600;
}

.panm-home .link-card .go svg {
	width: 11px;
	height: 11px;
}

/* --- 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;
}

.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-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);
}

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

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

.panm-home .section-cta: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 [panm_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;
}
