/*
Theme Name: Oxigeno Child
Template: oxigeno
Description: Personnalisation FRMGYM – page d'accueil optimisée et responsive.
Version: 1.0.0
Author: FRMGYM
*/

/* Informations de contact dans le footer - Design amélioré (via shortcode) */
.frmgym-footer-contact-wrapper {
	padding: 40px 0;
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	border-top: 3px solid var(--frmg-gold, #b89611);
	position: relative;
	overflow: hidden;
}

.frmgym-footer-contact-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(184,150,17,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
	opacity: 0.3;
	pointer-events: none;
}

.frmgym-footer-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: center;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.8;
	position: relative;
	z-index: 1;
}

.frmgym-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	background: rgba(255, 255, 255, 0.05);
	padding: 20px 25px;
	border-radius: 12px;
	border: 1px solid rgba(184, 150, 17, 0.2);
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
	flex: 1;
	min-width: 280px;
	max-width: 350px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.frmgym-contact-item:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--frmg-gold, #b89611);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(184, 150, 17, 0.3);
}

.frmgym-contact-icon {
	flex-shrink: 0;
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--frmg-gold, #b89611) 0%, #d4af37 100%);
	border-radius: 50%;
	color: #1a1a1a;
	box-shadow: 0 4px 10px rgba(184, 150, 17, 0.4);
}

.frmgym-contact-icon svg {
	width: 20px;
	height: 20px;
}

.frmgym-contact-content {
	flex: 1;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.frmgym-contact-content strong {
	color: var(--frmg-gold, #b89611);
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.frmgym-contact-content span,
.frmgym-contact-content a {
	color: #e0e0e0;
	text-decoration: none;
	transition: color 0.3s ease;
	font-size: 15px;
}

.frmgym-contact-content a:hover {
	color: var(--frmg-gold, #b89611);
	text-decoration: underline;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
	.btSiteFooterContact {
		padding: 30px 0;
	}
	
	.frmgym-footer-contact {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 0 15px;
	}
	
	.frmgym-contact-item {
		min-width: 100%;
		max-width: 100%;
		padding: 18px 20px;
	}
	
	.frmgym-contact-icon {
		width: 40px;
		height: 40px;
	}
	
	.frmgym-contact-icon svg {
		width: 18px;
		height: 18px;
	}
}

:root {
  --frmg-red: #e0112b;
  --frmg-gold: #b89611;
  --frmg-dark: #191919;
  --frmg-light: #f6f6f6;
}

/* Barre supérieure */
.top-bar-custom {
  background-color: #d4af37;
  color: #fff;
  height: 40px;
  display: flex;
  align-items: center;
  font-size: 15px;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.top-bar-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left a,
.top-bar-right a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s;
}

.top-bar-left a:hover,
.top-bar-right a:hover {
  color: #000;
}

.top-bar-right a i {
  font-size: 18px;
}

@media (max-width: 768px) {
  .top-bar-left {
    display: none !important;
  }

  .top-bar-content {
    justify-content: center;
    text-align: center;
    padding: 10px;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
}

.btPageWrap,
.btContentWrap {
  background: #ffffff !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.btMenuVertical .mainHeader {
  top: 40px;
  bottom: auto;
}

/* Assurer le top-bar devant le contenu */
.top-bar-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 11000;
}

/* Masquer l'ancien bandeau titre de page */
.home .btPageHeadline {
  display: none !important;
}

/* Header / menu : fond + séparation */
.mainHeader {
  background: #ffffff !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  margin-top: 0 !important;
  position: relative;
  z-index: 10000;
}

.btBelowLogoArea {
  background: transparent !important;
}

/* Couleur du menu sur fond clair */
.mainHeader .menuPort nav > ul > li > a {
  color: #b89611 !important;
}

.mainHeader .menuPort nav > ul > li > a:hover,
.mainHeader .menuPort nav > ul > li.current-menu-item > a,
.mainHeader .menuPort nav > ul > li.current-menu-ancestor > a {
  color: #e0112b !important;
}

/* Header : logo mobile centré */
@media (max-width: 768px) {
  .btLogoArea,
  .logo-wrapper,
  .logo,
  .mobile-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .btMainLogo {
    display: none !important;
  }

  .btAltLogo {
    display: block !important;
    margin: 0 auto !important;
    max-width: 80% !important;
    height: auto !important;
  }
}

/* --- Page d'accueil --- */
.frmg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.frmg-section {
  padding: 60px 0;
}

.frmg-section__title {
  text-align: center;
  margin-bottom: 20px;
  color: var(--frmg-dark);
}

.frmg-section__subtitle {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 640px;
  color: #555;
}

.frmg-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--frmg-gold);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.frmg-button:hover {
  background: #8b6c0c;
  transform: translateY(-2px);
}

.frmg-button--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.frmg-button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Hero statique */
.frmg-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 68px 0 0;
  margin-top: 0;
}

.frmg-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(12, 27, 46, 0.82) 0%, rgba(16, 39, 68, 0.85) 60%, rgba(12, 27, 46, 0.94) 100%),
    url('https://images.unsplash.com/photo-1509223197845-458d87318791?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  filter: brightness(0.9);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Si un arrière-plan personnalisé est défini, il remplace celui par défaut */
.frmg-hero__bg[style*="background-image"] {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.frmg-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: stretch;
  padding: 140px 0 80px;
}

.frmg-hero__text h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 12px 0;
}

.frmg-hero__lead {
  font-size: 17px;
  line-height: 1.5;
  max-width: 640px;
  color: #e8eefc;
}

.frmg-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.frmg-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--frmg-gold);
  margin: 0;
}

.frmg-hero__featured {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .frmg-hero {
    padding-top: 42px;
    margin-top: 0;
  }

  .frmg-hero__content {
    padding: 80px 0 50px;
    gap: 16px;
  }
}

.frmg-feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.frmg-feature-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.frmg-feature-card__body {
  padding: 14px;
  color: #fff;
  display: grid;
  gap: 6px;
}

.frmg-feature-card__body h3 {
  margin: 0;
  font-size: 18px;
}

.frmg-feature-card__body h3 a {
  color: #fff;
  text-decoration: none;
}

.frmg-feature-card__body p {
  margin: 0;
  color: #d8e2ff;
  line-height: 1.4;
}

