:root {
    --orange-da: #f26539;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --light-gray: #f4f4f4;
    --gray-text: #888;
    --border-color: #ddd;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #000;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
}

/* Header */
#user-badge { background-color: #1a1a1a; }

.header-section {
    text-align: center;
    padding: 25px 20px 30px 20px;
    background-color: #1a1a1a;
}

.logo-link { display: inline-block; margin-bottom: 15px; transition: opacity 0.3s; }
.logo-link:active { opacity: 0.7; }
.logo-img { height: 50px; width: auto; }

.service-tag { font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,0.45); text-transform: uppercase; margin-bottom: 5px; }
h1 { font-size: 3rem; font-weight: bold; text-transform: uppercase; letter-spacing: -1.5px; margin: 0; color: #fff; }
h1 span { color: var(--orange-da); }
.tagline { font-size: 13px; color: var(--orange-da); font-weight: bold; text-transform: uppercase; margin-top: 8px; letter-spacing: 1.2px; }
.slogan { font-size: 14px; color: rgba(255,255,255,0.75); font-style: italic; font-weight: 500; margin-top: 10px; letter-spacing: 0.5px; }

/* Content */
.content { flex: 1; }

/* Form Card */
.main-card {
    background: var(--bg-white);
    margin: 10px 15px 20px 15px;
    padding: 25px;
    border-radius: 4px;
    color: #333;
    position: relative;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 10px; font-weight: bold; text-transform: uppercase; text-align: center;
    border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; color: #999;
}

label { display: block; font-size: 9px; font-weight: bold; text-transform: uppercase; margin: 15px 0 5px 0; color: #444; }
input {
    width: 100%; padding: 14px; background: var(--light-gray); border: 1px solid var(--border-color);
    box-sizing: border-box; font-size: 16px; outline: none; text-transform: uppercase; border-radius: 2px;
}

.dropdown-list {
    position: absolute; top: 100%; left: 0; width: 100%; background: white;
    border: 1px solid var(--border-color); z-index: 100; display: none; max-height: 200px; overflow-y: auto;
}
.dropdown-item { padding: 12px; font-size: 13px; border-bottom: 1px solid #eee; cursor: pointer; text-transform: uppercase; }

.critere-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f4f4f4; font-size: 10px; text-transform: uppercase; font-weight: bold; }
.toggle-group { display: flex; border: 1px solid var(--border-color); border-radius: 2px; overflow: hidden; }
.toggle-btn { padding: 6px 15px; font-size: 9px; font-weight: bold; cursor: pointer; border: none; background: #eee; color: #999; }
.toggle-btn.active { background: var(--orange-da); color: white; }

.btn-orange {
    background-color: var(--orange-da); color: white; width: 100%; padding: 18px;
    border: none; font-weight: bold; text-transform: uppercase; cursor: pointer; margin-top: 25px; border-radius: 2px;
}

/* Footer */
footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    font-weight: bold;
    background-color: #1a1a1a;
}

/* Zones publicitaires (cachées sur mobile) */
.ad-zone { display: none; }

/* Bannière inline mobile/tablette */
.ad-inline { margin: 0 15px 15px 15px; }
.ad-inline-banner {
    display: flex; align-items: center; gap: 12px; background: #1a1a1a;
    border-radius: 6px; padding: 12px 15px; text-decoration: none; transition: opacity 0.2s;
}
.ad-inline-banner:active { opacity: 0.8; }
.ad-inline-logo { height: 28px; width: auto; flex-shrink: 0; }
.ad-inline-text { flex: 1; }
.ad-inline-title { font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 3px; }
.ad-inline-sub { font-size: 9px; color: rgba(255,255,255,0.5); }
.ad-inline-cta { font-size: 16px; color: var(--orange-da); font-weight: bold; flex-shrink: 0; }

/* Bannière Design Audio (sous le formulaire) */
.da-promo { background: #1a1a1a; margin: 0 15px 15px 15px; border-radius: 4px; }
.da-promo-link {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; text-decoration: none; transition: opacity 0.2s;
}
.da-promo-link:hover { opacity: 0.85; }
.da-promo-logo { height: 32px; width: auto; flex-shrink: 0; }
.da-promo-text { flex: 1; }
.da-promo-title { font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 3px; }
.da-promo-sub { font-size: 9px; color: rgba(255,255,255,0.5); line-height: 1.5; }
.da-promo-cta { font-size: 12px; font-weight: bold; color: var(--orange-da); white-space: nowrap; }

/* ===== DESKTOP (≥ 800px) ===== */
@media (min-width: 800px) {
    body {
        align-items: flex-start;
        padding: 0;
    }

    .app-container {
        min-height: auto;
        width: 500px;
        flex-shrink: 0;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .content { flex: none; }
    footer { margin-top: auto; }

    .header-section { padding: 15px 20px 18px 20px; }
    .logo-img { height: 38px; }
    h1 { font-size: 1.8rem; }
    .main-card { padding: 18px 20px; margin: 8px 15px 12px 15px; }
    label { margin: 10px 0 4px 0; }
    input { padding: 11px; }
    .btn-orange { padding: 14px; margin-top: 18px; }
    .critere-row { padding: 7px 0; }
    #result-panel { margin: 0 15px 12px 15px; }
    .ad-inline { display: none; }

    .da-promo { margin: 0 15px 12px 15px; border-radius: 0; }

    /* Colonnes latérales AudioQuest — sticky pleine hauteur */
    .ad-zone {
        display: flex;
        flex-direction: column;
        width: 250px;
        flex-shrink: 0;
        align-self: flex-start;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }
    .ad-left { margin-right: 0; border-right: 1px solid #111; }
    .ad-right { margin-left: 0; border-left: 1px solid #111; }

    /* Bloc compte */
    .account-block { margin: 0 15px 12px 15px; }
    .account-block-inner { background: #fff; border: 1px solid var(--border-color); border-radius: 4px; padding: 18px 20px; color: #333; }
    .account-history-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 11px; }
    .account-history-item:last-child { border-bottom: none; }
    .account-history-product { font-weight: bold; color: #333; }
    .account-history-price { font-weight: bold; color: var(--orange-da); }
    .account-history-date { font-size: 9px; color: #aaa; }

    /* Bandeaux AudioQuest pleine hauteur */
    .aq-hband {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #111;
        overflow: hidden;
        transition: background 0.2s;
    }
    .aq-hband:last-child { border-bottom: none; }
    .aq-hband:hover { background: rgba(255,255,255,0.03); }

    .aq-hband-link {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        height: 100%;
        box-sizing: border-box;
    }

    .aq-hband-img {
        flex: 1;
        min-height: 0;
        background: linear-gradient(160deg, #1e1e1e 0%, #0a0a0a 100%);
        background-size: cover;
        background-position: center;
        position: relative;
        overflow: hidden;
    }
    .aq-hband-img::after {
        content: attr(data-name);
        position: absolute;
        bottom: 12px;
        left: 16px;
        font-size: 10px;
        font-weight: bold;
        color: rgba(255,255,255,0.12);
        text-transform: uppercase;
        letter-spacing: 3px;
    }

    /* Encart AudioQuest horizontal (sous bannière DA) */
    .aq-encart-h { margin: 0 15px 12px; background: #111; border-radius: 0; overflow: hidden; border-top: 1px solid #1e1e1e; }
    .aq-encart-h-link { display: flex; text-decoration: none; height: 110px; transition: opacity 0.2s; }
    .aq-encart-h-link:hover { opacity: 0.85; }
    .aq-encart-h-img {
        width: 110px; flex-shrink: 0;
        background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
        background-size: cover; background-position: center;
    }
    .aq-encart-h-info { flex: 1; padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
    .aq-encart-h-brand { font-size: 7px; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 2px; }
    .aq-encart-h-title { font-size: 15px; font-weight: bold; color: #fff; text-transform: uppercase; letter-spacing: -0.3px; }
    .aq-encart-h-sub { font-size: 9px; color: rgba(255,255,255,0.4); }
    .aq-encart-h-cta { font-size: 8px; font-weight: bold; color: var(--orange-da); text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

    .aq-hband-info {
        padding: 14px 16px;
        background: #000;
        flex-shrink: 0;
    }
    .aq-hband-brand { font-size: 7px; font-weight: bold; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px; }
    .aq-hband-product { font-size: 14px; font-weight: bold; color: #fff; text-transform: uppercase; letter-spacing: -0.3px; margin-bottom: 2px; }
    .aq-hband-desc { font-size: 9px; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
    .aq-hband-cta { font-size: 8px; font-weight: bold; color: var(--orange-da); text-transform: uppercase; letter-spacing: 1px; }

    /* Visuels produits AudioQuest */
    .aq-hband-img::after { color: rgba(255,255,255,0.22); }

    .aq-hband-img[data-name="BigFoot"] {
        background:
            repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 14px),
            radial-gradient(ellipse at 35% 38%, rgba(30, 110, 230, 0.45) 0%, transparent 52%),
            radial-gradient(ellipse at 72% 68%, rgba(0, 40, 140, 0.25) 0%, transparent 45%),
            linear-gradient(150deg, #0d1f3c 0%, #040c1a 100%);
    }
    .aq-hband-img[data-name="Lone Ranger"] {
        background:
            repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 14px),
            radial-gradient(ellipse at 38% 36%, rgba(210, 110, 20, 0.45) 0%, transparent 52%),
            radial-gradient(ellipse at 68% 68%, rgba(140, 60, 10, 0.25) 0%, transparent 45%),
            linear-gradient(150deg, #2b1505 0%, #0f0700 100%);
    }
    .aq-hband-img[data-name="BraveHeart"] {
        background:
            repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 14px),
            radial-gradient(ellipse at 42% 36%, rgba(210, 25, 25, 0.5) 0%, transparent 52%),
            radial-gradient(ellipse at 65% 66%, rgba(140, 10, 10, 0.25) 0%, transparent 45%),
            linear-gradient(150deg, #2a0404 0%, #0f0000 100%);
    }
    .aq-hband-img[data-name="Forest HDMI"] {
        background:
            repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 14px),
            radial-gradient(ellipse at 38% 38%, rgba(20, 130, 55, 0.45) 0%, transparent 52%),
            radial-gradient(ellipse at 65% 65%, rgba(10, 80, 30, 0.25) 0%, transparent 45%),
            linear-gradient(150deg, #071b0d 0%, #020902 100%);
    }
    .aq-encart-h-img {
        background:
            repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 14px),
            radial-gradient(ellipse at 40% 45%, rgba(242, 101, 57, 0.5) 0%, transparent 55%),
            radial-gradient(ellipse at 70% 65%, rgba(180, 50, 10, 0.25) 0%, transparent 45%),
            linear-gradient(135deg, #1c0a04 0%, #0c0200 100%);
    }
}

/* Modal Login */
#login-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 1000; justify-content: center; align-items: center;
}
.modal-content { background: white; width: 85%; max-width: 360px; padding: 30px; color: #333; border-radius: 4px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
