:root {
    --primary: #27ae60;
    --dark: #1a1a1a;
    --light: #f4f4f4;
    --gray: #888;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--dark); background: var(--light); scroll-behavior: smooth; }

/* Navigation */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 10%; background: white; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo { font-size: 1.5rem; font-weight: bold; }
.logo span { color: var(--primary); }
.links a { text-decoration: none; color: var(--dark); margin-left: 20px; font-weight: 500; }
.btn-contact { background: var(--dark); color: white !important; padding: 10px 20px; border-radius: 5px; }

/*--------- PAGE PRINCIPAL -------------------*/

/* Hero Section */
header { height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; background: white; padding: 0 10%; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; max-width: 800px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.2rem; color: var(--gray); max-width: 600px; margin: 0 auto 30px; }
.cta { background: var(--primary); color: white; padding: 15px 30px; text-decoration: none; border-radius: 5px; font-weight: bold; }

/* Grille de projets */
#projets { padding: 100px 10%; }
h2 { font-size: 2.5rem; margin-bottom: 50px; text-align: center; }
.grid {display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; padding: 20px; }
.card { background: white; border-radius: 10px; overflow: hidden; transition: transform 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.card:hover { transform: translateY(-10px); }
.card-img { height: 200px; background-size: cover; background-position: center; background-color: #ddd; }
.card-content { padding: 25px; }
.tags { margin: 15px 0; }
.tags span { font-size: 0.8rem; background: #eee; padding: 4px 10px; border-radius: 20px; margin-right: 5px; color: var(--gray); }
.view-project { color: var(--primary); text-decoration: none; font-weight: bold; }

/* Services */
#services { background: var(--dark); color: white; padding: 100px 10%; }
.services-container { display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; }
.service { flex: 1; min-width: 250px; padding: 20px; }
.service .icon { font-size: 3rem; margin-bottom: 20px; }

/*--------- PAGE SITE VITRINE -------------------*/
.container {padding: 50px 10%; background: var(--light); }
.grid-details {display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* Header */
.project-header {height: 40vh !important; display: flex; align-items: center; justify-content: center; text-align: center; background: white; padding: 0 10%;
    color: black; }
.project-header h1 { font-size: 3.5rem; margin-bottom: 20px; max-width: 800px; }
.project-header h1 span { color: var(--primary); }

/* Card description*/
.features-list {list-style: none; margin-top: 15px; }
.features-list li {margin-bottom: 8px; font-weight: 500; }

/* Card lien vers site*/
.highlight-card {background: var(--dark) !important; color: white; text-align: center; display: flex; align-items: center; justify-content: center; }
.highlight-card h3 { color: var(--primary); }
.small-text {font-size: 0.85rem; color: var(--gray); margin-top: 10px; }

/* Card formulaire */
.step-slider {display: flex !important; flex-direction: row !important; overflow-x: auto !important; overflow-y: hidden !important; gap: 20px; padding: 20px 10px;
    align-items: flex-start !important; scroll-snap-type: x mandatory; }
.step {flex: 0 0 92% !important; flex-shrink: 0 !important; height: auto !important; display: block !important; background: #fff; scroll-snap-align: center; }
.img-full {display: block !important; width: 100% !important; height: auto !important; max-height: none !important; object-fit: contain !important;
    border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.step-slider::-webkit-scrollbar { height: 6px; }
.step-slider::-webkit-scrollbar-thumb { background: #27ae60; border-radius: 10px; }
.step-badge {display: inline-block; margin-bottom: 15px; background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem;
    font-weight: bold; }
.step-desc {margin-top: 15px; font-weight: 500; color: var(--dark); }

/*Footer*/
footer { text-align: center; padding: 50px; color: var(--gray); font-size: 0.9rem; }


/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .step-gallery {
        grid-template-columns: 1fr;
    }
    .img-step {
        height: auto;
    }
    nav {
        padding: 20px 5px;
    }
}

@media (max-width: 900px) {
    .grid-details {
        grid-template-columns: 1fr;
    }
}
