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

:root {
    --color-facebook: #1877F2;
    --color-instagram: #E4405F;
    --color-tiktok: #000000;
    --color-twitter: #1DA1F2;
    --color-linkedin: #0A66C2;
    --color-snapchat: #FFFC00;
    --color-discord: #5865F2;
    --color-messenger: #00B2FF;
    --color-twitch: #9146FF;
    --color-threads: #000000;
    --primary-cerpeg: #6B8DB8;
    --primary-dark: #4A6B8A;
    --primary-light: #8BA6C7;
    --accent-orange: #FFA500;
    --text-dark: #2d3748;
    --text-light: #64748b;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(135deg, var(--primary-cerpeg) 0%, var(--primary-light) 100%);
    min-height: 100vh;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 1rem;
}

.main-container {
    display: flex;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.sidebar {
    width: 280px;
    background: white;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 0;
    box-shadow: none;
}

.sidebar.collapsed .sidebar-header,
.sidebar.collapsed nav {
    opacity: 0;
    visibility: hidden;
}

.menu-toggle {
    position: fixed;
    left: 300px;
    top: 20px;
    z-index: 1001;
    background: var(--primary-cerpeg);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.sidebar.collapsed ~ .menu-toggle {
    left: 20px;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary-cerpeg) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.sidebar-header p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.menu-list {
    list-style: none;
    padding: 1rem 0;
}

.menu-item {
    margin: 0;
}

.menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 1rem;
}

.menu-link:hover {
    background: var(--bg-light);
    border-left-color: var(--primary-cerpeg);
    color: var(--primary-cerpeg);
}

.menu-link.active {
    background: linear-gradient(90deg, rgba(107, 141, 184, 0.1) 0%, transparent 100%);
    border-left-color: var(--accent-orange);
    color: var(--primary-dark);
    font-weight: 600;
}

.menu-link .fiche-num {
    display: inline-block;
    background: var(--primary-cerpeg);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.menu-link.active .fiche-num {
    background: var(--accent-orange);
}

.content-wrapper {
    margin-left: 280px;
    flex: 1;
    padding: 1.5rem;
    transition: all 0.3s ease;
    max-width: 100%;
}

.sidebar.collapsed ~ * .content-wrapper,
.sidebar.collapsed + .content-wrapper {
    margin-left: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: max-width 0.3s ease;
}

.sidebar.collapsed ~ * .container,
.sidebar.collapsed + * .container {
    max-width: 1600px;
}

header {
    background: linear-gradient(135deg, var(--primary-cerpeg) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L50 50L0 100M50 0L100 50L50 100" stroke="rgba(255,255,255,0.05)" stroke-width="2" fill="none"/></svg>') repeat;
    opacity: 0.5;
}

.fiche-number {
    display: inline-block;
    background: var(--accent-orange);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.year-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.intro {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-dark);
    border-bottom: 4px solid var(--primary-cerpeg);
}

.intro strong {
    color: var(--primary-cerpeg);
    font-weight: 700;
}

.tabs-container {
    background: white;
    border-bottom: 3px solid var(--primary-light);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tabs-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    scrollbar-width: thin;
}

.tabs-nav::-webkit-scrollbar {
    height: 4px;
}

.tabs-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tabs-nav::-webkit-scrollbar-thumb {
    background: var(--primary-cerpeg);
    border-radius: 4px;
}

.tab-button {
    flex: 1;
    min-width: 150px;
    padding: 1.2rem 1.5rem;
    background: white;
    border: none;
    border-bottom: 4px solid transparent;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
    position: relative;
}

.tab-button:hover {
    background: var(--bg-light);
    color: var(--primary-cerpeg);
}

.tab-button.active {
    color: var(--primary-cerpeg);
    border-bottom-color: var(--accent-orange);
    background: linear-gradient(180deg, rgba(107, 141, 184, 0.05) 0%, white 100%);
}

.tab-button.active::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-orange);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

.content {
    padding: 1.5rem;
}

.section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid var(--primary-cerpeg);
    font-weight: 700;
}

.subsection-title {
    font-size: 1.15rem;
    color: var(--primary-cerpeg);
    margin: 1rem 0 0.75rem;
    font-weight: 600;
}

.definition-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary-cerpeg);
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 8px;
}

