/* --- SKYTUNISIA APP STYLES --- */

/* 1. HEADER & NAVIGATION */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-900), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* 2. HERO SECTION */
.hero-section {
    background: linear-gradient(160deg, var(--primary-900) 0%, var(--primary-600) 100%);
    position: relative;
    padding: 80px 0 160px;
    /* Espace en bas pour le chevauchement du search */
    text-align: center;
    overflow: hidden;
}

/* Motif de fond subtil (facultatif) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-title {
    color: white;
    font-size: 42px;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    color: var(--primary-100);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* 3. WIDGET DE RECHERCHE FLOTTANT */
.search-widget-container {
    margin-top: -100px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.search-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Onglets de recherche */
.search-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.tab-item {
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding-bottom: 12px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.tab-item.active {
    color: var(--primary-600);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-600);
    border-radius: 3px 3px 0 0;
}

/* Champs de formulaire */
.form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    /* Destinations | Dates | Voyageurs | Bouton */
    gap: 12px;
    align-items: center;
}

.input-group {
    position: relative;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    transition: all 0.2s;
    cursor: text;
}

.input-group:focus-within {
    background: white;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.input-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.input-field {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    padding: 0;
    outline: none;
}

/* Bouton Rechercher - Style Jetcost/eDreams */
.btn-search {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-hover));
    color: white;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
    transition: transform 0.1s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(245, 158, 11, 0.4);
}

.btn-search:active {
    transform: translateY(1px);
}

/* 4. CARTES DE RÉSULTATS */
.ticket-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.airline-info {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 30%;
}

.airline-logo {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

.flight-route {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    text-align: center;
}

.price-section {
    text-align: right;
    width: 20%;
}

.price-tag {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-600);
    font-family: var(--font-display);
}

.btn-select {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    background: #eff6ff;
    color: var(--primary-600);
    font-weight: 600;
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: background 0.2s;
}

.btn-select:hover {
    background: #dbeafe;
}

/* Responsive */
@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .ticket-card {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .airline-info,
    .price-section {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

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