/* Global Styles */
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557; /* exact dark blue from image */
    --light-color: #f1faee;
    --dark-color: #1d3557; /* exact dark blue from image */
    --navbar-height: 72px;
    --page-bg: #8c3f1f; /* rusty orange from provided image */
}

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    min-height: 100vh;
    padding-top: var(--navbar-height);
    background-color: var(--page-bg);
}

/* Ensure all form controls inherit Times New Roman */
input, select, textarea, button {
    font-family: inherit;
}

/* Supprimer l'espace blanc au-dessus de la section Hero sur la page d'accueil */
body.homepage {
    padding-top: 0;
}

/* Hero Section */
.hero-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 50vh;
    height: 50vh;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    padding-top: 80px;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    height: var(--navbar-height);
    background-color: var(--dark-color) !important;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.navbar.scrolled {
    background-color: rgba(29, 53, 87, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    transition: all 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
    transform: scale(1.1);
}

.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--dark-color);
        padding: 1rem;
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem;
        margin: 0.25rem 0;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .nav-link::after {
        display: none;
    }
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    border-radius: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

/* Cards */
.card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
    color: #fff !important;
    opacity: 1 !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
    opacity: 1 !important;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

.social-links a:hover {
    color: var(--primary-color) !important;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

footer .list-unstyled a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

footer .list-unstyled a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

footer .list-unstyled i {
    width: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Galeries Section */
.galerie-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
}

.galerie-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.galerie-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.galerie-img:hover img {
    filter: brightness(1.2);
}

/* Animation pour l'apparition des images */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.galerie-img {
    animation: fadeIn 0.5s ease-in-out;
}

/* Animation pour la transition entre les images */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.galerie-img img {
    animation: slideIn 0.5s ease-in-out;
}

/* Carousel Styles */
.carousel-item img {
    transition: transform 0.7s cubic-bezier(.4,2,.3,1), box-shadow 0.3s;
    object-fit: cover;
    height: 350px;
}

.carousel-item img:hover {
    transform: scale(1.04) rotate(-1deg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Style spécifique pour la section Actualités */
.actu-card {
    border-width: 2px;
    border-color: #0d6efd !important;
    transition: box-shadow 0.3s, transform 0.3s;
}
.actu-card:hover {
    box-shadow: 0 8px 32px rgba(13,110,253,0.15), 0 1.5px 8px rgba(13,110,253,0.10);
    transform: translateY(-4px) scale(1.02);
}
.actu-card .badge {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.actu-card .fa-newspaper {
    vertical-align: middle;
}
.actu-card .fa-calendar-alt {
    color: #0d6efd;
    vertical-align: middle;
}

/* Effets dynamiques pour la section ID=3 */
#\33 .rounded-3, #\33  img.img-fluid {
    transition: transform 0.35s cubic-bezier(.4,2,.3,1), box-shadow 0.3s;
}
#\33 .rounded-3:hover, #\33  img.img-fluid:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 2;
}
#\33 .p-4.bg-white, #\33 .d-flex.bg-white {
    transition: box-shadow 0.3s, transform 0.3s;
}
#\33 .p-4.bg-white:hover, #\33 .d-flex.bg-white:hover {
    box-shadow: 0 8px 32px rgba(255,193,7,0.18), 0 1.5px 8px rgba(255,193,7,0.10);
    transform: translateY(-4px) scale(1.01);
}
#\33 h1.fw-bold, #\33 h5.fw-bold {
    transition: color 0.3s, text-decoration 0.3s;
}
#\33 h1.fw-bold:hover, #\33 h5.fw-bold:hover {
    color: #ffc107;
    text-decoration: underline wavy #ffc107 2px;
}

/* Style personnalisé pour la section ID 6 (À la Une) */
#\36 {
    background: linear-gradient(135deg, #f5f7fa 0%, #e6e9f0 100%);
    position: relative;
}
#\36::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
}
#\36 h2 {
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
#\36 h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
}
#\36 .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
#\36 .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
#\36 .card-img-top {
    height: 200px;
    object-fit: cover;
}
#\36 .btn-primary {
    background: linear-gradient(90deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
#\36 .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,154,158,0.4);
}

