/* --- Variables & General --- */
:root {
    --primary-color: #c5a059; /* لون ذهبي للفخامة */
    --primary-hover: #b08d4b;
    --dark-text: #333;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--dark-text);
}

html {
    scroll-behavior: smooth;
}

/* Custom Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.btn-custom {
    background-color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.ls-2 {
    letter-spacing: 2px;
}

/* --- Navbar --- */
.navbar {
    transition: all 0.4s ease;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.6); /* شفاف داكن في البداية */
}

.navbar-brand {
    color: white !important;
    font-size: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Navbar Scrolled State */
.navbar.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar.scrolled .navbar-brand {
    color: #333 !important;
}

.navbar.scrolled .nav-link {
    color: #555 !important;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color) !important;
}

/* --- Hero Section --- */
.hero-section {
    /* استخدم صورة عالية الجودة هنا */
    background: url("images/acceuil_img.jpg");
    background-size: cover; /* مهم جداً لملء الشاشة */
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; /* ملء ارتفاع الشاشة */
    position: relative;
    margin-top: 0; /* إزالة الهامش القديم */
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* طبقة سوداء شفافة */
    z-index: 1;
}

.hero-section .content-wrapper {
    position: relative;
    z-index: 2;
}

/* --- Cards & Images --- */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.img-wrapper {
    height: 250px;
    overflow: hidden;
}

.card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* --- Services --- */
.service-box {
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.service-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* --- Form --- */
.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* --- Footer --- */
.hover-white:hover {
    color: white !important;
}

/* --------------------- */
/* CONTACT PAGE STYLES */
/* --------------------- */

/* Header spécifique pour la page contact (plus petit que le Hero de l'accueil) */
.page-header {
    /* صورة مختلفة عن الصفحة الرئيسية */
    background: url("https://images.unsplash.com/photo-1516738901171-8eb4fc2ab429?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
    background-size: cover;
    background-position: center;
    height: 60vh; /* ارتفاع أقل من الصفحة الرئيسية */
    position: relative;
    margin-top: 50px; /* للتعويض عن الـ navbar */
}

.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* تحسين حقول الإدخال */
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    box-shadow: none;
    border: 1px solid var(--primary-color) !important;
}

.form-floating > label {
    color: #888;
}

/* زر إرسال مميز */
.btn-custom {
    transition: all 0.3s ease;
}

.btn-custom:hover {
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

/* --------------------- */
/* DESTINATIONS PAGE */
/* --------------------- */

/* Header spécifique avec une carte du monde ou paysage large */
.header-destinations {
    background: url("https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
    background-size: cover;
    background-position: center;
    height: 50vh;
    margin-top: 50px;
    position: relative;
}

.mt-n5 {
    margin-top: -3rem !important; /* لرفع شريط البحث فوق الهيدر */
}

/* Styles des cartes destinations améliorées */
.destination-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.destination-card .img-wrapper img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover .img-wrapper img {
    transform: scale(1.1);
}

/* طبقة تظهر عند تمرير الماوس فوق الصورة */
.destination-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.destination-card:hover .card-overlay {
    opacity: 1;
}

.destination-card .card-overlay .btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}