/* ============================================
   Ballons & Ailleurs — Design System
   Premium dark theme with warm gradients
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2332;
    --bg-card-hover: #1f2b3d;
    --bg-alt: #0d1320;
    --surface-glass: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent: #f59e0b;
    --accent-soft: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.2);

    --gradient-hero: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-cta: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

    --success: #22c55e;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.4);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Navigation --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 14, 23, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.nav.scrolled { background: rgba(10, 14, 23, 0.95); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; }
.nav__logo-icon { font-size: 1.5rem; }
.nav__logo .accent { color: var(--accent); }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
    font-weight: 500; color: var(--text-secondary);
    transition: var(--transition); position: relative;
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--gradient-warm); transition: var(--transition);
}
.nav__links a:hover::after { width: 100%; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span {
    display: block; width: 24px; height: 2px; background: var(--text-primary);
    margin: 5px 0; transition: var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 600px;
}
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.65) 0%, rgba(10, 14, 23, 0.85) 50%, var(--bg-primary) 100%);
    z-index: 1;
}
.hero__content { position: relative; z-index: 2; text-align: center; }
.hero__badge {
    display: inline-block; padding: 8px 20px; border-radius: 50px;
    background: var(--surface-glass); border: 1px solid var(--border);
    font-size: 0.85rem; color: var(--accent); font-weight: 500; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.gradient-text {
    background: var(--gradient-hero); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__subtitle {
    font-size: 1.15rem; color: var(--text-secondary);
    max-width: 680px; margin: 0 auto 32px; line-height: 1.7;
}
.hero__stats { display: flex; justify-content: center; gap: 40px; margin-top: 40px; }
.stat { text-align: center; }
.stat__number { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat__label { font-size: 0.85rem; color: var(--text-muted); }

/* --- Search box --- */
.search-box {
    display: flex; max-width: 540px; margin: 0 auto;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 50px; overflow: hidden; transition: var(--transition);
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.search-box input {
    flex: 1; padding: 14px 24px; background: none; border: none;
    color: var(--text-primary); font-family: var(--font); font-size: 1rem; outline: none;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box button {
    padding: 14px 28px; background: var(--gradient-cta); border: none;
    color: white; font-family: var(--font); font-weight: 600; cursor: pointer;
    transition: var(--transition);
}
.search-box button:hover { filter: brightness(1.1); }

/* --- Sections --- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; text-align: center; }
.section__subtitle { color: var(--text-secondary); text-align: center; margin-bottom: 48px; font-size: 1.05rem; }

/* --- Cards --- */
.cards-grid { display: grid; gap: 20px; }
.cards-grid--3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cards-grid--4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
    transition: var(--transition); display: flex; flex-direction: column; gap: 12px;
}
.card--has-image { padding: 0; overflow: hidden; }
.card--has-image .card__body { padding: 20px 24px 24px; }
.card:hover {
    background: var(--bg-card-hover); border-color: var(--border-hover);
    transform: translateY(-4px); box-shadow: var(--shadow-hover);
}
.card:hover .card__image img { transform: scale(1.06); }
.card__header { display: flex; justify-content: space-between; align-items: center; }
.card__image {
    position: relative; overflow: hidden;
    aspect-ratio: 16 / 9;
}
.card__image--sm { aspect-ratio: 16 / 10; }
.card__image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.card__image .card__country-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
    padding: 4px 10px; border-radius: 50px; font-size: 1rem;
}
.card__icon { font-size: 2rem; margin-bottom: 4px; }
.card__title { font-size: 1.15rem; font-weight: 700; }
.card__text { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; flex: 1; }
.card__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.card__country-badge { font-size: 1.2rem; }

.badge {
    display: inline-flex; padding: 4px 12px; border-radius: 50px;
    font-size: 0.78rem; font-weight: 600;
}
.badge--price { background: var(--accent-glow); color: var(--accent); }
.badge--duration, .badge--season { background: var(--surface-glass); color: var(--text-secondary); }

.tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 50px;
    font-size: 0.75rem; background: var(--surface-glass);
    color: var(--text-secondary); border: 1px solid var(--border);
}

/* --- Page header --- */
.page-header {
    padding: 100px 0 48px; text-align: center;
    background: radial-gradient(ellipse at center top, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
}
.page-header--crossing {
    padding: 40px 0 48px;
    background: radial-gradient(ellipse at 30% 0%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 100%, rgba(239, 68, 68, 0.06) 0%, transparent 50%);
}
.page-header--has-image {
    position: relative; padding: 0; min-height: 300px;
    display: flex; align-items: flex-end;
}
.page-header--has-image .page-header__bg {
    position: absolute; inset: 0; z-index: 0;
}
.page-header--has-image .page-header__bg img {
    width: 100%; height: 100%; object-fit: cover;
}
.page-header--has-image .page-header__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(0deg, var(--bg-primary) 0%, rgba(10,14,23,0.6) 60%, transparent 100%);
}
.page-header--has-image .container { position: relative; z-index: 2; padding-bottom: 32px; }
.page-header__icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.page-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.page-header__subtitle { color: var(--text-secondary); font-size: 1.05rem; max-width: 700px; margin: 0 auto; }

/* --- Section Visual (full-width image break) --- */
.section-visual {
    position: relative; overflow: hidden;
    min-height: 420px; display: flex; align-items: center;
}
.section-visual__image {
    position: absolute; inset: 0;
}
.section-visual__image img {
    width: 100%; height: 100%; object-fit: cover;
}
.section-visual__overlay {
    position: relative; z-index: 2; width: 100%;
    padding: 80px 0;
    background: linear-gradient(90deg, rgba(10, 14, 23, 0.9) 0%, rgba(10, 14, 23, 0.5) 60%, transparent 100%);
}
.section-visual__overlay h2 {
    font-size: 2rem; font-weight: 800; margin-bottom: 12px;
    max-width: 500px;
}
.section-visual__overlay p {
    color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7;
    max-width: 480px; margin-bottom: 24px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: 80px 0 0; font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; }

/* --- Content layout --- */
.layout--sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.content-main { min-width: 0; }

/* --- Content blocks --- */
.content-block { margin-bottom: 48px; }
.content-block h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.intro-text { font-size: 1.1rem; line-height: 1.8; color: var(--text-secondary); }

/* --- Info grid --- */
.info-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.info-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px;
}
.info-item__icon { font-size: 1.5rem; }
.info-item__label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.info-item__value { font-size: 1rem; font-weight: 600; }

/* --- Highlights --- */
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.highlight-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px;
}
.highlight-card__icon { font-size: 1.2rem; flex-shrink: 0; }

/* --- CTA Box --- */
.cta-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg); padding: 32px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; margin: 40px 0;
}
.cta-box h2, .cta-box h3 { font-size: 1.3rem; margin-bottom: 4px; }
.cta-box p { color: var(--text-secondary); font-size: 0.95rem; }
.cta-box--alt { flex-direction: column; text-align: center; }

/* --- Button --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 50px; font-family: var(--font);
    font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none;
    transition: var(--transition); white-space: nowrap;
}
.btn--primary { background: var(--gradient-cta); color: white; }
.btn--primary:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 4px 20px var(--accent-glow); }

.btn--sd { background: #189EB9; color: white; }
.btn--sd:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(24, 158, 185, 0.3); }

.btn--outline { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn--outline:hover { background: var(--surface-glass); border-color: var(--border-hover); transform: translateY(-2px); }

.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.faq-item__question {
    padding: 18px 24px; cursor: pointer; font-weight: 600; font-size: 1rem;
    list-style: none; transition: var(--transition);
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::before {
    content: '+'; float: right; font-size: 1.3rem; color: var(--accent);
    transition: var(--transition);
}
.faq-item[open] .faq-item__question::before { content: '−'; }
.faq-item__answer {
    padding: 0 24px 18px; color: var(--text-secondary); line-height: 1.7;
}
.faq-item:hover { border-color: var(--border-hover); }

/* --- Sidebar --- */
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.sidebar__box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}
.sidebar__box h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.sidebar__box--cta {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.05));
    border-color: rgba(245, 158, 11, 0.15);
}
.sidebar__price { font-size: 1.4rem; margin-bottom: 16px; }
.sidebar__price strong { color: var(--accent); }
.sidebar__trust { margin-top: 16px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.8; }
.sidebar__link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--border);
    font-size: 0.9rem; transition: var(--transition);
}
.sidebar__link:last-child { border-bottom: none; }
.sidebar__link:hover { color: var(--accent); }
.sidebar__link-price { font-size: 0.8rem; color: var(--accent); font-weight: 600; }

