/* BODY */
:root {
    --navbar-width: 100px;
    --navbardocs-width: 271px;
}

html {
    background-color: #0f0f11; /* même couleur que ton site */
    margin: 0;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    margin: 0;
    background-color: #0f0f11;
    color: #fff;
}

.body404 {
    display: flex !important;
    flex-direction: column !important;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--navbar-width); /* largeur dynamique */
    height: 100vh;
    background-color: #0f0f11;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    align-items: center;
    border-right: 2px solid #252022;
    z-index: 1000;
}

/* Tous les éléments de la navbar */
.navbar_item {
    text-decoration: none;
    color: #ccc;
    width: 100%;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.version{
    margin-bottom: 50px;
    font-size: 0.9em;
    color: #8a8a8a;
}

.links {
    margin: 10px 0px;
}

/* HOVER */
.navbar_item:hover {
    color: #ffffff;
}

/* ACTIVE lors du clic */
.navbar_item:active {
    color: #ffffff;
}

/* Classe .active (permanent) */
.navbar_item.active {
    color: #ffffff;
}

/* Ligne droite pour actif */
.navbar_item.active::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background-color: #ffffff;
}

/* CONTENT CONTAINER */
.content-container {
    display: flex;
    flex: 1;
}

/* SOUS-NAVIGATION */
.subnav {
    position: fixed;      /* pour qu'elle reste visible au scroll */
    top: 0;               /* ancrage en haut de la fenêtre */
    left: 100px;          /* décalage à droite de la navbar principale */
    height: 100vh;        /* prend toute la hauteur de la fenêtre */
    width: 150px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #252022;
    padding: 20px 0px 20px 20px;
    z-index: 900;         /* moins que la navbar principale pour rester en dessous si nécessaire */
}


/* Liens de la sous-navigation */
.subnav_item {
    color: #ccc;
    text-decoration: none;
    padding: 10px 0;
    position: relative;
}

.subnav_item:hover {
    color: #ffffff;
}

.subnav_item.active {
    color: rgba(219, 44, 44);
}

/* Ligne droite pour sous-nav actif */
.subnav_item.active::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background-color: rgba(219, 44, 44);;
}

