/* ==========================================================================
   VeoBackup - Feuille de style principale
   Conception sobre, légère, accessible et sécurisée (Zéro dépendance externe)
   ========================================================================== */

:root {
    --primary: #15803d;
    --primary-hover: #166534;
    --primary-light: #dcfce7;
    --dark: #0f172a;
    --slate: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --radius: 10px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--slate);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* En-tête / Barre de navigation */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrap img {
    height: 42px;
    width: auto;
    display: block;
}

.tag-version {
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 3px 8px;
    border-radius: 20px;
}

.btn-header {
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.btn-header:hover {
    background: var(--primary-hover);
}

/* Hero Section */
.hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 24px 50px;
    text-align: center;
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero p.lead {
    font-size: 18px;
    color: var(--slate);
    max-width: 740px;
    margin: 0 auto 32px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.btn-download {
    background: var(--primary);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    padding: 15px 36px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 128, 61, 0.35);
}

.download-meta {
    font-size: 12px;
    color: var(--muted);
}

.sha256-box {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 11px;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 6px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

.badge-pill {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-pill span {
    color: var(--primary);
    font-weight: 700;
}

/* Fonctionnalités & Captures */
.features {
    max-width: 1060px;
    margin: 20px auto 70px;
    padding: 0 24px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.feature-row.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-text h2 {
    font-size: 23px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
    line-height: 1.3;
}

.feature-text p {
    font-size: 15px;
    color: var(--slate);
    margin-bottom: 14px;
}

.feature-text ul {
    list-style: none;
    margin-top: 16px;
}

.feature-text ul li {
    font-size: 14px;
    color: var(--slate);
    padding-left: 22px;
    position: relative;
    margin-bottom: 8px;
}

.feature-text ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.feature-img-wrap {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-img-wrap:hover {
    transform: scale(1.015);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.feature-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.img-caption {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    padding: 6px;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

/* Grille Avantages */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    max-width: 1060px;
    margin: 0 auto 70px;
    padding: 0 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.card-icon {
    font-size: 24px;
    margin-bottom: 12px;
    display: inline-block;
}

.card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.card p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
}

/* Section Téléchargement Bas */
.cta-bottom {
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 24px;
    text-align: center;
}

.cta-bottom h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 12px;
}

.cta-bottom p {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 24px;
}

/* Pied de page */
footer {
    background: var(--bg-light);
    padding: 36px 24px;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-links a {
    color: var(--slate);
    margin-left: 18px;
    text-decoration: underline;
    cursor: pointer;
}

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

/* Modale Mentions Légales */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1000;
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #ffffff;
    border-radius: var(--radius);
    max-width: 760px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 36px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
}

.modal-box h2 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 16px;
}

.modal-box h3 {
    font-size: 15px;
    color: var(--dark);
    margin: 20px 0 8px;
}

.modal-box p, .modal-box li {
    font-size: 13.5px;
    color: var(--slate);
    line-height: 1.6;
}

.modal-box ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

/* Lightbox Image Zoom */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 92%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Responsive */
@media (max-width: 820px) {
    .hero h1 { font-size: 28px; }
    .feature-row, .feature-row.reverse {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
    .feature-row.reverse .feature-img-wrap {
        order: -1;
    }
}
