:root {
    --primary: #4ea1d3; --primary-dark: #3d8fb8; --secondary: #1a1d23;
    --accent: #00d9ff; --text: #e6e6e6; --text-muted: #9ca3af;
    --bg: #15181e; --card: #1e2129; --border: #2a2f3a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Header */
.site-header { background: linear-gradient(135deg, var(--secondary) 0%, var(--bg) 100%); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border); }
.main-nav { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; transition: color 0.3s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -8px; left: 0; right: 0; height: 2px; background: var(--primary); }
.mobile-menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn { padding: 0.75rem 1.5rem; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(78, 161, 211, 0.4); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Hero */
.hero { padding: 6rem 0; text-align: center; background: radial-gradient(ellipse at top, rgba(78, 161, 211, 0.15) 0%, transparent 50%); }
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; background: linear-gradient(135deg, #fff 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.version-badge { display: inline-block; background: rgba(78, 161, 211, 0.2); color: var(--primary); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem; }
.platforms { color: var(--text-muted); font-size: 0.875rem; }

/* Page Hero */
.page-hero { padding: 4rem 0; text-align: center; background: radial-gradient(ellipse at top, rgba(78, 161, 211, 0.1) 0%, transparent 50%); }
.page-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--primary); }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; }

/* Features */
.features-preview, .features-full { padding: 4rem 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: var(--card); padding: 2rem; border-radius: 12px; border: 1px solid var(--border); transition: transform 0.3s, border-color 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.feature-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-muted); }

/* Feature categories (features.html) */
.feature-category { margin-bottom: 3.5rem; }
.feature-category:last-child { margin-bottom: 0; }
.feature-category-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.feature-category-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(78, 161, 211, 0.12); color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }
.feature-category-header h2 { font-size: 1.5rem; color: var(--text); margin: 0; }
.feature-category-badge { margin-left: auto; background: rgba(0, 217, 255, 0.12); color: var(--accent); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) {
    .feature-category-header { flex-wrap: wrap; }
    .feature-category-badge { margin-left: 0; }
}

/* CTA */
.cta-section { padding: 4rem 0; }
.cta-box { background: var(--card); padding: 4rem 2rem; border-radius: 16px; border: 1px solid var(--border); text-align: center; }
.cta-box h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--primary); }
.cta-box p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }

/* Download */
.download-section { padding: 4rem 0; }
.download-card { background: var(--card); padding: 3rem; border-radius: 16px; border: 1px solid var(--border); text-align: center; }
.download-card h2 { font-size: 2rem; margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.download-meta { color: var(--text-muted); margin-bottom: 3rem; }
.download-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.download-item { padding: 2rem; background: var(--bg); border-radius: 12px; border: 1px solid var(--border); }
.download-item i { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }
.download-item h4 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.download-item p { color: var(--text-muted); margin-bottom: 1.5rem; }
.release-notes { background: var(--bg); padding: 2rem; border-radius: 12px; border-left: 4px solid var(--primary); text-align: left; margin-bottom: 2rem; }
.release-notes h4 { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.release-notes ul { list-style: none; padding-left: 1.5rem; }
.release-notes li { padding: 0.5rem 0; color: var(--text-muted); }
.download-notice { background: rgba(78, 161, 211, 0.1); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--primary); }
.download-notice p { margin: 0; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }

/* Contact */
.contact-section { padding: 4rem 0; }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; background: var(--card); padding: 3rem; border-radius: 16px; border: 1px solid var(--border); }
.contact-info h2 { color: var(--primary); margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-method { display: flex; align-items: center; gap: 1rem; }
.contact-method i { font-size: 1.5rem; color: var(--primary); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 8px; }
.contact-method strong { display: block; margin-bottom: 0.25rem; }
.contact-method a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.contact-method a:hover { color: var(--primary); }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 500; color: var(--text); }
.form-group input, .form-group textarea { padding: 0.75rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 1rem; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* Footer */
.site-footer { background: var(--secondary); padding: 3rem 0 1.5rem; margin-top: auto; border-top: 1px solid var(--border); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h4 { color: var(--primary); margin-bottom: 1rem; }
.footer-section p { color: var(--text-muted); font-size: 0.9rem; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.5rem; }
.footer-section a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-section a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom .fa-heart { color: var(--primary); }

/* Utilities & Responsive */
.text-center { text-align: center; }
.mt-3 { margin-top: 3rem; }
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .contact-container { grid-template-columns: 1fr; }
    .download-options { grid-template-columns: 1fr; }
}
/* Styles spécifiques pour les screenshots */
.feature-screenshot {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 1rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--border);
}

.feature-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.feature-content {
	width: 100%;
}

.feature-icon {
	font-size: 2rem;
	color: var(--primary);
	margin-bottom: 0.75rem;
}

.feature-card h3 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.feature-card p {
	color: var(--text-muted);
	line-height: 1.6;
	font-size: 0.9rem;
}

.release-notes {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 2rem 0;
}

