/* =========================================================
   TonkpiTour — Design touristique
   ========================================================= */

:root {
    --tt-green: #1e5c3b;
    --tt-green-dark: #14412a;
    --tt-gold: #f0a11e;
    --tt-gold-dark: #d18a12;
    --tt-cream: #fdf6ec;
    --tt-text: #2b2b2b;
    --tt-muted: #6c757d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #fff;
    color: var(--tt-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Navbar ---------- */
.navbar-tour {
    background: linear-gradient(90deg, var(--tt-green-dark), var(--tt-green));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.navbar-tour .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.navbar-tour .nav-link:hover,
.navbar-tour .nav-link.active {
    color: var(--tt-gold);
}

/* ---------- Hero ---------- */
.hero-tour {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(rgba(14, 40, 25, 0.65), rgba(14, 40, 25, 0.55)),
        url('../images/hero.jpg') center/cover no-repeat;
    background-color: var(--tt-green-dark);
}

.hero-tour h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.hero-tour .lead {
    font-size: clamp(1rem, 2vw, 1.35rem);
    max-width: 720px;
    margin-inline: auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    padding: 0.35rem 0.9rem;
    border-radius: 50rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Recherche rapide ---------- */
.quick-search {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
    padding: 1.4rem;
    max-width: 1000px;
    margin: -3.5rem auto 0;
    position: relative;
    z-index: 5;
}

.quick-search .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tt-muted);
    margin-bottom: 0.25rem;
}

/* ---------- Sections ---------- */
.section-title {
    position: relative;
    padding-bottom: 0.6rem;
    font-weight: 800;
    color: var(--tt-green-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--tt-gold), var(--tt-green));
}

.section-subtitle {
    color: var(--tt-muted);
}

.bg-tour {
    background: var(--tt-green);
    color: #fff;
}

.border-tour {
    border-color: var(--tt-green) !important;
}

.text-tour {
    color: var(--tt-green);
}

.cta-tour {
    background: linear-gradient(rgba(14, 40, 25, 0.85), rgba(14, 40, 25, 0.85)),
        url('../images/hero.jpg') center/cover no-repeat;
    background-color: var(--tt-green-dark);
}

/* ---------- Pages internes ---------- */
.page-hero {
    background: linear-gradient(rgba(14, 40, 25, 0.75), rgba(14, 40, 25, 0.75)),
        url('../images/hero.jpg') center/cover no-repeat;
    background-color: var(--tt-green-dark);
    color: #fff;
}

.page-hero h1 {
    font-weight: 800;
}

/* ---------- Cartes ---------- */
.card-tour {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-tour:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.card-tour .card-img-top {
    height: 230px;
    object-fit: cover;
    background-color: #e9e9e9;
}

.card-tour .badge-type {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    background: rgba(20, 40, 25, 0.82);
    color: #fff;
    backdrop-filter: blur(3px);
}

.price-badge {
    color: var(--tt-green);
    font-weight: 700;
    font-size: 1.05rem;
}

/* ---------- Boutons ---------- */
.btn-tour {
    background: linear-gradient(90deg, var(--tt-gold), var(--tt-gold-dark));
    border: none;
    color: #1a1a1a;
    font-weight: 600;
}

.btn-tour:hover {
    color: #fff;
    filter: brightness(1.05);
}

.btn-outline-tour {
    border: 2px solid var(--tt-green);
    color: var(--tt-green);
    font-weight: 600;
}

.btn-outline-tour:hover {
    background: var(--tt-green);
    color: #fff;
}

.btn-whatsapp {
    background-color: #25d366;
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background-color: #1db954;
    color: #fff;
}

/* ---------- Fiches ---------- */
.detail-hero {
    height: 55vh;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.detail-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 40, 25, 0.75), transparent 60%);
}

.gallery-thumb {
    cursor: pointer;
    border-radius: 0.6rem;
    object-fit: cover;
    height: 96px;
    width: 100%;
    transition: opacity 0.2s;
}

.gallery-thumb:hover {
    opacity: 0.75;
}

.rating-stars {
    color: var(--tt-gold);
}

.equipment-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--tt-cream);
    border: 1px solid #f0e0c8;
    border-radius: 50rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.88rem;
}

/* ---------- Tableaux ---------- */
.table-tour th {
    background: var(--tt-green-dark);
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.footer-tour {
    background: var(--tt-green-dark);
    color: rgba(255, 255, 255, 0.85);
}

.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--tt-gold);
}

/* ---------- Divers ---------- */
.stars-input {
    font-size: 1.6rem;
    color: #cfc9c2;
    cursor: pointer;
}

.stars-input .active {
    color: var(--tt-gold);
}

.favorite-btn {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--tt-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.favorite-btn.active {
    color: #e0245e;
}

/* ---------- Bouton WhatsApp flottant ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 1050;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: whatsapp-ring 2.2s ease-out infinite;
}

@keyframes whatsapp-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 54px;
        height: 54px;
        font-size: 1.7rem;
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 576px) {
    .quick-search {
        margin-top: -2rem;
        border-radius: 0.9rem;
    }
}