@import url('../../css/couleur.css');

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

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

html {
    scroll-behavior: smooth;
}

/* =====================================================
   BODY
===================================================== */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    background:
        radial-gradient(circle at top left,
            rgba(57, 255, 20, 0.08),
            transparent 35%),

        radial-gradient(circle at bottom right,
            rgba(26, 255, 122, 0.08),
            transparent 35%),

        var(--color-bg);

    color: var(--color-text);

    line-height: 1.7;

    overflow-x: hidden;
}

#particles-bg {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: -1;

    background: var(--color-bg);
}

/* =====================================================
   LAYOUT
===================================================== */

main {
    display: flex;
    justify-content: center;
}

.content {
    width: 100%;
    max-width: 1000px;

    padding: 3rem 1.5rem 6rem;
}

/* =====================================================
   TITRE PRINCIPAL
===================================================== */

.Titre h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);

    font-weight: 800;

    letter-spacing: -1px;

    color: var(--color-neon);

    text-shadow:
        0 0 14px rgba(57, 255, 20, 0.35);

    animation: fadeSlideIn 0.8s ease forwards;
}

/* =====================================================
   SECTIONS
===================================================== */

section {
    position: relative;

    padding-left: 3.5rem;

    margin-bottom: 4rem;

    opacity: 1;

    transform: translateY(0);

    background: rgba(0, 30, 0, 0.42);

    border: 1px solid rgba(57, 255, 20, 0.08);

    border-radius: 18px;

    padding-top: 24px;
    padding-right: 24px;
    padding-bottom: 24px;

    backdrop-filter: blur(6px);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

section:hover {
    border-color: rgba(57, 255, 20, 0.25);

    transform: translateY(-3px);

    box-shadow:
        0 0 24px rgba(57, 255, 20, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Ligne verticale */

section::before {
    content: "";

    position: absolute;

    left: 14px;
    top: 24px;
    bottom: 24px;

    width: 2px;

    background:
        linear-gradient(
            to bottom,
            var(--color-neon),
            transparent
        );
}

/* Point */

section::after {
    content: "";

    position: absolute;

    left: 6px;
    top: 24px;

    width: 18px;
    height: 18px;

    background-color: var(--color-neon);

    border-radius: 50%;

    box-shadow:
        0 0 14px rgba(57, 255, 20, 0.55);
}

/* =====================================================
   TITRES DE SECTION
===================================================== */

section h2 {
    font-size: 1.6rem;

    margin-bottom: 1rem;

    color: var(--color-hover);

    text-shadow:
        0 0 10px rgba(26, 255, 122, 0.25);
}

/* =====================================================
   BLOCS DE TEXTE
===================================================== */

.Description-installation-esxi,
.description-configuration-esxi,
.texte-prerequis,
.texte-configuration {
    margin-top: 1.5rem;

    padding-left: 1.2rem;

    border-left: 3px solid rgba(57, 255, 20, 0.4);
}

/* =====================================================
   LISTES
===================================================== */

ul {
    margin-left: 1.2rem;
    margin-top: 1rem;
}

ul li {
    margin-bottom: 0.6rem;

    color: var(--color-text-muted);
}

/* =====================================================
   IMAGES
===================================================== */

img {
    max-width: 100%;

    margin: 2rem 0;

    border-radius: 14px;

    border: 1px solid rgba(57, 255, 20, 0.12);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.55),
        0 0 18px rgba(57, 255, 20, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

img:hover {
    transform: scale(1.03) translateY(-5px);

    border-color: rgba(57, 255, 20, 0.3);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 0 28px rgba(57, 255, 20, 0.12);
}

/* =====================================================
   BOUTON RETOUR
===================================================== */

.back-btn {
    position: fixed;

    top: 20px;
    left: 20px;

    padding: 10px 18px;

    border: 1px solid rgba(57, 255, 20, 0.25);

    border-radius: 10px;

    color: var(--color-neon);

    text-decoration: none;

    background: rgba(0, 30, 0, 0.82);

    backdrop-filter: blur(8px);

    font-family: 'Courier New', monospace;

    font-size: 14px;

    transition: all 0.3s ease;

    z-index: 100;
}

.back-btn:hover {
    background: var(--color-neon);

    color: var(--color-bg);

    box-shadow:
        0 0 18px rgba(57, 255, 20, 0.4);

    transform: translateY(-2px);
}

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

.suite {
    display: flex;

    justify-content: space-between;

    gap: 1rem;

    margin-top: 5rem;
}

.btn-suite {
    padding: 0.8rem 1.6rem;

    background-color: transparent;

    border: 2px solid rgba(57, 255, 20, 0.4);

    color: var(--color-hover);

    font-weight: 600;

    border-radius: 999px;

    transition: all 0.3s ease;
}

.btn-suite:hover {
    background-color: var(--color-neon);

    color: var(--color-bg);

    transform: scale(1.05);

    box-shadow:
        0 0 18px rgba(57, 255, 20, 0.35);
}

/* =====================================================
   ANIMATION CLÉS
===================================================== */

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {

    section {
        padding-left: 2.5rem;
    }

    section::before {
        left: 10px;
    }

    section::after {
        left: 2px;
    }

    .suite {
        flex-direction: column;
    }

    .btn-suite {
        width: 100%;
        text-align: center;
    }
}

/* =====================================================
   SCROLL TOP
===================================================== */

#scrollTop {
    position: fixed;

    bottom: 32px;
    right: 32px;

    width: 44px;
    height: 44px;

    background: rgba(0, 30, 0, 0.9);

    border: 1px solid rgba(57, 255, 20, 0.25);

    border-radius: 14px;

    color: var(--color-neon);

    font-size: 1.2rem;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 0 16px rgba(57, 255, 20, 0.22);

    backdrop-filter: blur(8px);

    z-index: 9999;

    opacity: 0;

    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;

    pointer-events: none;
}

#scrollTop.visible {
    opacity: 1;

    transform: translateY(0);

    pointer-events: all;
}

#scrollTop:hover {
    background: var(--color-neon);

    color: var(--color-bg);

    box-shadow:
        0 0 28px rgba(57, 255, 20, 0.5);

    transform: translateY(-3px);
}