* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #020304;
    color: #f1f1f1;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    min-height: 100%;
}


/* APPLICATION MOBILE */

.app {

    width: 100%;
    max-width: 430px;

    min-height: 100vh;

    margin: auto;

    background: #090b10;

    position: relative;

    overflow: hidden;

    box-shadow:
        0 0 60px rgba(0,0,0,.8);
}


/* HEADER */

.header {

    padding: 22px 17px 16px;

    background:
        linear-gradient(
            180deg,
            #11151c,
            #090b10
        );

    border-bottom:
        1px solid #222733;
}


.small-title {

    color: #d8ae57;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 1.5px;
}


.brand h1 {

    margin: 5px 0;

    font-size: 31px;
}


.brand p {

    margin: 0;

    color: #929aaa;

    font-size: 13px;
}


/* PROGRESSION */

.progress-container {

    margin-top: 17px;
}


.progress-info {

    display: flex;

    justify-content: space-between;

    font-size: 11px;

    color: #929aaa;

    margin-bottom: 6px;
}


.progress-info strong {

    color: #d8ae57;
}


.progress {

    width: 100%;

    height: 5px;

    background: #242833;

    border-radius: 20px;

    overflow: hidden;
}


.progress div {

    height: 100%;

    width: 0%;

    background: #d8ae57;

    transition:
        width .3s ease;
}


/* CONTENU */

main {

    padding: 15px 14px 90px;
}


.page {

    display: none;
}


.page.active {

    display: block;
}


/* HERO */

.hero {

    padding: 21px;

    border:
        1px solid #272d39;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #181c25,
            #0e1117
        );

    margin-bottom: 15px;
}


.badge {

    display: inline-block;

    padding: 6px 8px;

    border-radius: 6px;

    background: #d8ae57;

    color: #080a0e;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 1px;
}


.hero h2 {

    font-size: 25px;

    line-height: 1.2;

    margin:
        12px 0 9px;
}


.hero p {

    color: #9ba3b1;

    line-height: 1.6;

    font-size: 13px;

    margin-bottom: 17px;
}


/* BOUTONS */

.button {

    border: none;

    border-radius: 10px;

    padding: 12px 13px;

    font-weight: bold;

    font-size: 11px;
}


.primary {

    background: #d8ae57;

    color: #090a0d;
}


.secondary {

    background: #171b23;

    border:
        1px solid #292f3b;

    color: #f1f1f1;
}


.button:active {

    transform: scale(.97);
}


/* STATS */

.stats {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 8px;

    margin-bottom: 23px;
}


.stat {

    background: #11141b;

    border:
        1px solid #242a35;

    border-radius: 13px;

    padding: 13px 7px;

    text-align: center;
}


.stat strong {

    display: block;

    color: #d8ae57;

    font-size: 20px;
}


.stat span {

    color: #858e9e;

    font-size: 9px;
}


/* TITRES */

.section-header {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    margin-bottom: 10px;
}


.section-header h2 {

    font-size: 17px;

    margin: 0;
}


.section-header span {

    font-size: 10px;

    color: #858e9e;
}


/* CARTES LEÇONS */

.lesson-card {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 11px;

    border:
        1px solid #252b37;

    background: #11141b;

    border-radius: 14px;

    padding: 14px;

    margin-bottom: 8px;

    color: #fff;

    text-align: left;
}


.lesson-card:active {

    background: #181c24;
}


.lesson-number {

    min-width: 37px;

    width: 37px;

    height: 37px;

    display: grid;

    place-items: center;

    background: #1d222c;

    color: #d8ae57;

    border-radius: 10px;

    font-weight: bold;

    font-size: 11px;
}


.lesson-info {

    min-width: 0;

    flex: 1;
}


.lesson-info h3 {

    margin: 0 0 4px;

    font-size: 14px;
}


