:root {
    --bg-dark: #070a13;
    --bg-card: #0f1626;
    --primary: #ff6d5a; /* Identité couleur n8n */
    --primary-hover: #e55a48;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #1e293b;
    --font: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font);
    line-height: 1.6;
    padding-top: 70px; /* Évite que la navbar fixe cache le contenu */
}

/* Override Google Translate Style - Nettoyage de l'interface Google */
body { top: 0px !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
.goog-logo-link { display: none !important; }
.goog-te-gadget { color: transparent !important; font-size: 0px !important; }
.goog-te-gadget .goog-te-combo {
    background-color: #151d30;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    outline: none;
    font-size: 13px !important;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    background-color: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--text-main);
}

.btn-ia {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-contact {
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    padding: 7px 16px;
    border-radius: 6px;
}

.btn-contact:hover {
    background-color: var(--primary);
    color: #fff !important;
}

/* MAIN STRUCTURE */
.main-content {
    padding-top: 60px;
    min-height: calc(100vh - 230px);
}

/* HERO */
.hero {
    text-align: center;
    padding: 60px 0 80px 0;
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    padding: 15px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

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

/* GRIDS & CARDS */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.card-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.card h2 {
    margin-bottom: 16px;
    font-size: 1.6rem;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ARCHITECTURE SECTION */
.architecture-section {
    border-top: 1px solid var(--border);
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.2rem;
    font-weight: 800;
}

.feat-item h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.feat-item h3 i {
    color: var(--primary);
    margin-right: 10px;
}

.feat-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* LEGAL PAGES */
.legal-page {
    max-width: 850px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.legal-page h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.legal-date {
    color: var(--text-muted);
    margin-bottom: 48px;
}

.legal-page h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.legal-page p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.1rem;
    text-align: justify;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background-color: #04060d;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 8px;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 550px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    z-index: 2000;
}

.cookie-banner.hidden { display: none; }

.cookie-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-buttons button {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-cookie-accept { background-color: var(--primary); color: #fff; }
.btn-cookie-decline { background-color: transparent; color: var(--text-muted); border: 1px solid var(--border); }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .grid-2 { grid-template-columns: 1fr; }
}