/* ==========================================================
   908 Studios Documentation Center
   Main Stylesheet
   ----------------------------------------------------------
   Version : 1.0
   Author  : 908 Studios, lepine908, ChatGPT
   Website : https://lepine908.github.io

   Cette feuille de style est utilisée pour l'ensemble de la
   documentation officielle de 908 Studios.

   © 908 Studios
========================================================== */


/* ==========================================================
   VARIABLES
========================================================== */

:root{

    /* Couleurs principales */

    --background:#07111F;
    --background-light:#0E1B2E;
    --surface:#13243D;
    --surface-light:#1B3354;

    --primary:#00CFFF;
    --primary-hover:#44DBFF;

    --secondary:#49F0C1;

    --text:#F5F8FC;
    --text-light:#C8D3E2;
    --text-dark:#8A97A8;

    --success:#36D17D;
    --warning:#FFC145;
    --danger:#FF6363;

    /* Ombres */

    --shadow-small:
        0 4px 10px rgba(0,0,0,.20);

    --shadow-medium:
        0 10px 25px rgba(0,0,0,.30);

    --shadow-large:
        0 20px 45px rgba(0,0,0,.45);

    /* Bordures */

    --radius-small:8px;
    --radius:16px;
    --radius-large:24px;

    /* Espacements */

    --space-xs:6px;
    --space-s:12px;
    --space-m:20px;
    --space-l:40px;
    --space-xl:80px;

    /* Animations */

    --transition:.25s ease;

}

/* ==========================================================
   RESET
========================================================== */

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

html{

    scroll-behavior:smooth;

}

body{

    background:var(--background);

    color:var(--text);

    font-family:
        Inter,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;

    line-height:1.7;

    overflow-x:hidden;

}

/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar{

    width:12px;

}

::-webkit-scrollbar-track{

    background:var(--background);

}

::-webkit-scrollbar-thumb{

    background:var(--surface-light);

    border-radius:100px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary);

}

/* ==========================================================
   LIENS
========================================================== */

a{

    color:var(--primary);

    text-decoration:none;

    transition:var(--transition);

}

a:hover{

    color:var(--primary-hover);

}

/* ==========================================================
   BARRE DE PROGRESSION
========================================================== */

#progress-bar{

    position:fixed;

    top:0;
    left:0;

    width:0%;

    height:4px;

    background:linear-gradient(
        90deg,
        var(--primary),
        var(--secondary)
    );

    z-index:9999;

}

/* ==========================================================
   BARRE SUPERIEURE
========================================================== */

#topbar{

    position:sticky;

    top:0;

    z-index:500;

    backdrop-filter:blur(14px);

    background:rgba(7,17,31,.85);

    border-bottom:
        1px solid rgba(255,255,255,.05);

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 40px;

}

/* ==========================================================
   LOGO
========================================================== */

.logo-container{

    display:flex;

    align-items:center;

    gap:18px;

}

.logo{

    width:56px;

    height:56px;

    object-fit:contain;

}

.logo-container h1{

    font-size:1.5rem;

    font-weight:700;

}

.subtitle{

    color:var(--text-dark);

    font-size:.9rem;

    margin-top:2px;

}

/* ==========================================================
   BOUTONS DU HEADER
========================================================== */

.top-buttons{

    display:flex;

    gap:15px;

}

.top-buttons button{

    border:none;

    cursor:pointer;

    background:var(--surface);

    color:var(--text);

    padding:10px 18px;

    border-radius:999px;

    transition:var(--transition);

    font-weight:600;

}

.top-buttons button:hover{

    background:var(--primary);

    color:#000;

    transform:translateY(-2px);

}

/* ==========================================================
   STRUCTURE PRINCIPALE
========================================================== */

#layout{

    display:grid;

    grid-template-columns:

        300px

        1fr;

}

/* ==========================================================
   SIDEBAR
========================================================== */

#sidebar{

    position:sticky;

    top:95px;

    height:calc(100vh - 95px);

    overflow:auto;

    padding:35px;

    border-right:

        1px solid rgba(255,255,255,.05);

    background:var(--background-light);

}

