/* ======== GENERAL & VARIABLES ======== */
:root {
    --primary-color: #00aaff; /* Le bleu de la carte */
    --secondary-color: #333; /* Gris foncé */
    --light-color: #f4f4f4;
    --white-color: #ffffff;
    --green-color: #8BC34A; /* Le vert du logo */
    --text-color: #555;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #0088cc;
    transform: translateY(-2px);
}

/* ======== HEADER & NAVIGATION ======== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: background-color 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 120px;
    margin-right: 10px;
    padding: 15px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ======== HERO SECTION ======== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../assets/images/back.jpg) center center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
}

/* ======== ABOUT SECTION ======== */
#about { background-color: var(--light-color); }

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text { flex: 2; }
.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.about-image { 
    flex: 1; 
    text-align: center;
}
.about-image img {
    max-width: 90%;
    border-radius: 50%;
    background: white;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.about-content p{
    text-align: justify;
}


/* ======== SERVICES SECTION ======== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white-color);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* ======== PROJECTS SECTION ======== */
#projects { background-color: var(--light-color); }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.project-card img {
    width: 100%;
    display: block;
    transition: transform 0.4s;
}
.project-card:hover img {
    transform: scale(1.1);
}
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px 20px 20px 20px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s;
}
.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

/* ======== WHY US SECTION ======== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.feature-item i {
    font-size: 2rem;
    color: var(--green-color);
    margin-top: 5px;
}
.feature-item h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* ======== CONTACT SECTION ======== */
#contact { background-color: var(--light-color); }
.contact-content {
    display: flex;
    gap: 50px;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.contact-info { flex: 1; }
.contact-form { flex: 1.5; }

.contact-info h3, .contact-form h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}
.info-item a {
    color: var(--primary-color);
    text-decoration: none;
}
.info-item a:hover { text-decoration: underline; }

.social-links { margin-top: 30px; }
.social-links a {
    color: var(--secondary-color);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.social-links a:hover { color: var(--primary-color); }
.social-links i { font-size: 1.5rem; }


.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-form button {
    width: 100%;
    font-size: 1.1rem;
}

/* ======== FOOTER ======== */
footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
    padding: 30px 0;
}
footer p:last-child {
    font-family: 'Times New Roman', serif;
    opacity: 0.7;
    margin-top: 10px;
}


/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 992px) {
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .about-content { flex-direction: column; }
    .about-image img { max-width: 50%; }
    .contact-content { flex-direction: column; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 70px; }
    header {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
    }
    nav { height: 70px; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.4s ease;
    }
    
    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }
    .hamburger i.fa-times {
        color: var(--primary-color);
    }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .subtitle { font-size: 1.2rem; }
    
    .projects-grid { grid-template-columns: 1fr; }
}