/* =====================================================
   TRIP TCN — Main Stylesheet
   Colors: Blue #0A2463 | Accent #1E90FF | White #FFFFFF | Dark #0D0D0D
   ===================================================== */

:root {
    --primary: #0A2463;
    --primary-light: #1B3A8C;
    --accent: #1E90FF;
    --accent-dark: #0074D9;
    --dark: #0D0D0D;
    --dark-2: #1A1A2E;
    --gray: #6C757D;
    --light-bg: #F8FAFF;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --shadow-sm: 0 2px 8px rgba(10, 36, 99, 0.08);
    --shadow-md: 0 8px 30px rgba(10, 36, 99, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 36, 99, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    padding-top: 76px;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); }

.text-accent { color: var(--accent) !important; }
.bg-accent { background: var(--accent) !important; }
.bg-primary-dark { background: var(--primary) !important; }

/* ─── BUTTONS ─── */
.btn-accent {
    background: var(--accent);
    color: white;
    border: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition);
}
.btn-accent:hover { background: var(--accent-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(30,144,255,0.4); }

.btn-primary-dark {
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
}
.btn-primary-dark:hover { background: var(--primary-light); color: white; }

/* ─── NAVBAR ─── */
#mainNav {
    background: rgba(10, 36, 99, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
#mainNav.scrolled {
    background: rgba(10, 36, 99, 0.98);
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}
#mainNav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: var(--transition);
}
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: white !important; background: rgba(255,255,255,0.1); }

.brand-icon {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 100px 0 60px;
}

/* Image de fond du hero */
.hero-bg {
    position: absolute; inset: 0;
    background-image: url('https://triptcn.com/uploads/hero/banniere.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }

/* Overlay dégradé sombre sur l'image */
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 36, 99, 0.92) 0%,
        rgba(10, 36, 99, 0.75) 50%,
        rgba(13, 13, 30, 0.85) 100%
    );
}

.hero-globe {
    position: absolute;
    right: -100px; top: 50%;
    transform: translateY(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(30,144,255,0.12) 0%, transparent 70%);
    border: 1px solid rgba(30,144,255,0.08);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}
.hero-globe::before {
    content: '';
    position: absolute; inset: 40px;
    border: 1px solid rgba(30,144,255,0.06);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite 0.5s;
}

@keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.7; }
    50% { transform: translateY(-50%) scale(1.05); opacity: 1; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 540px;
    line-height: 1.7;
}

.hero-stats { gap: 30px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 700; color: var(--accent); font-family: var(--font-display); }
.hero-stat .lbl { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(30,144,255,0.15);
    border: 1px solid rgba(30,144,255,0.3);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* ─── SECTIONS ─── */
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--primary);
}
.section-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}
.section-divider {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 2px;
    margin: 12px auto 20px;
}

/* ─── SERVICES ─── */
.services-section { background: var(--light-bg); }

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.service-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 26px; color: white;
    transition: var(--transition);
}
.service-card:hover .service-icon { transform: rotateY(180deg); }

/* ─── PROJECT CARDS ─── */
.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.project-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: rgba(255,255,255,0.4);
    position: relative; overflow: hidden;
}
.project-card-img img { width: 100%; height: 100%; object-fit: cover; }
.project-card-img .cat-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--accent); color: white;
    padding: 4px 10px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 600;
}
.project-card-body { padding: 24px; }
.project-card h5 {
    font-family: var(--font-display);
    font-weight: 600; color: var(--primary);
    margin-bottom: 10px;
}
.project-meta { font-size: 0.82rem; color: var(--gray); }
.project-meta i { color: var(--accent); margin-right: 4px; }

/* ─── FILTER BUTTONS ─── */
.filter-btn {
    border: 1px solid var(--border);
    background: white;
    color: var(--gray);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ─── STATS SECTION ─── */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1B3A8C 100%);
    padding: 70px 0;
}
.stat-item { text-align: center; color: white; }
.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat-label { font-size: 0.9rem; opacity: 0.8; margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* ─── TESTIMONIALS ─── */
.testimonial-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-card::before {
    content: '"';
    position: absolute; top: 16px; right: 20px;
    font-size: 5rem; color: var(--accent); opacity: 0.15;
    font-family: var(--font-display);
    line-height: 1;
}
.testimonial-avatar {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 1.1rem;
    flex-shrink: 0;
}
.stars { color: #FFC107; font-size: 0.85rem; }

/* ─── DESTINATION CARDS ─── */
.destination-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 260px;
    cursor: pointer;
    transition: var(--transition);
}
.destination-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.destination-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.destination-card:hover img { transform: scale(1.08); }
.destination-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,36,99,0.85) 0%, rgba(10,36,99,0.2) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px;
    transition: var(--transition);
}
.destination-card:hover .destination-card-overlay { background: linear-gradient(to top, rgba(10,36,99,0.92) 0%, rgba(10,36,99,0.4) 70%, transparent 100%); }
.destination-card h5 { color: white; font-weight: 700; margin-bottom: 4px; }
.destination-card p { color: rgba(255,255,255,0.75); font-size: 0.82rem; margin: 0; }
.destination-card .dest-badge {
    position: absolute; top: 14px; right: 14px;
    background: var(--accent); color: white;
    padding: 4px 12px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 600;
}