.frmg-feature-card__meta {
  font-size: 12px;
  color: #d8e2ff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.frmg-feature-swiper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.frmg-feature-swiper .swiper-wrapper {
  align-items: stretch;
  width: 100%;
}

.frmg-feature-swiper .swiper-slide {
  height: auto;
  width: 100% !important;
}

.frmg-feature-swiper .frmg-feature-nav {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.frmg-feature-swiper .frmg-feature-prev,
.frmg-feature-swiper .frmg-feature-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  background: rgba(0, 0, 0, 0.25);
}

.frmg-feature-swiper .frmg-feature-prev:hover,
.frmg-feature-swiper .frmg-feature-next:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.frmg-feature-pagination {
  margin-top: 12px;
  text-align: left;
}

.frmg-feature-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.frmg-feature-pagination .swiper-pagination-bullet-active {
  background: var(--frmg-gold);
}

.frmg-feature-nav {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.frmg-feature-prev,
.frmg-feature-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(184, 150, 17, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b89611;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.frmg-feature-prev:hover,
.frmg-feature-next:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(224, 17, 43, 0.6);
  color: #e0112b;
  transform: translateY(-1px);
}

/* Stats */
.frmg-section--stats {
  padding: 32px 0;
  background: #f2f2f2;
}

.frmg-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.frmg-stat {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.frmg-stat__value {
  font-size: 24px;
  font-weight: 800;
  color: var(--frmg-dark);
}

.frmg-stat__label {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
}

/* Disciplines */
.frmg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.frmg-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frmg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.frmg-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.frmg-card__body {
  padding: 14px;
  text-align: center;
  font-weight: 700;
  color: var(--frmg-dark);
}

/* Section disciplines fond sombre */
.frmg-section--disciplines {
  background: #202a36;
  padding: 60px 0;
  position: relative;
}

/* Arrière-plan personnalisé pour le bloc disciplines */
.frmg-section--disciplines[style*="background-image"] {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed;
}

.frmg-section--disciplines__overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 42, 54, 0.75);
  z-index: 0;
  pointer-events: none;
}

.frmg-section--disciplines .frmg-container {
  position: relative;
  z-index: 1;
}

.frmg-section--disciplines .frmg-section__title,
.frmg-section--disciplines .frmg-section__subtitle {
  color: #f4f6fa;
  position: relative;
  z-index: 1;
}

.frmg-section--disciplines .frmg-card {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.frmg-section--disciplines .frmg-card__body {
  color: #0f1620;
}


/* Hero statique */
.frmg-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 0;
}

.frmg-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(12, 27, 46, 0.8) 0%, rgba(16, 39, 68, 0.8) 60%, rgba(12, 27, 46, 0.92) 100%),
    url('https://images.unsplash.com/photo-1509223197845-458d87318791?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  filter: brightness(0.9);
}

.frmg-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: stretch;
  padding: 70px 0;
}

.frmg-hero__text h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 12px 0;
}

.frmg-hero__lead {
  font-size: 17px;
  line-height: 1.5;
  max-width: 640px;
  color: #e8eefc;
}

.frmg-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.frmg-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--frmg-gold);
  margin: 0;
}

.frmg-hero__featured {
  display: grid;
  gap: 14px;
}

.frmg-feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.frmg-feature-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.frmg-feature-card__body {
  padding: 14px;
  color: #fff;
  display: grid;
  gap: 6px;
}

.frmg-feature-card__body h3 {
  margin: 0;
  font-size: 18px;
}

.frmg-feature-card__body h3 a {
  color: #fff;
  text-decoration: none;
}

.frmg-feature-card__body p {
  margin: 0;
  color: #d8e2ff;
  line-height: 1.4;
}

.frmg-feature-card__meta {
  font-size: 12px;
  color: #d8e2ff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Dernières news */
.frmg-news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.frmg-news__item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.frmg-news__image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

.frmg-news__item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.frmg-news__title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
  padding: 12px 14px;
}

.frmg-news__title-overlay .frmg-news__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frmg-news__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.frmg-news__category {
  font-size: 12px;
  font-weight: 700;
  color: var(--frmg-red);
  text-transform: uppercase;
}

.frmg-news__meta {
  font-size: 12px;
  color: #777;
}

.frmg-news__excerpt {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.frmg-news__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 8px;
}

.frmg-button--small {
  padding: 6px 14px;
  font-size: 12px;
}

/* Partenaires */
.frmg-partners-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.frmg-partners-title {
  display: flex;
  align-items: center;
}

.frmg-partners-title .frmg-section__title {
  text-align: left;
  margin-bottom: 0;
}

.frmg-partners {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 16px 20px;
  overflow: hidden;
}

.frmg-partners .swiper {
  width: 100%;
}

.frmg-partners .swiper-wrapper {
  align-items: center;
}

.frmg-partners .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  transition: transform 0.3s ease;
}

.frmg-partner__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  height: 100%;
  width: 100%;
}

.frmg-partner__logo img {
  max-height: 100px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.frmg-partners .swiper-pagination {
  margin-top: 8px;
  position: relative;
}

.frmg-section--partners {
  padding: 30px 0;
}

@media (max-width: 768px) {
  .frmg-partners-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .frmg-partners-title .frmg-section__title {
    text-align: center;
  }
}

/* Bloc président */
.frmg-president {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: center;
}

.frmg-president__text h3 {
  color: var(--frmg-dark);
  margin-bottom: 12px;
}

.frmg-president__text p {
  color: #444;
  line-height: 1.6;
}

.frmg-president__photo img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Section Président fond sombre */
.frmg-section.frmg-section--president {
  background: #202a36;
  color: #f4f6fa;
}

.frmg-section--president .frmg-section__title,
.frmg-section--president .frmg-section__subtitle,
.frmg-section--president h3,
.frmg-section--president p {
  color: #f4f6fa;
}

/* Masquer le CTA footer "JOINDRE NOTRE FÉDÉRATION GYMNASTIQUES" */
.btSiteFooter #bt_bb_section6933e87504707 {
  display: none !important;
}

/* CTA final */
.frmg-cta {
  background: var(--frmg-red);
  color: #fff;
  border-radius: 14px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
}

.frmg-cta h3 {
  margin-bottom: 12px;
}

.frmg-cta p {
  margin-bottom: 16px;
}

