*{
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-v22-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-v22-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-v22-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Conteneur du message flash */
.flash-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFD700;
    color: black;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(255, 223, 0, 0.4);
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

/* Animation de disparition */
.flash-message.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

/* Adaptation pour mobile */
@media screen and (max-width: 480px) {
    .flash-message {
        font-size: 0.9rem;
        padding: 10px 15px;
        bottom: 15px;
        max-width: 80%;
    }
}


.main-content{
    padding-top: 4rem!important;
}

.login-home{
    color: #efc500;
    text-decoration: none;
}

.login-home:hover{
    color: rgba(239, 197, 0, 0.89);
}

/* Style du cercle qui suit la souris */
.cursor {
    position: fixed;
    width: 40px;  /* Taille du cercle */
    height: 40px;
    border: 2px solid #efc500; /* Contour du cercle */
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s linear;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dot {
    position: absolute;
    width: 8px;  /* Taille du point */
    height: 8px;
    background-color: #efc500;
    border-radius: 50%;
}

/* Cacher le texte en dessous de 768px */
@media screen and (max-width: 768px) {
    .login-home .login-text {
        display: none;
    }

    .nav-right{
        align-items: center;
    }
    .nav-contact-button{
        background-color: rgba(0, 0, 0, 0) !important;
        color: #efc500!important;
        border: 1px solid #efc500!important;
        padding: 10px!important;
    }
}

/* Cacher le texte en dessous de 768px */
@media screen and (min-width: 768px) {
    .login-home i {
        display:none;
    }
}

.svg-realisation{
    margin-top: -1px;
}

/* Cacher le curseur personnalisé sur tablettes et mobiles */
@media screen and (max-width: 1024px) {
    .cursor {
        display: none;
    }
    .logo img, .contact-section {
        margin-left: 25px!important;
    }
    .nav-contact-button, .contact-section {
        margin-right: 25px!important;
    }
    .container-projet-web {
        padding: 25px!important;
    }
    .content-info{
        justify-content: center;
    }
    .contact-section{
        margin-top: -4rem!important;
    }
}

@media screen and (max-width: 542px) {
    .contact-section{
        margin-top: -2rem!important;
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: #efc500;
    border-radius: 5px; /* Bords arrondis */
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 197, 0, 0.87);
}

nav {
    position: fixed;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background-color: black;
    z-index: 100;
    padding-top: 10px;
    padding-bottom: 10px;
}

.nav-right{
    display:flex;
    gap: 10px;
    align-items: center;
}

/* Style du logo */
.logo img {
    margin-left: 75px;
    width: 150px;
    height: 54px;
}

#start-snake {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px 40px;
    font-size: 24px;
    font-weight: bold;
    background: #efc500;
    color: black;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(239, 197, 0, 0.8);
    animation: glow 1.5s infinite alternate;
    transition: transform 0.2s ease-in-out;
}

#start-snake:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Animation scintillante */
@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(239, 197, 0, 0.8);
    }
    to {
        box-shadow: 0 0 20px rgba(239, 197, 0, 1);
    }
}




.header {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: auto;
}


.rotating-boule {
    position: absolute;
    max-width: 600px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotation 50s linear infinite;
}

.bold-text {
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    overflow: hidden; /* Empêche le débordement */
    text-overflow: ellipsis; /* Ajoute "..." si trop long */
    max-width: 100%; /* Empêche de dépasser la largeur de l'écran */
}

/* Effet de survol sur "CRÉATION DE SITE" */
.bold-text {
    position: relative;
    display: inline-block;
    transition: text-shadow 0.3s ease-in-out; /* Effet de glow fluide */
}

