

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

body.tiktok-landing {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0f3a52;
    color: #e2e8f0;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.tiktok-landing .navbar,
body.tiktok-landing .qz-bottom-bar,
body.tiktok-landing .site-footer {
    display: none !important;
}


.tk-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    padding-top: env(safe-area-inset-top, 24px);
    padding-bottom: env(safe-area-inset-bottom, 24px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s;
    z-index: 1;
}

.tk-screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0s;
    z-index: 10;
}

.tk-screen.exit {
    opacity: 0;
    transform: translateX(-30px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
    z-index: 5;
}

.tk-screen__content {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}


.tk-screen--accroche {
    background: linear-gradient(160deg, #0b2e44 0%, #0f3a52 40%, #0b2e44 100%);
}

.tk-screen--classe {
    background: linear-gradient(160deg, #0b2e44 0%, #12405a 40%, #0b2e44 100%);
}

.tk-screen--matiere {
    background: linear-gradient(160deg, #0b2e44 0%, #153d50 40%, #0b2e44 100%);
}

.tk-screen--chapitre {
    background: linear-gradient(160deg, #0b2e44 0%, #103852 40%, #0b2e44 100%);
}


.tk-logo {
    position: absolute;
    top: calc(env(safe-area-inset-top, 16px) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.tk-logo__img {
    height: 28px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.tk-logo__img:hover {
    opacity: 1;
}


.tk-back {
    position: absolute;
    top: calc(env(safe-area-inset-top, 16px) + 16px);
    left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 20;
}

.tk-back:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.tk-back__icon {
    font-size: 16px;
}


.tk-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(233, 168, 32, 0.12);
    border: 1px solid rgba(233, 168, 32, 0.25);
    border-radius: 24px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #f5c44d;
}

.tk-badge__icon {
    font-size: 16px;
}

.tk-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.tk-title__accent {
    display: block;
    margin-top: 8px;
    background: linear-gradient(135deg, #e9a820 0%, #f5c44d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tk-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    max-width: 320px;
}

.tk-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    padding: 18px 32px;
    background: rgba(233, 168, 32, 0.2);
    border: 1px solid rgba(233, 168, 32, 0.35);
    color: #f5c44d;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.tk-cta:hover {
    background: rgba(233, 168, 32, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(233, 168, 32, 0.2);
}

.tk-cta:active {
    transform: translateY(0);
}

.tk-cta__icon {
    font-size: 20px;
}

.tk-social-proof {
    width: 100%;
    max-width: 380px;
}

.tk-testimonial {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    text-align: left;
}

.tk-testimonial__avatar {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.tk-testimonial__quote {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-style: italic;
}

.tk-testimonial__author {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 6px;
    font-weight: 500;
}

.tk-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.tk-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tk-stats__number {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.tk-stats__label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tk-stats__separator {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.10);
}

.tk-footer-link {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom, 16px) + 16px);
    text-align: center;
}

.tk-footer-link a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: color 0.2s;
}

.tk-footer-link a:hover {
    color: rgba(255, 255, 255, 0.5);
}


.tk-step-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.tk-screen__title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.tk-screen__subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
}

.tk-classe-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin-top: 8px;
}

.tk-classe-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    text-align: left;
}

.tk-classe-btn:hover {
    background: rgba(233, 168, 32, 0.1);
    border-color: rgba(233, 168, 32, 0.25);
    transform: translateY(-1px);
}

.tk-classe-btn:active {
    transform: translateY(0);
    background: rgba(233, 168, 32, 0.15);
}

.tk-classe-btn__emoji {
    font-size: 24px;
    flex-shrink: 0;
}


.tk-matiere-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin-top: 8px;
    max-height: calc(100dvh - 240px);
    overflow-y: auto;
    padding-right: 4px;
}

.tk-matiere-grid::-webkit-scrollbar {
    width: 4px;
}

.tk-matiere-grid::-webkit-scrollbar-track {
    background: transparent;
}

.tk-matiere-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.tk-matiere-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    min-height: 96px;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.tk-matiere-tile:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tk-matiere-tile:active {
    transform: translateY(0);
}

.tk-matiere-tile__emoji {
    font-size: 32px;
    line-height: 1;
}

.tk-matiere-tile__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.tk-matiere-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
    padding: 40px 20px;
}

.tk-matiere-group-label {
    grid-column: 1 / -1;
    padding: 10px 0 2px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(233, 168, 32, 0.6);
}

.tk-matiere-group-label:first-child {
    padding-top: 0;
}

.tk-matiere-tile--highlight {
    border-color: rgba(233, 168, 32, 0.35);
    background: rgba(233, 168, 32, 0.08);
    box-shadow: 0 0 12px rgba(233, 168, 32, 0.1);
}

.tk-matiere-tile--highlight:hover {
    border-color: rgba(233, 168, 32, 0.5);
    background: rgba(233, 168, 32, 0.14);
}


.tk-chapitre-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 400px;
    margin-top: 8px;
    max-height: calc(100dvh - 240px);
    overflow-y: auto;
    padding-right: 4px;
}

.tk-chapitre-grid::-webkit-scrollbar {
    width: 4px;
}

.tk-chapitre-grid::-webkit-scrollbar-track {
    background: transparent;
}

.tk-chapitre-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.tk-chapitre-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.tk-chapitre-tile:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tk-chapitre-tile:active {
    transform: translateY(0);
}

.tk-chapitre-tile__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(233, 168, 32, 0.15);
    color: #f5c44d;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.tk-chapitre-tile__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}

.tk-chapitre-theme {
    padding: 10px 0 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f5c44d;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
}

.tk-chapitre-theme:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}


@media (max-height: 800px) {
    .tk-screen {
        justify-content: flex-start;
        padding-top: 60px;
    }
    
    .tk-screen__content {
        gap: 16px;
    }
    
    .tk-testimonial {
        padding: 12px 14px;
    }
    
    .tk-testimonial__quote {
        font-size: 13px;
    }
    
    .tk-classe-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .tk-matiere-grid {
        max-height: calc(100dvh - 200px);
    }
    
    .tk-matiere-tile {
        padding: 14px 10px;
        min-height: 80px;
    }
    
    .tk-matiere-tile__emoji {
        font-size: 26px;
    }
}

@media (max-height: 600px) {
    .tk-screen {
        padding-top: 48px;
    }
    
    .tk-screen__content {
        gap: 12px;
    }
    
    .tk-social-proof {
        display: none;
    }
    
    .tk-title {
        font-size: 24px;
    }
    
    .tk-cta {
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .tk-title {
        font-size: 36px;
    }
    
    .tk-cta {
        max-width: 400px;
        padding: 20px 40px;
        font-size: 20px;
    }
    
    .tk-screen__title {
        font-size: 32px;
    }
    
    .tk-classe-grid {
        max-width: 420px;
    }
    
    .tk-screen--matiere .tk-screen__content,
    .tk-screen--chapitre .tk-screen__content {
        max-width: 560px;
    }
    
    .tk-matiere-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 560px;
    }
    
    .tk-chapitre-grid {
        max-width: 560px;
    }
}

@media (min-width: 1200px) {
    .tk-title {
        font-size: 42px;
    }
    
    .tk-screen--matiere .tk-screen__content,
    .tk-screen--chapitre .tk-screen__content {
        max-width: 700px;
    }
    
    .tk-matiere-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 700px;
    }
    
    .tk-chapitre-grid {
        max-width: 700px;
    }
}
