/* =====================================================
   OPTIMUS SUITE — Thème unifié
   Couleurs de la marque : bleu #2196f3 → cyan #00e5ff
   ===================================================== */

:root {
    --os-blue: #2196f3;
    --os-cyan: #00e5ff;
    --os-gradient: linear-gradient(135deg, #2196f3, #00e5ff);

    --os-bg: #121212;
    --os-card: #1e1e1e;
    --os-input: #2a2a2a;
    --os-text: #e0e0e0;
    --os-muted: #9ca3af;
    --os-border: #333;
    --os-shadow: rgba(0, 0, 0, .35);

    --os-success: #4caf50;
    --os-warning: #ff9800;
    --os-danger: #f44336;

    --os-radius: 16px;
}

[data-theme="light"] {
    --os-bg: #f3f6fb;
    --os-card: #ffffff;
    --os-input: #f8fafc;
    --os-text: #1e293b;
    --os-muted: #64748b;
    --os-border: #dbe3ee;
    --os-shadow: rgba(0, 0, 0, .08);
}

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

body {
    background: var(--os-bg);
    color: var(--os-text);
    font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    transition: background-color .3s, color .3s;
}

.os-container { max-width: 1100px; margin: auto; padding: 30px 20px; }

/* ---------- Header ---------- */
.os-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 20px; margin-bottom: 25px;
    background: var(--os-card); border: 1px solid var(--os-border);
    border-radius: var(--os-radius); box-shadow: 0 10px 25px var(--os-shadow);
}
.os-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--os-text); }
.os-brand img { width: 44px; height: 44px; object-fit: contain; }
.os-brand span { font-weight: 700; font-size: 1.1rem; }
.os-brand small { display: block; font-weight: 400; font-size: .75rem; color: var(--os-muted); }
.os-nav { display: flex; align-items: center; gap: 10px; }
.os-nav a {
    color: var(--os-text); text-decoration: none; font-size: .9rem; font-weight: 600;
    padding: 8px 14px; border-radius: 10px; border: 1px solid var(--os-border);
}
.os-nav a:hover { border-color: var(--os-blue); }
.os-theme-btn {
    width: 42px; height: 42px; border: none; border-radius: 50%;
    cursor: pointer; background: var(--os-input); color: var(--os-text); font-size: 1.1rem;
}

/* ---------- Hero ---------- */
.os-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: var(--os-radius); padding: 40px 30px; margin-bottom: 25px;
    text-align: center; position: relative; overflow: hidden; color: #fff;
}
.os-hero::before {
    content: ''; position: absolute; width: 300px; height: 300px;
    right: -100px; top: -100px; border-radius: 50%;
    background: rgba(0, 229, 255, .08);
}
.os-hero .os-app-logo {
    width: 84px; height: 84px; object-fit: contain; margin-bottom: 12px;
    filter: drop-shadow(0 0 18px rgba(0, 229, 255, .35));
}
.os-hero h1 { font-size: 2.1rem; margin-bottom: 8px; }
.os-hero .os-subtitle { color: #cbd5e1; font-size: 1.05rem; }
.os-hero .os-privacy-note {
    display: inline-block; margin-top: 14px; font-size: .85rem; color: #a5f3fc;
    background: rgba(0, 229, 255, .1); border: 1px solid rgba(0, 229, 255, .25);
    padding: 6px 14px; border-radius: 20px;
}

/* ---------- Cards & tool UI ---------- */
.os-card {
    background: var(--os-card); border: 1px solid var(--os-border);
    border-radius: var(--os-radius); padding: 28px; margin-bottom: 25px;
    box-shadow: 0 10px 25px var(--os-shadow);
}
.os-card h2 { font-size: 1.3rem; margin-bottom: 14px; }

.os-btn {
    display: inline-block; border: none; cursor: pointer;
    background: var(--os-gradient); color: #fff;
    padding: 15px 30px; border-radius: 12px;
    font-size: 1rem; font-weight: 700; text-decoration: none;
    transition: transform .2s;
}
.os-btn:hover { transform: translateY(-2px); }
.os-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.os-btn-secondary {
    background: var(--os-input); color: var(--os-text);
    border: 1px solid var(--os-border);
}

.os-field { margin-bottom: 16px; text-align: left; }
.os-field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .9rem; color: var(--os-muted); }
.os-field input[type="text"],
.os-field input[type="number"],
.os-field input[type="password"],
.os-field select,
.os-field textarea {
    width: 100%; padding: 12px; border-radius: 10px;
    border: 1px solid var(--os-border); background: var(--os-input);
    color: var(--os-text); font-size: 1rem; font-family: inherit;
}
.os-field input:focus, .os-field select:focus, .os-field textarea:focus {
    outline: none; border-color: var(--os-cyan);
}
.os-field textarea { min-height: 140px; resize: vertical; }

