
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #4263eb;
    --dark: #111827;
    --muted: #8490a5;
    --background: #f5f7fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--dark);
}

.app-container {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 255px;
    background: #111827;
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 65px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.brand-light {
    font-weight: 400;
    color: #a5b4fc;
}

.sidebar-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #758198;
    margin-bottom: 18px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: #aeb8c9;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    transition: .25s;
}

.nav-link:hover,
.nav-link.active {
    background: #273653;
    color: white;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 11px;
    color: #aeb8c9;
    display: flex;
    gap: 10px;
    align-items: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 35px 5%;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
}

.breadcrumb-text {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1.5px;
}

.topbar h1 {
    font-size: 23px;
    font-weight: 700;
    margin: 8px 0 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.date-label {
    font-size: 12px;
    color: var(--muted);
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dbe4ff;
    color: #3155cc;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.welcome {
    background: linear-gradient(110deg, #243f9d, #5279f5);
    border-radius: 20px;
    padding: 38px 45px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 28px;
}

.welcome-tag {
    font-size: 10px;
    letter-spacing: 2px;
    opacity: .75;
}

.welcome h2 {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 800;
    margin: 12px 0;
}

.welcome p {
    font-size: 13px;
    opacity: .8;
    margin: 0;
}

.welcome-illustration {
    font-size: 115px;
    opacity: .18;
    margin-right: 40px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #edf0f5;
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.stat-icon.blue {
    background: #e9efff;
    color: #4263eb;
}

.stat-icon.green {
    background: #e4f8ed;
    color: #20a464;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 5px;
}

.stat-card strong {
    font-size: 23px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 6px;
}

.section-heading p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}

.search-box {
    width: min(330px, 100%);
    background: white;
    border: 1px solid #e8ecf3;
    border-radius: 10px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: none;
    font: inherit;
    font-size: 12px;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

.site-card {
    background: white;
    border: 1px solid #edf0f5;
    border-radius: 16px;
    padding: 19px;
    min-width: 0;
    text-decoration: none;
    color: var(--dark);
    transition: .25s ease;
    display: block;
}

.site-card:hover {
    transform: translateY(-5px);
    border-color: #c8d4ff;
    box-shadow: 0 14px 35px rgba(30, 50, 100, .09);
    color: var(--dark);
}

.site-card-top,
.site-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-icon {
    width: 47px;
    height: 47px;
    background: #edf1ff;
    color: var(--primary);
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 21px;
}

.open-icon {
    color: #a4afc2;
    font-size: 14px;
}

.site-info {
    margin: 23px 0;
}

.site-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 9px;
}

.site-folder {
    font-size: 10px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.site-card-footer {
    border-top: 1px solid #f0f2f6;
    padding-top: 14px;
}

.index-badge {
    background: #f3f5f9;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 9px;
    color: #68748a;
}

.launch-text {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
}

.no-results {
    text-align: center;
    padding: 50px 10px;
    color: var(--muted);
}

.no-results i {
    font-size: 35px;
}

.no-results h4 {
    color: var(--dark);
    margin-top: 15px;
}

footer {
    border-top: 1px solid #e8ecf3;
    margin-top: 60px;
    padding: 20px 0;
    color: var(--muted);
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

@media(max-width: 800px) {
    .sidebar {
        width: 75px;
        padding: 25px 12px;
    }

    .brand {
        justify-content: center;
    }

    .brand > span,
    .sidebar-label,
    .nav-link:not(.active),
    .nav-link:not(.active),
    .sidebar-footer {
        display: none;
    }

    .nav-link {
        justify-content: center;
        font-size: 18px;
    }

    .main-content {
        padding: 25px 20px;
    }
}

@media(max-width: 550px) {
    .sidebar {
        display: none;
    }

    .main-content {
        padding: 20px 15px;
    }

    .welcome {
        padding: 25px;
    }

    .welcome h2 {
        font-size: 24px;
    }

    .welcome-illustration {
        font-size: 65px;
        margin: 0;
    }

    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }
    
    .brand {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    width: 100%;
    min-width: 0;
    height: 65px;
    padding: 0 10px;
    max-width: 200px!important;
}

.brand a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
}

.brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
}

/* Tablette */
@media (max-width: 750px) {
    .brand {
        justify-content: center;
        padding: 0;
    }

    .brand a {
        justify-content: center;
    }

    .brand-logo {
        max-width: 45px;
        max-height: 45px;
    }
}

/* Mobile */
@media (max-width: 520px) {
    .brand {
        height: 55px;
    }

    .brand-logo {
        max-width: 140px;
        max-height: 42px;
    }
}

    .search-box {
        width: 100%;
    }

    .sites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .site-card {
        padding: 13px;
    }

    .site-info h4 {
        font-size: 12px;
    }

    .stats {
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
        gap: 8px;
    }

    .stat-card span {
        font-size: 9px;
    }

    .stat-card strong {
        font-size: 19px;
    }

    footer {
        flex-direction: column;
    }
}