/* CONTENT PRINCIPAL */
.content {
    margin-left: var(--navbar-width); /* toujours à droite de la navbar */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.content-docs {
    flex: 1;
    display: flex; /* pour que section1 prenne toute la place */
    flex-direction: column;
    margin-left: var(--navbardocs-width);
    align-items: center;
    justify-content: center;
}

.content-install{
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: var(--navbar-width);
}

.content-install .section2 {
    flex: 1;
    display: flex; /* pour que section1 prenne toute la place */
    flex-direction: column;
    margin-left: 100px;
    align-items: center;
    justify-content: center;
}

.content-install .section2-install{
    flex: 1;
    display: flex; /* pour que section1 prenne toute la place */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section2-install {
    text-align: center;
    padding: 100px 20px;
    background-color: #0f0f11;
    color: #fff;
    margin-left: 0;
}

/* TEXTE */
p {
    line-height: 1.6;
}

/* SECTION 1 */

.part1 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.part1 > img {
    margin-right: 35px;
}

.part2 {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-start {
    background-color: black;
    color: white;
    border: 1px rgba(219, 44, 44) solid;
    border-radius: 7px;
    height: 100%;
    width: 165px;;
    font-size: 1.05em;
    font-weight: bold;
    padding: 15px 0px;
    margin-top: 50px;
    cursor: pointer;

    /* Animation pour le hover */
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.button-start > a {
    text-decoration: none;
    color: white;
}

.button-start:hover {
    background-color: rgba(219, 44, 44, 1);
    color: white;
    border: 1px rgba(219, 44, 44, 1) solid;
}


.part2 > p {
    font-size: 1.5em;
    font-weight: bold;
    display: inline-block; /* nécessaire pour translate */
    animation: floatText 3s ease-in-out infinite alternate;
}

@keyframes floatText {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

.section1 {
    display: flex;
    flex-direction: column;
    align-items: center; /* centre verticalement */
    justify-content: center; /* centre horizontalement */

    width: 100%; /* prend toute la largeur */

    /* Dégradé rouge en bas à gauche, sans motif */
    background: linear-gradient(to bottom left, #0f0f11 50%, rgba(219, 44, 44, 0.5) 100%);
    background-repeat: no-repeat;
    background-size: cover; /* couvre toute la section */
    background-color: transparent;

    padding-top: 125px;
    padding-bottom: 100px;
}

.section1 h1 {
    font-size: 7em;
    font-weight: bold;

    /* Gradient rouge → noir répété pour loop fluide */
    background: linear-gradient(90deg, rgba(219, 44, 44, 1), #000000, rgba(219, 44, 44, 1), #000000, rgba(219, 44, 44, 1));
    background-size: 400% 100%; /* gradient très large pour mouvement continu */

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: gradientAnimation 20s linear infinite; /* durée plus longue pour fluidité */
}

.section1404 {
    display: flex;
    flex-direction: column;
    align-items: center; /* centre verticalement */
    justify-content: center; /* centre horizontalement */

    width: 100%; /* prend toute la largeur */

    /* Dégradé rouge en bas à gauche, sans motif */
    background: linear-gradient(to bottom left, #0f0f11 50%, rgba(219, 44, 44, 0.5) 100%);
    background-repeat: no-repeat;
    background-size: cover; /* couvre toute la section */
    background-color: transparent;

    padding-top: 140px;
    padding-bottom: 140px;
}

.section1404 h1 {
    font-size: 7em;
    font-weight: bold;

    /* Gradient rouge → noir répété pour loop fluide */
    background: linear-gradient(90deg, rgba(219, 44, 44, 1), #000000, rgba(219, 44, 44, 1), #000000, rgba(219, 44, 44, 1));
    background-size: 400% 100%; /* gradient très large pour mouvement continu */

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: gradientAnimation 20s linear infinite; /* durée plus longue pour fluidité */
}

@keyframes gradientAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -200% 0;

    }
}

.section2 {
    text-align: center;
    padding: 100px 20px;
    background-color: #0f0f11;
    color: #fff;
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 50px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    position: relative;
}

/* Ajout des barres verticales entre les éléments */
.feature + .feature {
    position: relative;
    padding-left: 40px; /* espace pour la barre */
}

.feature + .feature::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 2px;
    background-color: #555; /* couleur de la barre */
}

.feature {
    max-width: 250px;
}

.feature .icon {
    font-size: 2.5em;
    color: #DB2C2C;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.feature p {
    color: #ccc;
    line-height: 1.5;
}



/* FOOTER */
.footer {
    background-color: #0f0f11; /* même couleur que la navbar */
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #252022; /* petite séparation */
    font-size: 0.9em;
}

/* Liens du footer */
.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Loader full screen */
/* Loader caché par défaut */
/* Loader full screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: none; /* caché par défaut, affiché via JS */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease;
    flex-direction: column;
}

#loader>h1 {
    font-size: 3.5em;
    font-weight: bold;
    margin-top: 50px;
}

/* SVG contour et remplissage */
path.draw {
    fill: none;
    stroke: #DB2C2C;
    stroke-width: 2;
}
path.fill {
    fill: #DB2C2C;
    opacity: 0;
    transition: opacity 1s ease;
}

svg {
    width: 800px;
    height: 200px;
    overflow: visible;
    background: none;
}


/* Animation pour dessiner le contour */
@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Animation pour remplir le logo après le tracé */
@keyframes fillLogo {
    to {
        fill: #DB2C2C;
    }
}

.section3 {
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, #0f0f11 50%, rgba(219, 44, 44, 0.5) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 0px;
}

.cases{
    border: 1px solid rgba(219, 44, 44, 0.4);
    border-radius: 5px;
    padding: 10px 15px 10px 25px;
    background-color: #0F0F11FF;
    margin: 0px 20px;
    transition: background-color 0.20s ease;
    text-decoration: none;
    color: white;
    height: 250px;
    width: 43%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.cases:hover{
    background-color: #161618;
    cursor: pointer;
}

.icon-big {
    font-size: 55px;
    color: rgba(219, 44, 44);
}

.section3-part2 {
    width: 82%;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-around;
}

.section3-part2:hover>.section3-btn{
    color: #DB2C2C;
    transition: background-color 0.20s ease;
}

.section3-part2 h2 {
    font-size: 20px;
}

.section3-desc{
    color: #8a8a8a;
}

.section3-row{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.cases:hover .section3-btn {
    color: #DB2C2C;
}

/* ==========================
   INSTALL SECTION
========================== */

/* Conteneur général */
.install-options {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2rem;
    width: 100%;
}

/* Chaque boîte install */
.install-box {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #161618;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(219, 44, 44, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box; /* Ajouté pour inclure padding dans la largeur */
}


/* Texte à gauche / droite */
.install-text.left { text-align: left; }
.install-text.right { text-align: right; }

.install-text h3 {
    margin: 0 0 5px;
    color: #DB2C2C;
    font-size: 1.5em;
}

.install-text p {
    margin: 0;
    color: #ccc;
    font-size: 0.95em;
}

/* Input code style */
.install-code {
    position: relative;
    width: 100%;
}

.install-code input {
    width: 100%;
    padding: 10px 40px 10px 10px; /* padding-right pour le bouton */
    border-radius: 6px;
    border: 1px solid #333;
    background-color: #0f0f11;
    color: #fff;
    font-family: monospace;
    font-size: 0.95em;
    outline: none;
    white-space: nowrap;
    overflow-x: auto;
    text-overflow: ellipsis;
    box-sizing: border-box; /* correction importante */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.install-code input:focus {
    border-color: #DB2C2C;
    box-shadow: 0 0 5px rgba(219, 44, 44, 0.5);
}

/* Scrollbar discrète pour l'input */
.install-code input::-webkit-scrollbar { height: 6px; }
.install-code input::-webkit-scrollbar-thumb { background: rgba(219,44,44,0.5); border-radius: 3px; }
.install-code input::-webkit-scrollbar-track { background: #0f0f11; }

.copy-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #fff;
    transition: color 0.2s ease, transform 0.2s ease;
}

.copy-btn:hover {
    color: #DB2C2C;
}

/* Encadré "Copied" */
.copied-msg {
    position: absolute;
    top: -25px; /* au-dessus du bouton */
    right: 0;
    background-color: #DB2C2C;
    color: #fff;
    font-size: 0.7em;
    padding: 2px 5px;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.copied-msg.show {
    opacity: 1;
    transform: translateY(-5px); /* léger mouvement vers le haut */
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 800px) {
    .install-options {
        flex-direction: column;
    }
    .install-text.right { text-align: left; }
}

/* Icône ... déjà présente dans ta nav */
#openMenuBtn {
    cursor: pointer;
}

/* === MENU COULISSANT === */
/* MENU à côté de la navbar, aligné avec le bouton "..." */
.sidebar-icons {
    position: fixed;
    left: var(--navbar-width);    /* juste à droite de la navbar */
    bottom: 20px;                 /* même distance du bas que le bouton */
    width: 70px;
    height: auto;                 /* prend juste la hauteur du contenu */
    background: #0f0f11;

    border: 2px solid #252022;
    border-radius: 0px 5px 5px 0px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 20px 0px;
    pointer-events: none;         /* désactivé quand fermé */

    opacity: 0;                   /* invisible au départ */
    transform: scale(0.95);       /* légèrement réduit au départ */
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sidebar-icons.open {
    opacity: 1;
    transform: scale(1);          /* taille normale à l’ouverture */
    pointer-events: auto;         /* activé quand ouvert */
}


#openMenuBtn {
    margin-top: auto;      /* pousse en bas */
    margin-bottom: 35px;   /* petit espace depuis le bas */
    cursor: pointer;
}




.sidebar-icons a {
    color: #bfbfbf;
    font-size: 22px;
    transition: .2s ease;
}

.sidebar-icons a:hover {
    scale: 1.15;
    color: white;
}

/* Overlay si tu veux assombrir derrière */
#menuOverlay {
    display: none;
}

#menuOverlay.open {
    display: block;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 2rem;
}

.footer-left, .footer-right {
    flex: 1;
    min-width: 200px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* texte aligné à gauche */
    text-align: left;        /* assure l'alignement à gauche */
    flex: 0 0 40%;           /* largeur fixe de 40% */
    max-width: 300px;
    margin-left: 370px;      /* largeur minimale pour mobile */
}

.footer-left>p>a {
    text-decoration: none;
    color: white;
}

.footer-left>p>a:hover {
    text-decoration: underline;
    color: rgba(219, 44, 44, 0.8);
}


.footer-left p {
    line-height: 1.4;
    word-break: break-word;
    margin-bottom: 10px;
}

.footer-left2, .footer-right {
    flex: 1;
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-left2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* texte aligné à gauche */
    text-align: left;        /* assure l'alignement à gauche */
    flex: 0 0 40%;           /* largeur fixe de 40% */
    max-width: 565px;
}

.footer-left2>p>a {
    text-decoration: none;
    color: white;
}

.footer-left2>p>a:hover {
    text-decoration: underline;
    color: rgba(219, 44, 44, 0.8);
}


.footer-left2 p {
    line-height: 1.4;
    word-break: break-word;
    margin-bottom: 10px;
}

.footer-brand {
    display: flex;
    align-items: center; /* centre verticalement logo et nom */
    gap: 0.5rem;        /* espace entre logo et nom */
    margin-bottom: 1rem; /* espace sous le bloc brand */
}

.footer-brand>h2 {
    color:white;
    font-weight: bold;
    font-size: 1.5em;
}

.footer-links a {
    display: block;
    margin: 1.4rem 0px;
    text-decoration: none;
    color: inherit;
    width: 115px;
}

/* Footer fullscreen */
.footer-fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* centre verticalement */
    align-items: center;       /* centre horizontalement */     /* prend toute la hauteur de l'écran */
    width: 100%;
    background-color: #0f0f11;
    color: #ccc;
    padding: 40px 20px;
    box-sizing: border-box;
}

.footer-container-fullscreen {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1200px;
}

.footer-left-fullscreen, .footer-right-fullscreen {
    flex: 1;
    min-width: 250px;
}

.footer-left-fullscreen {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 420px;
}

.footer-right-fullscreen {
    display: flex;
    justify-content: center;
}

.footer-left-fullscreen {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-left-fullscreen p, .footer-left-fullscreen a {
    color: #ccc;
    margin: 5px 0;
}

.footer-left-fullscreen a:hover {
    color: rgba(219, 44, 44, 0.8);
    text-decoration: underline;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-brand h2 {
    color: white;
    font-size: 1.8em;
    font-weight: bold;
}

.footer-logo {
    width: 60px;
    height: auto;
}

.footer-links-fullscreen {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-fullscreen a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-fullscreen a:hover {
    color: #ffffff;
}

.footer-copy-fullscreen {
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container-fullscreen {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left-fullscreen, .footer-right-fullscreen {
        min-width: auto;
    }
}

.docs-title{
    font-size: 2em;
    margin-top: 40px;
}

.lines {
    margin: 10px 0px 10px 0px;
    display: flex;
    flex-direction: row;
}

.line {
    height: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0px;
    border: 2px solid #252022;
    border-radius: 4px;
    margin: 0px 20px;
}

.column{
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 40px 0px 40px 0px;
}

.install-box.npm {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centre verticalement */
    height: 100%; /* s'assure que la boîte prend toute la hauteur disponible */
}