/* ═══════════════════════════════════════════════════════════════
   Yann Industries — Site vitrine
   Thème sombre, indépendant du reste du stack Jarvis.
   ═══════════════════════════════════════════════════════════════ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0d0d0d;
}

a,
a:visited {
    color: inherit;
    text-decoration: none;
}

/* ── Header / nav ─────────────────────────────────────────── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-logo-wrap {
    position: relative;
    display: inline-block;
    padding-top: 0.9rem;
}

.site-logo-bar-img {
    position: absolute;
    top: 0.25rem;
    left: 0;
    width: 19.5rem;
    max-width: 80vw;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.site-logo {
    position: relative;
    z-index: 1;
    font-family: Arial, "Helvetica Neue", "Liberation Sans", sans-serif;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
    transform: skewX(-6deg);
    display: inline-block;
    color: #ffffff;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    padding: 0.25rem 0;
    color: #cccccc;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* ── Sélecteur de langue ──────────────────────────────────── */
.lang-select {
    position: relative;
}

.lang-select summary {
    list-style: none;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.lang-select summary::-webkit-details-marker {
    display: none;
}

.lang-select summary:hover,
.lang-select[open] summary {
    color: #ffffff;
    border-color: #ffffff;
}

.lang-select summary::after {
    content: "▾";
    margin-left: 0.4rem;
    font-size: 0.7rem;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    list-style: none;
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    min-width: 5rem;
    overflow: hidden;
    z-index: 10;
}

.lang-menu li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-option {
    display: block;
    padding: 0.5rem 0.9rem;
    color: #cccccc;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.lang-option.active {
    color: #ffffff;
    font-weight: 700;
}

/* ── Main content ─────────────────────────────────────────── */
.site-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.hero {
    padding: 3rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.15rem;
    color: #b3b3b3;
    max-width: 40rem;
}

section {
    margin: 2.5rem 0;
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 1.5rem;
}

.card h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.card p {
    color: #b3b3b3;
    font-size: 0.95rem;
}

.card a {
    color: #ffffff;
    text-decoration: underline;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: #888888;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