.release-notes h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.release-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.release-loading i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.release-notes-modern {
	background: var(--card);
	border-radius: 12px;
	border: 1px solid var(--border);
	padding: 2rem;
	margin: 2rem 0;
}

.release-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border);
}

.release-title {
	margin: 0;
	font-size: 1.25rem;
	color: var(--text);
	font-weight: 600;
}

.release-version {
	display: inline-block;
	background: rgba(78, 161, 211, 0.15);
	color: var(--primary);
	padding: 0.25rem 0.75rem;
	border-radius: 12px;
	font-size: 0.8rem;
	font-weight: 500;
	margin-left: 0.75rem;
}

.release-date {
	color: var(--text-muted);
	font-size: 0.85rem;
	margin-top: 0.25rem;
}

.release-github-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-muted);
	text-decoration: none;
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.85rem;
	transition: all 0.2s;
}

.release-github-link:hover {
	color: var(--primary);
	border-color: var(--primary);
	background: rgba(78, 161, 211, 0.05);
}

/* Timeline des changements - design sobre */
.release-timeline {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.release-category {
	background: var(--bg);
	border-radius: 8px;
	padding: 1.25rem;
	border: 1px solid var(--border);
}

.release-category-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.release-category-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text);
	margin: 0;
}

.release-category-count {
	margin-left: auto;
	background: var(--bg-tertiary);
	color: var(--text-muted);
	padding: 0.15rem 0.6rem;
	border-radius: 10px;
	font-size: 0.75rem;
	font-weight: 500;
}

.release-items {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.release-item {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.3rem 0;
	color: var(--text);
	font-size: 0.9rem;
	line-height: 1.4;
}

.release-item-icon {
	color: var(--primary);
	margin-top: 0.2rem;
	flex-shrink: 0;
	font-size: 0.85rem;
}

.release-item code {
	background: var(--bg-tertiary);
	padding: 0.1rem 0.4rem;
	border-radius: 3px;
	font-family: 'Consolas', 'Monaco', monospace;
	font-size: 0.85rem;
	color: var(--accent);
}

/* État de chargement */
.release-loading {
	text-align: center;
	padding: 2rem;
	color: var(--text-muted);
}

.release-loading i {
	font-size: 1.5rem;
	color: var(--primary);
	margin-bottom: 0.75rem;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* =========================================
   UTILITIES & RESPONSIVE DESIGN
   ========================================= */
.text-center { text-align: center; }
.mt-3 { margin-top: 3rem; }

/* --- Tablette (max 1024px) --- */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .hero h1 { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .nav-links {
        display: none; /* Caché par défaut */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        gap: 1rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    }
    
    .nav-links.active {
        display: flex; /* Affiché quand la classe 'active' est ajoutée */
    }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        text-align: center;
    }

    .nav-links a.active::after { display: none; } /* Retire la barre de soulignement sur mobile */
    
    .mobile-menu-toggle { 
        display: block; 
        padding: 0.5rem; /* Zone de clic plus large pour le doigt */
    }

    /* Hero Section */
    .hero { padding: 4rem 0 3rem 0; }
    .hero h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto 2rem; }
    .btn { width: 100%; justify-content: center; }

    /* Grilles et Sections */
    .features-grid, .download-options { grid-template-columns: 1fr; }
    .contact-container { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
    
    .page-hero h1 { font-size: 2rem; }
    .download-card { padding: 2rem 1.5rem; }
}

/* --- Petit Mobile (max 480px) --- */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero h1 { font-size: 1.8rem; }
    .feature-card, .download-item { padding: 1.5rem; }
    .release-notes, .release-notes-modern { padding: 1.25rem; }
}
/* =========================================
   EFFET DE ZOOM AU SURVOL DES IMAGES
   ========================================= */

/* 1. On s'assure que le conteneur (carte) coupe ce qui dépasse pour garder les bords arrondis propres */
.feature-card, 
.download-item, 
.cta-box {
    overflow: hidden; 
}

/* 2. On cible les images à l'intérieur de ces conteneurs (et votre classe spécifique .feature-screenshot) */
.feature-card img, 
.download-item img, 
.feature-screenshot {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform; /* Optimisation des performances pour l'animation */
}

/* 3. L'effet de zoom au survol de la carte ou de l'image */
.feature-card:hover img, 
.download-item:hover img, 
.feature-screenshot:hover {
    transform: scale(1.20); /* Agrandissement de 8% (ajustez ce chiffre si besoin, ex: 1.05 ou 1.1) */
}

/* Optionnel : Si vous voulez que l'image ait aussi une ombre portée qui s'intensifie au survol */
.feature-card:hover .feature-screenshot,
.download-item:hover img {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Popup styles - Thème sombre Stellio */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: var(--card);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.popup-content .popup-icon {
    width: 64px;
    height: 64px;
    background: rgba(78, 161, 211, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.popup-content .popup-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.popup-content h2 {
    margin: 0 0 1rem 0;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
}

.popup-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.popup-content .btn-close {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.popup-content .btn-close:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 161, 211, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}