:root {
    --orange-da: #f26539;
    --bg-page: #c8cdd6;
    --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: var(--bg-page);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Conteneur centré — limité sur grand écran */
.app-container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-page);
    box-shadow: 0 0 40px rgba(0,0,0,0.10);
}

/* Logo & 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: 2.2rem; font-weight: bold; text-transform: uppercase; letter-spacing: -1.5px; margin: 0; color: #ffffff; }
h1 span { color: var(--orange-da); }
.tagline { font-size: 10px; color: var(--orange-da); font-weight: bold; text-transform: uppercase; margin-top: 5px; letter-spacing: 1.2px; }

/* Main 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;
}

/* Dropdowns */
.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; }

/* Toggles & Range */
.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 Global */
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 */
.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; }

/* Desktop — espacement réduit + hauteur auto */
@media (min-width: 480px) {
    body { align-items: flex-start; padding: 30px 0; box-sizing: border-box; }
    .app-container { min-height: auto; border-radius: 6px; overflow: hidden; }
    .content { flex: none; }
    .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; }
    footer { margin-top: 0; }
    .ad-inline { display: none; }

    .ad-zone {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 200px;
        flex-shrink: 0;
        position: sticky;
        top: 30px;
        align-self: flex-start;
    }
    .ad-left { margin-right: 20px; }
    .ad-right { margin-left: 20px; }

    .ad-banner {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #1a1a1a;
        border-radius: 6px;
        padding: 20px 15px;
        text-decoration: none;
        text-align: center;
        transition: opacity 0.2s;
    }
    .ad-banner:active { opacity: 0.8; }
    .ad-logo { height: 30px; width: auto; margin-bottom: 15px; }
    .ad-title { font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 8px; }
    .ad-sub { font-size: 10px; color: rgba(255,255,255,0.5); line-height: 1.5; margin-bottom: 15px; }
    .ad-cta { font-size: 10px; font-weight: bold; text-transform: uppercase; color: var(--orange-da); letter-spacing: 1px; }

    .ad-placeholder {
        background: #b0b8c4;
        border-radius: 6px;
        height: 250px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px dashed #8a9ab0;
    }
    .ad-placeholder-text {
        font-size: 10px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #6a7a8a;
    }
}

/* Modal Login */
#login-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); 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.25); }
