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

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #1d3557;
    --secondary-light: #2d4a7c;
    --light: #f8f9fa;
    --dark: #333;
    --gray: #666;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

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

h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 30px;
    text-align: center;
}

h3 {
    font-size: 1.3rem;
    color: var(--secondary);
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    position: relative;
    display: inline-block;
}

.logo a::after {
    content: "Kaenergie - L'énergie qui fait avancer la RDC";
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.logo a::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--secondary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.logo a:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

.logo a:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: -12px;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-nav:hover {
    background: var(--primary-dark);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 100px 20px 60px;
}

.hero-content {
    max-width: 900px;
}

.hero h2 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.85;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--secondary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
}

.quote-highlight {
    padding: 26px 0;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.quote-highlight-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--white);
}

.quote-kicker {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    opacity: 0.85;
    margin-bottom: 6px;
}

.quote-highlight-content h3 {
    color: var(--white);
    margin-bottom: 4px;
}

.quote-highlight-content p {
    opacity: 0.88;
}

.quote-highlight-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.quote-highlight .btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
}

.floating-devis {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    font-weight: 700;
    z-index: 1200;
}

.floating-devis:hover {
    background: var(--primary-dark);
}

/* Sections */
.section {
    padding: 90px 0;
}

.bg-light {
    background: var(--light);
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text .lead {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--gray);
}

.about-features {
    display: grid;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    background: var(--primary);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-item h4 {
    margin-bottom: 5px;
    color: var(--secondary);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Why */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.why-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.why-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 10px;
}

.why-card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.service-card ul {
    text-align: left;
    font-size: 0.85rem;
    color: var(--gray);
}

.service-card li {
    padding: 5px 0;
    border-bottom: 1px solid var(--light);
}

.service-card li:last-child {
    border-bottom: none;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.product-card.featured {
    border: 2px solid var(--primary);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-badge {
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.product-uses {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-uses span {
    background: var(--light);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 30px;
    font-size: 2rem;
    color: var(--primary);
}

.step-number {
    background: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author strong {
    display: block;
    color: var(--secondary);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.faq-item {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 1.5rem;
}

.info-item p {
    color: var(--gray);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 25px;
}

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-about p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-services h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.footer-links a:hover,
.footer-services a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .why-grid,
    .services-grid,
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .why-grid,
    .services-grid,
    .products-grid,
    .testimonials-grid,
    .process-steps,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .quote-highlight-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .quote-highlight-actions {
        width: 100%;
        flex-direction: column;
    }

    .quote-highlight-actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        gap: 30px;
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .floating-devis {
        left: 12px;
        right: 12px;
        bottom: 12px;
        text-align: center;
        border-radius: 10px;
    }
}

/* Slideshow */
.slideshow-section {
    padding: 90px 0;
    background: var(--light);
}

.slideshow {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.slide-prev:hover,
.slide-next:hover {
    background: var(--primary);
}

.slide-prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.slide-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

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

.slide-dot {
    width: 12px;
    height: 12px;
    background: var(--gray);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.slide-dot.active {
    background: var(--primary);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}
