/**
 * See You Friday - Shared Styles
 * Externalisé pour CSP stricte sans 'unsafe-inline'
 */

:root {
    --color-bg: #000000;
    --color-bg-elevated: #0a0a0a;
    --color-surface: #111111;
    --color-primary: #ffffff;
    --color-primary-glow: rgba(255, 255, 255, 0.15);
    --color-text: #ffffff;
    --color-text-muted: #cccccc;
    --color-border: rgba(255, 255, 255, 0.12);
    --font-main: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* ========================================
   NAVIGATION
   ======================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, var(--color-bg) 0%, transparent 100%);
}

/* Navigation statique pour pages secondaires */
nav.nav-static {
    position: relative;
    background: none;
    border-bottom: 1px solid var(--color-border);
}

.logo {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
    width: fit-content;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-text);
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-cta:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 3rem;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    background: var(--color-primary);
}

.hero-gradient-1 {
    top: -200px;
    right: -200px;
    animation: float 15s ease-in-out infinite;
}

.hero-gradient-2 {
    bottom: -300px;
    left: -200px;
    animation: float 18s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 30px); }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.85rem;
    line-height: 1;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateY(-1px) scale(1); }
    50% { opacity: 0.5; transform: translateY(-1px) scale(1.2); }
}

.hero-title {
    font-family: var(--font-main);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto 3rem;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    padding: 1rem 2rem;
    background: var(--color-primary);
    border: none;
    color: var(--color-bg);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px var(--color-primary-glow);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--color-primary-glow);
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: var(--color-text);
    color: var(--color-bg);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 100px;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.9;
}


/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: 8rem 3rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--color-border);
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-main);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* ========================================
   FORMS
   ======================================== */

.email-form {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 220px;
    padding: 1rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: var(--color-text-muted);
}

.email-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-message {
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    padding: 2rem 3rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

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

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

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

/* ========================================
   CONTENT PAGES (mentions légales, confidentialité)
   ======================================== */

.content-page {
    line-height: 1.8;
}

.content-page main {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content-page h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.content-page .last-update {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.content-page h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-page p,
.content-page li {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.content-page ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

.content-page a {
    color: var(--color-text);
}

.email-link {
    cursor: pointer;
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--color-text);
}

/* ========================================
   404 PAGE
   ======================================== */

.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: clamp(6rem, 20vw, 10rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    opacity: 0.1;
    position: absolute;
}

.error-content {
    position: relative;
    z-index: 1;
}

.error-content .logo-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
}

.error-content h1 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.error-content p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */

.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    padding: 0.25rem;
    gap: 0.125rem;
}

.lang-switcher a {
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

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

.lang-switcher a.active {
    background: var(--color-text);
    color: var(--color-bg);
}


/* ========================================
   UTILITIES
   ======================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* SVG sprite container - hidden but accessible to use elements */
.svg-symbols {
    display: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 6rem 1.5rem 4rem;
    }

    .email-form {
        flex-direction: column;
        width: 100%;
    }

    .email-form .email-input,
    .email-form .btn-primary {
        width: 100%;
        min-width: unset;
    }


    .cta-section {
        padding: 4rem 1.5rem;
    }

    footer {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        order: 3;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .content-page main {
        padding: 2rem 1.5rem;
    }

    .content-page h1 {
        font-size: 2rem;
    }
}
