/* Vélo Couché 64 – Fonctions : styles (galerie, albums, bandeaux). */
/* ===== Vélo Couché 64 : galeries photo (page Galerie et articles) ===== */
.elementor-widget-theme-post-content .wp-block-gallery.has-nested-images {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px !important;
	margin: 8px 0;
}
@media (max-width: 767px) {
	.elementor-widget-theme-post-content .wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px !important;
	}
}
.elementor-widget-theme-post-content .wp-block-gallery.has-nested-images figure.wp-block-image {
	width: auto !important;
	margin: 0 !important;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	overflow: hidden;
	background: #E6E0D2;
}
.elementor-widget-theme-post-content .wp-block-gallery.has-nested-images figure.wp-block-image .wp-lightbox-container {
	height: 100%;
}
.elementor-widget-theme-post-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform .4s ease;
}
.elementor-widget-theme-post-content .wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
	transform: scale(1.04);
}

/* Titres et séparations des albums (page Galerie) */
.vc64-page-galerie .elementor-widget-theme-post-content h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 6px;
	font-family: "Oswald", sans-serif;
	font-size: 32px;
	text-transform: uppercase;
	color: #0F3B27;
}
.vc64-page-galerie .elementor-widget-theme-post-content h2::before {
	content: "";
	flex: none;
	width: 28px;
	height: 4px;
	border-radius: 4px;
	background: #A00D25;
}
.vc64-page-galerie .elementor-widget-theme-post-content h2 + p {
	margin: 0 0 18px;
	color: #45483F;
}
.vc64-page-galerie .elementor-widget-theme-post-content .wp-block-separator {
	margin: 56px 0;
	border: 0;
	border-top: 1px solid #E6E0D2;
	opacity: 1;
}
.vc64-page-galerie .elementor-widget-theme-post-content p.has-text-align-center {
	margin-bottom: 40px;
	font-size: 18px;
}

