/* ============================================================
   Clean QA Academy — CSS commun aux pages projets
   /projets/oculix.html
   /projets/kevin-sigmoid.html
   /projets/qa-ops-lab.html
   ============================================================ */

/* -----------------------------------------------------------
   1. Variables par défaut (override par .theme-*)
   ----------------------------------------------------------- */
:root {
    --p-bg: #06060f;
    --p-bg-soft: #0e0e1e;
    --p-bg-card: #14142a;
    --p-text: #f0eeff;
    --p-text-soft: #ccc8f0;
    --p-text-muted: #9490c0;
    --p-border: rgba(255,255,255,0.1);
    --p-accent: #7c3aed;
    --p-accent-2: #06b6d4;
    --p-glow: rgba(124,58,237,0.4);

    --p-font-display: "Bricolage Grotesque", "Inter", -apple-system, sans-serif;
    --p-font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --p-font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;

    --p-radius-sm: 6px;
    --p-radius-md: 14px;
    --p-radius-lg: 22px;
}

/* === THEME OCULIX (bleu cyan -> vert) === */
.theme-oculix {
    --p-bg: #050a14;
    --p-bg-soft: #0a1428;
    --p-bg-card: #0f1c36;
    --p-text: #e8f4ff;
    --p-text-soft: #a8c8e8;
    --p-text-muted: #6a8aa8;
    --p-border: rgba(45, 168, 78, 0.2);
    --p-accent: #1e88d9;
    --p-accent-2: #2da84e;
    --p-glow: rgba(45, 168, 78, 0.4);
}

/* === THEME KEVIN SIGMOID (cartoon clair) === */
.theme-kevin {
    --p-bg: #fffaf3;
    --p-bg-soft: #fff5e6;
    --p-bg-card: #ffffff;
    --p-text: #1a1410;
    --p-text-soft: #4a3a28;
    --p-text-muted: #8a7a68;
    --p-border: rgba(77, 212, 240, 0.3);
    --p-accent: #4dd4f0;
    --p-accent-2: #ff9933;
    --p-glow: rgba(77, 212, 240, 0.4);
}

/* === THEME QA OPS LAB (violet/cyan, coherent avec site principal) === */
.theme-qaopslab {
    --p-bg: #06060f;
    --p-bg-soft: #0e0e1e;
    --p-bg-card: #14142a;
    --p-text: #f0eeff;
    --p-text-soft: #ccc8f0;
    --p-text-muted: #9490c0;
    --p-border: rgba(167,139,250,0.15);
    --p-accent: #7c3aed;
    --p-accent-2: #06b6d4;
    --p-glow: rgba(124,58,237,0.4);
}

/* -----------------------------------------------------------
   2. Reset minimaliste
   ----------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--p-font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--p-text);
    background-color: var(--p-bg);
    min-height: 100vh;
}

a { color: var(--p-accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* -----------------------------------------------------------
   3. Header (commun aux 3 pages projets)
   ----------------------------------------------------------- */
.proj-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    padding: 14px 28px;
    background-color: var(--p-bg);
    border-bottom: 1px solid var(--p-border);
    gap: 18px;
}

.proj-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--p-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.proj-header__brand-mark {
    width: 32px;
    height: 32px;
    border-radius: var(--p-radius-sm);
    background: linear-gradient(135deg, var(--p-accent), var(--p-accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 13px;
}

.proj-header__nav {
    display: flex;
    gap: 4px;
    flex: 1;
    flex-wrap: wrap;
}

.proj-header__nav a {
    padding: 6px 12px;
    border-radius: var(--p-radius-sm);
    color: var(--p-text-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.proj-header__nav a:hover {
    background: var(--p-bg-soft);
    color: var(--p-accent-2);
}

/* -----------------------------------------------------------
   4. Hero
   ----------------------------------------------------------- */
.proj-hero {
    padding: 80px 32px 48px 32px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.proj-hero__logo {
    width: clamp(160px, 22vw, 240px);
    height: auto;
    margin: 0 auto 32px auto;
    display: block;
}

.proj-hero__label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--p-accent-2);
    padding: 6px 14px;
    border: 1px solid var(--p-accent-2);
    border-radius: 99px;
    margin-bottom: 18px;
}

.proj-hero__title {
    font-family: var(--p-font-display);
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    color: var(--p-text);
}

.proj-hero__title .accent {
    background: linear-gradient(120deg, var(--p-accent), var(--p-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.proj-hero__tagline {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--p-text-soft);
    max-width: 720px;
    margin: 0 auto 32px auto;
    line-height: 1.5;
    font-weight: 300;
}

.proj-hero__tagline strong { color: var(--p-text); font-weight: 600; }

.proj-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--p-radius-md);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn--primary {
    background: linear-gradient(135deg, var(--p-accent), var(--p-accent-2));
    color: white;
    box-shadow: 0 8px 24px var(--p-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--p-glow);
    text-decoration: none;
}

.btn--ghost {
    background: transparent;
    color: var(--p-text);
    border: 1px solid var(--p-border);
}

.btn--ghost:hover {
    background: var(--p-bg-soft);
    border-color: var(--p-accent-2);
    text-decoration: none;
}

/* -----------------------------------------------------------
   5. Section générique
   ----------------------------------------------------------- */
.proj-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 32px;
}

.proj-section__label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--p-accent-2);
    font-weight: 700;
    margin-bottom: 12px;
}

.proj-section__title {
    font-family: var(--p-font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--p-text);
    margin-bottom: 24px;
}

.proj-section__lead {
    font-size: 18px;
    color: var(--p-text-soft);
    line-height: 1.65;
    max-width: 760px;
    margin-bottom: 32px;
}

.proj-section p {
    color: var(--p-text-soft);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 760px;
}

.proj-section p strong { color: var(--p-text); font-weight: 600; }

.proj-section ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    max-width: 760px;
}