.sidebar-title{

    font-size:1.2rem;

    font-weight:700;

    margin-bottom:25px;

}

#searchBox{

    width:100%;

    border:none;

    outline:none;

    padding:14px;

    margin-bottom:25px;

    border-radius:var(--radius-small);

    background:var(--surface);

    color:var(--text);

}

/* ==========================================================
   SOMMAIRE
========================================================== */

#table-of-contents ul{

    list-style:none;

}

#table-of-contents li{

    margin-bottom:8px;

}

#table-of-contents a{

    display:block;

    padding:10px 14px;

    border-radius:10px;

    color:var(--text-light);

    transition:var(--transition);

}

#table-of-contents a:hover{

    background:var(--surface);

    color:var(--primary);

    transform:translateX(6px);

}
/* ==========================================================
   CONTENU PRINCIPAL
========================================================== */

#content{

    padding:60px;

    max-width:1400px;

    width:100%;

    margin:0 auto;

}

/* ==========================================================
   HERO
========================================================== */

.hero{

    position:relative;

    overflow:hidden;

    padding:70px;

    margin-bottom:60px;

    border-radius:var(--radius-large);

    background:
        linear-gradient(
            145deg,
            rgba(0,207,255,.12),
            rgba(73,240,193,.05)
        ),
        var(--surface);

    box-shadow:var(--shadow-large);

}

.hero::before{

    content:"";

    position:absolute;

    width:420px;

    height:420px;

    right:-120px;

    top:-120px;

    border-radius:50%;

    background:rgba(0,207,255,.08);

    filter:blur(25px);

}

.hero::after{

    content:"";

    position:absolute;

    width:260px;

    height:260px;

    left:-80px;

    bottom:-80px;

    border-radius:50%;

    background:rgba(73,240,193,.05);

    filter:blur(30px);

}

.version{

    display:inline-block;

    background:rgba(0,207,255,.15);

    color:var(--primary);

    padding:8px 18px;

    border-radius:999px;

    font-size:.9rem;

    font-weight:600;

    margin-bottom:25px;

}

.hero h2{

    font-size:3rem;

    line-height:1.2;

    margin-bottom:25px;

}

.hero p{

    max-width:850px;

    color:var(--text-light);

    font-size:1.1rem;

}

.hero-buttons{

    display:flex;

    flex-wrap:wrap;

    gap:20px;

    margin-top:40px;

}

/* ==========================================================
   BOUTONS
========================================================== */

.primary-button,
.secondary-button,
.text-button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    transition:var(--transition);

    font-weight:600;

}

.primary-button{

    background:var(--primary);

    color:#061018;

    padding:15px 30px;

    border-radius:999px;

    box-shadow:var(--shadow-small);

}

.primary-button:hover{

    background:var(--primary-hover);

    transform:translateY(-3px);

}

.secondary-button{

    border:1px solid rgba(255,255,255,.08);

    background:transparent;

    color:var(--text);

    padding:15px 30px;

    border-radius:999px;

}

.secondary-button:hover{

    background:var(--surface-light);

    transform:translateY(-3px);

}

.text-button{

    margin-top:25px;

    color:var(--primary);

}

.text-button:hover{

    transform:translateX(6px);

}

/* ==========================================================
   SECTION STANDARD
========================================================== */

.doc-section{

    margin-bottom:70px;

    animation:fadeUp .7s ease;

}

.doc-section h2{

    font-size:2rem;

    margin-bottom:25px;

}

.doc-section p{

    color:var(--text-light);

    margin-bottom:18px;

}

/* ==========================================================
   ETIQUETTES
========================================================== */

.section-tag{

    display:inline-block;

    margin-bottom:15px;

    padding:8px 16px;

    background:rgba(73,240,193,.08);

    color:var(--secondary);

    border-radius:999px;

    font-size:.9rem;

    font-weight:600;

}

/* ==========================================================
   CARTE INFORMATION
========================================================== */

.information-card{

    background:var(--surface);

    border-radius:var(--radius);

    padding:45px;

    margin-bottom:70px;

    box-shadow:var(--shadow-medium);

}

