/* --- 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 / Solaire */
    --secondary: #1e293b; /* Dark slate */
    --light: #f8fafc;
    --dark: #0f172a;
}

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

/* --- TOP BAR --- */
.top-bar {
    background-color: #0f172a;
    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: 15px;
    flex-wrap: wrap;
}

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

.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;
    font-size: 0.8rem;
}

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

/* --- HEADER & MENU BURGER --- */
header {
    background: var(--secondary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
}

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

/* MENU BURGER (TSIPIKA TELO) */
.burger-menu {
    display: none; /* Afeninay amin'ny Desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1200;
}

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

/* NAV LINKS (DESKTOP DEFAULT) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links li a:hover::after, 
.nav-links li a.active::after {
    width: 100%;
}

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

/* --- HERO SECTION --- */
.hero {
    background-size: cover;
    background-position: center;
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 50px 20px;
    position: relative;
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto 25px auto;
    color: #f1f5f9;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.btn:hover {
    background: #b45309;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- CONTENT SECTIONS --- */
.container {
    padding: 60px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

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

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.15);
}

.card img, .card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card-body p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-body span {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    width: fit-content;
}

/* --- SECTIONS SPECIFIQUES (WHY US / FEATURES) --- */
.why-us {
    background-color: #edf2f7;
    padding: 60px 5%;
}

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

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

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

.feature-item h4 {
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 1.2rem;
}

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

/* --- CONTACT CONTAINER --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

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

/* --- BOUTONS FLOTTANTS --- */
.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.25);
    animation: bounce 2s infinite;
}

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

.float-email {
    background-color: #ea4335;
    animation-delay: 0.3s;
}

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

/* --- FOOTER --- */
footer {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

footer .footer-details {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

/* --- RESPONSIVE DESIGN (MOBILE & TABLETTE) --- */
@media (max-width: 992px) {
    .burger-menu {
        display: flex; /* Mivoaka ny menu burger rehefa kely ny efijery */
    }

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

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

    .nav-links li a {
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .top-bar {
        justify-content: center;
        text-align: center;
    }

    .hero {
        min-height: 60vh;
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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