/* ============================================
   RADARSEC HOMEPAGE - STYLES
   Basé sur la maquette avec annotations
   ============================================ */

/* === RESET ET BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

:root {
    /* Couleurs principales */
    --bg-dark-start: #101828;
    --bg-dark-end: #030616;
    --border-blue-gray: #363a4d;
    --primary-red: #ef4444;
    --text-white: #ffffff;
    --text-gray: #9ca3af;

    /* Espacement */
    --container-width: 1200px;
    --section-padding: 80px 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, var(--bg-dark-start) 0%, var(--bg-dark-end) 100%);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === HEADER (ancien, conservé pour compatibilité) === */
.main-header {
    width: 100%;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(16, 24, 40, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header > .container {
    max-width: 100%;
    padding: 0;
}

/* === NAVBAR HP-NAV (pages publiques: demo, contact, etc.) === */
.hp-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 48px;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(16, 24, 40, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: height 0.3s ease, padding 0.3s ease;
}
.hp-nav.scrolled {
    height: 50px;
    background: rgba(16, 24, 40, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.hp-nav.scrolled .hp-nav-brand img {
    height: 26px; max-height: 26px;
    transition: height 0.3s ease;
}
.hp-nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hp-nav-brand img { height: 32px; max-height: 32px; width: auto; max-width: 180px; object-fit: contain; }
.hp-nav-brand a { text-decoration: none; color: inherit; }
.hp-nav-links { display: flex; align-items: center; gap: 20px; }
.hp-nav-links a {
    font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7);
    text-decoration: none; transition: color 0.2s; white-space: nowrap;
}
.hp-nav-links a:hover { color: #ffffff; }
.hp-nav-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 500;
    background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3);
    color: #10b981; white-space: nowrap;
}
.hp-nav-badge i { font-size: 8px; }
.hp-nav .btn-login {
    padding: 8px 18px;
    background: rgba(255,255,255,0.08); color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; font-weight: 500; font-size: 14px;
    cursor: pointer; transition: all 0.25s;
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none;
}
.hp-nav .btn-login:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}
.hp-nav .btn-nav-cta {
    padding: 8px 18px;
    background: #ef4444; color: #fff !important;
    border: 1px solid #ef4444;
    border-radius: 8px; font-weight: 500; font-size: 14px;
    cursor: pointer; transition: all 0.25s;
    text-decoration: none;
    display: inline-flex; align-items: center;
}
.hp-nav .btn-nav-cta:hover { opacity: 0.85; }

/* Hamburger button */
.hp-nav-toggle {
    display: none !important;
    background: none; border: none; cursor: pointer;
    width: 44px; height: 44px;
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
    z-index: 101;
}
@media (max-width: 1024px) {
    .hp-nav-toggle { display: flex !important; }
}
.hp-nav-toggle span {
    display: block; width: 24px; height: 3px;
    background: #fff; border-radius: 2px;
    transition: all 0.3s;
    pointer-events: none;
}
.hp-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hp-nav-toggle.active span:nth-child(2) { opacity: 0; }
.hp-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile menu overlay */
.hp-nav-mobile {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(10, 15, 30, 0.97);
    backdrop-filter: blur(20px);
    z-index: 99;
    flex-direction: column; align-items: center;
    padding: 24px 24px;
    gap: 8px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}
.hp-nav-mobile.active { display: flex; }
.hp-nav-mobile a {
    font-size: 17px; font-weight: 500; color: rgba(255,255,255,0.8);
    text-decoration: none; padding: 14px 24px; width: 100%; text-align: center;
    border-radius: 10px; transition: all 0.2s;
}
.hp-nav-mobile a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.hp-nav-mobile .btn-login {
    margin-top: 16px; padding: 14px 24px;
    background: rgba(255,255,255,0.08); color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px; font-weight: 500; font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; text-align: center;
}
.hp-nav-mobile .btn-nav-cta {
    margin-top: 8px; padding: 14px 24px;
    background: #ef4444; color: #fff !important;
    border: 1px solid #ef4444;
    border-radius: 10px; font-weight: 600; font-size: 16px;
    width: 100%; text-align: center;
}

@media (max-width: 1024px) {
    .hp-nav { padding: 0 20px; }
    .hp-nav-links { display: none; }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
}

.logo img {
    width: 32px;
    height: 32px;
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-red);
}

.connexion-link {
    color: var(--text-gray) !important;
}

