#wh-formations-page{
    background-color: #445F88;
}
#wh-formations-page .wh-hero h1, 
#wh-formations-page .wh-hero h2, 
#wh-formations-page .wh-hero h3,
#wh-formations-page .wh-hero h4,
#wh-formations-page .wh-hero h5,
#wh-formations-page .wh-hero h6 {
    font-family: raleway, sans-serif !important;
}
#wh-formations-page .wh-hero p,
#wh-formations-page .wh-hero a {
    font-family: quicksand, sans-serif !important;
}


/* Hero section */
.wh-hero {
    text-align: center;
    padding: 80px 10px;
    background: #f8f8f8;
    padding-bottom: 40px;
}
.wh-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
}
.wh-hero h4 {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #01296D;
}
.wh-hero p {
    font-size: 1.1rem;
    color: #01296D;
    max-width: 600px;
    margin: 0 auto 30px;
}
.wh-categories-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}
.wh-categories-list li a {
    display: block;
    padding: 10px 20px;
    background: #445F88;
    color: #f8f8f8;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}
.wh-categories-list li a:hover {
    background: #01296D;
}


/*Gestion des catégories */
.wh-category {
    margin: 0 auto 0;
    max-width: 1200px; /* Largeur max pour éviter l'étirement */
    padding: 40px 20px; /* Marge interne pour le contenu */
}
.wh-category h2{
	color: #f8f8f8;
}
.wh-category h3{
    font-size: 1.25rem;
	color : #01296D;
}
.wh-category p{
	color : #01296D;
}
.wh-number {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #000000;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}	
/* Limite la largeur des cartes et des images */
.wh-card {
    width: 100%;
    max-width: 300px; /* Largeur max pour éviter que la carte ne devienne trop large */
    margin: 0 auto; /* Centre la carte dans le slide */
    background: #f8f8f8;
    border-radius: 8px;
	padding : 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height:350px;
    display: flex;
    flex-direction: column;
}
.wh-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background: #afd3ec;
}

.wh-thumb {
    position: relative;
    width: 100%;
    height: auto; /* Hauteur automatique pour éviter les espaces vides */
    min-height: 160px; /* Hauteur minimale pour uniformiser les cartes */
    overflow: hidden;
    display: flex;
    align-items: center; /* Centre verticalement l'image */
    justify-content: center; /* Centre horizontalement l'image */
    background: transparent; /* Fond clair pour les images transparentes */
	z-index:1;
}

.wh-thumb img {
    max-width: 100%;
    max-height: 160px; /* Limite la hauteur max pour uniformiser */
    width: auto;
    height: auto;
    object-fit: contain; /* Affiche l'image complète */
}

/* Ajustement des slides dans Swiper */
.swiper-slide {
    display: flex;
    justify-content: center; /* Centre la carte dans le slide */
    width: auto !important; /* Laisse Swiper gérer la largeur */
    max-width: 320px; /* Limite la largeur max du slide */
}

/* Responsive: ajustement pour mobile */
@media (max-width: 767px) {
    .swiper-slide {
        max-width: 280px;
    }
    .wh-thumb {
        height: 140px;
    }
}


/* CSS pour gérer chaque carte de formation*/
.wh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wh-single-hero {
    background: #f5f7fa;
    padding: 60px 20px;
    text-align: center;
}

.wh-single-hero h1 {
    font-size: 34px;
    margin-bottom: 0;
}

.wh-single-content {
    padding: 40px 0;
}

.wh-description {
    font-size: 16px;
    line-height: 1.7;
}

.wh-description a {
    color: #ff6b6b;
    font-weight: 500;
}

.wh-description a:hover {
    text-decoration: underline;
}

.wh-download {
    margin-top: 40px;
    text-align: center;
}

.wh-btn {
    display: inline-block;
    background: #ff6b6b;
    color: #fff !important;
    padding: 14px 26px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.wh-btn:hover {
    background: #ff4b4b;
}

.wh-category .swiper {
    padding: 20px 0 60px 0;
    margin: 0 -10px 20px -10px;
}
body .wh-category .swiper-pagination-bullet {
    width: 16px !important;
    height: 16px !important;
}
 
.swiper-pagination-bullet:hover {
    background: #f8f8f8 !important;
    opacity: 1;
}

/*.swiper-pagination-bullet-active {
    background: #000;
} */


/* Formation Single Page */
.wh-single-formation {
    background-color: #445F88;
    color: #f8f8f8;
	margin-top :70px;
    padding: 40px 20px;
    min-height: 100vh;
    font-family: quicksand, sans-serif;
	font-weight: 500;
}

.wh-single-formation h1 {
    font-size: 2.2rem;
    color: #f8f8f8;
    text-align: center;
    margin-bottom: 30px;
}

.wh-single-formation .wh-content {
    max-width: 900px;
    margin: 40px auto 40px;
    background: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    color: #2c3e50;
    line-height: 1.7;
}

.wh-single-formation .wh-content p {
    margin-bottom: 1.2em;
}

.wh-single-formation .wh-content a {
    color: #01296D;
    font-weight: 500;
}

.wh-single-formation .wh-content a:hover {
 	background: #01296D;
}

.wh-single-formation .wh-download {
    width: 300px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.wh-single-formation .wh-btn {
    display: inline-block;
    background: #01296D;
    padding: 12px 20px;
    border-radius: 6px;
   border: 2px solid transparent; 
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    text-align: center;
}
.wh-single-formation .wh-btn:hover {
	border-color: #afd3ec;
}

.wh-single-formation .wh-back {
    display: inline-block;
    color: #f8f8f8;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    text-align: center;
}

.wh-single-formation .wh-back {
    display: inline-block;
    color: #f8f8f8;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.wh-single-formation .wh-back:hover {
    color: #afd3ec;
	border-color: #afd3ec;
}


/* Responsive */
@media (max-width: 767px) {
    .wh-single-formation {
        padding: 20px 10px;
    }

    .wh-single-formation h1 {
        font-size: 1.8rem;
    }


	.wh-single-formation .wh-content {
		max-width: calc(100% - 20px); /* marge 10px à gauche et à droite */
	}

    .wh-single-formation .wh-btn {
        padding: 12px 20px;
    }
}

/* Gestion vidéo Youyube*/
.wh-video-or-thumb {
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
	flex-direction: column;
    justify-content: center;
}

/* iframe YouTube */
.wh-video-or-thumb iframe {
    width: 100%;
    height: auto; /* s’adapte automatiquement */
    aspect-ratio: 16/9; /* ratio 16/9 conservé */
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* thumb image */
.wh-video-or-thumb .wh-thumb {
    position: relative;
	width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wh-video-or-thumb .wh-thumb img {
    max-width: 100%;
    width: 100%;
    height: auto; /* s’adapte automatiquement */
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1;
}
.wh-badge {
    margin-top: 10px;
    font-size: 1rem;
    color: #f8f8f8;
    font-weight: 600;
    text-align: center;
    font-style: italic;
    display: block; /* Assure que le paragraphe prend toute la largeur */
    width: 100%;    /* Prend toute la largeur du conteneur parent */
}

/* Responsive mobile portrait */
@media (max-width: 768px) {
    .wh-video-or-thumb {
        width: calc(100% - 20px); /* marge 10px à gauche et à droite */
    }

    .wh-video-or-thumb iframe {
        width: 100%;  /* prend toute la largeur disponible */
        height: auto; /* conserve le ratio */
    }
}