 :root {
    --primary-blue: #1a4b8c;
    --secondary-red: #c41e3a;
    --third-blue: #3498db;
    --light-blue: #e8f4fc;
    --dark-blue: #0a2a5a;
    --gold: #f4c542;
    --text-color: #333;
    --light-color: #f8f9fa;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    padding-top: 80px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}


/* Header avec Logo et Navigation Desktop */

.header {
    background: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.desktop-nav {
    display: flex;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-blue);
}

.logo-img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--dark-blue);
}

.logo-sub {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--secondary-red);
    margin-top: 3px;
}

.desktop-nav .nav-list {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.nav-item {
    list-style: none;
    position: relative;
}

.nav-link {
    color: var(--dark-blue);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.nav-link i {
    font-size: 1rem;
}


/* Dropdown menu for predications */

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-heavy);
    border-radius: 10px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}


/* Hero Slider */

.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
}

.hero-slider .swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.slide-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.slide-verse {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.slide-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
    font-size: 1.5rem;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.7;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--gold);
    opacity: 1;
}


/* Section Styles */

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 50px;
    color: var(--primary-blue);
    text-align: center;
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-red), var(--gold));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light-blue {
    background-color: var(--light-blue);
}


/* Card Styles */

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    color: var(--primary-blue);
    font-weight: 600;
}


/* Boutons */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(26, 75, 140, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 75, 140, 0.4);
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-red) 0%, #a61a32 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
    background: linear-gradient(135deg, #a61a32 0%, var(--secondary-red) 100%);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #e0b033 100%);
    border: none;
    color: #333;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(244, 197, 66, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 197, 66, 0.4);
    background: linear-gradient(135deg, #e0b033 0%, var(--gold) 100%);
    color: #333;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}


/* Livres Section */

.books-search-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.book-search-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.book-search-input {
    flex: 1;
    min-width: 250px;
}

.book-select2 {
    min-width: 250px;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
}

.see-more-container {
    text-align: center;
    margin-top: 40px;
}


/* Prédications Filters */

.filters-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 50px;
    border-radius: 50px;
    height: 50px;
}

.search-box .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--third-blue);
    z-index: 10;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.form-select {
    height: 50px;
    border-radius: 10px;
}


/* Audio Predications Section */

.audio-predications {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: white;
}

.audio-filters {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.audio-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    height: 100%;
}

.audio-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.audio-player {
    width: 100%;
    margin-top: 15px;
    border-radius: 10px;
    height: 40px;
}

.audio-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}


/* Biographie Section Modifiée */

.biography-section {
    position: relative;
    overflow: hidden;
}

.biography-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    height: 100%;
    max-height: 500px;
}

.biography-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.biography-content {
    padding: 30px;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.biography-highlight {
    background: linear-gradient(135deg, rgba(26, 75, 140, 0.1) 0%, rgba(52, 152, 219, 0.1) 100%);
    border-left: 4px solid var(--secondary-red);
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}


/* Prédications Section */

.predication-card {
    transition: all 0.3s ease;
}

.predication-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.predication-actions .btn {
    flex: 1;
    min-width: 100px;
    text-align: center;
}


/* Rendez-vous Section */

.appointment-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, #d4e7f7 100%);
}

.appointment-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
}


/* Modal Styles */

.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border-bottom: none;
    padding: 20px;
}

.modal-body {
    padding: 25px;
}


/* Purchase Modal */

.purchase-modal .book-info {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.purchase-modal .book-image {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.purchase-modal .book-details h5 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.purchase-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-red);
}


/* Form Styles */

.form-control,
.form-select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--third-blue);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}


/* Mobile Bottom Navigation */

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 15px 0 10px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 20px 20px 0 0;
    display: none;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    flex: 1;
}

.mobile-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--light-blue) 0%, #d4e7f7 100%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-nav-item.active {
    color: var(--secondary-red);
}

.mobile-nav-item.active i {
    background: linear-gradient(135deg, var(--secondary-red) 0%, #a61a32 100%);
    color: white;
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
}


/* Footer */

.footer {
    background: var(--dark-blue);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    margin-bottom: 15px;
}

.footer-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.footer-subtitle {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-description {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #ccc;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--secondary-red);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    color: #aaa;
    font-size: 0.9rem;
}


/* Back to top button */

.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-red) 0%, #a61a32 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.6);
}


/* Responsive Styles */

@media (max-width: 1199px) {
    .slide-title {
        font-size: 2.5rem;
    }
    .slide-verse {
        font-size: 1.2rem;
    }
}

