/* ── Glaciel — Common Styles ── */

:root {
    --abyss: #050a12;
    --deep: #0a1628;
    --ocean: #0f2137;
    --glacier: #1a3a5c;
    --ice: #2d5a87;
    --frost: #4a7fa8;
    --mist: #7eb3d8;
    --snow: #b8dce8;
    --cloud: #d4eef6;
    --sky: #e8f4f8;
    --pure: #f8fcfd;
    --white: #ffffff;
    --accent: #22d3ee;
    --accent-light: #67e8f9;
    --accent-glow: rgba(34, 211, 238, 0.3);
    --accent-subtle: rgba(34, 211, 238, 0.08);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--abyss);
    color: var(--snow);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
}

/* ── Layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    position: relative;
    z-index: 10;
}

/* ── Navigation ── */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#nav.scrolled {
    padding: 12px 0;
    background: rgba(5, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(34, 211, 238, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo-icon {
    width: 36px;
    height: 36px;
    position: relative;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--mist);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-ghost {
    color: var(--mist);
    background: transparent;
    border: 1px solid rgba(126, 179, 216, 0.15);
}

.btn-ghost:hover {
    color: var(--white);
    background: rgba(126, 179, 216, 0.08);
    border-color: rgba(126, 179, 216, 0.3);
}

.btn-primary {
    color: var(--abyss);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    font-weight: 600;
    box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 15px;
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ── Mobile Menu ── */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--mist);
    width: 28px;
    height: 28px;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn svg {
    width: 100%;
    height: 100%;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5, 10, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-overlay a {
    color: var(--snow);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

.mobile-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--mist);
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.mobile-close-btn svg {
    width: 100%;
    height: 100%;
}

/* ── Footer ── */
footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(74, 127, 168, 0.1);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--frost);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mist);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--frost);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(74, 127, 168, 0.08);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--glacier);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--glacier);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--frost);
}

/* ── Hide auth buttons (Connexion / Créer un compte) ── */
.nav-cta .btn-ghost,
.mobile-overlay a[href="unlock.html"],
.footer-col:last-child {
    display: none;
}

/* ── Common Responsive ── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .mobile-close-btn {
        top: 16px;
        right: 16px;
    }
}
