:root {
    --qlii-primary: #C96F4A;
    --qlii-primary-dark: #9F5034;
    --qlii-primary-light: #F0C7B5;
    --qlii-accent: #E3B45C;
    --qlii-bg: #FAF6F1;
    --qlii-surface: #FFFFFF;
    --qlii-text: #28231F;
    --qlii-text-muted: #766C65;
    --qlii-border: #E8DDD5;
    --qlii-accentstrong: #C03A78;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


.qr-card {
    max-width: 420px;
    margin: 60px auto;
    padding: 32px;
    text-align: center;
    border-radius: 24px;
    background: white;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

    .qr-card h1 {
        margin-bottom: 8px;
    }

    .qr-card img {
        width: 280px;
        max-width: 100%;
        margin: 24px auto;
        display: block;
    }

    .qr-card p {
        margin: 8px 0;
    }

.qr-print-button {
    margin-top: 16px;
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    background: #111;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

    .qr-print-button:hover {
        background: #333;
    }

@media print {
    .qr-print-button {
        display: none;
    }

    .qr-card {
        box-shadow: none;
        margin: 0 auto;
    }
}

.admin-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #ddd;
}

    .admin-nav a {
        text-decoration: none;
        font-weight: 600;
        color: #222;
    }

        .admin-nav a:hover {
            text-decoration: underline;
        }

.admin-business-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 28px;
}

    .admin-business-actions a {
        padding: 10px 16px;
        border-radius: 10px;
        background: #f1f1f1;
        color: #222;
        text-decoration: none;
        font-weight: 600;
    }

        .admin-business-actions a:hover {
            background: #ddd;
        }

.admin-status {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

    .admin-status.published {
        background: #e7f7ec;
        color: #187a36;
    }

    .admin-status.draft {
        background: #f3f3f3;
        color: #666;
    }

.qr-scan-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    text-align: left;
}

.qr-scan-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f5f5f5;
}

.admin-logout-form {
    margin: 0;
}

    .admin-logout-form button {
        border: 0;
        padding: 0;
        background: none;
        color: #222;
        font-weight: 600;
        cursor: pointer;
    }

        .admin-logout-form button:hover {
            text-decoration: underline;
        }

body {
    margin: 0;
    background: #fff;
    color: #111;
}


.site-header {
    border-bottom: 1px solid #eee;
    background: #fff;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
}

