/**
 * YOU VOYAGE COMPANY - Stylesheet Principal
 * Theme: Morocco Travel - Moderne & Professionnel
 */

:root {
    --primary-color: #1e293b;
    --primary-dark: #0f172a;
    --primary-light: #334155;
    --secondary-color: #2c3e50;
    --secondary-light: #34495e;
    --accent-color: #d4a056;
    --success-color: #27ae60;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --light-bg: #f8fafc;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   NAVIGATION
======================================== */
.navbar {
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: var(--white) !important;
    box-shadow: 0 2px 30px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 15px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(192, 57, 43, 0.05);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.85)), url('/uploads/hero-maroc.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center/contain no-repeat;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-section .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1.2s ease 0.4s both;
}

.hero-section .btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.hero-section .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(192, 57, 43, 0.4);
}

.hero-section .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* ========================================
   SECTIONS
======================================== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 20px auto 0;
}

/* ========================================
   CARDS
======================================== */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ========================================
   PRICE BADGE
======================================== */
.price-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

.price-badge.promo {
    background: var(--accent-color);
    color: var(--white);
}

/* ========================================
   STARS RATING
======================================== */
.stars {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.stars i {
    margin-right: 2px;
}

/* ========================================
   BADGES
======================================== */
.badge {
    padding: 6px 14px;
    font-weight: 500;
    border-radius: 20px;
    font-size: 0.85rem;
}

.badge i {
    margin-right: 5px;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn i {
    margin-right: 8px;
}

/* ========================================
   LOCATION PIN
======================================== */
.location-pin {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.location-pin i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* ========================================
   DESTINATIONS GRID
======================================== */
.destination-card {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover img {
    transform: scale(1.15);
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    transition: all 0.3s ease;
}

.destination-card:hover .destination-overlay {
    padding-bottom: 40px;
}

.destination-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--white);
}

.destination-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ========================================
   TESTIMONIALS
======================================== */
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    position: relative;
    margin-top: 40px;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 30px;
    font-size: 100px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-info h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-info small {
    color: var(--text-light);
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.cta-section .btn-light {
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 600;
}

.cta-section .btn-light:hover {
    background: var(--light-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

footer h5 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

footer a {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--white);
    padding-left: 5px;
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

footer .border-top {
    border-color: rgba(255,255,255,0.1) !important;
    margin-top: 40px;
    padding-top: 30px;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .nav-link {
        margin: 5px 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .destination-card {
        height: 250px;
    }
}

/* ========================================
   UTILITIES
======================================== */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-light-custom {
    background: var(--light-bg) !important;
}

.shadow-custom {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
}

.rounded-custom {
    border-radius: 15px !important;
}

/* ========================================
   PAGE HERO (Pages intérieures)
======================================== */
.page-hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1539768942893-daf53e448371?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    padding: 100px 0 60px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,128L48,144C96,160,192,192,288,186.7C384,181,480,139,576,138.7C672,139,768,181,864,197.3C960,213,1056,203,1152,181.3C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center/cover no-repeat;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.page-hero .lead {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s both;
}

.page-hero .breadcrumb {
    justify-content: center;
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.page-hero .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-hero .breadcrumb-item a:hover {
    color: var(--accent-color);
}

.page-hero .breadcrumb-item.active {
    color: var(--accent-color);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ========================================
   WHATSAPP FLOATING BUTTON
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ========================================
   FORM STYLES
======================================== */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* ========================================
   ALERT IMPROVEMENTS
======================================== */
.alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* ========================================
   ENHANCED CARD STYLES
======================================== */
.card .card-header {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    font-weight: 600;
}

.card .card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
}

/* Card horizontal pour activités */
.card .row.g-0 .col-4 img {
    border-radius: 15px 0 0 15px;
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
    gap: 5px;
}

.pagination .page-link {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: var(--white);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-light);
}

/* ========================================
   BADGES AMÉLIORÉS
======================================== */
.badge.bg-info {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--accent-color), #c9922d) !important;
    color: white !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #27ae60, #219a52) !important;
}

/* ========================================
   LOADING & HOVER EFFECTS
======================================== */
.card-img-top {
    overflow: hidden;
}

.card .position-relative {
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

/* Image zoom effect */
.card:hover .card-img-top {
    transform: scale(1.08);
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* ========================================
   SCROLL TO TOP BUTTON
======================================== */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ========================================
   DETAIL PAGE IMPROVEMENTS
======================================== */
.detail-gallery img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-gallery img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* ========================================
   SIDEBAR FILTERS
======================================== */
.card .card-body .form-label.small {
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

/* ========================================
   EMPTY STATE
======================================== */
.text-center.py-5 .fa-4x {
    color: var(--border-color);
    margin-bottom: 20px;
}

/* ========================================
   SMOOTH SCROLL
======================================== */
html {
    scroll-behavior: smooth;
}

/* ========================================
   SELECTION STYLE
======================================== */
::selection {
    background: var(--accent-color);
    color: var(--white);
}

/* ========================================
   MOBILE IMPROVEMENTS
======================================== */
@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0 50px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        bottom: 90px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .scroll-top {
        bottom: 80px;
        right: 20px;
    }
}