.lesson-info p {

    margin: 0;

    color: #858e9e;

    font-size: 10px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.lesson-check {

    color: #d8ae57;

    font-size: 17px;
}


/* LECTEUR */

.reader-header {

    display: flex;

    gap: 10px;

    align-items: flex-start;

    margin-bottom: 20px;
}


.back-button {

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    border: none;

    border-radius: 10px;

    background: #181c24;

    color: white;

    font-size: 22px;
}


.reader-header h2 {

    margin: 4px 0 0;

    font-size: 20px;
}


/* CONTENU DES LEÇONS */

#lessonContent {

    font-size: 13px;
}


#lessonContent h3 {

    color: #d8ae57;

    font-size: 17px;

    margin:
        24px 0 9px;
}


#lessonContent p {

    color: #a1a8b5;

    line-height: 1.7;

    margin: 9px 0;
}


#lessonContent ul {

    color: #a1a8b5;

    line-height: 1.7;

    padding-left: 21px;
}


#lessonContent li {

    margin: 5px 0;
}


/* CODE */

.code {

    background: #05070a;

    border:
        1px solid #272d38;

    border-radius: 11px;

    padding: 13px;

    margin: 12px 0;

    overflow-x: auto;

    color: #dce1e9;

    font-family:
        Consolas,
        monospace;

    font-size: 11px;

    line-height: 1.7;

    white-space: pre;
}


/* NOTES */

.note {

    background: #171a21;

    border-left:
        3px solid #d8ae57;

    border-radius:
        0 9px 9px 0;

    padding: 12px;

    color: #b8bec9;

    line-height: 1.6;

    margin: 13px 0;
}


.warning {

    border-left-color: #d96c6c;
}


/* NAVIGATION LEÇON */

.lesson-navigation {

    display: grid;

    grid-template-columns:
        1fr 1.3fr 1fr;

    gap: 6px;

    margin-top: 28px;

    padding-bottom: 15px;
}


.lesson-navigation button {

    font-size: 10px;

    padding:
        11px 4px;
}


/* RECHERCHE */

.page-title {

    margin:
        4px 3px 17px;
}


.page-title h2 {

    margin: 5px 0 0;

    font-size: 22px;
}


.search {

    width: 100%;

    padding: 14px;

    border:
        1px solid #272d38;

    border-radius: 12px;

    background: #11141b;

    color: white;

    outline: none;

    margin-bottom: 14px;
}


.search:focus {

    border-color: #d8ae57;
}


/* PROGRESSION */

.progress-card {

    text-align: center;

    padding: 20px;

    background: #11141b;

    border:
        1px solid #272d38;

    border-radius: 16px;

    margin-bottom: 14px;
}


.circle-progress {

    width: 120px;

    height: 120px;

    margin: auto;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background:
        radial-gradient(
            circle,
            #10131a 58%,
            #d8ae57 59%,
            #d8ae57 65%,
            #10131a 66%
        );
}


.circle-progress span {

    font-size: 28px;

    font-weight: bold;

    color: #d8ae57;
}


.progress-card p {

    color: #858e9e;

    font-size: 12px;

    margin-top: 15px;
}


/* BARRE MOBILE */

.bottom-nav {

    position: fixed;

    bottom: 0;

    left: 50%;

    transform:
        translateX(-50%);

    width: 100%;

    max-width: 430px;

    height: 69px;

    background:
        rgba(12,14,19,.97);

    border-top:
        1px solid #242a35;

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    z-index: 100;

    backdrop-filter:
        blur(10px);
}


.nav-button {

    border: none;

    background: transparent;

    color: #70798a;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;

    font-size: 9px;

    font-weight: bold;
}


.nav-button span {

    font-size: 22px;
}


.nav-button.active {
    color: #d8ae57;
}


/* MOBILE STRICT */

@media (min-width: 431px) {

    body {

        display: flex;

        justify-content: center;
    }

    .app {

        min-height: 100vh;
    }
}