/* 
 * TimeVox - Styles principaux
 * Version nettoyée sans CSS mobile (déplacé dans responsive.css)
 */

:root {
    --primary-black: #1a1a1a;
    --accent-orange: #ff6b35;
    --vintage-cream: #f4f1eb;
    --dark-grey: #333333;
    --light-grey: #f8f8f8;
    --gradient-gold: linear-gradient(135deg, #ffd700, #ffb347);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.3);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    background: var(--vintage-cream);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.title-xl { font-size: 3.5rem; }
.title-lg { font-size: 2.5rem; }
.title-md { font-size: 2rem; }
.title-sm { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #e85a2e;
}

/* Header & Navigation */
.header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-orange);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: bold;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.8rem;
    color: white;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    display: inline-block;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
}

.nav-menu a.active {
    background: var(--accent-orange);
}

.donate-btn {
    background: linear-gradient(135deg, #ffd700, #ffb347) !important;
    color: var(--primary-black) !important;
    font-weight: 700 !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
    border: none !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.donate-btn:hover {
    background: linear-gradient(135deg, #ffed4e, #ffc947) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5) !important;
    color: var(--primary-black) !important;
}

/* Bouton menu mobile - Masqué par défaut, affiché via responsive.css */
.mobile-menu-toggle {
    display: none;
}

/* Navigation mobile - Masquée par défaut, gérée via responsive.css */
.mobile-nav {
    display: none;
}

/* Boutons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: #e85a2e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-black);
    border: 2px solid var(--primary-black);
}

.btn-secondary:hover {
    background: var(--primary-black);
    color: white;
    transform: translateY(-3px);
}

.btn-ghost {
    background: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
}

.btn-ghost:hover {
    background: var(--accent-orange);
    color: white;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0 6rem 0;
    scroll-margin-top: 120px;
}

.section:first-of-type {
    padding-top: 10rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-grey);
    max-width: 600px;
    margin: 0 auto;
}

/* Skip to main content */
.skip-to-main {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--accent-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: all 0.3s ease;
}

.skip-to-main:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    overflow: visible;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-orange);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.card-description {
    color: var(--dark-grey);
    line-height: 1.6;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--vintage-cream) 0%, #e8e2d5 100%);
    padding-top: 120px;
    padding-bottom: 4rem;
    overflow: hidden;
    position: relative;
}

.hero::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="25" r="0.5" fill="%23000" opacity="0.02"/><circle cx="50" cy="75" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-black);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--dark-grey);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Backgrounds */
.bg-white { background: white; }
.bg-light { background: var(--light-grey); }
.bg-dark { background: var(--primary-black); color: white; }
.bg-gradient { background: var(--gradient-gold); }

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Footer */
.footer {
    background: var(--primary-black);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ccc;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    color: #999;
}

/* Code blocks */
.code-block {
    background: var(--primary-black);
    color: #00ff00;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    position: relative;
    margin: 2rem 0;
}

.code-block::before {
    content: '$ ';
    color: var(--accent-orange);
}

.copy-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--accent-orange);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour les pages spécifiques */

/* Hero variants */
.hero-install,
.hero-blog,
.hero-contact {
    background: linear-gradient(135deg, var(--vintage-cream) 0%, #e8e2d5 100%);
    padding: 150px 0 4rem 0;
    text-align: center;
}

.hero-install-content,
.hero-blog-content,
.hero-contact-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Progress indicator pour installation */
.install-progress {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--light-grey);
    border: 3px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Requirements grid pour installation */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.requirement-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.requirement-card.essential {
    border-color: #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.1);
}

.requirement-card.recommended {
    border-color: #f39c12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.1);
}

.requirement-card.optional {
    border-color: #95a5a6;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.1);
}

.requirement-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.requirement-card h3 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

/* Message boxes */
.tip-box,
.warning-box,
.success-box {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.tip-box {
    background: #e8f4fd;
    border-color: #1e90ff;
    color: #1e5a8a;
}

.warning-box {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.success-box {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* Notifications pour common.js */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-width: 300px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-message {
    flex: 1;
}

.title-wrapper {
    display: flex;
    align-items: baseline; /* aligne le texte sur la même ligne */
    gap: 8px; /* espace entre le titre et la version */
}
.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: 0.5rem;
}