/* ============================================
   EVAWAY TRAVEL — CSS CUSTOM (Bootstrap 5.3.8)
   Ce fichier complète Bootstrap, ne le remplace pas
   ============================================ */

/* ── Variables custom ── */
:root {
    --ev-primary:    #253a7d;
    --ev-primary-d:  #253a7d;
    --ev-primary-l:  #e8f5f2;
    --ev-accent:     #3d92cf;
    --ev-accent-d:   #176bb5;
    --ev-text:       #1a1a2e;
    --ev-muted:      #6c757d;
    --ev-border:     #dee2e6;
    --ev-bg:         #f8f9fa;
    --ev-radius:     10px;
    --ev-radius-lg:  16px;
    --ev-transition: .2s ease;
}

/* Override couleurs Bootstrap */
.btn-primary, .bg-primary { background-color: var(--ev-primary) !important; border-color: var(--ev-primary) !important; }
.btn-primary:hover { background-color: var(--ev-primary-d) !important; border-color: var(--ev-primary-d) !important; }
.text-primary { color: var(--ev-primary) !important; }
.border-primary { border-color: var(--ev-primary) !important; }
.btn-outline-primary { color: var(--ev-primary) !important; border-color: var(--ev-primary) !important; }
.btn-outline-primary:hover { background-color: var(--ev-primary) !important; color: #fff !important; }

.btn-warning, .bg-warning { background-color: var(--ev-accent) !important; border-color: var(--ev-accent) !important; color: #fff !important; }
.btn-warning:hover { background-color: var(--ev-accent-d) !important; }

/* ── Navbar custom ── */
.navbar-brand .logo-icon { font-size: 26px; color: var(--ev-primary); }
.navbar-brand .logo-text  { font-size: 20px; font-weight: 700; color: var(--ev-text); }
.navbar-brand .logo-text span { color: var(--ev-primary); }
.navbar .nav-link { font-size: 14px; font-weight: 500; color: var(--ev-text) !important; padding: 6px 12px; border-radius: 6px; transition: var(--ev-transition); }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--ev-primary) !important; background: var(--ev-primary-l); }

/* ── Hero ── */
.ev-hero {
    background: linear-gradient(135deg, var(--ev-primary) 0%, var(--ev-primary-d) 100%);
    padding: 80px 0 70px; color: #fff;
}
.ev-hero h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; line-height: 1.15; }
.ev-hero p  { font-size: 18px; opacity: .88; }

/* ── Barre de recherche ── */
.search-card {
    background: #fff; border-radius: var(--ev-radius-lg);
    padding: 24px 28px; margin-top: -36px;
    position: relative; z-index: 10;
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
}
.search-card label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ev-muted); }

/* ── Section titre ── */
.section-label {
    display: inline-block; font-size: 12px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--ev-primary); background: var(--ev-primary-l);
    padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
}

/* ── Carte voyage ── */
.voyage-card { border-radius: var(--ev-radius-lg) !important; border: 1px solid var(--ev-border) !important; overflow: hidden; transition: transform var(--ev-transition), box-shadow var(--ev-transition); }
.voyage-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.12) !important; }

.voyage-card-img { position: relative; height: 220px; overflow: hidden; }
.voyage-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.voyage-card:hover .voyage-card-img img { transform: scale(1.06); }

.cat-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--ev-primary); color: #fff;
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
}
.cat-badge.religieux   { background: #7c3a1e; }
.cat-badge.international { background: #1a3f6f; }

.places-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--ev-accent); color: #fff;
    font-size: 11px; font-weight: 700; padding: 4px 10px;
    border-radius: 20px; display: none;
}
.places-badge.show { display: block; }

.voyage-meta span { font-size: 12px; color: var(--ev-muted); }
.voyage-meta i { color: var(--ev-primary); font-size: 14px; }

.prix-main { font-size: 24px; font-weight: 800; color: var(--ev-primary); }
.prix-barre { font-size: 13px; color: var(--ev-muted); text-decoration: line-through; }
.prix-pp { font-size: 11px; color: var(--ev-muted); }

/* ── Étoiles ── */
.stars { color: #f59e0b; letter-spacing: 1px; }

/* ── Stats ── */
.stat-card { text-align: center; padding: 32px 16px; }
.stat-num   { font-size: 44px; font-weight: 800; color: var(--ev-primary); line-height: 1; }
.stat-label { font-size: 14px; color: var(--ev-muted); margin-top: 6px; }

/* ── Avis ── */
.avis-card { border-radius: var(--ev-radius-lg) !important; border: 1px solid var(--ev-border) !important; }
.avis-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--ev-primary-l); color: var(--ev-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.avis-card blockquote { font-style: italic; font-size: 14px; color: var(--ev-muted); line-height: 1.7; }

/* ── Blog ── */
.blog-card { border-radius: var(--ev-radius-lg) !important; overflow: hidden; border: 1px solid var(--ev-border) !important; }
.blog-card-img { height: 180px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

/* ── Page détail voyage ── */
.voyage-hero { position: relative; height: 440px; overflow: hidden; }
.voyage-hero img { width: 100%; height: 100%; object-fit: cover; }
.voyage-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.05) 60%);
    display: flex; align-items: flex-end;
}
.voyage-hero-content { padding: 36px 40px; color: #fff; }
.voyage-hero-content h1 { font-size: clamp(24px, 4vw, 42px); font-weight: 800; }

.sidebar-card { border-radius: var(--ev-radius-lg) !important; position: sticky; top: 84px; }
.prix-block { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--ev-border); margin-bottom: 18px; }
.prix-block .prix-big { font-size: 38px; font-weight: 800; color: var(--ev-primary); }

