/* ========================================================================
   Devenir hote opaddock - Landing + Wizard etape 1
   Prefix : host-
   ======================================================================== */

.opd-host-page {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), .04) 0%, #fff 320px);
}

.host-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

/* ---------- Landing ---------- */

.host-hero {
    text-align: center;
    padding: 48px 20px 36px;
}

.host-hero-title {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--fg, #0f172a);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.host-hero-subtitle {
    max-width: 640px;
    margin: 0 auto 28px;
    color: var(--muted, #475569);
    font-size: 16px;
    line-height: 1.55;
}

.host-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), .25);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.host-cta-primary:hover  { transform: translateY(-1px); background: var(--primary-dark); }
.host-cta-primary:active { transform: translateY(0); }

.host-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--muted, #475569);
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1.5px solid var(--border, #cbd5e1);
    cursor: pointer;
}
.host-cta-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Porte aussi bien un <a> qu'un <button> : la page d'accueil hote ouvre le
   parcours commun par script, donc l'element est un bouton. Sans neutraliser le
   chrome par defaut du navigateur (fond gris, bordure, fonte systeme), il
   s'affichait en boite encadree au milieu d'un paragraphe. */
.host-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;          /* cible tactile (§17) */
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}
.host-cta-link:hover { text-decoration: underline; }
.host-cta-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.host-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 24px 0 48px;
}

.host-benefit {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: border-color .15s, transform .15s;
}
.host-benefit:hover { border-color: var(--primary); transform: translateY(-2px); }

.host-benefit i {
    font-size: 32px;
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
}

.host-benefit h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--fg, #0f172a);
}

.host-benefit p {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted, #475569);
    line-height: 1.5;
}

.host-steps {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 20px;
    padding: 32px 28px;
    margin-bottom: 32px;
}

.host-steps h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
}

.host-steps-list {
    margin: 0;
    padding-left: 22px;
    color: var(--fg, #0f172a);
    line-height: 1.7;
    font-size: 15px;
}

.host-steps-list li { margin-bottom: 4px; }

.host-steps-list strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.host-steps-foot {
    margin: 18px 0 22px;
    color: var(--muted, #475569);
    font-size: 14px;
    line-height: 1.55;
}

/* ---------- Formulaire ---------- */

.host-form-wrap {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, .04);
}

.host-form-head { margin-bottom: 24px; }

.host-form-step {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.host-form-head h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    color: var(--fg, #0f172a);
}

.host-form-sub {
    margin: 0;
    color: var(--muted, #475569);
    font-size: 14.5px;
    line-height: 1.55;
}

.host-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 22px;
}

.host-fieldset legend {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.host-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.host-field {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.host-field-full  { flex-basis: 100%; }
.host-field-small { flex: 0 1 140px; }

.host-label {
    font-size: 13px;
    color: var(--muted, #475569);
    font-weight: 600;
}

.host-field input {
    padding: 11px 14px;
    border: 1.5px solid var(--border, #cbd5e1);
    border-radius: 12px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--fg, #0f172a);
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}

.host-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12);
}

.host-hint {
    margin: -2px 0 0;
    font-size: 12.5px;
    color: var(--muted-2, #94a3b8);
}

.host-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.host-form-foot {
    margin: 18px 0 0;
    color: var(--muted-2, #94a3b8);
    font-size: 12.5px;
    line-height: 1.55;
    text-align: center;
}

.host-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.host-error {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.4;
}
.host-error + .host-error { margin-top: 6px; }
.host-error i { font-size: 18px; flex-shrink: 0; }

/* ---------- Etape 1 validee ---------- */

.host-done {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(15, 23, 42, .04);
}

.host-done-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 12px;
}

.host-done h1 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
}

.host-done p {
    max-width: 540px;
    margin: 0 auto 12px;
    color: var(--muted, #475569);
    font-size: 15px;
    line-height: 1.6;
}

.host-done-note {
    color: var(--muted-2, #94a3b8) !important;
    font-size: 13.5px !important;
}

.host-done-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    flex-wrap: wrap;
}

/* ---------- Wizard progress bar ---------- */

.host-wizard-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
    padding: 0 4px;
}

.host-wizard-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #94a3b8);
    white-space: nowrap;
}

.host-wizard-step span {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.host-wizard-step.is-active {
    color: var(--primary-dark);
}
.host-wizard-step.is-active span {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), .35);
}

.host-wizard-step.is-done { color: var(--primary-dark); }
.host-wizard-step.is-done span {
    background: var(--primary);
    color: #fff;
}

.host-wizard-sep {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 12px;
}
.host-wizard-sep.is-done { background: var(--primary); }

/* ---------- Radio cards ---------- */

.host-radio-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    margin-bottom: 8px;
    transition: border-color .12s, background .12s;
}
.host-radio-card input { margin-top: 3px; }
.host-radio-card:hover { border-color: var(--primary); }
.host-radio-card.is-selected { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.05); }
.host-radio-card strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--fg, #0f172a); }
.host-radio-card span   { display: block; margin-top: 2px; font-size: 13px; color: var(--muted, #475569); line-height: 1.4; }

/* ---------- Document upload items ---------- */

.host-doc-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 10px;
}

.host-doc-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.host-doc-icon-opt {
    background: #f1f5f9;
    color: #94a3b8;
}

.host-doc-body { flex: 1; }
.host-doc-body strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--fg, #0f172a); }
.host-doc-body > span {
    display: block;
    font-size: 13px;
    color: var(--muted, #475569);
    margin-bottom: 8px;
}

.host-doc-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #475569);
    cursor: pointer;
    transition: border-color .12s, color .12s;
}
.host-doc-upload-btn:hover { border-color: var(--primary); color: var(--primary); }
.host-doc-upload-btn input[type="file"] { display: none; }

.host-doc-filename {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

/* textarea dans les fieldsets */
.host-field textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--border, #cbd5e1);
    border-radius: 12px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--fg, #0f172a);
    background: #fff;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s;
}
.host-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    .host-shell      { padding: 16px 14px 60px; }
    .host-hero       { padding: 28px 8px 24px; }
    .host-form-wrap,
    .host-steps,
    .host-done       { padding: 22px 18px; border-radius: 16px; }
    .host-form-actions { justify-content: center; }
    .host-cta-primary,
    .host-cta-secondary { width: 100%; justify-content: center; }
}