/* Glow blanc au survol */
.bold-text:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* ANIMATION ROTATION */
@keyframes rotation {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* STYLE DU TEXTE */
.text-overlay {
    position: absolute;
    top: 45%; /* Ajusté pour être un peu plus haut */
    left: 30%; /* Déplacé vers la gauche */
    transform: translate(-50%, -50%);
    text-align: right; /* Alignement à droite */
    color: white;
    z-index: 10;
}

/* TEXTE PLEIN */
.bold-text {
    font-size: 60px;
    font-weight: 500;
    display: block;
}

/* TEXTE CONTOUR */
.outline-text {
    font-size: 40px;
    font-weight: 900;
    display: block;
    -webkit-text-stroke: 2px white; /* Contour blanc */
    color: transparent; /* Texte transparent */
    margin-top: 5px;
}

/* SECTION DU TEXTE DÉFILANT */
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: #efc500;
    padding: 10px 0;
}

/* CONTENU QUI DÉFILE */
.marquee-content {
    display: flex;
    gap: 50px; /* Espace entre les répétitions */
    font-size: 5rem;
    font-weight: 400;
    color: #000000;
    animation: scroll-text 50s linear infinite;
    width: max-content; /* Évite la coupure du texte */
}

/* Custom Modal Styles for Right-to-Left Slide */
.modal.right .modal-dialog {
    position: fixed;
    margin: 0;
    width: 25%; /* Takes up a quarter of the screen */
    max-width: 100%;
    height: 100vh;
    top: 0;
    right: -25%; /* Start off-screen to the right */
    transition: transform 0.3s ease-out;
}

.modal.right.show .modal-dialog {
    transform: translateX(-100%); /* Slide in to the left */
}

.modal.right .modal-content {
    height: 100%;
    overflow-y: auto;
    border-radius: 0;
    border: none;
}

.modal.right .modal-header-nav {
    border-bottom: none;
}

.modal.right .modal-body-nav {
    padding: 20px;
}

/* Blur effect for the background */
.modal-backdrop.show {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(200px);
}

.modal-backdrop {
    transition: backdrop-filter 0.3s ease-out;
}

/* Form Styles Inside Modal */
.modal-content form {
    padding: 10px; /* Reduce padding around the form */
    background-color: #111; /* Black background */
    color: #fff; /* White text */
}

.modal-content .form-group {
    margin-bottom: 1rem;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #efc500; /* Yellow label text */
    font-weight: 500;
}

.modal-content .form-group input,
.modal-content .form-group textarea {
    width: 100%;
    padding: 8px; /* Reduce padding inside inputs */
    font-size: 0.9rem; /* Reduce font size slightly */
    border: 1px solid #efc500; /* Yellow border */
    border-radius: 4px;
    background-color: #222; /* Darker black for inputs */
    color: #fff; /* White text */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content .form-group textarea {
    height: 100px; /* Reduce height of textarea */
    resize: vertical; /* Allow vertical resizing */
}

.modal-content .form-group input:focus,
.modal-content .form-group textarea:focus {
    border-color: #d4ac00; /* Darker yellow on focus */
    outline: none;
    box-shadow: 0 0 5px rgba(239, 197, 0, 0.5); /* Yellow glow */
}

.modal-content .form-group .error {
    border: 1px solid red; /* Red border for errors */
}