/* Programme */
.programme-item { display: flex; gap: 16px; margin-bottom: 18px; }
.programme-num {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--ev-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.programme-content h5 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.programme-content p  { font-size: 13px; color: var(--ev-muted); margin: 0; }

/* Inclus/Exclus */
.inclus-item, .exclus-item { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 8px; }
.inclus-item i { color: #22c55e; flex-shrink: 0; margin-top: 2px; }
.exclus-item  i { color: #ef4444; flex-shrink: 0; margin-top: 2px; }

/* ── Galerie ── */
.galerie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.galerie-grid img { border-radius: 8px; height: 130px; object-fit: cover; width: 100%; cursor: pointer; transition: opacity var(--ev-transition); }
.galerie-grid img:hover { opacity: .82; }

/* ── Lightbox ── */
.lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.9); z-index: 9998;
    align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 26px; font-size: 38px; color: #fff; cursor: pointer; line-height: 1; border: none; background: none; }

/* ── WhatsApp flottant ── */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 9999;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    transition: transform var(--ev-transition), box-shadow var(--ev-transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; box-shadow: 0 6px 30px rgba(37,211,102,.6); }
.wa-tooltip {
    position: absolute; right: 72px; white-space: nowrap;
    background: #1a1a2e; color: #fff;
    font-size: 13px; padding: 6px 12px; border-radius: 6px;
    opacity: 0; pointer-events: none; transition: opacity var(--ev-transition);
}
.wa-tooltip::after {
    content: ''; position: absolute; left: 100%; top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent; border-left-color: #1a1a2e;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* ── Newsletter ── */
.newsletter-section { background: var(--ev-primary); padding: 56px 0; color: #fff; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; }
.newsletter-form input { flex: 1; border-radius: 8px; border: none; padding: 12px 16px; font-size: 14px; }
.newsletter-form button { background: var(--ev-accent); color: #fff; border: none; padding: 12px 20px; border-radius: 8px; font-size: 18px; cursor: pointer; transition: background var(--ev-transition); }
.newsletter-form button:hover { background: var(--ev-accent-d); }

/* ── Footer ── */
.ev-footer { background: #0f2027; color: rgba(255,255,255,.7); }
.footer-logo-text { font-size: 20px; font-weight: 700; color: #fff; }
.footer-logo-text span { color: var(--ev-accent); }
.ev-footer h5 { color: #fff; font-size: 15px; font-weight: 700; }
.ev-footer a { color: rgba(255,255,255,.65); transition: color var(--ev-transition); text-decoration: none; }
.ev-footer a:hover { color: #fff; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; color: rgba(255,255,255,.7); transition: var(--ev-transition);
    margin-right: 6px;
}
.footer-social a:hover { background: var(--ev-primary); border-color: var(--ev-primary); color: #fff; }
.footer-divider { border-color: rgba(255,255,255,.08) !important; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.35); }

/* ── Dashboard admin ── */
.admin-sidebar { width: 250px; min-height: 100vh; background: #0f2027; color: #fff; position: fixed; left: 0; top: 0; z-index: 100; display: flex; flex-direction: column; }
.admin-sidebar .sidebar-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar .sidebar-logo h5 { color: #fff; margin: 0; font-size: 16px; }
.admin-sidebar .nav-link { color: rgba(255,255,255,.65) !important; font-size: 14px; padding: 10px 20px; border-radius: 0; display: flex; align-items: center; gap: 10px; transition: var(--ev-transition); }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: var(--ev-primary); color: #fff !important; }
.admin-sidebar .nav-link i { font-size: 18px; }
.admin-content { margin-left: 250px; min-height: 100vh; background: var(--ev-bg); }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--ev-border); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h4 { margin: 0; font-size: 18px; font-weight: 700; }

.stat-widget { border-radius: var(--ev-radius) !important; border: none !important; }
.stat-widget .stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }

/* ── Formulaire admin ── */
.admin-form-card { border-radius: var(--ev-radius-lg) !important; border: 1px solid var(--ev-border) !important; }
.programme-row { background: var(--ev-bg); border-radius: 8px; padding: 14px; margin-bottom: 10px; position: relative; }
.remove-row { position: absolute; top: 10px; right: 10px; background: none; border: none; color: #dc3545; font-size: 18px; cursor: pointer; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .admin-sidebar { width: 100%; min-height: auto; position: relative; }
    .admin-content { margin-left: 0; }
}
@media (max-width: 768px) {
    .voyage-hero { height: 300px; }
    .voyage-hero-content { padding: 20px 24px; }
    .search-card { margin-top: -20px; padding: 16px; }
    .newsletter-form { flex-direction: column; }
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero-slider-section { position: relative; }

/* Image de fond du slide */
.hero-slide-img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.hero-slide-fallback {
    width: 100%;
    height: 580px;
    background: linear-gradient(135deg, var(--ev-primary) 0%, var(--ev-primary-d) 100%);
}

/* Overlay sombre sur l'image */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,.35) 50%,
        rgba(0,0,0,.15) 100%
    );
}

/* Caption positionnée en bas */
.hero-slide-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    text-align: left;
    padding: 0;
    padding-bottom: 72px;
}

/* Contenu texte */
.hero-slide-content {
    max-width: 680px;
    animation: slideUp .5s ease both;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.carousel-item.active .hero-slide-content { animation: slideUp .6s ease .1s both; }

/* Badge catégorie */
.hero-slide-badge {
    display: inline-block;
    background: var(--ev-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: .04em;
}

/* Titre */
.hero-slide-title {
    font-size: clamp(26px, 4.5vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* Méta (durée, hôtel, prix) */
.hero-slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}
.hero-slide-meta span {
    color: rgba(255,255,255,.9);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.hero-slide-meta i { font-size: 16px; color: var(--ev-accent); }
.hero-stars { color: #fbbf24; }
.hero-prix { font-size: 15px !important; }
.hero-prix strong { color: var(--ev-accent); font-size: 20px; }

/* Boutons */
.hero-slide-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn-main {
    background: var(--ev-accent);
    border-color: var(--ev-accent);
    color: #fff;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 15px;
    transition: background .2s, transform .2s;
}
.hero-btn-main:hover {
    background: var(--ev-accent-d);
    border-color: var(--ev-accent-d);
    transform: translateY(-2px);
    color: #fff;
}
.hero-btn-secondary {
    border-color: rgba(255,255,255,.6);
    color: #fff;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 15px;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,.1);
    transition: background .2s, transform .2s;
}
.hero-btn-secondary:hover {
    background: rgba(255,255,255,.2);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* Indicateurs (pastilles) */
.hero-slider-section .carousel-indicators {
    bottom: 28px;
    gap: 6px;
    margin: 0;
    justify-content: flex-start;
    padding-left: calc((100vw - 1140px) / 2 + 12px);
}
.hero-slider-section .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    border: none;
    transition: all .3s;
    opacity: 1;
}
.hero-slider-section .carousel-indicators button.active {
    width: 28px;
    border-radius: 4px;
    background: var(--ev-accent);
}

/* Flèches */
.hero-arrow {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.15) !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255,255,255,.3) !important;
    backdrop-filter: blur(4px);
    top: 50%;
    transform: translateY(-50%);
    opacity: 1 !important;
    transition: background .2s, transform .2s;
}
.hero-arrow:hover {
    background: rgba(255,255,255,.3) !important;
    transform: translateY(-50%) scale(1.08);
}
.hero-arrow.carousel-control-prev { left: 20px; }
.hero-arrow.carousel-control-next { right: 20px; }
.hero-arrow-icon {
    font-size: 24px;
    color: #fff;
}

/* Barre de recherche sous le slider */
.search-bar-wrapper { margin-top: -36px; position: relative; z-index: 20; }

/* ============================================
   MINI BANNIÈRE PAGES INTERNES
   ============================================ */

.page-banner {
    position: relative;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.page-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.page-banner-color {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ev-primary) 0%, var(--ev-primary-d) 100%);
}
.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.72) 0%,
        rgba(0,0,0,.3) 60%,
        rgba(0,0,0,.1) 100%
    );
}
.page-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 28px 0 32px;
    color: #fff;
}
.page-banner-content .breadcrumb-item a,
.page-banner-content .breadcrumb-item.active,
.page-banner-content .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.65) !important;
}
.page-banner-content .breadcrumb-item a:hover { color: #fff !important; }
.page-banner-label {
    display: inline-block;
    background: var(--ev-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: .05em;
}
.page-banner-title {
    font-size: clamp(22px, 3.5vw, 38px);
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.page-banner-sub {
    font-size: 14px;
    color: rgba(255,255,255,.8);
    margin: 0;
}

/* ── Responsive slider ── */
@media (max-width: 768px) {
    .hero-slide-img,
    .hero-slide-fallback   { height: 420px; }
    .hero-slide-caption    { padding-bottom: 56px; }
    .hero-slide-title      { font-size: 24px; }
    .hero-slide-meta       { gap: 10px; }
    .hero-slide-meta span  { font-size: 12px; }
    .hero-btn-main,
    .hero-btn-secondary    { padding: 11px 18px; font-size: 14px; }
    .hero-arrow            { width: 38px; height: 38px; }
    .hero-arrow-icon       { font-size: 18px; }
    .hero-slider-section .carousel-indicators { padding-left: 16px; }
    .page-banner           { height: 200px; }
    .page-banner-title     { font-size: 22px; }
    .search-bar-wrapper    { margin-top: -20px; }
}
@media (max-width: 480px) {
    .hero-slide-img,
    .hero-slide-fallback { height: 340px; }
    .hero-btn-secondary  { display: none; }
}