.definition-box strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border-left: 4px solid var(--accent-orange);
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    border-radius: 8px;
}

.highlight-box strong {
    color: var(--accent-orange);
}

.info-box {
    background: linear-gradient(135deg, rgba(107, 141, 184, 0.1) 0%, rgba(107, 141, 184, 0.05) 100%);
    border: 2px solid var(--primary-light);
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 12px;
}

.example-box {
    background: white;
    border: 2px solid var(--primary-light);
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.example-box h4 {
    color: var(--primary-cerpeg);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

li {
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.grid-2cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.grid-3cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.card {
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-cerpeg);
}

.card h4 {
    color: var(--primary-cerpeg);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

thead {
    background: var(--primary-cerpeg);
    color: white;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

tbody tr:hover {
    background: var(--bg-light);
}

tbody tr:last-child td {
    border-bottom: none;
}

footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-cerpeg) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-size: 1rem;
}

footer a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left, .footer-right {
    flex: 1;
}

.footer-right {
    text-align: right;
}

.back-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-cerpeg);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.steps-list {
    list-style: none;
    counter-reset: step-counter;
    margin-left: 0;
}

.steps-list > li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.steps-list > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-cerpeg);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-orange);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-cerpeg);
    background: white;
    color: var(--primary-cerpeg);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-cerpeg);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 141, 184, 0.4);
}

.networks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.network-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.network-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--network-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.network-card:hover::before {
    transform: scaleX(1);
}

.network-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--network-color);
}

.network-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.network-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    background: var(--network-color);
    flex-shrink: 0;
}

.network-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Fraunces', serif;
}

.network-tagline {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-row:last-of-type {
    border-bottom: none;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    flex: 1;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

.stat-value.percentage {
    color: var(--network-color);
    font-size: 1.2rem;
}

.section {
    margin-top: 1.5rem;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--network-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.objectives-list, .tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objectives-list li, .tips-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
}

.objectives-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--network-color);
    font-weight: 700;
}

.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--network-color);
    font-weight: 700;
}

.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.network-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.network-card:nth-child(1) { animation-delay: 0.1s; }
.network-card:nth-child(2) { animation-delay: 0.2s; }
.network-card:nth-child(3) { animation-delay: 0.3s; }
.network-card:nth-child(4) { animation-delay: 0.4s; }
.network-card:nth-child(5) { animation-delay: 0.5s; }
.network-card:nth-child(6) { animation-delay: 0.6s; }
.network-card:nth-child(7) { animation-delay: 0.7s; }
.network-card:nth-child(8) { animation-delay: 0.8s; }
.network-card:nth-child(9) { animation-delay: 0.9s; }

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
    }

    .sidebar.collapsed {
        width: 0;
        position: fixed;
    }

    .menu-toggle {
        left: 20px !important;
        top: 10px;
    }

    .content-wrapper {
        margin-left: 0;
        padding: 1rem;
    }

    .main-container {
        flex-direction: column;
    }

    .grid-2cols,
    .grid-3cols {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

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

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

    .footer-right {
        text-align: center;
    }

    .tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tab-button {
        min-width: 120px;
        padding: 1rem;
        font-size: 0.95rem;
    }

    .container {
        border-radius: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .content-wrapper {
        padding: 1.5rem 2rem;
    }

    .container {
        max-width: 95%;
    }

    .grid-3cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1201px) and (max-width: 1600px) {
    .container {
        max-width: 90%;
    }
}

@media (min-width: 1601px) {
    .content-wrapper {
        padding: 2rem 3rem;
    }

    .container {
        max-width: 1600px;
    }

    .sidebar.collapsed ~ * .container,
    .sidebar.collapsed + * .container {
        max-width: 1800px;
    }
}