.modal-content .form-group .error-message {
    color: red; /* Red error text */
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.modal-content button[type="submit"] {
    background-color: #efc500; /* Yellow button */
    color: #000; /* Black text */
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.modal-content button[type="submit"]:hover {
    background-color: #d4ac00; /* Darker yellow on hover */
}

/* Modal Header Styles */
.modal.right .modal-header-nav {
    position: relative; /* Add this to make the close button positioning relative to the header */
    background-color: #111; /* Black background */
    border-bottom: 1px solid #efc500; /* Yellow border */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between; /* Add this to push the close button to the right */
    align-items: center; /* Center items vertically */
}

.modal.right .modal-header-nav .modal-title-nav {
    color: #efc500; /* Yellow text */
    font-size: 1rem;
    font-weight: bold;
}


.modal.right .modal-header-nav .btn-close {
    position: absolute; /* Position the close button absolutely within the header */
    top: 10px; /* Adjust the top position */
    right: 10px; /* Adjust the right position */
    filter: invert(1); /* Make the close button white */
    opacity: 0.8;
    transition: opacity 0.3s ease;
    margin-left: 10px;
}

.modal.right .modal-header-nav .btn-close:hover {
    opacity: 1; /* Full opacity on hover */
}

/* Modal Body Styles */
.modal.right .modal-body-nav {
    background-color: #111; /* Black background */
    padding: 20px;
    color: #fff; /* White text */
    flex-grow: 1; /* Allow the body to grow and fill the space */
    display: flex;
    flex-direction: column;
}

/* Make the description textarea bigger */
.modal.right .modal-body-nav .form-group textarea {
    height: 150px; /* Set a fixed height */
    resize: vertical; /* Allow vertical resizing */
    flex-grow: 1; /* Fill the remaining space */
}

/* ANIMATION DU TEXTE */
@keyframes scroll-text {
    from {
        transform: translateX(0); /* Démarrer sans décalage */
    }
    to {
        transform: translateX(-50%); /* Déplacer de moitié pour un scroll continu */
    }
}

/* --- RESPONSIVE DESIGN --- */

/* Pour tablettes (max 1024px) */
@media screen and (max-width: 1024px) {
    .rotating-boule {
        width: 400px; /* Taille réduite */
    }

    .text-overlay {
        top: 40%;
        left: 25%;
    }

    .bold-text {
        font-size: 40px;
    }

    .outline-text {
        font-size: 30px;
    }

    .marquee-content {
        font-size: 3rem;
        gap: 30px;
    }
}

@media screen and (max-width: 920px) {
    #start-snake {
        right: 10% !important
    }
}

@media (max-width: 768px) {
    canvas {
        opacity: 0.5; /* Rend le jeu plus transparent sur mobile */
    }
}


/* Pour smartphones (max 768px) */
@media screen and (max-width: 768px) {
    .header {
        height: 60vh; /* Réduction de la hauteur */
    }

    #start-snake{
        display: none;
    }

    .background {
        height: 60vh;
    }

    .rotating-boule {
        width: 300px; /* Boule plus petite */
        margin-bottom: 15px;
    }

    .text-overlay {
        top: 35%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .bold-text {
        font-size: 30px;
    }

    .outline-text {
        font-size: 24px;
    }

    .marquee {
        padding: 5px 0; /* Moins d’espace */
    }

    .marquee-content {
        font-size: 2rem; /* Plus petit pour mobile */
        gap: 20px;
    }

    .modal.right .modal-dialog {
        width: 100%; /* Take up the full width of the screen */
        right: -100%; /* Start off-screen to the right */
        height: 100vh; /* Full height of the viewport */
    }

    .modal.right .modal-content {
        max-width: none;
    }

    .modal.right .modal-body-nav {
        height: calc(100% - 60px); /* Adjust height to account for the header */
        overflow-y: auto; /* Enable scrolling if content overflows */
    }

    .modal.right.show .modal-dialog {
        transform: translateX(-100%); /* Slide in to the left */
    }

    .modal-content form {
        padding: 15px; /* Adjust padding for smaller screens */
    }

    .modal-content .form-group input,
    .modal-content .form-group textarea {
        font-size: 1rem; /* Slightly larger font size for better readability on mobile */
    }

    .modal-content button[type="submit"] {
        width: 100%; /* Full-width button on mobile */
        padding: 12px;
    }

    nav {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Align items to the start */
        padding: 10px; /* Reduce padding */
    }

    .logo img {
        margin-left: 0; /* Remove left margin */
    }

    .nav-contact-button {
        padding: 8px 15px; /* Slightly larger padding for better touch interaction */
        font-size: 16px; /* Larger font size for better readability */
        white-space: normal; /* Allow text to wrap if necessary */
        margin-top: 10px; /* Add some space above the button */
    }
}

/* Pour petits téléphones (max 480px) */
@media screen and (max-width: 480px) {
    h4{
        font-size: 16px!important;
    }
    .rotating-boule {
        width: 250px;
        margin-bottom:15px;
    }

    .text-overlay {
        top: 30%;
    }

    .bold-text {
        font-size: 24px;
    }

    .outline-text {
        font-size: 20px;
    }

    .marquee-content {
        font-size: 1.5rem;
    }

    .nav-contact-button {
        padding: 10px 20px; /* Even larger padding for very small screens */
        font-size: 18px; /* Larger font size for very small screens */
        width: 100%; /* Full width button on very small screens */
        text-align: center; /* Center the text */
    }
}


.contact-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: -8rem;
    margin-left: 75px;
    margin-right: 75px;
}