.site-logo {
    color: #111;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.site-container {
    min-height: calc(100vh - 140px);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.site-footer {
    padding: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #eee;
}




.app-body {
    margin: 0;
    min-height: 100vh;
    background: #f6f7f9;
}

.app-header {
    height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #e7e7e7;
}

.app-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

.app-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.app-nav form {
    margin: 0;
}

.app-nav button {
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
}

.app-main {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 80px;
}

@media (max-width: 700px) {
    .app-header {
        height: 64px;
        padding: 0 20px;
    }

    .app-main {
        width: calc(100% - 32px);
        padding-top: 28px;
    }

    .app-nav {
        gap: 14px;
    }

        .app-nav a {
            font-size: 0.9rem;
        }
}

.app-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

    .app-page-header h1 {
        margin: 0 0 6px;
        font-size: 2rem;
    }

    .app-page-header p {
        margin: 0;
        color: #777;
    }

.app-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

    .app-primary-button:hover {
        color: #fff;
        background: #333;
    }

.app-business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.app-business-card {
    display: block;
    padding: 22px;
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .app-business-card:hover {
        color: inherit;
        transform: translateY(-2px);
        border-color: #ccc;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    }

.app-business-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.app-business-avatar {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f0f0f0;
    font-weight: 700;
    font-size: 1.2rem;
}

.app-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}

    .app-status.published {
        background: #e8f7ed;
        color: #267a43;
    }

    .app-status.draft {
        background: #f1f1f1;
        color: #666;
    }

.app-business-card h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.app-business-location,
.app-business-category {
    margin: 4px 0;
    color: #777;
}

.app-business-card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-weight: 600;
}

.app-empty-state {
    padding: 60px 30px;
    text-align: center;
    border: 1px dashed #ccc;
    border-radius: 16px;
    background: #fff;
}

    .app-empty-state h2 {
        margin-top: 0;
    }

    .app-empty-state p {
        color: #777;
        margin-bottom: 24px;
    }

@media (max-width: 700px) {

    .app-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .app-primary-button {
        width: 100%;
    }

    .app-business-grid {
        grid-template-columns: 1fr;
    }
}

.app-back-link {
    display: inline-block;
    margin-bottom: 14px;
    color: #777;
    text-decoration: none;
    font-weight: 500;
}

    .app-back-link:hover {
        color: #111;
    }

.app-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* ===========================================================
   QLII — Icônes du tableau de bord : couleurs des catégories
   =========================================================== */
.app-dashboard-grid {
    --app-dashboard-icon-bg: var(--qlii-category-default);
}

    .app-dashboard-grid.category-restaurant {
        --app-dashboard-icon-bg: var(--qlii-category-restaurant);
    }

    .app-dashboard-grid.category-bar {
        --app-dashboard-icon-bg: var(--qlii-category-bar);
    }

    .app-dashboard-grid.category-cafe {
        --app-dashboard-icon-bg: var(--qlii-category-cafe);
    }

    .app-dashboard-grid.category-spa,
    .app-dashboard-grid.category-massage {
        --app-dashboard-icon-bg: var(--qlii-category-wellness);
    }

    .app-dashboard-grid.category-hairsalon,
    .app-dashboard-grid.category-beautysalon {
        --app-dashboard-icon-bg: var(--qlii-category-beauty);
    }

    .app-dashboard-grid.category-tattoo {
        --app-dashboard-icon-bg: var(--qlii-category-tattoo);
    }

    .app-dashboard-grid.category-hotel,
    .app-dashboard-grid.category-guesthouse,
    .app-dashboard-grid.category-vacationrental {
        --app-dashboard-icon-bg: var(--qlii-category-hospitality);
    }

    .app-dashboard-grid.category-activity {
        --app-dashboard-icon-bg: var(--qlii-category-activity);
    }

    .app-dashboard-grid.category-shop {
        --app-dashboard-icon-bg: var(--qlii-category-shop);
    }

    .app-dashboard-grid.category-personal,
    .app-dashboard-grid.category-consultant {
        --app-dashboard-icon-bg: var(--qlii-category-personal);
    }

    .app-dashboard-grid.category-other {
        --app-dashboard-icon-bg: var(--qlii-category-default);
    }

    .app-dashboard-grid .app-dashboard-icon {
        background: var(--app-dashboard-icon-bg);
        transition: background-color .2s ease;
    }

    .app-dashboard-grid .app-card-icon {
        filter: brightness(0) invert(1);
    }

    .app-dashboard-grid.category-tattoo .app-card-icon,
    .app-dashboard-grid.category-activity .app-card-icon,
    .app-dashboard-grid.category-other .app-card-icon {
        filter: brightness(0);
    }

.app-dashboard-card {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr 24px;
    align-items: center;
    gap: 18px;
    min-height: 130px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .app-dashboard-card:hover {
        color: inherit;
        transform: translateY(-2px);
        border-color: #ccc;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    }

.app-dashboard-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f3f3f3;
    font-size: 1.4rem;
}

.app-dashboard-card h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.app-dashboard-card p {
    margin: 0;
    color: #777;
    line-height: 1.45;
}

.app-dashboard-arrow {
    color: #999;
    font-size: 1.2rem;
}

.app-publish-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.app-publish-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

    .app-publish-actions form {
        margin: 0;
    }

    .app-publish-actions .app-primary-button,
    .app-publish-actions .app-secondary-button {
        width: auto;
    }

.app-publish-card h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.app-publish-card p {
    margin: 0;
    color: #777;
}

.app-publish-card form {
    margin: 0;
    flex-shrink: 0;
}

.app-secondary-button {
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-weight: 600;
    cursor: pointer;
}

    .app-secondary-button:hover {
        background: #f5f5f5;
    }

.app-alert-error {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff0f0;
    color: #a43434;
}

@media (max-width: 800px) {

    .app-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .app-publish-card {
        flex-direction: column;
        align-items: stretch;
    }

        .app-publish-card button {
            width: 100%;
        }
}

.app-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.app-media-card {
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
}

.app-media-card-wide {
    grid-column: 1 / -1;
}

.app-media-card-header {
    margin-bottom: 18px;
}

.app-media-card h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.app-media-card p {
    margin: 0;
    color: #777;
}

.app-media-preview {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f4f4;
    border-radius: 12px;
}

    .app-media-preview.logo {
        min-height: 180px;
    }

    .app-media-preview img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .app-media-preview.logo img {
        width: auto;
        height: auto;
        max-width: 80%;
        max-height: 130px;
        object-fit: contain;
    }

    .app-media-preview.video {
        min-height: 300px;
    }

    .app-media-preview video {
        width: 100%;
        max-height: 420px;
        background: #000;
    }

    .app-media-preview span {
        color: #aaa;
    }

.app-media-fields {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.app-file-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 9px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}

    .app-file-button:hover {
        background: #f7f7f7;
    }

    .app-file-button input {
        display: none;
    }

.app-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    cursor: pointer;
}

.app-form-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

    .app-form-actions button {
        margin: 0;
    }

@media (max-width: 800px) {

    .app-media-grid {
        grid-template-columns: 1fr;
    }

    .app-media-card-wide {
        grid-column: auto;
    }

    .app-form-actions .app-primary-button {
        width: 100%;
    }
}

.app-translation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.app-translation-card {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .app-translation-card:hover {
        color: inherit;
        transform: translateY(-2px);
        border-color: #ccc;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    }

.app-translation-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

    .app-translation-card-link:hover {
        color: inherit;
    }

.app-translation-card-header {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.app-language-code {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f1f1;
    font-size: .85rem;
    font-weight: 700;
}

.app-main-language-badge {
    padding: 5px 9px;
    border-radius: 20px;
    background: #eef3ff;
    color: #47639a;
    font-size: .75rem;
    font-weight: 600;
}

.app-translation-card h2 {
    margin: 0 0 14px;
    font-size: 1.2rem;
}

.app-translation-title {
    display: block;
    margin-bottom: 6px;
}

.app-translation-subtitle {
    margin: 0 0 10px;
    color: #666;
}

.app-translation-description {
    margin: 0;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-translation-card-footer {
    margin-top: 18px;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #eee;
}

    .app-translation-card-footer form {
        margin: 0;
    }

    .app-translation-card-footer a {
        display: inline-flex;
        align-items: center;
        color: #333;
        text-decoration: none;
        font-weight: 600;
        font-size: .9rem;
    }

        .app-translation-card-footer a:hover {
            color: #111;
            text-decoration: none;
        }

.app-translation-delete {
    padding: 7px 11px;
    border: 1px solid #ead4d4;
    border-radius: 8px;
    background: #fffafa;
    color: #a54b4b;
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

    .app-translation-delete:hover {
        background: #fff1f1;
        border-color: #dfbcbc;
        color: #853737;
    }

@media (max-width: 700px) {

    .app-translation-grid {
        grid-template-columns: 1fr;
    }
}

.app-link-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
}

    .app-link-card.disabled {
        opacity: .65;
    }

.app-link-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.app-link-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f3f3f3;
    font-size: 1.25rem;
}

    .app-link-icon img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

.app-link-content {
    min-width: 0;
    flex: 1;
}

.app-link-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

    .app-link-title-row h2 {
        margin: 0;
        font-size: 1.05rem;
    }

.app-link-content strong {
    display: block;
    margin-bottom: 3px;
}

.app-link-url {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #888;
}

.app-link-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

    .app-link-actions form {
        margin: 0;
    }

.app-link-order-actions {
    display: flex;
    gap: 5px;
    margin-right: 6px;
}

.app-icon-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

    .app-icon-button:hover {
        background: #f5f5f5;
    }

@media (max-width: 800px) {

    .app-link-card {
        flex-direction: column;
        align-items: stretch;
    }

    .app-link-actions {
        padding-top: 14px;
        border-top: 1px solid #eee;
        flex-wrap: wrap;
    }

        .app-link-actions .app-secondary-button {
            flex: 1;
            text-align: center;
        }
}

.app-qr-layout {
    display: grid;
    grid-template-columns: minmax(300px, 420px) 1fr;
    gap: 24px;
    align-items: start;
}

.app-qr-card {
    padding: 30px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
}

.app-qr-image {
    width: min(300px, 100%);
    margin: 0 auto 24px;
    padding: 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
}

    .app-qr-image img {
        display: block;
        width: 100%;
        height: auto;
    }

.app-qr-card h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.app-qr-code {
    margin: 0 0 22px;
    color: #888;
    font-family: monospace;
    letter-spacing: .08em;
}

.app-qr-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.app-qr-stat-card,
.app-qr-info-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
}

.app-qr-stat-label {
    display: block;
    margin-bottom: 10px;
    color: #888;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.app-qr-stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
    line-height: 1;
}

    .app-qr-stat-card strong.app-qr-date {
        font-size: 1.4rem;
    }

.app-qr-stat-card p {
    margin: 0;
    color: #777;
}

.app-qr-info-card {
    grid-column: 1 / -1;
}

    .app-qr-info-card h2 {
        margin: 0 0 8px;
        font-size: 1.1rem;
    }

    .app-qr-info-card p {
        margin: 0;
        color: #777;
        line-height: 1.55;
    }

@media (max-width: 800px) {

    .app-qr-layout {
        grid-template-columns: 1fr;
    }

    .app-qr-stats {
        grid-template-columns: 1fr;
    }

    .app-qr-info-card {
        grid-column: auto;
    }

    .app-qr-card .app-primary-button {
        width: 100%;
    }
}

@media print {

    body * {
        visibility: hidden !important;
    }

    .app-qr-card,
    .app-qr-card * {
        visibility: visible !important;
    }

    .app-qr-card {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        border: 0;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

        .app-qr-card .app-primary-button {
            display: none !important;
        }

    body,
    .app-body {
        background: #fff !important;
    }
}

@media (max-width: 700px) {

    .app-form-card {
        padding: 20px;
    }

    .app-form-grid {
        grid-template-columns: 1fr;
    }

    .app-field-wide {
        grid-column: auto;
    }

    .app-form-actions {
        flex-direction: column-reverse;
    }

        .app-form-actions > * {
            width: 100%;
            text-align: center;
        }
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 9px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}

    .app-nav-link:hover {
        background: #f4f4f4;
        color: #111;
    }

.app-nav-create {
    color: #111;
    font-weight: 600;
}

.app-nav-logout {
    margin: 0 0 0 8px;
    padding-left: 16px;
    border-left: 1px solid #e5e5e5;
}

    .app-nav-logout button {
        padding: 9px 0;
        border: 0;
        background: transparent;
        color: #888;
        font: inherit;
        font-weight: 500;
        cursor: pointer;
    }

        .app-nav-logout button:hover {
            color: #111;
        }

@media (max-width: 700px) {

    .app-nav-create {
        display: none;
    }

    .app-nav-link {
        padding: 8px;
        font-size: .85rem;
    }

    .app-nav-logout {
        margin-left: 2px;
        padding-left: 10px;
    }

        .app-nav-logout button {
            font-size: .85rem;
        }
}

.app-login-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-login-card {
    width: min(420px, 100%);
    padding: 36px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .05);
}

.app-login-brand {
    margin-bottom: 28px;
    font-size: 1.4rem;
    font-weight: 700;
}

.app-login-card h1 {
    margin: 0 0 8px;
}

.app-login-card > p {
    margin: 0 0 28px;
    color: #777;
}

.app-login-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.app-login-button {
    width: 100%;
    margin-top: 6px;
    border: 0;
    cursor: pointer;
}

.app-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.app-account-navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    align-items: stretch;
    margin-bottom: 24px;
}

    .app-account-navigation > .app-form-card {
        height: 100%;
    }

        .app-account-navigation > .app-form-card .app-form-section {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .app-account-navigation > .app-form-card .app-primary-button {
            margin-top: auto;
            align-self: flex-start;
        }

@media (max-width: 768px) {
    .app-account-navigation {
        grid-template-columns: 1fr;
    }
}

.app-account-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.app-danger-zone {
    margin-top: 24px;
}

.app-account-businesses {
    grid-column: 1 / -1;
}

.app-alert-success {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #eaf7ee;
    color: #267a43;
}

@media (max-width: 900px) {
    .app-account-grid {
        grid-template-columns: 1fr;
    }

    .app-account-businesses,
    .app-danger-zone {
        grid-column: auto;
    }
}



.app-form-card {
    padding: 26px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
}

.app-form-section + .app-form-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.app-form-section h2 {
    margin: 0 0 20px;
    font-size: 1.1rem;
}

.app-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.app-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.app-field-wide {
    grid-column: 1 / -1;
}

.app-field label {
    font-weight: 600;
    color: #333;
}

.app-input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .app-input:focus {
        border-color: #999;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
    }

.app-field-help {
    color: #888;
    line-height: 1.45;
}



.seo-landing {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0 90px;
}

.seo-landing-header {
    max-width: 720px;
    margin-bottom: 40px;
}

    .seo-landing-header h1 {
        margin: 0 0 14px;
        font-size: clamp(2.2rem, 5vw, 4rem);
        letter-spacing: -.04em;
    }

    .seo-landing-header p {
        margin: 0;
        color: #777;
        font-size: 1.1rem;
        line-height: 1.6;
    }

.seo-business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.seo-business-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .seo-business-card:hover {
        color: inherit;
        transform: translateY(-2px);
        border-color: #ccc;
        box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
    }

    .seo-business-card > img {
        display: block;
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

.seo-business-content {
    padding: 20px;
}

    .seo-business-content h2 {
        margin: 0 0 6px;
        font-size: 1.2rem;
    }

    .seo-business-content p {
        margin: 0;
        color: #777;
    }

@media (max-width: 700px) {
    .seo-landing {
        padding-top: 45px;
    }

    .seo-business-grid {
        grid-template-columns: 1fr;
    }
}

.app-danger-zone {
    grid-column: 1 / -1;
}

    .app-danger-zone h2 {
        margin: 0 0 6px;
        font-size: 1.1rem;
        color: #843d3d;
    }

    .app-danger-zone p {
        margin: 0;
        color: #8a6666;
    }

    .app-danger-zone form {
        margin: 0;
        flex-shrink: 0;
    }

.app-danger-button {
    padding: 11px 16px;
    border: 1px solid #dfbcbc;
    border-radius: 10px;
    background: #fff;
    color: #a13f3f;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

    .app-danger-button:hover {
        background: #fff0f0;
    }

@media (max-width: 700px) {
    .app-danger-zone {
        flex-direction: column;
        align-items: stretch;
    }

    .app-danger-button {
        width: 100%;
    }
}

.app-readiness-card {
    margin-top: 22px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
}

.app-readiness-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

    .app-readiness-header h2 {
        margin: 0 0 6px;
        font-size: 1.15rem;
    }

    .app-readiness-header p {
        margin: 0;
        color: #777;
    }

.app-readiness-status {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}

    .app-readiness-status.ready {
        background: #e8f7ed;
        color: #267a43;
    }

    .app-readiness-status.incomplete {
        background: #fff3df;
        color: #9a641b;
    }

.app-readiness-list {
    display: flex;
    flex-direction: column;
}

.app-readiness-item {
    display: grid;
    grid-template-columns: 36px 1fr 20px;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid #eee;
}

    .app-readiness-item:hover {
        color: inherit;
    }

.app-readiness-check {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

    .app-readiness-check.done {
        background: #e8f7ed;
        color: #267a43;
    }

    .app-readiness-check.missing {
        background: #fff3df;
        color: #9a641b;
    }

.app-readiness-item strong {
    display: block;
    margin-bottom: 2px;
}

.app-readiness-item p {
    margin: 0;
    color: #888;
    font-size: .9rem;
}

.app-publish-help {
    margin: 10px 0 0;
    color: #888;
    font-size: .9rem;
}

.app-card-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}

.app-flash {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 500;
}

.app-flash-success {
    background: #eaf7ee;
    color: #24733e;
    border: 1px solid #ccebd5;
}

.app-flash-error {
    background: #fff0f0;
    color: #a33a3a;
    border: 1px solid #f2cccc;
}

.app-qr-premium-card {
    margin-top: 20px;
}

.app-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
    align-items: stretch;
}

.app-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .035);
}

    .app-plan-card.current {
        border-color: #c96f4a;
        box-shadow: 0 14px 36px rgba(201, 111, 74, .10);
    }

.app-plan-name {
    display: block;
    margin-bottom: 14px;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.app-plan-card > strong {
    display: block;
    margin-bottom: 18px;
    font-size: 1.45rem;
}

.app-plan-card > p {
    margin: 0 0 18px;
    color: #777;
    line-height: 1.55;
}

.app-plan-card ul {
    flex: 1;
    margin: 6px 0 26px;
    padding-left: 22px;
}

.app-plan-card li {
    margin-bottom: 10px;
    line-height: 1.45;
}

.app-plan-card form {
    margin-top: auto;
}

.app-plan-card .app-primary-button {
    width: 100%;
}

.app-plan-current {
    align-self: flex-start;
    margin: 0 0 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f1f3f1;
    color: #555;
    font-size: .82rem;
    font-weight: 600;
}

@media (max-width: 850px) {
    .app-plan-grid {
        grid-template-columns: 1fr;
    }
}

.app-account-offer-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-width: 260px;
}

    .app-account-offer-actions form {
        margin: 0;
    }

    .app-account-offer-actions .app-primary-button,
    .app-account-offer-actions .app-secondary-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        justify-content: center;
    }


.app-select {
    width: 100%;
    max-width: 320px;
    padding: 11px 40px 11px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: .95rem;
    cursor: pointer;
    margin-bottom: 14px;
}

    .app-select:focus {
        outline: none;
        border-color: #999;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
    }

.app-login-help {
    margin-top: 10px;
    text-align: right;
}

    .app-login-help a {
        font-size: .9rem;
        color: #666;
        text-decoration: none;
    }

        .app-login-help a:hover {
            text-decoration: underline;
        }

.app-turnstile {
    margin: 18px 0;
    display: flex;
    justify-content: center;
}

.app-login-card .app-accept-terms .app-check,
.app-login-card .app-accept-terms .app-check > span,
.app-login-card .app-accept-terms .app-check a {
    font-size: 13px !important;
    line-height: 1.5;
}

    .app-login-card .app-accept-terms .app-check a {
        font-weight: 500;
    }

.app-subscription-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

@media (max-width: 700px) {
    .app-subscription-summary {
        flex-direction: column;
    }
}

.app-manager-badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    background: #f2f2f2;
    border-radius: 6px;
    font-size: 0.92rem;
    color: #444;
}


