/* =========================================================
   Compléments propres à la version Laravel : ce que le thème WordPress n'avait pas
   (photos de l'équipe, galerie, formulaire de contact, pages légales). Les styles repris
   du thème restent dans leurs fichiers d'origine, copiés tels quels.
   ========================================================= */

/* --- Équipe du club : photo à la place des initiales --- */
.panm-home .person-avatar--photo {
	display: block;
	object-fit: cover;
	background: var(--surface);
}

/* --- Formulaire de contact : confirmation, erreurs, champ piège, mention --- */
.panm-home .form-alerte {
	margin: 0;
	padding: 12px 16px;
	border-radius: 8px;
	font-family: 'Manrope', sans-serif;
	font-size: .9rem;
}

.panm-home .form-alerte--ok {
	background: #EAF6EE;
	color: #1E5A32;
	border: 1px solid #B9DFC6;
}

.panm-home .form-alerte--erreur {
	background: #FCECEC;
	color: #8A1C1C;
	border: 1px solid #F1C2C2;
}

.panm-home .form-row [aria-invalid="true"] {
	border-color: #B42318;
}

.panm-home .form-erreur {
	font-family: 'Manrope', sans-serif;
	font-size: .8rem;
	color: #B42318;
}

.panm-home .form-piege {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.panm-home .form-mention {
	margin: 0;
	font-size: .8rem;
	color: var(--ink-soft);
}

.panm-home .form-mention a {
	color: inherit;
	text-decoration: underline;
}

/* Le bouton d'envoi reprend le style des liens .section-cta : sur WordPress, ce style ne visait
   que les liens et le bouton gardait celui de reset.css (transparent, texte rose). */
.panm-home .contact-form button.section-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--violet-700);
	color: #fff;
	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 .contact-form button.section-cta:hover,
.panm-home .contact-form button.section-cta:focus-visible {
	background: var(--violet-900);
	color: #fff;
	translate: 0 -2px;
}

/* --- Galerie : cartes d'album, grille de photos, visionneuse --- */
.panm-home .album-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.panm-home .album-carte {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	color: var(--ink);
	text-decoration: none;
	transition: translate .15s ease, box-shadow .15s ease;
}

.panm-home .album-carte:hover,
.panm-home .album-carte:focus-visible {
	translate: 0 -3px;
	box-shadow: 0 12px 28px rgba(36, 27, 51, .12);
	color: var(--ink);
}

.panm-home .album-carte__couverture {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--border);
}

.panm-home .album-carte__couverture img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.panm-home .album-carte__texte {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px 20px;
}

.panm-home .album-carte__titre {
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 1.05rem;
}

.panm-home .album-carte__nombre {
	font-size: .85rem;
	color: var(--ink-soft);
}

.panm-home .album-liens {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 28px 0 0;
}

.panm-home .album-liens a,
.panm-home .event-photos {
	color: var(--violet-700);
	font-weight: 600;
}

.panm-home .event-photos {
	display: inline-block;
	margin-bottom: 14px;
}

.panm-home .photo-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.panm-home .photo-grille a {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 8px;
	background: var(--border);
}

.panm-home .photo-grille img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale .3s ease;
}

.panm-home .photo-grille a:hover img,
.panm-home .photo-grille a:focus-visible img {
	scale: 1.04;
}

@media (max-width: 560px) {
	.panm-home .photo-grille {
		grid-template-columns: repeat(2, 1fr);
		gap: 6px;
	}
}

.panm-home .pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
	font-size: .9rem;
	color: var(--ink-soft);
}

.panm-home .pagination a {
	color: var(--violet-700);
	font-weight: 600;
}

.visionneuse {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 56px 16px;
	border: 0;
	background: rgba(8, 4, 12, .94);
	color: #fff;
}

