* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #1e293b;
    line-height: 1.6;
}

header {
    background: #0f172a;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.logo a:hover {
    color: #cbd5e1;
}

nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

main {
    min-height: 70vh;
    padding: 3rem 5%;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
}

.section h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.section h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #ffffff;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.2rem;
    color: #f1f5f9;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: #1e293b;
    color: #ffffff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.cards, .services-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card, .service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover, .service-card:hover {
    transform: translateY(-5px);
}

.card-icon, .service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3, .service-card h3 {
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.card p, .service-card p {
    color: #475569;
}

.project-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-content {
    padding: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.project-card h3 {
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-description {
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-badge {
    background: #e2e8f0;
    color: #0f172a;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1e293b;
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: background 0.3s;
}

.project-link:hover {
    background: #0f172a;
}

.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text h1 {
    text-align: left;
    color: #0f172a;
}

.about-text h2 {
    color: #0f172a;
    margin-top: 1.5rem;
}

.about-text p, .about-text li {
    color: #475569;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.about-text li:before {
    content: "✅";
    position: absolute;
    left: 0;
}

.about-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.avatar {
    font-size: 5rem;
    background: rgba(255,255,255,0.2);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info, .contact-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: #0f172a;
    margin: 1rem 0 0.5rem;
}

.contact-info p {
    color: #475569;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0f172a;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e293b;
}

footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
}

footer a:hover {
    color: #1e293b;
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .about-container, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .section h1 {
        font-size: 1.8rem;
    }
}

/* HERO AVEC IMAGE DE FOND - VERSION COMPACTE */
.hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 20px;
    margin-bottom: 2rem;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.8));
    border-radius: 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 1.5rem;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 300px;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.service-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.service-link:hover {
    color: #0f172a;
}

/* WHY US SECTION */
.why-us {
    background: #f1f5f9;
    border-radius: 30px;
    padding: 3rem 2rem;
    margin: 3rem auto;
}

.why-us h2 {
    color: #0f172a;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.feature h3 {
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p {
    color: #475569;
    font-size: 0.9rem;
}

/* CTA SECTION - Version corrigée (noir/gris) */
.cta-section {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 20px;
    text-align: center;
    padding: 3rem 2rem;
    margin: 3rem 0;
}

.cta-content h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #fef3c7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cta-phone {
    display: inline-block;
    background: #ffffff;
    color: #1e293b;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-phone:hover {
    background: #fef3c7;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .why-us {
        padding: 2rem 1rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
}

/* WHY US SECTION - STYLE CARTES */
.why-us {
    background: transparent;
    padding: 3rem 2rem;
    margin: 3rem auto;
}

.why-us h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.why-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.why-card p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}
/* CTA SECTION - Version corrigée (noir/gris) */
.cta-section {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 20px;
    text-align: center;
    padding: 3rem 2rem;
    margin: 3rem 0;
}

.cta-content h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #fef3c7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cta-phone {
    display: inline-block;
    background: #ffffff;
    color: #1e293b;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-phone:hover {
    background: #fef3c7;
    transform: translateY(-2px);
}

/* SECTION HEADER CENTRÉ */
.services-section {
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: #1e293b;
    margin: 0.5rem auto 0;
    border-radius: 3px;
}

/* SERVICES GRID - Garde les cartes alignées */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    text-align: left;
}

/* Compteur de visites */
.stats-counter {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #334155;
    font-size: 0.8rem;
    color: #94a3b8;
}
/* Bouton blanc avec texte noir */
.btn-white {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 2px solid #ffffff;
}

.btn-white:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}