.app-account-separator {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid #e8e8e8;
}

.app-account-section h3 {
    margin: 0 0 14px;
    font-size: 1rem;
}


.app-qr-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

    .app-qr-actions .app-primary-button,
    .app-qr-actions .app-secondary-button {
        min-width: 220px;
        min-height: 56px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        text-align: center;
        white-space: nowrap;
    }




.app-media-delete-button {
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .app-media-delete-button img {
        width: 16px;
        height: 16px;
        display: block;
    }

/* ==========================================
   ACCOUNT - NAVIGATION CARDS
   ========================================== */

/* Carte commune */
.app-account-navigation .account-nav-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 320px;
    padding: 20px 24px;
    border: 1px solid rgba(0, 0, 0, 0.025);
    border-radius: 26px;
    overflow: hidden;
    isolation: isolate;
    background: var(--nav-bg);
    box-shadow: 0 8px 24px rgba(35, 30, 25, 0.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Cercles décoratifs */
.account-nav-card::before,
.account-nav-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.account-nav-card::before {
    width: 190px;
    height: 190px;
    top: -105px;
    right: -75px;
    background: var(--nav-decoration);
    opacity: .65;
}

.account-nav-card::after {
    width: 170px;
    height: 170px;
    bottom: -110px;
    left: -75px;
    background: var(--nav-decoration);
    opacity: .85;
}

/* Contenu centré */
.app-account-navigation .account-nav-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Illustration SVG */
.account-nav-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
    flex-shrink: 0;
}

    .account-nav-card__icon img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* Titre */
.app-account-navigation .account-nav-card h2 {
    margin: 0 0 10px;
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    font-weight: 750;
    line-height: 1.2;
    color: #242124;
    text-align: center;
}

/* Sous-titre */
.app-account-navigation .account-nav-card p {
    margin: 0 0 14px;
    max-width: 290px;
    color: #68636A;
    font-size: .97rem;
    line-height: 1.55;
    text-align: center;
}

/* Bouton en bas */
.app-account-navigation .account-nav-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    max-width: 100%;
    min-height: 52px;
    margin: auto auto 0;
    padding: 13px 25px;
    background: #242124;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: .95rem;
    font-weight: 650;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

/* Flèche */
.account-nav-card__arrow {
    display: inline-block;
    font-size: 1.25rem;
    line-height: 1;
    transition: transform .2s ease;
}

/* Hover carte */
@media (hover: hover) {
    .account-nav-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 34px rgba(35, 30, 25, .09);
    }

    .account-nav-card__button:not(.app-button-disabled):hover {
        background: #383238;
        transform: translateY(-2px);
        box-shadow: 0 7px 16px rgba(0, 0, 0, .13);
    }

        .account-nav-card__button:not(.app-button-disabled):hover
        .account-nav-card__arrow {
            transform: translateX(4px);
        }
}