/* === HEADER ACTIONS === */
.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.login-button {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--border-blue-gray);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.login-button:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* === BOUTONS === */
.cta-button, .demo-button {
    background: var(--primary-red);
    color: var(--text-white);
    border: 2px solid var(--primary-red);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* Effet hover sur les boutons "Demander une démo" */
.demo-button:hover {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.demo-button-large {
    background: var(--primary-red);
    color: var(--text-white);
    border: 2px solid var(--primary-red);
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.demo-button-large:hover {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.secondary-button {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--border-blue-gray);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-button:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* === HERO SECTION === */
.hero-section {
    padding: var(--section-padding);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.breadcrumb {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(54, 58, 77, 0.5);
    border: 1px solid var(--border-blue-gray);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-gray);
}

/* Aperçu de l'app avec contour rouge 2px */
.app-preview {
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    padding: 8px;
    background: rgba(16, 24, 40, 0.5);
}

.app-preview img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* === DASHBOARD SECTION === */
.dashboard-section {
    padding: 0;
}


h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Blocs avec contour bleu/gris #363a4d sur 2px */
.feature-card {
    background: rgba(16, 24, 40, 0.5);
    border: 2px solid var(--border-blue-gray);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
}

/* Effet hover rouge 2px sur les feature cards */
.feature-card:hover {
    border-color: var(--primary-red);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
}

/* Aperçu d'une fonction différenciante */
.highlighted-card {
    border: 2px solid var(--primary-red);
}

/* === STATS SECTION === */
.stats-section {
    margin-top: 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(16, 24, 40, 0.5);
    border: 2px solid var(--border-blue-gray);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.stat-card h4 {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 12px;
    color: var(--text-gray);
}

/* Aperçu d'une fonction différenciante avec contour rouge */
.different-function {
    border: 2px solid var(--primary-red);
}

.cve-list {
    background: rgba(16, 24, 40, 0.5);
    border: 2px solid var(--border-blue-gray);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.cve-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cve-item:last-child {
    border-bottom: none;
}

.cve-id {
    font-family: monospace;
    color: var(--text-white);
}

.cve-severity {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.cve-severity.critical {
    background: rgba(239, 68, 68, 0.2);
    color: var(--primary-red);
}

.cve-severity.high {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

.cve-severity.medium {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
}

.badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.badge {
    background: rgba(16, 24, 40, 0.8);
    border: 1px solid var(--border-blue-gray);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-gray);
}

.compliance-note {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    padding: 20px;
    color: var(--primary-red);
    font-size: 14px;
}

.compliance-note p {
    margin-top: 8px;
    color: var(--text-gray);
    font-size: 13px;
}

.additional-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.feature-block {
    background: rgba(16, 24, 40, 0.5);
    border: 2px solid var(--border-blue-gray);
    border-radius: 12px;
    padding: 24px;
}

.feature-block:hover {
    border-color: var(--primary-red);
}

.feature-block h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-block p {
    font-size: 14px;
    color: var(--text-gray);
}

/* === PRICING SECTION === */
.pricing-section {
    padding: var(--section-padding);
    background: rgba(3, 6, 22, 0.5);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

/* Offres Essai et Sur devis : contour bleu/gris #363a4d sur 2px */
.pricing-card {
    background: rgba(16, 24, 40, 0.5);
    border: 2px solid var(--border-blue-gray);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    transition: all 0.3s;
}

.trial-card, .enterprise-card {
    border: 2px solid var(--border-blue-gray);
}

/* Offre Pro : contour rouge 2px */
.pro-card {
    border: 2px solid var(--primary-red);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.trial-badge {
    background: var(--border-blue-gray);
    color: var(--text-white);
}

.pro-badge {
    background: var(--primary-red);
    color: var(--text-white);
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 12px;
}

.price {
    margin-bottom: 16px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-white);
}

.price-period {
    font-size: 14px;
    color: var(--text-gray);
    margin-left: 8px;
}

.price-description {
    font-size: 14px;
    color: var(--text-gray);
}

.pricing-description {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.features-list {
    list-style: none;
    margin-bottom: 32px;
}

.features-list li {
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 14px;
}

.pricing-button {
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid;
}

/* Bouton rouge sur l'offre Pro avec effet d'ancrage */
.pro-button {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--text-white);
}

.pro-button:hover {
    background: transparent;
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.security-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.security-item {
    text-align: center;
    padding: 24px;
}

.security-item .icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.security-item p {
    color: var(--text-gray);
    font-size: 14px;
}

/* === CTA SECTION === */
.cta-section {
    padding: var(--section-padding);
    text-align: center;
}

.cta-section h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.cta-section > p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.cta-features {
    list-style: none;
    margin-bottom: 40px;
}

.cta-features li {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* === FOOTER === */
.main-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.main-footer p {
    color: var(--text-gray);
    font-size: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pro-card {
        transform: scale(1);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }

    .container { padding: 0 16px; }
    section { padding: 40px 0; }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .feature-card {
        overflow: hidden;
        word-wrap: break-word;
    }

    .feature-card { padding: 20px; }
    .feature-card h3 { font-size: 17px; }

    .additional-features { grid-template-columns: 1fr; }
    .security-badges { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .cta-actions { flex-direction: column; }
    .main-nav { display: none; }
    .header-actions { display: none; }

    .pricing-card { padding: 24px; }
    .highlighted-card { padding: 20px; }
}

@media (max-width: 480px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    .section-description { font-size: 14px; }
    .feature-card { padding: 16px; }
    .feature-card h3 { font-size: 16px; }
    .feature-card p { font-size: 13px; }
    .feature-icon { font-size: 24px; margin-bottom: 10px; }
    .stat-number { font-size: 32px; }
}
