/* ============================================
   JUKEBOX-CAB - STYLES PRINCIPAUX
   ============================================ */

/* Reset & Variables */
:root {
    /* Couleurs principales (thème JukeBox-Cab) */
    --primary-gradient-start: #1e3c72;
    --primary-gradient-end: #2a5298;
    --accent-color: #4a90e2;
    --accent-hover: #5ba3ff;
    
    /* Couleurs secondaires */
    --dark-bg: #0f1922;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.1);
    
    /* Texte */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typographie */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    
    /* Bordures */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    /*padding: 0;
    box-sizing: border-box;*/
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   UTILITAIRES
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin: 0 auto var(--spacing-md);
    border-radius: 2px;
}

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

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #357abd);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    font-size: 1.2em;
}

.btn-subtext {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.btn-paypal {
    background: #0070ba;
    color: white;
}

.btn-paypal:hover {
    background: #005a9c;
    transform: translateY(-2px);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 25, 34, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--spacing-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.9) 0%, 
        rgba(42, 82, 152, 0.8) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-title {
    margin-bottom: var(--spacing-md);
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, #cce7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.info-separator {
    opacity: 0.5;
}

.hero-visual {
    animation: fadeInRight 1s ease;
}

.screen-mockup {
    position: relative;
    perspective: 1000px;
}

.screen-frame {
    background: var(--dark-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform: rotateY(-10deg);
    transition: transform var(--transition-slow);
}

.screen-frame:hover {
    transform: rotateY(0deg);
}

.screen-content {
    background: linear-gradient(135deg, #1a2332, #2d3748);
    border-radius: var(--radius-md);
    padding: 2rem;
    min-height: 400px;
}

.mockup-animation {
    width: 100%;
    height: 100%;
}

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

.album-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--accent-color), #2d5a8f);
    border-radius: var(--radius-sm);
    animation: pulse 2s ease-in-out infinite;
    overflow: hidden;
    position: relative;
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-item:nth-child(2) {
    animation-delay: 0.2s;
}

.album-item:nth-child(3) {
    animation-delay: 0.4s;
}

.album-item:nth-child(4) {
    animation-delay: 0.6s;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, transparent, var(--accent-color));
    border-radius: 2px;
}

/* ============================================
   PRÉSENTATION
   ============================================ */

.presentation {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.presentation-content {
    max-width: 900px;
    margin: 0 auto;
}

.presentation-text p {
    margin-bottom: var(--spacing-sm);
}

.presentation-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.highlight-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.highlight-item:hover {
    background: var(--card-hover);
    transform: translateY(-5px);
}

.highlight-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.highlight-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.highlight-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   FONCTIONNALITÉS
   ============================================ */

.features {
    background: rgba(255, 255, 255, 0.02);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
}

.feature-card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.feature-card:hover {
    background: var(--card-hover);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.feature-link:hover {
    color: var(--accent-hover);
    transform: translateX(5px);
}

/* ============================================
   GALERIE
   ============================================ */

.gallery {
    background: rgba(0, 0, 0, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-normal);
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem;
    color: white;
    text-align: center;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.gallery-placeholder p {
    font-size: 1.25rem;
    font-weight: 500;
}

.gallery-placeholder small {
    color: var(--text-muted);
}

.gallery-note {
    text-align: center;
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================
   TÉLÉCHARGEMENT
   ============================================ */

.download {
    background: rgba(255, 255, 255, 0.02);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.download-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.download-header {
    background: linear-gradient(135deg, var(--accent-color), #2d5a8f);
    padding: var(--spacing-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.download-icon {
    font-size: 4rem;
}

.download-header h3 {
    font-size: 2rem;
    font-weight: 500;
}

.version-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.download-body {
    padding: var(--spacing-md);
}

.requirements-list {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.requirements-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.requirements-list li:last-child {
    border-bottom: none;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.download-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
}

/* Statistiques de téléchargement */
.download-stats-box {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.8) 0%, rgba(20, 20, 40, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.download-stats-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.download-stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: var(--spacing-lg);
}

.download-stats-separator {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.download-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    flex: 1;
}

/* Version courante - Vert */
.download-stat-item.stat-current {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(46, 204, 113, 0.05) 100%);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.download-stat-item.stat-current .stat-value {
    color: #2ecc71;
}

.download-stat-item.stat-current .stat-version {
    color: #2ecc71;
}

/* Total - Bleu */
.download-stat-item.stat-total {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(74, 144, 226, 0.05) 100%);
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.download-stat-item.stat-total .stat-value {
    color: #4a90e2;
}

.download-stat-item.stat-total .stat-version {
    color: #4a90e2;
}

.download-stat-item .stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.download-stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.download-stat-item .stat-version {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-info {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.download-info h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

.download-info ol {
    margin-left: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.download-info li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.download-info code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* ============================================
   SOUTIEN PAYPAL
   ============================================ */

.support {
    background: rgba(0, 0, 0, 0.2);
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.support-list {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.support-list li {
    padding: 0.75rem 0;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.support-action {
    display: flex;
    justify-content: center;
}

.paypal-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.paypal-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
}

.paypal-card h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.paypal-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.paypal-note {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-version {
    margin-top: 0.5rem;
    font-weight: 500;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.25rem;
}

/* ============================================
   BOUTON RETOUR EN HAUT
   ============================================ */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-hover);
    transform: translateY(-5px);
}