/* Bouton désactivé */
.app-account-navigation .account-nav-card__button.app-button-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================
   COULEURS PAR CARTE
   ========================================== */

/* Mes vitrines */
.account-nav-card--businesses {
    --nav-bg: linear-gradient(145deg, #FFF2E9, #FFF9F5);
    --nav-decoration: #F7D5BF;
}

/* Mes contacts */
.account-nav-card--contacts {
    --nav-bg: linear-gradient(145deg, #FDEBF3, #FFF8FB);
    --nav-decoration: #F7CCE0;
}

/* Boutique QLII */
.account-nav-card--shop {
    --nav-bg: linear-gradient(145deg, #FFF4DB, #FFFBF1);
    --nav-decoration: #F9E2A5;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 980px) {
    .app-account-navigation {
        grid-template-columns: 1fr;
    }

        .app-account-navigation .account-nav-card {
            min-height: 350px;
        }
}

@media (max-width: 480px) {
    .app-account-navigation .account-nav-card {
        min-height: 340px;
        padding: 24px 20px;
        border-radius: 22px;
    }

    .account-nav-card__icon {
        width: 145px;
        height: 145px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-nav-card,
    .account-nav-card__button,
    .account-nav-card__arrow {
        transition: none !important;
    }
}



/* QLII Care - Cartes Plans dans l'application */

.app-plan-card .pricing-care {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-plan-card .pricing-care-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

    .app-plan-card .pricing-care-link:hover {
        color: #d94b83;
    }

.app-plan-card .pricing-care-link-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: .55;
}

.app-plan-card .pricing-care-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    padding: 4px 9px;
    border-radius: 7px;
    background: #fce8f0;
    color: #c73570;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}


.prospect-email-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

    .prospect-email-row .app-input {
        flex: 1;
        min-width: 0;
    }

    .prospect-email-row .app-secondary-button {
        flex-shrink: 0;
        white-space: nowrap;
    }

@media (max-width: 650px) {
    .prospect-email-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.app-moderation-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.app-status-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.app-status.moderation-ok {
    background: #e7f5ec;
    color: #237545;
}

.app-status.moderation-pending {
    background: #fff2dc;
    color: #986000;
}

.app-moderation-date {
    font-size: 0.72rem;
    color: #888;
    text-align: right;
}




/* QLII Partners - bandeau Mon compte */

.app-partner-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 28px;
    margin: 20px 0 28px;
}

.app-partner-banner__content {
    flex: 1;
    min-width: 0;
}

.app-partner-banner__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(192, 58, 120, 0.09);
    color: #C03A78;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
}

.app-partner-banner h2 {
    margin: 10px 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
}

.app-partner-banner p {
    margin: 0;
    line-height: 1.5;
    opacity: .75;
}

.app-partner-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-shrink: 0;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .app-partner-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 22px;
    }

    .app-partner-banner__button {
        width: 100%;
    }
}

/* QLII Partners - Programme */

.partner-programme {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 32px;
}

    .partner-programme .app-form-card {
        margin: 0;
    }

    .partner-programme .app-form-section > h2 {
        margin-bottom: 18px;
    }

    .partner-programme p {
        line-height: 1.7;
    }

.partner-programme-hero {
    background: linear-gradient( 125deg, rgba(192, 58, 120, .055), transparent 70% );
}

/* Commissions */

.partner-programme-rates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.partner-programme-rate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 12px;
    border: 1px solid rgba(128,128,128,.16);
    border-radius: 14px;
    text-align: center;
}

    .partner-programme-rate h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: 650;
    }

    .partner-programme-rate strong {
        font-size: 2rem;
        line-height: 1.2;
        color: #C03A78;
    }

    .partner-programme-rate span {
        font-size: .85rem;
        opacity: .72;
    }

