/* ===================================
   STYLES POUR PAGES DE PROJETS
   Design moderne et professionnel
   =================================== */

/* Styles spécifiques pour les pages de projets */
.project-page {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Navigation adaptée pour pages de projets */
.mobile-nav-top .nav-back,
.mobile-nav-top .nav-actions {
    display: flex;
    align-items: center;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.github-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.github-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.desktop-sidebar .back-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.desktop-sidebar .back-link:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.project-nav h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.desktop-sidebar .github-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-800);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin: 1rem;
}

.desktop-sidebar .github-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section pour projets */
.project-hero {
    padding: 6rem 3rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.project-header {
    position: relative;
    z-index: 2;
}

.project-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 87, 51, 0.1);
    color: var(--primary-color);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.project-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

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

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

/* Mockups et images */
.project-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg);
}

.phone-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #333;
    border-radius: 30px;
    pointer-events: none;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #666;
    border-radius: 3px;
}

.phone-frame::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 2px solid #666;
    border-radius: 50%;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.browser-mockup {
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(5deg);
    transition: var(--transition);
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.browser-header {
    background: #e0e0e0;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.browser-buttons {
    display: flex;
    gap: 0.5rem;
}

.browser-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close {
    background: #ff5f57;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #28ca42;
}

.browser-url {
    flex: 1;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.browser-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sections de contenu */
.project-overview {
    padding: 4rem 3rem;
    background: white;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
}

.problem-solution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.problem,
.solution {
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.problem {
    background: #fef2f2;
    border-color: #ef4444;
}

.problem h3 {
    color: #dc2626;
}

.solution {
    background: #f0fdf4;
    border-color: #22c55e;
}

.solution h3 {
    color: #16a34a;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.highlight-item:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.highlight-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Statistiques de projet */
.project-stats {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: fit-content;
}

.project-stats h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
}

.performance-metrics h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.metric {
    margin-bottom: 1rem;
}

.metric span {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    transition: width 2s ease-in-out;
}

/* Section des fonctionnalités */
.features-section {
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.features-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--gray-600);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
}

.feature-card li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
    position: relative;
    padding-left: 1.5rem;
}

.feature-card li:last-child {
    border-bottom: none;
}

.feature-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Section technologie */
.technology-section {
    padding: 4rem 3rem;
    background: white;
}

.architecture-overview {
    margin-bottom: 4rem;
}

.architecture-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.arch-layer {
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.arch-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.frontend-layer {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8fafc 100%);
}

.frontend-layer::before {
    background: #2196f3;
}

.backend-layer {
    background: linear-gradient(135deg, #e8f5e8 0%, #f8fafc 100%);
}

.backend-layer::before {
    background: #4caf50;
}

.database-layer {
    background: linear-gradient(135deg, #fff3e0 0%, #f8fafc 100%);
}

.database-layer::before {
    background: #ff9800;
}

.services-layer {
    background: linear-gradient(135deg, #fce4ec 0%, #f8fafc 100%);
}

.services-layer::before {
    background: #e91e63;
}

.arch-layer h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--gray-700);
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

.tech-details {
    margin-top: 3rem;
}

.tech-category {
    margin-bottom: 2rem;
}

.tech-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tech-category h3 i {
    color: var(--primary-color);
}

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-item {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.tech-item:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.tech-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.tech-item p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Section screenshots */
.screenshots-section {
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

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

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.screenshot-info {
    margin-top: 1.5rem;
}

.screenshot-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.screenshot-info p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Section démo */
.demo-section {
    padding: 4rem 3rem;
    background: white;
}

.demo-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.demo-video,
.demo-preview {
    position: relative;
}

.video-placeholder {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed var(--gray-300);
    transition: var(--transition);
}

.video-placeholder:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 87, 51, 0.05) 0%, var(--gray-100) 100%);
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.video-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.video-placeholder p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.play-btn {
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.demo-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.demo-features h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

.demo-checklist {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.demo-section-check h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-section-check h4 i {
    color: var(--primary-color);
}

.demo-checklist ul {
    list-style: none;
    padding: 0;
}

.demo-checklist li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-checklist li i {
    color: var(--primary-color);
}

/* Sections performance et sécurité */
.performance-section {
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.performance-metrics h2,
.security-features h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.performance-metrics h2 i,
.security-features h2 i {
    color: var(--primary-color);
}

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

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.metric-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.metric-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.metric-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.security-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.security-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.security-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.security-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.security-item p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Call to Action */
.project-cta {
    padding: 4rem 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e84118 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-actions .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-actions .btn-primary:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.cta-actions .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-actions .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Responsive Design pour pages de projets */
@media (max-width: 1200px) {
    .project-hero {
        padding: 4rem 2rem;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .project-hero {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .phone-mockup,
    .browser-mockup {
        transform: none;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .architecture-diagram {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 1.5rem;
    }
    
    .project-hero {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .project-actions {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-navigation {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .project-title {
        font-size: 2rem;
    }
    
    .project-subtitle {
        font-size: 1.1rem;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .demo-checklist {
        gap: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn-primary,
    .cta-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}