.contact-content {
    max-width: 900px;
    text-align: justify;
}

.contact-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.highlight {
    color: #efc500; /* Jaune */
    font-weight: bold;
}

.contact-text {
    font-size: 18px;
    margin-top: 10px;
}

/* Style du bouton */
.contact-button {
    background: #efc500;
    color: #000;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-button:hover {
    background: #d9b100;
    box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.3);
}

.contact-button:active {
    transform: scale(0.98);
}

.nav-contact-button {
    margin-right: 75px;
    background: #efc500;
    color: #000;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-contact-button:hover {
    background: #d9b100;
    box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.3);
}

.nav-contact-button:active {
    transform: scale(0.98);
}

.icon {
    color: #efc500;
    margin-right: 8px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .contact-section {
        flex-direction: column;
    }

    .contact-button {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
}

/* Style principal du conteneur */
.container-projet-web {
    background-color: black;
    padding: 75px;
    width: 100%;
}

h4 {
    color: #e0e0e0!important; /* Texte en blanc */
    text-transform: uppercase; /* Texte en majuscules */
    position: relative; /* Position relative pour le pseudo-élément */
    display: inline-block; /* Permet de mieux gérer le soulignement */
}

h4::after {
    content: "";
    display: block;
    width: 50%; /* Largeur à la moitié du titre */
    height: 3px; /* Épaisseur du trait */
    background-color: #efc500;
    position: absolute;
    left: 0; /* Aligner à gauche */
    bottom: -5px; /* Espacement sous le texte */
}


/* Titre principal */
h1 {
    font-size: 42px;
    text-transform: uppercase;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Style des étapes */
.step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

/* Contenu des étapes */
.step-content {
    max-width: 550px;
}

.number{
    font-size: 5rem;
    color: #f1f1f1;
}

.title-projet-web{
    color: #FFD700;
    font-size: 18px;
}

/* Description des étapes */
.step-description {
    font-size: 18px;
    line-height: 1.6;
    color: #f1f1f1;
}

/* Bouton principal */
.button-primary {
    background-color: #FFD700;
    color: #111;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}

.button-primary:hover {
    background-color: #FFC107;
    transform: scale(1.05);
}

.step-img {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    filter: drop-shadow(0px 0px 15px #FFD700); /* Ombre jaune */
}

.step-img.visible {
    opacity: 1;
    transform: translateY(0);
}


.step img {
    width: 100%; /* Permet au navigateur d'utiliser `sizes` correctement */
    max-width: 500px; /* Empêche l'image d'être trop grande */
    height: auto;
    display: block;
    margin: auto;
}

/* 📌 Ajuste la taille sur mobile */
@media (max-width: 768px) {
    .step{
        flex-direction: column!important;
    }
    .step img {
        max-width: 300px;
        width: 80vw;
    }
}

@media (max-width: 480px) {
    .step img {
        max-width: 250px;
        width: 100vw;
    }
}

@media (max-width: 530px) {
    .hero {
        background-image: none !important;
        background-color: black !important;
    }
}
