/* --- REGLES GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

:root {
    --primary: #d97706; /* Amber Énergie / Électricité */
    --secondary: #0f172a; /* Dark slate */
    --light: #f8fafc;
    --dark: #1e293b;
    --border-color: #cbd5e1;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--secondary);
    color: white;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar .contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar a, .top-bar span {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar a:hover {
    color: var(--primary);
}

.lang-switch {
    display: flex;
    gap: 5px;
}

.lang-switch button {
    background: transparent;
    border: 1px solid var(--primary);
    color: white;
    padding: 3px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

.lang-switch button.active, .lang-switch button:hover {
    background: var(--primary);
}

/* --- HEADER & NAVIGATION --- */
header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

/* MENU BURGER */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.burger-menu div {
    width: 30px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s linear;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    color: var(--dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--primary);
}

/* --- HERO SECTION & BANNERS --- */
.hero-section, .page-banner {
    position: relative;
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-overlay, .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    z-index: 1;
}

.hero-bg-img, .banner-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content, .banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1, .banner-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p, .banner-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #e2e8f0;
}

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

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary, .btn-cta {
    background: var(--primary);
    color: white;
}

.btn-primary:hover, .btn-cta:hover {
    background: #b45309;
}

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

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

/* --- FEATURES BAR --- */
.features-bar {
    background: white;
    padding: 30px 5%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-item i {
    font-size: 2.2rem;
    color: var(--primary);
}

.feature-item h3 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 3px;
}

.feature-item p {
    font-size: 0.85rem;
    color: #64748b;
}

/* --- GENERAL CONTAINER & TITLES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.section-title + p {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* --- GRIDS & CARDS (SERVICES, PROJETS, ETC.) --- */
.services-grid, .grid, .services-detailed-grid, .projects-grid, .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card, .card, .service-detail-card, .project-card, .value-card, .mv-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    position: relative; /* Ahitsio: Mba ho voafehy tsara ao anaty karatra ny toerana */
}

/* AHITSIO ETO: Natao mazava tsara ny toerana hisian'ny sary sy ny soratra mba tsy hifampitaingina */
.card-img, .service-card-img, .project-img img, .team-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    position: relative; /* Nesorina ny position absolute raha nisy nampiasa azy teo aloha */
    z-index: 1;
}

.card-body, .service-card-body, .project-info, .team-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2; /* Natao ambony kokoa mba ho azo antoka fa tsy ho takon'ny sary mihitsy ny soratra */
    background: white; /* Manakana ny soratra tsy ho mangarahara raha misy mifanindry */
}

.card-body h3, .service-card-body h3, .project-info h3, .mv-card h3 {
    margin-bottom: 12px;
    color: var(--secondary);
    font-size: 1.3rem;
}

/* LISTS INSIDE CARDS */
.service-feature-list {
    list-style: none;
    margin-top: 15px;
}

.service-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #475569;
}

.service-feature-list li i {
    color: var(--primary);
    margin-top: 4px;
}

/* --- ABOUT & WHY US SECTIONS --- */
.about-section, .why-us, .mission-vision-section, .values-section, .commitments-section, .team-section, .process-section {
    padding: 70px 5%;
}

.about-grid, .why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2, .why-text h2, .commitments-box h2 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-text p, .why-text p {
    margin-bottom: 15px;
    color: #475569;
    line-height: 1.7;
}

.about-img img, .why-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* MISSION & VISION CARDS */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mv-card {
    padding: 40px 30px;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.mv-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* VALUES CARDS */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.value-card {
    padding: 30px;
    text-align: center;
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.value-card h3 {
    margin-bottom: 10px;
    color: var(--secondary);
}

.value-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* COMMITMENTS BOX */
.commitments-box {
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.commitments-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.commitment-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.commitment-item i {
    font-size: 1.8rem;
    color: var(--primary);
}

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

/* --- PROCESS SECTION --- */
.process-section {
    background: #f1f5f9;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.step-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.step-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.step-card h4 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.step-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 60px 5%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info-box, .contact-form-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info-box h3, .contact-form-box h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-desc {
    color: #64748b;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 3px;
}

.info-item h4 {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 3px;
}

.info-item p, .info-item a {
    color: #475569;
    text-decoration: none;
}

.info-item a:hover {
    color: var(--primary);
}

/* FORM STYLES */
.email-form {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary);
    margin-right: 5px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--dark);
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* --- CTA SECTION --- */
.cta-section {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 70px 20px;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

/* --- FLOATING WHATSAPP BUTTON --- */
.floating-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: bounce 2s infinite;
}

.float-whatsapp {
    background-color: #25d366;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* --- FOOTER --- */
footer {
    background: var(--secondary);
    color: white;
    padding-top: 50px;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-about h3, .footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
}

.footer-about p, .footer-contact p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    background: #090d16;
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN (MOBILE) --- */
@media (max-width: 992px) {
    .about-grid, .why-grid, .mv-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 260px;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.3s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        color: var(--secondary);
        font-size: 1.2rem;
    }

    .hero-content h1, .banner-content h1 {
        font-size: 2.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .commitments-box, .contact-info-box, .contact-form-box {
        padding: 25px;
    }
}