* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: #f4f6f9;
    color: #1a253c;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* NAVBAR FIXED GLOBAL */
header {
    background-color: #1a253c;
    color: white;
    padding: 12px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #d4af37;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    background-color: white;
    padding: 2px;
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 22px;
    color: #d4af37;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-text p {
    font-size: 11px;
    color: #a0aec0;
    text-transform: uppercase;
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.nav-menu li a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #1a253c;
    background-color: #d4af37;
}

.loc-badge {
    background-color: #2c3d5a;
    color: #d4af37;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

/* BOKOTRA HAMBURGER */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* MAIN CONTENT MANAGER */
.page-section {
    display: none;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 78px auto 0 auto;
    width: 100%;
    animation: slideUp 0.4s ease forwards;
}

.page-section.active-page {
    display: block;
}

#home-page {
    max-width: 100%;
    width: 100%;
    margin-top: 78px;
    padding: 0;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HERO SECTION */
/* HERO SECTION VAOVAO SY MATIHANINA */
/* 1. HITSINHY NY BACKGROUND HERO */
.hero {
    position: relative;
    /* Natao saraka tsara ny gradient sy ny sary mba ho mora hita izay olana */
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(26, 37, 60, 0.85)), url('sary-trano.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 150px 20px 100px 20px;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* 2. MAKA ANTOKA FA HO EO AFbackgroundOVOANY FOANA ILAY LOGO BORIBORY */
.hero-logo-center {
    width: 130px;
    height: 130px;
    background-color: white;
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border: 4px solid #d4af37;
    margin: 0 auto 25px auto; /* Nampiana '0 auto' mba hitoetra eo afovoany tsara foana */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.hero-logo-center img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.5px;
    max-width: 800px;
    line-height: 1.3;
}

.hero h2 span {
    color: #d4af37;
}

.hero p {
    font-size: 18px;
    max-width: 650px;
    margin-bottom: 40px;
    color: #cbd5e1;
    line-height: 1.7;
}

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

.hero-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-btn-primary {
    background-color: #d4af37;
    color: #1a253c;
    border: 2px solid #d4af37;
}

.hero-btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.hero-btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hero-btn-secondary:hover {
    background-color: #ffffff;
    color: #1a253c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* SERVICES SECTION STYLE */
.services-section {
    text-align: center;
}

.services-section h2 {
    font-size: 28px;
    color: #1a253c;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.services-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #d4af37;
    border-radius: 2px;
}

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

.service-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid #1a253c;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-bottom-color: #d4af37;
}

.service-icon {
    font-size: 40px;
    color: #d4af37;
    margin-bottom: 15px;
    background-color: #f4f6f9;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.service-card h3 {
    font-size: 20px;
    color: #1a253c;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* =========================================================================
   STYLE VAOVAO: GALERIE DES SERVICES (Trano, Tany, Design)
   ========================================================================= */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover, 
.filter-btn.active {
    background-color: #1a253c;
    color: white;
    border-color: #1a253c;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

.gallery-info {
    padding: 20px;
    text-align: left;
}

.gallery-info h4 {
    font-size: 18px;
    color: #1a253c;
    margin-bottom: 8px;
}

.gallery-info .price {
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 8px;
}

.gallery-info .loc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
}

.gallery-info .loc i {
    color: #d4af37;
    margin-right: 5px;
}

.btn-sm-wa {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-sm-wa:hover {
    background-color: #1ebd58;
}


/* FORMULAIRES & CONTRACT STYLES */
.form-page-container {
    max-width: 750px;
    margin: 0 auto;
}

.section-box {
    background: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-top: 6px solid #1a253c;
}

.section-box.candidat-box {
    border-top-color: #d4af37;
}

.section-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a253c;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-box h3 i { color: #d4af37; }
.candidat-box h3 i { color: #1a253c; }

.section-box ul {
    list-style: none;
    margin-bottom: 30px;
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1a253c;
}

.section-box.candidat-box ul { border-left-color: #d4af37; }

.section-box ul li {
    margin-bottom: 12px;
    font-size: 13.5px;
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
    color: #334155;
}

.section-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
    font-size: 15px;
}

.section-box ul li.nb-note {
    list-style: none;
    padding-left: 0;
    font-weight: bold;
    color: #e74c3c;
    margin-top: 15px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
}

.section-box ul li.nb-note::before { content: ""; }

.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    color: #1a253c;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #1a253c;
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(26, 37, 60, 0.1);
}

.candidat-box input:focus, .candidat-box select:focus, .candidat-box textarea:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.extra-textarea-container { display: none; animation: fadeIn 0.4s ease forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CHECKBOX AGREEMENT */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
    cursor: pointer;
}

.checkbox-group input {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    font-weight: 500;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #1a253c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(26, 37, 60, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background-color: #d4af37;
    color: #1a253c;
    transform: translateY(-2px);
}

.candidat-box .btn-submit {
    background-color: #d4af37;
    color: #1a253c;
}

.candidat-box .btn-submit:hover {
    background-color: #1a253c;
    color: white;
}

/* STATUS MESSAGE BOX */
.form-status {
    display: none;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.3s ease;
}
.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

footer {
    text-align: center;
    padding: 25px;
    margin-top: auto;
    font-size: 14px;
    color: #718096;
    border-top: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.contact-rapide {
    padding: 60px 20px;
    text-align: center;
    background: white;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    background:#1a253c;
    color: white;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
}

.stat-box h2 {
    font-size: 40px;
    color: #d4af37;
    margin-bottom: 10px;
}

/* FLOATING BUTTONS (WhatsApp & Messenger) */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: white;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.messenger-float {
    position: fixed;
    bottom: 95px; /* Napetraka eo ambonin'ny bokotra WhatsApp */
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0084ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: white;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    transition: transform 0.3s ease;
}

.messenger-float:hover {
    transform: scale(1.1);
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    header { padding: 15px 20px; }
    .menu-toggle { display: flex; }
    .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }

    .nav-menu {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a253c;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        border-bottom: 3px solid #d4af37;
    }

    .nav-menu.open { display: flex; }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-menu li a { display: inline-block; width: 80%; font-size: 16px; padding: 10px; }

    .hero h2 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .services-section h2 { font-size: 24px; }
    .form-row { flex-direction: column; gap: 0; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; }
    .hero-btn { width: 100%; justify-content: center; }
}

