@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* Particules */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-link {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 51, 102, 0.1);
    color: #ff3366;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Page */
.page {
    min-height: 100vh;
    padding-top: 100px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page d'accueil */
.hero {
    min-height: calc(100vh - 100px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(255, 51, 102, 0.1);
    color: #ff3366;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #ff3366, #ff6b3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: #a0a0a0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.features {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 51, 102, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feature p {
    color: #a0a0a0;
    font-size: 14px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff3366, #ff6b3d);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(255, 51, 102, 0.5);
}

.arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

/* Hero image */
.stats-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff3366, #ff6b3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-label {
    color: #a0a0a0;
    font-size: 14px;
}

.preview-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 30px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #a0a0a0;
}

.badge-small {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.preview-password {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
}

/* Page générateur */
.generator-header {
    text-align: center;
    margin-bottom: 50px;
}

.generator-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff3366, #ff6b3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.generator-header p {
    color: #a0a0a0;
    font-size: 18px;
}

.generator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Formulaire */
.form-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.label-icon {
    font-size: 18px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff3366;
    background: rgba(0, 0, 0, 0.5);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.generate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff3366, #ff6b3d);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(255, 51, 102, 0.5);
}

/* Résultat */
.result-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.result-header h3 {
    font-size: 18px;
    color: #fff;
}

.password-length {
    color: #a0a0a0;
    font-size: 14px;
}

.password-display {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 25px;
    word-break: break-all;
    letter-spacing: 2px;
    border: 2px dashed rgba(255, 51, 102, 0.3);
}

/* Force du mot de passe */
.strength-container {
    margin-bottom: 25px;
}

.strength-label {
    display: flex;
    justify-content: space-between;
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 10px;
}

.strength-value {
    font-weight: 600;
}

.strength-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.strength-progress {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

/* Actions */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.action-btn {
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.copy-btn {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.copy-btn:hover {
    background: #28a745;
    color: white;
}

.regenerate-btn {
    background: rgba(255, 51, 102, 0.2);
    color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.regenerate-btn:hover {
    background: #ff3366;
    color: white;
}

.btn-icon {
    font-size: 16px;
}

/* Messages */
.success-message {
    text-align: center;
    color: #28a745;
    font-size: 14px;
    padding: 10px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(40, 167, 69, 0.3);
    display: none;
    animation: slideIn 0.3s ease;
}

.error-message {
    max-width: 1000px;
    margin: 20px auto 0;
    text-align: center;
    color: #dc3545;
    font-size: 14px;
    padding: 15px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.3);
    display: none;
    animation: slideIn 0.3s ease;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 42px;
    }

    .feature {
        justify-content: center;
    }

    .generator-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 0 20px;
    }

    .stats-card {
        grid-template-columns: 1fr;
    }

    .preview-password {
        font-size: 24px;
    }

    .form-card, .result-card {
        padding: 25px;
    }
}