/* CTA plein écran */
.frmg-section--cta {
  background: #35404e;
  padding: 60px 0;
}

.frmg-section--cta .frmg-cta {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  padding: 10px 0 0;
  width: 100%;
}

.frmg-section--cta .frmg-cta h3,
.frmg-section--cta .frmg-cta p {
  color: #fff;
}

.frmg-section--cta .frmg-button {
  background: var(--frmg-gold);
  color: #fff;
}

.frmg-section--cta .frmg-button:hover {
  background: #8b6c0c;
}

/* Partenaires : fond clair, logos plus grands */
.frmg-partners {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 18px;
}

.frmg-partner__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.frmg-partner__logo img {
  max-height: 110px;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 1024px) {
  .frmg-hero__main,
  .frmg-slide {
    height: 440px;
  }

  .frmg-hero__thumbs {
    display: block;
  }

  .frmg-hero__thumbs .swiper-slide {
    width: auto;
  }
}

@media (max-width: 640px) {
  .frmg-section {
    padding: 40px 0;
  }

  .frmg-hero__main,
  .frmg-slide {
    height: 360px;
  }

  .frmg-slide__title {
    font-size: 19px;
  }

  .frmg-slide__excerpt {
    font-size: 14px;
  }

  .frmg-button {
    padding: 8px 12px;
  }

  body {
    padding-top: 40px;
  }
}

/* ============================================
   Page personnalisée (ID 14)
   ============================================ */

.frmg-page-custom {
  margin-top: 0;
  padding-top: 0;
}

/* Hero de la page - Hauteur réduite */
.frmg-page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 40px 0;
  margin-top: 0;
  min-height: 250px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(12, 27, 46, 0.95) 0%, rgba(16, 39, 68, 0.98) 60%, rgba(12, 27, 46, 1) 100%);
}

.frmg-page-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(12, 27, 46, 0.82) 0%, rgba(16, 39, 68, 0.85) 60%, rgba(12, 27, 46, 0.94) 100%),
    center/cover no-repeat;
  filter: brightness(0.9);
  z-index: 0;
}

/* Pour les pages de galeries : garder l'image complète sans la couper */
body.single-envira .frmg-page-hero__bg,
body.post-type-envira .frmg-page-hero__bg,
body:has(.frmg-section--gallery-single) .frmg-page-hero__bg {
  /* Utiliser contain pour l'image afin de la garder complète */
  background-size: cover, contain !important;
  background-position: center center, center center !important;
  background-repeat: no-repeat, no-repeat !important;
}

/* Si le navigateur ne supporte pas :has(), utiliser une classe alternative */
.frmg-gallery-page .frmg-page-hero__bg {
  background-size: cover, contain !important;
  background-position: center center, center center !important;
  background-repeat: no-repeat, no-repeat !important;
}

.frmg-page-hero__content {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  text-align: center;
}

.frmg-page-hero__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff;
}

.frmg-page-hero__excerpt {
  font-size: 18px;
  line-height: 1.5;
  color: #e8eefc;
  max-width: 800px;
  margin: 0 auto;
}

/* Contenu principal */
.frmg-page-content {
  background: #ffffff;
  padding: 30px 0;
}

.frmg-page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--frmg-dark);
  margin: 0 0 20px;
  text-align: center;
}

.frmg-page-body {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  color: #444;
}

/* Styles pour le contenu WordPress (Bold Builder ou contenu standard) */
.frmg-page-body > *:first-child {
  margin-top: 0;
}

.frmg-page-body > *:last-child {
  margin-bottom: 0;
}

.frmg-page-body h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--frmg-dark);
  margin: 30px 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--frmg-gold);
}

.frmg-page-body h2:first-child {
  margin-top: 0;
}

.frmg-page-body h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--frmg-dark);
  margin: 28px 0 16px;
}

.frmg-page-body h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--frmg-dark);
  margin: 24px 0 14px;
}

.frmg-page-body p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.frmg-page-body ul,
.frmg-page-body ol {
  margin: 16px 0;
  padding-left: 25px;
}

.frmg-page-body li {
  margin: 8px 0;
  line-height: 1.6;
  color: #444;
}

.frmg-page-body a {
  color: var(--frmg-gold);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.frmg-page-body a:hover {
  color: var(--frmg-red);
  border-bottom-color: var(--frmg-red);
}

.frmg-page-body strong {
  font-weight: 700;
  color: var(--frmg-dark);
}

.frmg-page-body blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--frmg-gold);
  background: #f8f9fa;
  font-style: italic;
  color: #555;
}

.frmg-page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 18px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.frmg-page-body .wp-block-image,
.frmg-page-body figure {
  margin: 24px 0;
  text-align: center;
}

.frmg-page-body figcaption {
  font-size: 14px;
  color: #777;
  margin-top: 8px;
  font-style: italic;
}

/* Colonnes Bold Builder */
.frmg-page-body .bt_bb_row {
  margin: 24px 0;
}

.frmg-page-body .bt_bb_column {
  padding: 0 15px;
}

/* Boutons */
.frmg-page-body .frmg-button,
.frmg-page-body .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--frmg-gold);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.frmg-page-body .frmg-button:hover,
.frmg-page-body .wp-block-button__link:hover {
  background: var(--frmg-red);
  transform: translateY(-2px);
}

/* Sections Bold Builder avec fond coloré */
.frmg-page-body .btDarkSkin,
.frmg-page-custom .btDarkSkin {
  background: #202a36;
  color: #f4f6fa;
  padding: 40px 0;
  border-radius: 0;
}

.frmg-page-body .btDarkSkin h2,
.frmg-page-body .btDarkSkin h3,
.frmg-page-body .btDarkSkin p,
.frmg-page-custom .btDarkSkin h2,
.frmg-page-custom .btDarkSkin h3,
.frmg-page-custom .btDarkSkin p {
  color: #f4f6fa;
}

.frmg-page-body .btDarkSkin a,
.frmg-page-custom .btDarkSkin a {
  color: var(--frmg-gold);
}

.frmg-page-body .btDarkSkin a:hover,
.frmg-page-custom .btDarkSkin a:hover {
  color: #fff;
}

/* Styles pour les sections Bold Builder dans la page personnalisée */
.frmg-page-custom .boldSection {
  margin: 0;
}

.frmg-page-custom .bt_bb_section {
  position: relative;
}