/* ========================================================================
   Wizard v2 — Composants ajoutés (2026-06-15)
   ======================================================================== */

/* Barre de progression fine */
.host-progress {
    height: 3px;
    background: #e2e8f0;
    width: 100%;
}
.host-progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width .4s ease;
}

/* Top stepper */
.host-stepper {
    padding: 20px 28px 0;
}
.host-stepper-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 620px;
    margin: 0 auto;
}
.host-st-item {
    display: flex;
    align-items: center;
}
.host-st-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.host-st-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid var(--border, #e2e8f0);
    color: #94a3b8;
    background: #fff;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.host-st-dot.is-done {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.host-st-dot.is-active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .15);
}
.host-st-label {
    font-size: 10px;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 500;
}
.host-st-label.is-active { color: var(--primary); font-weight: 700; }
.host-st-label.is-done   { color: var(--primary); }
.host-st-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    min-width: 18px;
    max-width: 52px;
    margin: 0 4px 18px;
    transition: background .3s;
}
.host-st-line.is-done { background: var(--primary); }

/* Zone formulaire centrée */
.host-form-zone {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 28px 20px;
}
.host-form-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
}
.host-form-h1 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    letter-spacing: -.3px;
}
.host-form-hint {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 22px;
    line-height: 1.5;
}

/* Champs */
.host-field { margin-bottom: 14px; }
.host-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.host-label .req { color: var(--primary); }
.host-label .opt { color: #94a3b8; font-weight: 400; font-size: 11px; }
.host-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.host-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1);
}
.host-input.is-filled {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .04);
}
.host-input-wrap { position: relative; }
.host-input-wrap .host-input { padding-left: 38px; }
.host-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}
.host-input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    font-style: normal;
    font-variant-ligatures: none;
    letter-spacing: 0;
}
.host-field-note {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.host-field-note .accent { color: var(--primary); font-weight: 600; }

/* Grid 2 / 3 colonnes */
.host-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.host-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.host-span-2 { grid-column: span 2; }

/* Password strength */
.host-pwd-bars { display: flex; gap: 4px; margin-top: 6px; }
.host-pwd-bar {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: #e2e8f0;
    transition: background .3s;
}
.host-pwd-bar.weak   { background: #ef4444; }
.host-pwd-bar.medium { background: #f59e0b; }
.host-pwd-bar.strong { background: var(--primary); }
.host-pwd-label { font-size: 11px; color: #94a3b8; margin-top: 3px; }

/* OTP */
.host-otp-wrap {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 12px 0;
}
.host-otp-box {
    width: 46px;
    height: 54px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.host-otp-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12);
}
.host-otp-box.is-filled {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .04);
    color: var(--primary);
}
.host-otp-resend {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
}
.host-otp-resend a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* Photo upload */
.host-photo-drop {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.host-photo-drop:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .04);
}
.host-photo-drop-icon { font-size: 32px; margin-bottom: 8px; }
.host-photo-drop p { font-size: 13px; color: #64748b; }
.host-photo-drop strong { color: var(--primary); }
.host-photo-preview {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--primary);
    position: relative;
}
.host-photo-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.host-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    cursor: pointer;
}
.host-photo-preview:hover .host-photo-overlay { opacity: 1; }
.host-photo-change-btn {
    background: #fff;
    color: #0f172a;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
}
.host-char-counter { text-align: right; font-size: 11px; color: #94a3b8; margin-top: 4px; }

/* Carte GPS */
.host-map-wrap {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    height: 240px;
    position: relative;
    z-index: 0;          /* contient les z-indices internes Leaflet (panes 200-700) */
    isolation: isolate;  /* stacking context explicite, indépendant du nav */
}
.host-map-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.host-map-chip {
    background: rgba(var(--primary-rgb), .08);
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    color: var(--primary-darker);
    font-weight: 500;
}

/* Cards installations */
.host-inst-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.host-inst-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    position: relative;
    user-select: none;
}
.host-inst-card:hover { border-color: var(--primary); }
.host-inst-card.is-selected {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .05);
}
.host-inst-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s;
}
.host-inst-card.is-selected .host-inst-check { opacity: 1; }
.host-inst-icon { font-size: 20px; margin-bottom: 4px; }
.host-inst-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.host-inst-config {
    background: #f8fafc;
    border: 1.5px solid var(--primary);
    border-radius: 12px;
    padding: 14px;
    margin-top: 4px;
    margin-bottom: 14px;
    display: none;
}
.host-inst-config.is-open { display: block; }
.host-inst-config-title {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
}

