/* CSS pour la page Diagbox - PSA-DIAG */
/* Respecte le thème existant : rouge (#9f0000, #760202), noir (#282828, #000), blanc */

:root {
    --primary-red: #9f0000;
    --primary-red-dark: #760202;
    --dark-bg: #282828;
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #666666;
    --gray-dark: #333333;
    --success-green: #28a745;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --radius: 8px;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: rgba(40, 40, 40, 0.95);
    padding: 8px 12px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.5;
    border: none;
    background: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn img {
    display: block;
    border-radius: 2px;
}

.lang-btn:hover {
    transform: scale(1.2);
}

.lang-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .lang-switcher {
        top: auto;
        bottom: 20px;
        right: 15px;
    }
}

/* Section Héro */
.hero-section {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--gray-dark) 100%);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--white);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0.25rem;
}

.badge-free {
    background: var(--success-green);
    color: var(--white);
}

.badge-windows {
    background: var(--primary-red);
    color: var(--white);
}

/* Bouton CTA */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-red);
    color: var(--white) !important;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    margin: 1.25rem 0;
}

.cta-button:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(159, 0, 0, 0.4);
    text-decoration: none;
}

.cta-button i {
    margin-right: 0.5rem;
}

/* Texte d'info */
.info-text {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.hero-section .info-text {
    color: #cccccc;
}

/* Sections en cartes */
.card-section {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.card-section h2 {
    margin-bottom: 1rem;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-dark);
    font-size: 1.3rem;
}

.card-section h2 i {
    color: var(--primary-red);
}

/* Grille de captures d'écran */
.screenshots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.screenshot-item {
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
    border: 2px solid #e0e0e0;
}

.screenshot-item:hover {
    transform: scale(1.02);
    border-color: var(--primary-red);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

.main-screenshot {
    grid-column: 1 / -1;
}

/* Vidéo responsive */
.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: var(--radius);
    background: var(--dark-bg);
}

.video-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: none;
}

/* Badge de sécurité */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid var(--success-green);
    border-radius: var(--radius);
    color: var(--success-green);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.security-badge:hover {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success-green);
    text-decoration: none;
}

/* Liste des fonctionnalités */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-item i {
    color: var(--white);
    font-size: 0.9rem;
    background: var(--primary-red);
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item strong {
    color: var(--gray-dark);
    display: block;
    margin-bottom: 0.25rem;
}

.feature-item .info-text {
    margin: 0;
    font-size: 0.85rem;
}

/* Feature warning style */
.feature-item.feature-warning {
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%);
    border-color: #f0ad4e;
}

.feature-item.feature-warning i {
    background: #f0ad4e;
    color: var(--white);
}

/* Ajustements responsive */
@media (max-width: 600px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .card-section {
        padding: 1rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}