@media (max-width: 991px) {
    .slide-title {
        font-size: 2rem;
    }
    .slide-verse {
        font-size: 1.1rem;
    }
    .desktop-nav {
        display: none;
    }
    .mobile-nav {
        display: flex;
    }
    .section-padding {
        padding: 60px 0;
    }
    .biography-content {
        padding: 20px;
    }
    .biography-image {
        max-height: 400px;
        margin-bottom: 30px;
    }
    .book-search-row {
        flex-direction: column;
    }
    .book-search-input,
    .book-select2 {
        min-width: 100%;
    }
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
    .appointment-form {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .slide-title {
        font-size: 1.8rem;
    }
    .slide-verse {
        font-size: 1rem;
    }
    .section-padding {
        padding: 50px 0;
    }
    .slide-buttons {
        flex-direction: column;
        align-items: center;
    }
    .slide-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        display: none;
    }
    .section-title {
        font-size: 2rem;
    }
    .audio-filters .row>div {
        margin-bottom: 15px;
    }
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    .modal-dialog {
        margin: 10px;
    }
    .purchase-modal .book-info {
        flex-direction: column;
        text-align: center;
    }
    .predication-actions .btn {
        min-width: 80px;
        padding: 8px 15px;
    }
}

@media (max-width: 575px) {
    .slide-title {
        font-size: 1.5rem;
    }
    .slide-verse {
        font-size: 0.9rem;
    }
    .logo-main {
        font-size: 1.2rem;
    }
    .logo-sub {
        font-size: 0.7rem;
    }
    .mobile-nav-item i {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .biography-content {
        padding: 15px;
    }
    .audio-card {
        padding: 15px;
    }
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }
    .appointment-form {
        padding: 20px;
    }
    .footer {
        padding: 40px 0 20px;
    }
    .footer-title {
        font-size: 1.5rem;
    }
}


/* Modifications pour corriger les problèmes spécifiques */


/* 1. Réduire la taille des boutons sur mobile */

@media (max-width: 767px) {
    .btn-lg {
        padding: 10px 20px !important;
        font-size: 1rem !important;
    }
    .btn {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }
    .slide-buttons .btn {
        width: 100% !important;
        max-width: 300px !important;
        margin-bottom: 10px !important;
    }
    .predication-actions .btn {
        min-width: 70px !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    .mobile-nav-item i {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
    .mobile-nav-item span {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 575px) {
    .btn-lg {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }
    .slide-buttons {
        gap: 10px !important;
    }
}


/* 2. Corriger le slider qui est coincé au menu */

.hero-slider {
    position: relative !important;
    height: calc(100vh - 80px) !important;
    min-height: 500px !important;
    margin-top: 0 !important;
}

@media (max-width: 991px) {
    .hero-slider {
        height: calc(100vh - 60px) !important;
        min-height: 400px !important;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        height: calc(100vh - 60px) !important;
        min-height: 350px !important;
    }
    .slide-content {
        padding: 0 15px !important;
    }
    .slide-title {
        font-size: 1.6rem !important;
        margin-bottom: 15px !important;
    }
    .slide-verse {
        font-size: 0.9rem !important;
        margin-bottom: 25px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 575px) {
    .hero-slider {
        height: calc(100vh - 60px) !important;
        min-height: 300px !important;
    }
    .slide-title {
        font-size: 1.4rem !important;
    }
    .slide-verse {
        font-size: 0.85rem !important;
    }
}


/* 3. Améliorations supplémentaires pour l'espacement */

.section-padding {
    padding: 60px 0 !important;
}

@media (max-width: 767px) {
    .section-padding {
        padding: 40px 0 !important;
    }
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }
}


/* 4. Ajuster l'espacement entre les sections */

body {
    padding-top: 80px !important;
}

@media (max-width: 991px) {
    body {
        padding-top: 70px !important;
    }
    .header {
        padding: 10px 0 !important;
    }
}


/* 5. Améliorer l'affichage du menu mobile */

.mobile-nav {
    padding: 10px 0 5px !important;
}

.mobile-nav-item {
    padding: 5px !important;
}


/* 6. Ajuster la hauteur du slider pour éviter la superposition */

.hero-slide::before {
    z-index: 1 !important;
}

.slide-content {
    z-index: 2 !important;
    position: relative !important;
}


/* 7. Assurer que le slider n'est pas caché derrière le menu */

.hero-slider .swiper {
    position: relative !important;
    z-index: 1 !important;
}


/* 8. Correction supplémentaire pour l'overflow */

html,
body {
    overflow-x: hidden !important;
}

.hero-slider {
    overflow: hidden !important;
}