/* Styles de base */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth; /* Animation de défilement lisse */
	background-image: url('../img/drone-background2.jpg');
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
}

header {
    background: rgba(22, 27, 34, 0.8);
    padding: 1px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px); /* Ajout d'un flou sur le header */
}

header .logo {
    display: flex;
    align-items: center;
    color: #58a6ff;
}

header .logo img {
    width: 50px;
    margin-right: 10px;
}

header nav {
    display: flex;
    align-items: center;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
}

header nav ul li {
    margin-right: 50px;
}

header nav ul li a {
    text-decoration: none;
    color: #c9d1d9;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #58a6ff;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #c9d1d9;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Menu mobile */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: rgba(13, 17, 23, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    header nav ul {
        flex-direction: column;
    }

    header nav ul li {
        margin: 20px 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    background: url('../img/drone-background.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px); /* Ajout de l'effet de flou */
    z-index: 1;
}

.hero h2,
.hero p,
.hero .cta-button {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    color: #58a6ff;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #58a6ff;
    color: #0d1117;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #1f6feb;
}

/* Services Section */
.services-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #161b22;
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #58a6ff;
}

.service {
    margin: 20px 0;
    padding: 20px;
    background-color: #0d1117;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service h3 {
    font-size: 1.8rem;
    color: #c9d1d9;
}

.service p {
    color: #8b949e;
}

.service:hover {
    transform: scale(1.05);
    background-color: #21262d;
}

/* Projects Section */
.projects-section {
    padding: 50px 20px;
    text-align: center;
    background-color: rgba(13, 17, 23, 0.9); /* Fond avec transparence */
    backdrop-filter: blur(10px); /* Ajout de l'effet de flou */
}

.projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #58a6ff;
}

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

.project-card {
    padding: 20px;
    background-color: #161b22;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.05);
    background-color: #21262d;
    backdrop-filter: blur(4px); /* Ajout de l'effet de flou au survol */
}

.project-card h3 {
    font-size: 1.8rem;
    color: #c9d1d9;
}

.project-card p {
    color: #8b949e;
}

/* Footer */
footer {
    background-color: rgba(22, 27, 34, 0.9); /* Fond avec transparence */
    padding: 20px;
    text-align: center;
    color: #c9d1d9;
    border-top: 1px solid #30363d;
    backdrop-filter: blur(10px); /* Ajout de l'effet de flou */
}

footer h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

footer .social-media a {
    color: #58a6ff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer .social-media a:hover {
    color: #1f6feb;
}
