/* Base partagée — page d'accueil home/ uniquement */

:root {
    --color-primary: #0f172a;
    --color-secondary: #334155;
    --color-cta: #2563eb;
    --color-cta-hover: #1d4ed8;
    --color-teal: #0f766e;
    --color-coral: #c84b31;
    --color-background: #f4f7fb;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-muted: #475569;
    --color-border: #dbe3ee;
    --color-border-strong: #c5d0de;
    --mouse-x: 20%;
    --mouse-y: 18%;
    --font-heading: "Archivo", system-ui, sans-serif;
    --font-body: "Space Grotesk", system-ui, sans-serif;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.08);
    --radius-lg: 14px;
    --wrap: 72rem;
    --header-offset: 5.5rem;
    --transition: 200ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background:
        radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(37, 99, 235, 0.12), transparent 28rem),
        radial-gradient(circle at 85% 12%, rgba(15, 118, 110, 0.14), transparent 22rem),
        radial-gradient(circle at 10% 88%, rgba(200, 75, 49, 0.1), transparent 20rem),
        linear-gradient(180deg, #f8fafc 0%, var(--color-background) 45%, #eef2f8 100%);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 3rem 3rem;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 85%);
}

.ambient {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.ambient--subtle .ambient__orb {
    opacity: 0.4;
}

.ambient__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
    .ambient__orb {
        animation: float-orb 28s ease-in-out infinite;
    }
}

.ambient__orb--teal {
    width: 22rem;
    height: 22rem;
    top: -4rem;
    left: -6rem;
    background: rgba(15, 118, 110, 0.35);
}

.ambient__orb--blue {
    width: 26rem;
    height: 26rem;
    top: 30%;
    right: -8rem;
    background: rgba(37, 99, 235, 0.28);
    animation-delay: -4s;
}

.ambient__orb--coral {
    width: 18rem;
    height: 18rem;
    bottom: 10%;
    left: 20%;
    background: rgba(200, 75, 49, 0.22);
    animation-delay: -8s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -18px) scale(1.05); }
    66% { transform: translate(-16px, 12px) scale(0.96); }
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    z-index: 300;
    padding: 0.5rem 1rem;
    background: var(--color-cta);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.skip-link:focus {
    top: var(--space-md);
}

.hero {
    padding: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 var(--space-md);
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-teal);
    background: rgba(15, 118, 110, 0.1);
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 999px;
}

.eyebrow__status {
    color: #15803d;
    font-weight: 700;
}

.eyebrow__sep {
    opacity: 0.45;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.hero h1 {
    margin: 0 0 var(--space-lg);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.title-accent {
    color: #0c4a6e;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .title-accent {
        background: linear-gradient(120deg, #0f766e 0%, #1d4ed8 50%, #9a3412 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.hero__lead {
    margin: 0 0 var(--space-lg);
    font-size: 1.05rem;
    color: var(--color-muted);
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tag-fg, var(--color-secondary));
    background: var(--tag-bg, var(--color-surface));
    border: 1px solid var(--tag-border, var(--color-border));
    border-radius: 999px;
    white-space: nowrap;
    transition: transform var(--transition), box-shadow var(--transition);
}

.tag--java { --tag-bg: #fff7ed; --tag-fg: #c2410c; --tag-border: #fed7aa; }
.tag--spring { --tag-bg: #ecfdf5; --tag-fg: #047857; --tag-border: #a7f3d0; }
.tag--k8s { --tag-bg: #eff6ff; --tag-fg: #1d4ed8; --tag-border: #bfdbfe; }
.tag--tf { --tag-bg: #f5f3ff; --tag-fg: #6d28d9; --tag-border: #ddd6fe; }
.tag--ci { --tag-bg: #fdf2f8; --tag-fg: #be185d; --tag-border: #fbcfe8; }
.tag--auth { --tag-bg: #f0fdfa; --tag-fg: #0f766e; --tag-border: #99f6e4; }
.tag--obs { --tag-bg: #fffbeb; --tag-fg: #b45309; --tag-border: #fde68a; }
.tag--perf { --tag-bg: #fef2f2; --tag-fg: #b91c1c; --tag-border: #fecaca; }

.gate-chips .tag:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .ambient__orb {
        animation: none !important;
    }

    .title-accent {
        color: #0f766e;
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
    }
}
