* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
}

nav a.active {
    color: #f39c12;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 2px;
}

nav a:hover {
    opacity: 0.8;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('electricien-travail.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #c0392b;
}

.services, .realisations, .contact {
    padding: 80px 0;
}

.services {
    background: #f8f9fa;
}

.services h2, .realisations h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.service-card p {
    padding: 0 20px 20px;
    color: #666;
}

.service-link {
    display: inline-block;
    margin: 0 20px 20px;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.service-link:hover {
    color: #2980b9;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

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

.realisation-item {
    background: #ecf0f1;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.realisation-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.realisation-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.realisation-item p {
    color: #666;
}

.contact {
    background: #2c3e50;
    color: white;
}

.contact h2 {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #3498db;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #2980b9;
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid,
    .realisations-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Services */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('electricien-travail.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.services-detail {
    padding: 80px 0;
}

.service-detail-grid {
    display: grid;
    gap: 60px;
}

.service-detail-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-content {
    padding: 40px;
}

.service-content h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.service-content ul {
    list-style: none;
    margin-bottom: 30px;
}

.service-content ul li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.service-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.service-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* Page Réalisations */
.realisations-detail {
    padding: 80px 0;
    background: #f8f9fa;
}

.projects-grid {
    display: grid;
    gap: 80px;
    margin-bottom: 80px;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-gallery {
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
}

.gallery-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-thumbnails img:hover {
    opacity: 0.7;
}

.project-info {
    padding: 40px;
}

.project-info h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.project-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.project-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-details span {
    background: #ecf0f1;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
}

/* Témoignages */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    display: none;
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-item.active {
    display: block;
}

.testimonial-content p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    background: #3498db;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: #2980b9;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: #3498db;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid,
    .realisations-grid {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-content {
        padding: 30px 20px;
    }
    
    .project-info {
        padding: 30px 20px;
    }
    
    .project-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .testimonial-content p {
        font-size: 1.1rem;
    }
}