/* Force la navbar à rester fixe en haut */
.navbar.fixed-top {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Animation pour le menu mobile */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-collapse.show {
    animation: slideDown 0.3s ease-out forwards;
}

/* Styles pour le menu déroulant des reportages */
.dropdown-menu {
    background: rgba(29, 53, 87, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    color: var(--light-color) !important;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: transparent;
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.dropdown-item:active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--primary-color) !important;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Styles spécifiques pour mobile */
@media (max-width: 991.98px) {
    .dropdown-menu {
        background: rgba(29, 53, 87, 0.98);
        border: none;
        box-shadow: none;
        margin-top: 0;
        border-radius: 0;
        position: static !important;
    }

    .dropdown-item {
        padding: 1rem 2rem;
        border-radius: 0;
        margin: 0.25rem 0;
    }

    .dropdown-item:hover {
        transform: none;
    }

    .dropdown-divider {
        margin: 0.75rem 0;
    }
}

/* Amélioration de la fermeture du menu */
.dropdown-menu:not(.show) {
    pointer-events: none;
}

.dropdown-menu.show {
    pointer-events: auto;
}

/* Style pour éviter les conflits avec Bootstrap */
.dropdown-toggle[aria-expanded="false"] + .dropdown-menu {
    display: none !important;
}

.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    display: block !important;
}

/* Styles pour l'agenda */
.agenda-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    margin-bottom: 2rem;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.event-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: bold;
}

.event-date .day {
    font-size: 1.5rem;
    line-height: 1;
}

.event-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.event-details h5 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.event-details p {
    margin-bottom: 0.25rem;
    color: #6c757d;
}

.event-details i {
    color: var(--primary-color);
    width: 16px;
}

/* Styles pour le calendrier FullCalendar */
.fc-event {
    cursor: pointer;
    transition: all 0.3s ease;
}

.fc-event:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.fc-toolbar-title {
    font-weight: 600;
    color: var(--dark-color);
}

.fc-button-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.fc-button-primary:hover {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
}

.fc-button-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25) !important;
}

.fc-button-primary:not(:disabled):active {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
}

/* Modal pour les détails d'événement */
.event-details-modal {
    color: var(--dark-color);
}

.event-details-modal strong {
    color: var(--primary-color);
}

.event-details-modal i {
    color: var(--primary-color);
    width: 20px;
}

/* Responsive pour l'agenda */
@media (max-width: 768px) {
    .event-item {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        align-self: center;
        margin-bottom: 1rem;
    }
    
    .fc-toolbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }
} 

/* Navigation styles to match the image exactly */
.navbar {
    background-color: var(--dark-color) !important;
    font-family: 'Times New Roman', Times, serif;
}

.navbar-brand {
    color: white !important;
}

.nav-link {
    color: #d3d3d3 !important; /* light gray for inactive items */
    font-family: 'Times New Roman', Times, serif;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #d3d3d3 !important; /* keep light gray on hover */
}

.nav-link.active {
    color: #e63946 !important; /* bright red for active items */
    font-weight: bold;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e63946; /* red underline for active items */
}

/* Icons in the menu */
.nav-link i {
    color: inherit; /* icons inherit the text color */
}

/* Global link color - make all links blue */
a {
    color: #0066cc !important; /* blue color for all links */
}

a:hover {
    color: #004499 !important; /* darker blue on hover */
}

/* Style for "Dans la même catégorie" section - change text color to blue */
.list-group-item a {
    color: #0066cc !important; /* blue instead of golden yellow */
    font-weight: bold;
}

.list-group-item a:hover {
    color: #004499 !important; /* darker blue on hover */
}

/* Styles pour les bannières */
.banners-container {
    margin: 1rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banners-top {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banners-middle {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banners-bottom {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banners-left {
    margin-right: 1rem;
    max-width: 100%;
}

.banners-right {
    margin-left: 1rem;
    max-width: 100%;
}

.banner-item {
    position: relative;
    width: 970px;
    height: 100px;
    margin: 0 auto 1rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-align: center;
}

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

.banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.banner-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    border-radius: 0 0 8px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.banner-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-description {
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* Styles spécifiques pour les bannières latérales */
.banners-left .banner-item,
.banners-right .banner-item {
    margin-bottom: 1.5rem;
    width: 100%;
    height: 250px;
    margin-left: 0;
    margin-right: 0;
}

.banners-left .banner-image,
.banners-right .banner-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.banners-left .banner-content,
.banners-right .banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    border-radius: 0 0 8px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.banners-left .banner-title,
.banners-right .banner-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banners-left .banner-description,
.banners-right .banner-description {
    font-size: 0.85rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

/* Responsive pour les bannières */
@media (max-width: 1024px) {
    .banner-item {
        width: 100%;
        max-width: 970px;
        height: 100px;
    }
    
    .banner-image {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .banner-item {
        width: 100%;
        max-width: 728px;
        height: 90px;
    }
    
    .banner-image {
        height: 90px;
    }
    
    .banner-content {
        padding: 0.5rem;
    }
    
    .banner-title {
        font-size: 0.9rem;
    }
    
    .banner-description {
        font-size: 0.7rem;
    }
    
    .banners-left,
    .banners-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .banner-item {
        width: 100%;
        height: 60px;
    }
    
    .banner-image {
        height: 60px;
    }
    
    .banner-content {
        padding: 0.25rem;
    }
    
    .banner-title {
        font-size: 0.8rem;
    }
    
    .banner-description {
        font-size: 0.6rem;
    }
} 