/**
 * CSS simplifié pour la page About - ChordMate
 * Utilise les classes Bootstrap et variables CSS existantes
 * Compatible thème clair et sombre
 */

/* ========================================
   Hero Section simplifié
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="music" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23music)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-note {
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
    animation: float 3s ease-in-out infinite;
}

.music-note-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.music-note-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.music-note-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.chord-diagram-hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chord-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.fret-board {
    position: relative;
    width: 120px;
    height: 80px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
}

.string {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    left: 0;
}

.string-1 { top: 15px; }
.string-2 { top: 30px; }
.string-3 { top: 45px; }
.string-4 { top: 60px; }

.finger {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.finger-1 { top: 25px; left: 30px; }
.finger-2 { top: 40px; left: 60px; }

/* ========================================
   Sections générales
   ======================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bs-primary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--bs-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Cartes de fonctionnalités - Utilise Bootstrap
   ======================================== */
.features-section {
    padding: 5rem 0;
    background: var(--bs-light);
}

.feature-card-modern {
    background: var(--bs-body-bg);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--bs-border-color);
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bs-primary);
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.feature-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

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

.feature-card-modern h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

.feature-card-modern p {
    color: var(--bs-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========================================
   Section ChordPro
   ======================================== */
.about-section-modern {
    padding: 5rem 0;
}

.content-block {
    padding-right: 3rem;
}

.content-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--bs-body-color);
}

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

.advantage-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bs-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: var(--bs-secondary-bg);
    transform: translateX(5px);
}

.advantage-item i {
    font-size: 1.2rem;
}

/* ========================================
   Showcase de code - Utilise Bootstrap
   ======================================== */
.code-showcase {
    background: var(--bs-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.code-header {
    background: var(--bs-secondary);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-title {
    color: var(--bs-light);
    font-weight: 500;
}

.code-controls {
    display: flex;
    gap: 0.5rem;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bs-secondary);
}

.control-dot:nth-child(1) { background: #dc3545; }
.control-dot:nth-child(2) { background: #ffc107; }
.control-dot:nth-child(3) { background: #198754; }

.code-content {
    padding: 1.5rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 0.5rem;
}

.code-keyword {
    color: #81e6d9;
}

.code-string {
    color: #feb2b2;
}

.code-comment {
    color: #718096;
    font-style: italic;
}

.code-chord {
    color: #fbb6ce;
    font-weight: bold;
}

/* ========================================
   Section vocale - Utilise Bootstrap
   ======================================== */
.vocal-section {
    padding: 5rem 0;
    background: var(--bs-light);
}

.vocal-table-container {
    background: var(--bs-body-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vocal-table {
    width: 100%;
    border-collapse: collapse;
}

.vocal-table th {
    background: var(--bs-dark);
    color: var(--bs-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.vocal-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.category-header {
    background: var(--bs-secondary);
    color: var(--bs-light);
    font-weight: 600;
}

.category-header td {
    padding: 0.75rem 1rem;
    text-align: center;
}

.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.category-badge.rhythm {
    background: var(--bs-success);
}

.category-badge.pitch {
    background: var(--bs-primary);
}

.category-badge.dynamics {
    background: var(--bs-warning);
}

.vocal-example-card {
    background: var(--bs-body-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.chordpro-example-modern {
    background: var(--bs-light);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    margin: 1rem 0;
}

.tip-box {
    background: var(--bs-info-bg-subtle);
    border: 1px solid var(--bs-info-border-subtle);
    border-radius: 8px;
    padding: 1rem;
    color: var(--bs-info);
    font-size: 0.9rem;
}

/* ========================================
   Fonctionnalités avancées - Utilise Bootstrap
   ======================================== */
.advanced-features {
    padding: 5rem 0;
}

.feature-detail-card {
    background: var(--bs-body-bg);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--bs-border-color);
    display: flex;
    gap: 1.5rem;
}

.feature-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.feature-detail-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

.feature-detail-content p {
    color: var(--bs-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.feature-list li {
    padding: 0.5rem 0;
    color: var(--bs-body-color);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bs-success);
    font-weight: bold;
}

/* ========================================
   Section conseils - Utilise Bootstrap
   ======================================== */
.tips-section {
    padding: 5rem 0;
    background: var(--bs-light);
}

.tip-card {
    background: var(--bs-body-bg);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--bs-border-color);
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bs-border-color);
}

.tip-header i {
    font-size: 1.5rem;
    color: var(--bs-primary);
}

.tip-header h4 {
    margin: 0;
    color: var(--bs-body-color);
    font-weight: 600;
}

.tip-content ul {
    list-style: none;
    padding: 0;
}

.tip-content li {
    padding: 0.5rem 0;
    color: var(--bs-body-color);
    position: relative;
    padding-left: 1.5rem;
}

.tip-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--bs-primary);
    font-weight: bold;
}

/* ========================================
   Section projet - Utilise Bootstrap
   ======================================== */
.project-section {
    padding: 5rem 0;
}

.project-content {
    padding-right: 3rem;
}

.project-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--bs-body-color);
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--bs-secondary);
    margin-bottom: 2rem;
}

.tech-stack h5,
.features-highlight h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

.tech-grid,
.features-grid {
    display: grid;
    gap: 1rem;
}

.tech-item,
.feature-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bs-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-item:hover,
.feature-highlight-item:hover {
    background: var(--bs-secondary-bg);
    transform: translateX(5px);
}

.tech-item i {
    font-size: 1.2rem;
    color: var(--bs-primary);
}

.feature-highlight-item i {
    font-size: 1.1rem;
}

.project-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--bs-body-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--bs-border-color);
    text-align: center;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    color: white;
}

.info-card.open-source .card-icon {
    background: var(--bs-success);
}

.info-card.feedback .card-icon {
    background: var(--bs-warning);
}

.info-card.community .card-icon {
    background: var(--bs-info);
}

.info-card h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--bs-body-color);
}

