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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #17a2b8 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Pages */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Page de connexion */
#login-page.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Logo Badge - Grande version (page de connexion) */
.logo-badge {
    margin-bottom: 30px;
}

.badge-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid #667eea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.badge-letters {
    font-size: 3rem;
    font-weight: 900;
    color: #667eea;
    letter-spacing: -3px;
}

.badge-separator {
    width: 40px;
    height: 2px;
    background: #17a2b8;
    margin: 8px 0;
}

.badge-studio {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: #17a2b8;
}

/* Logo Badge - Petite version (header) */
.header-logo {
    display: flex;
    align-items: center;
}

.logo-badge-small .badge-circle-small {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #667eea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.badge-letters-small {
    font-size: 1.8rem;
    font-weight: 900;
    color: #667eea;
    letter-spacing: -2px;
}

.badge-separator-small {
    width: 25px;
    height: 2px;
    background: #17a2b8;
    margin: 5px 0;
}

.badge-studio-small {
    font-size: 0.4rem;
    font-weight: 400;
    letter-spacing: 2.5px;
    color: #17a2b8;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #17a2b8 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    min-height: 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.btn-logout {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #667eea;
    color: white;
}

/* Main content */
.main-content {
    padding: 60px 0;
}

.intro-section {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.intro-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.intro-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Grille d'applications */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.app-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.app-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #17a2b8 100%);
}

.app-info {
    padding: 20px;
}

.app-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.app-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        margin: 20px;
        padding: 40px 30px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .intro-section h2 {
        font-size: 2rem;
    }
}
