
/* Container */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.page-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.page-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Back Button */
.back-btn {
    display: inline-block;
    padding: 0.625rem 1rem;
    background-color: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.back-btn:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Overview Stats */
.overview-stats {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    text-align: center;
}

.overview-stat {
    padding: 1rem;
}

.overview-number {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff; /* Bleu conservé */
}

.overview-label {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Axes Overview */
.axes-overview {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.axes-overview-title {
    font-size: 1.8rem;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Axes Compact Grid */
.axes-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 100%;
}

/* Axis Cards - Gradients conservés pour différencier */
.axis-compact-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    border: 2px solid transparent;
    position: relative;
}

.axis-compact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.axis-compact-item.selected {
    border-color: #28a745; /* Vert conservé */
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

.axis-compact-item.selected::before {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #28a745; /* Vert conservé */
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

/* Couleurs spécifiques par axe - conservées */
.axis-compact-item[data-slug="administration-finances"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.axis-compact-item[data-slug="education"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.axis-compact-item[data-slug="sante"] {
    background: linear-gradient(135deg, #80ed62 0%, #c1ff75 100%);
}

.axis-compact-item[data-slug="environnement-agriculture"] {
    background: linear-gradient(135deg, #159f00 0%, #2c8326 100%);
}

.axis-compact-item[data-slug="droit"] {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.axis-compact-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.axis-compact-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.axis-compact-projects {
    font-size: 0.85rem;
    opacity: 1;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.axis-compact-stats {
    font-size: 0.75rem;
    opacity: 1;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
    padding: 0.1875rem 0.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    color: #1a1a1a;
    font-weight: 600;
}

/* Filters */
.filters-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    min-width: 150px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.filter-select:focus {
    outline: none;
    border-color: #007bff; /* Bleu conservé */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.all-axes-btn {
    background: #007bff; /* Bleu conservé */
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.all-axes-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* Projects Section */
.projects-section {
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

/* Project Card */
.project-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.project-card.featured {
    border-left: 4px solid #28a745; /* Vert conservé */
}

.project-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    background-color: #f9fafb;
}

.project-content {
    padding: 1.5rem;
}

/* Project Header */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    letter-spacing: -0.01em;
}

/* Project Status Badges - Couleurs conservées */
.project-status {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 1rem;
    white-space: nowrap;
}

.status-planning {
    background: #ffc107; /* Jaune conservé */
    color: #212529;
}

.status-active {
    background: #28a745; /* Vert conservé */
    color: #fff;
}

.status-completed {
    background: #007bff; /* Bleu conservé */
    color: #fff;
}

.status-paused {
    background: #9ca3af;
    color: #fff;
}

.featured-badge {
    background: #28a745; /* Vert conservé */
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Project Details */
.project-axis {
    color: #007bff; /* Bleu conservé */
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-dates {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

/* Objectives & Results */
.project-objectives,
.project-results {
    margin-bottom: 1rem;
}

.project-results {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.objectives-title,
.results-title,
.participants-title {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.objectives-text,
.results-text {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Participants */
.participants-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.participant-tag {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 0.1875rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* Project Meta */
.project-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.project-budget,
.project-contact {
    font-weight: 500;
}

.project-contact {
    font-style: italic;
}

/* Loading & No Data */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.no-projects {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 4rem;
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Large Tablet */
@media (max-width: 1024px) {
    .axes-compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.8rem;
    }

    .axis-compact-item {
        padding: 1.2rem 0.8rem;
    }

    .axis-compact-icon {
        font-size: 1.8rem;
    }

    .axis-compact-name {
        font-size: 0.9rem;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .axes-compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.6rem;
    }

    .axis-compact-item {
        padding: 1rem 0.6rem;
    }

    .axis-compact-icon {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }

    .axis-compact-name {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .axis-compact-projects {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .axis-compact-stats {
        font-size: 0.65rem;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filters-container {
        justify-content: center;
        gap: 1rem;
    }

    .filter-select {
        min-width: 200px;
        width: auto;
        padding: 0.875rem 3rem 0.875rem 1.25rem;
        font-size: 1rem;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        min-height: 56px;
    }

    .all-axes-btn {
        padding: 0.875rem 1.5rem;
        min-width: 160px;
        font-size: 1rem;
        min-height: 56px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .page-header {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }

    .axes-overview {
        padding: 1.5rem;
    }

    .axes-overview-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .axes-compact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .axis-compact-item {
        padding: 0.8rem 0.5rem;
        min-height: 100px;
    }

    .axis-compact-icon {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .axis-compact-name {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }

    .axis-compact-projects {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }

    .axis-compact-stats {
        font-size: 0.6rem;
    }

    .section-header {
        padding: 1rem;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-select,
    .all-axes-btn {
        width: 100%;
        font-size: 1rem;
        min-height: 60px;
        height: 60px;
    }

    .filter-select {
        padding: 1.125rem 3.4375rem 1.125rem 1.25rem;
        border: 2px solid #d1d5db;
        border-radius: 12px;
    }

    .all-axes-btn {
        padding: 1.125rem 1.5rem;
        border-radius: 12px;
        font-weight: 600;
    }

    .back-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }
}

/* Touch devices */
@media (hover: none) {
    .axis-compact-item:hover {
        transform: none;
    }

    .axis-compact-item:active {
        transform: scale(0.95);
    }
}