:root {
    --header: #131921;
    --nav: #232f3e;
    --footer: #232f3e;
    --bg: #eaeded;
    --card: #ffffff;
    --yellow: #ffd814;
    --yellow-hover: #f7ca00;
    --yellow-border: #fcd200;
    --link: #007185;
    --orange: #ff9900;
    --prime: #00a8e1;
    --green-bg: #f0f7f1;
    --green-border: #2e7d32;
    --green-circle: #1e7d32;
    --border: #d5d9d9;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: #0f1111;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header (black) ---------- */
.topbar {
    background: var(--header);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-block;
    line-height: 1;
}

.logo .word {
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.5px;
    color: #fff;
    text-decoration: none;
}

.logo .smile {
    display: block;
    margin-top: 1px;
}

.topbar .account {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* ---------- search bar ---------- */
.searchbar {
    background: #fff;
    display: flex;
    align-items: stretch;
    height: 42px;
    border-bottom: 1px solid #eee;
}

.searchbar .cat {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f3f3f3;
    border: 1px solid #d5d9d9;
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 0 10px;
    font-size: 12px;
    color: #0f1111;
    cursor: pointer;
    white-space: nowrap;
}

.searchbar .chevron { font-size: 9px; color: #555; }

.searchbar .search-btn {
    width: 46px;
    background: #febd69;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.searchbar .search-btn:hover { background: #f3a847; }

.searchbar input {
    flex: 1;
    border: 1px solid #d5d9d9;
    border-right: none;
    border-left: none;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}

/* ---------- nav ---------- */
.navbar {
    background: var(--nav);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 16px;
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
}

.navbar .menu {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.navbar .hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.navbar .hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
}
.navbar .item { color: #fff; cursor: pointer; }

/* ---------- layout card ---------- */
.container {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 16px;
}

.card {
    background: var(--card);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px 28px;
}

/* ---------- green confirmation ---------- */
.greenbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
}

.greenbox .circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--green-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.greenbox .circle svg { width: 15px; height: 15px; }

.greenbox .title { font-weight: 700; font-size: 17px; color: #0f1111; }
.greenbox .sub { color: #555; font-size: 13px; margin-top: 2px; }

/* ---------- order box ---------- */
.orderbox {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 22px;
}

.orderbox .row { display: flex; align-items: center; gap: 10px; }

.orderbox .prime-logo {
    font-weight: 700;
    font-size: 20px;
    color: var(--prime);
    line-height: 1;
}

.orderbox .prime-logo .smile { display: block; margin-top: 1px; }

.orderbox .plan {
    font-weight: 700;
    font-size: 15px;
    color: #0f1111;
}

.orderbox .price {
    font-weight: 700;
    font-size: 14px;
    color: #0f1111;
    margin-top: 2px;
}

.orderbox .divider {
    height: 1px;
    background: #e7e7e7;
    margin: 14px 0;
}

.orderbox .details {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.orderbox .detail .label {
    font-size: 12px;
    color: #555;
    margin-bottom: 3px;
}

.orderbox .detail .value {
    font-weight: 700;
    font-size: 13px;
    color: #0f1111;
}

.orderbox .see-detail {
    margin-top: 14px;
    font-size: 13px;
}

/* ---------- question / buttons ---------- */
.question {
    font-size: 19px;
    font-weight: 700;
    color: #0f1111;
    margin: 0 0 14px;
}

.choice-btn {
    display: block;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    margin-bottom: 12px;
}

.choice-btn .main {
    font-weight: 700;
    font-size: 15px;
    color: #0f1111;
}

.choice-btn .sub {
    font-size: 13px;
    margin-top: 3px;
}

.choice-btn.yellow {
    background: var(--yellow);
    border: 1px solid var(--yellow-border);
}
.choice-btn.yellow:hover { background: var(--yellow-hover); }
.choice-btn.yellow .sub { color: #555; }

.choice-btn.white {
    background: #fff;
    border: 1px solid var(--border);
}
.choice-btn.white .sub { color: #555; }
.choice-btn.white:hover { background: #f7fafa; }

/* ---------- footer ---------- */
.footer {
    background: var(--footer);
    color: #fff;
    text-align: center;
    padding: 14px;
    font-size: 13px;
    margin-top: 30px;
    cursor: pointer;
}

/* ---------- captcha page ---------- */
.captcha-wrap {
    max-width: 520px;
    margin: 40px auto;
    padding: 0 16px;
}

.captcha-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.captcha-card h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}

.captcha-card .intro {
    font-size: 14px;
    color: #0f1111;
    margin-bottom: 18px;
}

.captcha-img {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}

.captcha-img img {
    border: 1px solid var(--border);
    border-radius: 6px;
    flex: 1;
    max-width: 260px;
    height: auto;
}

.captcha-img .refresh {
    border: 1px solid var(--border);
    background: #f3f3f3;
    border-radius: 6px;
    width: 46px;
    cursor: pointer;
    font-size: 20px;
    color: #555;
}

.captcha-card label {
    font-size: 13px;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.captcha-card input[type="text"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #888c8c;
    border-radius: 6px;
    font-size: 15px;
    letter-spacing: 2px;
    outline: none;
    margin-bottom: 14px;
}

.captcha-card input[type="text"]:focus { border-color: var(--orange); box-shadow: 0 0 3px var(--orange); }

.captcha-card .continue {
    width: 100%;
    background: var(--yellow);
    border: 1px solid var(--yellow-border);
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.captcha-card .continue:hover { background: var(--yellow-hover); }

.error-msg {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    margin-bottom: 14px;
}

.hidden { display: none; }

/* ---------- dashboard ---------- */
.dash-wrap { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dash-header h1 { font-size: 22px; margin: 0; }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}
.stat .num { font-size: 28px; font-weight: 700; }
.stat .label { font-size: 13px; color: #555; margin-top: 4px; }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
@media (max-width: 720px) { .panels { grid-template-columns: 1fr; } }

.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}
.panel h2 { font-size: 15px; margin: 0 0 10px; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table-wrap th, .table-wrap td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.table-wrap th { background: #fafafa; position: sticky; top: 0; }

.badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.badge.bot { background: #fdecea; color: #c62828; }
.badge.human { background: #e8f5e9; color: #1e7d32; }

/* ---------- login ---------- */
.login-wrap { max-width: 380px; margin: 60px auto; padding: 0 16px; }
.login-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.login-card h1 { font-size: 20px; margin: 0 0 16px; }
.login-card label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 6px; }
.login-card input[type="text"], .login-card input[type="password"] {
    width: 100%; padding: 9px 12px; border: 1px solid #888c8c; border-radius: 6px;
    font-size: 14px; outline: none; margin-bottom: 12px;
}
.login-card button {
    width: 100%; background: var(--yellow); border: 1px solid var(--yellow-border);
    border-radius: 8px; padding: 10px; font-size: 14px; cursor: pointer;
}

/* ---------- header page 3 (recherche intégrée) ---------- */
.topbar-search { gap: 10px; flex-wrap: wrap; }
.topbar-search .logo { flex-shrink: 0; }
.cat-inbar {
    display: flex; align-items: center; gap: 6px;
    background: #f3f3f3; color: #0f1111;
    border: 1px solid #d5d9d9; border-radius: 6px 0 0 6px;
    padding: 0 10px; font-size: 12px; height: 38px; cursor: pointer; white-space: nowrap;
}
.search-inbar {
    flex: 1; min-width: 120px; height: 38px;
    border: none; border-radius: 0; padding: 0 12px; font-size: 14px; outline: none;
}
.search-btn-inbar {
    width: 46px; height: 38px; background: #febd69; border-radius: 0 6px 6px 0;
    display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.search-btn-inbar:hover { background: #f3a847; }
.topbar-search .account { flex-shrink: 0; margin-left: 6px; }

/* ---------- page annulation (page 3) ---------- */
.container-narrow { max-width: 680px; }

.step-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.page-title { font-size: 26px; font-weight: 700; color: #0f1111; margin: 0 0 10px; }
.page-sub { font-size: 14px; color: #555; margin: 0 0 18px; }
.page-question { font-size: 17px; font-weight: 700; color: #0f1111; margin: 0 0 6px; }
.page-hint { font-size: 13px; color: #555; margin: 0 0 4px; }
.divider-light { height: 1px; background: #e7e7e7; margin: 14px 0 16px; }

.reason-row {
    display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--border); border-radius: 6px;
    padding: 12px 14px; cursor: pointer; margin-bottom: 8px;
}
.reason-row:hover { border-color: #a6a6a6; }
.reason-row input[type="checkbox"] { position: absolute; opacity: 0; }
.reason-row .circle {
    width: 20px; height: 20px; border: 2px solid #8d9096; border-radius: 50%;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.reason-row input:checked + .circle { border-color: #007185; }
.reason-row input:checked + .circle::after {
    content: ""; width: 10px; height: 10px; background: #007185; border-radius: 50%;
}
.reason-text { font-size: 14px; color: #0f1111; }

.reason-input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 14px; outline: none; margin-bottom: 16px;
}
.reason-input:focus { border-color: var(--orange); box-shadow: 0 0 3px var(--orange); }

.btn-row { display: flex; gap: 10px; }
.btn-continue {
    background: var(--yellow); border: 1px solid var(--yellow-border); border-radius: 8px;
    padding: 10px 24px; font-size: 14px; font-weight: 500; cursor: pointer; color: #0f1111;
}
.btn-continue:hover { background: var(--yellow-hover); }
.btn-back {
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 18px; font-size: 14px; cursor: pointer; color: #0f1111;
    text-decoration: none; display: inline-flex; align-items: center;
}
.btn-back:hover { background: #f7fafa; }

/* ---------- page coordonnées (page 4) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.field { margin-bottom: 14px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; color: #0f1111; margin-bottom: 6px; }
.req { color: #d00; }
.field input, .field select {
    width: 100%; padding: 9px 12px; border: 1px solid #888c8c; border-radius: 6px;
    font-size: 14px; outline: none; background: #fff; color: #0f1111;
}
.field input:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 3px var(--orange); }
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.field input::placeholder { color: #999; }
.field select:invalid { color: #888; }

@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
}
