@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

body {
    background-image: radial-gradient(circle, #000000, #0c0c0c, #151515, #1c1c1c, #232323);
    font-family: 'Poppins', sans-serif;
    color: rgb(235, 235, 235);
    margin: 0;
    padding: 0;
    text-align: center;
}

a {
    text-decoration: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5% 20px 5%;
    position: fixed;
    top: 0;
    width: 90%;
    
    background-image: linear-gradient(to bottom, rgba(22, 22, 22, 0.7), rgba(22, 22, 22, 0)); /* Dégradé transparent du haut vers le bas */
    backdrop-filter: blur(5px); /* Application du flou */
    z-index: 1;
    transition: backdrop-filter 0.3s ease; /* Transition pour rendre le flou plus fluide */
}

.top {
    cursor: pointer;
}

.logo {
    width: 150px;
}

.contact-btn {
    padding: 10px 25px;
    border: 2px solid #ffd900;
    border-radius: 50px;
    background-color: transparent;
    color: #ffd900;
    font-weight: 600;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.contact-btn:hover {
    background-color: #ffd900;
    color: #161616;
}

.hero-section {
    position: relative; /* Ajouté pour que l'image de fond soit correctement placée */
    margin-top: -4%;
    padding: 50px 9% 0px 9%;
    min-height: 90vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden; /* Empêche tout débordement */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("img/background.jpg") center/cover no-repeat;
    filter: blur(5px);
    z-index: -1;  /* L'image est derrière le contenu */
}

.intro{
    padding: 5%;
    text-align: left;
}

.intro h1 {
    font-size: 76px;
    line-height: 90px;
    margin-bottom: 30px;
}

.intro-text {
    font-size: 18px;
}

.btn-primary {
    margin-top: 10%;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ffd900;
    color: #161616;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: #ffd900;
    border: 2px solid #ffd900;
    transition: 80ms;
}

.services {
    padding: 50px 10% 100px 10%;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: #1f1f1f9c;
    backdrop-filter: blur(5px); /* Application du flou */
    transition: backdrop-filter 0.3s ease; /* Transition pour rendre le flou plus fluide */
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.479);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.service-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    color: #ffd900;
}

.buyback {
    background: linear-gradient(200deg, #34343497, #252525);
    padding: 40px 10% 65px 10%;
}

.buyback h2 {
    font-size: 36px;
    margin-bottom: -5px;
}

.buyback h4 {
    font-weight: 400;
    color: #ffffff8a;
}

.buyback ul {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    list-style: none;
    padding: 0;
}

.buyback ul li {
    font-size: 20px;
    color: #ffd900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.buyback ul li i {
    font-size: 30px;
    color: #ffd900;
}

.contact {
    padding: 50px 10% 60px 10%;
    position: relative;
}

/* Style du formulaire de contact */
.contact-form {
    background: linear-gradient(200deg, #34343497, #252525);
    backdrop-filter: blur(5px); /* Application du flou */
    transition: backdrop-filter 0.3s ease; /* Transition pour rendre le flou plus fluide */
    padding: 30px 50px 30px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    text-align: left;
}

.contact-form h3 {
    font-size: 24px;
    color: #ffd900;
    margin-bottom: 20px;
    text-align: center;
}

.contact-form label {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
    color: rgb(235, 235, 235);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: #1c1c1c;
    color: rgb(235, 235, 235);
    margin-bottom: 15px;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    margin: 0 auto;
    padding: 10px 25px;
    border: 2px solid #ffd900;
    border-radius: 50px;
    background-color: transparent;
    color: #ffd900;
    font-weight: 600;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.contact-form button:hover {
    background-color: #ffd900;
    color: #161616;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-left {
    width: 50%;
    box-sizing: border-box;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1% 0;
    box-sizing: border-box;
}

.contact-list li {
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-list li:nth-child(3) {
    margin-top: 11%;
}

.contact-list li i {
    color: #ffd900;
}

.contact-list a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #ffd900;
    transform: translateX(10px);
    transition: color 0.3s ease-in-out, transform 0.5s ease;
}

.map {
    width: 100%;
    height: 270px;
    border: 0;
    border-radius: 20px;
    box-sizing: border-box;
    margin-top: 40px;
}

footer {
    padding: 10px 0;
    margin-top: 30px;
    background: linear-gradient(180deg, #ffd900, #d1b200);
    color: #161616;
    text-align: center;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Style du bouton de retour au top */
#backToTop {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: #ffd900;
    color: #161616;
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    background-color: #e5c100;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .intro h1 {
        font-size: 60px;
        line-height: 75px;
    }

    .intro-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 5%;
        height: auto;
        min-height: 80vh;
    }

    .intro {
        text-align: center;
    }

    .intro h1 {
        font-size: 48px;
        line-height: 60px;
        margin-bottom: 20px;
    }

    .intro-text {
        font-size: 16px;
    }

    .btn {
        font-size: 16px;
        padding: 10px 20px;
    }

    .intro .btn-primary {
        margin-top: 15%;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-left{
        width: 100%;
        margin-bottom: 20px;
    }

    .contact-list {
        margin-bottom: 10%;
    }

    .contact-list, .map {
        width: 100%;
    }

    .map {
        height: 300px;
        width: auto;
    }

    .contact-form {
        padding: 20px;
        margin-top: 40px;
    }

    .contact-form input,
    .contact-form textarea {
        width: 93%;
    }
}

@media (max-width: 500px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .hero-section {
        margin-top: 15%;
    }

    .contact-btn {
        display: none;
    }

    .intro h1 {
        font-size: 42px;
        line-height: 45px;
    }

    .intro-text {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 18px;
    }
}