* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #1f2933;
}

.top {
    padding: 18px 22px 0 22px;
    border-bottom: 1px solid #edf0f3;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #007c9b;
    letter-spacing: -0.5px;
}

.step-count {
    position: absolute;
    right: 24px;
    top: 24px;
    color: #344054;
    font-size: 14px;
}

.progress-wrap {
    width: 100%;
    height: 5px;
    background: #edf0f3;
    margin-top: 18px;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    width: 16%;
    height: 5px;
    background: #007c9b;
    transition: width 0.25s ease;
}

.assistant {
    max-width: 760px;
    margin: 35px auto 80px auto;
    padding: 0 18px;
}

.row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 22px 0;
}

.avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007c9b, #dd3f7f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-top: 2px;
}

.bubble {
    background: #eef3fb;
    border-radius: 14px;
    padding: 14px 17px;
    line-height: 1.45;
    font-size: 16px;
    max-width: 620px;
}

.step {
    display: none;
}

.step.active,
.step.done {
    display: block;
}

.choices {
    margin-left: 54px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.choice {
    border: 1px solid #d4dde5;
    background: #ffffff;
    border-radius: 7px;
    padding: 13px 18px;
    font-size: 16px;
    cursor: pointer;
    min-width: 125px;
    transition: 0.15s ease;
    color: #1f2933;
}

.choice:hover,
.choice.selected {
    border-color: #007c9b;
    color: #007c9b;
    background: #eaf7fb;
}

.cards .choice {
    width: 180px;
    height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.choice-title {
    display: block;
    margin-bottom: 8px;
}

.choice-icon {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.step.done .choice:not(.selected) {
    display: none;
}

.input-zone {
    margin-left: 54px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

input[type="text"] {
    width: 280px;
    max-width: 100%;
    padding: 13px 14px;
    border: 1px solid #d4dde5;
    border-radius: 7px;
    font-size: 16px;
}

.btn-main {
    background: #007c9b;
    color: #ffffff;
    border: 0;
    border-radius: 25px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-main:hover {
    background: #00657e;
}

.result {
    display: none;
    margin-top: 35px;
    padding: 22px;
    border: 1px solid #d4dde5;
    border-radius: 12px;
    background: #fbfdff;
}

.result h2 {
    margin-top: 0;
    color: #1f2933;
}

.result strong {
    color: #007c9b;
}

.result-url {
    display: block;
    margin-top: 15px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 8px;
    overflow-wrap: anywhere;
    font-size: 14px;
}

@media (max-width: 600px) {
    .top {
        padding: 14px 14px 0 14px;
    }

    .logo {
        font-size: 25px;
    }

    .step-count {
        right: 16px;
        top: 21px;
    }

    .assistant {
        margin-top: 22px;
        padding: 0 14px;
    }

    .row {
        gap: 10px;
        margin: 20px 0 14px 0;
    }

    .avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 14px;
    }

    .bubble {
        font-size: 15px;
        padding: 13px 14px;
    }

    .choices,
    .input-zone {
        margin-left: 46px;
    }

    .choice,
    .cards .choice {
        width: 100%;
        min-width: 0;
    }

    input[type="text"] {
        width: 100%;
    }

    .btn-main {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .choices,
    .input-zone {
        margin-left: 0;
    }
}

.city-zone {
    position: relative;
}

.city-suggestions {
    width: 100%;
    max-width: 420px;
    margin-top: 8px;
}

.city-suggestion {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #d4dde5;
    background: #ffffff;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 15px;
}

.city-suggestion:hover {
    border-color: #007c9b;
    color: #007c9b;
    background: #eaf7fb;
}

.city-help {
    width: 100%;
    max-width: 420px;
    margin-top: 8px;
    color: #667085;
    font-size: 14px;
}

.city-correction {
    border: 0;
    background: transparent;
    color: #007c9b;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.geo-zone {
    margin-left: 54px;
    max-width: 430px;
}

.geo-zone label {
    display: block;
    margin: 12px 0 5px 0;
    font-weight: 700;
    color: #344054;
}

.geo-zone select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d4dde5;
    border-radius: 7px;
    background: #ffffff;
    font-size: 16px;
}

.geo-zone select:disabled {
    background: #f4f6f8;
    color: #98a2b3;
}

.geo-zone .btn-main {
    margin-top: 16px;
}

@media (max-width: 600px) {
    .geo-zone {
        margin-left: 46px;
        max-width: none;
    }
}

@media (max-width: 420px) {
    .geo-zone {
        margin-left: 0;
    }
}


/* =========================================================
   Assistant Oulfa - design aligné site
   ========================================================= */

html,
body {
    background: #e6e4e4 !important;
    background-image: none !important;
    color: #222222 !important;
}

.top {
    background: #e6e4e4 !important;
    border-bottom: 1px solid #d2d0d0 !important;
    min-height: 95px !important;
    padding: 12px 22px 0 22px !important;
    box-shadow: none !important;
}

.logo {
    display: flex !important;
    align-items: center !important;
    color: inherit !important;
    font-size: 0 !important;
    text-shadow: none !important;
}

.logo img {
    display: block !important;
    height: 72px !important;
    width: auto !important;
    max-width: 220px !important;
}

.step-count {
    color: #555555 !important;
    top: 26px !important;
    right: 24px !important;
}

.progress-wrap {
    background: #d5d3d3 !important;
    height: 5px !important;
    margin-top: 10px !important;
}

.progress-bar {
    background: #f78f07 !important;
    height: 5px !important;
}

.assistant {
    max-width: 760px !important;
    margin: 34px auto 80px auto !important;
    background: #ffffff !important;
    border: 1px solid #c9c9c9 !important;
    border-radius: 4px !important;
    padding: 22px 24px 34px 24px !important;
}

.avatar {
    background: linear-gradient(135deg, #f78f07, #c43d3d) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.18) !important;
}

.bubble {
    background: #f5f5f5 !important;
    border: 1px solid #e2e2e2 !important;
    color: #222222 !important;
    border-radius: 9px !important;
}

.choice {
    border: 1px solid #d0d0d0 !important;
    background: #ffffff !important;
    color: #333333 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.choice:hover,
.choice.selected {
    border-color: #f78f07 !important;
    background: #fff4e6 !important;
    color: #d97900 !important;
}

.choice-icon {
    color: #d97900 !important;
}

.btn-main {
    background: #f78f07 !important;
    border: 1px solid #d97900 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 3px rgba(0,0,0,0.22) !important;
    text-shadow: 0 1px 0 rgba(0,0,0,0.20) !important;
}

.btn-main:hover {
    background: #e17f00 !important;
    border-color: #c96f00 !important;
}

.geo-zone label {
    color: #333333 !important;
}

.geo-zone select,
input[type="text"] {
    border: 1px solid #cfcfcf !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #222222 !important;
}

.result {
    border: 1px solid #c9c9c9 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
}

.result h2 {
    color: #222222 !important;
    font-family: Georgia, "Times New Roman", serif !important;
}

.result strong {
    color: #d97900 !important;
}

.result-button {
    background: #f78f07 !important;
    border: 1px solid #d97900 !important;
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .top {
        min-height: 82px !important;
        padding: 10px 14px 0 14px !important;
    }

    .logo img {
        height: 58px !important;
        max-width: 180px !important;
    }

    .assistant {
        margin: 18px 10px 60px 10px !important;
        padding: 18px 14px 28px 14px !important;
    }
}


/* Avertissement rouge clignotant assistant */
.geo-error {
    display: block !important;
    margin-top: 12px !important;
    padding: 10px 12px !important;
    color: #b00020 !important;
    background: #ffe8e8 !important;
    border: 1px solid #ff9b9b !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
}

.geo-error::before {
    content: "⚠ ";
}

.geo-error-blink {
    animation: geoBlink 0.75s ease-in-out infinite;
}

@keyframes geoBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.select-error {
    border-color: #d60000 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 2px rgba(214, 0, 0, 0.12) !important;
}


/* Avatar assistant - photo optimisée */
.avatar {
    background-image: url('/recherche/avatar.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #ffffff !important;
    color: transparent !important;
    font-size: 0 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.22) !important;
}

/* Avatar assistant - version nette */
.avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    background-image: url('/recherche/avatar.webp') !important;
    background-size: cover !important;
    background-position: center 20% !important;
    background-repeat: no-repeat !important;
    background-color: #ffffff !important;
    color: transparent !important;
    font-size: 0 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.22) !important;
}


/* Avatar assistant - PNG 320 plus net */
.avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    background-image: url('/recherche/avatar.png') !important;
    background-size: cover !important;
    background-position: center 20% !important;
    background-repeat: no-repeat !important;
    background-color: #ffffff !important;
    color: transparent !important;
    font-size: 0 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.22) !important;
}


/* Header assistant centré sur la largeur du contenu */
.top {
    background: #e6e4e4 !important;
    border-bottom: 1px solid #d2d0d0 !important;
    padding: 0 !important;
    min-height: auto !important;
    box-shadow: none !important;
}

.top-inner {
    max-width: 980px !important;
    margin: 0 auto !important;
    position: relative !important;
    padding: 10px 20px 12px 20px !important;
}

.logo {
    display: flex !important;
    align-items: center !important;
    font-size: 0 !important;
    color: inherit !important;
    text-shadow: none !important;
}

.logo img {
    display: block !important;
    height: 72px !important;
    width: auto !important;
    max-width: 220px !important;
}

.step-count {
    position: absolute !important;
    top: 18px !important;
    right: 20px !important;
    color: #555555 !important;
    font-size: 14px !important;
}

.progress-wrap {
    width: 100% !important;
    height: 5px !important;
    background: #d5d3d3 !important;
    margin-top: 10px !important;
    border-radius: 3px !important;
    overflow: hidden !important;
}

.progress-bar {
    height: 5px !important;
    background: #f78f07 !important;
    border-radius: 3px !important;
}

@media (max-width: 700px) {
    .top-inner {
        padding: 8px 12px 10px 12px !important;
    }

    .logo img {
        height: 56px !important;
        max-width: 170px !important;
    }

    .step-count {
        top: 12px !important;
        right: 12px !important;
        font-size: 13px !important;
    }
}

/* Alignement final assistant : header et bloc central */
.top-inner {
    max-width: 760px !important;
}

.assistant {
    max-width: 760px !important;
}


/* Garder tous les choix visibles pour permettre la correction */
.step.done .choice:not(.selected) {
    display: inline-flex !important;
}

.step.done .choices {
    display: flex !important;
}

.choice.selected {
    border-color: #f78f07 !important;
    background: #fff4e6 !important;
    color: #d97900 !important;
}