/* Bloc btPageHeadline conservé - affiché normalement sur la page 146 */

/* ============================================
   Section Galerie (format gallery)
   Affichage responsive des articles galerie
   ============================================ */

.frmg-section--gallery {
  padding: 60px 0;
  background: #ffffff;
}

.frmg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.frmg-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  aspect-ratio: 4/3;
}

.frmg-gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.frmg-gallery-item__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.frmg-gallery-item__image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.frmg-gallery-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.frmg-gallery-item:hover .frmg-gallery-item__image img {
  transform: scale(1.05);
}

.frmg-gallery-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.9) 100%);
  padding: 24px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.frmg-gallery-item:hover .frmg-gallery-item__overlay {
  transform: translateY(0);
}

.frmg-gallery-item__info {
  color: #fff;
}

.frmg-gallery-item__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.3;
}

.frmg-gallery-item__excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: #e8e8e8;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frmg-gallery-item__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #d0d0d0;
  margin-top: 8px;
}

.frmg-gallery-item__date,
.frmg-gallery-item__count {
  display: flex;
  align-items: center;
  gap: 6px;
}

.frmg-gallery-item__count::before {
  content: "📷";
  font-size: 14px;
}

/* Responsive pour la galerie */
@media (max-width: 1024px) {
  .frmg-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
  
  .frmg-gallery-item__overlay {
    padding: 20px;
  }
  
  .frmg-gallery-item__title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .frmg-section--gallery {
    padding: 40px 0;
  }
  
  .frmg-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 30px;
  }
  
  .frmg-gallery-item__overlay {
    padding: 16px;
  }
  
  .frmg-gallery-item__title {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .frmg-gallery-item__excerpt {
    font-size: 13px;
    margin-bottom: 8px;
  }
  
  .frmg-gallery-item__meta {
    font-size: 12px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .frmg-gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .frmg-gallery-item {
    aspect-ratio: 16/9;
  }
}

/* ============================================
   Section Contact (page 28)
   Formulaire de contact et carte Google Maps
   ============================================ */

.frmg-section--contact {
  padding: 60px 0;
  background: #ffffff;
}

.frmg-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

.frmg-contact-form-wrapper,
.frmg-map-wrapper {
  background: #fff;
}

.frmg-contact-form-wrapper .frmg-section__title,
.frmg-map-wrapper .frmg-section__title {
  margin-bottom: 24px;
  font-size: 28px;
  text-align: left;
}

/* Formulaire de contact */
.frmg-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.frmg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.frmg-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.frmg-form-group label {
  font-weight: 600;
  color: var(--frmg-dark);
  font-size: 14px;
}

.frmg-form-group .required {
  color: var(--frmg-red);
}

.frmg-form-group input[type="text"],
.frmg-form-group input[type="email"],
.frmg-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.frmg-form-group input[type="text"]:focus,
.frmg-form-group input[type="email"]:focus,
.frmg-form-group textarea:focus {
  outline: none;
  border-color: var(--frmg-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.frmg-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.frmg-button--submit {
  align-self: flex-start;
  padding: 14px 32px;
  font-size: 16px;
  cursor: pointer;
  border: none;
}

.frmg-button--submit:hover {
  background: var(--frmg-red);
  transform: translateY(-2px);
}

.frmg-form-message {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.frmg-form-message--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.frmg-form-message--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Carte Google Maps */
.frmg-map-wrapper {
  position: sticky;
  top: 20px;
}

.frmg-map-address {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--frmg-gold);
  font-size: 15px;
  color: var(--frmg-dark);
  line-height: 1.6;
}

.frmg-google-map {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 2px solid #e0e0e0;
}

/* Responsive pour la section contact */
@media (max-width: 1024px) {
  .frmg-contact-layout {
    gap: 30px;
  }
  
  .frmg-google-map {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .frmg-section--contact {
    padding: 40px 0;
  }
  
  .frmg-contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
  }
  
  .frmg-form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .frmg-map-wrapper {
    position: relative;
    top: 0;
  }
  
  .frmg-google-map {
    height: 400px;
  }
  
  .frmg-contact-form-wrapper .frmg-section__title,
  .frmg-map-wrapper .frmg-section__title {
    font-size: 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .frmg-google-map {
    height: 350px;
  }
  
  .frmg-form-group input[type="text"],
  .frmg-form-group input[type="email"],
  .frmg-form-group textarea {
    padding: 10px 14px;
    font-size: 14px;
  }
}

/* Solution CSS directe - masquer le premier élément avant le hero */

/* Masquer tout élément qui est le premier enfant du main (sauf le hero) */
body.page-id-146 .frmg-page-custom > *:first-child:not(.frmg-page-hero) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}

/* Masquer spécifiquement les sections et divs Bold Builder qui sont premiers enfants */
body.page-id-146 .frmg-page-custom > section:first-of-type:not(.frmg-page-hero),
body.page-id-146 .frmg-page-custom > .boldSection:first-of-type,
body.page-id-146 .frmg-page-custom > .bt_bb_section:first-of-type,
body.page-id-146 .frmg-page-custom > div.boldSection:first-of-type,
body.page-id-146 .frmg-page-custom > div.bt_bb_section:first-of-type {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}


/* Masquer toutes les sections Bold Builder qui précèdent le hero */
body.page-id-146 .frmg-page-custom section:not(.frmg-page-hero):first-of-type {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}

/* Masquer les divs avec classes Bold Builder qui précèdent le hero */
body.page-id-146 .frmg-page-custom .boldSection:first-of-type,
body.page-id-146 .frmg-page-custom .bt_bb_section:first-of-type {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}

/* Solution radicale : masquer TOUT premier élément qui n'est pas le hero */
body.page-id-146 .frmg-page-custom > *:nth-child(1):not(.frmg-page-hero) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}

/* Solution ultime : masquer le premier enfant du main si ce n'est pas le hero - règles multiples pour compatibilité */
body.page-id-146 main.frmg-page-custom > *:first-child:not(.frmg-page-hero),
body.page-id-146 .frmg-page-custom > *:first-child:not(.frmg-page-hero) {
  display: none !important;
}

/* Masquer aussi si le bloc apparaît AVANT le main (si Bold Builder le rend ailleurs) */
body.page-id-146 .contentWrap > section:first-of-type:not(.frmg-page-custom),
body.page-id-146 .contentWrap > .boldSection:first-of-type,
body.page-id-146 .contentWrap > .bt_bb_section:first-of-type,
body.page-id-146 .contentHolder > section:first-of-type:not(.frmg-page-custom),
body.page-id-146 .contentHolder > .boldSection:first-of-type,
body.page-id-146 .contentHolder > .bt_bb_section:first-of-type {
  display: none !important;
}

/* Masquer le bloc s'il apparaît directement dans le body avant le main */
body.page-id-146 > section:first-of-type:not(.frmg-page-custom),
body.page-id-146 > .boldSection:first-of-type,
body.page-id-146 > .bt_bb_section:first-of-type {
  display: none !important;
}

/* Masquer le premier bloc Bold Builder sur la page 28 (après le contenu, avant ou après la section contact) */
body.page-id-28 .frmg-page-custom > section.boldSection:first-of-type,
body.page-id-28 .frmg-page-custom > section.bt_bb_section:first-of-type:not(.frmg-page-hero):not(.frmg-page-content):not(.frmg-section--contact),
body.page-id-28 .frmg-section--contact ~ section.boldSection:first-of-type,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section:first-of-type {
  display: none !important;
}

/* Réduire au maximum la hauteur des blocs Bold Builder sur la page 28 (après le bloc contact) */
body.page-id-28 .frmg-section--contact ~ .boldSection,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section,
body.page-id-28 .frmg-section--contact ~ section.boldSection,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.page-id-28 .frmg-section--contact ~ .boldSection .port,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section .port,
body.page-id-28 .frmg-section--contact ~ section.boldSection .port,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section .port {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.page-id-28 .frmg-section--contact ~ .boldSection .gutter,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section .gutter,
body.page-id-28 .frmg-section--contact ~ section.boldSection .gutter,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section .gutter {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Supprimer toutes les marges des blocs après le contact */
body.page-id-28 .frmg-section--contact ~ * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.page-id-28 .frmg-section--contact ~ .boldSection:first-of-type,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section:first-of-type,
body.page-id-28 .frmg-section--contact ~ section.boldSection:first-of-type,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section:first-of-type {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Réduire au minimum l'espacement des éléments dans les blocs après le contact */
body.page-id-28 .frmg-section--contact ~ .boldSection h1,
body.page-id-28 .frmg-section--contact ~ .boldSection h2,
body.page-id-28 .frmg-section--contact ~ .boldSection h3,
body.page-id-28 .frmg-section--contact ~ .boldSection h4,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section h1,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section h2,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section h3,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section h4,
body.page-id-28 .frmg-section--contact ~ section.boldSection h1,
body.page-id-28 .frmg-section--contact ~ section.boldSection h2,
body.page-id-28 .frmg-section--contact ~ section.boldSection h3,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section h1,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section h2,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section h3 {
  margin-top: 0 !important;
  margin-bottom: 2px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.page-id-28 .frmg-section--contact ~ .boldSection p,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section p,
body.page-id-28 .frmg-section--contact ~ section.boldSection p,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section p {
  margin-top: 0 !important;
  margin-bottom: 2px !important;
  line-height: 1.3 !important;
}

body.page-id-28 .frmg-section--contact ~ .boldSection .bt_bb_row,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section .bt_bb_row,
body.page-id-28 .frmg-section--contact ~ section.boldSection .bt_bb_row,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section .bt_bb_row {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.page-id-28 .frmg-section--contact ~ .boldSection .bt_bb_column,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section .bt_bb_column,
body.page-id-28 .frmg-section--contact ~ section.boldSection .bt_bb_column,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section .bt_bb_column {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Supprimer complètement les marges vides en haut et en bas */
body.page-id-28 .frmg-section--contact ~ .boldSection > *:first-child,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section > *:first-child,
body.page-id-28 .frmg-section--contact ~ section.boldSection > *:first-child,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-id-28 .frmg-section--contact ~ .boldSection > *:last-child,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section > *:last-child,
body.page-id-28 .frmg-section--contact ~ section.boldSection > *:last-child,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Supprimer les marges de tous les éléments enfants */
body.page-id-28 .frmg-section--contact ~ .boldSection *,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section *,
body.page-id-28 .frmg-section--contact ~ section.boldSection *,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Garder seulement un espacement minimal pour la lisibilité */
body.page-id-28 .frmg-section--contact ~ .boldSection p + p,
body.page-id-28 .frmg-section--contact ~ .bt_bb_section p + p,
body.page-id-28 .frmg-section--contact ~ section.boldSection p + p,
body.page-id-28 .frmg-section--contact ~ section.bt_bb_section p + p {
  margin-top: 2px !important;
}

/* Réduire au maximum la hauteur du bloc spécifique avec l'ID bt_bb_section6935572a6f7dd */
body.page-id-28 #bt_bb_section6935572a6f7dd,
body.page-id-28 section#bt_bb_section6935572a6f7dd {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: auto !important;
  height: auto !important;
}

body.page-id-28 #bt_bb_section6935572a6f7dd .port,
body.page-id-28 #bt_bb_section6935572a6f7dd .gutter {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.page-id-28 #bt_bb_section6935572a6f7dd * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.page-id-28 #bt_bb_section6935572a6f7dd h1,
body.page-id-28 #bt_bb_section6935572a6f7dd h2,
body.page-id-28 #bt_bb_section6935572a6f7dd h3,
body.page-id-28 #bt_bb_section6935572a6f7dd h4,
body.page-id-28 #bt_bb_section6935572a6f7dd p,
body.page-id-28 #bt_bb_section6935572a6f7dd div,
body.page-id-28 #bt_bb_section6935572a6f7dd span {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.2 !important;
}

body.page-id-28 #bt_bb_section6935572a6f7dd .bt_bb_row,
body.page-id-28 #bt_bb_section6935572a6f7dd .bt_bb_column {
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-28 #bt_bb_section6935572a6f7dd > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-id-28 #bt_bb_section6935572a6f7dd > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ============================================
   Section Vidéos (page 2262)
   Affichage responsive des articles vidéo
   ============================================ */

.frmg-section--videos {
  padding: 60px 0;
  background: #ffffff;
}

.frmg-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.frmg-video-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  aspect-ratio: 16/9;
}

.frmg-video-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.frmg-video-item__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.frmg-video-item__image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.frmg-video-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.frmg-video-item:hover .frmg-video-item__image img {
  transform: scale(1.05);
}

/* Bouton play */
.frmg-video-item__play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 68px;
  height: 48px;
  transition: transform 0.3s ease;
}

.frmg-video-item:hover .frmg-video-item__play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.frmg-video-item__play-button svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.frmg-video-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.9) 100%);
  padding: 24px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.frmg-video-item:hover .frmg-video-item__overlay {
  transform: translateY(0);
}

.frmg-video-item__info {
  color: #fff;
}

.frmg-video-item__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.3;
}

.frmg-video-item__excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: #e8e8e8;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frmg-video-item__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #d0d0d0;
  margin-top: 8px;
}

