/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    background-color: #f9fafb;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    width: 200px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* NAV */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    position: relative;
}

/* underline animation */
nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #f59e0b;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url("9 kwc villa.png") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 120px 20px;
    animation: fadeIn 1.2s ease;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: slideUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: slideUp 1.3s ease;
}

/* BUTTON */
.btn {
    background: #f59e0b;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #d97706;
    transform: translateY(-3px);
}

/* SECTIONS */
section {
    padding: 80px 0;
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

/* GRID */
.service-grid,
.team-grid,
.projet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* CARDS */
.service-card,
.team-member,
.projet-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s forwards;
}

.service-card:hover,
.team-member:hover,
.projet-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* IMAGES */
.service-card img,
.projet-card img,
.team-member img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* TEXT */
.service-card h3,
.projet-card h3,
.team-member h3 {
    padding: 15px;
}

.service-card p,
.projet-card p,
.team-member p {
    padding: 0 15px 20px;
    color: #555;
}

/* TEAM IMAGE ROUND */
.team-member img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    margin: 20px auto 10px;
    display: block;
}

/* CONTACT */
.contact form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input,
.contact textarea {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.contact textarea {
    min-height: 120px;
}

/* FOOTER */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

footer .logo {
    margin-bottom: 15px;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* SCROLL ANIMATION (optionnel JS futur) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}