/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.header {
    background-color: #00519e;
    color: white;
    padding: 5px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    max-width: 120px;
}

.logo img {
    width: 48%;
}

.logo-droite {
    margin-left: auto;
    max-width: 120px;
    position: relative;
    left: 6%;

}

.logo-droite img {
    width: 50%;
}

.nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
}

.nav-item.active {
    color: #f1c40f;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem .5rem;
    display: block;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 15px;
}

.nav-item.active .nav-link {
    background: #d3d300;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: bold;
    color: #00519e;
    border: 1px solid white;
    border-radius: 8px;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #00519e;
    text-decoration: none;
    margin-right: 0.5rem;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
    margin: 0 0.5rem;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.6; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

/* Main Content */
.main-content {
    padding: 2rem;
    background: white;
    margin: 0;
}

.page-title {
    color: #00519e;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 300;
}

/* Main Layout Container */
.main-container {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: white;
    min-height: 70vh;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar h3 {
    color: #00519e;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.sidebar .result-count {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1rem;
}

.filter-section select,
.filter-section input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.apply-btn {
    background: #00519e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}
.apply-btnv {
    background: #0A8A12;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.apply-btn1 {
    background: #00519e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}
.apply-btn2 {
    background: #F5340F;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.apply-btn:hover {
    background: #003d7a;
}

/* Content Area */
.content-area {
    flex: 1;
}

/* Activity Tabs */
.activity-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
}

.tab-btn {
    background: #e9ecef;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
    transition: background 0.3s ease;
}

.tab-btn.active {
    background: #28a745;
    color: white;
}

.tab-btn:not(.active) {
    background: #e9ecef;
    color: #666;
}

/* Activity Card */
.activity-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.activity-header h3 {
    color: #00519e;
    font-size: 1.2rem;
    margin: 0;
}

.activity-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.activity-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-meta .icon {
    width: 16px;
    height: 16px;
    background: #ccc;
    border-radius: 50%;
}

.activity-meta .date-icon {
    background: #6c757d;
}

.activity-meta .category-icon {
    background: #fd7e14;
}

.activity-meta .location-icon {
    background: #20c997;
}

.activity-meta .map-icon {
    background: #6f42c1;
}

.activity-description {
    line-height: 1.6;
    color: #555;
}

/* Stats Section */
.stats-section {
    padding: .5rem .5rem;
    margin: 2rem 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-title {
    color: #1e5799;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: left;
    font-weight: 300;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stat-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 1rem;
    object-fit: cover;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.stat-image img {
    max-height: 180px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #1e5799;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    margin-top: -50px;
    position: relative;
    z-index: 200px;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-title {
    color: #1e5799;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.stat-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    background: white;
}

.realisations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.realisations-table th {
    background-color: green;
    color: white;
    padding: 2px 8px;
    text-align: left;
    font-weight: bold;
    border-right: 1px solid green;
}
.realisations-table th:last-child {
    border-right: none;
}

.realisations-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}

.realisations-table td:last-child {
    border-right: none;
}

.realisations-table tr:hover {
    background-color: #f8f9fa;
}

.realisations-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.realisations-table tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

.btn-consulter {
    background-color: #00519e;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.btn-consulter:hover {
    background-color: #003d7a;
}

/* Footer */
.footer {
    background: #1e5799;
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f1c40f;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .main-content {
        padding: 1rem;
    }

    .main-container {
        flex-direction: column;
        padding: 1rem;
    }

    .sidebar {
        width: 100%;
    }

    .page-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .realisations-table {
        font-size: 12px;
    }

    .realisations-table th,
    .realisations-table td {
        padding: 8px 4px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .activity-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* Styles spécifiques pour la page d'accueil */
body.home-page {
    background-color: #fff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}