/* Projets Page - Regard Sur Theme */
/* Fichier: user/themes/regard-sur/css/projets.css */

/* Variables spécifiques aux projets */
:root {
    --projets-hero-height: 80vh;
    --projets-card-radius: 20px;
    --projets-gap: 1.5rem;
    --overlay-bg: rgba(28, 28, 28, 0.9);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== PROJETS HERO SECTION ===== */
.projets-hero {
    min-height: var(--projets-hero-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 50%, var(--primary-bg) 100%);
    overflow: hidden;
    padding: 2rem;
}

.projets-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(238, 121, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(238, 121, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
}

.projets-hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

.projets-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--primary-orange);
    margin-top: 1rem;
}

.projets-hero-description {
    font-size: 1.2rem;
    margin: 2rem 0 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.projets-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Image d'accompagnement hero */
.hero-image-container {
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-accent-image {
    width: 200px;
    height: auto;
    border-radius: 15px;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.hero-accent-image:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* ===== FILTRES SECTION ===== */
.projets-filters {
    padding: 3rem 2rem 2rem;
    background: var(--secondary-bg);
    border-bottom: 1px solid rgba(238, 121, 0, 0.1);
    position: sticky;
    top: 70px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.filters-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

/* Recherche */
.search-container {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(238, 121, 0, 0.2);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(238, 121, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-orange);
    font-size: 0.9rem;
}

/* Boutons filtres */
.filters-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(238, 121, 0, 0.3);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-orange);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 121, 0, 0.3);
}

.filter-btn i {
    font-size: 0.8rem;
}

/* Compteur de résultats */
.results-counter {
    font-size: 0.9rem;
    opacity: 0.8;
    white-space: nowrap;
}

/* ===== PROJETS GRID ===== */
.projets-grid-section {
	padding-right: 2rem;
	padding-bottom: 4rem;
	padding-left: 2rem;
    background: var(--primary-bg);
}

.projets-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projets-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.projets-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-orange);
}

.intro-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Bento Grid pour les projets */
.projets-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--projets-gap);
    margin-top: 3rem;
}

/* Cartes projets */
.projet-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: var(--projets-card-radius);
    border: 1px solid rgba(238, 121, 0, 0.1);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.projet-card:hover {
    transform: translateY(-10px);
    border-color: rgba(238, 121, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Tailles variables pour l'effet Bento */
.projet-card.large {
    grid-column: span 2;
}

.projet-card.medium {
    grid-row: span 2;
}

.projet-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Image du projet */
.projet-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(45deg, #2a2a2a, #1c1c1c);
}

.projet-card.large .projet-image {
    height: 300px;
}

.projet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Placeholder pour images manquantes */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--primary-orange);
    background: linear-gradient(135deg, #2a2a2a 0%, #1c1c1c 100%);
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.image-placeholder span {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 0 1rem;
}

/* Overlay */
.projet-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.projet-card:hover .overlay-content {
    transform: translateY(0);
}

.technologies {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tech-badge {
    background: rgba(238, 121, 0, 0.2);
    color: var(--primary-orange);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.voir-projet-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary-orange);
    color: var(--primary-bg);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.voir-projet-btn:hover {
    background: #ff8800;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Contenu de la carte */
.projet-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projet-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.secteur {
    background: rgba(238, 121, 0, 0.15);
    color: var(--primary-orange);
}

.badge.category {
    background: rgba(249, 249, 249, 0.1);
    color: var(--text-light);
}

.projet-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.projet-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.projet-title a:hover {
    color: var(--primary-orange);
}

.projet-subtitle {
    color: var(--primary-orange);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.projet-description {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Métriques */
.projet-metriques {
    margin: 1rem 0;
}

.metrique-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-orange);
}

.metrique-item i {
    font-size: 0.8rem;
}

/* Témoignages */
.projet-temoignage {
    background: rgba(238, 121, 0, 0.05);
    border-left: 3px solid var(--primary-orange);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.projet-temoignage blockquote {
    margin: 0;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.5;
}

.projet-temoignage cite {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-orange);
    font-weight: 500;
}

.projet-temoignage cite::before {
    content: "— ";
}

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.no-results.show {
    opacity: 1;
    transform: translateY(0);
}

.no-results-content i {
    font-size: 4rem;
    color: var(--primary-orange);
    opacity: 0.6;
    margin-bottom: 2rem;
}

.no-results-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.no-results-content p {
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.reset-filters-btn {
    background: var(--primary-orange);
    color: var(--primary-bg);
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.reset-filters-btn:hover {
    background: #ff8800;
    transform: translateY(-2px);
}

/* ===== CTA FINAL ===== */
.projets-cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    text-align: center;
}

.projets-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.projets-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-orange);
}

.projets-cta p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-button-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-gradient);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.cta-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--shadow-orange);
    text-decoration: none;
}

.cta-button-secondary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--text-light);
    text-decoration: none;
    border: 2px solid rgba(238, 121, 0, 0.3);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.cta-button-secondary:hover {
    border-color: var(--primary-orange);
    background: rgba(238, 121, 0, 0.1);
    transform: translateY(-3px);
    text-decoration: none;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-orange);
    font-size: 0.9rem;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

/* Animations pour les cartes projets */
.projet-card {
    animation: fadeInScale 0.6s ease-out both;
}

.projet-card:nth-child(1) { animation-delay: 0.1s; }
.projet-card:nth-child(2) { animation-delay: 0.2s; }
.projet-card:nth-child(3) { animation-delay: 0.3s; }
.projet-card:nth-child(4) { animation-delay: 0.4s; }
.projet-card:nth-child(5) { animation-delay: 0.5s; }
.projet-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation de filtrage */
.projet-card.filtering {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.projet-card.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .projets-bento-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .projet-card.large,
    .projet-card.medium {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .projets-hero {
        min-height: 70vh;
        padding: 1rem;
    }
    
    .projets-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .projets-hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .projets-filters {
        padding: 2rem 1rem;
        position: relative;
        top: 0;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .search-container {
        max-width: none;
    }
    
    .filters-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.7rem 1.2rem;
    }
    
    .projets-bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .projet-image {
        height: 200px;
    }
    
    .projet-content {
        padding: 1.5rem;
    }
    
    .projet-description {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .projets-hero h1 {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .projets-intro h2 {
        font-size: 2rem;
    }
    
    .projet-title {
        font-size: 1.2rem;
    }
    
    .filter-btn span {
        display: none;
    }
    
    .filter-btn {
        padding: 0.7rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .voir-projet-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .projets-hero::before {
        animation: none;
    }
}

/* Focus states pour accessibilité */
.filter-btn:focus,
.voir-projet-btn:focus,
.search-input:focus,
.cta-button-primary:focus,
.cta-button-secondary:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

.projet-card:focus-within {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(238, 121, 0, 0.1);
}

/* ===== PRINT STYLES ===== */
@media print {
    .projets-filters,
    .projets-cta,
    .scroll-indicator,
    .cursor {
        display: none;
    }
    
    .projets-hero {
        height: auto;
        padding: 2rem 0;
        background: white;
        color: black;
    }
    
    .projets-bento-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .projet-card {
        background: white;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .projet-overlay {
        display: none;
    }
}