/* Zones document */
.host-doc-zone {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin-bottom: 10px;
}
.host-doc-zone:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .04);
}
.host-doc-zone.is-uploaded {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .04);
    border-style: solid;
}
.host-doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.host-doc-icon.req  { background: #fee2e2; }
.host-doc-icon.opt  { background: #f1f5f9; }
.host-doc-icon.done { background: #d1fae5; }
.host-doc-body { flex: 1; }
.host-doc-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.host-doc-sub   { font-size: 11px; color: #94a3b8; }
.host-doc-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin-left: 6px; }
.host-badge-req  { background: #fee2e2; color: #991b1b; }
.host-badge-opt  { background: #f1f5f9; color: #64748b; }
.host-badge-done { background: #d1fae5; color: var(--primary-darker); }

/* Toggle validation */
.host-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}
.host-toggle-opt {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.host-toggle-opt:hover { border-color: var(--primary); }
.host-toggle-opt.is-selected {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .05);
}
.host-toggle-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.host-toggle-desc  { font-size: 11px; color: #64748b; line-height: 1.4; }

/* Actions bar */
.host-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-top: 1px solid #f1f5f9;
}
.host-actions-right { display: flex; align-items: center; gap: 12px; }
.host-btn-back {
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, color .15s;
}
.host-btn-back:hover { border-color: #94a3b8; color: #374151; }
.host-btn-next {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), .3);
    transition: background .15s, transform .1s;
}
.host-btn-next:hover { background: var(--primary-dark); transform: translateY(-1px); }
.host-btn-next:active { transform: translateY(0); }
.host-btn-skip {
    background: none;
    border: none;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

/* Info box verte */
.host-info-box {
    background: rgba(var(--primary-rgb), .07);
    border: 1.5px solid rgba(var(--primary-rgb), .3);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--primary-darker);
    line-height: 1.5;
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
}

/* Écran succès */
.host-success-wrap { text-align: center; padding: 48px 28px; }
.host-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}
.host-success-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; color: #0f172a; }
.host-success-sub {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 20px;
}
.host-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef3c7;
    border: 1.5px solid #fcd34d;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 24px;
}

/* Erreurs */
.host-errors {
    background: #fee2e2;
    border: 1.5px solid #fca5a5;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.host-errors li { font-size: 13px; color: #991b1b; margin-left: 16px; margin-bottom: 2px; }

@media (max-width: 600px) {
    .host-grid-2, .host-grid-3, .host-inst-grid, .host-toggle-group { grid-template-columns: 1fr; }
    .host-span-2 { grid-column: span 1; }
    .host-stepper-inner { gap: 0; }
    .host-st-label { display: none; }
    .host-st-line { min-width: 12px; max-width: 28px; }
    .host-form-zone { padding: 20px 16px 16px; }
    .host-actions { padding: 14px 16px; }
}

/* ── Installations v2 ──────────────────────────────────────── */
.host-inst-section {
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}
.host-inst-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    background: #f9fafb;
    user-select: none;
    transition: background .15s;
}
.host-inst-section-header:hover {
    background: rgba(var(--primary-rgb), .06);
}
.host-inst-chevron {
    font-size: 14px;
    color: var(--primary);
    transition: transform .2s;
}
.host-inst-section-body {
    padding: 16px 18px 18px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.host-inst-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    padding: 2px 0;
    user-select: none;
}

/* Case à cocher custom — masque le natif */
.host-inst-toggle-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: background .2s;
}
.host-inst-toggle-label input[type="checkbox"]::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.host-inst-toggle-label input[type="checkbox"]:checked {
    background: var(--primary);
}
.host-inst-toggle-label input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}
.host-field {
    margin-bottom: 14px;
}
.host-field:last-child {
    margin-bottom: 0;
}
.opt {
    font-weight: 400;
    font-size: 11px;
    color: #9ca3af;
    margin-left: 4px;
}

/* Les champs téléphone utilisent le composant partagé opd-phone-prefix.css */

/* Echec du passage en hote : un refus doit se lire, jamais laisser croire que le
   bouton ne repond pas (§4). */
.host-erreur {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 760px;
    margin: 0 auto 22px;
    padding: 13px 16px;
    border-radius: 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14.5px;
    font-weight: 600;
}