.info-card p {
    color: var(--bs-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-detail-card {
        flex-direction: column;
        text-align: center;
    }
    
    .content-block {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .project-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

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

.feature-card-modern,
.feature-detail-card,
.tip-card,
.info-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card-modern:nth-child(1) { animation-delay: 0.1s; }
.feature-card-modern:nth-child(2) { animation-delay: 0.2s; }
.feature-card-modern:nth-child(3) { animation-delay: 0.3s; }
.feature-card-modern:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   Illustrations Undraw
   ======================================== */
.hero-illustration {
    filter: brightness(0) invert(1); /* Rend l'illustration blanche */
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hero-illustration:hover {
    opacity: 1;
    transform: scale(1.05);
}

.section-illustration {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.section-illustration:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* Couleurs pour les illustrations selon le thème */
[data-bs-theme="dark"] .hero-illustration {
    filter: brightness(0) invert(1); /* Blanc en mode sombre */
}

[data-bs-theme="light"] .hero-illustration {
    filter: brightness(0) invert(0.2); /* Gris foncé en mode clair */
}

/* Styles spécifiques pour la page À propos */

.about-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

.about-header .display-4 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.about-header .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.feature-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    border-radius: 0.75rem;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.feature-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.feature-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.tech-item {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.tech-item:hover {
    border-color: #007bff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 123, 255, 0.075);
}

.source-card {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.source-card:hover {
    border-color: #ffc107;
    box-shadow: 0 0.25rem 0.5rem rgba(255, 193, 7, 0.1);
}

.license-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.version-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: #6c757d;
    color: white;
}



/* Animations pour les icônes */
.feature-item i,
.tech-item i {
    transition: transform 0.2s ease;
}

.feature-item:hover i,
.tech-item:hover i {
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .about-header .display-4 {
        font-size: 2.5rem;
    }
    
    .about-header .lead {
        font-size: 1.1rem;
    }
    
    .contribution-section {
        padding: 1rem;
    }
}

/* Dark mode support */
[data-bs-theme="dark"] .source-card {
    border-color: #495057;
    background-color: #343a40;
}

[data-bs-theme="dark"] .source-card:hover {
    border-color: #ffc107;
    background-color: #3a4046;
}



[data-bs-theme="dark"] .tech-item {
    border-color: #495057;
    background-color: #343a40;
}

[data-bs-theme="dark"] .tech-item:hover {
    border-color: #007bff;
    background-color: #3a4046;
}