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

:root {
    --accent: #e63946;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --text-dark: #1a1a1a;
    --text-light: #e5e5e5;
    --border: #d0d0d0;
    --border-dark: #2a2a2a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    color: var(--text-dark);
    line-height: 1.6;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.status-popup {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    max-width: 360px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    font-size: 0.95rem;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.status-popup.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.status-popup-info {
    background: #1f2937;
}

.status-popup-success {
    background: #2e7d32;
}

.status-popup-error {
    background: #c62828;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: none;
    border-bottom: none;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.navbar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-accent {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 0 2rem;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/usine.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-brand {
    position: absolute;
    top: 1.75rem;
    left: 2.1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    color: var(--accent);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero-brand.is-hidden {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.hero-brand .logo-accent {
    color: var(--accent);
    font-size: inherit;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-content .btn-primary {
    margin-top: 10rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #d62828;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

/* Protect Section */
.protect-section {
    padding: 80px 2rem;
    background: var(--light);
}

.protect-container {
    max-width: 1200px;
    margin: 0 auto;
}

.protect-content {
    text-align: center;
    margin-bottom: 4rem;
}

.protect-content h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.protect-content strong {
    color: var(--accent);
    font-size: 1.1em;
}

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

.feature-group {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-group h5 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-group p {
    color: #666;
    margin-bottom: 1rem;
}

.feature-group ul {
    list-style: none;
}

.feature-group li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.feature-group li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Content Sections */
.content-section {
    padding: 80px 2rem;
}

.content-section:nth-child(odd) {
    background: white;
}

.content-section:nth-child(even) {
    background: var(--light);
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.content-section > .section-container > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Deployment Options */
.deployment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.deployment-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.deployment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.deployment-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.deployment-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.deployment-card p {
    color: #666;
    line-height: 1.6;
}

/* Applications Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.app-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.app-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.app-card p {
    color: #666;
    line-height: 1.6;
}

/* Analytics Diagram */
.analytics-diagram {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto minmax(290px, 1.2fr) auto minmax(240px, 1fr);
    gap: 1.2rem;
    align-items: stretch;
}

.diagram-panel {
    background: #f3f3f3;
    border: none;
    border-radius: 10px;
    padding: 1.45rem;
    box-shadow: none;
}

.diagram-panel h3 {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    text-align: center;
    color: #000;
}

.diagram-brand-mark {
    color: var(--accent);
    font-weight: 800;
}

.diagram-data ul {
    margin: 0;
    padding-left: 1rem;
    color: #000;
    line-height: 1.7;
}

.diagram-arrow {
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    font-weight: 700;
    color: #000;
}

.core-stack {
    display: grid;
    gap: 0.55rem;
}

.core-block {
    border: none;
    border-radius: 8px;
    padding: 0.82rem 0.9rem;
    text-align: center;
    font-weight: 600;
    color: #000;
    background: #eaeaea;
}

.user-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.user-tags span {
    border: none;
    border-radius: 999px;
    padding: 0.42rem 0.78rem;
    font-size: 0.9rem;
    color: #000;
    background: #eaeaea;
}

.analytics-section .section-container > p {
    color: #000;
}

.analytics-diagram + p {
    margin-top: 2.2rem;
}

/* About Section */
.about-section {
    background: white;
}

.about-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-content {
    max-width: 900px;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.about-content strong {
    color: var(--text-dark);
}

/* Contact Section */
.contact-section {
    background: var(--dark);
    color: white;
    padding: 80px 2rem;
}

.contact-section .section-container {
    max-width: 600px;
}

.contact-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-section > .section-container > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.contact-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem;
    text-align: center;
}

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

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        border-top: none;
        box-shadow: none;
    }

    .nav-menu.open {
        max-height: 400px;
        border-top: 1px solid var(--border);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border);
        display: block;
        text-align: left;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: rotate(-45deg) translate(-8px, 8px);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: rotate(45deg) translate(-8px, -8px);
    }

    .hero {
        padding: 80px 1rem;
    }

    .protect-section,
    .content-section {
        padding: 60px 1rem;
    }

    .protect-features,
    .deployment-options,
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .analytics-diagram {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .diagram-arrow {
        transform: rotate(90deg);
        font-size: 1.25rem;
        line-height: 1;
    }

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

    .contact-section {
        padding: 60px 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }
}