/* QLII Care */

.partner-programme-care-rate {
    display: inline-block;
    margin: 4px 0 18px;
    font-size: 2.2rem;
    font-weight: 750;
    color: #C03A78;
}

/* Listes */

.partner-programme-list {
    padding-left: 22px;
    margin: 20px 0;
}

    .partner-programme-list li {
        padding-left: 4px;
        margin-bottom: 12px;
        line-height: 1.6;
    }

.partner-programme-note {
    font-size: .9rem;
    font-weight: 600;
}

/* Wallet */

.partner-programme-payout {
    padding: 22px;
    margin: 22px 0;
    border: 1px solid rgba(128,128,128,.16);
    border-radius: 14px;
}

    .partner-programme-payout strong {
        display: block;
        margin-bottom: 10px;
        font-size: 1.8rem;
        color: #C03A78;
    }

    .partner-programme-payout p {
        margin: 0;
    }

/* Étapes */

.partner-programme-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.partner-programme-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

    .partner-programme-step > span {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 36px;
        height: 36px;
        border: 1px solid rgba(192,58,120,.3);
        border-radius: 50%;
        color: #C03A78;
        font-weight: 700;
    }

    .partner-programme-step h3 {
        margin: 2px 0 6px;
        font-size: 1rem;
        font-weight: 700;
    }

    .partner-programme-step p {
        margin: 0;
    }

