/* Global Styles */
@import 'variables.css';

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.5rem;
}

/* --- Components: Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-body);
}

.btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Layout: Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 1;
    color: var(--accent-regie);
    /* Default hover, can be dynamic */
}

/* --- Layout: Home (Split Hero) --- */
.hero-split {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
    padding-top: var(--header-height);
    /* Prevent overlap */
    overflow: hidden;
}

.split-side {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    transition: var(--transition-medium);
    border-right: 1px solid var(--glass-border);
}

.split-side:last-child {
    border-right: none;
}

/* Background overlay per side */
.split-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: var(--transition-medium);
}

/* Regie Side Styling */
.side-regie {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 30, 0.95));
}

.side-regie::before {
    background-image: url('../images/home-regie.png');
}

.side-regie:hover {
    flex: 1.5;
    /* Grow effect */
}

.side-regie h2 {
    color: var(--accent-regie);
}

.side-regie .btn {
    background-color: var(--accent-regie);
    color: white;
}

/* Formation Side Styling */
.side-formation {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(30, 25, 10, 0.95));
}

.side-formation::before {
    background-image: url('../images/home-formation.png');
}

.side-formation:hover {
    flex: 1.5;
    /* Grow effect */
}

.side-formation h2 {
    color: var(--accent-formation);
}

.side-formation .btn {
    background-color: var(--accent-formation);
    color: black;
}

.split-content {
    max-width: 400px;
    z-index: 2;
}

.split-content p {
    margin: 1.5rem 0;
    color: var(--text-muted);
}

/* --- Mobile Responsiveness --- */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .h1 {
        font-size: 2.5rem;
    }

    .hero-split {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .split-side {
        padding: 4rem 2rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .site-header {
        padding: 0 1.5rem;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-body);
        border-left: 1px solid var(--glass-border);
        padding: 5rem 2rem;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        display: block;
        /* Override previous none */
    }

    .main-nav.open {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    .main-nav a {
        font-size: 1.2rem;
        display: block;
    }
}