/* Général */


/* Bannière d'introduction */
.banner_formation {
    background-color: #4caf50; /* Vert foncé */
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.banner_formation h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.banner_formation p {
    font-size: 1.2rem;
}

/* Cartes des catégories */
.categorie .card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.categorie .card:hover {
    transform: scale(1.05);
}

.categorie .card .icon-card {
    font-size: 3rem;
    margin-bottom: 15px;
}

.categorie .card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.categorie .card p {
    font-size: 1rem;
}

.categorie .card .btn {
    margin-top: 10px;
}


/* Onglets de catégories */
.formation .nav-pills .nav-link {
    border-radius: 0;
    padding: 10px 20px;
}

.formation .nav-pills .nav-link.active {
    background-color: #4caf50;
    color: #fff;
}

/* Style des onglets (Livres, Vidéos, Audios) */
.formation .nav-tabs .nav-link {
    border-radius: 5px;
    padding: 10px;
}

.formation .nav-tabs .nav-link.active {
    background-color: #4caf50;
    color: white;
}

/* Contenu des onglets */
.formation .tab-content {
    margin-top: 30px;
}

.formation .tab-content .tab-pane {
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.formation .tab-content .tab-pane h5 {
    font-size: 1.4rem;
}

.formation .tab-content .tab-pane p {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Sermons */
.sermons {
    background-color: #f1f1f1;
    padding: 40px 20px;
    margin-top: 40px;
    border-radius: 10px;
}

.sermons h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.sermons .sermon {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.sermons .sermon audio {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.sermons .sermon p {
    font-size: 1rem;
    line-height: 1.5;
}

.sermons .sermon p strong {
    font-weight: bold;
}

/* Réduire la taille de l'image */
.card-img-top {
    max-height: 200px; /* Limite la hauteur de l'image */
    object-fit: cover; /* Maintient l'aspect de l'image tout en la redimensionnant */
}

/* Vidéos */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 56.25% 0 0 0; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 10px;
}

.embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

/* Audios */
.audio-list audio {
    width: 100%; /* Prend toute la largeur */
    max-width: 500px; /* Limite la largeur maximale */
    margin-top: 10px;
    border-radius: 10px; /* Coins arrondis */
    border: 1px solid #ddd; /* Bordure douce */
    background-color: #f8f9fa;
}

/* Style pour les boutons de téléchargement (livres, vidéos) */
.btn-success {
    background-color: #4caf50; /* Vert foncé */
    color: white;
    border-radius: 5px;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: #45a049; /* Couleur légèrement plus foncée au survol */
}

/* Styles généraux pour les ressources */
.resource-item {
    margin-bottom: 20px;
}

.resource-item img {
    max-height: 200px; /* Taille d'image réduite */
    object-fit: cover;
    width: 100%;
}

.resource-item .card-body {
    padding: 15px;
}

.resource-item h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.resource-item p {
    font-size: 1rem;
    margin-bottom: 5px;
}

.resource-item a {
    margin-top: 10px;
    display: inline-block;
}

.video-resource iframe {
    border-radius: 10px;
}

.audio-resource audio {
    width: 100%;
    border-radius: 10px;
    background-color: #f8f9fa;
}

/* Section des titres de ressources */
.resource-item .date,
.resource-item .author {
    font-size: 0.9rem;
    color: #777;
}



/* Responsivité */
@media (max-width: 768px) {
    .banner_formation h1 {
        font-size: 2.5rem;
    }

    .categorie .card {
        margin-bottom: 30px;
    }

    .sermons .sermon {
        margin-bottom: 10px;
    }

}

@media (max-width: 576px) {
    .banner_formation h1 {
        font-size: 2rem;
    }

    .formation .nav-pills .nav-link {
        font-size: 0.9rem;
    }

    .formation .nav-tabs .nav-link {
        font-size: 0.9rem;
    }

    .sermons h2 {
        font-size: 1.8rem;
    }
    
    .categorie .card-text {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }
}