/* CTA */

.partner-programme-cta {
    text-align: center;
}

    .partner-programme-cta p {
        margin-bottom: 24px;
    }

@media (max-width: 650px) {
    .partner-programme-rates {
        grid-template-columns: 1fr;
    }

    .partner-programme-rate {
        padding: 18px;
    }

    .partner-programme-cta .app-primary-button {
        width: 100%;
        justify-content: center;
    }
}




/* QLII - Formulaire en cours d'envoi */
form[data-qlii-submitting="1"] button[type="submit"],
form[data-qlii-submitting="1"] button:not([type]),
form[data-qlii-submitting="1"] input[type="submit"] {
    opacity: 0.55 !important;
    filter: grayscale(0.3);
    cursor: progress !important;
    box-shadow: none !important;
}

    /* Spinner sur les boutons */
    form[data-qlii-submitting="1"] button[type="submit"]::after,
    form[data-qlii-submitting="1"] button:not([type])::after {
        content: "";
        display: inline-block;
        width: 0.85em;
        height: 0.85em;
        margin-left: 8px;
        border: 2px solid currentColor;
        border-right-color: transparent;
        border-radius: 50%;
        vertical-align: middle;
        animation: qlii-submit-spin 0.7s linear infinite;
    }

@keyframes qlii-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