.visionneuse[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.visionneuse::backdrop {
	background: rgba(8, 4, 12, .94);
}

.visionneuse__photo {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

.visionneuse__compteur {
	position: absolute;
	top: 16px;
	left: 0;
	right: 0;
	margin: 0;
	text-align: center;
	font-size: .9rem;
	opacity: .8;
}

.visionneuse .visionneuse__bouton {
	position: absolute;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
}

.visionneuse .visionneuse__bouton:hover,
.visionneuse .visionneuse__bouton:focus-visible {
	background: rgba(255, 255, 255, .28);
	color: #fff;
}

.visionneuse__fermer {
	top: 8px;
	right: 12px;
}

.visionneuse__prec,
.visionneuse__suiv {
	top: 50%;
	translate: 0 -50%;
}

.visionneuse__prec {
	left: 12px;
}

.visionneuse__suiv {
	right: 12px;
}

/* --- Page Évènements : cartes reliées à la page de chaque évènement --- */
.panm-home .evenement-carte h3 a {
	color: inherit;
	text-decoration: none;
}

.panm-home .evenement-carte h3 a:hover,
.panm-home .evenement-carte h3 a:focus-visible {
	color: var(--violet-700);
	text-decoration: underline;
}

.panm-home .evenement-carte__photos {
	margin-top: auto;
	color: var(--violet-700);
	font-size: .85rem;
	font-weight: 600;
}

.panm-home .evenements-note {
	margin: 18px 0 0;
	font-size: .85rem;
	color: var(--ink-soft);
}

/* --- Pages légales : texte riche saisi dans l'administration --- */
.panm-home .page-legale {
	max-width: 72ch;
	color: var(--ink);
	line-height: 1.7;
}

.panm-home .page-legale h2 {
	margin: 2em 0 .6em;
	font-size: 1.35rem;
}

.panm-home .page-legale h2:first-child {
	margin-top: 0;
}

.panm-home .page-legale h3 {
	margin: 1.6em 0 .5em;
	font-size: 1.1rem;
}

.panm-home .page-legale ul,
.panm-home .page-legale ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

.panm-home .page-legale li {
	margin-bottom: .35em;
}

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

/* --- Barre de navigation : « S'inscrire & réserver » en bouton (remplace l'ancien bouton
   « Inscriptions »), aux couleurs de la DA. nav.css remet à zéro le fond et la couleur des
   boutons de la barre avec !important : il en faut autant ici. --- */
.panm-navbar .panm-navbar__item--cta > .panm-navbar__toggle {
	padding: 10px 18px;
	background: var(--panm-color-primary) !important;
	color: var(--panm-color-white) !important;
	border-radius: var(--da-btn-radius, 0);
	transition: background-color .2s ease;
}

.panm-navbar .panm-navbar__item--cta:hover > .panm-navbar__toggle,
.panm-navbar .panm-navbar__item--cta.is-open > .panm-navbar__toggle,
.panm-navbar .panm-navbar__item--cta > .panm-navbar__toggle:focus-visible {
	background: var(--panm-color-primary-dark) !important;
	color: var(--panm-color-white) !important;
}

.panm-navbar .panm-navbar__item--cta > .panm-navbar__toggle::after {
	display: none;
}

/* =========================================================
   Pages de la nouvelle structure (Le club, Loisirs, Compétition, Événements,
   S'inscrire & réserver, Contact)
   ========================================================= */

/* --- Petits textes communs --- */
.panm-home .note,
.panm-home .texte-intro {
	max-width: 70ch;
	color: var(--ink-soft);
	line-height: 1.7;
}

.panm-home .note {
	margin: 18px 0 0;
	font-size: .88rem;
}

.panm-home .texte-intro {
	margin: 0 0 32px;
	font-size: 1.02rem;
}

.panm-home .liens-suite {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 24px 0 0;
}

.panm-home .liens-suite a,
.panm-home .lien-discret {
	color: var(--violet-700);
	font-weight: 600;
}

.panm-home .appel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 40px;
	padding: 28px 32px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
}

.panm-home .appel p {
	flex: 1 1 280px;
	margin: 0;
	color: var(--ink);
}

.panm-home .texte-riche {
	color: var(--ink);
	line-height: 1.7;
}

.panm-home .texte-riche > :last-child {
	margin-bottom: 0;
}

.panm-home .texte-riche ul,
.panm-home .texte-riche ol {
	padding-left: 1.4em;
}

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

/* --- Qui sommes-nous : cartes vers les autres pages du club --- */
.panm-home .liens-cartes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.panm-home .lien-carte {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 26px 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	color: var(--ink);
	text-decoration: none;
	transition: translate .15s ease, border-color .15s ease;
}

.panm-home .lien-carte strong {
	font-family: 'Fraunces', serif;
	font-size: 1.1rem;
}

.panm-home .lien-carte span {
	color: var(--ink-soft);
	font-size: .9rem;
	line-height: 1.6;
}

.panm-home .lien-carte:hover,
.panm-home .lien-carte:focus-visible {
	translate: 0 -3px;
	border-color: var(--violet-700);
	color: var(--ink);
}

/* --- Partenaires --- */
.panm-home .partenaires-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.panm-home .partenaire-carte {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
}

.panm-home .partenaire-carte__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 110px;
	margin-bottom: 8px;
	background: #fff;
	border-radius: 10px;
}

.panm-home .partenaire-carte__logo img {
	max-width: 80%;
	max-height: 80px;
	object-fit: contain;
}

.panm-home .partenaire-carte h3 {
	font-size: 1rem;
}

.panm-home .partenaire-carte p {
	margin: 0;
	color: var(--ink-soft);
	font-size: .88rem;
}

/* --- Vie associative : documents --- */
.panm-home .documents {
	display: grid;
	gap: 12px;
	max-width: 760px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.panm-home .document {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--ink);
	text-decoration: none;
	transition: border-color .15s ease;
}

.panm-home .document:hover,
.panm-home .document:focus-visible {
	border-color: var(--violet-700);
	color: var(--ink);
}

.panm-home .document__icone {
	color: var(--violet-700);
	flex: none;
}

.panm-home .document__texte {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
}

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

