/* ParcoursElus — page d'accueil */
:root {
    --bg: #0c1222;
    --bg-elevated: #121a2e;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.12);
    --text: #f4f6fb;
    --text-muted: #9aa3b5;
    --accent: #2563eb;
    --accent-hover: #3b82f6;
    --accent-glow: rgba(37, 99, 235, 0.4);
    --gold: #7dd3fc;
    --radius: 14px;
    --radius-lg: 22px;
    --font: "Plus Jakarta Sans", system-ui, sans-serif;
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
}

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

html {
    scroll-behavior: smooth;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, rgba(12, 18, 34, 0.92), transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.brand__text span {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.75rem;
    display: block;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-main a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.nav-main .btn-ghost {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
}

.nav-main .btn-ghost:hover {
    background: var(--surface);
    color: var(--text);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6.5rem 1.5rem 4rem;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(12, 18, 34, 0.88) 0%,
        rgba(12, 18, 34, 0.65) 45%,
        rgba(12, 18, 34, 0.82) 100%
    );
    z-index: 1;
}

.hero__grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero__lead {
    margin: 0 auto 2.25rem;
    max-width: 34rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Search */
.search-panel {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: left;
}

.search-panel__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.search-row input[type="search"],
.search-row input[type="text"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 1rem 1.15rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-row input::placeholder {
    color: #6b7289;
}

.search-row input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chip {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover,
.chip:focus-visible {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface);
    outline: none;
}

.chip[aria-pressed="true"] {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(61, 126, 239, 0.15);
}

.search-hint {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section below */
.section {
    padding: 4rem 1.5rem;
    background: var(--bg);
}

.section__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section__head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.section__head h2 {
    margin: 0 0 0.75rem;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section__head p {
    margin: 0;
    color: var(--text-muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(61, 126, 239, 0.35);
}

.card__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card__img img {
    transform: scale(1.04);
}

.card__body {
    padding: 1.25rem 1.35rem 1.5rem;
}

.card__body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.card__body p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.site-footer strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 640px) {
    .nav-main {
        gap: 0.75rem;
    }

    .nav-main a:not(.btn-ghost) {
        display: none;
    }

    .search-row {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }
}
