/* ================================================================
   SKYTUNISIA - STYLES PREMIUM COMPLETS
   Fichier CSS unifié pour toutes les pages (Premium & Internal)
   ================================================================ */

/* === VARIABLES === */
/* === VARIABLES === */
:root {
    --primary: #0770E3;
    --primary-dark: #054A9F;
    --secondary: #7B61FF;
    --accent: #FF4D8D;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --gradient-primary: linear-gradient(135deg, #0770E3 0%, #7B61FF 100%);
    --primary-gradient: var(--gradient-primary);
    /* Alias for compatibility with homepage */
    --gradient-hero: radial-gradient(circle at top right, #1E3A8A 0%, #0A1F44 60%, #020617 100%);
    --gradient-secondary: linear-gradient(135deg, #FF8C42 0%, #FF4D8D 100%);
    --gradient-success: linear-gradient(135deg, #00D4AA 0%, #0770E3 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-xl: 24px;
}

/* === BASE === */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    overflow-x: hidden;
}

/* === HERO SECTIONS === */
.hero,
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 160px 0 120px;
    color: white;
    overflow: hidden;
    background-color: #020617;
    /* Fallback */
}

/* Category Specific Backgrounds */
.home-bg {
    background-image:
        linear-gradient(rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.85)),
        url('/skytunisiaV2/site/assets/images/hero_bg_home.png') !important;
}

/* Default hero-section to vols background */
.hero-section,
.vols-bg {
    background-image:
        linear-gradient(rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.85)),
        url('/skytunisiaV2/site/assets/images/hero_bg_vols.png') !important;
}

.cars-bg {
    background-image:
        linear-gradient(rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.85)),
        url('/skytunisiaV2/site/assets/images/hero_bg_cars.png') !important;
}

.hero::before,
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(30, 58, 138, 0.4) 0%, rgba(2, 6, 23, 0.2) 60%, rgba(2, 6, 23, 0.9) 100%);
    pointer-events: none;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

.hero .container,
.hero-section .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: radial-gradient(circle at top right, #1E3A8A 0%, #0A1F44 60%, #020617 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    height: 85px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scroll-active {
    height: 70px;
    background: rgba(2, 6, 23, 0.95);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(to bottom, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    letter-spacing: -1px;
}

.logo:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 14px 32px;
    background: var(--primary-gradient);
    color: white !important;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 10px 20px -5px rgba(7, 112, 227, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
}

.nav-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 25px -5px rgba(7, 112, 227, 0.5);
}

/* === HERO === */
.hero {
    margin-top: 0;
    padding: 120px 0 160px;
    background: linear-gradient(135deg, #0A1F44 0%, #1E3A8A 50%, #7B61FF 100%);
    text-align: center;
    color: white;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 750px;
    margin: 0 auto 50px;
}

.focus-banner {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.focus-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === SEARCH WIDGET === */
.search-container {
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.search-card {
    background: white;
    border-radius: 32px;
    padding: 10px;
    box-shadow: var(--shadow-xl);
}

/* === SECTIONS === */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 10px;
}

.section-subtitle {
    font-size: 18px;
    color: #6B7280;
    max-width: 700px;
    margin: 0 auto;
}

/* === INFO SECTION & DEALS === */
.info-section {
    padding: 80px 0;
    background: white;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.deal-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.deal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.deal-card:hover::before {
    opacity: 1;
}

.deal-location {
    font-weight: 700;
    font-size: 18px;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.deal-date {
    font-size: 13px;
    color: var(--gray-500);
}

.deal-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
}

.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary-gradient);
    color: white !important;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(7, 112, 227, 0.4);
}

/* === GRIDS & CARDS === */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.destination-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-10px);
}

.destination-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.airline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.airline-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
}

.airline-item:hover {
    border-color: #0770E3;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .search-container {
        margin-top: -60px;
    }

    .deals-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* === NEWSLETTER === */
.newsletter {
    padding: 100px 0;
    background: #0A1F44;
    color: white;
    text-align: center;
}

.newsletter .container {
    text-align: center;
}

.newsletter h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 18px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 40px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 18px 24px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    outline: none;
}

.newsletter-submit {
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(7, 112, 227, 0.4);
}

/* === FOOTER === */
.footer {
    padding: 80px 0 40px;
    background: #051229;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer h3 {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: 12px;
}

.footer a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: #6B7280;
    font-size: 14px;
}

/* === SEARCH WIDGET CONTAINER === */
.search-widget-container {
    padding-bottom: 40px;
}

.search-container {
    padding-bottom: 40px;
}