.proj-section ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--p-text-soft);
    line-height: 1.6;
}

.proj-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--p-accent-2);
    font-weight: 700;
}

/* -----------------------------------------------------------
   6. Stats grid
   ----------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.stat {
    padding: 24px;
    background: var(--p-bg-soft);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-md);
    text-align: center;
}

.stat__num {
    font-family: var(--p-font-display);
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(120deg, var(--p-accent), var(--p-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 12px;
    color: var(--p-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* -----------------------------------------------------------
   7. Card grid (features, modules, etc.)
   ----------------------------------------------------------- */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.feat {
    padding: 24px;
    background: var(--p-bg-soft);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-md);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.feat:hover {
    border-color: var(--p-accent-2);
    transform: translateY(-3px);
}

.feat__icon {
    font-size: 26px;
    margin-bottom: 12px;
}

.feat__title {
    font-weight: 700;
    font-size: 16px;
    color: var(--p-text);
    margin-bottom: 8px;
}

.feat__desc {
    font-size: 14px;
    color: var(--p-text-muted);
    line-height: 1.55;
}

/* -----------------------------------------------------------
   8. Code blocks
   ----------------------------------------------------------- */
.code-block {
    background: var(--p-bg-soft);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-md);
    padding: 20px 24px;
    margin: 24px 0;
    overflow-x: auto;
    font-family: var(--p-font-mono);
    font-size: 13px;
    color: var(--p-text-soft);
    line-height: 1.6;
}

.code-block pre { margin: 0; }

.code-block .kw { color: var(--p-accent); font-weight: 600; }
.code-block .str { color: var(--p-accent-2); }
.code-block .com { color: var(--p-text-muted); font-style: italic; }

/* -----------------------------------------------------------
   9. Quote / Citation (pour le message de RaiMan)
   ----------------------------------------------------------- */
.quote {
    border-left: 4px solid var(--p-accent-2);
    padding: 24px 28px;
    background: var(--p-bg-soft);
    border-radius: 0 var(--p-radius-md) var(--p-radius-md) 0;
    margin: 32px 0;
    max-width: 760px;
}

.quote p {
    font-style: italic;
    font-size: 17px;
    color: var(--p-text);
    margin-bottom: 12px;
    max-width: none;
}

.quote__author {
    font-size: 13px;
    color: var(--p-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-style: normal;
}

/* -----------------------------------------------------------
   10. Timeline (pour l'historique des projets)
   ----------------------------------------------------------- */
.timeline {
    margin: 32px 0;
    max-width: 760px;
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(to bottom, var(--p-accent), var(--p-accent-2));
}

.tl-item {
    position: relative;
    padding-bottom: 28px;
}

.tl-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--p-bg);
    border: 3px solid var(--p-accent-2);
}

.tl-item__date {
    font-size: 12px;
    color: var(--p-accent-2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.tl-item__title {
    font-weight: 700;
    color: var(--p-text);
    margin-bottom: 4px;
    font-size: 16px;
}

.tl-item__desc {
    color: var(--p-text-soft);
    font-size: 14px;
    line-height: 1.55;
}

/* -----------------------------------------------------------
   11. Footer
   ----------------------------------------------------------- */
.proj-footer {
    padding: 56px 32px 32px 32px;
    text-align: center;
    border-top: 1px solid var(--p-border);
    color: var(--p-text-muted);
    font-size: 13px;
    margin-top: 80px;
}

.proj-footer a {
    color: var(--p-text-soft);
    margin: 0 12px;
}

.proj-footer__credit {
    margin-top: 16px;
    font-size: 12px;
}

/* -----------------------------------------------------------
   12. Responsive
   ----------------------------------------------------------- */
@media (max-width: 760px) {
    .proj-header { padding: 12px 18px; gap: 10px; }
    .proj-header__nav { display: none; }
    .proj-hero { padding: 56px 20px 32px 20px; }
    .proj-section { padding: 48px 20px; }
}