.os-dropzone {
    border: 3px dashed var(--os-blue); border-radius: 14px;
    padding: 45px 20px; text-align: center; cursor: pointer; transition: .25s;
}
.os-dropzone:hover { background: rgba(33, 150, 243, .08); }
.os-dropzone .os-dz-icon { font-size: 3.2rem; margin-bottom: 10px; }

.os-console {
    background: #0d1117; color: #7ee787;
    font-family: Consolas, 'Courier New', monospace;
    padding: 1rem; border-radius: 10px; text-align: left;
    font-size: .82rem; max-height: 130px; overflow-y: auto;
    margin-bottom: 1.2rem; border-left: 4px solid var(--os-cyan);
}
.os-console .os-log-time { color: #79c0ff; }

.os-result-ok { color: var(--os-success); font-weight: 600; }
.os-result-err { color: var(--os-danger); font-weight: 600; }

.hidden { display: none !important; }

/* ---------- SEO content ---------- */
.os-seo { margin-bottom: 25px; }
.os-seo h2 { font-size: 1.4rem; margin: 22px 0 10px; }
.os-seo h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.os-seo p, .os-seo li { color: var(--os-text); margin-bottom: 10px; }
.os-seo ul, .os-seo ol { padding-left: 22px; }

/* ---------- FAQ ---------- */
.os-faq { margin-bottom: 25px; }
.os-faq h2 { font-size: 1.4rem; margin-bottom: 14px; }
.os-faq details {
    background: var(--os-card); border: 1px solid var(--os-border);
    border-radius: 12px; padding: 14px 18px; margin-bottom: 10px;
}
.os-faq summary { cursor: pointer; font-weight: 600; }
.os-faq details p { margin-top: 10px; color: var(--os-muted); }

/* ---------- IAFacile promo ---------- */
.os-promo-iafacile {
    background: linear-gradient(135deg, #1a1033, #2b1a55);
    border: 1px solid rgba(168, 130, 255, .35);
    border-radius: var(--os-radius); padding: 28px;
    margin-bottom: 25px; display: flex; gap: 20px; align-items: center;
    justify-content: space-between; flex-wrap: wrap; color: #fff;
}
.os-promo-iafacile h3 { font-size: 1.25rem; margin-bottom: 8px; }
.os-promo-iafacile p { color: #d8ccff; font-size: .95rem; max-width: 640px; }
.os-promo-iafacile a {
    background: #a882ff; color: #1a1033; text-decoration: none; font-weight: 800;
    padding: 13px 24px; border-radius: 12px; white-space: nowrap;
}
.os-promo-iafacile a:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.os-footer {
    background: var(--os-card); border: 1px solid var(--os-border);
    border-radius: var(--os-radius); padding: 30px 24px; text-align: center;
    margin-top: 10px;
}
.os-footer .os-footer-apps { margin-bottom: 18px; }
.os-footer .os-footer-apps strong { display: block; margin-bottom: 12px; font-size: 1rem; }
.os-footer .os-app-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.os-footer .os-app-links a {
    font-size: .82rem; font-weight: 600; color: var(--os-text); text-decoration: none;
    border: 1px solid var(--os-border); border-radius: 20px; padding: 6px 14px;
    background: var(--os-input);
}
.os-footer .os-app-links a:hover { border-color: var(--os-cyan); }
.os-footer .os-app-links a.os-current { border-color: var(--os-blue); background: rgba(33, 150, 243, .12); }
.os-footer .os-footer-legal { font-size: .82rem; color: var(--os-muted); margin: 14px 0; }
.os-footer .os-footer-legal a { color: var(--os-cyan); text-decoration: none; font-weight: 600; }
.os-footer .os-copyright {
    font-size: .78rem; color: var(--os-muted);
    border-top: 1px solid var(--os-border); padding-top: 14px;
}

/* ---------- Portal cards ---------- */
.os-apps-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px; margin-bottom: 25px;
}
.os-app-card {
    background: var(--os-card); border: 1px solid var(--os-border);
    border-radius: var(--os-radius); padding: 26px 20px; text-align: center;
    text-decoration: none; color: var(--os-text); transition: transform .2s;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.os-app-card:hover { transform: translateY(-4px); border-color: var(--os-cyan); }
.os-app-card img { width: 72px; height: 72px; object-fit: contain; }
.os-app-card h3 { font-size: 1.05rem; }
.os-app-card p { font-size: .85rem; color: var(--os-muted); }
.os-app-card .os-card-cta {
    margin-top: 6px; font-weight: 700; font-size: .9rem; color: var(--os-cyan);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .os-container { padding: 18px 12px; }
    .os-hero h1 { font-size: 1.6rem; }
    .os-header { flex-wrap: wrap; }
    .os-promo-iafacile { flex-direction: column; text-align: center; }
}
