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: 150px;
    padding-bottom: 100px;
    padding-inline: 100px;
    background-color: #fff;
    z-index: 9;
    overflow: hidden;
}

.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.services h1 {
    margin-block: 30px;
    font-family: "Hermetico";
    text-transform: uppercase;
}

.services-item-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 750px;
}

.services-item {
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    gap: 15px;
    align-self: flex-start;
    transition: all 0.3s ease;
    transform: translateY(50px);
    height: 358px;
}

.services-item.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.services-item h2 {
    text-transform: uppercase;
    font-family: "Hermetico";
    margin: 0;
}

.services-item img {
    padding: 10px;
    width: 64px;
}

.services-item span {
    text-align: center;
    font-family: "Typewriter";
}

.services-item button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    outline: none;
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 1;
    rotate: 0deg;
    margin-top: auto;
}

.services-item button.active {
    opacity: 1;
    rotate: 45deg;
}

.services-item button img {
    width: 60%;
}

.services-item-video {
    position: absolute;
    top: 50%;
    left: 65%;
    transform: translate(-50%, -50%);
    max-width: 450px;
    width: 100%;
    z-index: 10;
    transition: opacity 0.6s ease;
    opacity: 0;
    visibility: hidden;
}

.services-item-video.visible {
    opacity: 1;
    visibility: visible;
}

.services-item-video:hover .services-item-video-overlay {
    opacity: 0.3;
}

.services-item-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: #000;
    z-index: 2;
}

.services-item-video-button, .services-item-video-overlay {
    transition: all 0.3s ease;
}

.services-item-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;
}

.services-item-video-button img:hover {
    scale: 1.1;
}

.services-item-video-button img {
    width: 64px;
    transition: all 0.3s ease;
}

.prodcard-button img:hover {
    scale: 1.1;
}

.services-item-video video {
    position: relative;
    width: 100%;
}

.services-item-video .services-item-video-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 102%;
    z-index: 3;
}

.services-selector {
    display: none;
    position: relative;
    gap: 10px;
    height: 16px;
    z-index: 10;
    margin-top: 20px;
}

.services-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;
}

.services-selector button.active {
    background-image: url("../img/full-dot.png");
}

.services-selector button:hover {
    scale: 1.1;
}

.logiciels-container {
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-family: "Typewriter";
    text-align: center;
}

.logiciels {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.logiciels img {
    max-width: 64px;
    max-height: 64px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logiciels img.active, .logiciels img:hover {
    scale: 1.1;
}

.faq-container {
    display: flex;
    gap: 20px;
    font-family: "Typewriter";
    position: relative;
}

.faq-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1000px; /* Largeur fixe de l'image */
    height: 80vh; /* Hauteur égale à la hauteur de la fenêtre pour couvrir toute la hauteur */
    background-image: url("../img/cvaprodlogowithouttext.png");
    background-repeat: no-repeat;
    background-size: contain; /* Ajuste la taille de l'image pour qu'elle ne soit pas coupée */
    background-position: center; /* Centre l'image de fond */
    filter: invert(1) opacity(0.1); /* Inverse les couleurs pour rendre l'image noire et réduit l'opacité */
    z-index: -1; /* Place le pseudo-élément derrière le contenu */
    transform: translateX(-50%); /* Décale l'image vers la gauche pour qu'elle soit à moitié visible */
}

.faq-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Équilibrer les items dans la colonne */
}

.faq-item {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 2px solid #000;
    min-height: 80px;
    justify-content: center;
}

.faq-column .faq-item:first-child {
    border-top: 2px solid #000; /* Bordure supérieure pour le premier item */
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-header button {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    margin-left: 15px;
    padding: 0;
}

.faq-header button img {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    transform: rotate(270deg);
}

.faq-item.active .faq-header button img {
    transform: rotate(90deg);
}

.faq-item p {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease 0.2s;
    margin: 10px 0 0 0;
}

.faq-item.active p {
    max-height: 500px;
    opacity: 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;
}

.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;
}

video::-webkit-media-controls-enclosure {
    display: none;
}

/* 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;
    height: 18px;
    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;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Time display */
.time-display {
    font-family: "Typewriter";
    font-size: 14px;
}

.see-more {
    background-color: transparent;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Typewriter';
    color: #000;
    font-size: 16px;
    text-decoration: none;
}

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: 1200px) {
    .video {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .video-player {
        width: 100%;
    }
}

@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) {
    .container {
        padding-inline: 20px;
    }

    .services-item-container {
        justify-content: center;
        gap: 20px;
    }

    .services-item {
        display: none;
    }

    .services-item-video {
        position: relative;
        left: 0;
        top: 0;
        transform: translate(0);
    }

    .services-selector {
        display: flex;
    }

    .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;
    }

    .services-item-container {
        flex-direction: column;
        align-items: center;
    }

    .services-item {
        align-self: center;
    }
}

@media screen and (max-width: 500px) {
    .logiciels {
        gap: 15px;
    }

    .logiciels img {
        width: 50px;
    }

    .faq-container {
        flex-direction: column;
    }

    .custom-controls {
        display: none;
    }

    video::-webkit-media-controls {
        display: block !important;
    }
    
    video::-webkit-media-controls-enclosure {
        display: block !important;
    }
}

@media screen and (max-width: 450px) {
    .container {
        padding-top: 120px;
        overflow: hidden;
    }

    .hamburger-menu {
        width: 18px;
        height: 18px;
    }

    .navbar {
        padding-inline: 20px;
    }
}