.information-card h3{

    font-size:1.6rem;

    margin-bottom:20px;

}

.information-card p{

    color:var(--text-light);

}

.info-grid{

    display:grid;

    grid-template-columns:

        repeat(auto-fit,minmax(200px,1fr));

    gap:20px;

    margin-top:35px;

}

.info-grid div{

    background:rgba(255,255,255,.03);

    padding:20px;

    border-radius:var(--radius-small);

    transition:var(--transition);

}

.info-grid div:hover{

    transform:translateY(-4px);

    background:rgba(255,255,255,.05);

}

/* ==========================================================
   MINI CARTES
========================================================== */

.card-grid{

    display:grid;

    grid-template-columns:

        repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

    margin-top:35px;

}

.mini-card{

    background:var(--surface);

    border-radius:var(--radius);

    padding:28px;

    transition:var(--transition);

    box-shadow:var(--shadow-small);

}

.mini-card:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow-large);

}

.mini-card h3{

    margin-bottom:18px;

}

.mini-card p{

    color:var(--text-light);

}

/* ==========================================================
   ENCADRÉS
========================================================== */

.notice{

    margin-top:35px;

    padding:28px;

    border-left:5px solid var(--primary);

    border-radius:var(--radius-small);

    background:rgba(255,255,255,.03);

}

.notice h3{

    margin-bottom:15px;

}

.notice.info{

    border-color:var(--primary);

}

.notice.success{

    border-color:var(--success);

}

.notice.warning{

    border-color:var(--warning);

}

.notice.danger{

    border-color:var(--danger);

}
 
/* ==========================================================
   LISTES (CHECK LIST)
========================================================== */

.check-list{

    list-style:none;

    margin-top:20px;

}

.check-list li{

    position:relative;

    padding-left:28px;

    margin-bottom:12px;

    color:var(--text-light);

}

.check-list li::before{

    content:"✓";

    position:absolute;

    left:0;

    top:0;

    color:var(--success);

    font-weight:700;

}

/* ==========================================================
   LISTES DE DÉFINITION (MENTIONS LÉGALES)
========================================================== */

.definition-list{

    display:grid;

    grid-template-columns:200px 1fr;

    gap:12px 25px;

    margin-top:25px;

}

.definition-list dt{

    font-weight:700;

    color:var(--text);

}

.definition-list dd{

    color:var(--text-light);

}

/* ==========================================================
   ALIGNEMENT GÉNÉRAL DES BLOCS
========================================================== */

hr{

    border:none;

    height:1px;

    background:rgba(255,255,255,.06);

    margin:60px 0;

}

/* ==========================================================
   PETITS EFFETS DE TEXTE
========================================================== */

strong{

    color:var(--text);

}

code{

    background:rgba(0,0,0,.3);

    padding:3px 6px;

    border-radius:6px;

    font-size:.9rem;

    color:var(--primary);

}

/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* Animation légère sur les sections */

.doc-section{

    animation:fadeUp .6s ease both;

}

/* ==========================================================
   SCROLL SMOOTH + OFFSET ANCHORS
========================================================== */

:target{

    scroll-margin-top:120px;

}

/* ==========================================================
   RESPONSIVE TABLETTE
========================================================== */

@media (max-width: 1024px){

    #layout{

        grid-template-columns:1fr;

    }

    #sidebar{

        position:relative;

        height:auto;

        top:0;

    }

    #content{

        padding:40px;

    }

    .hero{

        padding:50px;

    }

    .hero h2{

        font-size:2.3rem;

    }

}

/* ==========================================================
   RESPONSIVE MOBILE
========================================================== */

@media (max-width: 600px){

    #topbar{

        flex-direction:column;

        gap:15px;

        text-align:center;

    }

    #content{

        padding:25px;

    }

    .hero{

        padding:30px;

    }

    .hero h2{

        font-size:1.8rem;

    }

    .hero-buttons{

        flex-direction:column;

    }

    .definition-list{

        grid-template-columns:1fr;

    }

}

/* ==========================================================
   FIN DU STYLE (BASE)
========================================================== */