/* ─── ABOUT SECTION IMAGE ─── */
.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 480px;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,36,99,0.3) 0%, transparent 60%);
}
.about-img-badge {
    position: absolute; bottom: 24px; left: 24px; z-index: 2;
    background: white; border-radius: 12px; padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px;
}

/* ─── BLOG CARDS IMAGE ─── */
.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h6 { font-family: var(--font-display); font-weight: 600; color: var(--primary); }
.blog-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-img .placeholder-img {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.3); font-size: 3rem;
}

/* ─── CONTACT ─── */
.contact-section { background: var(--light-bg); }
.contact-info-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 16px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.contact-info-item:hover { box-shadow: var(--shadow-sm); }
.contact-info-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 18px;
}
.contact-form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

/* ─── FORMS ─── */
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--font-body);
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30,144,255,0.12);
}
.form-label { font-weight: 500; color: var(--dark); margin-bottom: 6px; }

/* ─── AUTH PAGES ─── */
.auth-wrapper {
    min-height: 100vh;
    display: flex; align-items: center;
    background: var(--light-bg);
    padding: 40px 0;
}
.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    width: 100%; max-width: 480px;
    margin: 0 auto;
}

/* ─── DASHBOARD ─── */
.dash-sidebar {
    background: var(--primary);
    min-height: calc(100vh - 76px);
    padding: 24px 0;
    width: 260px;
    flex-shrink: 0;
}
.dash-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 10px 20px;
    border-radius: 0;
    display: flex; align-items: center; gap: 10px;
    font-weight: 500;
    transition: var(--transition);
}
.dash-sidebar .nav-link:hover, .dash-sidebar .nav-link.active {
    color: white; background: rgba(255,255,255,0.1);
    border-left: 3px solid var(--accent);
}
.dash-content { flex: 1; padding: 32px; background: var(--light-bg); min-height: calc(100vh - 76px); }
.dash-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    height: 100%;
}
.stat-dash {
    background: white;
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1px solid var(--border);
    display: flex; align-items: center; gap: 16px;
}
.stat-dash-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}

/* Status badges */
.badge-pending { background: #FFF3CD; color: #856404; }
.badge-analysis { background: #CCE5FF; color: #004085; }
.badge-validated { background: #D4EDDA; color: #155724; }
.badge-refused { background: #F8D7DA; color: #721C24; }

/* ─── ADMIN ─── */
.admin-nav {
    background: var(--dark);
    padding: 14px 0;
}
.admin-sidebar {
    background: var(--dark-2);
    min-height: calc(100vh - 58px);
    padding: 16px 0;
    width: 240px;
    flex-shrink: 0;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.6);
    padding: 9px 20px;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
    transition: var(--transition);
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: white; background: rgba(255,255,255,0.08); }
.admin-content { flex: 1; padding: 28px; background: #F1F3F5; min-height: calc(100vh - 58px); }
.admin-card {
    background: white;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ─── WHATSAPP FLOAT ─── */
.whatsapp-float {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 56px; height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    z-index: 9999;
    text-decoration: none;
    transition: var(--transition);
    animation: bounce 2s ease-in-out infinite;
}
.whatsapp-float:hover { color: white; transform: scale(1.1); }

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

/* ─── FLASH ─── */
.flash-message { position: relative; z-index: 900; margin-top: 0 !important; }

/* ─── PAGE HEADER ─── */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; padding: 60px 0 40px;
}
.page-header h1 { font-size: 2.2rem; }

/* ─── STATUS STEPS ─── */
.status-timeline { position: relative; }
.status-step {
    display: flex; align-items: flex-start; gap: 16px;
    padding-bottom: 24px; position: relative;
}
.status-step::before {
    content: '';
    position: absolute; left: 17px; top: 36px;
    width: 2px; height: calc(100% - 12px);
    background: var(--border);
}
.status-step:last-child::before { display: none; }
.step-dot {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    background: var(--border); color: var(--gray);
    position: relative; z-index: 1;
}
.step-dot.done { background: #28A745; color: white; }
.step-dot.current { background: var(--accent); color: white; }

/* ─── FOOTER ─── */
.footer { border-top: 3px solid var(--accent); }
.hover-white:hover { color: white !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
    .dash-sidebar { width: 100%; min-height: auto; }
    .dash-content { padding: 20px; }
    .hero-globe { display: none; }
}
@media (max-width: 767px) {
    .auth-card { padding: 24px; }
    .contact-form-card { padding: 20px; }
    .stat-number { font-size: 2.2rem; }
}

/* ─── ANIMATIONS ─── */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-bg);
}
.upload-zone:hover { border-color: var(--accent); background: rgba(30,144,255,0.04); }
.upload-zone input[type="file"] { display: none; }

/* Pagination */
.pagination .page-link { border-radius: 8px !important; margin: 0 2px; color: var(--primary); border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
