/* ============================================
   MonEntrepriseFacile - Guides Page Styles
   ============================================ */

/* ============================================
   Guides Hero Section
   ============================================ */

.guides-hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--navy-darkest) 0%, var(--navy-dark) 100%);
    position: relative;
    overflow: hidden;
}

.guides-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(201, 169, 98, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.guides-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.guides-hero-subtitle {
    font-family: var(--font-elegant);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Search Bar */
.guides-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.guides-search i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.guides-search-input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: rgba(26, 39, 68, 0.8);
    border: 2px solid rgba(201, 169, 98, 0.3);
    border-radius: 50px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.guides-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.guides-search-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(26, 39, 68, 1);
    box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.15);
}

/* ============================================
   Filter Tabs
   ============================================ */

.guides-filter {
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
    padding: 1.5rem 0;
    position: sticky;
    top: 74px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(26, 39, 68, 0.5);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tab i {
    font-size: 0.85rem;
}

.filter-tab:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-color: transparent;
    color: var(--navy-darkest);
}

.filter-tab.active i {
    color: var(--navy-darkest);
}

/* ============================================
   Guides Grid
   ============================================ */

.guides-section {
    padding: 4rem 0;
    background: var(--navy-darker);
    min-height: 60vh;
}

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

/* ============================================
   Guide Card with Tricolore
   ============================================ */

.guide-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy-darkest) 100%);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

/* Liseré Tricolore */
.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #002654, #ffffff, #CE1126);
    z-index: 1;
}

.guide-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 169, 98, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Card Image/Icon Area */
.guide-card-image {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(145deg, rgba(201, 169, 98, 0.1) 0%, rgba(201, 169, 98, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2) 0%, rgba(201, 169, 98, 0.05) 100%);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.guide-icon i {
    font-size: 2rem;
    color: var(--gold-primary);
}

.guide-card:hover .guide-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.3);
}

.guide-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--navy-darkest);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Card Content */
.guide-card-content {
    padding: 1.5rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.guide-meta span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.guide-meta i {
    color: var(--gold-primary);
}

.guide-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.guide-card > .guide-card-content > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
}

/* Tags */
.guide-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.guide-tag {
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.2);
    color: var(--gold-light);
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
}

/* Guide Link */
.guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.guide-link i {
    transition: transform 0.3s ease;
}

.guide-link:hover {
    color: var(--gold-light);
}

.guide-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   No Results
   ============================================ */

.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    width: 100px;
    height: 100px;
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.no-results-icon i {
    font-size: 2.5rem;
    color: rgba(201, 169, 98, 0.5);
}

.no-results h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.no-results p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

/* ============================================
   CTA Section
   ============================================ */

.guides-cta-section {
    padding: 4rem 0;
    background: var(--navy-dark);
}

.guides-cta-card {
    background: linear-gradient(145deg, rgba(201, 169, 98, 0.1) 0%, rgba(201, 169, 98, 0.02) 100%);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.guides-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #002654, #ffffff, #CE1126);
}

.guides-cta-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.guides-cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    margin: 0;
}

.guides-cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* ============================================
   Nav Link Active State
   ============================================ */

.nav-horizontal-link.active {
    color: var(--gold-primary);
}

.nav-horizontal-link.active::after {
    width: 100%;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 991.98px) {
    .guides-cta-card {
        flex-direction: column;
        text-align: center;
    }

    .guides-cta-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .guides-hero {
        padding: 120px 0 60px;
    }

    .guides-filter {
        top: 53px;
    }

    .guides-section {
        padding: 3rem 0;
    }

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

    .guide-card-content {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .guide-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .guides-cta-card {
        padding: 2rem 1.5rem;
    }

    .guides-cta-content h2 {
        font-size: 1.4rem;
    }

    .guides-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .guides-cta-actions a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .guides-hero-subtitle {
        font-size: 1.05rem;
    }

    .filter-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .guide-icon {
        width: 60px;
        height: 60px;
    }

    .guide-icon i {
        font-size: 1.5rem;
    }

    .guide-card h3 {
        font-size: 1.1rem;
    }
}

/* ============================================
   Animations
   ============================================ */

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

.guide-card {
    animation: fadeInUp 0.6s ease forwards;
}

.guide-card:nth-child(1) { animation-delay: 0.05s; }
.guide-card:nth-child(2) { animation-delay: 0.1s; }
.guide-card:nth-child(3) { animation-delay: 0.15s; }
.guide-card:nth-child(4) { animation-delay: 0.2s; }
.guide-card:nth-child(5) { animation-delay: 0.25s; }
.guide-card:nth-child(6) { animation-delay: 0.3s; }
.guide-card:nth-child(7) { animation-delay: 0.35s; }
.guide-card:nth-child(8) { animation-delay: 0.4s; }
.guide-card:nth-child(9) { animation-delay: 0.45s; }
.guide-card:nth-child(10) { animation-delay: 0.5s; }
.guide-card:nth-child(11) { animation-delay: 0.55s; }
.guide-card:nth-child(12) { animation-delay: 0.6s; }

/* ============================================
   Guide Modal
   ============================================ */

.guide-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(145deg, var(--navy-dark), var(--navy-darker));
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.guide-modal-header .modal-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0;
}

.guide-modal-close {
    width: 44px;
    height: 44px;
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gold-primary);
    font-size: 1.25rem;
}

.guide-modal-close:hover {
    background: var(--gold-primary);
    color: var(--navy-darkest);
    transform: rotate(90deg);
}

#guideModal .modal-content {
    border: none;
    border-radius: 0;
}

#guideModal .modal-body {
    background: var(--paper, #faf9f7);
}

@media (max-width: 767.98px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-card {
        padding: 1.25rem;
    }
    
    .guide-card-icon {
        width: 50px;
        height: 50px;
    }
    
    .guide-card-icon i {
        font-size: 1.5rem;
    }
    
    .guide-card-arrow {
        display: none;
    }
}