.frmg-video-item__date {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Responsive pour les vidéos */
@media (max-width: 1024px) {
  .frmg-videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .frmg-video-item__overlay {
    padding: 20px;
  }
  
  .frmg-video-item__title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .frmg-section--videos {
    padding: 40px 0;
  }
  
  .frmg-videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 30px;
  }
  
  .frmg-video-item__overlay {
    padding: 16px;
  }
  
  .frmg-video-item__title {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .frmg-video-item__excerpt {
    font-size: 13px;
    margin-bottom: 8px;
  }
  
  .frmg-video-item__meta {
    font-size: 12px;
    gap: 12px;
  }
  
  .frmg-video-item__play-button {
    width: 56px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .frmg-videos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .frmg-video-item {
    aspect-ratio: 16/9;
  }
}

/* ============================================
   Section Téléchargements (page 2272)
   Liste des fichiers téléchargeables
   ============================================ */

.frmg-section--downloads {
  padding: 60px 0;
  background: #ffffff;
}

.frmg-downloads-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.frmg-download-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.frmg-download-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.frmg-download-item__image {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.frmg-download-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frmg-download-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.frmg-download-item__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.3;
}

.frmg-download-item__description {
  color: #666;
  line-height: 1.6;
  font-size: 15px;
}

.frmg-download-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #888;
  margin-top: auto;
}

.frmg-download-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.frmg-download-item__meta strong {
  color: #555;
  font-weight: 600;
}

.frmg-download-item__actions {
  margin-top: 12px;
}

.frmg-button--download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #2271b1;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.frmg-button--download:hover {
  background: #135e96;
  color: #fff;
}

