/* ============================================================
   Consultation Citoyenne - Hub & Informational Page CSS
   ============================================================ */

/* Hub Container */
.hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ---- Introduction ---- */
.cc-intro {
    text-align: center;
    margin-bottom: 60px;
}



.cc-intro-text {
    max-width: 800px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

/* Stats Row */
.cc-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cc-stat-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.cc-stat-card:hover {
    transform: translateY(-2px);
}

.cc-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #E60000;
    font-family: 'Lato', sans-serif;
    line-height: 1;
}

.cc-stat-label {
    font-size: 0.85rem;
    color: #777;
    font-weight: 500;
    text-align: center;
}

/* ---- Process Section ---- */
.cc-process-section {
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid #eee;
}

.cc-process-section:last-of-type {
    border-bottom: none;
}

.cc-process-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.cc-process-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.cc-process-icon.petition-icon {
    background: linear-gradient(135deg, #0E8040, #0A6030);
}

.cc-process-icon.consultation-icon {
    background: linear-gradient(135deg, #ED2024, #b30000);
}

.cc-process-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.cc-process-subtitle {
    color: #888;
    margin: 0;
    font-size: 0.95rem;
}

.cc-process-desc {
    max-width: 800px;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 36px;
}

/* ---- Process Flow (Step-by-step) ---- */
.cc-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
    padding: 0 20px;
}

.cc-flow-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.cc-flow-number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E60000, #cc0000);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    z-index: 1;
}

.cc-flow-number--green {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

.cc-flow-content {
    flex: 1;
    padding-bottom: 4px;
}

.cc-flow-content h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    padding-top: 8px;
}

.cc-flow-content p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.cc-flow-connector {
    width: 3px;
    height: 24px;
    background: #E60000;
    opacity: 0.3;
    margin-left: 20px;
    border-radius: 2px;
}

.cc-flow-connector--green {
    background: #2e7d32;
}

/* ---- Thresholds ---- */
.cc-thresholds {
    background: #fafafa;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
}

.cc-thresholds-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-thresholds-title i {
    color: #E60000;
}

.cc-threshold-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cc-threshold-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid transparent;
}

.cc-threshold--visibility {
    border-left-color: #f57c00;
}

.cc-threshold--hemicycle {
    border-left-color: #6a1b9a;
}

.cc-threshold-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cc-threshold--visibility .cc-threshold-icon {
    background: #fff3e0;
    color: #f57c00;
}

.cc-threshold--hemicycle .cc-threshold-icon {
    background: #f3e5f5;
    color: #6a1b9a;
}

.cc-threshold-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cc-threshold-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    font-family: 'Lato', sans-serif;
}

.cc-threshold-desc {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
}

/* ---- Requirements ---- */
.cc-requirements {
    margin-bottom: 36px;
}

.cc-requirements h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-requirements h3 i {
    color: #2e7d32;
}

.cc-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cc-req-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.cc-req-list li i {
    color: #2e7d32;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ---- Active Items (Cards) ---- */
.cc-active-items {
    margin-bottom: 32px;
}

.cc-active-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-active-count {
    background: #f0f0f0;
    color: #555;
    padding: 3px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ---- Consultation Types ---- */
.cc-types {
    margin-bottom: 36px;
}

.cc-types-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-types-title i {
    color: #2e7d32;
}

.cc-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cc-type-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cc-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cc-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e8f5e9;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 14px;
}

.cc-type-card h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.cc-type-card p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

/* ---- Timeline Visual ---- */
.cc-timeline {
    margin-bottom: 36px;
}

.cc-timeline-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-timeline-title i {
    color: #2e7d32;
}

.cc-timeline-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.cc-timeline-phase {
    padding: 20px 16px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cc-timeline-phase::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.cc-timeline-phase:last-child::after {
    display: none;
}

.cc-timeline-phase--prep {
    background: #e3f2fd;
    border-top: 3px solid #1565c0;
}

.cc-timeline-phase--open {
    background: #e8f5e9;
    border-top: 3px solid #2e7d32;
}

.cc-timeline-phase--close {
    background: #fff3e0;
    border-top: 3px solid #f57c00;
}

.cc-timeline-phase--report {
    background: #f3e5f5;
    border-top: 3px solid #6a1b9a;
}

.cc-timeline-phase-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Lato', sans-serif;
}

.cc-timeline-phase-desc {
    font-size: 0.78rem;
    color: #777;
}

/* ---- FAQ Section ---- */
.cc-faq-section {
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid #eee;
}

.cc-faq-section .cc-section-title {
    text-align: center;
    margin-bottom: 32px;
}

.cc-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cc-faq-item {
    border-bottom: 1px solid #eee;
}

.cc-faq-item:first-child {
    border-top: 1px solid #eee;
}

.cc-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 4px;
    cursor: pointer;
    list-style: none;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    transition: color 0.2s;
}

