/* Applications Page - Styles supplémentaires */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.95;
}

/* App Detail Section */
.app-detail {
    padding: 100px 0;
}

.app-detail.alt-bg {
    background: var(--bg-color);
}

.app-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.app-detail-content.reverse {
    direction: rtl;
}

.app-detail-content.reverse > * {
    direction: ltr;
}

.app-detail-text h2 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 15px;
}

.app-tagline {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
}

.app-description-full {
    margin-bottom: 40px;
}

.app-description-full p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-color);
}

.app-detail-text h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.features-list,
.use-cases-list {
    list-style: none;
    margin-bottom: 40px;
}

.features-list li {
    padding: 15px 0;
    padding-left: 30px;
    border-left: 3px solid var(--secondary-color);
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    padding: 15px 15px 15px 30px;
}

.features-list li strong {
    color: var(--primary-color);
}

.use-cases-list li {
    padding: 10px 0 10px 25px;
    position: relative;
}

.use-cases-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 18px;
}

.app-cta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* Visual Section */
.screenshot-frame {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.app-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 25px 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* Comparison Section */
.comparison-section {
    background: white;
    padding: 80px 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.comparison-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tbody tr:hover {
    background: #e7f3ff;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.video-modal-close:hover {
    color: var(--secondary-color);
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* ========================================
   LIGHTBOX STYLES
   ======================================== */

/* Curseur zoom sur les images cliquables */
.lightbox-trigger {
    cursor: zoom-in;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-trigger:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Container principal de la lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    cursor: zoom-out;
}

/* État actif avec fond sombre progressif */
.lightbox.active {
    display: flex;
    background-color: rgba(0, 0, 0, 0.80);
}

/* Image dans la lightbox */
.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

/* Animation d'apparition progressive de l'image */
.lightbox.active .lightbox-image {
    opacity: 1;
    transform: scale(1);
}

/* Bouton de fermeture */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.lightbox-close:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.lightbox-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Responsive */
@media (max-width: 1200px) {
    .app-detail-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }
    
    .app-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .app-detail-content.reverse {
        direction: ltr;
    }
    
    .app-detail-text h2 {
        font-size: 28px;
    }
    
    .app-tagline {
        font-size: 18px;
    }
    
    .app-cta {
        flex-direction: column;
    }
    
    .app-stats {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
    }
    
    /* Lightbox responsive */
    .lightbox-image {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
}