.app-button-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.app-button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

/* Vitrines associées */

.app-storefront-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.app-storefront-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--app-border, #e5e5e5);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

    .app-storefront-item:hover {
        border-color: #C03A78;
    }

    .app-storefront-item:has(input:checked) {
        border-color: #C03A78;
        background: rgba(192, 58, 120, .045);
    }

    .app-storefront-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #C03A78;
        flex-shrink: 0;
        cursor: pointer;
    }

.app-storefront-item-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .app-storefront-item-content strong {
        font-weight: 600;
    }

    .app-storefront-item-content small {
        opacity: .65;
    }


.app-page-header label.app-primary-button {
    cursor: pointer;
}

.link-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.link-icon-option {
    position: relative;
    cursor: pointer;
}

    .link-icon-option input {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
    }

.link-icon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-height: 64px;
    padding: 10px;
    border: 2px solid var(--app-border, #ddd);
    border-radius: 10px;
    transition: border-color .15s, background-color .15s;
}

    .link-icon-content img {
        width: 28px;
        height: 28px;
    }

.link-icon-option:hover .link-icon-content {
    background: rgba(128, 128, 128, .08);
}

.link-icon-option input:checked + .link-icon-content {
    border-color: #e58b31;
    background: rgba(229, 139, 49, .10);
}

