/* ===================================
   Guichet Unique - Styles Spécifiques
   =================================== */

/* Hero Section */
.info-hub-hero {
    padding: 150px 0 100px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.info-hub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-image: url('assets/images/IMG_82752.jpeg');
    background-size: 120%;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
}

.info-hub-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 40%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0.8) 80%,
            rgba(255, 255, 255, 1) 100%);
    z-index: 1;
    pointer-events: none;
}

.info-hub-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* AI Semantic Search */
.ai-search-container {
    max-width: 700px;
    margin: 2rem auto 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 168, 120, 0.15);
    transition: var(--transition);
}

.ai-search-container:focus-within {
    box-shadow: 0 15px 50px rgba(0, 168, 120, 0.25);
    transform: translateY(-2px);
}

.search-icon {
    padding: 0 1rem;
    color: var(--primary-color);
}

.ai-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    color: var(--text-dark);
    padding: 0.75rem 0;
}

.ai-search-input::placeholder {
    color: var(--text-light);
}

.ai-search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.ai-search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.search-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.suggestion-label {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.suggestion-tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 168, 120, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 168, 120, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Quick Categories */
.quick-categories {
    padding: 80px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 168, 120, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.category-card:hover::before {
    width: 300px;
    height: 300px;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 168, 120, 0.15);
}

.category-card.featured {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf9 100%);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 168, 120, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.category-card:hover .category-icon {
    background: var(--primary-color);
    color: white;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.category-count {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.875rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Support Programs Section */
.support-programs {
    padding: 80px 0;
    background: var(--bg-light);
}

.programs-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.program-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
}

.program-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 168, 120, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

.program-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 168, 120, 0.15);
    border-color: var(--primary-color);
}

.program-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf9 100%);
}

.featured-ribbon {
    position: absolute;
    top: 1rem;
    right: -0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 168, 120, 0.3);
}

.featured-ribbon::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-top: 8px solid var(--primary-dark);
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.program-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.program-badge.subvention {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.program-badge.pret {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.program-badge.formation {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.program-badge.incubation {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

.program-deadline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.85rem;
}

.program-deadline svg {
    color: var(--primary-color);
}

.program-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.program-description {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.program-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.program-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.3rem 0.875rem;
    background: rgba(0, 168, 120, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.program-actions {
    display: flex;
    gap: 1rem;
}

.program-actions .btn-secondary,
.program-actions .btn-primary {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.95rem;
}

/* Recent Articles */
.recent-articles {
    padding: 80px 0;
    background: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.article-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-category {
    display: inline-block;
    background: rgba(0, 168, 120, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.875rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.article-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.article-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Regulatory Watch */
.regulatory-watch {
    padding: 80px 0;
    background: var(--bg-light);
}

/* Roadmap Horizontal */
.roadmap-horizontal {
    max-width: 1200px;
    margin: 60px auto 0;
    position: relative;
    padding: 40px 0 80px;
}

.roadmap-line {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    z-index: 1;
}

.roadmap-items {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    gap: 40px;
}

.roadmap-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.roadmap-marker {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.roadmap-dot {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: 6px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--primary-color), 0 4px 12px rgba(0, 168, 120, 0.3);
    position: relative;
    z-index: 3;
}

.roadmap-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.roadmap-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.roadmap-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roadmap-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    background: rgba(0, 168, 120, 0.1);
    color: var(--primary-color);
}

.roadmap-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.roadmap-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.roadmap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-date {
    width: 100px;
    font-weight: 600;
    color: var(--text-medium);
    text-align: right;
    padding-top: 0.5rem;
}

.timeline-content {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-light);
}

.timeline-badge {
    display: inline-block;
    padding: 0.3rem 0.875rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-badge.new {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.timeline-badge.update {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.timeline-badge.info {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.timeline-description {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 968px) {

    .categories-grid,
    .programs-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .programs-filters {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .roadmap-items {
        gap: 30px;
    }

    .roadmap-content {
        padding: 20px;
        max-width: 350px;
    }

    .roadmap-title {
        font-size: 1.1rem;
    }

    .roadmap-description {
        font-size: 0.9rem;
    }

    .timeline::before {
        left: 80px;
    }

    .timeline-date {
        width: 70px;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .info-hub-hero {
        padding: 120px 0 60px;
    }

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

    .ai-search-btn {
        width: 100%;
        justify-content: center;
    }

    .search-suggestions {
        flex-direction: column;
        align-items: flex-start;
    }

    .program-actions {
        flex-direction: column;
    }

    .roadmap-horizontal {
        padding: 20px 0 60px;
    }

    .roadmap-line {
        top: 80px;
    }

    .roadmap-items {
        flex-direction: column;
        gap: 60px;
        align-items: center;
    }

    .roadmap-item {
        width: 100%;
        max-width: 500px;
    }

    .roadmap-marker {
        position: absolute;
        top: -40px;
    }

    .roadmap-dot {
        position: relative;
        top: 0;
    }

    .roadmap-content {
        margin-top: 40px;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-date {
        width: 100%;
        text-align: left;
    }

    .timeline-content::before {
        display: none;
    }
}