.frmg-button--download .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Responsive pour les téléchargements */
@media (max-width: 768px) {
  .frmg-download-item {
    flex-direction: column;
    gap: 16px;
  }
  
  .frmg-download-item__image {
    width: 100%;
    height: 200px;
  }
  
  .frmg-download-item__title {
    font-size: 20px;
  }
  
  .frmg-download-item__meta {
    flex-direction: column;
    gap: 10px;
  }
}

/* ============================================
   Page Gymnastique Artistique
   Design élégant pour la présentation de la discipline
   ============================================ */

.frmg-page-artistic-gymnastics .frmg-section {
  padding: 60px 0;
}

.frmg-section--intro {
  background: #ffffff;
  padding-top: 80px;
}

.frmg-artistic-content {
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================
   Accordéon Horizontal pour les 5 blocs
   ============================================ */

.frmg-section--accordion {
  padding: 60px 0;
  background: #f8f9fa;
}

.frmg-accordion-horizontal {
  display: flex;
  gap: 15px;
  width: 100%;
  min-height: 500px;
}

.frmg-accordion-item {
  flex: 1;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: flex 0.4s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.frmg-accordion-item:not(.frmg-accordion-item--active) {
  flex: 0 0 80px;
  min-width: 80px;
}

.frmg-accordion-item--active {
  flex: 3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.frmg-accordion-header {
  padding: 25px 20px;
  background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  transition: background 0.3s ease;
  width: 100%;
  text-align: left;
  position: relative;
}

.frmg-accordion-item:not(.frmg-accordion-item--active) .frmg-accordion-header {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  justify-content: center;
  padding: 20px 10px;
}

.frmg-accordion-header:hover {
  background: linear-gradient(135deg, #135e96 0%, #0d4a75 100%);
}

.frmg-accordion-item:not(.frmg-accordion-item--active) .frmg-accordion-header:hover {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.frmg-accordion-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
}

.frmg-accordion-item:not(.frmg-accordion-item--active) .frmg-accordion-title {
  font-size: 14px;
  white-space: nowrap;
}

.frmg-accordion-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.frmg-accordion-item:not(.frmg-accordion-item--active) .frmg-accordion-icon {
  display: none;
}

.frmg-accordion-item--active .frmg-accordion-icon {
  transform: rotate(180deg);
}

.frmg-accordion-content {
  flex: 1;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0;
  display: none;
}

.frmg-accordion-item--active .frmg-accordion-content {
  display: block;
  max-height: 2000px;
  opacity: 1;
  padding: 30px;
  overflow-y: auto;
}

.frmg-accordion-body {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.frmg-accordion-image {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.frmg-accordion-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.frmg-accordion-text {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.frmg-accordion-text p {
  margin-bottom: 15px;
}

.frmg-artistic-section-layout {
  display: block;
  margin-top: 30px;
  min-height: 350px; /* Au moins la hauteur de l'image */
}

/* Clearfix pour contenir les floats */
.frmg-artistic-section-layout::after {
  content: "";
  display: block;
  clear: both; /* Pour éviter que le float sorte du conteneur */
}

/* Image à gauche (blocs 1, 3, 5, etc.) - toujours en haut */
.frmg-artistic-section-layout--image-left {
  position: relative;
}

.frmg-artistic-section-layout--image-left .frmg-artistic-section-image {
  float: left; /* Image à gauche */
  margin: 0 15px 15px 0; /* Espace entre image et texte */
  width: auto;
  height: 350px; /* Hauteur fixe */
  clear: left; /* Force l'image à être en haut */
}

/* Image à droite (blocs 2, 4, 6, etc.) - toujours en haut */
.frmg-artistic-section-layout--image-right {
  position: relative;
}

.frmg-artistic-section-layout--image-right .frmg-artistic-section-image {
  float: right; /* Image à droite */
  margin: 0 0 15px 15px; /* Espace entre image et texte */
  width: auto;
  height: 350px; /* Hauteur fixe */
  clear: right; /* Force l'image à être en haut */
}

.frmg-artistic-section-layout-single {
  display: block;
  margin-top: 30px;
}

.frmg-artistic-section-image {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  display: block;
}

.frmg-artistic-section-image img {
  width: auto;
  height: 350px;
  object-fit: cover;
  display: block;
}


.frmg-artistic-text {
  font-size: 16px; /* Police réduite */
  line-height: 1.5; /* Interligne réduit */
  color: #444;
  text-align: justify; /* Texte justifié */
  text-justify: inter-word; /* Meilleure justification */
  word-spacing: 0.05em; /* Espacement des mots réduit */
  overflow: visible; /* Permet au texte de continuer en dessous de l'image */
  margin: 0; /* Pas de marge pour éviter les décalages */
  padding: 0; /* Pas de padding */
}

.frmg-artistic-text p {
  margin-bottom: 12px; /* Espacement réduit entre paragraphes */
  text-align: justify; /* Justification pour chaque paragraphe */
  text-justify: inter-word;
  word-spacing: 0.05em;
  line-height: 1.5; /* Interligne réduit */
}

/* Pour toutes les sections, le texte s'enroule autour de l'image */
.frmg-section--intro .frmg-artistic-text,
.frmg-section--disciplines-feminine .frmg-artistic-text,
.frmg-section--disciplines-masculine .frmg-artistic-text,
.frmg-section--objectives .frmg-artistic-text,
.frmg-section--categories .frmg-artistic-text,
.frmg-section--competitions .frmg-artistic-text,
.frmg-section--training .frmg-artistic-text,
.frmg-section--clubs .frmg-artistic-text,
.frmg-section--gallery .frmg-artistic-text {
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
  word-spacing: 0.05em;
}

.frmg-section--disciplines {
  background: #f8f9fa;
}

.frmg-disciplines-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.frmg-discipline-box {
  background: #ffffff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.frmg-discipline-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.frmg-discipline-box__image {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.frmg-discipline-box__image img {
  width: 100%;
  height: auto;
  display: block;
}

.frmg-discipline-box--feminine {
  border-top: 4px solid #e91e63;
}

.frmg-discipline-box--masculine {
  border-top: 4px solid #2196f3;
}

.frmg-discipline-box__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #1a1a1a;
}

.frmg-discipline-box .frmg-artistic-text {
  font-size: 16px;
  line-height: 1.7;
}

.frmg-section--objectives,
.frmg-section--categories,
.frmg-section--training,
.frmg-section--clubs {
  background: #ffffff;
}

.frmg-section--competitions {
  background: #f8f9fa;
}

.frmg-competition-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  margin-top: 30px;
  border-left: 4px solid #2271b1;
}

.frmg-competition-box:first-of-type {
  margin-top: 40px;
}

.frmg-competition-box .frmg-artistic-section-layout {
  margin-top: 20px;
}

.frmg-competition-box .frmg-artistic-section-layout-single {
  margin-top: 20px;
}

.frmg-competition-box__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #1a1a1a;
}

/* Galerie Photos/Vidéos */
.frmg-section--gallery-full {
  background: #ffffff;
  padding: 60px 0 80px;
}

.frmg-gallery-intro {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: justify;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.frmg-gallery-intro p {
  margin-bottom: 15px;
}

.frmg-artistic-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.frmg-gallery-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.frmg-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.frmg-gallery-item__media {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: #f5f5f5; /* Fond clair au lieu de noir */
}

.frmg-gallery-item__media iframe,
.frmg-gallery-item__media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent;
  z-index: 2;
}

/* S'assurer que les images se chargent correctement */
.frmg-gallery-item__media img {
  min-height: 200px;
  background-color: #f5f5f5;
  opacity: 1 !important;
  visibility: visible !important;
  max-width: none !important;
  max-height: none !important;
}

/* Assurer que les liens d'images sont visibles */
.frmg-gallery-item__link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 2 !important;
}

.frmg-gallery-item__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.frmg-gallery-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.frmg-gallery-item:hover .frmg-gallery-item__overlay {
  opacity: 1;
}

.frmg-gallery-item__icon {
  font-size: 48px;
  color: #fff;
}

.frmg-gallery-item__title {
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.4;
}

/* Responsive pour la page Gymnastique Artistique */
@media (max-width: 1024px) {
  .frmg-artistic-section-layout--image-left .frmg-artistic-section-image,
  .frmg-artistic-section-layout--image-right .frmg-artistic-section-image {
    float: none;
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto 25px;
    display: block;
  }
  
  .frmg-artistic-section-image {
    width: 100%;
  }
  
  .frmg-artistic-section-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
  }
  
  .frmg-disciplines-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .frmg-artistic-gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .frmg-artistic-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .frmg-page-artistic-gymnastics .frmg-section {
    padding: 40px 0;
  }
  
  .frmg-section--intro {
    padding-top: 40px;
  }
  
  .frmg-artistic-section-layout--image-left .frmg-artistic-section-image,
  .frmg-artistic-section-layout--image-right .frmg-artistic-section-image,
  .frmg-artistic-section-image {
    width: 100%;
    height: 250px;
    margin: 0 auto 20px;
    float: none;
  }
  
  .frmg-artistic-text {
    font-size: 16px;
    line-height: 1.7;
    overflow: visible;
  }
  
  .frmg-discipline-box {
    padding: 25px;
  }
  
  .frmg-discipline-box__title {
    font-size: 20px;
  }
  
  .frmg-competition-box {
    padding: 20px;
  }
  
  .frmg-artistic-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .frmg-artistic-text {
    font-size: 15px;
  }
  
  .frmg-discipline-box {
    padding: 20px;
  }
  
  .frmg-competition-box {
    padding: 15px;
  }
}

/* Améliorer l'intégration du contenu Bold Builder */
.frmg-page-custom .boldSection .bt_bb_row {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.frmg-page-custom .gutter .port {
  padding-left: 20px;
  padding-right: 20px;
}

/* Pagination des pages */
.frmg-page-links {
  margin: 40px 0;
  padding: 24px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.frmg-page-links__wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.frmg-page-links__title {
  font-weight: 700;
  color: var(--frmg-dark);
  font-size: 14px;
}

.frmg-page-links__list {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.frmg-page-links__item {
  margin: 0;
}

.frmg-page-links__item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f5f5f5;
  color: var(--frmg-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.frmg-page-links__item a:hover,
.frmg-page-links__item span {
  background: var(--frmg-gold);
  color: #fff;
}

/* Section commentaires */
.frmg-section--comments {
  background: #f8f9fa;
  padding: 60px 0;
}

/* Responsive pour page personnalisée */
@media (max-width: 768px) {
  .frmg-page-hero {
    padding-top: 42px;
    min-height: 200px;
  }

  .frmg-page-hero__content {
    padding: 30px 0;
  }

  .frmg-page-hero__title {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .frmg-page-hero__excerpt {
    font-size: 16px;
  }

  .frmg-page-content {
    padding: 20px 0;
  }
  
  .frmg-page-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .frmg-page-title {
    font-size: 28px;
  }

  .frmg-page-body {
    padding: 0 10px;
  }

  .frmg-page-body h2 {
    font-size: 24px;
  }

  .frmg-page-body h3 {
    font-size: 20px;
  }

  .frmg-page-body h4 {
    font-size: 18px;
  }

  .frmg-page-body p {
    font-size: 15px;
  }

  .frmg-page-body .btDarkSkin {
    margin: 40px -10px;
    padding: 30px 15px;
  }
}

/* ============================================
   Bloc Partenaires dans le Footer
   Identique à la page d'accueil
   ============================================ */

.frmg-footer-partners-section {
  padding: 30px 0;
  background: #f7f7f7;
  border-bottom: 1px solid #e0e0e0;
}

.frmg-footer-partners-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.frmg-footer-partners-title {
  display: flex;
  align-items: center;
}

.frmg-footer-partners-title-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--frmg-dark);
  margin: 0;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.frmg-footer-partners {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 20px 24px;
  overflow: hidden;
}

.frmg-footer-partners-swiper {
  width: 100%;
}

.frmg-footer-partners-swiper .swiper-wrapper {
  align-items: center;
}

.frmg-footer-partners-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  transition: transform 0.3s ease;
}

.frmg-footer-partner__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  height: 100%;
  width: 100%;
  min-height: 150px;
}

.frmg-footer-partner__logo img {
  max-height: 200px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.frmg-footer-partner__logo:hover img,
.frmg-footer-partner__logo a:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.frmg-footer-partner__logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.frmg-footer-partners-pagination {
  margin-top: 8px;
  position: relative;
}

.frmg-footer-partners-pagination .swiper-pagination-bullet {
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.frmg-footer-partners-pagination .swiper-pagination-bullet-active {
  background: var(--frmg-gold);
}

/* Responsive pour le bloc partenaires */
@media (max-width: 768px) {
  .frmg-footer-partners-section {
    padding: 20px 0;
  }

  .frmg-footer-partners-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .frmg-footer-partners-title {
    justify-content: center;
  }

  .frmg-footer-partners-title-text {
    text-align: center;
    font-size: 20px;
  }

  .frmg-footer-partners {
    padding: 16px 20px;
  }

  .frmg-footer-partner__logo img {
    max-height: 140px;
  }
  
  .frmg-footer-partner__logo {
    min-height: 120px;
    padding: 16px 20px;
  }
}

/* Page Communiqués - Grid amélioré */
.frmg-section--communiques {
  padding: 60px 0;
}

.frmg-news--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .frmg-news--grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (min-width: 1024px) {
  .frmg-news--grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Pagination pour les communiqués */
.frmg-pagination {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.frmg-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.frmg-pagination .page-numbers li {
  margin: 0;
}

.frmg-pagination .page-numbers a,
.frmg-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f5f5f5;
  color: var(--frmg-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.frmg-pagination .page-numbers a:hover {
  background: var(--frmg-red);
  color: #fff;
  border-color: var(--frmg-red);
  transform: translateY(-2px);
}

.frmg-pagination .page-numbers .current {
  background: var(--frmg-red);
  color: #fff;
  border-color: var(--frmg-red);
  cursor: default;
}

.frmg-pagination .page-numbers .dots {
  background: transparent;
  color: #999;
  cursor: default;
  border: none;
}

.frmg-pagination .page-numbers .dots:hover {
  background: transparent;
  color: #999;
  transform: none;
}

/* Message "Aucun résultat" */
.frmg-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.frmg-no-results p {
  font-size: 18px;
  margin: 0;
}

/* Galerie Envira - Page individuelle */
.frmg-section--gallery-single {
  padding: 60px 0;
}

.frmg-gallery-content {
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.frmg-gallery-grid--single {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.frmg-gallery-item--single {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.frmg-gallery-item--single:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.frmg-gallery-item--single img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.frmg-gallery-item--single:hover img {
  transform: scale(1.05);
}

.frmg-gallery-item__link {
  display: block;
  text-decoration: none;
}

/* Navigation galerie */
.frmg-section--gallery-nav {
  padding: 40px 0;
  border-top: 1px solid #e0e0e0;
}

.frmg-gallery-nav {
  text-align: center;
}

/* Styles pour Envira Gallery (si le plugin est actif) */
.envira-gallery-wrap {
  margin: 30px 0;
}

.envira-gallery-public {
  margin: 0;
}

/* Responsive pour la galerie */
@media (max-width: 768px) {
  .frmg-gallery-grid--single {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .frmg-gallery-item--single img {
    height: 200px;
  }
}

/* Masquer le bloc "Home" et breadcrumb sur les pages de galeries Envira */
body.single-envira .btPageHeadline,
body.single-envira .btBlogHeaderContent,
body.single-envira .btContentWrap > div:first-child:not(.btContentHolder),
body[class*="envira"] .btPageHeadline,
body[class*="envira"] .btBlogHeaderContent,
.post-type-envira .btBlogHeaderContent,
.post-type-envira .btPageHeadline,
body .frmg-hidden-home-block {
  display: none !important;
}

/* Masquer tous les btBlogHeaderContent et btPageHeadline qui contiennent "Home" */
.btBlogHeaderContent,
.btPageHeadline {
  /* Sera masqué par JavaScript si contient "Home" */
}

/* Masquer spécifiquement sur les pages avec query var envira_gallery */
body:has(.frmg-section--gallery-single) .btBlogHeaderContent,
body:has(.frmg-section--gallery-single) .btPageHeadline {
  display: none !important;
}
