/* styles spécifique pour la page liens-utiles.php */

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 2rem !important;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem !important;
    }
}

.links-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

.link-category {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 1rem !important;
}

.link-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4) !important;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 20px 20px 0 0;
}

.link-category:hover::before {
    transform: scaleX(1);
}

.link-category:hover {
    transform: translateY(-5px) !important;
    box-shadow:
        0 20px 60px rgba(99, 102, 241, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

.link-category h3 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #4f46e5 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 2px solid rgba(99, 102, 241, 0.15) !important;
    position: relative !important;
    margin-top: 0 !important;
}

.link-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.link-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.link-item a {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1.25rem !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 250, 252, 0.5) 100%) !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: #1f2937 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(226, 232, 240, 0.5) !important;
    position: relative !important;
    overflow: hidden !important;
}

.link-item a:hover {
    transform: translateX(5px) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow:
        0 4px 15px rgba(99, 102, 241, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.link-title {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.link-title span:last-child {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.link-description {
    font-size: 0.9rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding-left: 1.8rem !important;
}

.external-icon {
    flex-shrink: 0 !important;
    font-size: 1.2rem !important;
    color: #6366f1 !important;
    opacity: 0.6 !important;
    transition: all 0.3s ease !important;
}

.section-separator {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding: 3rem 2rem !important;
    margin: 3rem 0 !important;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.03) 0%,
        rgba(139, 92, 246, 0.05) 50%,
        rgba(6, 182, 212, 0.03) 100%
    ) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(99, 102, 241, 0.15) !important;
}

/* Mode sombre */
[data-theme="dark"] .link-category {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: rgba(71, 85, 105, 0.4) !important;
}

[data-theme="dark"] .link-title span:last-child {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .link-description {
    color: #94a3b8 !important;
}

[data-theme="dark"] .link-item a {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%) !important;
    color: #f1f5f9 !important;
}
