/* ============================================
   COMPONENTS.CSS - Cards, Forms, Footer
   ============================================ */

/* ============================================
   PROJECT CARDS & GRID
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.project-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-slow);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

/* Featured cards take more space */
.project-card.featured {
    grid-column: span 2;
}

.project-card.special {
    position: relative;
    border: 2px solid rgba(240, 147, 251, 0.3);
}

.project-card.special::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0.05;
    pointer-events: none;
}

.project-card.fun {
    border: 2px solid rgba(79, 172, 254, 0.3);
}

.card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--spacing-sm);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .card-overlay {
    opacity: 1;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-innovation {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tag-ia {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.tag-architecture {
    background: linear-gradient(135deg, #fa709a, #fee140);
    color: white;
}

.tag-methodologie {
    background: linear-gradient(135deg, #30cfd0, #330867);
    color: white;
}

.tag-lifestyle {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #333;
}

.tag-coeur {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.tag-fun {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.tag-soutien {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
}

.status-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 0.4rem 1rem;
    background: rgba(245, 87, 108, 0.9);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Card Content */
.card-content {
    padding: var(--spacing-md);
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.card-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.card-actions .btn-ghost,
.card-actions .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.card-actions .btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 3rem;
    background: var(--gradient-dynamic);
    color: white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.btn-primary-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 50px rgba(102, 126, 234, 0.4);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.contact-info {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-md));
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-base);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.feature-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

.feature-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    padding: var(--spacing-lg);
}

.form-group {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-base);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-group label {
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: all var(--transition-base);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.7rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--bg-dark);
    padding: 0 0.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem;
    background: var(--gradient-dynamic);
    color: white;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: rgba(10, 10, 15, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: inline-block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-dynamic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--gradient-dynamic);
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .project-card.featured {
        grid-column: span 1;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 220px;
    }
    
    .card-content {
        padding: var(--spacing-sm);
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .card-actions .btn-ghost,
    .card-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}
