/* ===========================
   Ha Giang Loop - Global Styles
   =========================== */

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

:root {
    --green: #2d6a4f;
    --green-light: #40916c;
    --green-dark: #1b4332;
    --orange: #e76f51;
    --orange-light: #f4a261;
    --yellow: #f9c74f;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --dark: #212529;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.18);
    --radius: 12px;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background: #fff;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(27, 67, 50, 0.97);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}
.logo span { color: var(--yellow); }
.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}
.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--yellow); }
.nav-cta {
    background: var(--orange);
    color: white !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--orange-light) !important; color: white !important; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(27,67,50,0.85) 0%, rgba(64,145,108,0.7) 100%),
                url('https://images.unsplash.com/photo-1552465011-b4e21bf6e79a?w=1600') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}
.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--dark);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero h1 em {
    font-style: normal;
    color: var(--yellow);
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--orange);
    color: white;
    box-shadow: 0 4px 15px rgba(231,111,81,0.5);
}
.btn-primary:hover {
    background: #cf5a3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231,111,81,0.6);
}
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    flex-wrap: wrap;
}
.hero-stat {
    text-align: center;
}
.hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--yellow);
}
.hero-stat span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== SECTIONS GÉNÉRALES ===== */
section { padding: 80px 0; }
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 12px;
}
.section-subtitle {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 50px;
    max-width: 600px;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== WHAT IS ===== */
.what-is { background: var(--gray-light); }
.what-is-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.what-is-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.what-is-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.what-is-img .img-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--green-dark);
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}
.what-is-text .section-title { margin-bottom: 20px; }
.what-is-text p { color: #444; margin-bottom: 16px; }
.feature-list {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-weight: 500;
}
.feature-list li .icon {
    width: 36px;
    height: 36px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ===== BEST TIME ===== */
.best-time { background: white; }
.seasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.season-card {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    border-top: 4px solid transparent;
    transition: all 0.3s;
}
.season-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.season-card.best { border-color: var(--green); background: #f0faf5; }
.season-card.good { border-color: var(--yellow); background: #fffdf0; }
.season-card.avoid { border-color: #dee2e6; }
.season-icon { font-size: 2.5rem; margin-bottom: 12px; }
.season-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.season-card .months { font-size: 0.85rem; color: var(--gray); margin-bottom: 10px; font-weight: 600; }
.season-card p { font-size: 0.85rem; color: #555; }
.season-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.badge-best { background: var(--green); color: white; }
.badge-good { background: var(--yellow); color: var(--dark); }
.badge-avoid { background: #dee2e6; color: var(--gray); }

/* ===== TYPES DE TOURS ===== */
.tour-types { background: var(--green-dark); color: white; }
.tour-types .section-title { color: white; }
.tour-types .section-subtitle { color: rgba(255,255,255,0.7); }
.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.type-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}
.type-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}
.type-card.featured {
    background: var(--orange);
    border-color: var(--orange);
}
.type-icon { font-size: 3rem; margin-bottom: 16px; }
.type-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.type-card .price-range { font-size: 1.5rem; font-weight: 800; color: var(--yellow); margin-bottom: 8px; }
.type-card.featured .price-range { color: white; }
.type-card p { font-size: 0.9rem; opacity: 0.85; margin-bottom: 16px; }
.type-pros { list-style: none; text-align: left; }
.type-pros li {
    padding: 4px 0;
    font-size: 0.85rem;
    opacity: 0.85;
}
.type-pros li::before { content: "✓ "; color: var(--yellow); font-weight: 700; }
.type-card.featured .type-pros li::before { color: white; }

/* ===== COMPARATIF OPÉRATEURS ===== */
.operators { background: var(--gray-light); }
.operators-intro {
    background: white;
    border-radius: var(--radius);
    padding: 24px 32px;
    margin-bottom: 40px;
    border-left: 4px solid var(--green);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}
.operators-intro .info-icon { font-size: 2rem; }
.operators-intro p { color: #444; font-size: 0.95rem; }
.operators-intro strong { color: var(--green-dark); }

/* Grille des opérateurs */
.operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}
.operator-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.operator-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.op-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}
.op-badge.top { background: var(--orange); color: white; }
.op-badge.popular { background: var(--green); color: white; }
.op-badge.budget { background: var(--yellow); color: var(--dark); }
.op-badge.premium { background: var(--green-dark); color: white; }

.op-header {
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    padding: 28px 24px;
    color: white;
}
.op-rank {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.op-header h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.op-header .op-tagline { font-size: 0.85rem; opacity: 0.85; }
.op-stars { color: var(--yellow); font-size: 1rem; margin-top: 6px; }

.op-body { padding: 24px; flex: 1; }
.op-prices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--gray-light);
    border-radius: 8px;
    border-left: 3px solid var(--green-light);
}
.price-row.highlight { background: #f0faf5; border-color: var(--green); }
.price-label { font-size: 0.85rem; color: #555; }
.price-value { font-weight: 800; color: var(--green-dark); font-size: 1.05rem; }

.op-includes {
    margin-bottom: 20px;
}
.op-includes h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 10px;
    font-weight: 700;
}
.include-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.include-tag {
    background: #e8f5e9;
    color: var(--green-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.op-contact {
    background: var(--gray-light);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #555;
}
.op-contact span { display: block; margin-bottom: 2px; }

.op-footer { padding: 0 24px 24px; }
.op-footer .btn-book {
    width: 100%;
    justify-content: center;
    background: var(--green);
    color: white;
    padding: 13px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.op-footer .btn-book:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

/* ===== TABLEAU COMPARATIF ===== */
.comparison { background: white; }
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
thead {
    background: var(--green-dark);
    color: white;
}
thead th {
    padding: 16px 18px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}
thead th:first-child { border-radius: 12px 0 0 0; }
thead th:last-child { border-radius: 0 12px 0 0; }
tbody tr { border-bottom: 1px solid #eee; }
tbody tr:hover { background: #f8fff9; }
tbody tr.highlighted { background: #f0faf5; }
tbody td { padding: 14px 18px; vertical-align: middle; }
.td-name { font-weight: 700; color: var(--green-dark); }
.td-price { font-weight: 700; color: var(--orange); }
.td-check { color: var(--green); font-size: 1.1rem; }
.td-cross { color: #ccc; }
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--green-dark);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 8px;
}
.rank-badge.gold { background: #f9c74f; color: var(--dark); }
.rank-badge.silver { background: #adb5bd; color: white; }
.rank-badge.bronze { background: #c4773b; color: white; }

/* ===== TIPS ===== */
.tips { background: var(--gray-light); }
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.tip-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.tip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tip-icon { font-size: 2.5rem; margin-bottom: 14px; }
.tip-card h3 { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.tip-card p { font-size: 0.88rem; color: #555; }

/* ===== FAQ ===== */
.faq { background: white; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}
.faq-q {
    font-weight: 700;
    color: var(--green-dark);
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.faq-q::before {
    content: "Q";
    background: var(--green);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.faq-a {
    font-size: 0.9rem;
    color: #555;
    padding-left: 34px;
    line-height: 1.7;
}

/* ===== CTA FINAL ===== */
.cta-section {
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    color: white;
    text-align: center;
    padding: 80px 0;
}
.cta-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}
.footer-logo span { color: var(--yellow); }
.footer-desc { font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}
.footer-bottom a { color: var(--yellow); }
.affiliate-disclaimer {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.78rem;
    margin-top: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== STICKY CTA ===== */
.sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: var(--orange);
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(231,111,81,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.sticky-cta:hover {
    background: #cf5a3c;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(231,111,81,0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .what-is-grid, .types-grid, .tips-grid { grid-template-columns: 1fr; }
    .seasons-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .operators-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
@media (max-width: 600px) {
    section { padding: 56px 0; }
    .hero-stats { gap: 24px; }
    .seasons-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}
