body {
    margin: 0;
    background-color: #fff;
    overflow-x: hidden;
}

::selection {
    background-color: transparent;
}

::-moz-selection {
    background-color: transparent;
}

.highlighted {
    position: relative;
    display: inline-block;
    background-image: url('../img/highlight.png');
    background-size: 100% 300%;
    background-position: center;
    pointer-events: none;
}

@font-face {
    font-family: "Hermetico";
    src: url("../fonts/Hermetico-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Elite Math";
    src: url("../fonts/Elite-Math-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Typewriter";
    src: url("../fonts/Typewriter-215F.otf") format("opentype");
}

.navbar {
    position: fixed;
    z-index: 12;
    height: 100px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 100px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.navbar-img {
    position: fixed;
    height: 130px;
    z-index: 10;
}

.navbar-img.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(100px);
}

.navbar-logo {
    height: 70px;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 30px;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.hamburger-menu .line {
    border: 3px solid #000;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    background-color: #000;
}

.hamburger-menu.active .line1 {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 100%;
}

.hamburger-menu.active .line2 {
    opacity: 0;
}

.hamburger-menu.active .line3 {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 100%;
}

.navbar-menu {
    display: flex;
    gap: 30px;
}

.navbar-menu a {
    text-decoration: none;
    position: relative;
    color: #000;
}

.navbar-menu.active a {
    color: #000;
}

.navbar-menu span {
    font-family: "Hermetico";
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.navbar-menu.active span::after {
    background-color: #000;
}

.navbar-menu span::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: calc(100% - 15%);
    background-color: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-menu a:nth-of-type(2) span::after,
.navbar-menu a:nth-of-type(4) span::after {
    border-right: 1px solid #000;
}

.navbar-menu.active a:nth-of-type(2) span::after,
.navbar-menu.active a:nth-of-type(4) span::after {
    border-right: 1px solid #000;
}

.navbar-menu a:hover span::after {
    opacity: 1;
    animation: blink-cursor 1s steps(20, start) infinite;
}

@keyframes blink-cursor {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 180px;
    background-color: #fff;
    z-index: 9;
    overflow: hidden;
}

.materiel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.materiel h1 {
    margin: 0;
    font-family: "Hermetico";
    text-transform: uppercase;
}

.materiel-container {
    position: relative;
    min-width: 1000px;
    max-width: 1200px;
    width: 100%;
    height: 750px;
    margin: 0 auto;
}

.materiel-container img {
    position: absolute;
}

.materiel-brand {
    top: 200px;
    left: 25%;
    width: 180px;
    transform: translateY(-100%);
    cursor: pointer;
    z-index: 10;
}

.materiel-image {
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

.materiel-image:hover {
    scale: 1.05;
}

.materiel-description {
    position: absolute;
    top: 55%;
    left: 35%;
    transform: translate(-50%, -50%);
    width: 500px;
    padding: 40px;
    background-color: #fff;
    font-size: 18px;
    z-index: 4;
    line-height: 25px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.materiel-description p {
    font-family: "Typewriter";
    margin: 0;
    height: 100%;
}

.materiel-illustration {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.materiel-video {
    position: absolute;
    width: 500px;
    right: 100px;
    top: 5%;
}

.materiel-video:hover .materiel-video-overlay {
    opacity: 0.3;
}

.materiel-video-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: #000;
    z-index: 2;
}

.materiel-video-button, .materiel-video-overlay {
    transition: all 0.3s ease;
}

.materiel-video-button {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background-color: transparent;
    z-index: 5;
    cursor: pointer;
    border: none;
    padding: 0;
    outline: none;
}

.materiel-video-button img:hover {
    scale: 1.1;
}

.materiel-video-button img {
    width: 64px;
    transition: all 0.3s ease;
}

.prodcard-button img:hover {
    scale: 1.1;
}

.materiel-video .materiel-video-miniature {
    position: relative;
    width: 100%;
}

.materiel-video .materiel-video-layer {
    width: 102%;
    z-index: 3;
}

.materiel-selector {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    height: 16px;
    z-index: 10;
}

.materiel-selector button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 16px;
    height: 16px;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    background-image: url("../img/dot.png");
    background-size: 100% 100%;
    outline: none;
}

.materiel-selector button.active {
    background-image: url("../img/full-dot.png");
}

.materiel-selector button:hover {
    scale: 1.1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
}

.modal-content.fullscreen {
    display: flex;
    align-items: center;
    width: 100vw;
    height: 100vh;
    max-width: none;
}

/* Bouton de fermeture */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    cursor: pointer;
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.close:hover,
.close:focus {
    scale: 1.1;
}

#modalVideo {
    width: 100%;
    height: auto;
}

/* Video container */
.video-container {
    display: flex;
    position: relative;
    overflow: hidden;
}

/* Hide default video controls */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Custom controls */
.custom-controls {
    position: absolute;
    opacity: 1;
    bottom: -1px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    color: white;
    transition: opacity 0.3s ease;
}

/* Style for control buttons */
.custom-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.custom-controls img {
    width: 20px;
    height: auto;
}

/* Style for progress bar */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    height: 10px; /* Ajustez selon vos besoins */
    background: url('../img/progressbarbackground.png') no-repeat center;
    background-size: 100% auto;
}

.progress-bar {
    display: flex;
    width: 100%;
    height: 100%; /* Ajustez selon vos besoins */
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    position: absolute;
    z-index: 2;
}

.progress-bar::-webkit-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    width: 18px; /* Ajustez selon vos besoins */
    height: 18px; /* Ajustez selon vos besoins */
    background: url('../img/cursor.png') no-repeat center;
    background-size: cover;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.progress-bar::-webkit-slider-runnable-track {
    height: 10px; /* Ajustez selon vos besoins */
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Time display */
.time-display {
    font-family: "Typewriter";
    font-size: 14px;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: #fff;
    z-index: 9;
    min-height: 50px;
    height: auto;
    padding-bottom: 20px;
    font-family: "Typewriter";
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 20px;
    gap: 20px;
}

.footer-section {
    display: inline-block;
    padding: 0 20px;
}

.footer-section.about span {
    display: flex;
}

.footer-section.links h2 {
    text-align: center;
}

.footer-section.links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    list-style: none;
    padding: 0;
    white-space: nowrap;
    column-gap: 10px;
}

.footer-section.links ul li::before {
    display: inline-block;
    content: "\2013";
    margin-right: 3px;
    font-family: "Elite Math";
    font-weight: bold;
}

.footer-section.contact {
    white-space: nowrap;
}

.footer-section.contact a {
    text-decoration: none!important;
}

.footer-section h2 {
    margin-bottom: 10px;
    color: #000;
    font-family: "Hermetico";
    text-transform: uppercase;
    white-space: nowrap;
}

.footer-section p {
    margin: 0 0 10px;
}

.footer-section a {
    color: #000;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section .social-icons {
    display: flex;
    gap: 10px;
}

.footer-section .social-icon {
    color: #333;
    width: 20px;
    height: 20px;
    font-size: 18px;
    text-decoration: none;
}

.footer-section .social-icon img {
    width: 100%;
    height: 100%;
}

.footer-section .social-icon img:hover {
    scale: 1.1;
}

footer img {
    height: 50px;
}

.copyright {
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    font-family: "Typewriter";
    font-size: 16px;
    min-width: 280px;
    padding: 15px;
}

.copyright .attribution {
    position: relative;
}

.copyright .attribution::before{
    content: "Coded by Charlie";
    color: #000;
    animation: words 20s infinite;
}

.copyright .attribution::after{
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    background-color: #fff;
    border-left: 2px solid #000;
    right: -8px;
    animation: cursor .8s infinite, typing 20s steps(20) infinite;
}

@keyframes cursor {
    to{
        border-left: 2px solid #ff7f5000;
    }
}

@keyframes words {
    0%,20% {
        content: "Coded by Charlie";
    }
    21%,40% {
        content: "Designed by Charlie";
    }
    41%,60% {
        content: "Coded by Charlie";
    }
    61%,80% {
        content: "Designed by Charlie";
    }
    81%,100% {
        content: "Propulsed by CVA Prod.";
    }
}

@keyframes typing {
    10%,15%,30%,35%,50%,55%,70%,75%,90%,95%{
        width: 0;
    }
    5%,20%,25%,40%,45%,60%,65%,80%,85%{
        width: calc(100% + 8px);
    }
}

@media screen and (max-width: 1100px) {
    .materiel-item {
        position: relative;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    
    .materiel-illustration {
        position: relative;
        display: flex;
        justify-content: center;
        order: 0;
    }

    .materiel-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        min-width: auto;
        padding-top: 25px;
        padding-bottom: 50px;
    }

    .materiel-brand {
        position: relative!important;
        top: 0;
        left: 0;
        transform: translateY(0);
        order: 1;
    }

    .materiel-description {
        position: relative;
        top: 0;
        left: 0;
        transform: translate(0);
        order: 3;
        width: 100%;
        padding: 20px;
        font-size: 14px;
        line-height: 1.5;
    }

    .materiel-video {
        position: relative;
        right: 0;
        display: flex;
    }

    .materiel-image {
        position: relative!important;
        right: auto;
        top: auto;
        transform: translate(0);
        order: 4;
        max-width: 80%;
        width: auto!important;
        max-height: 200px;
        right: 0!important;
    }

    .materiel-image.deported {
        right: 0!important;
    }

    .materiel-selector {
        position: relative;
        left: auto;
        transform: translate(0);
        padding-top: 25px;
    }
}

@media screen and (max-width: 1000px) {
    .navbar {
        padding-inline: 50px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .footer-section.contact .contact-content {
        align-items: center;
    }

    footer img {
        width: 80%;
        height: auto;
    }
}

@media screen and (max-width: 850px) {
    .hamburger-menu {
        display: flex;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-menu.hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        width: 300px;
        height: 350px;
        top: 80px;
        right: 0;
        flex-direction: column;
        background-image: url("../img/navbarbackground.png");
        background-position: center;
        background-size: 90% 100%;
        background-repeat: no-repeat;
        text-align: center;
        animation: slideIn 0.5s ease-out forwards;
    }

    @keyframes slideIn {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }

    @keyframes slideOut {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(100%);
        }
    }

    .navbar-menu span {
        font-size: 24px;
    }
}

@media screen and (max-width: 600px) {
    .container {
        padding-inline: 30px;
    }

    .footer-sections-combined {
        flex-direction: column!important;
    }
}

@media screen and (max-width: 450px) {
    .container {
        padding-top: 120px;
        overflow: hidden;
    }

    .hamburger-menu {
        width: 18px;
        height: 18px;
    }

    .navbar {
        padding-inline: 20px;
    }
}