* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;

    background-color: #121212;
    background-image: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.85)), url("mur.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 120px;
}

#presentation p {
    line-height: 1.5;

    max-width: 1100px;

    margin: auto;

    font-size: 18px;

    text-align: justify;
    padding: 50px;
}

header {
    background: rgba(31, 31, 31, 0.98);

    height: 120px;

    padding: 0 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    transition: transform 0.6s ease;
}

header h1 {
    display: flex;
    align-items: center;
    margin-left: 50px;

    font-family: 'Pixelify Sans', sans-serif;
    font-size: 42px;
    letter-spacing: 2px;
    color: white;

    text-shadow: 0 0 10px rgba(0, 200, 83, 0.35);
}

header h1 img {
    height: 110px;
    width: auto;
    margin-right: 10px;

    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    transition: 0.3s;
}

header h1 img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 30px;
}

nav a {
    color: white;
    text-decoration: none;

    font-size: 18px;
    font-family: 'Pixelify Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;

    padding: 8px 10px;
    border-radius: 6px;

    text-align: center;
    white-space: nowrap;

    transition: 0.2s;
}

nav a:hover {
    color: #00c853;
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.hero {
    text-align: center;
    padding: 80px 20px;
}

.download-btn {
    background: #00c853;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.download-btn:hover,
button:hover {
    background: #00e05d;
    transform: scale(1.05);
    transition: 0.2s;
}

section {
    padding: 40px;
    background: rgba(48, 48, 48, 0.35);
    margin: 20px;
    border-radius: 10px;
}

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding: 10px;
    scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery img {
    min-width: 45%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.03);
}

.scroll-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;

    font-size: 24px;
    padding: 15px;

    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.scroll-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

select {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    background: #1f1f1f;
    color: white;
}

button {
    padding: 12px 20px;
    font-size: 16px;
    background: #00c853;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(42, 42, 42, 0.98);
    margin-top: 30px;
}

.tutorial-step {
    margin-top: 35px;
    padding: 25px;
    background: rgba(20, 20, 20, 0.45);
    border-radius: 10px;
}

.tutorial-step h4 {
    margin-top: 0;
    font-size: 22px;
    color: #00c853;
}

.tutorial-step img {
    display: block;

    width: 50%;

    margin: 20px auto 0;

    border-radius: 10px;
}

.small-image {
    width: 25% !important;
}

#installation p,
#lancement p,
#desinstallation p,
#installation li,
#lancement li,
#desinstallation li {
    line-height: 1.7;
    font-size: 18px;
}

.pdf-download {
    margin-top: 60px;
    padding-bottom: 40px;

    text-align: center;
}

.pdf-download p {
    margin-bottom: 25px;
}

.info-box {
    margin-top: 20px;
    padding: 20px;

    background: rgba(0, 200, 83, 0.15);

    border-left: 5px solid #00c853;

    border-radius: 8px;
}

.warning-box {
    margin-top: 20px;
    padding: 20px;

    background: rgba(255, 80, 80, 0.15);

    border-left: 5px solid #ff5050;

    border-radius: 8px;
}

.code-box {
    margin-top: 20px;

    padding: 15px;

    background: rgba(0, 0, 0, 0.4);

    border-radius: 8px;

    font-family: monospace;

    font-size: 18px;
}

.controls-table {
    width: 100%;

    border-collapse: collapse;

    margin-top: 30px;
}

.controls-table th,
.controls-table td {
    border: 1px solid rgba(255,255,255,0.15);

    padding: 15px;

    text-align: center;
}

.controls-table th {
    background: rgba(0, 200, 83, 0.2);
}

.dropdown {
    position: relative;
}

.dropdown > a {
    white-space: nowrap;
}

.dropdown-content {

    display: none;

    position: absolute;

    top: 100%;
    right: 0;

    background: rgba(31, 31, 31, 0.98);

    min-width: 240px;

    border-radius: 10px;

    padding: 10px 0;

    box-shadow: 0 0 15px rgba(0,0,0,0.4);

    z-index: 1000;
}

.dropdown-content a {

    display: block;

    padding: 12px 20px;

    margin: 0;

    text-align: left;

    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.language-switch {
    display: flex;
    align-items: center;

    position: relative;
    top: -2px;
}

.language-switch span {

    font-size: 25px;

    cursor: pointer;

    transition: transform 0.2s;

    user-select: none;
}

.language-switch span:hover {

    transform: scale(1.15);
}

.team-container {

    display: flex;

    gap: 20px;

    flex-wrap: wrap;

    justify-content: center;
}

.team-member {

    background: rgba(255,255,255,0.05);

    padding: 20px;

    border-radius: 10px;

    width: 300px;
}

.resources-list li {

    margin-bottom: 10px;
}

.resources-list a {

    color: #00c853;

    text-decoration: none;
}

.resources-list a:hover {

    text-decoration: underline;
}

#project p {

    line-height: 1.6;

    margin-bottom: 25px;

    text-align: justify;
}

@media (max-width: 900px) {

    header {
        height: auto;
        padding: 10px 15px;

        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    header h1 {
        margin-left: 0;
        font-size: 32px;
    }

    header h1 img {
        height: 80px;
    }

    nav {
        width: 100%;

        display: flex;
        justify-content: center;
        align-items: center;

        flex-wrap: wrap;

        gap: 10px;
    }

    nav a {
        margin-left: 0;
        font-size: 16px;
        padding: 6px 8px;
    }

    .dropdown {
        position: static;
    }

    .dropdown-content {
        left: 5vw;
        right: 5vw;
        transform: none;

        width: 90vw;
        min-width: 0;
        max-width: 90vw;

        text-align: center;
    }

    .dropdown-content a {
        text-align: center;
        white-space: normal;
    }

    .language-switch {
        margin-left: 0;
    }

    section {
        margin: 12px;
        padding: 22px;
    }

    #presentation p,
    #project p {
        padding: 0;
        font-size: 16px;
        line-height: 1.6;
        text-align: left;
        max-width: 100%;
    }

    #installation p,
    #lancement p,
    #desinstallation p,
    #installation li,
    #lancement li,
    #desinstallation li {
        font-size: 16px;
        line-height: 1.6;
    }

    .tutorial-step {
        padding: 18px;
    }

    .tutorial-step img {
        width: 100%;
    }

    .small-image {
        width: 80% !important;
    }

    .gallery img {
        min-width: 85%;
        height: 220px;
    }

    .team-member {
        width: 100%;
    }
}

section {
    scroll-margin-top: 140px;
}

@media (max-width: 900px) {

    body {
        padding-top: 250px;
    }

    section {
        scroll-margin-top: 250px;
    }
}

.gallery img {
    cursor: pointer;
}

.image-modal {
    display: none;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.85);

    z-index: 3000;

    justify-content: center;
    align-items: center;

    padding: 20px;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;

    object-fit: contain;

    border-radius: 10px;

    box-shadow: 0 0 25px rgba(0,0,0,0.8);
}

.image-modal-close {
    position: absolute;

    top: 20px;
    right: 30px;

    color: white;

    font-size: 45px;
    font-weight: bold;

    cursor: pointer;

    z-index: 3100;
}

.image-modal-close:hover {
    color: #00c853;
}