.cc-faq-question::-webkit-details-marker {
    display: none;
}

.cc-faq-question::marker {
    display: none;
    content: '';
}

.cc-faq-question:hover {
    color: #E60000;
}

.cc-faq-chevron {
    font-size: 0.8rem;
    color: #999;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.cc-faq-item[open] .cc-faq-chevron {
    transform: rotate(180deg);
}

.cc-faq-answer {
    padding: 0 4px 18px;
}

.cc-faq-answer p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   Hub Cards (shared between old hub & new informational page)
   ============================================================ */

/* Card Grid */
.hub-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* Card */
.hub-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: inherit;
    text-decoration: none;
}

.hub-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.hub-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.hub-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hub-status-badge.status-valide,
.hub-status-badge.status-en-cours {
    background: #2e7d32;
    color: white;
}

.hub-status-badge.status-examine {
    background: #f57c00;
    color: white;
}

.hub-status-badge.status-debattu {
    background: #1565c0;
    color: white;
}

.hub-status-badge.status-hemicycle {
    background: #6a1b9a;
    color: white;
}

.hub-status-badge.status-ferme,
.hub-status-badge.status-fermee {
    background: #757575;
    color: white;
}

.hub-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hub-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-family: 'Lato', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Petition progress bar (mini) */
.petition-progress-mini {
    margin-top: auto;
}

.progress-bar-mini {
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #E60000, #ff4444);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text-mini {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

/* Consultation meta (mini) */
.consultation-meta-mini {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.consultation-desc-mini {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty state */
.hub-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.hub-empty i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.hub-empty p {
    font-size: 1rem;
    margin: 0;
}

/* Section footer / See all link */
.hub-section-footer {
    text-align: center;
    margin-top: 8px;
}

.hub-see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #E60000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border: 2px solid #E60000;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.hub-see-all:hover {
    background: #E60000;
    color: white;
    text-decoration: none;
}

.hub-see-all.hub-see-all--green {
    color: var(--green, #0E8040);
    border-color: var(--green, #0E8040);
}

.hub-see-all.hub-see-all--green:hover {
    background: var(--green, #0E8040);
    color: white;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
    .hub-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cc-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .cc-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cc-threshold-cards {
        grid-template-columns: 1fr;
    }

    .cc-timeline-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .cc-timeline-phase:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hub-container {
        padding: 40px 16px;
    }

    .cc-section-title {
        font-size: 1.5rem;
    }

    .cc-process-header {
        flex-wrap: wrap;
    }

    .cc-process-title {
        font-size: 1.3rem;
    }

    .cc-flow {
        padding: 0 10px;
    }

    .cc-stat-number {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .hub-card-grid {
        grid-template-columns: 1fr;
    }

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

    .cc-types-grid {
        grid-template-columns: 1fr;
    }

    .cc-timeline-bar {
        grid-template-columns: 1fr;
    }

    .cc-timeline-phase::after {
        display: none;
    }

    .cc-cta {
        flex-direction: column;
        align-items: center;
    }

    .cc-thresholds {
        padding: 20px 16px;
    }
}

/* ============================================================
   Accessibility: Focus states
   ============================================================ */
.cc-faq-question:focus-visible {
    outline: 2px solid #E60000;
    outline-offset: 2px;
    border-radius: 4px;
}

.hub-see-all:focus-visible,
.hub-card:focus-visible {
    outline: 2px solid #E60000;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .hub-card,
    .cc-stat-card,
    .cc-type-card,
    .cc-faq-chevron {
        transition: none;
    }

    .hub-card:hover .hub-card-image img {
        transform: none;
    }
}

/* Print styles */
@media print {

    .cc-cta,
    .hub-see-all {
        display: none;
    }

    .cc-faq-item[open] .cc-faq-answer,
    .cc-faq-answer {
        display: block;
    }

    .hub-container {
        padding: 20px 0;
    }
}