/* Custom CSS for jesuitesacerdc.net clone */

:root {
    --primary-color: #2c5530;
    --secondary-color: #8b4513;
    --accent-color: #ffd700;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Header styles */
header {
    background: linear-gradient(135deg, var(--primary-color), #1e3a21);
    font-size: 0.9rem;
}

/* Navigation styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero slider styles */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    height: 500px;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    bottom: 10%;
    max-width: 80%;
    margin: 0 auto;
}

.carousel-caption h2 {
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.8rem;
}

.carousel-caption p {
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* News and events section */
.news-events {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.news-events h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 3rem;
}

.news-events .card {
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.news-events .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.news-events .card-img-top {
    transition: transform 0.3s ease;
}

.news-events .card:hover .card-img-top {
    transform: scale(1.05);
}

.news-events .card-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.news-events .card-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Email subscription */
.email-subscription {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.email-subscription:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(44, 85, 48, 0.15);
}

.email-subscription h5 {
    color: var(--primary-color);
    font-weight: bold;
}

/* Styles pour la section Homélie */
.homelie-section {
    background: linear-gradient(135deg, var(--primary-color), #1e3a21);
    padding: 4rem 0;
    position: relative;
}

.homelie-section h2 {
    font-weight: 700;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.main-homelie-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.homelie-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-align: center;
}

.homelie-image-container img {
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    min-height: 300px;
    max-height: 500px;
    object-fit: contain;
    cursor: pointer;
}

.homelie-image-container:hover img {
    transform: scale(1.02);
}

#homeLieContent {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 1rem;
    line-height: 1.8;
    text-align: justify;
}

#homeLieContent::-webkit-scrollbar {
    width: 8px;
}

#homeLieContent::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#homeLieContent::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

#homeLieContent::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.homelie-playlist {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.homelie-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.homelie-item:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.homelie-item img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.homelie-item h6 {
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.homelie-item small {
    color: #adb5bd;
}

/* Section pour les blocs d'information */
.info-blocks-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.info-block {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.info-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-left-width: 6px;
}

.info-block h4 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.info-block h4 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-block h4 a:hover {
    color: #1e3a21;
}

.info-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.btn-lire-suite {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    display: inline-block;
}

.btn-lire-suite:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
}

/* Video section */
.video-section {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 4rem 0;
}

.video-section h2 {
    font-weight: 700;
    margin-bottom: 3rem;
}

.main-video-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.video-playlist {
    max-height: 500px;
    overflow-y: auto;
}

.video-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.video-item:hover {
    background-color: #495057 !important;
    transform: scale(1.02);
}

.video-item img {
    border-radius: 8px;
}

.video-item h6 {
    color: white;
    font-weight: 600;
}

.video-item small {
    color: #adb5bd;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), #1e3a21);
    padding: 2rem 0;
}

footer h5 {
    color: #ecf0f1;
    font-weight: bold;
}

footer p {
    color: #bdc3c7;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1e3a21);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a21, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
}

.btn-outline-primary {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Modal pour agrandir l'image */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.image-modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.image-modal .close:hover {
    color: #bbb;
}

/* Custom scrollbar for playlists */
.video-playlist::-webkit-scrollbar,
.homelie-playlist::-webkit-scrollbar {
    width: 8px;
}

.video-playlist::-webkit-scrollbar-track,
.homelie-playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.video-playlist::-webkit-scrollbar-thumb,
.homelie-playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.video-playlist::-webkit-scrollbar-thumb:hover,
.homelie-playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 1rem;
        bottom: 10%;
    }
    
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    header .container > div {
        margin: 0.25rem 0;
    }
    
    .news-events .card {
        margin-bottom: 1.5rem;
    }
    
    .homelie-section {
        background-attachment: scroll !important;
    }
    
    .main-homelie-container {
        margin-bottom: 2rem;
    }
    
    .homelie-playlist {
        max-height: 300px;
    }
    
    #homeLieContent {
        max-height: 250px;
    }
    
    .info-block {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-caption {
        padding: 0.75rem;
    }
    
    .main-homelie-container {
        padding: 1rem;
    }
    
    .homelie-item {
        padding: 0.75rem !important;
    }
    
    .homelie-item img {
        width: 60px !important;
        height: 45px !important;
    }
    
    .info-block {
        padding: 1rem;
    }
    
    .info-block h4 {
        font-size: 1.1rem;
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    .video-section,
    .homelie-section,
    header {
        display: none !important;
    }
}



/* Styles pour le menu fixe et les sous-menus déroulants */

/* Menu fixe au scroll */
.navbar-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Compensation pour le menu fixe */
body.menu-fixed {
    padding-top: 76px;
}

/* Styles pour les sous-menus */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    border-radius: 0 6px 6px 6px;
    display: none;
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-submenu .dropdown-toggle::after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu .dropdown-toggle:hover::after {
    border-left-color: #fff;
}

/* Amélioration des transitions pour les dropdowns */
.dropdown-menu {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Styles pour les menus déroulants au survol */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Responsive pour mobile */
@media (max-width: 767px) {
    .navbar-fixed {
        position: relative !important;
    }
    
    .dropdown-submenu .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: rgba(0,0,0,0.05);
        border: 0;
        box-shadow: none;
        border-radius: 0;
        padding-left: 1rem;
    }
    
    .dropdown-submenu .dropdown-menu .dropdown-item {
        padding-left: 2rem;
        font-size: 0.9rem;
    }
    
    .dropdown-submenu .dropdown-toggle::after {
        display: none;
    }
    
    /* Désactiver le hover sur mobile */
    .nav-item.dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown-submenu:hover .dropdown-menu {
        display: none;
    }
}

/* Animation pour l'apparition des sous-menus */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu {
    animation: fadeInDown 0.3s ease-in-out;
}

/* Amélioration de l'apparence des liens de navigation */
.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
    left: 0;
}

/* Style pour le menu actif */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::before {
    width: 100%;
    left: 0;
}


/* Styles pour image-layer - arrière-plan des sections */
.image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Assurer que le contenu est au-dessus de l'image-layer */
.page-header {
    position: relative;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

