/* CSS complet copié depuis l'ancienne structure */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* === NAVBAR STYLES === */
.hero-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.navbar {
    position: relative;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.navbar-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-dashboard.sticky {
    background: rgba(102, 126, 234, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

.navbar.navbar-standalone {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    flex-shrink: 0;
    max-width: none;
    overflow: visible;
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
}

.nav-brand h1 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    white-space: nowrap !important;
    line-height: 1 !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-login {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-login:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.25rem 1rem;
        position: relative;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(102, 126, 234, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar {
        position: relative;
        z-index: 1000;
    }
    
    .navbar.sticky .nav-menu {
        position: fixed;
        top: 45px;
        left: 0;
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem;
        text-align: center;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .navbar.sticky .nav-container {
        padding: 0.2rem 1rem;
    }
    
    .nav-brand h1 {
        font-size: 1rem;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

body.navbar-sticky {
    padding-top: 45px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-success {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

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

.btn-primary:hover, .btn-secondary:hover, .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: white;
    color: #764ba2;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
    background-color: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-in-out;
    margin-top: 15px;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
    min-width: 300px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: #667eea;
}

.hero-description {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.hero-actions a {
    margin-right: 1rem;
}

.hero-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-in-out;
}

.phone-mockup {
    width: 260px;
    height: 500px;
    background: #f4f4f4;
    border: 10px solid #333;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.app-interface {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #333;
    padding: 1rem;
}

.app-header {
    font-weight: bold;
    font-size: 1.1rem;
}

.qr-demo {
    width: 100px;
    height: 100px;
    background: #e0e0e0;
    border-radius: 10px;
}

.photo-grid-demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
}

.photo-demo {
    width: 100%;
    padding-top: 100%;
    background: #ccc;
    border-radius: 6px;
}

/* Features Section */
.features-section {
    margin-top: 4rem;
    animation: fadeInUp 0.8s ease-in-out;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* How It Works */
.how-it-works-section {
    background: #fff;
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.step {
    flex: 1;
    min-width: 240px;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.step:hover {
    background: #eef2ff;
    transform: translateY(-4px);
}

.step-number {
    font-size: 2rem;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step-arrow {
    font-size: 2rem;
    color: #999;
}

/* Use Cases Section */
.use-cases-section {
    margin-top: 4rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.use-case:hover {
    transform: scale(1.03);
}

.use-case-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #764ba2;
}

/* CTA Section */
.cta-section {
    margin-top: 4rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-actions {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h5 {
    color: white;
    margin-bottom: 1rem;
}

.footer a {
    color: #bbb;
    text-decoration: none;
    display: block;
    margin: 0.25rem 0;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #444;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .features-grid,
    .use-cases-grid,
    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        display: none;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .footer-content {
        flex-direction: column;
    }
}