/* Albums repliables : 6 photos visibles, bouton « Voir tout l'album » */
.wp-block-gallery .vc64-masque {
	display: none !important;
}
.wp-block-gallery.vc64-ouvert .vc64-masque {
	display: block !important;
	animation: vc64-apparition .35s ease;
}
@keyframes vc64-apparition {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}
.vc64-voir-tout-zone {
	display: flex;
	justify-content: center;
	margin: 22px 0 6px;
}
.vc64-voir-tout {
	padding: 13px 26px;
	border: 2px solid #0F3B27;
	border-radius: 999px;
	background: transparent;
	color: #0F3B27;
	font-family: "Oswald", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.vc64-voir-tout:hover,
.vc64-voir-tout:focus-visible {
	background: #0F3B27;
	color: #FFFFFF;
}

/* Le bouton garde son style même si le kit Elementor stylise les boutons */
.vc64-voir-tout-zone button.vc64-voir-tout {
	padding: 13px 26px !important;
	border: 2px solid #0F3B27 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: #0F3B27 !important;
}
.vc64-voir-tout-zone button.vc64-voir-tout:hover,
.vc64-voir-tout-zone button.vc64-voir-tout:focus-visible {
	background: #0F3B27 !important;
	color: #FFFFFF !important;
}

/* Bandeau de la page Actualités : une autre photo que celle d'Événements
   (la photo d'Événements, le voile vert et la classe vc64-bandeau sont réglés dans Elementor). */
body.category-actualites .vc64-bandeau {
	background-image: url("/wp-content/uploads/2026/10/5E5307B1-A221-4E50-B4D8-9974925F1582-1536x1152.jpeg") !important;
}


/* Pages légales (Mentions légales, Politique de confidentialité) : même habillage que le reste du site */
.vc64-page-legale main.site-main { max-width: none; width: 100%; padding: 0 0 80px; }
.vc64-page-legale .page-header { display: flex; align-items: flex-end; width: 97%; min-height: 300px; margin: 0 auto 48px; padding: 50px; border-radius: 8px; box-sizing: border-box; background: linear-gradient(to bottom, rgba(15,59,39,.15), rgba(15,59,39,.88)), url("/wp-content/uploads/2026/10/5B4A4B61-AB93-49EE-B215-B8C559EE4C43-1536x1152.jpeg") center / cover; }
.vc64-page-legale .page-header h1.entry-title { margin: 0; font-family: "Oswald", sans-serif; font-size: clamp(34px, 5vw, 56px); font-weight: 400; line-height: 1.05; text-transform: uppercase; color: #FFFFFF; }
.vc64-page-legale .page-content { max-width: 780px; margin: 0 auto; padding: 0 20px; color: #45483F; font-size: 16px; line-height: 1.7; }
.vc64-page-legale .page-content h2 { margin: 40px 0 12px; font-family: "Oswald", sans-serif; font-size: 26px; font-weight: 400; text-transform: uppercase; color: #0F3B27; }
.vc64-page-legale .page-content > p:first-child { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #F5F1E8; font-size: 13px; color: #0F3B27; }
.vc64-page-legale .page-content ul { margin: 0 0 16px; padding-left: 20px; }
.vc64-page-legale .page-content li { margin-bottom: 6px; }
.vc64-page-legale .page-content a { color: #0F3B27; text-decoration: underline; text-underline-offset: 3px; }
.vc64-page-legale .page-content strong { color: #1B1F1A; }
@media (max-width: 767px) { .vc64-page-legale .page-header { width: 95%; min-height: 220px; padding: 24px; } }


/* Vidéo YouTube dans un article : pleine largeur, format 16/9 */
.vc64-video { margin: 24px 0; }
.vc64-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }

/* Liens dans les articles : bien visibles */
.elementor-widget-theme-post-content p a:not(.vc64-lien a) { color: #A00D25; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.elementor-widget-theme-post-content p a:not(.vc64-lien a):hover { color: #0F3B27; }
/* Lien collé seul sur une ligne : bouton */
.vc64-lien { margin: 24px 0; }
.vc64-lien a { display: flex; align-items: center; gap: 14px; max-width: 520px; padding: 14px 18px; border: 2px solid #0F3B27; border-radius: 16px; background: #F5F1E8; color: #0F3B27 !important; text-decoration: none !important; transition: background .2s ease, color .2s ease; }
.vc64-lien a:hover, .vc64-lien a:focus-visible { background: #0F3B27; color: #FFFFFF !important; }
.vc64-lien-icone { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; font-size: 22px; }
.vc64-lien-texte { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.vc64-lien-texte strong { font-family: "Oswald", sans-serif; font-size: 18px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
.vc64-lien-texte small { font-size: 13px; opacity: .9; }
.vc64-lien-fleche { flex: none; font-size: 22px; }

/* Foire aux questions (page Essayer) */
.vc64-faq { max-width: 860px; margin: 0 auto; border-top: 1px solid #E6E0D2; }
.vc64-faq-item { border-bottom: 1px solid #E6E0D2; }
.vc64-faq-item summary { position: relative; display: block; padding: 20px 52px 20px 0; cursor: pointer; list-style: none; font-family: "Oswald", sans-serif; font-size: 20px; font-weight: 400; line-height: 1.3; text-transform: uppercase; color: #0F3B27; }
.vc64-faq-item summary::-webkit-details-marker { display: none; }
.vc64-faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #F5F1E8; color: #A00D25; font-family: "Lexend", sans-serif; font-size: 22px; line-height: 1; }
.vc64-faq-item[open] summary::after { content: "−"; background: #A00D25; color: #FFFFFF; }
.vc64-faq-item summary:hover { color: #A00D25; }
.vc64-faq-item summary:focus-visible { outline: 3px solid #A00D25; outline-offset: 4px; border-radius: 4px; }
.vc64-faq-reponse { padding: 0 52px 22px 0; }
.vc64-faq-reponse p { margin: 0; color: #45483F; font-size: 16px; line-height: 1.7; }
@media (max-width: 767px) { .vc64-faq-item summary { font-size: 17px; } }


/* Lisibilité et accessibilité (critères AAA des WCAG pour le texte) :
   police Lexend réglée dans Elementor, contraste d'au moins 7:1, interligne 1,7, pas d'espacement resserré, contour visible au clavier. */
body { letter-spacing: 0; }
.elementor-widget-text-editor, .elementor-widget-theme-post-content, .elementor-widget-icon-list .elementor-icon-list-text { letter-spacing: 0 !important; }
.elementor-widget-text-editor p, .elementor-widget-theme-post-content p, .elementor-widget-theme-post-content li { line-height: 1.7; }
.elementor-widget-text-editor strong, .elementor-widget-theme-post-content strong { font-weight: 600; }
.elementor-widget-theme-post-content p, .elementor-widget-theme-post-content li { max-width: 75ch; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #0F3B27 !important; outline-offset: 3px; box-shadow: 0 0 0 6px #FFFFFF; }
/* Liens dans les textes des pages : toujours soulignés, donc repérables sans la couleur */
.elementor-widget-text-editor a:not(.elementor-button) { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.elementor-widget-text-editor a:not(.elementor-button):hover { text-decoration-thickness: 2px; }
