/*
 * assets/styles.css
 * Styles partagés — PipnHub front
 */

/* ── Reset & base ─────────────────────────────────────────────────────────── */

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

:root {
    --bg:        #f2f2f0;
    --surface:   #ffffff;
    --border:    #e8e8e6;
    --border-2:  #d0d0cc;
    --text:      #1a1918;
    --muted:     #666;
    --muted-2:   #999;

    --accent:    #1a1918;

    --radius:    6px;
    --mono:      'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
    --sans:      system-ui, -apple-system, 'Segoe UI', sans-serif;

    --header-h:  60px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

/* ── Container ────────────────────────────────────────────────────────────── */

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

#header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(242, 242, 240, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-logo img {
    height: 28px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Pill version / label */
.version-pill {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    background: var(--text);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Switcher de langue */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 4px;
}

.lang-switch a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    color: var(--muted-2);
    padding: 2px 8px;
    border-radius: 16px;
    transition: background .15s, color .15s;
}

.lang-switch a:hover {
    color: var(--text);
}

.lang-switch a.active {
    background: var(--text);
    color: #fff;
}

/* ── Hero (index) ─────────────────────────────────────────────────────────── */

#hero {
    text-align: center;
    padding: 72px 0 48px;
}

.hero-logo {
    width: 64px;
    height: auto;
    margin: 0 auto 20px;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-title span {
    opacity: .35;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── Browser mockup (index) ───────────────────────────────────────────────── */

#mockup {
    padding: 0 0 64px;
}

.mockup-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.browser {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0, 0, 0, .08);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f0f0ee;
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-2);
}

.browser-url {
    flex: 1;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted-2);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Features (index) ─────────────────────────────────────────────────────── */

#features {
    padding: 64px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 40px;
}

.section-title.centered {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 40px;
}

@media (max-width: 860px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text);
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
}

.feature-card p {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Social proof (index) ─────────────────────────────────────────────────── */

#social-proof {
    padding: 64px 0;
}

.favicons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.favicon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}

.favicon-link:hover {
    border-color: var(--border-2);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.favicon-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: #fff;
    font-size: 11px;
    font-family: var(--mono);
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}

.favicon-link:hover .tooltip {
    opacity: 1;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

#footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--muted-2);
    line-height: 2;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    transition: color .15s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-links .sep {
    color: var(--border-2);
}