.link-icon-option input:focus-visible + .link-icon-content {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.link-icon-default {
    font-size: 24px;
}



.app-region-country {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

    .app-region-country .app-country-select {
        width: 105px;
        flex: 0 0 105px;
        min-width: 0;
    }

    .app-region-country input.app-input {
        flex: 1;
        width: 0;
        min-width: 0;
    }

/* Business Edit - Localisation */

.app-form-grid.business-edit-location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .app-form-grid.business-edit-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .app-form-grid.business-edit-location-grid {
        grid-template-columns: 1fr;
    }
}


/* Position GPS - Business Edit */

.business-gps {
    margin-top: 1.25rem;
    border: 1px solid var(--border-color, #e7e2dc);
    border-radius: 14px;
    overflow: visible;
}

.business-gps-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: transparent;
    border: 0;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.business-gps-toggle-text {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

    .business-gps-toggle-text small {
        opacity: .7;
    }

.business-gps-panel {
    padding: 0 1.15rem 1.15rem;
}

.business-gps-search {
    position: relative;
    z-index: 1100;
    margin: 1rem 0;
}

.business-gps-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1100;
    background: #fff;
    border: 1px solid #e5e0da;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
    max-height: 250px;
    overflow-y: auto;
}

.business-gps-result {
    display: block;
    width: 100%;
    padding: .8rem 1rem;
    border: 0;
    border-bottom: 1px solid #f0ece8;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: #292524;
}

    .business-gps-result:hover,
    .business-gps-result:focus-visible {
        background: #fff5ed;
    }

.business-gps-map {
    height: 320px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    z-index: 0;
}

.business-gps-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: .85rem;
}

    .business-gps-footer small {
        opacity: .7;
    }

@media (max-width: 640px) {
    .business-gps-map {
        height: 260px;
    }

    .business-gps-footer {
        flex-wrap: wrap;
    }
}