.panm-home .document__format {
	flex: none;
	color: var(--ink-soft);
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .06em;
}

/* --- Groupes (Loisirs, Compétition, Inscription) --- */
.panm-home .groupes-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.panm-home .groupe-carte {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	scroll-margin-top: 100px;
}

.panm-home .groupe-carte header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
}

.panm-home .groupe-carte h2,
.panm-home .groupe-carte h3 {
	margin: 0;
	font-family: 'Fraunces', serif;
	font-size: 1.3rem;
}

.panm-home .groupe-carte__ages {
	color: var(--gold-500);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .04em;
}

.panm-home .groupe-carte p {
	margin: 0;
	color: var(--ink-soft);
	font-size: .92rem;
	line-height: 1.6;
}

.panm-home .groupe-carte__creneaux {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .88rem;
	color: var(--ink);
}

.panm-home .groupe-carte__creneaux li + li {
	margin-top: 4px;
}

.panm-home .groupe-carte footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-top: auto;
	padding-top: 8px;
}

.panm-home .groupe-carte__tarif {
	font-weight: 700;
	color: var(--ink);
}

.panm-home .groupe-carte .section-cta {
	margin: 0;
}

.panm-home .panm-table a {
	color: var(--violet-700);
	font-weight: 600;
}

/* --- Résultats --- */
.panm-home .resultats {
	display: grid;
	gap: 20px;
}

.panm-home .resultat {
	padding: 26px 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
}

.panm-home .resultat h3 {
	margin: 6px 0 14px;
	font-family: 'Fraunces', serif;
	font-size: 1.2rem;
}

/* --- Calendrier --- */
.panm-home .calendrier__mois {
	margin: 36px 0 12px;
	font-size: 1.25rem;
	text-transform: capitalize;
}

.panm-home .calendrier__mois:first-child {
	margin-top: 0;
}

.panm-home .calendrier {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--border);
}

.panm-home .calendrier li {
	display: grid;
	grid-template-columns: 13rem minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 6px 24px;
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
}

.panm-home .calendrier__date {
	color: var(--gold-500);
	font-size: .85rem;
	font-weight: 700;
}

.panm-home .calendrier__titre {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-weight: 600;
}

.panm-home .calendrier__titre a {
	color: var(--ink);
}

.panm-home .calendrier__titre a:hover {
	color: var(--violet-700);
}

.panm-home .calendrier__titre span {
	color: var(--ink-soft);
	font-size: .88rem;
	font-weight: 400;
}

.panm-home .calendrier__type {
	padding: 3px 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--ink-soft);
	font-size: .75rem;
}

@media (max-width: 640px) {
	.panm-home .calendrier li {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.panm-home .calendrier__date {
		grid-column: 1 / -1;
	}
}

/* --- Compétitions du club --- */
.panm-home .competition-club {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	align-items: start;
	gap: 40px;
}

.panm-home .competition-club:not(:has(img)) {
	grid-template-columns: minmax(0, 1fr);
	max-width: 760px;
}

.panm-home .competition-club__image {
	width: 100%;
	border-radius: 16px;
}

.panm-home .competition-club__texte {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.panm-home .competition-club .page-lede {
	color: var(--ink-soft);
}

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

/* --- Liens externes (AssoConnect…) --- */
.panm-home .liens-externes {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.panm-home .liens-externes a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	position: relative;
	padding: 12px 36px 12px 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	color: var(--violet-700);
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease;
}

.panm-home .liens-externes a::after {
	content: '↗';
	position: absolute;
	right: 14px;
}

.panm-home .liens-externes a:hover,
.panm-home .liens-externes a:focus-visible {
	border-color: var(--violet-700);
	background: var(--bg);
}

.panm-home .liens-externes span {
	color: var(--ink-soft);
	font-size: .85rem;
}

/* --- FAQ --- */
.panm-home .faq__theme {
	margin: 36px 0 12px;
	font-size: 1.25rem;
}

.panm-home .faq__theme:first-child {
	margin-top: 0;
}

.panm-home .faq {
	display: grid;
	gap: 10px;
	max-width: 820px;
}

.panm-home .faq__question {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
}

.panm-home .faq__question summary {
	position: relative;
	padding: 18px 52px 18px 22px;
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
	list-style: none;
}

.panm-home .faq__question summary::-webkit-details-marker {
	display: none;
}

.panm-home .faq__question summary::after {
	content: '+';
	position: absolute;
	top: 50%;
	right: 22px;
	translate: 0 -50%;
	color: var(--violet-700);
	font-size: 1.4rem;
	font-weight: 400;
	transition: rotate .2s ease;
}

.panm-home .faq__question[open] summary::after {
	rotate: 45deg;
}

.panm-home .faq__question .texte-riche {
	padding: 0 22px 20px;
}

/* --- Accueil : liens des infos pratiques --- */
.da-home .da-infos .da-groupe__lien {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
}

.da-home .da-infos .da-groupe__texte a {
	color: inherit;
}
