/* Reset CSS */
body, h1, h2, h3, p {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Anta', sans-serif;
    background: url('../images/background.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    line-height: 1.6;
}

body{
    background-color: black;
}

/* Effet Glitch pour le titre */
.glitch {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    position: relative;
    animation: glitch 1s infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.glitch::before,
.glitch::after {
    content: 'NeoTech WebDesign';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #fff;
    overflow: hidden;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    animation: glitch-before 1s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    animation: glitch-after 1s infinite linear alternate-reverse;
}

/* Animation principale du glitch */
@keyframes glitch {
    0% {
        transform: skew(0deg);
    }
    25% {
        transform: skew(5deg);
    }
    50% {
        transform: skew(-5deg);
    }
    75% {
        transform: skew(5deg);
    }
    100% {
        transform: skew(0deg);
    }
}

/* Animation pour l'élément avant */
@keyframes glitch-before {
    0% {
        clip: rect(44px, 9999px, 56px, 0);
    }
    25% {
        clip: rect(15px, 9999px, 36px, 0);
    }
    50% {
        clip: rect(25px, 9999px, 45px, 0);
    }
    75% {
        clip: rect(55px, 9999px, 65px, 0);
    }
    100% {
        clip: rect(44px, 9999px, 56px, 0);
    }
}

/* Animation pour l'élément après */
@keyframes glitch-after {
    0% {
        clip: rect(20px, 9999px, 30px, 0);
    }
    25% {
        clip: rect(35px, 9999px, 50px, 0);
    }
    50% {
        clip: rect(40px, 9999px, 55px, 0);
    }
    75% {
        clip: rect(10px, 9999px, 25px, 0);
    }
    100% {
        clip: rect(20px, 9999px, 30px, 0);
    }
}


/* Header */
.hero {
    position: relative;
    text-align: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.logo-img {
    width: 150px;
    margin-bottom: 1rem;
    border-radius: 50%;
    box-shadow: #5A5DFF 0px 0px 50px;
}
.hero h1 {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    text-shadow: 10px 10px 20px rgba(0, 0, 0, 10);

    
}
.tagline {
    font-size: 2rem;
    font-style: italic;
    text-shadow: 10px 10px 20px rgba(0, 0, 0, 10);
}

/* Welcome Section */
.welcome {
    text-align: center;
    padding: 2rem;
    margin: 50px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: #5A5DFF 0px 0px 20px;
}
.welcome h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.welcome p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.process{
    text-align: center;
    padding: 2rem;
    margin: 50px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: #5A5DFF 0px 0px 20px;
}

.process h2{
    font-size: 2rem;
    margin-bottom: 1rem;
}


.process p{
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
    margin-left: 40px;
}

/* Services Section */

.lien_card {
    text-decoration: none;
    color: black;
}

.lien_card:visited {
    color:black;
    text-decoration: none;
}
.services {
    text-align: center;
    padding: 2rem;
    color: black;
}
.services h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-shadow: 10px 10px 20px rgba(0, 0, 0, 10);
    color: #fff;
    
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    
    background: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.8s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgb(181, 120, 255);
    transition: 0.3s;
}
.service-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}
.service-content {
    padding: 1rem;
}
.service-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.service-content p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.contacte{
    text-decoration: none;
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.contacte{
    color: #fff;
    background: linear-gradient(135deg, #3A3DFF, #8B8DFF);
    margin-top: 50px;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.8s ease;
}

.contacte:hover {
    background: linear-gradient(135deg, #5A5DFF, #AFAFFF);
    transform: scale(1.0.5);
    transition: transform 0.5s ease;
}
/* process section */

.etape {
    text-align: left;
    margin-bottom: 15px;
}

.etape h2{
    text-align: center;
}




/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}
footer p {
    margin-bottom: 0.5rem;
}
footer a {
    color: #8B8DFF;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Bouton Retour en Haut */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #3498db, #9b59b6);
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
  
.back-to-top:hover {
    background: linear-gradient(45deg, #2980b9, #8e44ad);
    transform: translateY(-5px);
}

.legal-link{
    color: #fff;
    text-decoration: none;
}

/* Responsive */

/* Media Queries */
@media (max-width: 768px) {
    /* Ajustement du padding du conteneur de contact pour les écrans plus petits */
    .contact-container {
        padding: 20px;
    }

    /* Changement de direction de la rangée de formulaire pour un meilleur empilement sur les écrans plus petits */
    .form-row {
        flex-direction: column;
    }

    /* Ajustement de la taille de l'en-tête du conteneur de contact pour les écrans plus petits */
    .contact-container h1 {
        font-size: 2em;
    }

    /* Rendre le bouton de soumission pleine largeur sur les écrans plus petits */
    .submit-btn {
        width: 100%;
    }

    /* ajustement de la taille des h1 et h2 */
    h1.glitch {
        font-size: 2rem;
    }

    p.tagline {
        font-size: 1rem;
    }


    /*ajustement taille hero */
    .hero{
        height: 30vh;
    }

    /* Réduction du logo sur les petits écrans */

    .logo-img {
        width: 100px; /* Taille réduite du logo */
        margin-bottom: 0.5rem;
    }

    .service-image img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

    body {
        font-family: 'Anta', sans-serif;
        background: url('../images/smartphone_cropped_image_v3.png') no-repeat center center fixed;
        background-size: cover;
        color: #fff;
        line-height: 1.6;
    }

    body{
        background-color: black;
    }

}


