/* P2AI Automatismes - Global Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #fff;
    background: #111827;
    min-height: 100vh;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(4px);
    padding: 1rem;
    z-index: 20;
    border-bottom: 1px solid #374151;
}

nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: monospace;
    color: #22c55e;
    text-decoration: none;
}

nav .logo img,
nav .logo-img {
    height: 40px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-family: monospace;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #22c55e;
}

/* Articles Pages Specific */
body.article-page {
    padding-top: 60px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #1f2937;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid #374151;
}

header {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 3px solid #22c55e;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
    color: #22c55e;
}

.article-meta {
    color: #9ca3af;
    font-size: 0.95em;
    margin-top: 15px;
}

.article-meta p {
    margin: 5px 0;
}

.content-wrapper {
    padding: 40px 30px;
}

.featured-image {
    margin-bottom: 30px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
    border: 2px solid #374151;
}

.featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.article-content {
    margin-bottom: 30px;
}

.article-content a {
    color: #22c55e;
    text-decoration: underline;
}

.article-content a:hover {
    color: #4ade80;
}

p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.05em;
    color: #d1d5db;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #374151;
    color: #6b7280;
    text-align: center;
    font-size: 0.9em;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #22c55e;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
    font-family: monospace;
}

.back-link:hover {
    background: #16a34a;
    transform: translateX(-3px);
}