/* --- Steps --- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.step {
    text-align: center; padding: 32px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.step__number {
    display: inline-flex; width: 48px; height: 48px;
    align-items: center; justify-content: center;
    background: var(--gradient-cta); border-radius: 50%;
    font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.92rem; }

/* --- Search results --- */
.results-list { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.result-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); transition: var(--transition);
}
.result-item:hover { border-color: var(--accent); }
.result-item__icon { font-size: 1.5rem; }
.result-item__type { font-size: 0.8rem; color: var(--text-muted); margin-left: 8px; }

/* --- Footer --- */
.footer {
    padding: 64px 0 32px; border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 48px; }
.footer__col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer__col p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }
.footer__col a { display: block; color: var(--text-secondary); font-size: 0.88rem; padding: 4px 0; transition: var(--transition); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { text-align: center; padding-top: 32px; border-top: 1px solid var(--border); }
.footer__bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer__disclaimer { font-size: 0.75rem; margin-top: 8px; font-style: italic; }

/* --- Guide content --- */
.guide-content h2 { margin-top: 8px; }
.guide-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.guide-content a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide-content a:not(.btn):hover { color: var(--accent-soft); }

/* --- Guide tables --- */
.guide-table {
    width: 100%; border-collapse: collapse; margin: 24px 0;
    background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
}
.guide-table th {
    padding: 14px 16px; text-align: left; font-weight: 700; font-size: 0.85rem;
    background: rgba(245, 158, 11, 0.08); color: var(--accent);
    border-bottom: 1px solid var(--border);
}
.guide-table td {
    padding: 12px 16px; font-size: 0.9rem; color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.guide-table tr:last-child td { border-bottom: none; }
.guide-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.guide-table a { color: var(--accent); text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav__links { 
        display: none; position: fixed; top: 64px; left: 0; right: 0;
        background: var(--bg-secondary); flex-direction: column; padding: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav__links.open { display: flex; }
    .nav__burger { display: block; }
    .layout--sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .hero h1 { font-size: 2rem; }
    .hero__stats { gap: 20px; }
    .cta-box { flex-direction: column; text-align: center; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-grid--3, .cards-grid--4 { grid-template-columns: 1fr; }
    .guide-table { display: block; overflow-x: auto; }
    .section-visual__overlay { 
        background: linear-gradient(180deg, rgba(10, 14, 23, 0.85) 0%, rgba(10, 14, 23, 0.7) 100%); 
        text-align: center;
    }
    .section-visual__overlay h2,
    .section-visual__overlay p { max-width: 100%; }
}

@media (max-width: 480px) {
    .hero__stats { flex-direction: column; gap: 12px; }
    .info-grid { grid-template-columns: 1fr; }
    .search-box { flex-direction: column; border-radius: var(--radius); }
    .search-box button { border-radius: 0; }
}

/* --- Scroll to top --- */
.scroll-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-cta); color: white; border: none;
    font-size: 1.3rem; cursor: pointer;
    opacity: 0; transform: translateY(20px);
    transition: var(--transition); pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero__content { animation: fadeInUp 0.8s ease-out; }
.hero__badge { animation: fadeInUp 0.6s ease-out; }

/* Obfuscated links */
.obf-link { display: inline-block; cursor: pointer; text-align: center; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
